1 2008-12-02 Jakub Jelinek <jakub@redhat.com>
4 * builtins.c (expand_builtin_mempcpy_args): Handle COMPOUND_EXPRs
5 potentially returned from folding memcpy.
6 (expand_builtin_stpcpy_args): Similarly for folding strcpy.
7 (fold_builtin_2): Handle BUILT_IN_STPCPY if result is ignored.
9 2008-12-02 Danny Smith <dannysmith@users.sourceforge.net>
12 * config/i386/winnt.c (i386_pe_encode_section_info): Condition stdcall
13 decoration of function RTL names here on Ada language.
15 2008-12-01 Vladimir Makarov <vmakarov@redhat.com>
17 PR rtl-optimization/38280
18 * ira-build.c (loop_is_inside_p, regno_allocno_order_compare_func,
19 ira_rebuild_regno_allocno_list): New functions.
20 (regno_allocnos): New static variable.
21 (remove_unnecessary_allocnos): Allocate/deallocate regno_allocnos.
22 Call ira_rebuild_regno_allocno_list.
24 2008-12-01 David Daney <ddaney@caviumnetworks.com>
25 Adam Nemet <anemet@caviumnetworks.com>
27 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add
28 LINUX_DRIVER_SELF_SPECS.
30 2008-12-01 Vladimir Makarov <vmakarov@redhat.com>
32 PR rtl-optimization/37514
33 * reload1.c (reload_as_needed): Invalidate reg_last_reload
36 2008-12-01 Jakub Jelinek <jakub@redhat.com>
39 * c-omp.c (c_finish_omp_for): Only transform pointer
40 ++ or -- into MODIFY_EXPR if second argument is non-NULL.
42 PR rtl-optimization/38245
43 * tree-vrp.c (abs_extent_range): New function.
44 (extract_range_from_binary_expr): Compute range
45 for *_DIV_EXPR even if vr1 is VR_VARYING, VR_ANTI_RANGE
46 or includes zero or if vr1 is VR_RANGE and op0 has some
49 2008-12-01 Uros Bizjak <ubizjak@gmail.com>
52 * config/alpha/alpha.c (alpha_split_atomic_op): Properly handle NAND
53 case by calculating ~(new_reg & val) instead of (~new_reg & val).
54 * config/alpha/sync.md (sync_nand<mode>): Change insn RTX
55 to (not:I48MODE (and:I48MODE (...))).
56 (sync_old_nand<mode>): Ditto.
57 (sync_new_nand<mode>): Ditto.
59 2008-12-01 Nick Clifton <nickc@redhat.com>
61 * config/stormy16/stormy16.md (CARRY_REG): New constant.
62 Replace uses of the "y" register class with direct references to
63 the CARRY_REG register.
64 * config/stormy16/stormy16.c: Replace clobbers of a BImode scratch
65 register with clobbers of the carry register.
66 (xstormy16_secondary_reload_class): Do not return CARRY_REGS.
67 (xstormy16_split_cbranch): Remove redundant carry parameter.
68 (xstormy16_expand_arith): Likewise.
69 * config/stormy16/stormy16.h (enum reg_class): Remove CARRY_REGS.
70 (IRA_COVER_CLASSES, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
71 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise.
72 (CARRY_REGNUM): Define.
73 * config/stormy16/stormy16-protos.h (xstormy16_split_cbranch):
75 (xstormy16_expand_arith): Likewise.
77 2008-12-01 Chen Liqin <liqin.chen@sunplusct.com>
79 * config/score/score.h (IRA_COVER_CLASSES): Define.
81 2008-11-30 Eric Botcazou <ebotcazou@adacore.com>
84 * config/sparc/sparc.md (divsi3 expander): Remove constraints.
85 (divsi3_sp32): Add new alternative with 'K' for operand #2.
86 (cmp_sdiv_cc_set): Factor common string.
87 (udivsi3_sp32): Add new alternative with 'K' for operand #2.
89 (cmp_udiv_cc_set): Factor common string.
91 2008-11-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
94 * varasm.c (emutls_finish): Fix common registration.
96 2008-11-29 Jakub Jelinek <jakub@redhat.com>
99 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
101 2008-11-29 David Edelsohn <edelsohn@gnu.org>
103 * config/rs6000/rs6000.c (rs6000_emit_sync): Remove support for
104 operand wrapped in NOT. Emit NAND as (ior (not X) (not Y)).
105 (rs6000_split_atomic_op): Emit NAND as (ior (not X) (not Y)).
106 * config/rs6000/sync.md (sync_nand<mode>): Represent NAND in RTL.
107 Call rs6000_emit_sync with CODE=NOT and unmodified operands.
108 Ignore sub-word case for now.
109 (sync_nand<mode>_internal): Represent NAND in RTL.
110 (sync_old_nand<mode): Same.
111 (sync_old_name<mode>_internal): Same.
112 (sync_new_nand<mode>): Same.
113 (sync_new_nand<mode>_internal): Same.
114 (sync_boolcshort_internal): Expect NAND.
116 2008-11-28 Richard Guenther <rguenther@suse.de>
118 PR tree-optimization/37955
119 PR tree-optimization/37742
120 * tree-vect-transform.c (vectorizable_store): Remove assert for
122 (vectorizable_load): Likewise.
124 2008-11-27 Richard Guenther <rguenther@suse.de>
126 * tree-ssa-structalias.c (intra_create_variable_infos): Make
127 a constraint for the static chain parameter.
129 2008-11-27 Bernd Schmidt <bernd.schmidt@analog.com>
131 * config/bfin/bfin.opt (micplb): New option.
132 * config/bfin/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Set it.
133 * config/bfin/bfin-protos.h (WA_INDIRECT_CALLS,
134 ENABLE_WA_INDIRECT_CALLS): New macros.
135 * config/bfin/bfin.c (bfin_cpus): Add WA_INDIRECT_CALLS to
137 (indirect_call_p): New function.
138 (workaround_speculation): Handle anomaly 05-00-0426 when
139 ENABLE_WA_INDIRECT_CALLS is true.
140 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
141 __WORKAROUND_INDIRECT_CALLS if ENABLE_WA_INDIRECT_CALLS.
142 * doc/invoke.texi (Blackfin Options): Document -micplb.
144 2008-11-26 DJ Delorie <dj@redhat.com>
146 * config/m32c/mov.md ("extendhipsi2"): New.
148 * config/m32c/bitops.md (bset_qi): Add memsym_operand predicate.
150 * config/m32c/bitops.md (andhi3_24, iorhi3_24): Don't prefer HL class.
151 * config/m32c/mov.md (zero_extendqihi2): Likewise.
153 2008-11-26 Adam Nemet <anemet@caviumnetworks.com>
155 * config/mips/mips.md (clear_hazard): Rename to
156 clear_hazard_<mode>. Use mode-specific addition.
157 (clear_cache): Rename gen_clear_hazard to gen_clear_hazard_si
158 or gen_clear_hazard_di depending on the size of Pmode.
160 2008-11-26 DJ Delorie <dj@redhat.com>
162 * configure.ac: Test m32c-elf-gas for .loc.
163 * configure: Likewise.
165 2008-11-26 Janis Johnson <janis187@us.ibm.com>
168 * doc/sourcebuild.texi (Test Directives): Add dg-timeout and
171 2008-11-26 Uros Bizjak <ubizjak@gmail.com>
173 * config/i386/sync.md (memory_barrier_nosse): Disable also for
174 TARGET_64BIT. Remove special asm template for TARGET_64BIT case.
175 (memory_barrier): Do not generate memory_barrier_nosse instruction
177 * config/i386/sse.md (*sse2_mfence): Also enable for TARGET_64BIT.
179 2008-11-26 Fredrik Unger <fred@tree.se>
181 * config/soft-fp/floatuntisf.c (__floatuntisf): Correct
182 function name from __floatundisf.
183 * config/soft-fp/fixdfti.c (__fixdfti): Correct argument type to
186 2008-11-25 Daniel Berlin <dberlin@dberlin.org>
187 Richard Guenther <rguenther@suse.de>
189 PR tree-optimization/37869
190 * tree-ssa-structalias.c (struct constraint_graph): Remove
191 pt_used and number_incoming members.
192 (build_pred_graph): Do not allocate them.
193 (condense_visit): Do not use them.
194 (label_visit): Likewise.
195 (free_var_substitution_info): Do not free them.
197 2008-11-25 Vladimir Makarov <vmakarov@redhat.com>
199 * doc/invoke.texi (ira-max-loops-num): Change semantics.
201 * ira-int.h (struct ira_loop_tree_node): New member to_remove_p.
203 * ira-color.c (allocno_spill_priority): New function.
204 (remove_allocno_from_bucket_and_push, push_allocno_to_spill):
205 Print more info about the spilled allocno.
206 (push_allocnos_to_stack): Use allocno_spill_priority. Add more
209 * ira-build.c (loop_node_to_be_removed_p): Remove.
210 (loop_compare_func, mark_loops_for_removal): New functions.
211 (remove_uneccesary_loop_nodes_from_loop_t): Use member
213 (remove_unnecessary_allocnos): Call mark_loops_for_removal.
215 * ira.c (ira): Don't change flag_ira_algorithm.
217 * params.def (ira-max-loops-num): Change the value.
219 2008-11-25 Maxim Kuvyrkov <maxim@codesourcery.com>
221 * config/m68k/m68k.md (extendsidi2, extendsidi2_mem): Merge, clean up.
222 Disable unsupported alternative for ColdFire,
223 add new alternative that ColdFire can handle.
225 2008-11-25 Eric Botcazou <ebotcazou@adacore.com>
227 * regrename.c (merge_overlapping_regs): Add registers artificially
228 defined at the top of the basic block to the set of live ones just
229 before the first insn.
231 2008-11-25 H.J. Lu <hongjiu.lu@intel.com>
232 Joey Ye <joey.ye@intel.com>
235 * config/i386/i386.c (ix86_function_ok_for_sibcall): Return
236 false if we need to align the outgoing stack.
237 (ix86_update_stack_boundary): Check parm_stack_boundary.
239 2008-11-25 Richard Guenther <rguenther@suse.de>
243 * tree-ssa-alias.c (struct alias_info): Remove written_vars.
244 Remove dereferenced_ptrs_store and dereferenced_ptrs_load
245 in favor of dereferenced_ptrs.
246 (init_alias_info): Adjust.
247 (delete_alias_info): Likewise.
248 (compute_flow_insensitive_aliasing): Properly
249 include all aliased variables.
250 (update_alias_info_1): Use dereferenced_ptrs.
251 (setup_pointers_and_addressables): Likewise.
252 (get_smt_for): Honor ref-all pointers and pointers with known alias
254 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers.
256 2008-11-25 Uros Bizjak <ubizjak@gmail.com>
259 * config/i386/sync.md (memory_barrier_nosse): New insn pattern.
260 (memory_barrier): Generate memory_barrier_nosse insn for !TARGET_SSE2.
262 2008-11-24 Maxim Kuvyrkov <maxim@codesourcery.com>
264 * config/m68k/m68k.md (cmpdi): Use (scratch) instead of pseudo.
266 2008-11-24 Richard Sandiford <rdsandiford@googlemail.com>
268 * config/mips/mips.h (ASM_OUTPUT_DEBUG_LABEL): Define.
270 2008-11-24 Maxim Kuvyrkov <maxim@codesourcery.com>
273 * config/m68k/m68k.md (ok_for_coldfire, enabled): New attributes.
274 (addsi_lshrsi_31): Add ColdFire-friendly alternatives.
276 2008-11-24 Uros Bizjak <ubizjak@gmail.com>
278 * config/i386/i386.md (UNSPECV_CMPXCHG): Rename from
279 UNSPECV_CMPXCHG_[12].
280 * config/i386/sync.md: Use UNSPECV_CMPXCHG instead of
281 UNSPECV_CMPXCHG_[12].
284 * config/i386/sync.md (memory_barrier): New expander.
286 2008-11-24 Jakub Jelinek <jakub@redhat.com>
289 * dse.c (find_shift_sequence): Optimize extraction from a constant.
291 2008-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
293 * pa.c (function_arg): Revert 2008-10-26 change.
295 2008-11-23 Helge Deller <deller@gmx.de>
297 * pa/linux-atomic.c (EBUSY): Define if not _LP64.
298 (__kernel_cmpxchg): Return -EBUSY if the kernel LWS call
299 succeeded and lws_ret is not equal to oldval.
301 2008-11-23 Kaz Kojima <kkojima@gcc.gnu.org>
303 * config/sh/sh.md (consttable_4): Call mark_symbol_refs_as_used.
305 2008-11-22 Andreas Schwab <schwab@suse.de>
307 * varasm.c (default_file_start): Suppress ASM_APP_OFF also with
310 2008-11-22 Adam Nemet <anemet@caviumnetworks.com>
312 * config/mips/mips.md (rdhwr): Rename to rdhwr_synci_step_<mode>.
313 Use constant 1 as the operand.
314 * config/mips/mips.c (mips_expand_synci_loop): Make INC Pmode.
315 Rename gen_rdhwr to gen_rdhwr_synci_step_si or
316 gen_rdhwr_synci_step_di depending on the size of Pmode.
318 2008-11-22 Uros Bizjak <ubizjak@gmail.com>
321 * config/i386/i386.md (SWI248): New mode iterator.
322 (SWI32): Remove mode iterator.
323 (popcount<mode>2): Rename from popcounthi2, popcountsi2 and
324 popcounthi2 insn patterns. Macroize pattern using SWI248 mode
325 iterator. Generate popcnt mnemonic without mode extensions
326 for Darwin x86 targets.
327 (*popcount<mode>2_cmp): Ditto.
328 (*popcountsi2_cmp_zext): Generate popcnt mnemonic without mode
329 extensions for Darwin x86 targets.
331 2008-11-22 Eric Botcazou <ebotcazou@adacore.com>
333 * config/sparc/sparc.c (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define
334 only if HAVE_AS_SPARC_UA_PCREL is defined.
336 2008-11-22 Richard Sandiford <rdsandiford@googlemail.com>
338 * ira-costs.c (find_allocno_class_costs): Work out the maximum
339 allocno_costs value of the classees with the lowest total_costs
340 value. Use this to set ALLOCNO_COVER_CLASS_COST here...
341 (setup_allocno_cover_class_and_costs): ...rather than here.
342 Use the ALLOCNO_COVER_CLASS_COST for all registers in the
345 2008-11-22 Jakub Jelinek <jakub@redhat.com>
348 * builtins.c (expand_builtin_apply_args): Emit sequence before
349 parm_birth_insn instead of after entry_of_function's first insn.
352 * function.c (assign_parm_remove_parallels): Pass
353 data->passed_type as third argument to emit_group_store.
356 * final.c (mark_symbol_refs_as_used): New function.
357 * output.h (mark_symbol_refs_as_used): New prototype.
358 * config/s390/s390.c (s390_mark_symbol_ref_as_used): Removed.
359 (s390_output_pool_entry): Use mark_symbol_refs_as_used.
360 * config/arm/arm.md (consttable_4): Likewise.
363 * doc/invoke.texi: Adjust wording of -mcmodel=medium description.
365 2008-11-21 Jakub Jelinek <jakub@redhat.com>
368 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
369 propagate x = &a into *x = b if conversion from b to a's type is
372 2008-11-21 Eric Botcazou <ebotcazou@adacore.com>
374 * caller-save.c (insert_one_insn): Take into account REG_INC notes
375 for the liveness computation of the new insn.
377 2008-11-21 DJ Delorie <dj@redhat.com>
379 * config/stormy16/stormy16.md (movqi_internal, movhi_internal):
380 Moves to/from below100 space (W) can only use r0-r7.
382 2008-11-21 Paolo Carlini <paolo.carlini@oracle.com>
385 * doc/invoke.texi (Optimization Options): Fix typo.
387 2008-11-21 H.J. Lu <hongjiu.lu@intel.com>
388 Xuepeng Guo <xuepeng.guo@intel.com>
390 * config.gcc (extra_headers): For x86 and x86-64, remove
391 gmmintrin.h, add immintrin.h and avxintrin.h.
393 * config/i386/gmmintrin.h: Renamed to ...
394 * config/i386/avxintrin.h: This. Issue an error if
395 _IMMINTRIN_H_INCLUDED is undedined.
397 * config/i386/immintrin.h: New.
399 2008-11-21 Jakub Jelinek <jakub@redhat.com>
402 * reload1.c (eliminate_regs_in_insn): For trunc_int_for_mode use
403 mode of PLUS, not mode of the eliminated register.
405 2008-11-21 Uros Bizjak <ubizjak@gmail.com>
407 * config/i386/mmx.md (mmx_nand<mode>3): Rename to mmx_andnot<mode>3.
408 * config/i386/sse.md (avx_nand<mode>3): Rename to avx_andnot<mode>3.
409 (<sse>_nand<mode>3): Rename to <sse>_andnot<mode>3.
410 (sse2_nand<mode>3): Rename to sse2_andnot<mode>3.
411 (*sse_nand<mode>3): Rename to *sse_andnot<mode>3.
412 (*avx_nand<mode>3): Rename to *avx_andnot<mode>3.
413 (*nand<mode>3): Rename to *andnot<mode>3.
414 (*nandtf3): rename to *andnottf3.
415 * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_PANDN]:
416 Use CODE_FOR_mmx_andnotv2si3.
417 [IX86_BUILTIN_ANDNPS]: Use CODE_FOR_sse_andnotv4sf3.
418 [IX86_BUILTIN_ANDNPD]: Use CODE_FOR_sse2_andnotv2df3.
419 [IX86_BUILTIN_PANDN128]: Use CODE_FOR_sse2_andnotv2di3.
420 [IX86_BUILTIN_ANDNPS256]: Use CODE_FOR_avx_andnotv8sf3.
421 [IX86_BUILTIN_ANDNPD256]: Use CODE_FOR_avx_andnotv4df3.
423 2008-11-21 Uros Bizjak <ubizjak@gmail.com>
426 * config/ia64/ia64.c (ia64_expand_atomic_op): Properly handle NAND
427 case by calculating ~(new_reg & val) instead of (~new_reg & val).
428 * config/ia64/sync.md (sync_nand<mode>): Change insn RTX
429 to (not:IMODE (and:IMODE (...))).
430 (sync_old_nand<mode>): Ditto.
431 (sync_new_nand<mode>): Ditto.
433 2008-11-20 Joseph Myers <joseph@codesourcery.com>
435 * config/arm/thumb2.md (thumb2_casesi_internal,
436 thumb2_casesi_internal_pic): Use earlyclobber for scratch operand 4.
438 2008-11-20 Andreas Krebbel <krebbel1@de.ibm.com>
440 * gcc/config/s390/s390.c (s390_expand_atomic): Adjust QI/HI atomic
441 nand to the changed 4.4 semantic.
443 2008-11-20 Jakub Jelinek <jakub@redhat.com>
446 * builtins.c (SLOW_UNALIGNED_ACCESS): Define if not defined.
447 (fold_builtin_memory_op): Handle even the case where just one
448 of src and dest is an address of a var decl component, using
449 TYPE_REF_CAN_ALIAS_ALL pointers. Remove is_gimple_min_invariant
450 and readonly_data_expr src check.
451 * tree-ssa-sccvn.c (DFS): Use clear_and_done_ssa_iter to shut
454 PR rtl-optimization/36998
455 * dwarf2out.c (stack_adjust_offset): Add cur_args_size and cur_offset
456 arguments. Handle sp = reg and (set (foo) (mem (pre_inc (reg sp)))).
457 (compute_barrier_args_size_1, dwarf2out_frame_debug_expr): Adjust
458 stack_adjust_offset callers.
459 (dwarf2out_stack_adjust): Likewise. Handle insns in annulled
461 (compute_barrier_args_size): Handle insns in annulled branches
464 2008-11-20 Uros Bizjak <ubizjak@gmail.com>
467 * config/i386/i386.c (classify_argument) [integer mode size <= 64bit]:
468 Handle cases when integer argument crosses argument register boundary.
470 2008-11-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
473 * config.gcc (i[34567]86-*-solaris2*): Don't include
474 i386/t-crtstuff here.
475 Move extra_parts, i386/t-sol2 in tmake_file to libgcc/config.host.
476 * config/i386/t-sol2: Move to libgcc/config/i386.
478 2008-11-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
481 * tlink.c: Include "libiberty.h".
482 (initial_cwd): Change type into char *.
483 (tlink_init): Call getpwd instead of getcwd.
485 2008-11-19 Zdenek Dvorak <ook@ucw.cz>
487 PR rtl-optimization/32283
488 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Use type of the base
489 of the induction variable to decide whether it may wrap.
490 * tree-ssa-loop-ivopts.c (rewrite_use_compare): Emit the
491 initialization of the bound before the loop.
492 * simplify-rtx.c (simplify_binary_operation_1): Add two
493 simplifications regarding AND.
494 (simplify_plus_minus): Only fail if no simplification is possible.
495 * loop-iv.c (simple_rhs_p): Consider reg + reg and reg << cst simple.
497 2008-11-20 Jakub Jelinek <jakub@redhat.com>
500 * gimplify.c (gimplify_call_expr): Defer most of the cannot inline
501 checking until GIMPLE lowering.
502 * gimple-low.c (check_call_args): New function.
503 (lower_stmt) <case GIMPLE_CALL>: Call it.
505 2008-11-19 Adam Nemet <anemet@caviumnetworks.com>
507 * config/mips/mips.c (mips_gimplify_va_arg_expr): Use -rsize
508 with the same type as the first operand of the AND expression.
510 2008-11-19 Vladimir Makarov <vmakarov@redhat.com>
513 * ira-int.h (struct ira_loop_tree_node): New member
514 entered_from_non_parent_p.
516 * ira-color.c (print_loop_title): Print loop bbs.
518 * ira-emit.c (entered_from_non_parent_p,
519 setup_entered_from_non_parent_p): New functions.
520 (not_modified_p): Rename to store_can_be_removed_p. Check there
522 (generate_edge_moves): Use store_can_be_removed_p instead of
524 (ira_emit): Call setup_entered_from_non_parent_p.
526 * ira-build.c (copy_info_to_removed_store_destinations):
527 Accumulate CALL_FREQ, CALL_CROSSED_NUM, and
528 ALLOCNO_EXCESS_PRESSURE_POINTS_NUM.
529 (ira_flattening): Don't CHECK MEM_OPTIMIZED_DEST[_P], always
530 update all accumulated attributes.
532 2008-11-19 Vladimir Makarov <vmakarov@redhat.com>
535 * ira-int.h (ira_copy_allocno_live_range_list,
536 ira_merge_allocno_live_ranges, ira_allocno_live_ranges_intersect_p,
537 ira_finish_allocno_live_range_list): New prototypes.
538 (ira_allocno_live_ranges_intersect_p,
539 ira_pseudo_live_ranges_intersect_p): Remove.
541 * ira-conflicts.c (ira_allocno_live_ranges_intersect_p,
542 ira_pseudo_live_ranges_intersect_p): Rename to
543 allocnos_have_intersected_live_ranges_p and
544 pseudos_have_intersected_live_ranges_p. Move them from here to ...
546 * ira-color.c: ... here
547 (coalesced_allocno_conflict_p): Use
548 allocnos_have_intersected_live_ranges_p.
549 (coalesced_allocnos_living_at_program_points,
550 coalesced_allocnos_live_at_points_p,
551 set_coalesced_allocnos_live_points): Remove.
552 (slot_coalesced_allocnos_live_ranges,
553 slot_coalesced_allocno_live_ranges_intersect_p,
554 setup_slot_coalesced_allocno_live_ranges): New.
555 (coalesce_spill_slots): Use ranges of coalesced allocnos.
556 (ira_sort_regnos_for_alter_reg): Use
557 allocnos_have_intersected_live_ranges_p.
558 (ira_reuse_stack_slot): Use
559 pseudos_have_intersected_live_ranges_p.
561 * global.c (pseudo_for_reload_consideration_p): Check
562 flag_ira_share_spill_slots too.
564 * ira-build.c (copy_allocno_live_range_list): Rename to
565 ira_copy_allocno_live_range_list. Make it external.
566 (merge_ranges): Rename to ira_merge_allocno_live_ranges. Make it
568 (ira_allocno_live_ranges_intersect_p): New.
569 (ira_finish_allocno_live_range_list): New.
570 (finish_allocno): Use it.
571 (remove_unnecessary_allocnos): Use ira_merge_allocno_live_ranges.
572 (copy_info_to_removed_store_destinations): Ditto. Use
573 ira_copy_allocno_live_range_list.
574 (ira_flattening): Use ira_merge_allocno_live_ranges.
576 * ira.c (too_high_register_pressure_p): New function.
577 (ira): Switch off sharing spill slots if the pressure is too high.
579 2008-11-19 Richard Guenther <rguenther@suse.de>
581 * tree.c (build2_stat): Allow non-POINTER_PLUS_EXPRs with
582 non-sizetype offsets if their precision matches that of the pointer.
583 * expr.c (expand_expr_real_1): Always sign-extend the offset
584 operand of a POINTER_PLUS_EXPR.
586 2008-11-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
588 * config.gcc: Unobsolete mips-sgi-irix[56]*.
589 (mips-sgi-irix[56]*): No need to use fixproto.
591 2008-11-19 Maxim Kuvyrkov <maxim@codesourcery.com>
592 Paul Brook <paul@codesourcery.com>
594 * config/m68k/lb1sf68.asm: Add GNU-stack annotation to avoid
597 2008-11-19 Maxim Kuvyrkov <maxim@codesourcery.com>
599 * config/m68k/m68k.c (sched_attr_op_type): Handle all CONSTs.
601 2008-11-19 Razya Ladelsky <razya@il.ibm.com>
604 * tree-parloops.c (loop_parallel_p): NULL vect_dump.
605 (separate_decls_in_region): Create shared struct even when there
608 2008-11-19 Hariharan Sandanagobalane <hariharan@picochip.com>
610 * config/picochip/picochip.c (headers): Remove an unnecessary
613 2008-11-19 Andrew Stubbs <ams@codesourcery.com>
616 * config/m68k/m68k.h (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY): New defines.
617 * config/m68k/m68k.c (notice_update_cc): Set cc_status properly for
619 * config/m68k/m68k.md: Adjust all conditional branches that use the
620 carry and overflow flags so they understand CC_OVERFLOW_UNUSABLE.
622 2008-11-18 Uros Bizjak <ubizjak@gmail.com>
625 * config/mips/mips.md (move_doubleword_fpr<mode>): Check that "high"
626 is a register or zero operand in the correct mode before generating
627 mtch1 insn or a register operand in the correct mode before generating
629 (mtch1<mode>): Correct operand 1 predicate to reg_or_0_operand.
631 2008-11-18 Adam Nemet <anemet@caviumnetworks.com>
633 * config.gcc (mips*-sde-elf*): Handle mipsisa64r2*.
634 (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Add new cases to
635 mipsisa*-*-elf*. Handle mipsisa64r2*.
636 * config/mips/sde.h (LINK_SPEC): Handle -mips64r2.
637 * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add
639 (MULTILIB_EXCLUSIONS): Add mips64r2/mfp64.
640 * config/mips/t-sde (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add
642 (MULTILIB_EXCLUSIONS): Add mips64r2/mfp64. Add mips64r2/mips16.
643 Fix mips16 if mips64 or mips64r2 are multilib defaults.
644 * config/mips/t-sdemtk (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add
647 2008-11-18 Jakub Jelinek <jakub@redhat.com>
650 * config/i386/i386.md (allocate_stack_worker_32,
651 allocate_stack_worker_64): Don't use match_dup between input and
653 (allocate_stack): Adjust gen_stack_worker_{32,64} caller.
654 * config/i386/i386.c (ix86_expand_prologue): Likewise.
656 2008-11-18 Kai Tietz <kai.tietz@onevision.com>
658 * config/i386/t-cygming (SHLIB_LINK): Make sure that $(SHLIB_MAP).def
659 is forced when trying to do a symbol link for it.
661 2008-11-17 Adam Nemet <anemet@caviumnetworks.com>
663 * expmed.c (extract_bit_field_1): Also use a temporary and
664 convert_extracted_bit_field when the conversion from ext_mode to
665 the target mode requires explicit truncation.
667 2008-11-17 Richard Sandiford <rdsandiford@googlemail.com>
669 * config/mips/mips.h (REG_ALLOC_ORDER): Put accumulators first.
671 * config/mips/mips.c (mips_ira_cover_classes): Don't use accumulator
672 registers when not optimizing.
674 2008-11-17 Richard Sandiford <rdsandiford@googlemail.com>
676 * config/mips/mips.md (*mul_acc_si): Remove middle alternative
677 and its associated define_split. Expose the all-d alternative
678 to the register allocator, but mark it with "?". Mark the first
679 alternative with "*?*?".
680 (*mul_sub_si): Likewise.
681 (*mul_acc_si_r3900): New pattern.
683 2008-11-17 Jakub Jelinek <jakub@redhat.com>
686 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If
687 propagating x = &a into *x = b, add a cast if not useless
688 type conversion or don't optimize if another stmt would be
691 2008-11-17 Uros Bizjak <ubizjak@gmail.com>
694 * optabs.c (expand_sync_operation): Properly handle NAND case
695 by calculating ~(t1 & val) instead of (~t1 & val).
696 * builtins.c (expand_builtin_sync_operation): Warn for changed
697 semantics in NAND builtins.
698 * c.opt (Wsync-nand): New warning option. Describe -Wsync-nand.
700 * doc/invoke.texi (Warning options): Add Wsync-nand.
701 * doc/extend.texi (Atomic Builtins) [__sync_fetch_and_nand]: Correct
702 __sync_fetch_and_nand builtin operation in the example. Add a note
703 about changed semantics in GCC 4.4.
704 [__sync_nand_and_fetch]: Correct __sync_nand_and_fetch builtin
705 operation in the example. Add a note about changed semantics in
708 2008-11-16 Jan Hubicka <jh@suse.cz>
710 * cgraph.c (cgraph_function_body_availability): Fix test of externally
713 2008-11-16 Joshua Kinard <kumba@gentoo.org>
715 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=r1[0246]000
718 2008-11-16 Richard Sandiford <rdsandiford@googlemail.com>
721 * config/mips/mips.c (mips_cfun_call_saved_reg_p)
722 (mips_cfun_might_clobber_call_saved_reg_p): New functions,
724 (mips_save_reg_p): ...here. Always consult TARGET_CALL_SAVED_GP
725 rather than call_really_used_regs when handling $gp.
727 2008-11-16 Richard Sandiford <rdsandiford@googlemail.com>
730 * config/mips/mips.c (machine_function): Update the comment
731 above global_pointer.
732 (mips_global_pointer): Use INVALID_REGNUM rather than 0 to indicate
733 that a function doesn't need a global pointer.
734 (mips_current_loadgp_style): Update accordingly.
735 (mips_restore_gp): Likewise.
736 (mips_output_cplocal): Likewise.
737 (mips_expand_prologue): Likewise.
739 2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
741 * config/sparc/sparc.c (function_arg_vector_value): Remove 'base_mode'
742 parameter. Use DImode for computing the number of registers.
743 (function_arg): Adjust for above change.
744 (function_value): Likewise.
746 2008-11-15 Zdenek Dvorak <ook@ucw.cz>
748 PR tree-optimization/37950
749 * tree-flow-inline.h (memory_partition): Return NULL when aliases were
750 not computed for the current function.
752 2008-11-15 Jakub Jelinek <jakub@redhat.com>
755 * config/i386/i386.c (ix86_gimplify_va_arg): Don't share valist between
756 gpr and other COMPONENT_REFs.
758 2008-11-15 Richard Guenther <rguenther@suse.de>
760 PR tree-optimization/38051
761 * tree-ssa-alias.c (update_alias_info_1): Manually find
764 2008-11-15 Joshua Kinard <kumba@gentoo.org>
766 * doc/invoke.texi (-mfix-r10000): Document.
767 * config/mips/mips.opt (mfix-r10000): New option.
768 * config/mips/mips-protos.h (mips_output_sync_loop): Declare.
769 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Use %?.
770 (MIPS_COMPARE_AND_SWAP_12): Likewise.
771 (MIPS_SYNC_OP): Likewise.
772 (MIPS_SYNC_OP_12): Likewise.
773 (MIPS_SYNC_OLD_OP_12): Likewise.
774 (MIPS_SYNC_NEW_OP_12): Likewise.
775 (MIPS_SYNC_OLD_OP): Likewise.
776 (MIPS_SYNC_NAND): Likewise.
777 (MIPS_SYNC_OLD_NAND): Likewise.
778 (MIPS_SYNC_EXCHANGE): Likewise.
779 (MIPS_SYNC_EXCHANGE_12): Likewise.
780 (MIPS_SYNC_NEW_OP): Likewise, using %~ to fill branch-likely
782 (MIPS_SYNC_NEW_NAND): Likewise.
783 * config/mips/mips.c (mips_print_operand_punctuation): Handle '~'.
784 (mips_init_print_operand_punct): Treat '~' as a punctuation character.
785 (mips_output_sync_loop): New function.
786 (mips_override_options): Make -march=r10000 imply -mfix-r10000.
787 Make -mfix-r10000 require branch-likely instructions.
788 * config/mips/sync.md (sync_compare_and_swap<mode>): Use
789 mips_output_sync_loop.
790 (compare_and_swap_12): Likewise.
791 (sync_add<mode>): Likewise.
792 (sync_<optab>_12): Likewise.
793 (sync_old_<optab>_12): Likewise.
794 (sync_new_<optab>_12): Likewise.
795 (sync_nand_12): Likewise.
796 (sync_old_nand_12): Likewise.
797 (sync_new_nand_12): Likewise.
798 (sync_sub<mode>): Likewise.
799 (sync_old_add<mode>): Likewise.
800 (sync_old_sub<mode>): Likewise.
801 (sync_new_add<mode>): Likewise.
802 (sync_new_sub<mode>): Likewise.
803 (sync_<optab><mode>): Likewise.
804 (sync_old_<optab><mode>): Likewise.
805 (sync_new_<optab><mode>): Likewise.
806 (sync_nand<mode>): Likewise.
807 (sync_old_nand<mode>): Likewise.
808 (sync_new_nand<mode>): Likewise.
809 (sync_lock_test_and_set<mode>): Likewise.
810 (test_and_set_12): Likewise.
812 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
814 * gcc.c (cc1_options): Fix comment.
816 2008-11-15 Jakub Jelinek <jakub@redhat.com>
819 * c-typeck.c (build_unary_op): Don't call get_unwidened. Use
820 argtype instead of result_type.
822 2008-11-14 Adam Nemet <anemet@caviumnetworks.com>
824 * ira-int.h (struct ira_loop_tree_node): Improve comments for
825 subloop_next/next and subloops/childen fields.
827 2008-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
829 * config/spu/spu-elf.h (STANDARD_STARTFILE_PREFIX_2): Disable default.
830 (STANDARD_INCLUDE_DIR): Redefine to "/include".
831 (LOCAL_INCLUDE_DIR): Undefine.
832 * config/spu/t-spu-elf (NATIVE_SYSTEM_HEADER_DIR): Define.
834 2008-11-14 Vladimir Makarov <vmakarov@redhat.com>
836 PR rtl-optimization/37397
837 * ira-int.h (struct ira_allocno): New member bad_spill_p.
838 (ALLOCNO_BAD_SPILL_P): New macro.
840 * ira-color.c (push_allocnos_to_stack): Check ALLOCNO_BAD_SPILL_P.
842 * ira-build.c (ira_create_allocno): Initialize ALLOCNO_BAD_SPILL_P.
843 (create_cap_allocno, propagate_allocno_info,
844 remove_unnecessary_allocnos): Set up or update ALLOCNO_BAD_SPILL_P.
845 (update_bad_spill_attribute): New function.
846 (ira_build): Call it.
848 * ira-costs.c (record_reg_classes): Set up ALLOCNO_BAD_SPILL_P.
850 2008-11-14 Jakub Jelinek <jakub@redhat.com>
852 PR tree-optimization/38104
853 * gimplify.c (gimple_regimplify_operands): Add referenced vars
854 before calling mark_symbols_for_renaming, not after it.
856 2008-11-14 Kaz Kojima <kkojima@gcc.gnu.org>
858 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Revert last change.
859 (OVERRIDE_OPTIONS): Likewise.
861 2008-11-14 Maxim Kuvyrkov <maxim@codesourcery.com>
862 Andrew Stubbs <ams@codesourcery.com>
863 Gunnar Von Boehn <gunnar@genesi-usa.com>
866 * config/m68k/m68k.md (addsi3_5200): Add a new alternative preferring
867 the shorter LEA insn over ADD.L where possible.
869 2008-11-14 Thomas Schwinge <tschwinge@gnu.org>
871 * configure.ac (gcc_cv_libc_provides_ssp): Also consider GNU/Hurd
872 systems, which are assumend to always provide SSP-support in glibc.
873 Also consider GNU/kFreeBSD, GNU/kNetBSD systems in the `*-*-linux*'
875 * configure: Regenerate.
877 2008-11-14 Jakub Jelinek <jakub@redhat.com>
880 * function.c (gimplify_parameters): For callee copies parameters,
881 move TREE_ADDRESSABLE flag from the PARM_DECL to the local copy.
883 2008-11-13 Thomas Schwinge <tschwinge@gnu.org>
886 * config.gcc (*-*-gnu*): Move Alpha parts into the `alpha*-*-gnu*',
887 x86 parts into the `i[34567]86-*-linux*' and parts that are
888 independent of the processor architecture into the `*-*-linux*' cases.
889 (*-*-linux*): Consider `linux.opt' only for Linux-based configurations.
890 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Redefine.
891 (TARGET_OS_CPP_BUILTINS, LINK_SPEC): Don't redefine.
892 [TARGET_LIBC_PROVIDES_SSP] (TARGET_THREAD_SSP_OFFSET): Undefine.
893 * config/gnu.h (NO_IMPLICIT_EXTERN_C): Don't redefine.
894 (HURD_TARGET_OS_CPP_BUILTINS): Don't define, but instead...
895 (LINUX_TARGET_OS_CPP_BUILTINS): Redefine.
897 2008-11-13 Ruan Beihong <ruanbeihong@gmail.com>
899 * config/mips/loongson.md (<u>div<mode>3, <u>mod<mode>3): New patterns.
900 * config/mips/loongson2ef.md (ls2_imult): Handle imul3nc.
901 (ls2_idiv): Likewise idiv3.
902 (ls2_prefetch): New reservation.
903 * config/mips/mips.h (ISA_HAS_PREFETCH): Add TARGET_LOONGSON_2EF.
904 * config/mips/mips.md (type): Add imul3nc and idiv3.
905 (length): Handle idiv3.
906 (any_mod): New code_iterator.
907 (u): Handle MOD and UMOD.
908 (mul<mode>3): Generate mul<mode>3_mul3_ls2ef on Loongson targets.
909 (prefetch): Handle TARGET_LOONGSON_2EF.
911 2008-11-13 Jakub Jelinek <jakub@redhat.com>
914 * dwarf2out.c (prune_unused_types_walk_local_classes): New function.
915 (prune_unused_types_walk): Call it for non-perennial local classes.
916 Set die_mark to 2 if recursing on children. If die_mark is 1 on
917 entry, just set it to 2 and recurse on children, don't walk attributes
920 2008-11-13 Martin Michlmayr <tbm@cyrius.com>
922 * c-common.c (warn_about_parentheses): Add missing whitespace
925 2008-11-13 Paul Brook <paul@codesourcery.com>
927 * doc/invoke.texi: Document --fix-cortex-m3.
928 * config/arm/arm.c (arm_override_options): Set fix_cm3_ldrd if
929 Cortex-M3 cpu is selected.
930 (output_move_double): Avoid overlapping base register and first
931 destination register when fix_cm3_ldrd.
932 * config/arm/arm.opt: Add mfix-cortex-m3-ldrd.
934 2008-11-13 Jakub Jelinek <jakub@redhat.com>
937 * gimple.h (gimple_range_check_failed): Remove prototype.
938 * gimple.c (gimple_check_failed): Don't check GCC_VERSION
940 (gimple_range_check_failed): Removed.
942 2008-11-13 Andrew Haley <aph@redhat.com>
945 * mcf.c (CAP_INFINITY): Use HOST_WIDEST_INT maximum, not GCC specific
948 2008-11-12 Jakub Jelinek <jakub@redhat.com>
952 2007-05-07 Mike Stump <mrs@apple.com>
953 * doc/invoke.texi (Warning Options): Document that -Wempty-body
954 also checks for and while statements in C++.
956 2008-11-12 Dodji Seketeli <dodji@redhat.com>
959 * cgraph.h: New abstract_and_needed member to struct cgraph_node.
960 * cgraphunit.c (cgraph_analyze_functions): Flag abstract functions
961 - which clones are reachable - as "abstract and needed".
962 * cgraph.c (cgraph_release_function_body): If a node is
963 "abstract and needed", do not release its DECL_INITIAL() content
964 that will be needed to emit debug info.
966 2008-11-12 Steve Ellcey <sje@cup.hp.com>
969 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Use this macro
970 to set HAVE_GETIPINFO.
971 * aclocal.m4: Include ../config/unwind_ipinfo.m4.
972 * configure: Regenerate.
973 * config.in: Regenerate.
975 2008-11-12 Jack Howarth <howarth@bromo.med.uc.edu>
978 * gcc/config.gcc: Use darwin9.h on darwin10 as well.
980 2008-11-12 Jakub Jelinek <jakub@redhat.com>
983 2008-10-21 Jakub Jelinek <jakub@redhat.com>
984 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.
986 2008-11-12 Jason Merrill <jason@redhat.com>
989 * c-common.c (c_common_signed_or_unsigned_type): Remove C++
992 2008-11-12 Anatoly Sokolov <aesok@post.ru>
994 * config/avr/avr.c (avr_mcu_t): Add atmega16hvb, atmega32hvb,
995 atmega4hvd, atmega8hvd, atmega64c1, atmega64m1, atmega16u4 and
997 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
998 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1000 2008-11-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1002 * gcc/config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Remove
1003 packed-stack special handling.
1004 (FRAME_ADDR_RTX): Add definition.
1006 2008-11-12 Jakub Jelinek <jakub@redhat.com>
1009 * fold-const.c (native_encode_string): New function.
1010 (native_encode_expr): Use it for STRING_CST.
1012 2008-11-12 DJ Delorie <dj@redhat.com>
1014 * config/m32c/cond.md (cond_to_int peephole2): Don't eliminate the
1015 insns if the intermediate value will be used later.
1017 2008-11-12 Andreas Schwab <schwab@suse.de>
1019 * config/m68k/m68k.c (print_operand): Mask off extra extension
1020 bits when writing out the representation of real values.
1022 2008-11-12 Ira Rosen <irar@il.ibm.com>
1024 PR tree-optimization/38079
1025 * tree-vect-analyze.c (vect_analyze_data_refs): Replace dump_file
1028 2008-11-12 Jakub Jelinek <jakub@redhat.com>
1031 * c-pretty-print.c (pp_c_complex_expr): New function.
1032 (pp_c_postfix_expression) <case COMPLEX_EXPR>: Call it.
1035 * expr.c (expand_expr_addr_expr_1): If EXP needs bigger alignment
1036 than INNER and INNER is a constant, forcibly align INNER as much
1039 2008-11-11 Richard Sandiford <rdsandiford@googlemail.com>
1041 * cse.c (fold_rtx): Remove redundant gen_rtx_CONST.
1043 2008-11-11 Richard Sandiford <rdsandiford@googlemail.com>
1045 PR rtl-optimization/37363
1046 * simplify-rtx.c (simplify_plus_minus): Don't create
1047 (const (minus ...)) expresisons.
1049 2008-11-11 Eric Botcazou <ebotcazou@adacore.com>
1051 * ira-lives.c (process_bb_node_lives): Restore EH_RETURN_DATA_REGNO
1054 2008-11-10 Catherine Moore <clm@codesourcery.com>
1056 * config.gcc (mips64vrel-*-elf*): Include the tm_file
1058 * config/mips/linux.h (LINUX_DRIVER_SELF_SPECS): New.
1059 (BASE_DRIVER_SELF_SPECS): Remove.
1060 (DRIVER_SELF_SPECS): New definition.
1061 * config/mips/elfoabi.h: (DRIVER_SELF_SPECS): Include
1062 BASE_DRIVER_SELF_SPECS.
1063 * config/mips/sde.h: Likewise.
1064 * config/mips/iris6.h: Likewise.
1065 * config/mips/vr.h: Likewise.
1066 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): New.
1068 2008-11-10 Vladimir Makarov <vmakarov@redhat.com>
1070 PR rtl-optimizations/37948
1071 * ira-int.h (struct ira_allocno_copy): New member constraint_p.
1072 (ira_create_copy, ira_add_allocno_copy): New parameter.
1074 * ira-conflicts.c (process_regs_for_copy): New parameter. Pass it
1075 to ira_add_allocno_copy.
1076 (process_reg_shuffles, add_insn_allocno_copies): Pass a new
1077 parameter to process_regs_for_copy.
1078 (propagate_copies): Pass a new parameter to ira_add_allocno_copy.
1079 Fix typo in passing second allocno to ira_add_allocno_copy.
1081 * ira-color.c (update_conflict_hard_regno_costs): Use head of
1082 coalesced allocnos list.
1083 (assign_hard_reg): Ditto. Check that assigned allocnos are not in
1085 (add_ira_allocno_to_bucket): Rename to add_allocno_to_bucket.
1086 (add_ira_allocno_to_ordered_bucket): Rename to
1087 add_allocno_to_ordered_bucket.
1088 (push_ira_allocno_to_stack): Rename to push_allocno_to_stack. Use
1089 head of coalesced allocnos list.
1090 (push_allocnos_to_stack): Remove calculation of ALLOCNO_TEMP.
1091 Check that it is aready calculated.
1092 (push_ira_allocno_to_spill): Rename to push_ira_allocno_to_spill.
1093 (setup_allocno_left_conflicts_num): Use head of coalesced allocnos
1095 (coalesce_allocnos): Do extended coalescing too.
1097 * ira-emit.c (add_range_and_copies_from_move_list): Pass a new
1098 parameter to ira_add_allocno_copy.
1100 * ira-build.c (ira_create_copy, ira_add_allocno_copy): Add a new
1102 (print_copy): Print copy origination too.
1104 * ira-costs.c (scan_one_insn): Use alloc_pref for load from
1107 2008-11-10 Kaz Kojima <kkojima@gcc.gnu.org>
1109 PR rtl-optimization/37514
1110 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set
1111 flag_ira_share_spill_slots to 2 if it's already non-zero.
1112 (OVERRIDE_OPTIONS): Clear flag_ira_share_spill_slots if
1113 flag_ira_share_spill_slots is 2.
1115 2008-11-10 Kevin Buettner <kevinb@redhat.com>
1117 * config/m32c/prologue.md (prologue_enter_16): Set FB to SP - 2.
1118 (prologue_enter_32): Set FB to SP - 4.
1120 2008-11-10 DJ Delorie <dj@redhat.com>
1122 * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add ImB
1123 constraint for single-bit-clear in lower byte of HI constant, vs
1124 Imb which just ignores the upper byte.
1125 * config/m32c/predicates.md (m32c_1mask8_operand): Use it.
1126 * config/m32c/bitops.md (andhi3_16, andhi3_24): Use it.
1127 (iorhi3_16): Check for single bit set, not single bit clear.
1129 2008-11-10 Janis Johnson <janis187@us.ibm.com>
1131 * doc/sourcebuild.texi (Torture Tests): Fix formatting for bullets.
1133 * doc/sourcebuild.texi (Torture Tests): Fix formatting in example.
1135 2008-11-10 Eric Botcazou <ebotcazou@adacore.com>
1137 * calls.c (store_unaligned_arguments_into_pseudos): Deal only with
1138 values living in memory and use more precise alignment information.
1140 2008-11-10 Jakub Jelinek <jakub@redhat.com>
1143 * tree-mudflap.c (mf_build_check_statement_for): Split then_block
1144 after __mf_check call if the call must end a bb.
1146 2008-11-10 Ralph Loader <suckfish@ihug.co.nz>
1150 * combine.c (force_to_mode): Do not process vector types.
1152 * rtlanal.c (nonzero_bits1): Do not process vector types.
1153 (num_sign_bit_copies1): Likewise.
1155 2008-11-09 Thomas Schwinge <tschwinge@gnu.org>
1157 * config/i386/gnu.h: Add copyright and licensing header.
1158 * config/gnu.h: Likewise.
1160 2008-11-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
1162 * fwprop.c (fwprop_done): Call df_remove_problem.
1164 2008-11-07 Sebastian Pop <sebastian.pop@amd.com>
1167 * tree-scalar-evolution.c (instantiate_scev_1): Return
1168 chrec_dont_know for VL_EXP_CLASS_P.
1170 2008-11-06 Uros Bizjak <ubizjak@gmail.com>
1172 * reg-stack.c (reg_to_stack): Add missing braces in memset
1175 2008-11-06 Andrew Stubbs <ams@codesourcery.com>
1177 * config/arm/bpabi.h (PROFILE_HOOK): New undef.
1178 (NO_PROFILE_COUNTERS): New define.
1180 2008-11-06 David Edelsohn <edelsohn@gnu.org>
1183 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Define.
1185 2008-11-06 Kazu Hirata <kazu@codesourcery.com>
1188 * config/sparc/constraints.md (D): New.
1189 * config/sparc/predicates.md (const_double_or_vector_operand): New.
1190 * config/sparc/sparc.c (sparc_extra_constraint_check): Handle the
1192 * config/sparc/sparc.md (*movdf_insn_sp32_v9, *movdf_insn_sp64):
1193 Use the 'D' constraint in addition to 'F' in some alternatives.
1194 (DF splitter): Generalize for V64mode.
1195 * doc/md.texi (SPARC): Document the 'D' constraint.
1197 2008-11-06 Uros Bizjak <ubizjak@gmail.com>
1199 * reg-stack.c (reg_to_stack): Generate +QNaN using real_nan.
1201 2008-11-06 Ben Elliston <bje@au.ibm.com>
1203 * gcc.c: Remove ancient comment about a bug in Sun cc.
1205 2008-11-05 Janis Johnson <janis187@us.ibm.com>
1207 * doc/sourcebuild.texi (Torture Tests): Add ADDITIONAL_TORTURE_OPTIONS.
1209 2008-11-06 Ben Elliston <bje@au.ibm.com>
1211 * config/rs6000/rs6000.c (rs6000_override_options): Comment fix.
1213 2008-11-06 Ben Elliston <bje@au.ibm.com>
1215 * config/rs6000/rs6000.opt (mwarn-cell-microcode): Improve option
1218 2008-11-05 Hans-Peter Nilsson <hp@axis.com>
1221 * config/cris/cris.c (cris_order_for_addsi3): Test for !REG_P, not
1224 2008-11-05 Martin Jambor <mjambor@suse.cz>
1227 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't turn
1228 pointer arithmetics into array_ref if the array is accessed
1229 through an indirect_ref.
1231 2008-11-05 Richard Guenther <rguenther@suse.de>
1234 * tree-ssa.c (useless_type_conversion_p_1): Check different restrict
1235 qualified pointer conversion before stripping qualifiers.
1236 * gimplify.c (create_tmp_from_val): Use correctly qualified type.
1237 * tree-flow.h (may_propagate_address_into_dereference): Declare.
1238 * tree-ssa-ccp.c (may_propagate_address_into_dereference): New
1241 * tree-ssa-forwprop.c (rhs_to_tree): Remove useless conversions,
1242 properly canonicalize binary ops.
1243 (forward_propagate_addr_expr_1): Use
1244 may_propagate_address_into_dereference.
1246 2008-11-05 Uros Bizjak <ubizjak@gmail.com>
1249 * reg-stack.c (subst_stack_regs_pat) [MINUS, DIV, MULT, PLUS]:
1250 Initialize uninitialized input registers with a NaN.
1252 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
1256 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
1258 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
1262 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
1263 exits and conditions.
1264 * testsuite/gcc.dg/graphite/pr37943.c: New.
1266 2008-11-04 Jakub Jelinek <jakub@redhat.com>
1267 Andrew Pinski <andrew_pinski@playstation.sony.com>
1270 * c-common.c (warn_for_sign_compare): For complex result_type
1271 use component's type.
1273 2008-11-04 Jakub Jelinek <jakuB@redhat.com>
1275 * print-tree.c (print_node): Use code instead of TREE_CODE (node).
1277 * print-tree.c (print_node): Don't print DECL_INITIAL
1281 * c-common.c (parse_optimize_options): Save and restore
1282 flag_strict_aliasing around decode_options call.
1284 2008-11-04 Uros Bizjak <ubizjak@gmail.com>
1286 * config/i386/driver-i386.c (enum vendor_signatures): New enum.
1287 (host_detect_local_cpu): Use it instead of casted strings to
1288 compare vendor signatures.
1290 2008-11-03 Mikael Pettersson <mikpe@it.uu.se>
1293 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Only add libgcc_s.a
1294 or libgcc_eh.a to spec if ENABLE_SHARED_LIBGCC.
1296 2008-11-03 Catherine Moore <clm@codesourcery.com>
1298 * config/mips.c (mips_conditional_register_usage): Handle the
1299 DSP control register.
1300 * doc/extend.texi: Document the DSP control register.
1302 2008-11-03 Steve Ellcey <sje@cup.hp.com>
1303 Jakub Jelinek <jakub@redhat.com>
1305 * omp-low.c (expand_omp_for_generic): If iter_type has different
1306 precision than type and type is a pointer type, cast n1 and n2
1307 first to an integer type with the same precision as pointers
1308 and only afterwards to iter_type.
1310 2008-11-03 Richard Sandiford <rdsandiford@googlemail.com>
1312 * config/arm/arm.md (UNSPEC_PIC_BASE): Update documentation.
1313 (UNSPEC_GOTSYM_OFF): New unspec.
1314 (pic_add_dot_plus_four): Simplify the UNSPEC_PIC_BASE operands.
1315 (pic_add_dot_plus_eight): Likewise.
1316 (tls_load_dot_plus_eight): Likewise. Update peephole2.
1317 * config/arm/thumb2.md (pic_load_dot_plus_four): Simplify the
1318 UNSPEC_PIC_BASE operands.
1319 * config/arm/arm.c (arm_load_pic_register): Use UNSPEC_GOTSYM_OFF.
1320 (arm_output_addr_const_extra): Handle it.
1322 2008-11-03 Eric Botcazou <ebotcazou@adacore.com>
1324 * config/i386/i386.c (classify_argument) <ARRAY_TYPE>: Promote partial
1325 integer class to full integer class if the offset is not word-aligned.
1327 2008-11-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1330 * loop-doloop.c (doloop_modify): Add from_mode argument that says what
1332 (doloop_optimize): Update call to doloop_modify.
1334 2008-11-03 Eric Botcazou <ebotcazou@adacore.com>
1336 * tree-sra.c (bitfield_overlaps_p): Fix oversight.
1338 2008-11-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1341 * configure.ac (gcc_cv_ld_ro_rw_mix): Move before
1342 gcc_cv_as_cfi_directive.
1343 (gcc_cv_as_cfi_directive) [*-*-solaris*]: Check if linker supports
1344 merging read-only and read-write sections or assembler emits
1345 read-write .eh_frame sections.
1346 * configure: Regenerate.
1348 2008-11-03 Nathan Froyd <froydnj@codesourcery.com>
1351 2008-10-31 Nathan Froyd <froydnj@codesourcery.com>
1353 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
1355 (rs6000_emit_prologue): Invert logic.
1356 * config/rs6000/rs6000.md (*save_gpregs_<mode>): Use explicit
1357 (reg:P 11) instead of match_operand.
1358 (*save_fpregs_<mode>): Likewise.
1359 (*restore_gpregs_<mode>): Likewise.
1360 (*return_and_restore_gpregs_<mode>): Likewise.
1361 (*return_and_restore_fpregs_<mode>): Likewise.
1362 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit
1363 (reg:P 11) insted of match_operand.
1364 (*restore_gpregs_spe): Likewise.
1365 (*return_and_restore_gpregs_spe): Likewise.
1367 2008-11-03 Harsha Jagasia <harsha.jagasia@amd.com>
1369 PR tree-optimization/37684
1370 * gcc.dg/graphite/pr37684.c: New.
1371 * graphite.c (exclude_component_ref): New.
1372 (is_simple_operand): Call exclude_component_ref.
1374 2008-11-03 Sebastian Pop <sebastian.pop@amd.com>
1376 PR tree-optimization/36908
1377 * testsuite/gcc.dg/tree-ssa/pr36908.c: New.
1378 * tree-loop-distribution.c (number_of_rw_in_rdg): New.
1379 (number_of_rw_in_partition): New.
1380 (partition_contains_all_rw): New.
1381 (ldist_gen): Do not distribute when one of the partitions
1382 contains all the memory operations.
1384 2008-11-03 Sebastian Pop <sebastian.pop@amd.com>
1386 * cfghooks.c (split_block): Set BB_IRREDUCIBLE_LOOP and
1387 EDGE_IRREDUCIBLE_LOOP.
1389 2008-11-03 Bernd Schmidt <bernd.schmidt@analog.com>
1391 * config/bfin/bfin.c (bfin_optimize_loop): Properly handle case
1392 where we have one entry point in the loop which isn't the head.
1394 2008-11-03 Richard Guenther <rguenther@suse.de>
1397 * tree-data-ref.c (split_constant_offset_1): Fix tuplification.
1399 2008-11-03 Jakub Jelinek <jakub@redhat.com>
1402 * passes.c (execute_one_pass): Don't look at cfun->curr_properties
1403 for ipa and simple ipa passes.
1405 2008-11-02 Richard Guenther <rguenther@suse.de>
1407 PR tree-optimization/37542
1408 * tree-ssa-pre.c (fully_constant_expression): Handle more cases.
1409 * tree-ssa-sccvn.c (vn_get_expr_for): Fix typo.
1410 (vn_nary_op_lookup_stmt): Adjust for unary reference trees.
1411 (vn_nary_op_insert_stmt): Likewise.
1412 (visit_use): Likewise.
1414 2008-11-02 Anatoly Sokolov <aesok@post.ru>
1416 * config/avr/avr.md (UNSPEC_SWAP): Remove constants.
1418 (rotlqi3, *rotlqi3_4, rotlhi3, *rotlhi3_8,
1419 rotlsi3, *rotlsi3_8, *rotlsi3_16, *rotlsi3_24): New patterns.
1420 (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, ashlqi3_l_const4,
1421 ashlqi3_l_const5, ashlqi3_l_const6, lshrqi3_const4, lshrqi3_const5,
1422 lshrqi3_const6, lshrqi3_l_const4, lshrqi3_l_const4, lshrqi3_l_const6
1423 peephole2's): Replace unspec with rotate.
1424 * config/avr/avr.c (avr_rtx_costs): Add ROTATE.
1426 2008-11-02 Richard Guenther <rguenther@suse.de>
1428 PR tree-optimization/37991
1429 * tree-ssa-sccvn.h (copy_vuses_from_stmt): Remove.
1430 * tree-ssa-sccvn.c (copy_vuses_from_stmt): Make static.
1431 (set_ssa_val_to): Print if the value changed.
1432 (simplify_binary_expression): Strip useless conversions.
1434 2008-11-01 Hans-Peter Nilsson <hp@axis.com>
1437 * config/cris/cris.c (cris_rtx_costs) <MULT>: Return 0 for an ADDI
1440 2008-11-01 Richard Guenther <rguenther@suse.de>
1443 * builtins.c (fold_builtin_strspn): Return a size_t.
1444 (fold_builtin_strcspn): Likewise.
1446 2008-10-31 Nathan Froyd <froydnj@codesourcery.com>
1448 * config/rs6000/rs6000.c (rs6000_file_start): Output gnu
1449 attribute for struct return convention.
1451 2008-10-31 Nathan Froyd <froydnj@codesourcery.com>
1453 * config/rs6000/crtsavres.asm: Really, really delete.
1455 2008-10-31 Nathan Froyd <froydnj@codesourcery.com>
1457 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
1459 (rs6000_emit_prologue): Invert logic.
1460 * config/rs6000/rs6000.md (*save_gpregs_<mode>): Use explicit
1461 (reg:P 11) instead of match_operand.
1462 (*save_fpregs_<mode>): Likewise.
1463 (*restore_gpregs_<mode>): Likewise.
1464 (*return_and_restore_gpregs_<mode>): Likewise.
1465 (*return_and_restore_fpregs_<mode>): Likewise.
1466 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit
1467 (reg:P 11) insted of match_operand.
1468 (*restore_gpregs_spe): Likewise.
1469 (*return_and_restore_gpregs_spe): Likewise.
1471 2008-10-28 Luis Machado <luisgpm@br.ibm.com>
1473 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add "dumpbase" to the
1474 list of word switches that take args.
1476 2008-10-30 Jakub Jelinek <jakub@redhat.com>
1478 * config/s390/s390.c (s390_mark_symbol_ref_as_used): New function.
1479 (s390_output_pool_entry): Call it through for_each_rtx.
1482 * expr.c (store_constructor): For vectors, if target is a MEM, use
1483 target's MEM_ALIAS_SET instead of elttype alias set.
1485 2008-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
1488 * config/sh/sh.c (untangle_mova): Return -1 when NEW_MOVA has
1491 2008-10-29 David Edelsohn <edelsohn@gnu.org>
1494 * config/rs6000/predicates.md (word_offset_memref_operand):
1495 Restructure code and look inside auto-inc/dec addresses.
1497 2008-10-29 Steve Ellcey <sje@cup.hp.com>
1500 * libgcov.c ( __gcov_indirect_call_profiler): Check
1501 TARGET_VTABLE_USES_DESCRIPTORS.
1503 2008-10-29 Stefan Schulze Frielinghaus <xxschulz@de.ibm.com>
1505 * config/spu/spu.h (FRAME_GROWS_DOWNWARD): Define.
1506 (INITIAL_FRAME_POINTER_OFFSET): Remove.
1507 * config/spu/spu.c (spu_initial_elimination_offset): Calculate new
1508 offset if eliminating soft frame pointer.
1509 * config/spu/spu.md (stack_protect_set, stack_protect_test)
1510 (stack_protect_test_si): Add initial machine description
1511 for Stack Smashing Protector
1513 2008-10-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1516 * c-common.c (min_precision): Move to...
1517 * tree.c (tree_int_cst_min_precision): ... to here. Renamed.
1518 * tree.h (tree_int_cst_min_precision): Declare.
1519 * c-common.h (min_precision): Delete declaration.
1520 * fold-const.c (tree_binary_nonnegative_warnv_p): Handle
1521 multiplication of non-negative integer constants.
1522 * c-decl.c (check_bitfield_type_and_width): Rename min_precision to
1523 tree_int_cst_min_precision.
1524 (finish_enum): Likewise.
1526 2008-10-29 Joseph Myers <joseph@codesourcery.com>
1529 * convert.c (convert_to_real): Do not optimize conversions of
1530 binary arithmetic operations between binary and decimal
1531 floating-point types. Consider mode of target type in determining
1532 decimal type for arithmetic. Unless
1533 flag_unsafe_math_optimizations, do not optimize binary conversions
1534 where this may change rounding behavior.
1535 * real.c (real_can_shorten_arithmetic): New.
1536 * real.h (real_can_shorten_arithmetic): Declare.
1538 2008-10-29 Bernd Schmidt <bernd.schmidt@analog.com>
1540 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315,
1541 ENABLE_WA_05000257, ENABLE_WA_05000283, ENABLE_WA_05000315): New.
1542 * config/bfin/bfin.c (bfin_cpus): Add these workaround bits as
1544 (must_save_p): For some workarounds, interrupts need to clobber a
1546 (expand_prologue_reg_save, expand_epilogue_reg_restore): Save LC0
1547 and LC1 for WA_05000257.
1548 (expand_interrupt_handler_prologue): Add dummy read of CHIPID for
1549 WA_05000283 and WA_05000315.
1550 * config/bfin/bfin.md (UNSPEC_VOLATILE_DUMMY): New constant.
1551 (movbi): Add alternative to set CC to 1; improve code for setting
1553 (dummy_load): New pattern.
1555 2008-10-29 Jakub Jelinek <jakub@redhat.com>
1558 * expmed.c (extract_bit_field_1): If int_mode_for_mode returns
1559 BLKmode for non-memory, convert using a wider MODE_INT mode
1563 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Only split bbs
1564 that haven't been removed yet.
1566 2008-10-29 Bernd Schmidt <bernd.schmidt@analog.com>
1568 * config/bfin/bfin.c (struct machine_function): New member
1569 has_loopreg_clobber.
1570 (bfin_expand_movmem): Set it when generating memcpy insns.
1571 (n_regs_saved_by_prologue, expand_prologue_reg_save,
1572 expand_epilogue_reg_restore): If we have hardware loops,
1573 memcpy insns (indicated by has_loopreg_clobber) or function
1574 calls, we need to save the loop registers.
1576 2008-10-28 H.J. Lu <hongjiu.lu@intel.com>
1578 * config/i386/i386.c (core2_cost): Fix typos in comments.
1580 2008-10-28 Jakub Jelinek <jakub@redhat.com>
1583 * combine.c (make_compound_operation): Don't call make_extraction with
1584 non-positive length.
1585 (simplify_shift_const_1): Canonicalize count even if complement_p.
1587 2008-10-28 Joseph Myers <joseph@codesourcery.com>
1589 * convert.c (strip_float_extensions): Do not remove or introduce
1590 conversions between binary and decimal floating-point types.
1592 2008-10-28 Jakub Jelinek <jakub@redhat.com>
1595 * fold-const.c (distribute_bit_expr): Convert common, left and
1596 right arguments to type.
1598 2008-10-28 Nick Clifton <nickc@redhat.com>
1600 * config/mn10300/mn10300.h (CALL_REALLY_USED_REGISTERS): Define.
1601 * config/mn10300/mn10300.c (fp_regs_to_save): Test the
1602 call_really_used_regs array rather than the call_used_regs array.
1603 (mn10300_get_live_callee_saved_regs, expand_prologue,
1604 expand_epilogue, output_tst): Likewise.
1606 2008-10-27 Jakub Jelinek <jakub@redhat.com>
1609 * df-scan.c (df_bb_refs_collect): Don't handle EH_USES here.
1610 (df_get_entry_block_def_set): Neither here.
1611 (df_get_regular_block_artificial_uses): Add EH_USES registers.
1613 PR tree-optimization/37879
1614 * predict.c (tree_estimate_probability): Check if last_stmt is
1615 non-NULL before dereferencing it.
1617 2008-10-27 Vladimir Makarov <vmakarov@redhat.com>
1619 * ira-int.h (ira_allocno): Add member updated_cover_class_cost.
1620 (ALLOCNO_UPDATED_COVER_CLASS_COST): New.
1621 (ira_fast_allocation): Remove the prototype.
1623 * ira-color.c (update_copy_costs, allocno_cost_compare_func,
1624 assign_hard_reg, calculate_allocno_spill_cost): Use updated costs.
1625 (color_pass): Modify the updated costs.
1626 (ira_color): Rename to color. Make it static.
1627 (ira_fast_allocation): Rename to fast_allocation. Make it static.
1628 (ira_color): New function.
1630 * ira-conflicts.c (process_regs_for_copy): Propagate hard reg cost
1633 * ira-lives.c (last_call_num, allocno_saved_at_call): New
1635 (set_allocno_live, clear_allocno_live, mark_ref_live,
1636 mark_ref_dead): Invalidate corresponding element of
1637 allocno_saved_at_call.
1638 (process_bb_node_lives): Increment last_call_num. Setup
1639 allocno_saved_at_call. Don't increase ALLOCNO_CALL_FREQ if the
1640 allocno was already saved.
1641 (ira_create_allocno_live_ranges): Initiate last_call_num and
1642 allocno_saved_at_call.
1644 * ira-build.c (ira_create_allocno): Initiate
1645 ALLOCNO_UPDATED_COVER_CLASS_COST.
1646 (create_cap_allocno, propagate_allocno_info,
1647 remove_unnecessary_allocnos): Remove setting updated costs.
1648 (ira_flattening): Set up ALLOCNO_UPDATED_COVER_CLASS_COST.
1650 * ira.c (ira): Don't call ira_fast_allocation.
1652 * ira-costs.c (setup_allocno_cover_class_and_costs): Don't set up
1655 2008-10-27 Vladimir Makarov <vmakarov@redhat.com>
1658 * ira-conflicts.c (process_regs_for_copy): Remove class subset check.
1660 * ira-int.h (ira_hard_regno_cover_class): New.
1662 * ira-lives.c (mark_reg_live, mark_reg_dead,
1663 process_bb_node_lives): Use ira_hard_regno_cover_class.
1665 * ira.c (reg_class ira_hard_regno_cover_class): New global variable.
1666 (setup_hard_regno_cover_class): New function.
1667 (ira_init): Call setup_hard_regno_cover_class.
1669 * ira-costs.c (cost_class_nums): Add comment.
1670 (find_allocno_class_costs): Initiate cost_class_nums.
1671 (setup_allocno_cover_class_and_costs): Check cost_class_nums.
1673 2008-10-27 Vladimir Makarov <vmakarov@redhat.com>
1676 * ira-build.c (copy_live_ranges_to_removed_store_destinations):
1677 Rename to copy_info_to_removed_store_destinations. Propagate
1678 conflict hard regs and register stack attribute.
1680 2008-10-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1683 * pa.c (function_arg_padding): Pad complex and vector types
1684 upward in 64-bit runtime.
1685 (function_arg): Use BLKmode for PARALLEL in 64-bit runtime.
1687 2008-10-26 Matthias Klose <doko@ubuntu.com>
1689 * doc/install.texi: Document requirements on antlr.
1691 2008-10-25 Richard Sandiford <rdsandiford@googlemail.com>
1693 * config/mips/mips.h (REG_ALLOC_ORDER): Put call-clobbered registers
1696 2008-10-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1699 * function.c (locate_and_pad_parm): If FUNCTION_ARG_ADJUST_OFFSET
1700 is defined, use it to modify the constant offset.
1702 * doc/tm.texi (FUNCTION_ARG_OFFSET): Document new macro.
1704 * config/spu/spu.h (FUNCTION_ARG_OFFSET): New macro to move char
1705 and short arguments to the correct location as mandated by the ABI.
1707 2008-10-24 Kaz Kojima <kkojima@gcc.gnu.org>
1709 PR rtl-optimization/37769
1710 * regmove.c (optimize_reg_copy_2): Update REG_INC note if needed.
1712 2008-10-24 Kaz Kojima <kkojima@gcc.gnu.org>
1714 * config/sh/t-sh: Use $(MULTILIB_CFLAGS) when compiling to
1715 unwind-dw2-Os-4-200.o.
1717 2008-10-24 Joseph Myers <joseph@codesourcery.com>
1719 * c-typeck.c (enum impl_conv): Remove ic_argpass_nonproto.
1720 (convert_for_assignment): Remove ic_argpass_nonproto cases.
1722 2008-10-24 Jakub Jelinek <jakub@redhat.com>
1724 PR tree-optimization/36038
1725 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): For pointer bases
1726 add sizetype IV with initial value zero instead of pointer type.
1728 2008-10-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
1731 * value-prof.c (gimple_stringop_fixed_value): Use parentheses
1732 around bit operation.
1733 * profile.c (is_edge_inconsistent): Likewise.
1734 * fold-const.c (truth_value_p): Move from here...
1735 * tree.h (truth_value_p): ... to here.
1736 * c-tree.h (c_expr): Update description of original_code.
1737 * c-typeck.c (parser_build_unary_op): Set original_code.
1738 (parser_build_binary_op): Update call to warn_about_parentheses.
1739 * c-common.c (warn_about_parentheses): Take two additional
1740 arguments of the operands. Use a switch. Quote operators
1741 appropriately. Define macro APPEARS_TO_BE_BOOLEAN_EXPR_P.
1742 Add warning about !x | y and !x & y.
1743 * c-common.h (warn_about_parentheses): Update declaration.
1745 2008-10-24 Jakub Jelinek <jakub@redhat.com>
1747 * Makefile.in (lang_checks_parallelized, check_gcc_parallelize,
1748 check_p_tool, check_p_vars, check_p_subno, check_p_comma,
1749 check_p_subwork, check_p_numbers, check_p_subdir, check_p_subdirs):
1751 (check-subtargets, check-%-subtargets, check-parallel-%): New targets.
1752 (check-%): For test targets listed in lang_checks_parallelized
1753 if -j is used and RUNTESTFLAGS doesn't specify tests to execute,
1754 run the testing in multiple make goals, possibly parallel, and
1755 afterwards run dg-extract-results.sh to merge the sum and log files.
1757 2008-10-24 Richard Sandiford <rdsandiford@googlemail.com>
1759 * config/mips/mips.c (mips_canonicalize_move_class): New function.
1760 (mips_move_to_gpr_cost): Likewise.
1761 (mips_move_from_gpr_cost): Likewise.
1762 (mips_register_move_cost): Make more fine-grained.
1764 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
1766 * graphite.c (graphite_apply_transformations): Check for
1767 -fgraphite-identity.
1768 * toplev.c (process_options): Add graphite_identity.
1769 * tree-ssa-loop.c (gate_graphite_transforms): Add graphite_identity.
1771 2008-10-23 Bernd Schmidt <bernd.schmidt@analog.com>
1773 * config/bfin/bfin.c (bdesc_2arg): Add mulhisill, mulhisilh,
1774 mulhisihl and mulhisihh builtins.
1776 From Jie Zhang <jie.zhang@analog.com>
1777 * config/bfin/bfin.md (composev2hi): Put operands into vector
1780 2008-10-22 Chao-ying Fu <fu@mips.com>
1782 * config/mips/mips.opt (msmartmips): Accept -mno-smartmips.
1784 2008-10-22 Bernd Schmidt <bernd.schmidt@analog.com>
1786 From Mike Frysinger <michael.frysinger@analog.com>
1787 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF512,
1788 BFIN_CPU_BF514, BFIN_CPU_BF516, and BFIN_CPU_BF518.
1789 * config/bfin/bfin.c (bfin_cpus[]): Add 0.0 for bf512, bf514, bf516,
1790 and bf518. Add 0.2 for bf522, bf523, bf524, bf526, and bf527.
1791 Add 0.6 for bf533, bf532, and bf531. Add 0.5 for bf538 and bf539.
1792 Add 0.2 for bf542, bf544, bf547, bf548, and bf549.
1793 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF512__
1794 for BFIN_CPU_BF512, __ADSPBF514__ for BFIN_CPU_BF514, __ADSPBF516__
1795 for BFIN_CPU_BF516, and __ADSPBF518__ for BFIN_CPU_BF518. Define
1796 __ADSPBF51x__ for all of them.
1797 * config/bfin/elf.h (LIB_SPEC): Select proper linker scripts for
1798 -mcpu bf512, bf514, bf516, and bf518.
1799 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1800 bf512-none, bf514-none, bf516-none, and bf518-none.
1801 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1802 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1803 * doc/invoke.texi (Blackfin Options): Document that
1804 -mcpu now accepts bf512, bf514, bf516, and bf518.
1806 2008-10-22 Jakub Jelinek <jakub@redhat.com>
1809 * fold-const.c (build_range_type): For 1 .. signed_max
1810 range call build_nonstandard_inter_type if signed_type_for
1811 returned a type with bigger precision.
1813 2008-10-22 Richard Guenther <rguenther@suse.de>
1815 * tree.def (COMPLEX_TYPE): Constrain element type.
1816 * tree.c (build_complex_type): Assert that.
1817 * tree-ssa-structalias.c (could_have_pointers): Complex types
1818 cannot have pointers.
1820 2008-10-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1823 * c-typeck.c (convert_for_assignment): Do not give declaration's
1824 location for builtins. Spell out which type was expected and which
1827 2008-10-22 Nick Clifton <nickc@redhat.com>
1829 * config/frv/frv.h (HARD_REGNO_RENAME_OK): Define. Do not allow
1830 the fdpic register to be a target when running in fdpic mode.
1832 2008-10-22 Rafael Espindola <espindola@google.com>
1834 * ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the
1835 newly created statements.
1837 2008-10-22 Kaz Kojima <kkojima@gcc.gnu.org>
1840 * config/sh/sh.c (sh_hard_regno_mode_ok): New function.
1841 * config/sh/sh.h (HARD_REGNO_MODE_OK): Use it.
1842 * config/sh/sh-protos.h (sh_hard_regno_mode_ok): Declare.
1844 2008-10-22 Jakub Jelinek <jakub@redhat.com>
1847 * doc/invoke.texi: Fix spelling of -mlarge-data-threshold option.
1848 Adjust -mcmodel=medium description for 2005-07-31 changes.
1850 2008-10-22 Jan Hubicka <jh@suse.cz>
1851 Jakub Jelinek <jakub@redhat.com>
1854 * doc/invoke.texi: Remove references to obsoleted -d dumps.
1856 2008-10-21 Richard Henderson <rth@redhat.com>
1859 * emit-rtl.c (get_spill_slot_decl): Export.
1860 * emit-rtl.h (get_spill_slot_decl): Declare.
1861 * var-tracking.c (vt_add_function_parameters): Relax assertion
1862 on the contents of MEM_EXPR in a PARM_DECL to include a spill slot.
1864 2008-10-21 Bob Wilson <bob.wilson@acm.org>
1866 * var-tracking.c (insn_stack_adjust_offset_pre_post): If insn has a
1867 REG_FRAME_RELATED_EXPR note, examine the pattern from the note instead
1870 2008-10-21 Adam Nemet <anemet@caviumnetworks.com>
1873 * tree-ssa-ccp.c (ccp_fold_builtin): Only allow one argument to be
1874 processed by get_maxval_strlen.
1876 2008-10-21 David Edelsohn <edelsohn@gnu.org>
1879 * tree.c (get_file_function_name): Copy first_global_object_name.
1880 Centralize call to clean_symbol_name.
1882 2008-10-21 Sandra Loosemore <sandra@codesourcery.com>
1884 * config.gcc (powerpc-*): Make t-ppcgas imply usegas.h.
1885 * config/svr4.h (SVR4_ASM_SPEC): New.
1886 (ASM_SPEC): Inherit from SVR4_ASM_SPEC.
1887 * config/rs6000/sysv4.h (ASM_SPEC): Inherit from SVR4_ASM_SPEC.
1889 * doc/invoke.texi (Option Summary): Add -T to linker options.
1890 (Link Options): Document -T.
1892 2008-10-21 Jakub Jelinek <jakub@redhat.com>
1894 * tree-inline.c (tree_inlinable_function_p): Remove tuples
1897 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.
1900 * c-decl.c (merge_decls): Don't call outlining_inline_function hook.
1902 2008-10-20 Daniel Berlin <dberlin@dberlin.org>
1904 * tree-ssa-pre.c (insert_into_preds_of_block): Don't rewrite constant
1907 2008-10-20 Tobias Schlüter <tobi@gcc.gnu.org>
1909 * doc/install.texi: Fix typos in previous patch.
1911 2008-10-19 Tobias Schlüter <tobi@gcc.gnu.org>
1913 * doc/install.texi: Document in-tree building of gcc and mpfr.
1915 2008-10-19 Richard Guenther <rguenther@suse.de>
1917 * tree-ssa-alias.c (may_alias_p): Remove bogus shortcut.
1919 2008-10-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1922 * c-decl.c (finish_enum): Convert non-integer enumerators to enum type.
1923 (build_enumerator): Convert enumerators that fit in integer to
1926 2008-10-18 Uros Bizjak <ubizjak@gmail.com>
1928 * config/i386/i386.md (unnamed peephole2): Do not force memory
1929 operands of arith or logical instructions into registers for
1930 non-TARGET_READ_MODIFY targets.
1932 (ffs_cmove): Change operand 0 predicate to register_operand.
1933 Change operand 1 predicate to nonimmediate_operand.
1935 (*ffs_no_cmove): Change operand 0 predicate to register_operand.
1937 2008-10-18 Richard Guenther <rguenther@suse.de>
1939 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Guard
1940 VIEW_CONVERT_EXPR case against invalid gimple.
1942 2008-10-17 Andreas Krebbel <krebbel1@de.ibm.com>
1944 * c-parser.c (c_parser_binary_expression): Silence the
1945 uninitialized variable warning emitted for binary_loc.
1947 2008-10-16 Daniel Berlin <dberlin@dberlin.org>
1949 * tree-ssa-pre.c (phi_translate_set): Add constants to phi
1952 2008-10-16 Joseph Myers <joseph@codesourcery.com>
1955 * c-typeck.c (build_unary_op): Use omit_one_operand for
1956 IMAGPART_EXPR of real argument.
1958 2008-10-16 Jakub Jelinek <jakub@redhat.com>
1960 PR tree-optimization/37664
1961 * fold-const.c (fold_binary): When optimizing comparison with
1962 highest or lowest type's value, don't consider TREE_OVERFLOW.
1964 2008-10-16 David Edelsohn <edelsohn@gnu.org>
1967 * Makefile.in (coverage.o): Depend on $(TM_P_H).
1968 * coverage.c: Include tm_p.h.
1969 * config/rs6000/x-aix (jc1): Override LDFLAGS.
1970 * config/rs6000/xcoff.h (ASM_GENERATE_INTERNAL_LABEL): Strip
1971 dollar signs from PREFIX.
1972 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
1973 instead of manual strip_name_encoding.
1975 2008-10-16 Richard Guenther <rguenther@suse.de>
1978 * tree-ssa.c (useless_type_conversion_p_1): Do not treat
1979 volatile qualified functions or methods as relevant.
1981 2008-10-16 Jakub Jelinek <jakub@redhat.com>
1983 PR tree-optimization/37525
1984 * tree.c (int_fits_type_p): Rewrite using double_int. Zero extend
1985 sizetype unsigned constants, both in the case of C and bounds.
1987 2008-10-15 Jan Hubicka <jh@suse.cz>
1989 * ira-emit.c (change_regs): Return false when replacing reg by itself.
1991 2008-10-14 Vladimir Makarov <vmakarov@redhat.com>
1994 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Check
1995 HARD_REGNO_CALL_PART_CLOBBERED.
1997 2008-10-15 Vladimir Makarov <vmakarov@redhat.com>
2000 * ira-lives.c (mark_early_clobbers): Remove.
2001 (make_pseudo_conflict, check_and_make_def_use_conflicts,
2002 check_and_make_def_conflicts,
2003 make_early_clobber_and_input_conflicts,
2004 mark_hard_reg_early_clobbers): New functions.
2005 (process_bb_node_lives): Call
2006 make_early_clobber_and_input_conflicts and
2007 mark_hard_reg_early_clobbers. Make hard register inputs live again.
2009 * doc/rtl.texi (clobber): Change descriotion of RA behaviour for
2010 early clobbers of pseudo-registers.
2012 2008-10-15 Vladimir Makarov <vmakarov@redhat.com>
2015 * ira-build.c (ira_flattening): Recalculate
2016 ALLOCNO_TOTAL_NO_STACK_REG_P and ALLOCNO_TOTAL_CONFLICT_HARD_REGS
2017 from the scratch instead of the propagation.
2019 2008-10-15 Richard Sandiford <rdsandiford@googlemail.com>
2021 * doc/rtl.texi (const_double): Remove the "addr" operand.
2022 Describe CONST_DOUBLE_* macros under const_double rather
2024 (const_fixed): Fix the operand description.
2025 (const): Add an @findex directive.
2026 (CONST0_RTX, CONST1_RTX, CONST2_RTX): Move description
2027 after the constant rtl table.
2028 (fix): Combine floating-point and fixed-point descriptions.
2030 * sched-deps.c (sched_analyze_2): Remove reference to
2033 2008-10-15 Richard Sandiford <rdsandiford@googlemail.com>
2035 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Handle
2037 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Return true
2038 for UNSPEC_GOTSYM_OFFs.
2039 * config/mn10300/mn10300.md (UNSPEC_GOTSYM_OFF): New unspec.
2040 (add_GOT_to_pic_reg): Use it.
2041 * config/mn10300/constraints.md (S): Allow UNSPEC_GOTSYM_OFF.
2043 2008-10-15 Jan Sjodin <jan.sjodin@amd.com>
2044 Harsha Jagasia <harsha.jagasia@amd.com>
2046 PR tree-optimization/37485
2047 * graphite.c (gmp_cst_to_tree): Moved.
2048 (iv_stack_entry_is_constant): New.
2049 (iv_stack_entry_is_iv): New.
2050 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
2051 (loop_iv_stack_insert_constant): New.
2052 (loop_iv_stack_pop): Use new datatpype.
2053 (loop_iv_stack_get_iv): Same.
2054 (loop_iv_stack_get_iv_from_name): Same.
2055 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
2056 (loop_iv_stack_patch_for_consts): New.
2057 (loop_iv_stack_remove_constants): New.
2058 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
2059 (translate_clast): Call loop_iv_stack_patch_for_consts and
2060 loop_iv_stack_remove_constants.
2061 (gloog): Use new datatype. Redirect construction edge to end
2062 block to avoid accidental deletion.
2063 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
2065 (union iv_stack_entry_data): New. Data in iv stack entry.
2066 (struct iv_stack_entry): New. Datatype for iv stack entries.
2068 2008-10-15 Sebastian Pop <sebastian.pop@amd.com>
2070 * tree-data-ref.c (stmt_simple_memref_p): Fix memleak.
2071 * graphite.c (free_scop): Same.
2072 (build_scops): Same.
2073 (free_scattering): New.
2074 (build_cloog_prog): Call free_scattering.
2075 (patch_phis_for_virtual_defs): Fix memleak.
2076 (graphite_trans_bb_strip_mine): Same.
2077 (limit_scops): Same.
2079 2008-10-15 Sebastian Pop <sebastian.pop@amd.com>
2080 Harsha Jagasia <harsha.jagasia@amd.com>
2082 PR tree-optimization/37828
2083 * graphite.c (graphite_trans_loop_block): Do not loop block
2084 single nested loops.
2086 2008-10-15 Sebastian Pop <sebastian.pop@amd.com>
2088 PR tree-optimization/37686
2089 * tree-loop-linear.c (linear_transform_loops): Build a
2090 loop nest vector. Pass it to lambda_compute_access_matrices.
2091 * tree-data-ref.h (struct access_matrix): Store the loop nest
2092 relative to which it encodes the information.
2093 (AM_LOOP_NEST_NUM): Renamed AM_LOOP_NEST.
2094 (am_vector_index_for_loop): Reimplemented: iterate over the
2095 loop nest for finding the loop index in the access matrix.
2096 (lambda_compute_access_matrices): Update declaration.
2097 * lambda-code.c (build_access_matrix): Pass the loop nest and
2099 (lambda_compute_access_matrices): Same.
2101 2008-10-15 Andreas Krebbel <krebbel1@de.ibm.com>
2103 * config/s390/s390.h: (TARGET_DFP): This requires TARGET_HARD_FLOAT.
2104 * config/s390/s390.md: Replace "TARGET_HARD_FLOAT &&
2105 TARGET_(HARD_)DFP" with only TARGET_(HARD_)DFP since this
2106 already implies hard float. Also fix several insn condition
2107 with TARGET_DFP which shall require TARGET_HARD_DFP instead.
2109 2008-10-15 David Edelsohn <edelsohn@gnu.org>
2112 Based on patches by Laurent Vivier.
2113 * xcoffout.h (DBX_FINISH_STABS): Translate dollar sign to underscore.
2114 * config/rs6000/rs6000-protos.h (rs6000_xcoff_strip_dollar): Declare.
2115 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Translate
2116 dollar sign to underscore.
2117 (ASM_OUTPUT_EXTERNAL): Same.
2118 (ASM_OUTPUT_LABELREF): New.
2119 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): New.
2121 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Define.
2122 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Define.
2123 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Define.
2124 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Define.
2126 2008-10-15 Jakub Jelinek <jakub@redhat.com>
2128 PR tree-optimization/36881
2129 * tree-switch-conversion.c (check_final_bb): For flag_pic, check
2130 that each value doesn't need runtime relocations, for !flag_pic
2131 check that each value is just a valid initializer constant.
2133 2008-10-14 Richard Sandiford <rdsandiford@googlemail.com>
2135 * config/mips/mips.h (reg_class): Remove HI_AND_GR_REGS,
2136 LO_AND_GR_REGS, HI_AND_FP_REGS, COP0_AND_GR_REGS, COP2_AND_GR_REGS,
2137 COP3_AND_GR_REGS, ALL_COP_REGS and ALL_COP_AND_GR_REGS.
2138 Add GR_AND_MD0_REGS, GR_AND_MD1_REGS, GR_AND_MD_REGS and
2140 (REG_CLASS_NAMES): Update accordingly.
2141 (REG_CLASS_CONTENTS): Likewise. Use the class name in the comments,
2142 rather than an unpredictable descriptive string.
2143 * config/mips/mips.c (mips_register_move_cost): Remove comment.
2144 (mips_register_move_cost): Check for specific COP*_REGS classes,
2145 instead of ALL_COP_AND_GR_REGS.
2146 (mips_ira_cover_classes): New function.
2147 (mips_secondary_reload_class): Remove MTLO and MTHI workarounds.
2148 (TARGET_IRA_COVER_CLASSES): Define.
2150 2008-10-14 Douglas Gregor <doug.gregor@gmail.com>
2153 * tree.c (build_type_attribute_qual_variant): Hash on the
2154 unqualified type, and don't overwrite an existing
2155 (type_hash_eq): Make the TYPE_NAME of the types significant, to
2156 allow distinguishing between wchar_t and its underlying type. This
2157 also means that we'll retain a little more typedef information.
2159 2008-10-14 Andrey Belevantsev <abel@ispras.ru>
2160 Dmitry Melnik <dm@ispras.ru>
2161 Dmitry Zhurikhin <zhur@ispras.ru>
2162 Alexander Monakov <amonakov@ispras.ru>
2163 Maxim Kuvyrkov <maxim@codesourcery.com>
2165 * target.h (struct gcc_target): Update prototypes of needs_block_p
2167 * haifa-sched.c (create_check_block_twin): Update calls to the above.
2168 * sel-sched.c (create_speculation_check): Likewise.
2169 * doc/tm.texi: Provide documentation for new target hooks.
2171 * config/ia64/ia64.c: Include sel-sched.h. Rewrite speculation hooks.
2172 (ia64_gen_spec_insn): Removed.
2173 (get_spec_check_gen_function, insn_can_be_in_speculative_p,
2174 ia64_gen_spec_check): New static functions.
2175 (ia64_alloc_sched_context, ia64_init_sched_context,
2176 ia64_set_sched_context, ia64_clear_sched_context,
2177 ia64_free_sched_context, ia64_get_insn_spec_ds,
2178 ia64_get_insn_checked_ds, ia64_skip_rtx_p): Declare functions.
2179 (ia64_needs_block_p): Change prototype.
2180 (ia64_gen_check): Rename to ia64_gen_spec_check.
2181 (ia64_adjust_cost): Rename to ia64_adjust_cost_2. Add new parameter
2182 into declaration, add special memory dependencies handling.
2183 (TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
2184 TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2185 TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_SPEC_DS,
2186 TARGET_SCHED_GET_INSN_CHECKED_DS, TARGET_SCHED_SKIP_RTX_P):
2187 Define new target hooks.
2188 (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
2189 (ia64_optimization_options): Turn on selective scheduling with -O3,
2190 disable -fauto-inc-dec. Set mflag_sched_control_spec to true by
2191 default with selective scheduling.
2192 (ia64_override_options): Initialize align_loops and align_functions
2193 to 32 and 64, respectively. Set global selective scheduling flags
2194 according to target-dependent flags.
2195 (rtx_needs_barrier): Support UNSPEC_LDS_A.
2196 (group_barrier_needed): Use new mstop-bit-before-check flag.
2198 (dfa_state_size): Make global.
2199 (spec_check_no, max_uid): Remove.
2200 (mem_ops_in_group, current_cycle): New variables.
2201 (ia64_sched_init): Disable checks for !SCHED_GROUP_P after reload.
2202 Initialize new variables.
2203 (is_load_p, record_memory_reference): New functions.
2204 (ia64_dfa_sched_reorder): Lower priority of loads when limit is
2206 (ia64_variable_issue): Change use of current_sched_info to
2207 sched_deps_info. Update comment. Note if a load or a store is issued.
2208 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Require a cycle
2209 advance if maximal number of loads or stores was issued on current
2211 (scheduled_good_insn): New static helper function.
2212 (ia64_dfa_new_cycle): Assert that last_scheduled_insn is set when
2213 a group barrier is needed. Fix vertical spacing. Guard the code
2214 doing state transition with last_scheduled_insn check.
2215 Mark that a stop bit should be before current insn if there was a
2216 cycle advance. Update current_cycle and mem_ops_in_group.
2217 (ia64_h_i_d_extended): Change use of current_sched_info to
2218 sched_deps_info. Reallocate stops_p by larger chunks.
2219 (struct _ia64_sched_context): New structure.
2220 (ia64_sched_context_t): New typedef.
2221 (ia64_alloc_sched_context, ia64_init_sched_context,
2222 ia64_set_sched_context, ia64_clear_sched_context,
2223 ia64_free_sched_context): New static functions.
2224 (gen_func_t): New typedef.
2225 (get_spec_load_gen_function): New function.
2226 (SPEC_GEN_EXTEND_OFFSET): Declare.
2227 (ia64_set_sched_flags): Check common_sched_info instead of *flags.
2228 (get_mode_no_for_insn): Change the condition that prevents use of
2229 special hardware registers so it can now handle pseudos.
2230 (get_spec_unspec_code): New function.
2231 (ia64_skip_rtx_p, get_insn_spec_code, ia64_get_insn_spec_ds,
2232 ia64_get_insn_checked_ds, ia64_gen_spec_load): New static functions.
2233 (ia64_speculate_insn, ia64_needs_block_p): Support branchy checks
2234 during selective scheduling.
2235 (ia64_speculate_insn): Use ds_get_speculation_types when
2236 determining whether we need to change the pattern.
2237 (SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET): Declare.
2238 (ia64_spec_check_src_p): Support new speculation/check codes.
2239 (struct bundle_state): New field.
2240 (issue_nops_and_insn): Initialize it.
2241 (insert_bundle_state): Minimize mid-bundle stop bits.
2242 (important_for_bundling_p): New function.
2243 (get_next_important_insn): Use important_for_bundling_p.
2244 (bundling): When shifting TImode from unimportant insns, ignore
2245 also group barriers. Assert that best state is found before
2246 the backward bundling pass. Print number of mid-bundle stop bits.
2247 Minimize mid-bundle stop bits. Check correct calculation of
2248 mid-bundle stop bits.
2249 (ia64_sched_finish, final_emit_insn_group_barriers): Fix formatting.
2250 (final_emit_insn_group_barriers): Emit stop bits before insns starting
2252 (sel2_run): New variable.
2253 (ia64_reorg): When flag_selective_scheduling2 is set, run the
2254 selective scheduling pass instead of schedule_ebbs.
2256 * config/ia64/ia64.md (speculable1, speculable2): New attributes.
2257 (UNSPEC_LDS_A): New UNSPEC.
2258 (movqi_internal, movhi_internal, movsi_internal, movdi_internal,
2259 movti_internal, movsf_internal, movdf_internal,
2260 movxf_internal): Make visible. Add speculable* attributes.
2261 (output_c_nc): New mode attribute.
2262 (mov<mode>_speculative_a, zero_extend<mode>di2_speculative_a,
2263 mov<mode>_nc, zero_extend<mode>di2_nc,
2264 advanced_load_check_nc_<mode>): New insns.
2265 (zero_extend*): Add speculable* attributes.
2267 * config/ia64/ia64.opt (msched_fp_mem_deps_zero_cost): New option.
2268 (msched-stop-bits-after-every-cycle): Likewise.
2269 (msched-max-memory-insns, msched-max-memory-insns-hard-limit):
2271 (msched-spec-verbose): Remove.
2272 (msched-prefer-non-data-spec-insns,
2273 msched-prefer-non-control-spec-insns,
2274 msched-count-spec-in-critical-path,
2275 msel-sched-dont-check-control-spec): Use Target Report Var
2276 instead of Common Report Var.
2278 * config/ia64/itanium2.md: Remove incorrect bypass.
2280 * config/ia64/t-ia64 (ia64.o): Add dependency on sel-sched.h.
2282 2008-10-14 Jakub Jelinek <jakub@redhat.com>
2285 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
2286 and -fhelp=separate.
2288 2008-10-14 Ben Elliston <bje@au.ibm.com>
2290 * config/rs6000/rs6000.md (cell_micro): Fix formatting.
2292 2008-10-13 Joseph Myers <joseph@codesourcery.com>
2294 * combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on
2297 2008-10-13 Matthias Klose <doko@ubuntu.com>
2299 * config/pa/linux-atomic.c: Work around missing header file
2300 for hppa64-linux-gnu targets.
2302 2008-10-13 Andrew Pinski <andrew_pinski@playstation.sony.com>
2303 Kaushal Kantawala <Kaushal_Kantawala@playstation.sony.com>
2304 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
2305 Grace Cao <grace_cao@playstation.sony.com>
2307 * doc/invoke.texi (-mgen-cell-microcode): Document.
2308 (-mwarn-cell-microcode): Document.
2309 * cfglayout.c (locator_location): Export.
2310 * rtl.h (locator_location): Define prototype.
2311 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand):
2313 * rs6000/rs6000-protos.h (rs6000_final_prescan_insn): Define prototype.
2314 * config/rs6000/rs6000.opt (mgen-cell-microcode): New option.
2315 (mwarn-cell-microcode): New option.
2316 * rs6000/rs6000.c (rs6000_cell_dont_microcode): Delete unused variable.
2317 (rs6000_override_options): Set rs6000_gen_cell_microcode if tuning for
2318 cell and not already set.
2319 Turn off string instructions if not generating cell microcode.
2320 (rs6000_final_prescan_insn): New function that warns about microcoded
2322 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Define.
2323 * config/rs6000/rs6000.md
2324 Replace cc_reg_not_cr0_operand with cc_reg_not_micro_cr0_operand if
2325 the instruction would have been microcoded on the Cell. Set
2326 cell_micro to always on unnamed patterns for the string instructions.
2327 (cell_micro): Update definition, remove load/store conditional
2329 (sign_extend:DI): Define new pattern for non microcoded version.
2330 (sign_extend:SI): Likewise.
2331 (compare (div:P)): Set cell_micro to not.
2332 (andsi3): Define as an expand.
2333 (andsi3_mc): New pattern.
2334 (andsi3_nomc): New pattern.
2335 (andsi3_internal0_nomc): New pattern.
2336 (andsi3_internal2): Rename to ...
2337 (andsi3_internal2_mc): this and enable iff generating microcode.
2338 (andsi3_internal3): Rename to ...
2339 (andsi3_internal3_mc): this and enable iff generating microcode.
2340 (andsi3_internal4): Enable iif generating microcode.
2341 (andsi3_internal5): Rename to ..
2342 (andsi3_internal5_mc): this and enable iff generating microcode.
2343 (andsi3_internal5_nomc): New pattern.
2344 (extzvdi_internal1): Enable iff generating microcode.
2345 (extzvdi_internal2): Likewise.
2346 (rotlsi3_internal7): Set cell_micro to always if non immediate form.
2347 (anddi3): Change to expand.
2348 (anddi3_mc): Rename from anddi3.
2349 (anddi3_no_mc): New pattern.
2350 (anddi3_internal2): Rename to ..
2351 (anddi3_internal2_mc): this and enable iff generating microcode.
2352 (anddi3_internal2_nomc): New pattern.
2353 (anddi3_internal3): Rename to ..
2354 (anddi3_internal3_mc): this and enable iff generating microcode.
2355 (anddi3_internal3_nomc): New pattern.
2356 (movti_string): Set cell_micro to always if TARGET_STRING.
2357 (stmsi8): Set cell_micro to always.
2363 (stmsi8_power): Likewise.
2364 (stmsi7_power): Likewise.
2365 (stmsi6_power): Likewise.
2366 (stmsi5_power): Likewise.
2367 (stmsi4_power): Likewise.
2368 (stmsi3_power): Likewise.
2369 (movsi_update2): Enable iff generating microcode.
2370 (movhi_update3): Likewise.
2371 (lmw): Set cell_micro to always.
2373 2008-10-13 Richard Sandiford <rdsandiford@googlemail.com>
2375 * config/s390/s390.md (UNSPEC_POOL_OFFSET): New constant.
2376 * config/s390/s390.c (machine_function): Remove
2377 decomposed_literal_pool_addresses_ok_p.
2378 (s390_decompose_address): Check for UNSPEC_POOL_OFFSET instead of
2379 the difference of two labels.
2380 (s390_output_addr_const_extra): Handle UNSPEC_POOL_OFFSET.
2381 (s390_pool_offset): New function.
2382 (s390_find_constant, s390_find_execute, s390_dump_pool): Use it.
2383 (s390_reorg): Don't set decomposed_literal_pool_addresses_ok_p.
2385 2008-10-13 Nathan Froyd <froydnj@codesourcery.com>
2387 * doc/install.texi (powerpc-*-*): Require binutils 2.15.
2388 (powerpc*-*-linux-gnu*): Describe.
2389 * config/rs6000/ppc-asm.h (HIDDEN_FUNC): New macro.
2390 * config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2391 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2392 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2393 config/rs6000/e500crtres32gpr.asm,
2394 config/rs6000/e500crtres64gpr.asm,
2395 config/rs6000/e500crtres64gprctr.asm,
2396 config/rs6000/e500crtrest32gpr.asm,
2397 config/rs6000/e500crtrest64gpr.asm,
2398 config/rs6000/e500crtresx32gpr.asm,
2399 config/rs6000/e500crtresx64gpr.asm,
2400 config/rs6000/e500crtsav32gpr.asm,
2401 config/rs6000/e500crtsav64gpr.asm,
2402 config/rs6000/e500crtsav64gprctr.asm,
2403 config/rs6000/e500crtsavg32gpr.asm,
2404 config/rs6000/e500crtsavg64gpr.asm,
2405 config/rs6000/e500crtsavg64gprctr.asm: Use it.
2406 * config/rs6000/crtsavres.asm: Really remove.
2408 2008-10-13 Kai Tietz <kai.tietz@onevision.com>
2411 * c-format.c (convert_format_name_to_system_name): Use
2412 TARGET_OVERRIDES_FORMAT_INIT.
2413 * config.gcc (extra_options): Add for mingw targets mingw.opt.
2414 * config/i386/mingw.opt: New.
2415 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_INIT): New.
2416 * config/i386/msformat-c.c (TARGET_OVERRIDES_FORMAT_INIT): New.
2417 (ms_printf_length_specs): Removed const specifier.
2418 * doc/tm.texi (TARGET_OVERRIDES_FORMAT_INIT): New.
2419 * doc/invoke.texi (Wno-pedantic-ms-format): New.
2421 2008-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2423 * builtins.c: Remove MPFR_VERSION_NUM(2,3,0) conditionals.
2424 * doc/install.texi: Bump recommended MPFR to 2.3.2.
2426 2008-10-12 Kenneth Zadeck <zadeck@naturalbridge.com>
2429 * df-scan.c (df_ref_change_reg_with_loc_1): Added test to make
2430 sure that ref has valid bb.
2432 2008-10-12 Richard Henderson <rth@redhat.com>
2435 * Makefile.in (reload1.o): Depend on EMIT_RTL_H.
2436 * alias.c (value_addr_p, stack_addr_p): Remove.
2437 (nonoverlapping_memrefs_p): Remove IRA special case.
2438 * emit-rtl.c (get_spill_slot_decl, set_mem_attrs_for_spill): New.
2439 * emit-rtl.h (set_mem_attrs_for_spill): Declare.
2440 * reload1.c (alter_reg): Use it.
2442 2008-10-12 Uros Bizjak <ubizjak@gmail.com>
2444 * config/i386/driver-i386.c (detect_caches_cpuid2): Use array
2445 of registers instead of eax, ebx, ecx and edx. Use for loop
2446 and check register for non-zero value before the call
2447 to decode_caches_intel.
2449 2008-10-11 Kenneth Zadeck <zadeck@naturalbridge.com>
2451 PR rtl-optimization/37448
2452 * df.h: (df_ref_class): New enum.
2453 (DF_REF_TYPE_NAMES, df_ref_extract): Removed.
2454 (struct df_ref): Replaced with union df_ref_d.
2455 (df_base_ref, df_artificial_ref, df_regular_ref, df_extract_ref):
2456 New members of df_ref_d union.
2457 (DF_REF_REAL_REG, DF_REF_REGNO, DF_REF_REAL_LOC, DF_REF_REG,
2458 DF_REF_LOC, DF_REF_BB, DF_REF_INSN_INFO, DF_REF_INSN,
2459 DF_REF_CLASS, DF_REF_TYPE, DF_REF_CHAIN, DF_REF_ID, DF_REF_FLAGS,
2460 DF_REF_ORDER, DF_REF_IS_ARTIFICIAL, DF_REF_NEXT_REG,
2461 DF_REF_PREV_REG, DF_REF_EXTRACT_WIDTH, DF_REF_EXTRACT_OFFSET,
2462 DF_REF_EXTRACT_MODE): Replaced definition to access union df_ref_d.
2463 (DF_MWS_REG_DEF_P, DF_MWS_REG_USE_P, DF_MWS_TYPE): New macros.
2464 (df_scan_bb_info, df_bb_regno_first_def_find,
2465 df_bb_regno_last_def_find, df_find_def, df_find_use,
2466 df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
2467 debug_df_ref, df_chain_create, df_chain_unlink, df_chain_copy,
2468 df_ref_create, df_ref_remove, df_compute_accessed_bytes,
2469 df_get_artificial_defs, df_get_artificial_uses, union_defs)
2470 Replaced struct df_ref * with df_ref.
2471 * df-scan.c (df_collection_rec, df_null_ref_rec,
2472 df_ref_chain_delete_du_chain, df_ref_chain_delete, df_install_ref,
2473 df_grow_ref_info, df_ref_create, df_reg_chain_unlink,
2474 df_ref_compress_rec, df_ref_remove, df_ref_chain_delete_du_chain,
2475 df_ref_chain_delete, df_free_collection_rec, df_insn_rescan,
2476 df_reorganize_refs_by_reg_by_reg,
2477 df_reorganize_refs_by_reg_by_insn, df_reorganize_refs_by_reg,
2478 df_ref_change_reg_with_loc_1, df_notes_rescan, df_swap_refs,
2479 df_sort_and_compress_refs, df_install_ref, df_install_refs,
2480 df_ref_record, df_get_conditional_uses, df_get_call_refs,
2481 df_bb_refs_record, df_exit_block_uses_collect,
2482 df_record_exit_block_uses, df_reg_chain_mark,
2483 df_reg_chain_verify_unmarked, df_refs_verify): Replaced struct
2484 df_ref * with df_ref.
2485 (df_ref_record, df_uses_record, df_ref_create_structure): Added
2486 df_ref_class parameter.
2487 (df_scan_problem_data): Added new pools for different types of refs.
2488 (df_scan_free_internal, df_scan_alloc, df_free_ref,
2489 df_ref_create_structure): Processed new ref pools.
2490 (df_scan_start_dump): Added counts of refs and insns.
2491 (df_ref_create, df_notes_rescan, df_def_record_1, df_uses_record,
2492 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
2493 df_entry_block_defs_collect, df_exit_block_uses_collect): Added
2494 code to pass df_ref_class down to ref creation functions.
2495 (df_reg_chain_unlink, df_ref_remove, df_ref_change_reg_with_loc_1,
2496 df_reg_chain_mark): Use macros to hide references to df_refs.
2497 (df_ref_chain_change_bb): Removed.
2498 (df_insn_change_bb): Remove calls to df_ref_insn_change_bb.
2499 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
2500 Enhanced to understand df_ref union structure.
2501 * fwprop.c (local_ref_killed_between_p, use_killed_between,
2502 all_uses_available_at, update_df, try_fwprop_subst,
2503 forward_propagate_subreg, forward_propagate_and_simplify,
2504 forward_propagate_into, fwprop, fwprop_addr): Replaced struct
2505 df_ref * with df_ref.
2506 (use_killed_between, all_uses_available_at): Use macros to hide
2507 references to df_refs.
2508 * regstat.c (regstat_bb_compute_ri,
2509 regstat_bb_compute_calls_crossed): Replaced struct df_ref * with
2511 * see.c (see_handle_relevant_defs, see_handle_relevant_uses,
2512 see_handle_relevant_refs, see_analyze_one_def,
2513 see_update_relevancy, see_propagate_extensions_to_uses): Replaced
2514 struct df_ref * with df_ref.
2515 * ra-conflict.c (record_one_conflict, clear_reg_in_live,
2516 global_conflicts): Replaced struct df_ref * with df_ref.
2517 * ddg.c (create_ddg_dep_from_intra_loop_link,
2518 add_cross_iteration_register_deps, build_inter_loop_deps):
2519 Replaced struct df_ref * with df_ref.
2520 (create_ddg_dep_from_intra_loop_link,
2521 add_cross_iteration_register_deps): Use macros to hide references
2523 * auto-inc-dec.c (find_inc, merge_in_block): Replaced struct
2524 df_ref * with df_ref.
2525 * df-core.c (df_bb_regno_first_def_find,
2526 df_bb_regno_last_def_find, df_find_def, df_find_use,
2527 df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
2528 debug_df_ref): Replaced struct df_ref * with df_ref.
2529 (df_mws_dump, df_ref_debug): Use macros to hide references to df_refs.
2530 * cse.c (cse_extended_basic_block): Replaced struct df_ref * with
2532 * web.c (union_defs, entry_register, replace_ref, web_main):
2533 Replaced struct df_ref * with df_ref.
2534 (union_defs, replace_ref): Use macros to hide references to df_refs.
2535 * global.c (compute_regs_asm_clobbered, build_insn_chain):
2536 Replaced struct df_ref * with df_ref.
2537 * ifcvt.c (dead_or_predicable): Replaced struct df_ref * with df_ref.
2538 * sel-sched-ir.c (maybe_downgrade_id_to_use, setup_id_reg_sets, ):
2539 Replaced struct df_ref * with df_ref.
2540 * ira-lives.c (mark_ref_live, def_conflicts_with_inputs_p,
2541 mark_ref_dead, process_bb_node_lives): Replaced struct df_ref *
2543 * local-alloc.c (block_alloc): Replaced struct df_ref * with df_ref.
2544 * df-byte-scan.c (df_compute_accessed_bytes_extract,
2545 df_compute_accessed_bytes_strict_low_part,
2546 df_compute_accessed_bytes_subreg, df_compute_accessed_bytes):
2547 Replaced struct df_ref * with df_ref.
2548 (df_compute_accessed_bytes): Use macros to hide references to df_refs.
2549 * init-regs.c (initialize_uninitialized_regs): Replaced struct
2550 df_ref * with df_ref.
2551 * loop-invariant.c (invariant_for_use, hash_invariant_expr_1,
2552 check_dependency, check_dependencies, record_uses): Replaced
2553 struct df_ref * with df_ref.
2554 (invariant_for_use, check_dependency): Use macros to hide
2555 references to df_refs.
2556 * loop-iv.c (iv_analysis_loop_init, iv_get_reaching_def,
2557 get_biv_step_1, get_biv_step, record_iv, iv_analyze_def,
2558 iv_analyze, biv_p): Replaced struct df_ref * with df_ref.
2559 (iv_analysis_loop_init, iv_get_reaching_def): Use macros to hide
2560 references to df_refs.
2561 * ira.c (compute_regs_asm_clobbered): Replaced struct df_ref *
2563 * combine.c (create_log_links): Replaced struct df_ref * with df_ref.
2564 * df-problems.c (df_rd_bb_local_compute_process_def,
2565 df_lr_bb_local_compute, df_live_bb_local_compute, df_chain_create,
2566 df_chain_unlink_1, df_chain_unlink, df_chain_copy,
2567 df_chain_remove_problem, df_chain_create_bb_process_use,
2568 df_chain_create_bb, df_chain_top_dump, df_chain_bottom_dump,
2569 df_byte_lr_check_regs, df_byte_lr_bb_local_compute,
2570 df_byte_lr_simulate_defs, df_byte_lr_simulate_uses,
2571 df_byte_lr_simulate_artificial_refs_at_top,
2572 df_byte_lr_simulate_artificial_refs_at_end, df_create_unused_note,
2573 df_note_bb_compute, df_note_add_problem, df_simulate_defs,
2574 df_simulate_uses, df_simulate_artificial_refs_at_end,
2575 df_simulate_artificial_refs_at_top): Replaced struct df_ref * with
2577 (df_chain_dump): Use macros to hide references to df_refs.
2578 * config/mips/mips.c (r10k_simplify_address): Replaced struct
2579 df_ref * with df_ref.
2580 * dce.c (mark_nonreg_stores, delete_corresponding_reg_eq_notes,
2581 mark_artificial_uses, mark_reg_dependencies,
2582 byte_dce_process_block): Replaced struct df_ref * with df_ref.
2584 2008-10-11 Eric Botcazou <ebotcazou@adacore.com>
2586 * tree.h (contains_packed_reference): Mention ARRAY_RANGE_REF in
2588 (array_ref_element_size): Likewise.
2589 (array_ref_low_bound): Likewise.
2590 (array_ref_up_bound): Likewise.
2591 * expr.c (contains_packed_reference): Likewise.
2592 (array_ref_element_size): Likewise.
2593 (array_ref_low_bound): Likewise.
2594 (array_ref_up_bound): Likewise.
2595 * tree-ssa-loop-ivopts.c (idx_contains_abnormal_ssa_name_p): Deal
2596 with ARRAY_RANGE_REF.
2597 (idx_find_step): Likewise.
2598 (idx_record_use): Likewise.
2599 (strip_offset_1): Likewise.
2600 (idx_remove_ssa_names): Likewise.
2602 2008-10-11 Uros Bizjak <ubizjak@gmail.com>
2603 Andi Kleen <ak@linux.intel.com>
2605 * config/i386/cpuid.h (__cpuid_count): New defines.
2606 * config/i386/driver-i386.c (struct cache_desc): New structure.
2607 (describe_cache): Use struct cache_desc to pass cache descriptions.
2608 (detect_l2_cache): Ditto. Rename from decode_l2_cache.
2609 (detect_caches_amd): Use struct cache_desc to describe caches.
2610 (decode_caches_intel): Use struct cache_desc to pass cache
2611 descriptions. Update descriptions to match latest (rev -032,
2612 December 2007) CPUID documentation. Do not check valid bit here.
2613 Check for Xeon MP value 0x49 problems.
2614 (detect_caches_cpuid2): New function, split from detect_caches_intel.
2615 Check valid bit before calling decode_caches_intel. Detect number
2616 of times to repeat CPUID instruction.
2617 (detect_caches_cpuid4): New function.
2618 (detect_caches_intel): Depending on max_level, call
2619 detect_caches_cpuid2 or detect_caches_cpuid4. Call detect_l2_cache
2620 only when other methods fail to provide valid L2 cache description.
2622 2008-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2625 * pa.md (call, call_value): Generate an rtx for register r4 and pass
2626 it to PIC call patterns.
2627 (call_symref_pic): Revise pattern to expose PIC register save. Remove
2628 code generation and attributes from pattern. Change peephole2 to
2629 split for noreturn case. Revise split pattern for non noreturn case.
2630 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
2631 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
2632 * pa.c (attr_length_call): Simplify extraction of call rtx. Add some
2635 2008-10-11 David Edelsohn <edelsohn@gnu.org>
2637 * config/rs6000/rs6000.md (aux_truncdfsf2): Remove TARGET_SINGLE_FLOAT.
2638 (addsf3, subsf3, mulsf3 ! TARGET_POWERPC): Remove TARGET_SINGLE_FLOAT
2640 (divdf3): Reformat long line.
2642 2008-10-11 Michael J. Eager <eager@eagercon.com>
2644 * config/rs6000/rs6000.c (rs6000_parse_fpu_option): Interpret
2646 (rs6000_handle_option): Process -mfpu options.
2647 * config/rs6000/rs6000.h: (TARGET_XILINX_FPU): New.
2648 (enum fpu_type_t): New.
2649 * config/rs6000/rs6000.md (attr fp_type): New. Include xfpu.md.
2650 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3, trunctfdf2): Set
2652 (floatsisf2): Remove TARGET_SINGLE_FPU condition.
2653 (floatdidf2): Add TARGET_SINGLE_FPU condition.
2654 * config/rs6000/rs6000.opt (-mfpu): New.
2655 (-mxilinx-fpu): New.
2656 * config/rs6000/sysv4.h: (DRIVER_SELF_SPECS): New.
2657 * config/rs6000/xfpu.h: New. Define TARGET_XILINX_FPU.
2658 * config/rs6000/xfpu.md: New. Define Xilinx pipeline.
2659 * gcc/config.gcc: powerpc-xilinx-eabi target: New.
2660 * gcc/doc/invoke.texi (RS/6000 and PowerPC Options): Add -mfpu option.
2662 2008-10-11 Jakub Jelinek <jakub@redhat.com>
2665 * config/rs6000/rs6000.c (rs6000_legitimize_address): Only create
2666 LO_SUM on Darwin if mode has just one unit.
2668 2008-10-10 H.J. Lu <hongjiu.lu@intel.com>
2671 * dwarf2out.c (mem_loc_descriptor): Use DRAP for vDRAP which
2672 has been optimized out.
2674 2008-10-10 Richard Sandiford <rdsandiford@googlemail.com>
2676 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Test PIC_ADDR_P
2677 instead of PIC_DIRECT_ADDR_P.
2678 (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
2679 (IS_LITERAL_OR_SYMBOLIC_S16_P, IS_LITERAL_OR_SYMBOLIC_U16_P): Delete.
2680 (IS_NON_EXPLICIT_CONSTANT_P): Don't test PIC_OFFSET_P.
2681 (PIC_OFFSET_P): Rename to...
2682 (PCREL_SYMOFF_P): ...this.
2683 (PIC_DIRECT_ADDR_P): Delete.
2684 (MOVI_SHORI_BASE_OPERAND_P): Check PCREL_SYMOFF_P instead of
2686 (OUTPUT_ADDR_CONST_EXTRA): Don't require unspecs to have a
2687 single argument. Handle UNSPEC_EXTRACT_S16, UNSPEC_EXTRACT_U16,
2688 UNSPEC_SYMOFF and UNSPEC_PCREL_SYMOFF.
2689 * config/sh/sh.c (print_operand): Remove CONST handling.
2690 (unspec_caller_rtx_p): Rewrite to use split_const and check
2691 the operands of UNSPEC bases.
2692 (fixup_mova): Replace (unspec [(minus A B)] UNSPEC_PIC)
2693 with (unspec [A B] UNSPEC_SYMOFF).
2694 (nonpic_symbol_mentioned_p): Check for UNSPEC_SYMOFF and
2695 UNSPEC_PCREL_SYMOFF.
2696 (sh_secondary_reload): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
2697 * config/sh/sh.md (UNSPEC_EXTRACT_S16): New unspec.
2698 (UNSPEC_EXTRACT_U16): Likewise.
2699 (UNSPEC_SYMOFF): Likewise.
2700 (UNSPEC_PCREL_SYMOFF): Likewise.
2701 (movsi_const): Use UNSPEC_EXTRACT_*16s to extract 16-bit portions
2703 (movsi_const_16bit): Likewise.
2704 (movdi_const, movdi_const_32bit, movdi_const_16bit): Likewise.
2705 (GOTaddr2picreg): Replace (unspec [(minus A (minus B pc))] UNSPEC_PIC)
2706 with (unspec [A B] UNSPEC_PCREL_SYMOFF).
2707 (sym_label2reg): Replace (minus (const (unspec [A] UNSPEC_PIC)) B)
2708 with (unspec [A B] UNSPEC_SYMOFF).
2709 (symPLT_label2reg): Replace (minus A (minus B pc)) with
2710 (unspec [A B] PCREL_UNSPEC_SYMOFF).
2711 * config/sh/constraints.md (Css): Check for an UNSPEC_EXTRACT_S16.
2712 (Csu): Likewise UNSPEC_EXTRACT_U16.
2713 (Csy): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
2714 (Cpg): Update after changes to IS_NON_EXPLICIT_CONSTANT_P.
2716 2008-10-10 Stepan Kasal <skasal@redhat.com>
2718 * gcc/doc/invoke.texi (Optimize Options): Fix typo in examples
2719 for loop strip mining and loop blocking.
2721 2008-10-10 Alexandre Oliva <aoliva@redhat.com>
2723 * fortran/trans-types.c (gfc_get_nodesc_array_type): Don't
2724 vary types depending on debug info.
2726 2008-10-10 Alexandre Oliva <aoliva@redhat.com>
2728 * c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME
2729 before ensuring it's already computed.
2731 2008-10-09 Jakub Jelinek <jakub@redhat.com>
2733 * rtl.h (locator_eq): New decl.
2734 * cfglayout.c (locator_scope): New function.
2735 (insn_scope): Use it.
2736 (locator_eq): New function.
2737 (fixup_reorder_chain): Search for last insn in src bb
2738 that has locator set or first insn in dest bb. Use
2739 locator_eq instead of == to compare locators.
2740 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
2741 * cfgcleanup.c (try_forward_edges): Use locator_eq instead of
2742 == to compare locators.
2744 * tree-ssa-live.c (remove_unused_locals): Mark all edge's goto_block
2746 * gimple-low.c (lower_function_body, lower_gimple_return,
2747 lower_builtin_setjmp): Set gimple_block on the newly created stmts.
2748 * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Only set
2749 goto_block on edges if goto_locus is known.
2752 * tree.h (get_object_alignment): Declare.
2753 * emit-rtl.c (set_mem_attributes_minus_bitpos): Call
2754 get_object_alignment if needed.
2755 * builtins.c (get_pointer_alignment): Move ADDR_EXPR operand
2757 (get_object_alignment): ... here. New function. Try harder to
2758 determine alignment from get_inner_reference returned offset.
2760 2008-10-08 Jakub Jelinek <jakub@redhat.com>
2762 * graphite.c (gloog): Don't call find_unreachable_blocks
2763 before delte_unreachable_blocks.
2765 * cfgexpand.c (expand_gimple_cond): Convert also goto_block and
2766 goto_locus of true_edge into RTL locator.
2768 2008-10-08 Uros Bizjak <ubizjak@gmail.com>
2770 * config/i386/i386.md (*jcc_btdi_rex64): Clobber FLAGS_REG.
2771 (*jcc_btdi_mask_rex64): Ditto.
2773 (*jcc_btsi_mask): Ditto.
2774 (*jcc_btsi_1): Ditto.
2775 (*jcc_btsi_mask_1): Ditto.
2777 2008-10-08 Paul Brook <paul@codesourcery.com>
2779 * config/arm/bpabi.h (ARM_FUNCTION_PROFILER): Define new EABI
2780 compatible profiler (__gnu_mcount_nc).
2781 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
2783 2008-10-08 H.J. Lu <hongjiu.lu@intel.com>
2785 * config/i386/i386.c (initial_ix86_tune_features): Add
2786 X86_TUNE_USE_VECTOR_FP_CONVERTS.
2787 * config/i386/i386.h (ix86_tune_indices): Likewise.
2788 (TARGET_USE_VECTOR_FP_CONVERTS): New.
2790 * config/i386/i386.md: Check TARGET_USE_VECTOR_FP_CONVERTS
2791 instead of (TARGET_USE_VECTOR_CONVERTS || TARGET_GENERIC)
2792 for FP to FP splitters.
2794 2008-10-08 H.J. Lu <hongjiu.lu@intel.com>
2796 * config/i386/i386.md: Add missing gen_sse2_cvtdq2p to convert
2799 2008-10-08 Jakub Jelinek <jakub@redhat.com>
2803 PR rtl-optimization/37341
2804 * cse.c (cse_cc_succs): Add ORIG_BB argument, don't follow edges
2805 to ORIG_BB, pass through ORIG_BB recursively.
2806 (cse_condition_code_reg): Adjust caller.
2808 2008-10-08 Kai Tietz <kai.tietz@onevision.com>
2810 * sdbout.c (sdbout_one_type): Treat the value type
2811 CONST_DECL for enumerals.
2813 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
2815 * config/i386/i386.md: Remove trailing white spaces.
2817 2008-10-07 Kenneth Zadeck <zadeck@naturalbridge.com>
2819 PR rtl-optimization/37448
2820 * alloc-pool.c (struct alloc_pool_descriptor) [elt_size]: New field.
2821 (stuct alloc_pool_descriptor) [created, allocated, current, peak]:
2823 (struct output_info) [count]: Renamed total_created and made
2825 (struct output_info) [size]: Renamed total_allocated and made
2827 (create_alloc_pool, empty_alloc_pool, pool_alloc, pool_free):
2828 Properly keep track of desc->size.
2829 (print_statistics, dump_alloc_pool_statistics): Enhance the
2830 printing of statistics to print the number of elements and to use
2833 2008-10-07 Jakub Jelinek <jakub@redhat.com>
2836 * opts.h (CL_SAVE): Move up to flags range.
2837 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET,
2838 CL_COMMON): Renumber.
2839 (CL_MIN_OPTION_CLASS): Set to CL_PARAMS.
2840 * opts.c (common_handle_option): Revert last change.
2842 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
2844 * config/i386/i386-protos.h (ix86_schedule): New.
2846 * config/i386/i386.c (ix86_schedule): New.
2847 (override_options): Add schedule to processor_alias_table. Set
2848 ix86_schedule from the schedule field in processor_alias_table.
2849 (ix86_function_specific_save): Save ix86_schedule.
2850 (ix86_function_specific_restore): Restore ix86_schedule.
2852 * config/i386/i386.md (cpu): Map to ix86_schedule instead of
2853 ix86_tune. Add none and remove i386, i486, pentium4, nocona
2856 * config/i386/i386.opt: Add schedule.
2858 * config/i386/ppro.md: Remove generic32.
2860 2008-10-07 Simon Martin <simartin@users.sourceforge.net>
2863 * expr.c (count_type_elements): Handle ERROR_MARK.
2865 2008-10-07 Jakub Jelinek <jakub@redhat.com>
2870 * basic-block.h (struct edge_def): Add goto_block field.
2871 * cfglayout.c (fixup_reorder_chain): Ensure that there is at least
2872 one insn with locus corresponding to edge's goto_locus if !optimize.
2873 * profile.c (branch_prob): Copy edge's goto_block.
2874 * cfgrtl.c (force_nonfallthru_and_redirect): Use goto_locus for
2876 (cfg_layout_merge_blocks): Emit a nop with edge's goto_locus
2877 locator in between the merged basic blocks if !optimize and needed.
2878 * cfgexpand.c (expand_gimple_cond): Convert goto_block and
2879 goto_locus into RTL locator. For unconditional jump use that
2880 locator for the jump insn.
2881 (expand_gimple_cond): Convert goto_block and goto_locus into
2882 RTL locator for all remaining edges. For unconditional jump
2883 use that locator for the jump insn.
2884 * cfgcleanup.c (try_forward_edges): Avoid the optimization if
2885 there is more than one edge or insn locator along the forwarding
2886 edges and !optimize. If there is just one, set e->goto_locus.
2887 * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Set also
2889 (move_block_to_fn): Adjust edge's goto_block.
2891 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
2894 * expmed.c (expand_mult): Properly check DImode constant in
2897 2008-10-07 Jakub Jelinek <jakub@redhat.com>
2900 * dwarf2out.c (common_block_die_table): New variable.
2901 (common_block_die_table_hash, common_block_die_table_eq): New
2903 (gen_variable_die): Look up a DW_TAG_common_block die for a particular
2904 COMMON block in the current scope rather than globally. Optimize
2905 DW_OP_addr SYMBOL_REF DW_OP_plus_uconst off into
2906 DW_OP_addr SYMBOL_REF+off.
2908 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
2910 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
2911 Return true for non-addressable GIMPLE operands.
2913 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
2916 * config/i386/i386.c (initial_ix86_tune_features): Remove
2917 X86_TUNE_USE_BIT_TEST.
2918 * config/i386/i386.h (ix86_tune_indices): Likewise.
2919 (TARGET_USE_BIT_TEST): Removed.
2921 2008-10-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2923 * config.gcc (arm*-*-*): Add aapcs-linux to supported ABIs.
2925 2008-10-06 Adam Nemet <anemet@caviumnetworks.com>
2927 * config/mips/mips.md (mulsi3_mul3, muldi3_mul3): Merge these ...
2928 (mul<mode>3_mul3): ... into this new template.
2930 2008-10-06 Aldy Hernandez <aldyh@redhat.com>
2932 * gimplify.c (gimplify_arg): Add location argument. Use it.
2933 (gimplify_call_expr): Pass location to gimplify_arg.
2934 (gimplify_modify_expr_to_memcpy): Same.
2935 (gimplify_modify_expr_to_memset): Same.
2937 2008-10-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
2939 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2940 Update calls to build_unary_op and build_indirect_ref for location
2943 2008-10-06 Aldy Hernandez <aldyh@redhat.com>
2946 * c-decl.c (finish_decl): Pass input_location to build_unary_op.
2947 * c-typeck.c (array_to_pointer_conversion): Pass location to
2949 (function_to_pointer_conversion): Use error_at and warning_at.
2950 (build_indirect_ref): Same.
2951 (build_array_ref): Pass location to build_binary_op.
2952 (parser_build_unary_op): Do not set location after calling
2954 (build_unary_op): Add location argument. Use it throughout. Set
2955 EXPR_LOCATION before returning new tree.
2956 (build_modify_expr): Same.
2957 (build_binary_op): Use location throughout. Set EXPR_LOCATION before
2959 * c-omp.c (c_finish_omp_atomic): Pass location to build_unary_op,
2960 build_indirect_ref, build_modify_expr.
2961 (c_finish_omp_for): Same. Use error_at instead of error.
2962 * c-common.c (c_common_truthvalue_conversion): Pass location to
2964 (warn_for_div_by_zero): Add location argument.
2965 * c-common.h: Add argument to build_modify_expr, build_indirect_ref,
2966 build_unary_op, warn_for_div_by_zero.
2967 * c-parser.c (c_parser_typeof_specifier): Use
2968 protected_set_expr_location.
2969 (c_parser_statement_after_labels): Same.
2970 (c_parser_condition): Same.
2971 (c_parser_expr_no_commas): Pass correct location to build_modify_expr.
2972 (c_parser_conditional_expression): Use protected_set_expr_location.
2973 (c_parser_unary_expression): Pass location to build_indirect_ref.
2974 (c_parser_postfix_expression_after_primary): Pass location to
2975 build_indirect_ref, build_unary_op.
2976 (c_parser_omp_for_loop): Set the increment expression's EXPR_LOCATION.
2978 2008-10-06 Joshua Kinard <kumba@gentoo.org>
2980 * doc/invoke.texi: List r1x000 family under the -march MIPS option.
2981 * config/mips/mips.h (PROCESSOR_R10000): New processor_type.
2982 * config/mips/mips.c (mips_cpu_info_table): Add r10000, r12000,
2984 (mips_rtx_cost_data): Add a PROCESSOR_R10000 entry.
2985 (mips_issue_rate): Handle PROCESSOR_R10000.
2986 * config/mips/mips.md (cpu): Add r10000.
2988 * config/mips/10000.md: New file.
2990 2008-10-06 Richard Sandiford <rdsandiford@googlemail.com>
2992 * config/rs6000/rs6000-protos.h (rs6000_find_base_term): Declare.
2993 * config/rs6000/rs6000.h (FIND_BASE_TERM): New macro.
2994 * config/rs6000/rs6000.c (rs6000_find_base_term): New function.
2996 2008-10-06 Richard Sandiford <rdsandiford@googlemail.com>
2998 * config/darwin-protos.h (machopic_function_base_name): Delete.
2999 (machopic_function_base_sym): Likewise.
3000 (machopic_gen_offset): Declare.
3001 * config/darwin.h (MACHOPIC_FUNCTION_BASE_NAME): New macro.
3002 (ASM_OUTPUT_LABELREF): Use it instead of a hard-coded string constant.
3003 * config/darwin.c (machopic_function_base_name): Delete.
3004 (machopic_function_base_sym): Likewise.
3005 (gen_pic_offset): Rename to...
3006 (machopic_gen_offset): ...this and remove the pic_base argument.
3007 Instead use MACHO_DYNAMIC_NO_PIC_P to decide whether a PIC offset
3008 is needed. Create an UNSPEC_MACHOPIC_OFFSET if so, and set
3009 crtl->uses_pic_offset_table.
3010 (machopic_indirect_data_reference): Use new machopic_gen_offset
3012 (machopic_legitimize_pic_address): Likewise.
3013 (machopic_operand_p): Check for UNSPEC_MACHOPIC_OFFSET.
3015 * config/i386/darwin.h (GOT_SYMBOL_NAME): Use
3016 MACHOPIC_FUNCTION_BASE_NAME instead of machopic_function_base_name.
3017 * config/i386/i386.c (output_set_got): Likewise.
3018 (darwin_local_data_pic): Check for an UNSPEC_MACHOPIC_OFFSET
3020 (legitimate_pic_operand_p): Handle UNSPEC_MACHOPIC_OFFSET.
3021 (legitimate_address_p): Likewise.
3022 (output_pic_addr_const): Likewise.
3023 (output_addr_const_extra): Likewise.
3024 (ix86_delegitimize_address): Expect darwin_local_data_pic to
3025 match an UNSPEC rather than a MINUS.
3026 * config/i386/i386.md (UNSPEC_MACHOPIC_OFFSET): Define.
3027 (builtin_setjmp_receiver): Use machopic_gen_offset.
3028 * config/i386/predicates.md (pic_symbolic_operand): Handle
3029 UNSPEC_MACHOPIC_OFFSET.
3031 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
3032 Use machopic_gen_offset and machopic_operand_p.
3033 (rs6000_output_addr_const_extra): Handle UNSPEC_MACHOPIC_OFFSET.
3034 (rs6000_emit_prologue): Use MACHOPIC_FUNCTION_BASE_NAME.
3035 * config/rs6000/rs6000.md (UNSPEC_MACHOPIC_OFFSET): Define.
3036 (builtin_setjmp_receiver): Use MACHOPIC_FUNCTION_BASE_NAME.
3037 Set crtl->uses_pic_offset_table.
3039 2008-10-06 Richard Sandiford <rdsandiford@googlemail.com>
3041 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
3043 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): New macro.
3044 * config/rs6000/rs6000.md (UNSPEC_TOCREL): New constant.
3045 * config/rs6000/rs6000.c (constant_pool_expr_1): Delete.
3046 (constant_pool_expr_p): Use split_const and check the base.
3047 (toc_relative_expr_p): Likewise, checking for an UNSPEC_TOCREL
3049 (legitimate_constant_pool_address_p): Check toc_relative_p
3050 instead of constant_pool_expr_p.
3051 (print_operand_address): Always use output_addr_const for
3052 constant pool addresses.
3053 (rs6000_output_addr_const_extra): New function.
3054 (create_TOC_reference): Create an UNSPEC_TOCREL instead of a MINUS.
3056 2008-10-06 Vladimir Makarov <vmakarov@redhat.com>
3060 * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
3061 (mark_ref_live, mark_ref_dead): Use them.
3062 (def_conflicts_with_inputs_p): Remove.
3063 (mark_early_clobbers): New function.
3064 (process_bb_node_lives): Call preprocess_constraints and
3065 mark_early_clobbers.
3067 * doc/rtx.texi (clobber): Change how RA deals with clobbers.
3069 2008-10-06 Danny Smith <dannysmith@users.sourceforge.net>
3071 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Add thread cleanup
3072 lib with -mthread switch.
3074 2008-10-05 Dodji Seketeli <dodji@redhat.com>
3077 * dwarf2out.c (dwarf2out_imported_module_or_decl): Split this
3078 function in two, making it call a new and reusable
3079 dwarf2out_imported_module_or_decl() that takes the containing
3080 BLOCK of the declaration in argument.
3081 (dwarf2out_imported_module_or_decl_real): New function.
3082 (decls_for_scope, gen_decl_die, dwarf2out_decl): Take
3083 IMPORTED_DECL in account.
3084 * tree.def: Added IMPORTED_DECL node type.
3085 * tree.h: Added accessors for IMPORTED_DECL nodes.
3086 * tree.c (init_ttree): Initialise IMPORTED_DECL node type.
3088 2008-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3090 * doc/gimple.texi: Fix some typos, wrap some long lines,
3091 fix some broken wraps with continuations.
3092 * tree-ssa-reassoc.c: Fix comment typos.
3094 2000-10-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3097 * pa.c (legitimize_pic_address): Force function labels to memory in
3100 2008-10-04 Anton Blanchard <anton@samba.org>
3102 * config/rs6000/rs6000.c (rs6000_emit_sync): Use gen_lwsync().
3103 (rs6000_split_atomic_op): Same.
3104 (rs6000_split_compare_and_swap): Same.
3105 (rs6000_split_compare_and_swapqhi): Same.
3107 2008-10-04 Richard Guenther <rguenther@suse.de>
3109 * tree-ssa-sccvn.c (vn_reference_op_eq): Use types_compatible_p
3110 instead of pointer equality.
3111 (vn_nary_op_eq): Likewise.
3113 2008-10-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
3115 * config/rs6000/rs6000.md (fseldfsf4): Add TARGET_SINGLE_FLOAT
3117 (fselsfdf4): Make condition on "TARGET_HARD_FLOAT && TARGET_FPRS &&
3118 TARGET_DOUBLE_FLOAT && TARGET_SINGLE_FLOAT".
3120 2008-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3122 * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
3123 Revert previous change.
3125 2008-10-03 Tom Tromey <tromey@redhat.com>
3127 * stringpool.c (ggc_alloc_string): Terminate string.
3129 2008-10-03 Jakub Jelinek <jakub@redhat.com>
3131 * gimplify.c (gimplify_function_tree): For -finstrument-functions
3132 use gimple_bind_{,set_}block instead of gimple_{,set_}block.
3133 * gimple.h (gimple_bind_set_block): Allow second argument to be NULL.
3136 * gimplify.c (declare_vars): Use gimple_bind_block instead of
3139 2008-10-03 Pascal Obry <obry@adacore.com>
3141 * gcov.c (create_file_names): Properly handle UNIX and DOS
3142 directory separators.
3143 (make_gcov_file_name): Likewise + convert the ':' DOS drive
3144 separator to '~' to ensure clean filenames on Windows.
3146 2008-10-02 Danny Smith <dannysmith@users.sourceforge.net>
3148 * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
3149 Add a null terminator to the stripped name.
3151 2008-10-02 David Edelsohn <edelsohn@gnu.org>
3153 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Revert
3154 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3155 (function_arg_advance): Condition on TARGET_DOUBLE_FLOAT,
3156 TARGET_SINGLE_FLOAT. Revert SCALAR_FLOAT_MODE_P condition.
3157 (function_arg): Condition on TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3158 (rs6000_function_value): Revert TARGET_DOUBLE_FLOAT,
3159 TARGET_SINGLE_FLOAT.
3161 2008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3163 * builtins.c (fold_builtin_pow): Check for 0 ** NEGATIVE.
3165 2008-10-02 Richard Guenther <rguenther@suse.de>
3168 * tree-ssa.c (useless_type_conversion_p_1): For COMPLEX_TYPE
3169 and VECTOR_TYPE recurse with useless_type_conversion_p which
3170 properly handles void pointer conversion.
3172 2008-10-02 Danny Smith <dannysmith@users.sourceforge.net>
3175 * config/i386/mingw32.h (LIBGCC_SPEC) : Replace with ..
3176 (REAL_LIBGCC_SPEC): New. Always include -lgcc.
3178 2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
3180 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3181 Handle ALTIVEC_BUILTIN_VEC_SPLATS, ALTIVEC_BUILTIN_VEC_PROMOTE,
3182 ALTIVEC_BUILTIN_VEC_EXTRACT, and ALTIVEC_BUILTIN_VEC_INSERT specially,
3183 they translate to non builtins.
3184 * config/rs6000/rs6000.c (altivec_init_builtins): Add new variable
3185 opaque_ftype_opaque. Define builtins __builtin_vec_splats,
3186 __builtin_vec_promote, __builtin_vec_extract, and
3187 __builtin_vec_insert.
3188 * config/rs6000/rs6000.h (enum rs6000_builtins): Add
3189 ALTIVEC_BUILTIN_VEC_EXTRACT, ALTIVEC_BUILTIN_VEC_PROMOTE,
3190 ALTIVEC_BUILTIN_VEC_INSERT, and ALTIVEC_BUILTIN_VEC_SPLATS.
3191 * config/rs6000/altivec.h (vec_extract): Define
3192 (vec_insert): Define.
3193 (vec_splats): Define.
3194 (vec_promote): Define.
3196 2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
3197 Yukishige Shibata <shibata@rd.scei.sony.co.jp>
3198 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
3200 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add Cell
3202 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Delete
3203 prototype. Add new parameter, blk.
3204 Use BLKmode for the MEM if blk is true.
3205 (altivec_expand_builtin): Handle ALTIVEC_BUILTIN_STVLX,
3206 ALTIVEC_BUILTIN_STVLXL, ALTIVEC_BUILTIN_STVRX, and
3207 ALTIVEC_BUILTIN_STVRXL.
3208 Update usage of altivec_expand_lv_builtin.
3209 Handle ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL,
3210 ALTIVEC_BUILTIN_LVRX, and ALTIVEC_BUILTIN_LVRXL.
3211 (altivec_init_builtins): If compiling for the Cell, also define the
3213 * config/rs6000/rs6000.h (rs6000_builtins): Define
3214 ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL, ALTIVEC_BUILTIN_LVRX,
3215 ALTIVEC_BUILTIN_LVRXL, ALTIVEC_BUILTIN_STVLX, ALTIVEC_BUILTIN_STVLXL,
3216 ALTIVEC_BUILTIN_STVRX, ALTIVEC_BUILTIN_STVRXL,
3217 ALTIVEC_BUILTIN_VEC_LVLX, ALTIVEC_BUILTIN_VEC_LVLXL,
3218 ALTIVEC_BUILTIN_VEC_LVRX, ALTIVEC_BUILTIN_VEC_LVRXL,
3219 ALTIVEC_BUILTIN_VEC_STVLX, ALTIVEC_BUILTIN_VEC_STVLXL,
3220 ALTIVEC_BUILTIN_VEC_STVRX, and ALTIVEC_BUILTIN_VEC_STVRXL.
3221 * config/rs6000/altivec.md (define_constants): Define UNSPEC_LVLX,
3222 UNSPEC_LVLXL, UNSPEC_LVRX, UNSPEC_LVRXL, UNSPEC_STVLX, UNSPEC_STVLXL,
3223 UNSPEC_STVRX, and UNSPEC_STVRXL.
3224 (altivec_lvlx): New pattern.
3225 (altivec_lvlxl): New pattern.
3226 (altivec_lvrx): New pattern.
3227 (altivec_lvrxl): New pattern.
3228 (altivec_stvlx): New pattern.
3229 (altivec_stvlxl): New pattern.
3230 (altivec_stvrx): New pattern.
3231 (altivec_stvrxl): New pattern.
3232 * config/rs6000/altivec.h (vec_lvlx): Define if PPU is defined.
3233 (vec_lvlxl): Likewise.
3234 (vec_lvrx): Define if PPU is defined.
3235 (vec_lvrxl): Likewise.
3236 (vec_stvlx): Define if PPU is defined.
3237 (vec_stvlxl): Likewise.
3238 (vec_stvrx): Define if PPU is defined.
3239 (vec_stvrxl): Likewise.
3241 2008-10-01 Geert Bosch <bosch@adacore.com>
3243 * tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR.
3245 2008-10-01 Richard Guenther <rguenther@suse.de>
3247 PR tree-optimization/37617
3248 * tree-ssa-pre.c (create_expression_by_pieces): During FRE
3249 do not add to the NEW_SETS.
3251 2008-10-01 Richard Guenther <rguenther@suse.de>
3254 * tree-vrp.c (execute_vrp): If we optimized away the default
3255 case make sure to promote the label that got in place of it
3256 to a default case label.
3258 2008-10-01 Richard Henderson <rth@redhat.com>
3261 * tree-complex.c (set_component_ssa_name): Don't optimize
3262 is_gimple_min_invariant values with ssa_names in abnormal phis.
3264 2008-09-30 Paolo Bonzini <bonzini@gnu.org>
3266 PR tree-optimization/37662
3267 * tree-ssa-ccp.c (fold_gimple_assign): Invert the operands of a
3268 commutative binary operation if they are in the wrong order and
3269 fold_build2 produces non-GIMPLE.
3271 2008-09-30 Jakub Jelinek <jakub@redhat.com>
3273 PR tree-optimization/37662
3274 PR tree-optimization/37663
3275 * tree-vrp.c (simplify_truth_ops_using_ranges): Don't call
3276 get_value_range with non-SSA_NAME. Don't assert operands have been
3277 folded, instead just bail out.
3279 2008-09-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
3281 * config/rs6000/rs6000.md (fnmadds combiner): Revert typo.
3283 2008-09-30 Richard Guenther <rguenther@suse.de>
3286 * tree-vect-transform.c (vect_create_data_ref_ptr): Properly
3287 build restrict-qualified pointers.
3288 (vectorizable_store): Move alias check later.
3289 (vectorizable_load): Likewise.
3291 2008-09-30 Paolo Bonzini <bonzini@gnu.org>
3293 * c-common.c (empty_if_body_warning): Remove.
3294 * c-common.h (empty_if_body_warning): Remove.
3295 * c-parser.c (c_parser_if_body, c_parser_else_body): Implement
3296 here the -Wempty-body warning for `if' and `else' statements.
3297 * c-typeck.c (c_finish_if_stmt): Do not call empty_body_warning.
3299 2008-09-29 H.J. Lu <hongjiu.lu@intel.com>
3301 * config/i386/i386.opt: Add msse2avx.
3303 * config/i386/linux.h (ASM_SPEC): New. Support -msse2avx.
3304 * config/i386/linux64.h (ASM_SPEC): Likewise.
3306 * doc/invoke.texi: Document -msse2avx.
3308 2008-09-29 Eric Botcazou <ebotcazou@adacore.com>
3310 * dwarf2out.c (constant_size): Use HOST_WIDE_INT in parameter type.
3312 2008-09-29 Joseph Myers <joseph@codesourcery.com>
3314 * ifcvt.c (noce_emit_store_flag): If using condition from original
3315 jump, reverse it if if_info->cond was reversed.
3317 2008-09-29 Eric Botcazou <ebotcazou@adacore.com>
3319 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
3320 non-constant memory if it cannot be forced to constant memory.
3321 Overhaul surrounding code and factor out common condition.
3323 2008-09-29 Jeff Law <law@redhat.com>
3325 * reload1.c (alter_reg): Add missing curly braces.
3327 2008-09-29 Michael J. Eager <eager@eagercon.com>
3329 * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
3331 * config/rs6000/rs6000.c (rs6000_override_options): Move
3332 rs6000_init_hard_regno_mode_ok after all options changed.
3333 Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
3334 (rs6000_handle_option): Process -msingle-float, -mdouble-float,
3335 -msimple-fpu flags. Add warning messages if single FP not configured.
3336 (rs6000_file_start): Output gnu_attribute for single-float.
3337 (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
3338 (rs6000_legitimize_address): Likewise.
3339 (rs6000_legitimize_reload_address): Likewise.
3340 (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
3341 TARGET_SINGLE_FLOAT.
3342 (function_arg_advance): Likewise (partial conversion).
3343 (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
3344 (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
3345 TARGET_SINGLE_FLOAT.
3346 (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
3347 (rs6000_emit_prologue): Likewise.
3348 (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
3349 TARGET_SINGLE_FLOAT.
3350 (rs6000_libcall_value): Likewise.
3351 * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
3352 (TARGET_DOUBLE_FLOAT): New default to 1
3353 (TARGET_SIMPLE_FPU): New default to 0
3354 (TARGET_SINGLE_FPU): New default to 0
3355 (TARGET_SINGLE_FLOAT_MODE): New.
3356 (TARGET_DOUBLE_FLOAT_MODE): New.
3357 * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
3358 TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
3360 * config/rs6000/rs6000.md (define_mode_iterator): Condition on
3361 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3362 (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
3363 copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
3364 nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
3365 muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
3366 movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
3367 floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
3368 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
3369 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
3370 rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
3371 floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
3372 movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
3373 extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
3374 abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
3375 cmptf_internal1, *cmptf_internal2): Condition on
3376 TARGET_DOUBLE_FLOAT.
3377 (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
3378 mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
3379 *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
3380 btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
3381 floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
3382 *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
3383 TARGET_SINGLE_FLOAT.
3384 (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
3385 * config/rs6000/rs6000.opt (-msingle-float): New.
3386 (-mdouble-float): New.
3387 (-msimple-fpu): New.
3388 * doc/invoke.texi (RS/6000 and PowerPC Options): Add
3389 -msingle-float, -mdouble-float, -msimple-fpu options.
3390 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
3391 _SOFT_DOUBLE for -msingle-float.
3392 * config.gcc: New config for target=powerpc-xilinx-eabi.
3394 2008-09-29 Tobias Grosser <grosser@fim.uni-passau.de>
3396 * graphite.c (dot_all_scops_1): Remove unused checks. SCoPs always
3397 have exit and entry.
3398 (new_scop): Take entry and exit edge to define new SCoP.
3399 (sd_region_p): New structure used during SCoP detection.
3400 (move_scops): Delete.
3401 (move_sd_regions): New.
3402 (scopdet_info): Change the definition from edges back to basic_blocks.
3403 (scopdet_edge_info): Work on basic_blocks and rename to
3404 scopdet_basic_block_info.
3405 (split_difficult_bb): At the moment removed. We should later
3406 add it at another place.
3407 (build_scops_1): Work on basic_blocks.
3408 (bb_in_sd_region): New.
3409 (find_single_entry_edge): New.
3410 (find_single_exit_edge): New.
3411 (create_single_entry_edge): New.
3412 (sd_region_without_exit): New.
3413 (create_single_exit_edge): New.
3414 (unmark_exit_edges): New.
3415 (mark_exit_edges): New.
3416 (create_sese_edges): New.
3417 (build_graphite_scops): New.
3418 (build_scops): Make SCoPs SESE.
3419 (limit_scops): Use the new functions.
3421 2008-09-29 Hans-Peter Nilsson <hp@axis.com>
3423 * config/cris/cris.h (IRA_COVER_CLASSES): Define.
3425 2008-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
3428 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Force
3429 address to a register before taking the lower part.
3431 2008-09-28 Kaz Kojima <kkojima@gcc.gnu.org>
3433 * config/sh/sh.h (OVERRIDE_OPTIONS): Unset flag_dwarf2_cfi_asm
3436 2008-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
3437 Kaushal Kantawala <kaushal_kantawala@playstation.sony.com>
3440 * tree-ssa-loop-im.c (rewrite_reciprocal): Set DECL_GIMPLE_REG_P on
3441 the newly created variable.
3442 Create a VECTOR_CST of all 1s for vector types.
3444 2008-09-28 Eric Botcazou <ebotcazou@adacore.com>
3447 * fold-const.c (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
3449 2008-09-28 Eric Botcazou <ebotcazou@adacore.com>
3451 * expmed.c (store_fixed_bit_field): Always use convert_to_mode in
3452 order to convert between modes.
3453 (extract_bit_field_1): Test TRULY_NOOP_TRUNCATION on the right mode.
3455 2008-09-27 Kaz Kojima <kkojima@gcc.gnu.org>
3457 * config/sh/sh.c (sh_gimplify_va_arg_expr): Use VIEW_CONVERT_EXPR
3460 2008-09-26 Vladimir Makarov <vmakarov@redhat.com>
3463 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
3467 2008-09-26 Adam Nemet <anemet@caviumnetworks.com>
3469 * config/mips/mips.h (ISA_HAS_DMUL3, ISA_HAS_BADDU, ISA_HAS_BBIT,
3470 ISA_HAS_CINS, ISA_HAS_EXTS, ISA_HAS_SEQ_SNE, ISA_HAS_POP): Change
3471 them to yield false with MIPS16.
3473 2008-09-26 Jakub Jelinek <jakub@redhat.com>
3476 * dwarf2out.c (tls_mem_loc_descriptor): New function.
3477 (mem_loc_descriptor): Use it for MEM. For PLUS fail if second
3478 mem_loc_descriptor failed. Accept UNSPEC.
3479 (loc_descriptor): Use tls_mem_loc_descriptor for MEM. For PARALLEL
3480 fail if one of the loc_descriptor calls for pieces failed.
3481 (loc_descriptor_from_tree_1): Handle even DECL_EXTERNAL __thread vars,
3482 as long as they bind locally. For COMPONENT_REF, ARRAY_REF etc. fail
3483 if loc_descriptor_from_tree_1 on offset failed.
3486 * opts.c (common_handle_option): Don't call print_specific_help with
3487 CL_SAVE as first argument.
3489 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
3490 Steve Ellcey <sje@cup.hp.com>
3492 * configure: Regenerate for new libtool.
3493 * aclocal.m4: Ditto.
3495 2008-09-26 Pat Haugen <pthaugen@us.ibm.com>
3497 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Use correct
3498 alias set on MEM when saving stack pointer.
3499 * config/rs6000/rs6000.md (allocate_stack): Likewise
3501 2008-09-26 Dorit Nuzman <dorit@il.ibm.com>
3503 PR tree-optimization/37574
3504 * tree-vectorizer.c (vect_is_simple_use): Fix indentation.
3505 * tree-vect-transform.c (vect_get_constant_vectors): Use vectype
3506 instead of vector_type for constants. Take computation out of loop.
3507 (vect_get_vec_def_for_operand): Use only vectype for constant case,
3508 and use only vector_type for invariant case.
3509 (get_initial_def_for_reduction): Use vectype instead of vector_type.
3511 2008-09-25 Jakub Jelinek <jakub@redhat.com>
3514 * c-common.c (handle_weakref_attribute): Ignore the attribute unless
3515 the decl is a VAR_DECL or FUNCTION_DECL.
3517 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
3520 * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
3521 (mark_ref_live, mark_ref_dead): Use them.
3522 (def_conflicts_with_inputs_p): Remove.
3523 (mark_early_clobbers): New function.
3524 (process_bb_node_lives): Call preprocess_constraints and
3525 mark_early_clobbers.
3527 * doc/rtl.texi (clobber): Change how RA deals with clobbers.
3529 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
3532 * ira-int.h (IRA_ALLOCNO_TEMP): Rename to ALLOCNO_TEMP.
3533 (ira_compress_allocno_live_ranges): New prototype.
3535 * ira-color.c: Rename IRA_ALLOCNO_TEMP to ALLOCNO_TEMP.
3536 (coalesced_allocnos_living_at_program_points): New.
3537 (coalesced_allocnos_live_at_points_p,
3538 set_coalesced_allocnos_live_points): New functions.
3539 (coalesce_spill_slots): Rewrite.
3541 * ira-lives.c (remove_some_program_points_and_update_live_ranges,
3542 ira_compress_allocno_live_ranges): New functions.
3544 * ira-build.c (ira_flattening): Call
3545 ira_compress_allocno_live_ranges.
3548 2008-09-25 H.J. Lu <hongjiu.lu@intel.com>
3550 * config/i386/i386.md: Check cmp/branch fuse for cmp peephole
3553 2008-09-25 Richard Sandiford <rdsandiford@googlemail.com>
3555 * combine.c (make_compound_operation): Handle the 'E' format.
3556 (count_rtxs): Likewise.
3557 (update_table_tick): Likewise.
3558 (get_last_value_validate): Likewise.
3560 2008-09-25 Eric Botcazou <ebotcazou@adacore.com>
3562 * dbxout.c (dbxout_parms): Fetch the inner REG inside a PARALLEL.
3564 2008-09-25 Sergei Dyshel <sergeid@il.ibm.com>
3566 * matrix-reorg.c (transform_allocation_sites): Initializers
3567 added to avoid the warning.
3569 2008-09-25 Martin Jambor <mjambor@suse.cz>
3571 * cgraph.c (free_nodes): New variable.
3572 (NEXT_FREE_NODE): New macro.
3573 (cgraph_create_node): Reuse nodes from the free list. Do not
3574 update uid if doing so.
3575 (cgraph_remove_node): Add the node to the free list.
3577 2008-09-25 Gerald Pfeifer <gerald@pfeifer.com>
3579 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3581 2008-09-24 Richard Henderson <rth@redhat.com>
3583 * dwarf2.h (DW_OP_GNU_encoded_addr): New.
3584 * unwind-dw2.c (execute_stack_op): Handle it.
3586 2008-09-24 David Edelsohn <edelsohn@gnu.org>
3589 2008-09-24 Michael J. Eager <eager@eagercon.com>
3591 2008-09-24 Aldy Hernandez <aldyh@redhat.com>
3593 * c-common.c (fname_decl): New location argument.
3594 * c-common.h (fname_decl): Same.
3595 * c-parser.c (c_lex_one_token): Use {warning,error}_at instead of
3597 (c_parser_typeof_specifier): Same.
3598 (c_parser_parms_list_declarator): Same.
3599 (c_parser_asm_string_literal): Same.
3600 (c_parser_compound_statement_nostart): Same.
3601 (c_parser_label): Same.
3602 (c_parser_do_statement): Same.
3603 (c_parser_asm_statement): Same.
3604 (c_parser_unary_expression): Same.
3605 (c_parser_sizeof_expression): Same.
3606 (c_parser_postfix_expression): Same.
3607 (c_parser_pragma): Same.
3608 (c_parser_omp_clause_collapse): Same.
3609 (c_parser_omp_clause_num_threads): Same.
3610 (c_parser_omp_clause_schedule): Same.
3611 (c_parser_omp_all_clauses): Same.
3612 (c_parser_omp_sections_scope): Same.
3613 (c_parser_omp_for_loop): Same. Pass condition's location to
3614 c_objc_common_truthvalue_conversion.
3615 (c_parser_enum_specifier): Remove comment.
3617 2008-09-24 Michael J. Eager <eager@eagercon.com>
3619 * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
3621 * config/rs6000/rs6000.c (rs6000_override_options): Move
3622 rs6000_init_hard_regno_mode_ok after all options changed.
3623 Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
3624 (rs6000_handle_option): Process -msingle-float, -mdouble-float,
3625 -msimple-fpu flags. Add warning messages if single FP not configured.
3626 (rs6000_file_start): Output gnu_attribute for single-float.
3627 (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
3628 (rs6000_legitimize_address): Likewise.
3629 (rs6000_legitimize_reload_address): Likewise.
3630 (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
3631 TARGET_SINGLE_FLOAT.
3632 (function_arg_advance): Likewise.
3633 (function_arg): Likewise.
3634 (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
3635 (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
3636 TARGET_SINGLE_FLOAT.
3637 (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
3638 (rs6000_emit_prologue): Likewise.
3639 (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
3640 TARGET_SINGLE_FLOAT.
3641 (rs6000_libcall_value): Likewise.
3642 * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
3643 (TARGET_DOUBLE_FLOAT): New default to 1
3644 (TARGET_SIMPLE_FPU): New default to 0
3645 (TARGET_SINGLE_FPU): New default to 0
3646 (TARGET_SINGLE_FLOAT_MODE): New.
3647 (TARGET_DOUBLE_FLOAT_MODE): New.
3648 * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
3649 TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
3651 * config/rs6000/rs6000.md (define_mode_iterator): Condition on
3652 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3653 (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
3654 copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
3655 nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
3656 muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
3657 movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
3658 floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
3659 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
3660 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
3661 rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
3662 floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
3663 movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
3664 extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
3665 abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
3666 cmptf_internal1, *cmptf_internal2): Condition on
3667 TARGET_DOUBLE_FLOAT.
3668 (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
3669 mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
3670 *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
3671 btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
3672 floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
3673 *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
3674 TARGET_SINGLE_FLOAT.
3675 (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
3676 * config/rs6000/rs6000.opt (-msingle-float): New.
3677 (-mdouble-float): New.
3678 (-msimple-fpu): New.
3679 * doc/invoke.texi (RS/6000 and PowerPC Options): Add
3680 -msingle-float, -mdouble-float, -msimple-fpu options.
3681 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
3682 _SOFT_DOUBLE for -msingle-float.
3683 * config.gcc: New config for target=powerpc-xilinx-eabi.
3685 2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
3687 * config/sparc/constraints.md: New file.
3688 * config/sparc/sparc.md: Include it.
3689 * config/sparc/sparc-protos.h (memory_ok_for_ldd): Declare.
3690 (sparc_extra_constraint_check): Delete.
3691 * config/sparc/sparc.c (register_ok_for_ldd): Minor tweaks.
3692 (memory_ok_for_ldd): New predicate.
3693 (sparc_extra_constraint_check): Delete.
3694 * config/sparc/sparc.h (REG_CLASS_FROM_LETTER): Likewise.
3695 (CONST_OK_FOR_LETTER_P): Likewise.
3696 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
3697 (EXTRA_CONSTRAINT): Likewise.
3699 2008-08-23 Steve Ellcey <sje@cup.hp.com>
3701 * regrename.c (do_replace): Copy REG_POINTER value to new reg.
3703 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
3705 * alias.c (find_base_value): Use FIND_BASE_TERM.
3706 * doc/tm.texi (FIND_BASE_TERM): Update documentation.
3708 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
3710 * config/i386/i386.c: Include cselib.h.
3711 (ix86_pic_register_p): New function.
3712 (ix86_delegitimize_address): Use it to check for the PIC register.
3714 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
3716 * doc/tm.texi (FIND_BASE_TERM): Expand documentation.
3717 * config/i386/i386.c (ix86_find_base_term): Don't check for
3718 SYMBOL_REF and LABEL_REF.
3720 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
3722 * config/i386/i386.c (ix86_delegitimize_address): Wrap the
3723 constant PLUS in a CONST.
3725 2008-09-23 Kai Tietz <kai.tietz@onevision.com>
3727 * config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
3728 check for sibcall support for w64.
3730 2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
3732 * c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
3734 2008-09-23 Aldy Hernandez <aldyh@redhat.com>
3736 * c-tree.h: Add argument to c_objc_common_truthvalue_conversion,
3737 parser_build_binary_op.
3738 * c-decl.c (build_enumerator): Pass location to build_binary_op.
3739 * c-typeck.c (build_array_ref): Same.
3740 (parser_build_unary_op): New location argument.
3741 (pointer_diff): Pass location to build_binary_op,
3742 c_objc_common_truthvalue_conversion.
3743 (build_modify_expr): Same.
3744 (build_unary_op): New location argument.
3745 (build_binary_op): New location argument.
3746 (c_objc_common_truthvalue_conversion): Pass location to
3747 c_*common_truthvalue_conversion.
3748 * c-convert.c (convert): Same.
3749 * c-common.c (binary_op_error): New location argument.
3750 (pointer_int_sum): Pass location to build_binary_op.
3751 (c_common_truthvalue_conversion): New location argument.
3752 (warn_for_sign_compare): Same.
3753 * c-common.h: Add location argument to c_common_truthvalue_conversion,
3754 binary_op_error, build_binary_op, warn_for_sign_compare.
3755 * c-parser.c (c_parser_condition): Pass location to
3756 c_*common_truthvalue_conversion.
3757 (c_parser_conditional_expression): Save condition's location and pass
3759 (c_parser_binary_expression): Same, but for the binary operator's
3761 (c_parser_omp_for_loop): Pass location to
3762 c_objc_common_truthvalue_conversion.
3764 2008-09-23 Martin Jambor <mjambor@suse.cz>
3766 * cgraph.c (cgraph_free_edge): Use sizeof(*e).
3767 (cgraph_node_remove_callees): New temporary f. Hold the next item
3769 (cgraph_node_remove_callers): Likewise.
3771 * ipa-prop.c (ipa_edge_removal_hook): Use ATTRIBUTE_UNUSED.
3772 (ipa_node_removal_hook): Likewise.
3774 * doc/gimple.texi (gimple_copy_call_skip_args): Changed to
3775 gimple_call_copy_skip_args and moved to the gimple_call section.
3776 * gimple.c (gimple_copy_call_skip_args): Renamed to
3777 gimple_call_copy_skip_args. Changed al users.
3779 2008-09-22 Vladimir Makarov <vmakarov@redhat.com>
3781 * ira-color.c (start_allocno_priorities): Rename to
3782 setup_allocno_priorities. Use costs and
3783 ALLOCNO_EXCESS_PRESSURE_POINTS_NUM instead of frequencies and
3784 range lengths. Get rid off doubles.
3785 (ira_fast_allocations): Call start_allocno_priorities.
3787 2008-09-22 David Daney <ddaney@avtrex.com>
3790 * config/mips/mips.h (FUNCTION_PROFILER): Call _mcount via a
3791 register if TARGET_LONG_CALLS.
3793 2008-09-22 Richard Guenther <rguenther@suse.de>
3795 PR tree-optimization/37145
3796 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Re-enable
3797 value-numbering union accesses with their offset and size only.
3798 (visit_reference_op_load): Fix simplification of inserted conversions.
3799 * tree-ssa-pre.c (find_or_generate_expression): Do not
3800 recursively generate expressions if running FRE.
3802 2008-09-22 Adam Nemet <anemet@caviumnetworks.com>
3804 * config/mips/mips.h (ISA_HAS_BADDU): New macro.
3805 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el, *baddu_di<mode>):
3808 2008-09-22 Richard Guenther <rguenther@suse.de>
3810 PR tree-optimization/37145
3811 * tree-ssa-pre.c (fully_constant_expression): Simplify builtin calls.
3812 (phi_translate_1): Constant fold references.
3814 2008-09-22 Ira Rosen <irar@il.ibm.com>
3816 PR tree-optimization/37482
3817 * tree-vectorizer.h (struct _slp_instance): Add new field.
3818 (SLP_INSTANCE_FIRST_LOAD_STMT): New.
3819 (get_earlier_stmt): New function.
3820 * tree-vect-analyze.c (vect_find_first_load_in_slp_instance): New
3822 (vect_analyze_slp_instance): Set SLP_INSTANCE_FIRST_LOAD_STMT.
3823 * tree-vect-transform.c (vect_finish_stmt_generation): Remove the
3824 asserts that GSI points to the scalar statement being vectorized.
3825 Set new statement location according to GSI.
3826 (vect_schedule_slp_instance): Use GSI of
3827 SLP_INSTANCE_FIRST_LOAD_STMT when vectorizing loads.
3829 2008-09-21 Jan Hubicka <jh@suse.cz>
3831 * ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
3832 (ipcp_insert_stage): Update dead_nodes bitmap.
3834 2008-09-22 Danny Smith <dannysmith@users.sourceforge.net>
3837 * config/i386/t-cygming (SHLIB_LC): Remove.
3838 (SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
3839 * config/i386/t-cygwin (SHLIB_LC): Specify all required libraries.
3841 2008-09-22 Hans-Peter Nilsson <hp@axis.com>
3845 * final.c (mark_symbol_ref_as_used): New helper function.
3846 (output_operand): Instead of just looking inside MEMs for
3847 SYMBOL_REFs, use new helper function and for_each_rtx.
3848 * varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
3849 to after weak-handling. Don't mark decls with TREE_STATIC as weak.
3850 Make head comment more general.
3851 * config/darwin.c (machopic_output_indirection): Handle weak
3852 references here, like in assemble_external.
3854 2008-09-21 Eric Botcazou <ebotcazou@adacore.com>
3856 * config/sparc/sparc-protos.h (gen_compare_operator): Declare.
3857 (sparc_emit_float_lib_cmp): Change return type.
3858 * config/sparc/sparc.c (gen_compare_reg): Add comment about TFmode.
3859 (gen_compare_operator): New function.
3860 (sparc_emit_float_lib_cmp): Return the new operator to be used in
3861 the comparison sequence. Minor tweaks.
3862 * config/sparc/sparc.md (seq, sne, sgt, slt, sge, sle): Assert
3863 that the final operator and the result of sparc_emit_float_lib_cmp
3864 match for software TFmode; use emit_insn in lieu of emit_jump_insn.
3865 (beq, bne, bgt, blt, bge, ble, bunordered, bordered, bungt, bunlt,
3866 buneq, bunge, bunle, bltgt): Assert that the final operator and the
3867 result of sparc_emit_float_lib_cmp match for software TFmode.
3868 (movqicc, movhicc, movsicc, movdicc): Merge into...
3869 (mov<I:mode>cc): ...this.
3870 (movsfcc, movdfcc, movtfcc): Merge into...
3871 (mov<F:mode>cc): ...this.
3872 (movqi_cc_sp64, movhi_cc_sp64, movsi_cc_sp64, movdi_cc_sp64): Merge
3874 (mov<I:mode>_cc_v9): ...this.
3875 (movdi_cc_sp64_trunc): Delete.
3876 (movqi_cc_reg_sp64, movhi_cc_reg_sp64, movsi_cc_reg_sp64,
3877 movdi_cc_reg_sp64): Merge into...
3878 (mov<I:mode>_cc_reg_sp64): ...this.
3879 (movsf_cc_sp64): Rename into...
3880 (movsf_cc_v9): ...this.
3881 (movdf_cc_sp64): Rename into...
3882 (movdf_cc_v9): ...this.
3883 (movtf_cc_hq_sp64): Rename into...
3884 (movtf_cc_hq_v9): ...this.
3885 (movtf_cc_sp64): Rename into...
3886 (movtf_cc_v9): ...this. Adjust for renaming of movdf_cc_sp64.
3888 2008-09-21 Diego Novillo <dnovillo@google.com>
3890 * doc/gccint.texi: Include generic.texi and gimple.texi.
3892 * doc/tree-ssa.texi (GENERIC): Move to generic.texi.
3893 (GIMPLE): Move to gimple.texi.
3894 (Annotations): Remove references to to stmt_ann_t and
3896 (SSA Operands): Rename from 'Statement Operands'.
3897 * doc/generic.texi: New.
3898 * doc/gimple.texi: New.
3899 * Makefile.in (TEXI_GCCINT_FILES): Add generic.texi and gimple.texi.
3900 * Makefile.in (TEXI_GCCINT_FILES):
3901 * gimple.c (gimple_copy_call_skip_args): Rename from
3902 giple_copy_call_skip_args. Update all users.
3903 * doc/gimple.texi (gimple_copy_call_skip_args): Document.
3905 2008-09-21 Ira Rosen <irar@il.ibm.com>
3907 PR tree-optimization/37539
3908 * tree-vect-transform.c (vect_transform_strided_load): Save vector
3909 statement in related statement field only for the first load of the
3910 group of loads with the same data reference.
3912 2008-09-20 Adam Nemet <anemet@caviumnetworks.com>
3914 * config/mips/mips.h (TUNE_OCTEON): New macro.
3915 * config/mips/mips.c (mips_issue_rate): Return 2 for Octeon.
3916 (mips_multipass_dfa_lookahead): Return 2 for Octeon.
3917 * config/mips/octeon.md: New file.
3918 * config/mips/mips.md: Include octeon.md. Restore
3919 semi-alphabetical order of include files.
3921 2008-09-20 H.J. Lu <hongjiu.lu@intel.com>
3924 * config/i386/i386.md (*jcc_fused_1): Removed.
3925 (*jcc_fused_2): Likewise.
3926 (*jcc_fused_3): Likewise.
3927 (*jcc_fused_4): Likewise.
3929 2008-09-20 Richard Sandiford <rdsandiford@googlemail.com>
3931 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define.
3932 (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES.
3933 * target.h (gcc_target): Add ira_cover_classes.
3934 * ira.c: Remove IRA_COVER_CLASSES guards.
3935 (setup_cover_and_important_classes): Use targetm.ira_cover_classes
3936 instead of IRA_COVER_CLASSES.
3937 (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard.
3938 (setup_class_translate): Likewise.
3939 (setup_reg_class_intersect_union): Likewise.
3940 (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a
3941 test of targetm.ira_cover_classes.
3942 * opts.c (decode_options): Use targetm.ira_cover_classes instead
3943 of IRA_COVER_CLASSES.
3944 * target-def.h (TARGET_IRA_COVER_CLASSES): Define.
3945 (TARGET_INITIALIZER): Include it.
3946 * targhooks.h (default_ira_cover_classes): Declare.
3947 * targhooks.c (default_ira_cover_classes): New function.
3949 2008-09-19 Bob Wilson <bob.wilson@acm.org>
3951 * config/xtensa/xtensa.md (reload<mode>_literal): Handle MEM operands.
3953 2008-09-19 Ian Lance Taylor <iant@google.com>
3955 * varasm.c (narrowing_initializer_constant_valid_p): Return
3956 NULL_TREE if ENDTYPE is not an integer.
3958 2008-09-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
3961 * tree-ssa.c (execute_update_addresses_taken): Also update
3962 DECL_GIMPLE_REG_P for vector and complex types.
3964 2008-09-19 Andrew MacLeod <amacleod@redhat.com>
3965 Jan Hubicka <jh@suse.cz>
3968 * tree-ssa-ter.c (free_temp_expr_table): Make sure fields are actually
3969 empty before freeing them.
3970 (find_replaceable_exprs): Move asserts to free_temp_expr_table.
3972 2008-09-18 Bob Wilson <bob.wilson@acm.org>
3974 * configure.ac: Add HAVE_AS_TLS check for Xtensa.
3975 * config/xtensa/predicates.md (tls_symbol_operand): New.
3976 * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Define.
3977 (TARGET_CANNOT_FORCE_MEM): Define.
3978 (xtensa_tls_symbol_p): New.
3979 (xtensa_emit_move_sequence): Check for and legitimize TLS addresses.
3980 (xtensa_legitimate_address_p): Disallow constant pool TLS references.
3981 (xtensa_tls_module_base): New.
3982 (xtensa_call_tls_desc): New.
3983 (xtensa_legitimize_tls_address): New.
3984 (xtensa_legitimize_address): Handle TLS symbols.
3985 (xtensa_tls_referenced_p_1): New.
3986 (xtensa_tls_referenced_p): New.
3987 (xtensa_output_addr_const_extra): Handle UNSPEC_TPOFF and
3989 (XTENSA_BUILTIN_THREAD_POINTER): New.
3990 (XTENSA_BUILTIN_SET_THREAD_POINTER): New.
3991 (xtensa_init_builtins): Set NOTHROW and READONLY for umulsidi3
3992 builtin. Add declarations for __builtin_thread_pointer and
3993 __builtin_set_thread_pointer.
3994 (xtensa_fold_builtin): Recognize new builtins.
3995 (xtensa_expand_builtin): Expand new builtins.
3996 * config/xtensa/xtensa.h (XCHAL_HAVE_THREADPTR): Define default value.
3997 (TARGET_THREADPTR): Define.
3998 (HAVE_AS_TLS): Define default value.
3999 (LEGITIMATE_CONSTANT_P): Disallow TLS references.
4000 * config/xtensa/xtensa.md (UNSPEC_TPOFF, UNSPEC_DTPOFF): New.
4001 (UNSPEC_TLS_FUNC, UNSPEC_TLS_ARG, UNSPEC_TLS_CALL, UNSPEC_TP): New.
4002 (UNSPECV_SET_TP): New.
4003 (sym_TPOFF, sym_DTPOFF): New.
4004 (load_tp, set_tp, tls_func, tls_arg, tls_call): New.
4005 * config/xtensa/xtensa-protos.h (xtensa_tls_referenced_p): Declare.
4006 * configure: Regenerated.
4008 2008-09-18 H.J. Lu <hongjiu.lu@intel.com>
4011 * config/ia64/ia64.c (ia64_optimization_options): Move
4012 checking and setting flag_schedule_insns_after_reload and
4013 ia64_flag_schedule_insns2 back to ...
4014 (ia64_override_options): Here.
4016 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
4019 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
4020 zero extend count after the correction to it is done.
4021 (doloop_optimize): Update call to doloop_modify, don't zero extend
4024 2008-09-18 Martin Jambor <mjambor@suse.cz>
4026 * ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false.
4028 * ipa-prop.c: Correct comments.
4029 * ipa-prop.h: Likewise.
4031 2008-09-18 Jan Hubicka <jh@suse.cz>
4034 * ipa-reference.c (ipa_reference_local_vars_info_d,
4035 ipa_reference_global_vars_info_d,
4036 ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
4037 ipa_reference_vars_info_t): Move here from ipa-reference.h
4038 (node_duplication_hook_holder, node_removal_hook_holder): New.
4039 (get_reference_vars_info_from_cgraph): Rename to ...
4040 (get_reference_vars_info): ... this one, use cgraph uids.
4041 (get_local_reference_vars_info, get_global_reference_vars_info):
4042 Use cgraph instead of decl.
4043 (ipa_reference_get_read_local, ipa_reference_get_written_local):
4045 (ipa_reference_get_read_global, ipa_reference_get_not_read_global
4046 ipa_reference_get_written_global,
4047 ipa_reference_get_not_written_global): Use cgraph argument.
4048 (check_call): Simplify avail check.
4049 (scan_stmt_for_static_refs): Update.
4050 (propagate_bits): Update.
4051 (merge_callee_local_info): Remove.
4052 (init_function_info): Use cgraph nodes.
4053 (clean_function_local_data): Break out from ...
4054 (clean_function): ... here.
4055 (copy_local_bitmap, copy_global_bitmap): New functions.
4056 (duplicate_node_data, remove_node_data): New functions.
4057 (generate_summary): Register hooks; use visibility instead of
4059 (propafate): Use cgraph nodes; copy bitmap to each node in cycle.
4060 * ipa-reference.h (ipa_reference_local_vars_info_d,
4061 ipa_reference_global_vars_info_d,
4062 ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
4063 ipa_reference_vars_info_t): Move to ipa-reference.c
4064 (ipa_reference_get_read_local, ipa_reference_get_written_local):
4066 (ipa_reference_get_read_global, ipa_reference_get_written_global,
4067 ipa_reference_get_not_read_global,
4068 ipa_reference_get_not_written_global): Update prototype.
4069 * ipa-pure-const.c (funct_state_vec): Turn into VECtor.
4070 (init_state): Remove.
4071 (node_duplication_hook_holder, node_removal_hook_holder): New.
4072 (get_function_state, set_function_state): Use VECtor.
4073 (analyze_function): Check body availability.
4074 (add_new_function): Likewise.
4075 (duplicate_node_data, remove_node_data): New.
4076 (generate_summary): Register hooks; do not care about clones.
4077 (propafate): Do not care about clones; recursive functions are
4079 * ipa-utils.c (searchc, ipa_utils_reduced_inorder): Do not skip clones.
4080 * ipa-prop.c (edge_removal_hook_holder, node_removal_hook_holder,
4081 * edge_duplication_hook_holder, node_duplication_hook_holder): Make
4083 * tree-flow.h (function_ann_d): Remove reference_vars_info.
4084 * tree-ssa-opreands.c (add_call_clobber_ops, add_call_read_ops):
4085 Update call of ipa-reference accesors.
4087 2008-09-18 Simon Baldwin <simonb@google.com>
4089 * c-opts.c (c_common_handle_option): Add handling for
4090 -Wbuiltin-macro-redefined command line option.
4091 * c.opt: Added builtin-macro-redefined option.
4092 * doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
4095 2008-09-18 Richard Guenther <rguenther@suse.de>
4097 PR tree-optimization/37258
4098 * tree-ssa-sccvn.c (vn_phi_compute_hash): Include the precision
4099 and signedness for integral types.
4100 (vn_phi_eq): Require compatible types.
4102 2008-09-18 Jakub Jelinek <jakub@redhat.com>
4105 * gimplify.c (gimplify_type_sizes): When not optimizing, ensure
4106 TYPE_MIN_VALUE and TYPE_MAX_VALUE is not is not DECL_IGNORED_P
4108 * cfgexpand.c (expand_used_vars): Keep DECL_ARTIFICIAL
4109 !DECL_IGNORED_P vars in local_decls list for instantiate_decls,
4110 ggc_free other TREE_LIST nodes from that chain.
4111 * function.c (instantiate_decls): Instantiate also DECL_RTL
4112 of vars in cfun->local_decls, free that list afterwards.
4114 2008-09-18 Eric Botcazou <ebotcazou@adacore.com>
4116 * config/sparc/sol2.h (WIDEST_HARDWARE_FP_SIZE): Move to...
4117 * config/sparc/sparc.h (WIDEST_HARDWARE_FP_SIZE): ...here.
4119 2008-09-18 Andrew MacLeod <amacleod@redhat.com>
4121 * tree-outof-ssa.c (eliminate_useless_phis): Fix formatting.
4122 * tree-flow-.h (struct immediate_use_iterator_d): Fix comment.
4124 2008-09-18 Andrew MacLeod <amacleod@redhat.com>
4126 PR tree-optimization/37102
4127 * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args
4128 from a node. Check to see if another PHI is dead.
4129 (eliminate_useless_phis): Rename from eliminate_virtual_phis and
4130 remove real PHIs which have no uses.
4131 (rewrite_out_of_ssa): Call eliminate_useless_phis.
4133 2008-09-18 Richard Guenther <rguenther@suse.de>
4136 * tree-cfg.c (remove_useless_stmts_1): Remove
4137 GIMPLE_CHANGE_DYNAMIC_TYPE if not optimizing.
4139 2008-09-18 Nick Clifton <nickc@redhat.com>
4141 * config/frv/frv.h (IRA_COVER_CLASSES): Define.
4142 (SECONDARY_INPUT_RELOAD_CLASS): Omit unused argument in call
4143 to frv_secondary_reload_class.
4144 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
4145 * config/frv/frv.c (TARGET_SECONDARY_RELOAD): Define.
4146 (frv_secondary_reload_class): Omit unused parameter.
4147 (frv_secondary_reload): New function. Handle the case when
4148 secondary_reload_class() is called before the reload_(in|out)
4149 _optabs have been initialised.
4150 * config/frv/frv-protos.h (frv_secondary_reload_class): Omit
4152 * config/frv/frv.md: Define an exclusion set between fr550_m0
4155 2008-09-18 Richard Guenther <rguenther@suse.de>
4157 PR tree-optimization/37456
4158 * tree-ssa-reassoc.c (build_and_add_sum): If the stmt we
4159 want to insert after ends a BB insert on the single fallthru
4162 2008-09-18 Andreas Krebbel <krebbel1@de.ibm.com>
4164 * doc/invoke.texi: Document -mhard-dfp, -mno-hard-dfp.
4165 Mention -march=z9-109, z9-ec and z10.
4167 2008-09-18 Uros Bizjak <ubizjak@gmail.com>
4169 PR rtl-optimization/37544
4170 * regrename.c (maybe_mode_change): Exit early when copy_mode
4171 is narrower than orig_mode and narrower than new_mode.
4173 2008-09-18 Alexander Monakov <amonakov@ispras.ru>
4176 * sched-int.h (struct _haifa_insn_data): Remove unused field ref_count.
4178 * sched-rgn.c (ref_counts): Remove.
4179 (insn_referenced): New static variable.
4180 (INSN_REF_COUNT): Remove.
4181 (sched_run_compute_dependencies): Use insn_referenced instead of
4183 (add_branch_dependences): Likewise. Delete dead assignment.
4185 2008-09-17 Adam Nemet <anemet@caviumnetworks.com>
4187 * haifa-sched.c (dep_cost_1): Recognize the producer even if the
4188 consumer is an asm. Add comment why this is important.
4189 (choose_ready): Add comment to the "INSN_CODE (insn) >= 0 ||
4190 recog_memoized (insn) < 0" assert. Put ENABLE_CHECKING around it.
4192 2008-09-17 Joseph Myers <joseph@codesourcery.com>
4194 * expr.c (emit_group_store): Do not shift before moving via a
4197 2008-09-17 Eric Botcazou <ebotcazou@adacore.com>
4199 * varasm.c (initializer_constant_valid_p): Forbid view-conversions
4200 from aggregate to non-aggregate type if the bit pattern is not fully
4201 preserved afterwards.
4203 2008-09-17 Richard Guenther <rguenther@suse.de>
4205 * tree-cfg.c (verify_types_in_gimple_assign): Rename to ...
4206 (verify_gimple_assign): ... this. Split into ...
4207 (verify_gimple_assign_unary): ... this,
4208 (verify_gimple_assign_binary): ... that,
4209 (verify_gimple_assign_single): ... and this.
4210 (verify_types_in_gimple_stmt): Call verify_gimple_assign.
4211 Fix GIMPLE_CHANGE_DYNAMIC_TYPE handling.
4212 (verify_types_in_gimple_min_lval): Handle TARGET_MEM_REF.
4213 (verify_types_in_gimple_reference): Be forgiving with
4215 (verify_gimple_phi): Deal with virtual operands.
4217 * tree.def (PREDICT_EXPR): Change to tcc_expression.
4219 2008-09-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
4221 * tree.c (get_callee_fndecl): Don't call the language hook.
4222 * langhooks.h (lang_hooks): Remove lang_get_callee_fndecl.
4223 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): Kill.
4224 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_GET_CALLEE_FNDECL.
4226 2008-09-17 Jakub Jelinek <jakub@redhat.com>
4228 * tree.c (protected_set_expr_location): Don't unnecessarily
4229 check for error_mark_node.
4231 2008-09-17 Art Haas <ahaas@impactweather.com>
4233 * ipa-reference.c (analyze_function): Declare step only if
4234 ENABLE_CHECKING is defined.
4236 2008-09-17 Jan Hubicka <jh@suse.cz>
4239 * tree.h (DECL_INLINE): remove.
4240 (DECL_DECLARED_INLINE_P): Update docs.
4241 (DECL_NO_INLINE_WARNING_P): new.
4242 (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
4243 * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
4245 2008-09-17 Jakub Jelinek <jakub@redhat.com>
4246 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4249 * dwarf2out.c (dwarf2out_do_cfi_asm) [MIPS_DEBUGGING_INFO]: Return
4252 2008-09-17 Jan Hubicka <jh@suse.cz>
4254 * ipa-reference.c (ipa_obstack): Remove.
4255 (local_info_obstack, global_info_obstack): New.
4256 (add_static_var): We now handle variables only.
4257 (mark_address_taken, mark_load, mark_store): New functions based on ...
4258 (check_operand): ... remove.
4259 (get_asm_stmt_operands): Rename to ...
4260 (check_asm_memory_clobber): ... this. Look only for memory clobber.
4261 (scan_stmt_for_static_refs): Rewrite.
4262 (scan_op_for_static_refs): Rename to ...
4263 (scan_initializer_for_static_refs): do not look for VAR_DECL
4264 initializers; stop recursion on types and decls.
4265 (ipa_init): Use proper obstacks.
4266 (analyze_variable): Use scan_initializer_for_static_refs.
4267 (init_function_info): Use local obstack.
4268 (analyze_function): Simplify.
4269 (add_new_function): We don't need visited_nodes obstack.
4270 (generate_summary): Use proper obstacks; cleanup after propagation.
4272 2008-09-17 Richard Guenther <rguenther@suse.de>
4275 PR tree-optimization/37491
4276 * alias.c (get_alias_set): Use the canonical type.
4277 * tree-vect-transform.c (vectorizable_store): Use the type of
4278 the lhs for the vector type. Adjust checking.
4279 (vectorizable_load): Adjust checking.
4281 2008-09-16 Jakub Jelinek <jakub@redhat.com>
4282 Adam Nemet <anemet@caviumnetworks.com>
4284 PR rtl-optimization/37483
4285 * ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
4286 if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
4287 Rearrange code to better match the original comment. Check
4288 t_unconditional first. Improve comment.
4290 2008-09-16 Jakub Jelinek <jakub@redhat.com>
4293 * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
4294 GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
4297 * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
4298 GIMPLE_TRY if cleanup sequence is empty.
4300 2008-09-16 Andrew Pinski <andrew_pinski@playstation.sony.com>
4303 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
4304 eliminate IV if the cost are the same.
4306 2008-09-16 Richard Guenther <rguenther@suse.de>
4309 * tree-sra.c (sra_build_assignment): Do not call the gimplifier
4312 2008-09-16 Richard Guenther <rguenther@suse.de>
4314 PR tree-optimization/37508
4315 * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
4317 2008-09-15 Kaz Kojima <kkojima@gcc.gnu.org>
4319 * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
4321 2008-09-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
4323 * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
4324 use gen_floatdidf2 directly.
4325 (floatunssidf2): Likewise.
4326 (floatsidf_ppc64_mfpgpr): Remove.
4327 (floatsidf_ppc64): Remove.
4328 (floatunssidf_ppc64): Remove.
4330 2008-09-15 Jakub Jelinek <jakub@redhat.com>
4332 * ira-color.c (finish_cost_update): Free update_cost_queue_elems
4333 rather than update_cost_queue.
4335 * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
4336 in every call starting with the second one, instead of only when
4337 alias_bitmap_obstack.elements != NULL.
4339 * tree-predcom.c (filter_suitable_components): Free all refs in
4340 act->refs vector before calling release_component.
4341 (add_ref_to_chain): Free ref if not adding it to chain->refs.
4343 * tree-data-ref.c (free_subscripts): Free all subscript objects.
4345 * tree-loop-linear.c (linear_transform_loops): Initialize
4346 lambda_obstack only after calling perfect_loop_nest_depth.
4347 Goto free_and_continue instead of just continue for later failures.
4350 * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
4353 * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
4355 2008-09-14 Andreas Schwab <schwab@suse.de>
4357 * tree-call-cdce.c (check_target_format): Accept Motorola formats.
4359 2008-09-14 Jan Hubicka <jh@suse.cz>
4361 * invoke.texi (-fconserve-stack): Document.
4362 * opts.c (decode_options): Handle conserve_stack.
4363 * common.opt (fconvserve_stack): New.
4365 2008-09-14 David Edelsohn <edelsohn@gnu.org>
4367 * config.host: Add x-aix to host_xmake_file.
4368 * config/rs6000/t-aix52: Do not override LDFLAGS.
4369 * config/rs6000/x-aix: New file.
4371 2008-09-14 Andy Hutchinson <hutchinsonandy@aim.com>
4377 * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
4378 is not recognized as a valid register usage. Allow REG_X to be used
4380 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
4381 forces a reload when using a base register.
4383 2008-09-14 Danny Smith <dannysmith@users.sourceforge.net>
4385 * config/i386/cygming-crtend.c (register_frame_ctor): If
4386 DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
4387 directly with atexit.
4388 (deregister_frame_ctor): Rename to ...
4389 (deregister_frame_dtor): Use to call __gcc_deregister_frame
4390 if !DEFAULT_USE_CXA_ATEXIT.
4392 2008-09-13 Jan Hubicka <jh@suse.cz>
4394 * cgraph.c: Include value-prof.h
4395 * Makefile.in (cgraph.o): Add value-prof.h dependency.
4397 2008-09-13 Jan Hubicka <jh@suse.cz>
4400 * tree-profile.c (add_abnormal_goto_call_edges): New function.
4401 (tree_gen_interval_profiler, tree_gen_pow2_profiler,
4402 tree_gen_one_value_profiler, tree_gen_average_profiler,
4403 tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
4405 2008-09-13 Jan Hubicka <jh@suse.cz>
4407 * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing
4408 too many bytes on misalligned blocks.
4410 2008-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4412 * doc/cfg.texi: Fix some typos.
4413 * doc/extend.texi: Likewise.
4414 * doc/install.texi: Likewise.
4415 * doc/invoke.texi: Likewise.
4416 * doc/rtl.texi: Likewise.
4417 * doc/tree-ssa.texi: Likewise.
4419 2008-09-13 Richard Guenther <rguenther@suse.de>
4422 * tree-nested.c (finalize_nesting_tree_1): Generate valid
4423 gimple stores for memory rhs.
4425 2008-09-13 H.J. Lu <hongjiu.lu@intel.com>
4427 PR rtl-optimization/37489
4428 * cse.c (fold_rtx): Don't return const_true_rtx for float
4429 compare if FLOAT_STORE_FLAG_VALUE is undefined.
4431 2008-09-13 Jan Hubicka <jh@suse.cz>
4433 PR tree-optimization/37392
4434 * tree-inline.c (remap_gimple_stmt): Do not remap return value.
4436 2008-09-13 Martin Jambor <mjambor@suse.cz>
4437 Jan Hubicka <jh@suse.cz>
4439 * cgraph.c (free_edges): New variable.
4440 (NEXT_FREE_EDGE): New macro.
4441 (cgraph_free_edge): New function.
4442 (cgraph_remove_edge): Call cgraph_remove_edge_1.
4443 (cgraph_node_remove_callees): Likewise.
4444 (cgraph_node_remove_callers): Likewise.
4445 (cgraph_create_edge): Reuse edges from the free list. Do not
4446 update uid if doing so.
4447 (cgraph_remove_*_hook): Add free call.
4449 2008-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4451 * ira-color.c (conflict_allocno_vec): Delete.
4452 (update_cost_queue_elem): New structure.
4453 (update_cost_queue): New variable.
4454 (update_cost_queue_tail): Likewise.
4455 (update_cost_queue_elems): Likewise.
4456 (allocno_update_cost_check): Delete.
4457 (initiate_cost_update): Allocate update_cost_queue_elems
4458 instead of allocno_update_cost_check.
4459 (finish_cost_update): Update the free()s accordingly.
4460 (start_update_cost): New function.
4461 (queue_update_cost): Likewise.
4462 (get_next_update_cost): Likewise.
4463 (update_copy_costs_1): Inline into...
4464 (update_copy_costs): ...here. Use a queue instead of recursive calls.
4465 Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
4466 once we've established they are equal. Don't allocate update
4467 costs if there is nothing to add to them.
4468 (update_conflict_hard_regno_costs): Remove ALLOCNO and
4469 DIVISOR arguments. Use a queue instead of recursive calls;
4470 process all the allocnos in the initial queue, rather than
4472 (assign_hard_reg): Use queue_update_cost instead of
4473 conflict_allocno_vec. Queue coalesced allocnos instead
4474 of calling update_conflict_hard_regno_costs for each one.
4475 Just call update_conflict_hard_regno_costs once for the
4477 (ira_color): Remove conflict_allocno_vec handling.
4479 2008-09-12 Sebastian Pop <sebastian.pop@amd.com>
4481 PR tree-optimization/37484
4482 * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
4483 (save_var_name): Same.
4484 (initialize_cloog_names): Same.
4485 (initialize_cloog_names): Same.
4487 2008-09-12 Sebastian Pop <sebastian.pop@amd.com>
4489 * tree-scalar-evolution.c (set_instantiated_value): Set
4492 2008-09-12 Vladimir Makarov <vmakarov@redhat.com>
4496 * ira-build.c (common_loop_tree_node_dominator): Remove.
4497 (copy_live_ranges_to_removed_store_destinations): New function.
4498 (regno_top_level_allocno_map): Move to top level from ...
4499 (ira_flattening): ... here. Use
4500 copy_live_ranges_to_removed_store_destinations.
4502 * ira-emit.c (generate_edge_moves): Fix a comment.
4504 2008-09-12 Anatoly Sokolov <aesok@post.ru>
4507 * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
4508 scratch register after 'set' pattern.
4510 2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4512 * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
4513 information passed to mark_reg_pointer.
4514 * explow.c (force_reg): Likewise.
4516 2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4518 * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
4519 when building for the celledp architecture.
4521 2008-09-12 Richard Guenther <rguenther@suse.de>
4523 * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
4525 2008-09-12 Eric Botcazou <ebotcazou@adacore.com>
4527 PR rtl-optimization/37424
4528 * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
4529 the regnos instead of the addresses.
4531 2008-09-11 Janis Johnson <janis187@us.ibm.com>
4533 * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
4535 2008-09-11 Richard Guenther <rguenther@suse.de>
4537 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
4538 entering the weaker equivalence recording.
4540 * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
4542 2008-09-11 Jeff Law <law@redhat.com>
4544 * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
4545 by assign_stack_local on the IRA path for stack slot sharing
4546 as well as the non-IRA path.
4548 2008-09-11 Uros Bizjak <ubizjak@gmail.com>
4550 * config/i386/i386.h: Fix whitespace issues.
4552 2008-09-11 Martin Jambor <mjambor@suse.cz>
4554 * ipa-prop.h (struct ipa_param_flags): Removed.
4555 (struct ipa_param_descriptor): New structure.
4556 (struct ipa_node_params): ipcp_lattices, param_decls and
4557 param_flags moved to ipa_param_description.
4558 (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
4559 descriptors. Renamed all users.
4560 (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
4561 changed to access descriptors. Renamed all users.
4562 (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
4563 to access descriptors. Renamed all users.
4564 * ipa-cp.c (ipcp_init_cloned_node): Call
4565 ipa_initialize_node_params instead of ipa_count_formal_params and
4566 ipa_create_param_decls_array.
4567 (ipcp_analyze_node): Likewise.
4568 (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
4569 descriptors. Renamed all users.
4570 (ipcp_initialize_node_lattices): Remove allocation.
4571 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
4572 ipa_initialize_node_params instead of ipa_count_formal_params and
4573 ipa_create_param_decls_array.
4574 * ipa-prop.c (ipa_create_param_decls_array): Renamed to
4575 ipa_populate_param_decls, made static, added parameter info,
4576 renamed mt to node, removed allocation, changed to use
4578 (ipa_count_formal_params): Made static, added parameter info,
4580 (ipa_initialize_node_params): New function.
4581 (ipa_check_stmt_modifications): Changed to use descriptors.
4582 (ipa_detect_param_modifications): Removed allocation, changed to
4584 (ipa_note_param_call): Changed to use descriptors.
4585 (ipa_analyze_params_uses): Removed allocation.
4586 (ipa_free_node_params_substructures): Changed to use descriptors.
4587 (ipa_edge_duplication_hook): Use the unused attribute.
4588 (ipa_node_duplication_hook): Use the unused attribute, changed to
4589 use descriptors, changed to duplicate descriptors.
4591 * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
4592 changed all callers. Call ipa_propagate_indirect_call_infos if doing
4593 indirect inlining. Made static.
4594 (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
4595 functions called only once.
4596 (cgraph_decide_recursive_inlining): Don't call
4597 ipa_propagate_indirect_call_infos, pass new_edges to
4598 cgraph_mark_inline_edge instead.
4599 (cgraph_decide_inlining_of_small_functions): Don't call
4600 ipa_propagate_indirect_call_infos, pass new_edges to
4601 cgraph_mark_inline_edge instead.
4602 (cgraph_decide_inlining): Don't call
4603 ipa_propagate_indirect_call_infos.
4604 * ipa-prop.c: Check that vectors are allocated.
4606 * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
4607 iff a new cgraph edges have been created.
4608 (cgraph_decide_inlining): New variable redo_always_inline.
4609 Flattening and always_inlining loop until callgraph stabilizes.
4610 * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
4611 true iff new cgraph edges have been created.
4612 (propagate_info_to_inlined_callees): Likewise.
4613 (ipa_propagate_indirect_call_infos): Likewise.
4615 2008-09-11 Richard Guenther <rguenther@suse.de>
4617 * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
4618 (set_prologue_iterations): Likewise.
4619 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
4621 (vect_update_init_of_dr): Likewise.
4622 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
4624 * fold-const.c (fold_unary): Do not generate calculations
4627 2008-09-11 Paolo Bonzini <bonzini@gnu.org>
4629 * dojump.c (do_jump) [BIT_AND_EXPR]: Move below. Fall through to
4630 TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
4631 (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
4633 * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return
4635 * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
4636 VRP's simplify_stmt_using_ranges. Do simplify_stmt_using_ranges
4637 before finalizing the changes.
4638 * tree-vrp.c (extract_range_from_binary_expr): Add limited support
4640 (simplify_truth_ops_using_ranges): New.
4641 (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
4642 simplify_cond_using_ranges, simplify_switch_using_ranges): Return
4643 whether a simplification was made.
4644 (simplify_stmt_using_ranges): Ditto, and accept a GSI. For GS_ASSIGN,
4645 use a switch statement and also call simplify_truth_ops_using_ranges.
4647 2008-09-11 Jan Hubicka <jh@suse.cz>
4649 * ggc-common.c (loc_array): Make static.
4650 * dce.c (rest_of_handle_ud_dce): Free worklist.
4652 2008-09-11 Jan Hubicka <jh@suse.cz>
4654 * cgraph.c (cgraph_release_function_body): Plug memory leak on
4655 ipa_transforms_to_apply and CFG; ggc_free gimple df and struct
4656 function so we are sure we do not dangle it forever.
4657 * function.c (outer_function_chain, find_function_data): Remove.
4658 (function_context_stack): New.
4659 (push_function_context, pop_function_context): Update.
4660 * function.h (struct function): Remove pointer outer.
4661 (outer_function_chain, find_function_data): Remove.
4662 * stmt.c (force_label_rtx): Remove dead call of find_function_data.
4664 2008-09-11 Jan Hubicka <jh@suse.cz>
4667 * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
4669 2008-09-11 Jan Hubicka <jh@suse.cz>
4671 * tree-ssa-pre.c (phi_translate_1): Fix memory leak
4673 2008-09-11 Jan Hubicka <jh@suse.cz>
4675 * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
4676 (free_var_map_entry): New function.
4677 (redirect_edge_var_map_destroy): Use it.
4679 2008-09-11 Jan Hubicka <jh@suse.cz>
4682 * tree-inline.c (add_lexical_block): Replace with ...
4683 (prepend_lexical_block): ... prepend at begginig.
4684 (remap_blocks): Use it and reverse later.
4685 (expand_call_inline): Use prepend_lexical_block.
4687 2008-09-11 Jan Hubicka <jh@suse.cz>
4689 * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
4691 2008-09-11 Jan Hubicka <jh@suse.cz>
4693 * function.c (free_after_compilation): Call insn_locators_free.
4694 * cfglayout.c (insn_locators_free): New function.
4695 * rtl.h (insn_locators_free): Declare.
4697 2008-09-11 Jan Hubicka <jh@suse.cz>
4699 * ifcvt.c (check_cond_move_block): Make regs argument pointer to
4701 (cond_move_process_if_block): Update call.
4703 2008-09-11 Jan Hubicka <jh@suse.cz>
4705 * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
4706 * vec.c: Include hashtab.h
4707 (vec_descriptor, ptr_hash_entry): New structures.
4708 (vec_desc_hash, vec_ptr_map): New static variables.
4709 (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
4710 register_overhead, free_overhead, vec_heap_free): New functions.
4711 (vec_gc_o_reserve_1): ggc_free when resizing to 0.
4712 (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
4713 (cmp_statistic, add_statistics, dump_vec_loc_statistics):
4716 2008-09-11 Ira Rosen <irar@il.ibm.com>
4718 PR tree-optimization/37474
4719 * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
4720 length of load permutation.
4722 2008-09-11 Andreas Schwab <schwab@suse.de>
4724 * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
4726 2008-09-11 Jakub Jelinek <jakub@redhat.com>
4729 * expmed.c (extract_low_bits): Avoid creating invalid subregs.
4730 * dse.c (find_shift_sequence): Use extract_low_bits instead of
4731 simplify_gen_subreg.
4733 2008-09-11 Ira Rosen <irar@il.ibm.com>
4735 * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
4738 2008-09-10 Jakub Jelinek <jakub@redhat.com>
4741 * gimplify.c (gimplify_body): Call default_rtl_profile.
4744 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
4745 instead of tok->val.node if not expanding to something else. Handle
4746 intervening CPP_PADDING tokens.
4747 (altivec_categorize_keyword): Remove unneeded comparisons.
4749 2008-09-10 Richard Guenther <rguenther@suse.de>
4751 * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
4753 2008-09-10 Richard Guenther <rguenther@suse.de>
4756 * tree-inline.c (insert_init_stmt): Make sure to not
4757 insert invalid gimple stores.
4759 2008-09-10 Sebastian Pop <sebastian.pop@amd.com>
4761 PR tree-optimization/37388
4762 * toplev.c (process_options): Fail and warn when graphite
4763 flags are used, but the compiler has not been configured
4764 with graphite libraries.
4765 * graphite.c (graphite_transform_loops): Remove printfs
4766 to dump_file for the case when graphite is not available.
4768 2008-09-10 H.J. Lu <hongjiu.lu@intel.com>
4771 * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
4772 the even element into register.
4773 (ix86_expand_vector_init_general): Don't use
4774 ix86_expand_vector_init_interleave on V16QImode and V8HImode
4775 if we can't move from GPR to SSE register directly.
4777 2008-09-10 Bernd Schmidt <bernd.schmidt@analog.com>
4779 * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
4780 not lose track of the number of NOPs needed. Number of NOPs needed
4781 for sync vs. loads workaround was switched; corrected. Run second
4782 pass for all workarounds. No NOPs needed after call insns. Change
4783 second pass to use find_next_insn_start and find_load helpers in order
4784 to properly detect parallel insns.
4785 * config/bfin/bfin.md (cbranch_with_nops): Increase length.
4787 2008-09-10 Jan Hubicka <jh@suse.cz>
4789 * value-prof.c (gimple_ic): Fix tuplification bug.
4790 * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
4793 2008-09-10 Jakub Jelinek <jakub@redhat.com>
4795 PR tree-optimization/37353
4796 * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
4797 (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
4798 calls instead of cond_dead_built_in_calls.
4799 (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
4800 initalize the vector only before adding first entry. Use VEC_safe_push
4801 instead of VEC_quick_push. Pass cond_dead_built_in_calls to
4802 shrink_wrap_conditional_dead_built_in_calls call.
4804 2008-09-10 Ira Rosen <irar@il.ibm.com>
4806 PR tree-optimization/37385
4807 * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new
4808 argument, and use it as a vector type if not NULL.
4809 (vectorizable_store): Call vect_create_data_ref_ptr with the type of
4811 (vect_setup_realignment): Call vect_create_data_ref_ptr with
4812 additional argument.
4813 (vectorizable_load): Likewise.
4815 2008-09-10 Jakub Jelinek <jakub@redhat.com>
4817 * config/i386/i386.md (SWI32): New mode iterator.
4818 (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
4821 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
4823 PR rtl-optimization/37435
4824 * caller-save.c (insert_restore, insert_save): Check the mode by
4827 2008-09-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4830 * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
4832 (dw2_output_indirect_constant_1): Use unstripped name in symbol
4835 2008-09-09 Sandra Loosemore <sandra@codesourcery.com>
4837 * doc/invoke.texi (ARM Options): Correct errors in discussion
4838 of -mfloat-abi, -mhard-float, and -msoft-float.
4840 2008-09-09 Jakub Jelinek <jakub@redhat.com>
4841 Jan Hubicka <jh@suse.cz>
4844 * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
4845 calling gimple_regimplify_operands on it. Iterate over all newly
4846 added statements, not just the last one.
4847 (insert_init_stmt): Insert stmt into seq first, then call
4848 gimple_regimplify_operands on it. Don't create new gimplification
4849 context, nor find referenced vars.
4851 2008-09-09 Jakub Jelinek <jakub@redhat.com>
4854 * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
4855 to pointer to vector pointer.
4856 * ipa-prop.c (ipa_propagate_indirect_call_infos,
4857 propagate_info_to_inlined_callees): Likewise.
4858 (update_call_notes_after_inlining): Likewise. Push new indirect edge
4859 to *new_edges instead of new_edges. Reread IPA_EDGE_REF after
4860 ipa_check_create_edge_args.
4861 * ipa-inline.c (cgraph_decide_recursive_inlining): Change last
4862 argument to pointer to vector pointer.
4863 (cgraph_decide_inlining_of_small_function): Adjust
4864 cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
4868 * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when
4869 optimizing for size, not speed.
4871 PR rtl-optimization/37408
4872 * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
4873 if parm is promoted.
4875 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
4877 PR tree-optimization/37375
4878 * tree-scalar-evolution.c (scev_info_str): Add field
4880 (new_scev_info_str, eq_scev_info, find_var_scev_info,
4881 set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
4882 set_instantiated_value): Pass instantiated_below.
4883 (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls
4885 (instantiate_scev_1, instantiate_scev): Pass a basic block above which
4886 the definitions are not instantiated.
4888 * tree-scalar-evolution.h (instantiate_scev): Update declaration.
4889 (block_before_loop): New.
4890 * tree-data-ref.c (dr_analyze_indices): Update uses of
4892 * graphite.c (block_before_scop): New.
4893 (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
4894 basic block, not a loop for determining the parameters.
4895 (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
4897 (idx_record_params, find_params_in_bb, find_scop_parameters,
4898 build_loop_iteration_domains, add_conditions_to_domain): Update calls
4899 to instantiate_scev.
4901 * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
4903 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
4907 * ira-build.c (ira_create_allocno): Setup frequency to 0.
4909 * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
4910 Check zero freq and increase if necessary.
4912 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
4914 * ira-conflicts.c (process_regs_for_copy): Check that the hard
4915 regno is in the right range. Add comments.
4917 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4919 * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
4921 * mips-tfile.c (copy_object): Cast alloca result to int *.
4922 * mips-tdump.c (print_symbol): Cast xmalloc return values to
4924 Rename class to sclass.
4925 (read_tfile): Cast read_seek return values to proper types.
4926 Cast xcalloc return value to proper type.
4928 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4930 * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
4931 * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
4932 * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
4934 2008-09-09 Jan Hubicka <jh@suse.cz>
4936 * profile.c (is_edge_inconsistent): Add debug output; ignore
4937 negative count on fake edges.
4938 (is_inconsistent): Add debug output.
4940 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
4942 * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
4944 (choose_ready): When first insn is chosen from the ready list, also
4947 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
4949 PR rtl-optimization/37360
4950 * haifa-sched.c (max_issue): Do not assert that we never issue more
4951 insns than issue_rate. Add comment.
4953 2008-09-09 Richard Guenther <rguenther@suse.de>
4955 * tree-cfg.c (verify_types_in_gimple_op): Remove.
4956 (verify_types_in_gimple_call): Rename to ...
4957 (verify_gimple_call): ... this. Enhance.
4958 (verify_types_in_gimple_cond): Remove.
4959 (verify_gimple_comparison): New function ...
4960 (verify_types_in_gimple_assign): ... split out from here.
4961 (verify_types_in_gimple_return): Rename to ...
4962 (verify_gimple_return): ... this. Enhance.
4963 (verify_types_in_gimple_switch): Rename to ...
4964 (verify_gimple_switch): ... this. Enhance.
4965 (verify_gimple_goto): New function.
4966 (verify_types_in_gimple_phi): Rename to ...
4967 (verify_gimple_phi): ... this. Enhance.
4968 (verify_types_in_gimple_stmt): Adjust calls to helper functions.
4969 Fold in single-statement cases from verify_types_in_gimple_seq_2.
4970 (verify_types_in_gimple_seq_2): Remove cases handled in
4971 verify_types_in_gimple_stmt.
4973 2008-09-09 Bernd Schmidt <bernd.schmidt@analog.com>
4975 * config/bfin/bfin.c (n_regs_to_save): New static variable.
4976 (push_multiple_operation, pop_multiple_operation): Set it.
4977 (workaround_rts_anomaly): New function.
4978 (workaround_speculation): New function, broken out of bfin_reorg.
4979 (bfin_reorg): Call the new functions.
4981 2008-09-09 Richard Guenther <rguenther@suse.de>
4985 * gimplify.c (gimplify_conversion): Change conversions of
4986 non-register type to VIEW_CONVERT_EXPRs.
4987 (gimplify_addr_expr): If we need to make the operand
4988 addressable make sure to use a properly initialized
4989 temporary for that so it gets a valid gimple store.
4991 2008-09-09 Aldy Hernandez <aldyh@redhat.com>
4993 * function.h (struct function): Add function_start_locus.
4994 * cfgexpand.c (gimple_expand_cfg): Use it.
4995 * c-parser.c (c_parser_declaration_or_fndef): Set it.
4997 2008-09-09 Richard Guenther <rguenther@suse.de>
4999 PR tree-optimization/37433
5000 * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
5003 2008-09-09 Richard Guenther <rguenther@suse.de>
5005 PR tree-optimization/37387
5006 * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
5007 and bits to a common type.
5009 2008-09-09 Nick Clifton <nickc@redhat.com>
5011 * config/v850/v850.md (return): Restore frame size restriction.
5013 2008-09-09 Paolo Bonzini <bonzini@gnu.org>
5015 * c-common.c (c_expand_decl): Remove.
5016 * c-common.h (anon_aggr_type_p): Remove prototype.
5017 (DECL_ANON_UNION_ELEMS): Remove.
5018 * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
5019 * c-decl.c (anon_aggr_type_p): Remove.
5020 * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
5021 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
5022 * langhooks.h (struct lang_hooks): Remove expand_decl.
5023 * langhooks.c (lhd_expand_decl): Remove.
5024 * stmt.c (expand_anon_union_decl): Remove.
5025 * tree.h (expand_anon_union_decl): Remove prototype.
5027 2008-08-09 Andy Hutchinson <hutchinsonandy@aim.com>
5030 * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
5032 * config/avr/avr.md (QISI) : Define mode iterator.
5033 (negated_tst<mode>) : Redefine as split using mode macro.
5034 (reversed_tstqi): Define insn as reversed compare with zero.
5035 (reversed_tsthi): Ditto.
5036 (reversed_tstsi): Ditto.
5038 2008-09-08 Jakub Jelinek <jakub@redhat.com>
5041 * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
5042 call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
5045 * predict.c (optimize_function_for_size_p): Don't segfault if
5047 * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
5048 tree_swap_operands_p): Don't test cfun != NULL before calling
5049 optimize_function_for_s*_p.
5051 2008-09-08 Eric Botcazou <ebotcazou@adacore.com>
5053 * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
5056 2008-09-08 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
5058 * crx/crx.h (IRA_COVER_CLASSES): Define.
5060 2008-09-08 Jakub Jelinek <jakub@redhat.com>
5063 * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
5064 even when a stmt has been gimple_modified_p, but after fold_stmt is
5065 not any longer. Remove unneeded may_have_exposed_new_symbols
5068 2008-09-08 Richard Guenther <rguenther@suse.de>
5070 PR tree-optimization/37421
5071 * tree-ssa-sccvn.c (visit_copy): Make sure to fully
5074 2008-09-08 Jakub Jelinek <jakub@redhat.com>
5077 * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
5079 2008-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5082 * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
5083 * pa-hpux10.h (LINK_SPEC): Likewise.
5084 * pa-hpux11.h (LINK_SPEC): Likewise.
5086 2008-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5088 * pa32-regs.h (IRA_COVER_CLASSES): Define.
5089 * pa64-regs.h (IRA_COVER_CLASSES): Define.
5091 2008-09-07 Helge Deller <deller@gmx.de>
5093 * pa/linux-atomic.c: New file.
5094 * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
5095 * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
5097 2008-09-07 Richard Guenther <rguenther@suse.de>
5098 Ira Rosen <irar@il.ibm.com>
5100 PR tree-optimization/36630
5101 * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
5102 Call STRIP_NOPS before calling evolution_part_in_loop_num.
5104 2008-09-07 Dorit Nuzman <dorit@il.ibm.com>
5105 Ira Rosen <irar@il.ibm.com>
5107 PR tree-optimization/35642
5108 * config/rs6000/altivec.md (mulv8hi3): Implement.
5110 2008-09-06 Jeff Law <law@redhat.com>
5112 * h8300/h8300.h (IRA_COVER_CLASSES): Define.
5114 2008-09-06 Jan Hubicka <jh@suse.cz>
5116 PR tree-optimization/14703
5117 * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
5119 * passes.c (init_optimization_passes): Recompute inline parameters.
5121 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
5123 * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
5126 2008-09-06 Richard Sandiford <rdsandiford@goolemail.com>
5127 Peter Fuerst <post@pfrst.de>
5129 * doc/invoke.texi: Document -mr10k-cache-barrier=.
5130 * doc/extend.texi: Document __builtin_mips_cache.
5131 * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
5132 * config/mips/mips.opt (mr10k-cache-barrier=): New option.
5133 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
5134 __GCC_HAVE_BUILTIN_MIPS_CACHE.
5135 (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
5136 * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
5137 (set_push_mips_isas): New variable.
5138 (mips_r10k_cache_barrier): New variable.
5139 (cache): New availability predicate.
5140 (mips_builtins): Add an entry for __builtin_mips_cache.
5141 (mips_build_cvpointer_type): New function.
5142 (MIPS_ATYPE_CVPOINTER): New macro.
5143 (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
5145 (r10k_simplified_address_p, r10k_simplify_address)
5146 (r10k_uncached_address_p, r10k_safe_address_p)
5147 (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
5148 (r10k_needs_protection_p_call, r10k_needs_protection_p)
5149 (r10k_insert_cache_barriers): New functions.
5150 (mips_reorg_process_insns): Delete cache barriers after a
5151 branch-likely instruction.
5152 (mips_reorg): Call r10k_insert_cache_barriers.
5153 (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
5154 * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
5155 (UNSPEC_R10K_CACHE_BARRIER): Likewise.
5156 (mips_cache, r10k_cache_barrier): New define_insns.
5158 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
5160 * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
5161 * ira-color.c (setup_allocno_left_conflicts_num): Use
5162 hard_reg_set_equal_p instead of a comparison with
5163 ira_zero_hard_reg_set.
5164 * ira.c (setup_reg_subclasses): Likewise.
5165 (setup_cover_and_important_classes): Likewise.
5166 (setup_class_translate): Likewise.
5167 (setup_reg_class_intersect_union): Likewise.
5168 (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
5169 (ira_init_once): Don't initialize them.
5171 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
5173 * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
5175 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
5177 * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
5179 2008-09-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
5181 Improved branch hints, safe hints, and scheduling.
5183 * haifa-sched.c (sched_emit_insn) : Define.
5184 * sched-int.h (sched_emit_insn) : Add prototype.
5185 * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
5186 -mhint-max-distance -msafe-hints) : Document.
5187 * config/spu/spu.c (spu_flag_var_tracking): New.
5188 (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
5189 TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
5190 TARGET_ASM_FILE_START): Define.
5191 (TARGET_SCHED_ADJUST_PRIORITY): Remove.
5192 (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
5193 (spu_emit_branch_hint): Add blocks argument.
5194 (insert_branch_hints, insert_nops): Remove.
5195 (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
5196 uses_ls_unit, spu_sched_init_global, spu_sched_init,
5197 spu_sched_reorder, asm_file_start): New functions.
5198 (clock_var, spu_sched_length, pipe0_clock,
5199 pipe1_clock, prev_clock_var, prev_priority,
5200 spu_ls_first, prev_ls_clock): New static variables.
5201 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
5202 * config/spu.md (iprefetch): Add operand, make it clobber MEM.
5203 (nopn_nv): Add a non-volatile version of nop.
5204 * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
5205 -mhint-max-distance, -msafe-hints): New options.
5207 2008-09-05 Janis Johnson <janis187@us.ibm.com>
5208 Samuel Tardieu <sam@rfc1149.net>
5210 * opts.c (decode_options): Combine nested if statements.
5213 * opts.c (decode_options): Handle more relationships among
5214 unit-at-a-time, toplevel-reorder, and section-anchors.
5216 2008-09-05 David Daney <ddaney@avtrex.com>
5218 * doc/install.texi (--enable-reduced-reflection): Document new option.
5220 2008-09-05 Bob Wilson <bob.wilson@acm.org>
5222 * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
5224 (constantpool_operand): New.
5225 (move_operand): Disallow sub-word modes for the constant pool.
5226 * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
5227 (xtensa_secondary_reload_class): Replace with....
5228 (xtensa_secondary_reload): this function. Remove SIGN_EXTEND check.
5229 Set icode for sub-word reloads from the constant pool.
5230 * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
5231 (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
5232 * config/xtensa/xtensa.md (reload<mode>_literal): New.
5233 * config/xtensa/xtensa-protos.h: Update prototypes.
5235 2008-09-05 Joseph Myers <joseph@codesourcery.com>
5237 * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
5238 (REG_CLASS_NAMES): Update.
5239 (REG_CLASS_CONTENTS): Update.
5240 * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
5241 of ALL_REGS for regs 77 and 78.
5242 * function.c (instantiate_virtual_regs_in_insn): Assert that
5243 return value of simplify_gen_subreg is not NULL.
5245 2008-09-05 Paolo Bonzini <bonzini@gnu.org>
5247 * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
5248 (gen_rtvec_v): Fix coding standards.
5250 2008-09-04 Jan Hubicka <jh@suse.cz>
5252 * i386.c (decide_alg): Be more conservative about optimizing for size.
5254 2008-09-04 Ian Lance Taylor <iant@google.com>
5256 * varasm.c (narrowing_initializer_constant_valid_p): New
5258 (initializer_constant_valid_p): Call it.
5260 2008-09-04 Jeff Law <law@redhat.com>
5262 * fold-const.c (native_encode_real): Fix computation of WORDS.
5263 (native_interpret_real): Likewise.
5265 2008-09-04 Janis Johnson <janis187@us.ibm.com>
5267 * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
5269 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
5271 * ira-conflicts.c (process_regs_for_copy): Check insn to check
5272 that the cost is already taken into account in ira-costs.c
5274 * ira-int.h (ira_debug_copy, ira_debug_copies): New.
5276 * ira-build.c (print_copy, print_copies, ira_debug_copy,
5277 ira_debug_copies): New.
5278 (ira_bulid): Call print_copies.
5280 * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
5282 2008-09-04 Samuel Tardieu <sam@rfc1149.net>
5285 * config/rs6000/rs6000.c (optimization_options): Remove check of
5286 flag_toplevel_order.
5288 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
5290 * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
5291 * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
5292 second operand is a reg_imm10_operand.
5293 * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
5294 *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
5295 (*seq_<GPR:mode><GPR2:mode>): Rename to
5296 *seq_zero_<GPR:mode><GPR2:mode>. Don't match if
5298 (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
5299 *seq_zero_<GPR:mode><GPR2:mode>_mip16. Don't match if
5301 (*sne_<GPR:mode><GPR2:mode>): Rename to
5302 *sne_zero_<GPR:mode><GPR2:mode>. Don't match if
5305 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
5307 * config/mips/mips.h (ISA_HAS_EXTS): New macro.
5308 * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
5309 combining an arithmetic right shift by more than 31 and a
5310 trunction. Don't match for out-of-range shift amounts. Set
5311 attribute mode to <MODE>.
5312 (*lshr32_trunc<mode>): Name the pattern combining a logical right
5313 shift by 32 and and a truncation. Set attribute mode to <MODE>.
5314 (*<optab>_trunc<mode>_exts): New pattern for truncated right
5315 shifts by less than 32.
5316 (extv): Change predicate on first operand to accept registers.
5317 Change predicate of the other operands from immediate_operand to
5318 const_int_operand. Expand exts when source is a register.
5319 (extzv): Change predicate of the constant operands from
5320 immediate_operand to const_int_operand.
5321 (extzv<mode>): Change predicate of the constant operands from
5322 immediate_operand to const_int_operand and no constraint. Also
5324 (*extzv_trunc<mode>_exts): New pattern.
5326 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
5328 * config/mips/mips.h (ISA_HAS_CINS): New macro.
5329 * config/mips/mips-protos.h (mask_low_and_shift_p,
5330 mask_low_and_shift_len): Declare.
5331 * config/mips/mips.c (mask_low_and_shift_p,
5332 mask_low_and_shift_len): New functions.
5333 (mips_print_operand): Handle new operand prefix "m".
5334 * config/mips/mips.md (*cins<mode>): New pattern.
5336 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
5338 * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
5339 optimizing for size.
5341 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
5343 * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
5344 regardless of epilogue_completed.
5346 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
5349 * ira-lives.c (process_bb_node_lives): Check setjmp.
5351 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
5354 * ira-build.c (form_loop_tree): Reverse BB walk.
5355 (create_bb_allocnos): Likewise.
5356 * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
5357 (mark_reg_store): Rename to...
5358 (mark_ref_live): ...this and take a df_ref argument instead of
5359 note_stores arguments. Assert that we have a register.
5360 (mark_reg_clobber): Delete.
5361 (def_conflicts_with_inputs_p): New function.
5362 (mark_reg_conflicts): Delete.
5363 (mark_reg_death): Rename to...
5364 (mark_ref_dead): ...this and take a df_ref argument instead of
5365 a register. Assert that we have a register.
5366 (process_bb_node_lives): Hoist frequency calculation out of
5367 instruction walk. Convert from a forwards scan to a backwards scan.
5368 Use DF_REF_USES and DF_REF_DEFS instead of register notes and
5369 note_stores. Remove EH_RETURN_DATA_REGNO and regs_set handling.
5370 (create_allocno_live_ranges): Don't create regs_set.
5372 2008-09-04 Ian Lance Taylor <iant@google.com>
5374 * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
5375 or REG_LABEL_TARGET.
5376 * calls.c (emit_library_call_value_1): Use MEM_P rather than
5377 comparing MODE with MEM.
5378 * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
5379 comparing with GF_PREDICT_TAKEN.
5380 (gimple_get_lhs): Change code to enum gimple_code.
5381 (gimple_set_lhs): Likewise.
5382 * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
5383 * omp-low.c (find_omp_clause): Change kind parameter to enum
5385 * tree-flow.h (find_omp_clause): Update declaration.
5386 * regrename.c (clear_dead_regs): Change kind parameter to enum
5388 * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
5390 * see.c (see_get_extension_data): Change return type to enum
5391 entry_type. Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
5392 SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
5393 (see_gen_normalized_extension): Change extension_code parameter to
5395 (see_seek_pre_extension_expr): Change extension_code to enum
5397 (see_merge_one_def_extension): Likewise.
5398 (see_handle_relevant_defs): Likewise.
5399 (see_handle_relevant_uses): Likewise.
5400 (see_analyze_one_def): Likewise.
5401 * tree-cfg.c (need_fake_edge_p): Compare gimple code with
5402 GIMPLE_ASM rather than ASM_EXPR.
5403 * tree-ssa-alias.c (is_escape_site): Compare gimple code with
5404 GIMPLE_RETURN rather than RETURN_EXPR.
5405 * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
5406 (evaluate_stmt): Likewise.
5407 * tree-vect-analyze.c (vect_analyze_operations): Change relevance
5408 to enum vect_relevant.
5409 (vect_mark_stmts_to_be_vectorized): Change assertion to not
5410 compare gimple codes with tree codes.
5412 2008-09-04 Paul Brook <paul@codesourcery.com>
5414 * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
5416 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
5418 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
5419 pointer check lost in the recent no-unit-at-a-time patch.
5421 2008-09-04 Jan Hubicka <jh@suse.cz>
5424 * tree-switch-conversion.c (check_final_bb): Accept only IP
5427 2008-09-04 Jan Hubicka <jh@suse.cz>
5429 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
5431 (vrp_evaluate_conditional_warnv_with_ops): ... this one. Add
5432 using_ranges argument.
5433 (vrp_evaluate_conditional): Avoid bogus warning for type range.
5434 (vrp_visit_cond_stmt): Update call of
5435 vrp_evaluate_conditional_warnv_with_ops
5437 2008-09-04 Jan Hubicka <jh@suse.cz>
5439 PR tree-optimization/37345
5440 PR tree-optimization/37358
5441 PR tree-optimization/37357
5442 * tree.c (build_function_type_skip_args): Build distinct type copy;
5444 (build_function_decl_skip_args): Set type of new decl not orig decl;
5445 clear DECL_VINDEX for methods turned into functions.
5447 2008-09-04 Nick Clifton <nickc@redhat.com>
5449 * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
5450 * configure: Regenerate.
5451 * config.in: Regenerate.
5452 * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
5453 alignment field, if it is supported.
5455 2008-09-04 Kai Tietz <kai.tietz@onevision.com>
5457 * config/i386/t-mingw32 (SHLIB_LC): Change order of import
5460 2008-09-03 David Edelsohn <edelsohn@gnu.org>
5462 * config/rs6000/rs6000.c (processor_target_table): Do not
5463 enable VMX for POWER6.
5465 2008-09-03 Anton Blanchard <anton@samba.org>
5467 * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
5468 emit memory barrier before operation.
5470 2008-09-03 John David Anglin <dave.anglin@nrc.cnrc.gc.ca>
5473 * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
5474 default_elf_asm_output_external.
5476 2008-09-03 Jeff Law <law@redhat.com>
5478 * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
5480 2008-09-03 Richard Henderson <rth@redhat.com>
5482 * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
5483 memory barrier to below the test-and-set.
5484 (alpha_split_lock_test_and_set_12): Likewise.
5486 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
5490 * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
5493 * ira-color.c (print_loop_title): Use all_allocnos.
5494 (color_pass): Ditto. Don't add border_allocnos. Check that
5495 subloop allocno in the correspdoning bitmap all_allocnos.
5497 * ira-emit.c (change_loop): Use all_allocnos.
5499 * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node): Ditto.
5500 (ira_create_allocno): Set up all_allocnos bit for the created allocno.
5501 (create_cap_allocno): Remove setting mentioned_allocnos.
5502 (create_insn_allocnos): Ditto.
5503 (remove_unnecessary_allocnos): Use all_allocnos.
5504 (check_allocno_creation): Check that allocnos are in the
5505 corresponding bitmap all_allocnos.
5507 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
5511 * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
5512 (process_regs_for_copy): Process subregs. Refine check when cost
5513 is taken into account in ira-costs.c.
5514 (process_reg_shuffles): Use REG_SUBREG_P.
5515 (add_insn_allocno_copies): Ditto. Ignore modes.
5517 * ira-color.c (conflict_allocno_vec): New.
5518 (COST_HOP_DIVISOR): New macro.
5519 (update_copy_costs_1): Use it.
5520 (update_conflict_hard_regno_costs): New function.
5521 (assign_hard_reg): Use it.
5522 (ira_color): Allocate and free conflict_allocno_vec.
5524 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
5528 * ira-int.h (ira_sort_insn_chain): Remove.
5530 * ira.c (basic_block_order_nums, chain_insn_order,
5531 chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
5532 (ira): Don't call ira_sort_insn_chain.
5534 * reload1.c (reload): Don't call ira_sort_insn_chain.
5536 2008-09-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
5539 * cgraphunit.c (update_call_expr): Remove eh regions from statements
5540 which become non throw.
5541 (cgraph_function_versioning): Also clear DECL_WEAK. Call
5542 update_call_expr after updating the flags on the decl.
5544 2008-09-03 Jan Hubicka <jh@suse.cz>
5546 PR tree-optimization/37315
5547 * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
5548 * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
5549 (cgraph_analyze_functions): Use node->analyzed
5550 (cgraph_mark_functions_to_output): Likewise.
5551 (cgraph_expand_function): All functions can be released after
5553 (cgraph_optimize): Use gimple_has_body_p.
5554 * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
5555 (cgraph_decide_inlining_incrementally): Likewise.
5556 (inline_transform): Inline transform.
5557 * tree-inline.c (initialize_cfun): Do now shallow copy structure;
5559 (inlinable_function_p): Drop gimple_body check.
5560 (expand_call_inline): Use gimple_has_body_p.
5561 * gimple.c (gimple_has_body_p): New.
5562 * gimple.h (gimple_has_body_p): Add prototype.
5563 * tree-cfg.c (execute_build_cfg): Remove gimple_body.
5564 (dump_function_to_file): Use gimple_has_body_p check.
5566 2008-09-03 Jakub Jelinek <jakub@redhat.com>
5569 * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
5571 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
5573 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
5575 From Michael Frysinger <michael.frysinger@analog.com>
5576 * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
5577 bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549. Add 0.2
5580 2008-09-03 Hari Sandanagobalane <hariharan@picochip.com>
5583 * doc/extend.texi: Document picoChip builtin functions.
5584 * doc/invoke.texi: Document picoChip options.
5585 * doc/contrib.texi: Add picoChip contribution.
5586 * doc/md.texi: Document picoChip constraints.
5587 * config.gcc: Add picochip-*-*.
5588 * config/picochip/: Add new port.
5590 2008-09-03 Richard Guenther <rguenther@suse.de>
5592 PR tree-optimization/37328
5593 * tree-sra.c (sra_build_assignment): Gimplify properly.
5594 (generate_copy_inout): Take the correct stmt as definition,
5595 remove bogus assert.
5597 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
5599 * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
5602 From Michael Frysinger <michael.frysinger@analog.com>
5603 * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
5605 2008-09-03 Danny Smith <dannysmith@usrs.sourceforge.net>
5607 * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
5608 (__gthread_setspecific): Revert 2008-08-31 change to
5609 __GTHREAD_HIDE_W32API case. Apply it to !__GTHREAD_HIDE_W32API case.
5611 2008-09-02 Aldy Hernandez <aldyh@redhat.com>
5613 * diagnostic.c (error_at): New.
5614 * toplev.h (error_at): New prototype.
5615 * c-typeck.c (build_array_ref): Call error_at instead of error.
5616 Pass location to pedwarn.
5618 2008-09-02 Adam Nemet <anemet@caviumnetworks.com>
5620 * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
5622 2008-09-02 Jakub Jelinek <jakub@redhat.com>
5624 * dwarf2out.c (tree_add_const_value_attribute): Only handle
5625 VAR_DECL and CONST_DECL.
5627 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
5628 Jakub Jelinek <jakub@redhat.com>
5630 * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
5631 (setup_incoming_varargs_64): Assume cum != NULL. Set/check
5632 ix86_varargs_gpr_size and ix86_varargs_fpr_size. Use
5633 ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
5634 Don't set ix86_save_varrargs_registers.
5635 (ix86_setup_incoming_varargs): Assume cum != NULL.
5636 (ix86_va_start): Check ix86_varargs_gpr_size and
5637 ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
5638 cfun->va_list_fpr_size, respectively. Subtract 8*X86_64_REGPARM_MAX
5639 from frame pointer if ix86_varargs_gpr_size == 0.
5640 (ix86_compute_frame_layout): Updated.
5641 * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
5642 (ix86_varargs_gpr_size): Define.
5643 (ix86_varargs_fpr_size): Likewise.
5644 (machine_function): Remove save_varrargs_registers.
5645 Add varargs_gpr_size and varargs_fpr_size.
5647 2008-09-02 Jakub Jelinek <jakub@redhat.com>
5649 * config/alpha/alpha.c (va_list_skip_additions,
5650 alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
5651 (alpha_gimplify_va_arg): Call unshare_expr on second use of
5654 PR tree-optimization/36766
5655 * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
5656 for already removed basic blocks.
5659 * real.c (real_maxval): Clear a lower bit to make real_maxval
5660 match get_max_float for IBM long double format.
5662 2008-09-02 Andreas Schwab <schwab@suse.de>
5664 * configure.ac: Use m4_quote to quote the expansion of m4_do.
5665 * configure: Regenerate.
5667 2008-09-02 Richard Sandiford <rdsandiford@googlemail.com>
5669 * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
5670 SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
5671 checking for a non-VOID CONSTANT_P.
5673 2008-09-02 Jan Hubicka <jh@suse.cz>
5675 * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
5676 * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
5679 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
5681 * expr.c (emit_group_store): Don't assert stack temp mode size.
5683 2008-09-02 Sebastian Pop <sebastian.pop@amd.com>
5684 Tobias Grosser <grosser@fim.uni-passau.de>
5685 Jan Sjodin <jan.sjodin@amd.com>
5686 Harsha Jagasia <harsha.jagasia@amd.com>
5687 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5688 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5689 Adrien Eliche <aeliche@isty.uvsq.fr>
5691 Merge from graphite branch.
5694 * tree-loop-linear.c (perfect_loop_nest_depth): Export.
5695 * doc/invoke.texi (-floop-block, -floop-interchange,
5696 -floop-strip-mine): Document new flags.
5697 * tree-into-ssa.c (gimple_vec): Moved...
5698 * tree-loop-distribution.c (rdg_component): Moved...
5699 * cfgloopmanip.c: Include tree-flow.h.
5700 (update_dominators_in_loop): New.
5701 (create_empty_if_region_on_edge): New.
5702 (create_empty_loop_on_edge): New.
5703 (loopify): Use update_dominators_in_loop.
5704 * tree-pass.h (pass_graphite_transforms): Declared.
5705 * configure: Regenerate.
5706 * tree-phinodes.c (make_phi_node): Export.
5707 (add_phi_node_to_bb): New, split from create_phi_node.
5708 * tree-chrec.c (for_each_scev_op): New.
5709 * tree-chrec.h (for_each_scev_op): Declared.
5710 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
5711 (remove_statement): Call get_phi_with_result.
5712 * config.in (HAVE_cloog): Undef.
5713 * gdbinit.in (pgg): New.
5714 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
5715 * tree-ssa-loop.c (graphite_transforms): New.
5716 (gate_graphite_transforms): New.
5717 (pass_graphite_transforms): New.
5718 * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
5719 HAVE_cloog): Defined.
5720 * tree-vectorizer.c (rename_variables_in_bb): Export.
5721 * tree-data-ref.c (dr_may_alias_p): Export.
5722 (stmt_simple_memref_p): New.
5723 (find_data_references_in_stmt): Export.
5724 (find_data_references_in_loop): Export.
5725 (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
5726 (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
5727 (create_rdg_vertices): Export.
5728 (build_empty_rdg): New.
5729 (build_rdg): Call build_empty_rdg. Free dependence_relations.
5730 * tree-data-ref.h (rdg_component): ... here.
5732 (struct data_reference): Add a field scop.
5734 (find_data_references_in_loop): Declared.
5735 (find_data_references_in_stmt): Declared.
5736 (create_rdg_vertices): Declared.
5737 (dr_may_alias_p): Declared.
5738 (stmt_simple_memref_p): Declared.
5739 (struct rdg_edge): Add a field ddr_p relation.
5740 (build_empty_rdg): Declared.
5741 * lambda.h (lambda_matrix): Declare a VEC of.
5742 (find_induction_var_from_exit_cond): Declared.
5743 (lambda_vector_compare): New.
5744 * common.opt (fgraphite, floop-strip-mine,
5745 floop-interchange, floop-block): New flags.
5746 * lambda-code.c (find_induction_var_from_exit_cond): Export.
5747 * cfgloop.c (is_loop_exit): New.
5748 * cfgloop.h (is_loop_exit): Declared.
5749 (create_empty_if_region_on_edge): Declared.
5750 (create_empty_loop_on_edge): Declared.
5751 * tree-flow.h (add_phi_node_to_bb): Declared.
5752 (make_phi_node): Declared.
5753 (rename_variables_in_bb): Declared.
5754 (perfect_loop_nest_depth): Declared.
5755 (graphite_transform_loops): Declared.
5756 * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
5757 (graphite.o-warn): Add -Wno-error.
5758 (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
5759 (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
5760 (INCLUDES): Add PPLINC, CLOOGINC.
5761 (OBJS-common): Add graphite.o.
5762 (graphite.o): Add rule.
5763 * gimple.h (gimple_vec): ... here.
5764 * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
5765 * passes.c (init_optimization_passes): Schedule
5766 pass_graphite_transforms.
5768 2008-09-02 Samuel Tardieu <sam@rfc1149.net>
5771 * opts.c (decode_options): Move processing of -fno-unit-at-a-time
5772 and -fno-toplevel-reorder after handle_options.
5774 2008-09-02 Paul Brook <paul@codesourcery.com>
5776 * config/arm/arm.c (arm_tune_cortex_a9): Define.
5777 (arm_override_options): Set arm_tune_cortex_a9.
5778 (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
5779 (arm_issue_rate): Handle cortexa9.
5780 * config/arm/arm.h (arm_tune_cortex_a9): Declare.
5781 * config/arm/arm-cores.def: Add cortex-a9.
5782 * config/arm/arm-tune.md: Regenerate.
5783 * config/arm/arm.md: Include cortex-a9.md.
5784 (generic_sched, generic_vfp): Add cortexa9.
5785 * config/arm/cortex-a9.md: New file.
5787 2008-09-02 Richard Guenther <rguenther@suse.de>
5789 PR tree-optimization/37327
5790 * tree-vrp.c (register_new_assert_for): Make sure to not have
5791 TREE_OVERFLOW set on the bound.
5793 2008-09-02 Alexander Monakov <amonakov@ispras.ru>
5795 Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
5797 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
5798 * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
5801 2008-09-02 Victor Kaplansky <victork@il.ibm.com>
5803 * gcc/config/spu/spu.md (divdf3): Removed.
5805 2008-09-02 Jakub Jelinek <jakub@redhat.com>
5807 PR tree-optimization/37095
5808 * cgraph.c (cgraph_node): When creating new cgraph node after
5809 assembler_name_hash has been populated, record it in the hash
5812 2008-09-01 Paul Brook <paul@codesourcery.com>
5814 * doc/invoke.texi: Document -mword-relocations.
5815 * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
5816 * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
5817 * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
5818 * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
5819 (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
5820 (arm_emit_movpair): New function.
5821 (arm_print_operand <c>): Handle sybolic addresses.
5822 * config/arm/arm.h (TARGET_USE_MOVT): Define.
5823 (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
5824 * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
5825 * config/arm/arm.opt: Add -mword-relocations.
5826 * config/arm/arm.md (movsi): Use arm_emit_movpair.
5827 (arm_movt, arm_movw): New.
5829 2008-09-01 Paul Brook <paul@codesourcery.com>
5831 * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
5832 Allow Interworking on ARMv4 EABI based targets.
5833 * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
5834 (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
5836 2008-09-01 Paul Brook <paul@codesourcery.com>
5838 * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
5839 optimized LT0 test. Remove optimization for GT.
5841 2008-09-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5843 * pa64-hpux.h (LIB_SPEC): Link against librt when building static
5844 openmp applications.
5845 * pa-hpux11.h (LIB_SPEC): Likewise.
5847 * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS
5850 2008-09-01 Jan Hubicka <jh@suse.cz>
5852 * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
5853 present, use only counts; when guessed use only frequencies.
5854 (estimate_bb_frequencies): Use function_frequency.
5855 * profile.c (compute_branch_probabilities): Exit early when
5856 profile reading failed. Set profile_status.
5857 (branch_prob): Do not set profile_status.
5859 2008-09-01 Aldy Hernandez <aldyh@redhat.com>
5861 * tree.c (protected_set_expr_location): New.
5862 * tree.h (protected_set_expr_location): New prototype.
5863 * c-tree.h (build_array_ref): Add argument.
5864 (parser_build_unary_op): Same.
5865 * c-typeck.c (build_indirect_ref): Handle new location argument.
5866 (build_array_ref): Same.
5867 (parser_build_unary_op): Same.
5868 * gimplify.c (gimplify_asm_expr): Set input_location before calling
5870 * c-omp.c (c_finish_omp_atomic): Pass location when calling
5872 * c-common.c (finish_label_address_expr): Handle new location argument.
5873 * c-common.h (build_indirect_ref): Add argument.
5874 (finish_label_address_expr): Same.
5875 * c-parser.c (c_parser_unary_expression): Pass location to build
5877 (c_parser_postfix_expression): Same.
5879 2008-09-01 Paul Brook <paul@codesourcery.com>
5881 * config/arm/arm.md: Include cortex-r4f.md.
5882 (attr fpu): Update type list.
5883 (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
5884 fconstd, fcmps and fcmpd.
5885 (attr tune_cortexr4): Define.
5886 (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
5887 * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
5888 fconsts, fconstd, fcmps and fcmpd. Use them in insn patterns.
5889 * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
5890 * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
5891 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
5892 cortex_a8_vfp_farith: Ditto.
5893 * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
5894 * config/arm/cortex-r4.md: Use tune_cortexr4.
5895 * config/arm/cortex-r4f.md: New file.
5897 2008-09-01 Richard Guenther <rguenther@suse.de>
5899 PR tree-optimization/37305
5900 * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
5901 the result of constant conversions.
5902 (fold_gimple_assign): Likewise.
5904 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
5906 * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
5907 #ifdef ENABLE_CHECKING.
5909 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
5911 * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
5912 * sched-int.h (print_insn, print_pattern, print_value): Declare also
5913 when !INSN_SCHEDULING.
5915 2008-09-01 Andreas Schwab <schwab@suse.de>
5917 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
5919 2008-09-01 Paul Brook <paul@codesourcery.com>
5921 * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
5923 2008-09-01 Jan Hubicka <jh@suse.cz>
5925 * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
5927 * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
5929 * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
5930 * gimplify.c (gimplify_init_constructor): Add speed operand.
5931 * tree-sra.c (decide_block_copy): Likewise.
5932 * tree-inline.c (estimate_move_cost): Likewise.
5933 * config/alpha/alpha.h (MOVE_RATIO): Update.
5934 * config/frv/frv.c (MOVE_RATIO): Update.
5935 * config/spu/spu.h (MOVE_RATIO): Update.
5936 * config/sparc/sparc.h (MOVE_RATIO): Update.
5937 * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
5938 * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
5939 * config/cris/cris.h (MOVE_RATIO): Update.
5940 * config/mn10300/mn10300.h (MOVE_RATIO): Update.
5941 * config/arm/arm.h (MOVE_RATIO): Update.
5942 * config/pa/pa.md: Update uses of MOVE_RATIO
5943 * config/pa/pa.h (MOVE_RATIO): Update.
5944 * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
5945 CLEAR_RATIO, SET_RATIO): Update.
5946 * config/h8300/h8300.h (MOVE_RATIO): Update.
5947 * config/v850/v850.h (MOVE_RATIO): Update.
5948 * config/bfin/bfin.h (MOVE_RATIO): Update.
5950 2008-08-31 Andrey Belevantsev <abel@ispras.ru>
5951 Dmitry Melnik <dm@ispras.ru>
5952 Dmitry Zhurikhin <zhur@ispras.ru>
5953 Alexander Monakov <amonakov@ispras.ru>
5954 Maxim Kuvyrkov <maxim@codesourcery.com>
5956 * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
5957 sel-sched-dump.c, sel-sched-ir.c: New files.
5958 * Makefile.in (OBJS-common): Add selective scheduling object files.
5959 (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
5960 (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
5961 (sched-vis.o): Add dependency on $(INSN_ATTR_H).
5962 * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
5963 * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
5964 (make_forwarder_block): Update loop latch if we have redirected
5965 the loop latch edge.
5966 * cfgloop.c (get_loop_body_in_custom_order): New function.
5967 * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
5968 (CP_FALLTHRU_PREHEADERS): Likewise.
5969 (get_loop_body_in_custom_order): Declare.
5970 * cfgloopmanip.c (has_preds_from_loop): New.
5971 (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
5972 Assert that the preheader edge will be fall thru when it is set.
5973 * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
5974 fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
5975 fsel-sched-substitution, fselective-scheduling): New flags.
5976 * cse.c (hash_rtx_cb): New.
5978 * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
5979 sel_sched_insn_cnt): New counters.
5980 * final.c (compute_alignments): Export. Free dominance
5981 info after loop_optimizer_finalize.
5982 * genattr.c (main): Output maximal_insn_latency prototype.
5983 * genautomata.c (output_default_latencies): New.
5984 Factor its code from ...
5985 (output_internal_insn_latency_func): ... here.
5986 (output_internal_maximal_insn_latency_func): New.
5987 (output_maximal_insn_latency_func): New.
5988 * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
5989 (struct hard_reg_set_iterator): New.
5990 (hard_reg_set_iter_init, hard_reg_set_iter_set,
5991 hard_reg_set_iter_next): New functions.
5992 (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
5993 * lists.c (remove_free_INSN_LIST_node,
5994 remove_free_EXPR_LIST_node): New functions.
5995 * loop-init.c (loop_optimizer_init): When
5996 LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
5997 calling create_preheaders.
5998 (loop_optimizer_finalize): Do not verify flow info after reload.
5999 * recog.c (validate_replace_rtx_1): New parameter simplify.
6000 Default it to true. Update all uses. Factor out simplifying
6002 (simplify_while_replacing): ... this new function.
6003 (validate_replace_rtx_part,
6004 validate_replace_rtx_part_nosimplify): New.
6005 * recog.h (validate_replace_rtx_part,
6006 validate_replace_rtx_part_nosimplify): Declare.
6007 * rtl.c (rtx_equal_p_cb): New.
6008 (rtx_equal_p): Use it.
6009 * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
6010 (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
6011 debug_bb_n_slim, debug_bb_slim, print_rtl_slim): Likewise.
6012 * vecprim.h: Add a vector type for unsigned int.
6013 * haifa-sched.c: Include vecprim.h and cfgloop.h.
6014 (issue_rate, sched_verbose_param, note_list, dfa_state_size,
6015 ready_try, cycle_issued_insns, spec_info): Make global.
6016 (readyp): Initialize.
6017 (dfa_lookahead): New global variable.
6018 (old_max_uid, old_last_basic_block): Remove.
6019 (h_i_d): Make it a vector.
6020 (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
6022 (after_recovery, adding_bb_to_current_region_p):
6023 New variables to handle correct insertion of the recovery code.
6024 (struct ready_list): Move declaration to sched-int.h.
6025 (rgn_n_insns): Removed.
6026 (rtx_vec_t): Move to sched-int.h.
6027 (find_insn_reg_weight): Remove.
6028 (find_insn_reg_weight1): Rename to find_insn_reg_weight.
6029 (haifa_init_h_i_d, haifa_finish_h_i_d):
6030 New functions to initialize / finalize haifa instruction data.
6031 (extend_h_i_d, init_h_i_d): Rewrite.
6032 (unlink_other_notes): Move logic to add_to_note_list. Handle
6033 selective scheduler.
6034 (ready_lastpos, ready_element, ready_sort, reemit_notes,
6035 find_fallthru_edge): Make global, remove static prototypes.
6036 (max_issue): Make global. Add privileged_n and state parameters. Use
6038 (extend_global, extend_all): Removed.
6039 (init_before_recovery): Add new param. Fix the handling of the case
6040 when we insert a recovery code before the EXIT which has a predecessor
6041 with a fallthrough edge to it.
6042 (create_recovery_block): Make global. Rename to
6043 sched_create_recovery_block. Update.
6044 (change_pattern): Rename to sched_change_pattern. Make global.
6045 (speculate_insn): Rename to sched_speculate_insn. Make global.
6046 Split haifa-specific functionality into ...
6047 (haifa_change_pattern): New static function.
6048 (sched_extend_bb): New static function.
6049 (sched_init_bbs): New function.
6050 (current_sched_info): Change type to struct haifa_sched_info.
6051 (insn_cost): Adjust for selective scheduling.
6052 (dep_cost_1): New function. Move logic from ...
6053 (dep_cost): ... here.
6054 (dep_cost): Use dep_cost_1.
6055 (contributes_to_priority_p): Use sched_deps_info instead of
6057 (priority): Adjust to work with selective scheduling. Process the
6058 corner case when all dependencies don't contribute to priority.
6059 (rank_for_schedule): Use ds_weak instead of dep_weak.
6060 (advance_state): New function. Move logic from ...
6061 (advance_one_cycle): ... here.
6062 (add_to_note_list, concat_note_lists): New functions.
6063 (rm_other_notes): Make static. Adjust for selective scheduling.
6064 (remove_notes, restore_other_notes): New functions.
6065 (move_insn): Add two arguments. Update assert. Don't call
6067 (choose_ready): Remove lookahead variable, use dfa_lookahead.
6068 Remove more_issue, max_points. Move the code to initialize
6069 max_lookahead_tries to max_issue.
6070 (schedule_block): Remove rgn_n_insns1 parameter. Don't allocate
6071 ready. Adjust use of move_insn. Call restore_other_notes.
6073 (sched_init, sched_finish): Move Haifa-specific initialization/
6075 (haifa_sched_init, haifa_sched_finish): ... respectively.
6077 (setup_sched_dump): New function.
6078 (haifa_init_only_bb): New static function.
6079 (haifa_speculate_insn): New static function.
6080 (try_ready): Use haifa_* instead of speculate_insn and change_pattern.
6081 (extend_ready, extend_all): Remove.
6082 (sched_extend_ready_list, sched_finish_ready_list): New functions.
6083 (create_check_block_twin, add_to_speculative_block): Use
6084 haifa_insns_init instead of extend_global. Update to use new
6085 initialization functions. Change parameter. Factor out code from
6086 create_check_block_twin to ...
6087 (sched_create_recovery_edges) ... this new function.
6088 (add_block): Remove.
6089 (sched_scan_info): New.
6090 (extend_bb): Use sched_scan_info.
6091 (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
6092 static functions for walking through scheduling region.
6093 (sched_luids): New vector variable to replace uid_to_luid.
6094 (luids_extend_insn): New function.
6095 (sched_max_luid): New variable.
6096 (luids_init_insn): New function.
6097 (sched_init_luids, sched_finish_luids): New functions.
6098 (insn_luid): New debug function.
6099 (sched_extend_target): New function.
6100 (haifa_init_insn): New static function.
6101 (sched_init_only_bb): New hook.
6102 (sched_split_block): New hook.
6103 (sched_split_block_1): New function.
6104 (sched_create_empty_bb): New hook.
6105 (sched_create_empty_bb_1): New function.
6106 (common_sched_info, ready): New global variables.
6107 (current_sched_info_var): Remove.
6108 (move_block_after_check): Use common_sched_info.
6109 (haifa_luid_for_non_insn): New static function.
6110 (init_before_recovery): Use haifa_init_only_bb instead of add_block.
6111 (increase_insn_priority): New.
6112 * modulo-sched.c: (issue_rate): Remove static declaration.
6113 (sms_sched_info): Change type to haifa_sched_info.
6114 (sms_sched_deps_info, sms_common_sched_info): New variables.
6115 (setup_sched_infos): New.
6116 (sms_schedule): Initialize them. Call haifa_sched_init/finish.
6117 Do not call regstat_free_calls_crossed.
6118 (sms_print_insn): Use const_rtx.
6119 * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
6120 PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
6121 PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
6122 PARAM_SCHED_MEM_TRUE_DEP_COST): New.
6123 * sched-deps.c (sched_deps_info): New. Update all relevant uses of
6124 current_sched_info to use it.
6125 (enum reg_pending_barrier_mode): Move to sched-int.h.
6126 (h_d_i_d): New variable. Initialize to NULL.
6127 ({true, output, anti, spec, forward}_dependency_cache): Initialize
6129 (estimate_dep_weak): Remove static declaration.
6130 (sched_has_condition_p): New function. Adjust users of
6131 sched_get_condition to use it instead.
6132 (conditions_mutex_p): Add arguments indicating which conditions are
6134 (sched_get_condition_with_rev): Rename from sched_get_condition. Add
6135 argument to indicate whether returned condition is reversed. Do not
6136 generate new rtx when condition should be reversed; indicate it by
6137 setting new argument instead.
6138 (add_dependence_list_and_free): Add deps parameter.
6139 Update all users. Do not free dependence list when
6140 deps context is readonly.
6141 (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
6143 (remove_from_dependence_list, remove_from_both_dependence_lists): New.
6144 (remove_from_deps): New. Use the above functions.
6145 (cur_insn, can_start_lhs_rhs_p): New static variables.
6146 (add_or_update_back_dep_1): Initialize present_dep_type.
6147 (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
6148 haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
6149 haifa_note_dep): New functions implementing dependence hooks for
6150 the Haifa scheduler.
6151 (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
6152 note_dep): New functions.
6153 (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
6155 (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
6156 (free_deps): Initialize deps->reg_last.
6157 (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
6158 sched_analyze_insn): Update to use dependency hooks infrastructure
6159 and readonly contexts.
6160 (deps_analyze_insn): New function. Move part of logic from ...
6161 (sched_analyze): ... here. Also move some logic to ...
6162 (deps_start_bb): ... here. New function.
6163 (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
6165 (sched_deps_init): New function. Move code from ...
6166 (init_dependency_caches): ... here. Remove.
6167 (init_deps_data_vector): New.
6168 (sched_deps_finish): New function. Move code from ...
6169 (free_dependency_caches): ... here. Remove.
6170 (init_deps_global, finish_deps_global): Adjust for use with
6171 selective scheduling.
6172 (get_dep_weak): Move logic to ...
6173 (get_dep_weak_1): New function.
6174 (ds_merge): Move logic to ...
6175 (ds_merge_1): New static function.
6176 (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
6177 (ds_get_max_dep_weak): New function.
6178 * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
6179 (n_insns): Rename to rgn_n_insns.
6180 (debug_ebb_dependencies): New function.
6181 (init_ready_list): Use it.
6182 (begin_schedule_ready): Use sched_init_only_bb.
6183 (ebb_print_insn): Indicate when an insn starts a new cycle.
6184 (contributes_to_priority, compute_jump_reg_dependencies,
6185 add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
6186 (add_block1): Remove to ebb_add_block.
6187 (ebb_sched_deps_info, ebb_common_sched_info): New variables.
6188 (schedule_ebb): Initialize them. Use remove_notes instead of
6189 rm_other_notes. Use haifa_local_init/finish.
6190 (schedule_ebbs): Use haifa_sched_init/finish.
6191 * sched-int.h: Include vecprim.h, remove rtl.h.
6192 (struct ready_list): Delete declaration.
6193 (sched_verbose_param, enum sched_pass_id_t,
6194 bb_vec_t, insn_vec_t, rtx_vec_t): New.
6195 (struct sched_scan_info_def): New structure.
6196 (sched_scan_info, sched_scan, sched_init_bbs,
6197 sched_init_luids, sched_finish_luids, sched_extend_target,
6198 haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
6199 (struct common_sched_info_def): New.
6200 (common_sched_info, haifa_common_sched_info,
6201 sched_emulate_haifa_p): Declare.
6203 (sched_luids): Declare.
6204 (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
6205 (sched_max_luid, insn_luid): Declare.
6206 (note_list, remove_notes, restore_other_notes, bb_note): Declare.
6207 (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
6208 print_insn, print_pattern, print_value, haifa_classify_insn,
6209 sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
6210 setup_sched_dump, sched_init, sched_finish,
6211 sel_insn_is_speculation_check): Export.
6212 (struct ready_list): Move from haifa-sched.c.
6213 (ready_try, ready, max_issue): Export.
6214 (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
6215 sched_init_only_bb, sched_split_block, sched_split_block_1,
6216 sched_create_empty_bb, sched_create_empty_bb_1,
6217 sched_create_recovery_block, sched_create_recovery_edges): Export.
6218 (enum reg_pending_barrier_mode): Export.
6219 (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
6221 (struct sched_info): Rename to haifa_sched_info. Use const_rtx for
6222 print_insn field. Move add_block and fix_recovery_cfg to
6223 common_sched_info_def. Move compute_jump_reg_dependencies,
6225 (struct sched_deps_info_def): ... this new structure.
6226 (sched_deps_info): Declare.
6227 (struct spec_info_def): Remove weakness_cutoff, add
6228 data_weakness_cutoff and control_weakness_cutoff.
6229 (spec_info): Declare.
6230 (struct _haifa_deps_insn_data): Split from haifa_insn_data. Add
6232 (struct haifa_insn_data): Rename to struct _haifa_insn_data.
6233 (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
6234 (current_sched_info): Change type to struct haifa_sched_info.
6235 (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
6236 (h_d_i_d): New variable.
6237 (HDID): New accessor macro.
6238 (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
6239 (HID): New accessor macro. Rewrite h_i_d accessor macros through HID
6241 (IS_SPECULATION_CHECK_P): Update for selective scheduler.
6242 (enum SCHED_FLAGS): Update for selective scheduler.
6243 (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
6244 (init_dependency_caches, free_dependency_caches): Delete declarations.
6245 (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
6246 estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
6247 ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
6248 sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
6249 haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
6251 (rm_other_notes): Delete declaration.
6252 (schedule_block): Remove one argument.
6253 (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
6254 ready_element, ready_lastpos, sched_extend_ready_list,
6255 sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
6256 concat_note_lists): Export.
6257 (struct region): Move from sched-rgn.h.
6258 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
6259 RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
6260 BLOCK_TO_BB, CONTAINING_RGN): Export.
6261 (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
6262 (current_nr_blocks, current_blocks, target_bb): Likewise.
6263 (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
6264 sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
6265 sched_rgn_local_init, extend_regions,
6266 rgn_make_new_region_out_of_new_block, compute_priorities,
6267 debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
6268 extend_rgns, deps_join rgn_setup_common_sched_info,
6269 rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
6270 dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
6271 (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
6272 increase_insn_priority): Likewise.
6273 * sched-rgn.c: Include sel-sched.h.
6274 (ref_counts): New static variable. Use it ...
6275 (INSN_REF_COUNT): ... here. Rewrite and move closer to uses.
6276 (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
6277 (sched_is_disabled_for_current_region_p): Delete static declaration.
6278 (struct region): Move to sched-int.h.
6279 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
6280 ebb_head): Define and initialize.
6281 (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
6282 BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
6283 BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
6285 (find_single_block_region): Add new argument to indicate that EBB
6286 regions should be constructed.
6287 (debug_live): Delete declaration.
6288 (current_nr_blocks, current_blocks, target_bb):
6289 Remove static qualifiers.
6290 (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
6292 (init_regions): Delete declaration.
6293 (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
6294 rgn_estimate_number_of_insns): New.
6295 (too_large): Use estimate_number_of_insns.
6296 (haifa_find_rgns): New. Move the code from ...
6297 (find_rgns): ... here. Call either sel_find_rgns or haifa_find_rgns.
6298 (free_trg_info): New.
6299 (compute_trg_info): Allocate candidate tables here instead of ...
6300 (init_ready_list): ... here.
6301 (rgn_print_insn): Use const_rtx.
6302 (contributes_to_priority, extend_regions): Delete static declaration.
6303 (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
6304 (add_block1): Rename to rgn_add_block.
6305 (debug_rgn_dependencies): Delete static qualifier.
6306 (new_ready): Use sched_deps_info. Simplify.
6307 (rgn_common_sched_info, rgn_const_sched_deps_info,
6308 rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
6310 (region_sched_info): Rename to rgn_const_sched_info.
6311 (deps_join): New, extracted from ...
6312 (propagate_deps): ... here.
6313 (compute_block_dependences, debug_dependencies): Update for selective
6315 (free_rgn_deps, compute_priorities): New functions.
6316 (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
6317 sched_rgn_compute_dependencies): New functions.
6318 (schedule_region): Use them.
6319 (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
6320 rgn_setup_common_sched_info, rgn_setup_sched_infos):
6322 (schedule_insns): Call new functions that were split out.
6323 (rgn_make_new_region_out_of_new_block): New.
6324 (get_rgn_sched_max_insns_priority): New.
6325 (rest_of_handle_sched, rest_of_handle_sched2): Call selective
6326 scheduling when appropriate.
6327 * sched-vis.c: Include insn-attr.h.
6328 (print_value, print_pattern): Make global.
6329 (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
6330 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
6331 TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
6332 TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
6333 TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
6334 TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
6335 hooks. Initialize them to 0.
6336 (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
6337 * target.h (struct gcc_target): Add them. Rename gen_check field to
6339 * flags.h (sel_sched_switch_set): Declare.
6340 * opts.c (sel_sched_switch_set): New variable.
6341 (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
6342 pipelining is disabled from command line.
6343 (common_handle_option): Record whether selective scheduling is
6344 requested from command line.
6345 * doc/invoke.texi: Document new flags and parameters.
6346 * doc/tm.texi: Document new target hooks.
6347 * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
6349 (dfa_state_size): Do not declare locally.
6350 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
6351 * config/rs6000/rs6000.c (rs6000_init_sched_context,
6352 rs6000_alloc_sched_context, rs6000_set_sched_context,
6353 rs6000_free_sched_context): New functions.
6354 (struct _rs6000_sched_context): New.
6355 (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
6357 (rs6000_sched_finish): Do not run for selective scheduling.
6359 2008-08-31 Jan Hubicka <jh@suse.cz>
6361 * frv.c (frv_rtx_costs): Update forward declaration.
6362 * spu.c (spu_rtx_costs): Likewise.
6363 * pdp11.c: Include df.h
6364 (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
6365 * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
6366 (m68hc11_rtx_costs_1): Fix call of rtx_cost.
6367 * iq2000.c (iq2000_address_cost): Add speed argument.
6368 (iq2000_rtx_costs): Likewise.
6369 * mn10300.c (mn10300_address_cost_1): Remove speed argument;
6370 update call of mn10300_address_cost.
6371 * mcore.c: Include df.h
6372 (mcore_rtx_costs): Update prototype.
6373 * score3.c: Include df.h
6374 (score3_rtx_costs): Remove speed argument.
6375 * score7.c: Include df.h
6376 (score7_address_cost): Remove speed argument.
6377 * score-protos.h (score_address_cost): Update prototype.
6378 * score.c: Include df.h
6379 (score_rtx_costs): Update call of costs functions.
6380 * v850.c (v850_rtx_costs): Add bool argument.
6382 2008-08-31 Hans-Peter Nilsson <hp@axis.com>
6384 * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
6386 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6388 * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
6389 * config/i386/gthr-win32.c (__gthread_setspecific): Same.
6391 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6393 * mkmap-flat.awk: Add option pe_dll.
6394 * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
6395 * config/i386/t-cygwin (SHLIB_LC): Add.
6396 * config/i386/t-mingw32 (SHLIB_LC): Add.
6397 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
6398 (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
6399 (LINK_SPEC): Support libgcc_s.
6400 (LIBGCC_SPEC): Support libgcc_s.
6401 (LIBGCC_SONAME): New.
6403 2008-08-31 Jan Hubicka <jh@suse.cz>
6405 * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
6406 mistakely had old version of patch.
6408 * ipa-cp.c (ipcp_need_original_clone_p): Remove.
6409 (ipcp_estimate_growth): New.
6410 (ipcp_insert_stage): Use ipcp_estimate_growth.
6411 * profile.c (branch_prob): When reading failed, do not consider
6414 2008-08-31 Jan Hubicka <jh@suse.cz>
6416 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
6417 loop is optimized for speed.
6419 2008-08-31 Richard Guenther <rguenther@suse.de>
6422 * fold-const.c (fold_binary): Retain conversions in folding
6425 2008-08-31 Jan Hubicka <jh@suse.cz>
6427 * postreload-gcse.c (eliminate_partially_redundant_loads):
6428 Use optimize_bb_for_size_p.
6429 * predict.c (maybe_hot_frequency_p): Make inline.
6430 (maybe_hot_count_p): Break out from ...
6431 (maybe_hot_bb_p): ... this one.
6432 (maybe_hot_edge_p): Simplify.
6433 * basic-block.h (probably_cold_bb_p): Remove.
6435 2008-08-31 Jakub Jelinek <jakub@redhat.com>
6438 * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
6440 * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
6441 * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
6442 Also split V4SFmode.
6443 * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
6446 2008-08-31 Jan Hubicka <jh@suse.cz>
6448 * predict.c (PROB_VERY_LIKELY): Make small enough so things
6450 * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
6452 2008-08-31 Jakub Jelinek <jakub@redhat.com>
6455 * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
6458 * dwarf2out.c (native_encode_initializer): Subtract min_index for
6459 non-range array index. Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
6461 2008-08-31 Jan Hubicka <jh@suse.cz>
6463 * sparc.h (BRANCH_COST): Fix macro definition.
6464 * avr.c (avr_operand_rtx_cost): Add speed argument.
6465 (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
6467 2008-08-31 Richard Guenther <rguenther@suse.de>
6469 * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
6470 types instead of operands. Re-instantiate verifying of
6471 binary expression operands.
6473 2008-08-30 Jan Hubicka <jh@suse.cz>
6475 * fwprop.c (should_replace_address): Add speed attribute.
6476 (PR_OPTIMIZE_FOR_SPEED): New flag.
6477 (propagate_rtx_1): Use it.
6478 (propagate_rtx): Set it.
6479 (try_fwprop_subst): Update call of rtx_costs.
6480 (forward_propagate_and_simplify): LIkewise.
6481 * hooks.c (hook_int_rtx_bool_0): New
6482 (hook_bool_rtx_int_int_intp_false): Replace by ...
6483 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
6484 * hooks.h (hook_int_rtx_bool_0): New
6485 (hook_bool_rtx_int_int_intp_false): Replace by ...
6486 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
6487 * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
6488 (prepare_cmp_insn): UPdate call of rtx_cost.
6489 * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
6490 (reload_cse_simplify_operands): Update call of rtx_cost.
6491 (reload_cse_move2add): call of rtx_cost.
6492 * target.h (struct gcc_target): Update rtx_costs and address_costs.
6493 * rtlanal.c (rtx_cost): Add speed argument.
6494 (address_cost): Add speed argument
6495 (default_address_cost): Likewise.
6496 (insn_rtx_cost): Likewise.
6497 * cfgloopanal.c (seq_cost): Add speed argument.
6498 (target_reg_cost, target_spill_cost): Turn to array.
6499 (init_set_costs): Update for speed.
6500 (estimate_reg_pressure_cost): Add speed argument.
6501 * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
6502 * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
6503 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
6504 (seq_cost): Add speed argument.
6505 (computation_cost): Add speed arugment.
6506 (add_cost, multiply_by_const, get_address_cost): add speed argument.
6507 (force_expr_to_var_cost): Update for profile info.
6508 (force_var_cost): Likewise.
6509 (split_address_cost): Likewise.
6510 (ptr_difference_cost): Likewise.
6511 (difference_cost): Likewise.
6512 (get_computation_cost_at): Likewise.
6513 (determine_iv_cost): Likewise.
6514 (ivopts_global_cost_for_size): Likewise.
6515 (rewrite_use_address): Likewise.
6516 (tree_ssa_iv_optimize_loop): Initialize speed field.
6517 * cse.c (optimize_this_for_speed_p): New static var.
6518 (notreg_cost): Update call of rtx_cost.
6519 (cse_extended_basic_block): set optimize_this_for_speed_p.
6520 * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
6521 (noce_try_cmove_arith): Likewise.
6522 (noce_try_sign_mask): LIkewise.
6523 * expr.c (compress_float_constant): Update rtx_cost calls.
6524 * tree-ssa-address.c (most_expensive_mult_to_index): Add speed
6526 (addr_to_parts): Likewise.
6527 (create_mem_ref): Likewise.
6528 * dse.c (find_shift_sequence): Add speed argument.
6529 (replace_read): Update call.
6530 * calls.c (precompute_register_parameters): Update call of rtx_cost.
6531 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
6532 * neg_cost, shift_cost, shiftadd_cost,
6533 shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
6534 mul_highpart_cost): Increase dimension.
6535 (init_expmed): Initialize for both size and speed.
6536 (expand_shift): Use profile.
6537 (synth_mult): Use profile.
6538 (choose_mult_variant): Use profile.
6539 (expand_mult): Use profile.
6540 (expand_mult_highpart_optab): Use profile.
6541 (expand_mult_highpart): Use profile.
6542 (expand_smod_pow2): Use profile.
6543 (expand_divmod): Use profile.
6544 * simplify-rtx.c (simplify_binary_operation_1): Update call of
6546 * loop-invariant.c (create_new_invariant): Use profile.
6547 (gain_for_invariant): Add speed parameter.
6548 (best_gain_for_invariant): Likewise.
6549 (find_invariants_to_move): Likewise.
6550 (move_single_loop_invariants): Set it.
6551 * target-def.h (TARGET_RTX_COSTS): Use hook.
6552 * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
6553 (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
6554 * output.h (default_address_cost): Update prototype.
6555 * combine.c (optimize_this_for_speed_p): New static var.
6556 (combine_validate_cost): Update call of rtx_cost.
6557 (combine_instructions): Set optimize_this_for_speed_p.
6558 (expand_compound_operation): Update call of rtx_cost.
6559 (make_extraction):Update call of rtx_cost.
6560 (force_to_mode):Update call of rtx_cost.
6561 (distribute_and_simplify_rtx):Update call of rtx_cost.
6562 * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
6563 (estimate_reg_pressure_cost): Update prototype.
6564 * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
6565 * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
6567 * config/alpha/alpha.c (alpha_rtx_costs): Update.
6568 (alpha_rtx_costs): Update.
6569 * config/frv/frv.c (frv_rtx_costs): Update.
6570 * config/s390/s390.c (s390_rtx_costs): Update.
6571 * config/m32c/m32c.c (m32c_memory_move_cost): Update.
6572 (m32c_rtx_costs): Update.
6573 * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
6574 (spu_rtx_costs): Update.
6575 * config/sparc/sparc.c (sparc_rtx_costs): Update.
6576 * config/m32r/m32r.c (m32r_rtx_costs): Update.
6577 * config/i386/i386.c (:ix86_address_cost): Update.
6578 (ix86_rtx_costs): Update.
6579 * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
6580 * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
6581 * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
6582 * config/crx/crx.c (crx_address_cost): Update.
6583 * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
6584 * config/stormy16/stormy16.c
6585 (xstormy16_address_cost, xstormy16_rtx_costs): Update.
6586 * config/m68hc11/m68hc11.c
6587 (m68hc11_address_cost, m68hc11_rtx_costs): Update.
6588 * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
6589 * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
6591 * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
6593 * config/ia64/ia64.c (ia64_rtx_costs): Update.
6594 * config/m68k/m68k.c (m68k_rtx_costs): Update.
6595 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
6596 * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
6597 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
6598 (mcore_rtx_costs): update.
6599 * config/score/score3.c (score3_rtx_costs): Update.
6600 * config/score/score7.c (score7_rtx_costs): Update.
6601 * config/score/score3.h (score3_rtx_costs):Update.
6602 * config/score/score7.h (score7_rtx_costs): Update.
6603 * config/score/score.c (score_rtx_costs): Update.
6604 * config/arm/arm.c (arm_address_cost): Update.
6605 (arm_rtx_costs_1): Update.
6606 (arm_rtx_costs_1): Update.
6607 (arm_size_rtx_costs): Update.
6608 (arm_size_rtx_costs): Update.
6609 (arm_size_rtx_costs): Update.
6610 (arm_xscale_rtx_costs): Update.
6611 (arm_thumb_address_cost): Update.
6612 * config/pa/pa.c (hppa_address_cost): Update.
6613 * config/mips/mips.c (mips_rtx_costs): Update.
6614 * config/vax/vax.c (vax_address_cost): Update.
6615 * config/h8300/h8300.c (h8300_shift_costs): Update.
6616 (h8300_rtx_costs): Update.
6617 * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
6618 (v850_rtx_costs): Update.
6619 * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
6620 * config/bfin/bfin.c
6621 (bfin_address_cost): Update.
6622 (bfin_rtx_costs): Update.
6623 * stmt.c (lshift_cheap_p): Update.
6625 2008-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
6628 * expmed.c (extract_bit_field_1): Check the mode size to make
6629 sure the vector modes have the same size.
6631 2008-08-29 Michael Meissner <gnu@the-meissners.org>
6633 * dojump.c (top level): Include basic-block.h to declare
6634 optimize_insn_for_speed_p
6636 * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
6638 * opts.h (CL_SAVE): New option class for marking options that are
6639 target specific options usable in the target attribute.
6640 (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
6642 * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
6643 can easily find the target specific options that are safe to use
6644 in the attribute or pragma.
6646 * attribs.c (decl_attributes): Change #pragma GCC option to
6647 #pragma GCC target, and attribute((option(...))) to
6648 attribute((target(...))).
6650 * doc/extend.texi (target attribute): Change from option
6651 attribute. Delete push/pop/reset.
6652 (#pragma GCC target): Change from #pragma GCC option. Delete
6654 (#pragma GCC push_options): Document new pragma.
6655 (#pragma GCC pop_options): Document new pragma.
6656 (#pragma GCC reset_options): Document new pragma.
6658 * targhooks.c (default_target_option_valid_attribute_p): Add
6659 warning about port not supporting target attributes.
6660 (default_target_option_pragma_parse): New function, warn about
6661 #pragma GCC target not being supported.
6663 * targhooks.h (default_target_option_pragma_parse): Add
6666 * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
6667 TI_CURRENT_OPTION_PRAGMA.
6668 (current_target_pragma): Rename from current_option_pragma.
6670 * target.h: (struct target_option): Delete booleans for changing
6671 the optimization level on hot/cold functions. Change signature of
6672 pragma_parse hook to take a second tree.
6674 * c-tree.h (c_builtin_function_ext_scope): Add declaration.
6676 * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
6677 that the declaration is done at global scope.
6679 * langhooks.c (add_builtin_function_common): Move most of the code
6680 from add_builtin_function here, calling the hook passed in.
6681 (add_builtin_function): Call add_builtin_function_common with
6682 standard builtin hook.
6683 (add_builtin_function_ext_scope): New function to add builtins to
6686 * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
6688 (add_builtin_function_ext_scope): Add declaration.
6690 * c-pragma.c (handle_pragma_target): Rename from
6691 handle_pragma_option, #pragma GCC option is now #pragma GCC
6692 target. Move warning about port not supporting target options to
6693 default pragma parse hook. Remove push/pop/reset from this
6695 (handle_pragma_optimize): Remove push/pop/reset from this pragma.
6696 (option_stack): Delete static variable.
6697 (optimize_stack): Ditto.
6698 (optons_stack): New stack of saved target and optimization
6700 (handle_pragma_push_options): New function to handle pushing both
6701 target and optimization options.
6702 (handle_pragma_pop_options): New function to handle popping both
6703 target and optimization options.
6704 (handle_pragma_reset_options): New function to handle resetting
6705 both target and optimization options to their initial state.
6706 (init_pragma): Rename handle_pragma_option to
6707 handle_pragma_target. Add support for push_options, pop_options,
6708 and reset_options pragmas.
6710 * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
6711 default_target_option_pragma_parse.
6712 (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
6713 default_target_option_valid_attribute_p.
6714 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
6715 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
6716 (TARGET_OPTION_HOOKS): Delete the fields for whether to change
6717 optimization level on hot/cold functions.
6719 * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
6720 if the caller and callee have different optimization levels.
6722 * c-common.c (handle_target_attribute): Rename from
6723 handle_option_attribute, attribute((option(...))) is now
6724 attribute((target(...))). Move warning if the port does not
6725 support target attributes to the default hook.
6726 (handle_hot_attribute): Delete code to change the optimization
6727 level of hot functions.
6728 (handle_cold_attribute): Ditto.
6730 * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
6731 argument that is the binary tree options to use if there are no
6732 arguments. Call ix86_valid_target_attribute_tree instead of
6733 ix86_valid_option_attribute_tree.
6734 (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
6735 (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
6736 ix86_pragma_option_parse.
6738 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
6739 Rename from ix86_valid_option_attribute_tree.
6741 * config/i386/i386.c (ix86_add_new_builtins): New function to add
6742 new builtins when the ISA changes.
6743 (ix86_valid_target_attribute_tree): Rename from
6744 ix86_valid_option_attribute_tree. Change callers. If the
6745 function specified optimization options, use those as the starting
6746 point before setting up the target attributes. If the
6747 optimization options were changed in the course of setting the
6748 target attributes, record the new optimization options.
6749 (ix86_valid_target_attribute_tree_inner_p): Rename from
6750 ix86_valid_option_attribute_tree_inner_p. Change callers. Call
6751 ix86_add_new_builtins if the ISA changed.
6752 (ix86_valid_target_attribute_p): Rename from
6753 ix86_valid_option_attribute_p. Change callers.
6754 (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
6755 __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
6756 as delayed builtin functions.
6757 (struct builtin_isa): New structure to record builtin functions
6758 that should be delayed until the ISA for that function is used.
6759 (ix86_builtins_isa): Change from int to struct to track builtin
6760 functions we want to declare at some point.
6761 (def_builtin): If the front end can delay defining the builtin
6762 functions, don't create builtins for ISAs not part of the default
6764 (def_builtin_const): Ditto.
6765 (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
6766 __builtin_ia32_pcmov_v2di to be different builtin functions.
6767 (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
6768 a structure instead of an int.
6769 (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
6770 ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
6771 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
6772 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
6774 * config/ia64/ia64.h
6775 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
6776 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
6778 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
6779 hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
6780 (LANG_HOOKS_INITIALIZER): Add
6781 LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
6783 2008-08-30 Kaz Kojima <kkojima@gcc.gnu.org>
6786 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
6787 the reload address with the index register for SFmode
6788 access with a displacement.
6790 2008-08-30 Jan Hubicka <jh@suse.cz>
6792 * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
6793 * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
6794 * dojump.c (do_jump): Likewise.
6795 * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
6796 (note-if_info): Add BRANCH_COST.
6797 (noce_try_store_flag_constants, noce_try_addcc,
6798 noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
6799 noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
6800 find_if_case_2): Use computed branch cost.
6801 * expr.h (BRANCH_COST): Update default.
6802 * predict.c (predictable_edge_p): New function.
6803 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
6804 Update BRANCH_COST call.
6805 * basic-block.h (predictable_edge_p): Declare.
6806 * config/alpha/alpha.h (BRANCH_COST): Update.
6807 * config/frv/frv.h (BRANCH_COST): Update.
6808 * config/s390/s390.h (BRANCH_COST): Update.
6809 * config/spu/spu.h (BRANCH_COST): Update.
6810 * config/sparc/sparc.h (BRANCH_COST): Update.
6811 * config/m32r/m32r.h (BRANCH_COST): Update.
6812 * config/i386/i386.h (BRANCH_COST): Update.
6813 * config/i386/i386.c (ix86_expand_int_movcc): Update use of
6815 * config/sh/sh.h (BRANCH_COST): Update.
6816 * config/pdp11/pdp11.h (BRANCH_COST): Update.
6817 * config/avr/avr.h (BRANCH_COST): Update.
6818 * config/crx/crx.h (BRANCH_COST): Update.
6819 * config/xtensa/xtensa.h (BRANCH_COST): Update.
6820 * config/stormy16/stormy16.h (BRANCH_COST): Update.
6821 * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
6822 * config/iq2000/iq2000.h (BRANCH_COST): Update.
6823 * config/ia64/ia64.h (BRANCH_COST): Update.
6824 * config/rs6000/rs6000.h (BRANCH_COST): Update.
6825 * config/arc/arc.h (BRANCH_COST): Update.
6826 * config/score/score.h (BRANCH_COST): Update.
6827 * config/arm/arm.h (BRANCH_COST): Update.
6828 * config/pa/pa.h (BRANCH_COST): Update.
6829 * config/mips/mips.h (BRANCH_COST): Update.
6830 * config/vax/vax.h (BRANCH_COST): Update.
6831 * config/h8300/h8300.h (BRANCH_COST): Update.
6832 * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
6833 * doc/invoke.texi (predictable-branch-cost-outcome): Document.
6834 * doc/tm.texi (BRANCH_COST): Update.
6836 2008-08-30 Samuel Tardieu <sam@rfc1149.net>
6839 * config/arm/arm.c (arm_optimization_options): Set
6840 flag_section_anchors to 2 instead of 1 to distinguish it from
6841 -fsection-anchors given explicitely on the command line.
6843 2008-08-30 Richard Sandiford <rdsandiford@googlemail.com>
6845 * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
6846 final insn of a split.
6848 2008-08-30 Jan Hubicka <jh@suse.cz>
6850 * postreload-gcse.c (gate_handle_gcse2): Disable for functions
6851 optimized for speed.
6852 * final.c (compute_alignments): Use optimize_bb_for_size_p.
6853 * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
6854 * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
6855 flag_gcse_after_reload_set): New static vars.
6856 (common_handle_option): Enable those flags for profile-use.
6857 (decode_options): Remove optimize_size flags that are handled
6858 on higher granuality.
6859 * tree-vectorizer.c (vectorize_loops): Use
6860 optimize_loop_nest_for_speed_p.
6861 * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
6862 * tree-predcom.c (tree_predictive_commoning): Use
6863 optimize_loop_for_speed_p.
6864 * varasm.c (assemble_start_function): Use
6865 optimize_function_for_speed_p.
6866 * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
6867 * predict.c (optimize_loop_for_speed_p): Fix walk.
6869 2008-08-30 Jan Hubicka <jh@suse.cz>
6871 * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
6873 (cgraph_decide_inlining_of_small_function): Use edge->count to detect
6874 profile presence locally.
6876 2008-08-29 Joseph Myers <joseph@codesourcery.com>
6879 * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
6880 versions before 4.0.
6882 2008-08-29 Jan Hubicka <jh@suse.cz>
6884 * tree-inline.c (insert_init_stmt): Insert sequence even when
6887 2008-08-29 Jeff Law <law@redhat.com>
6889 * mn10300.c (mn10300_secondary_reload_class): We need secondary
6890 reloads for AM33-2 if IN is a pseudo with an equivalent memory
6891 location and class is an FP register.
6893 2008-08-29 Jan Hubicka <jh@suse.cz>
6895 * see.c (see_merge_one_def_extension): Silence used uninitialized
6897 * matrix-reorg.c (check_allocation_function): Likewise.
6898 * config/i386/driver-i386.c (detect_caches_amd): Likewise.
6900 2008-08-29 Jakub Jelinek <jakub@redhat.com>
6903 * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
6904 compute new & and | in type rather than TREE_TYPE (arg0).
6906 * dwarf2out.c (fortran_common): Update comment.
6907 (gen_variable_die): Swap com_die and var_die variables in Fortran
6908 COMMON block handling code.
6910 * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
6912 * dwarf2out.c (gen_const_die): New function.
6913 (size_of_die, value_format, output_die): Output larger
6914 dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
6915 (native_encode_initializer): New function.
6916 (tree_add_const_value_attribute): Call it.
6917 (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
6919 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
6920 DECL_BY_REFERENCE decls don't pass TREE_READONLY and
6921 TREE_THIS_VOLATILE to add_type_attribute.
6923 * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
6925 (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
6928 * dwarf2out.c (loc_by_reference): New function.
6929 (add_location_or_const_value_attribute): Use it.
6932 * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
6933 as DW_TAG_variable children of DW_TAG_common_block rather than
6934 DW_TAG_member children. Put DW_AT_external to individual
6935 DW_TAG_variable DIEs, not to DW_TAG_common_block.
6937 * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
6938 loc_descriptor_from_tree_1.
6942 * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
6943 arguments to imported_module_or_decl.
6944 (debug_nothing_tree_tree): Removed.
6945 (debug_nothing_tree_tree_tree_bool): New prototype.
6946 * debug.c (do_nothing_debug_hooks): Adjust.
6947 (debug_nothing_tree_tree): Removed.
6948 (debug_nothing_tree_tree_tree_bool): New function.
6949 * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
6950 (gen_variable_die): Put all common vars for the
6951 same COMMON block under one DW_TAG_common_block.
6952 (declare_in_namespace): Return new context_die, for Fortran
6953 return the module DIE instead of adding extra declarations into
6955 (gen_type_die_with_usage): Adjust declare_in_namespace caller.
6956 (gen_namespace_die): If is_fortran (), generate DW_TAG_module
6957 instead of DW_TAG_namespace. If DECL_EXTERNAL is set, add
6959 (dwarf2out_global_decl): Don't skip Fortran global vars.
6960 (gen_decl_die): Likewise. Adjust declare_in_namespace callers.
6961 (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
6962 If NAME is non-NULL, add DW_AT_name. If CHILD is non-NULL, put
6963 DW_TAG_imported_declaration as child of previous
6964 DW_TAG_imported_module.
6965 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
6966 * sdbout.c (sdb_debug_hooks): Likewise.
6967 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6969 2008-08-29 Jan Hubicka <jh@suse.cz>
6971 * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
6973 * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
6974 * ipa-cp.c (n_cloning_candidates): New static variable.
6975 (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
6976 (ipcp_print_all_lattices): Improve debug output.
6977 (ipcp_cloning_candidate_p): New function.
6978 (ipcp_initialize_node_lattices): Use it.
6979 (ipcp_init_stage): Do only analyzis here; prettier debug output.
6980 (ipcp_propagate_stage): Prettier debug output.
6981 (ipcp_iterate_stage): Initialize latices here; prettier debug output.
6982 (ipcp_print_all_structures): Remove.
6983 (ipcp_need_redirect_p): Test !n_cloning_candidates.
6984 (ipcp_insert_stage): Prettier debug output; call
6985 cgraph_remove_unreachable_nodes before propagating.
6986 (pass_ipa_cp): Schedule function removal pass.
6987 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
6989 (cgraph_maybe_hot_edge_p): Move to ...
6990 * predict.c (cgraph_maybe_hot_edge_p) ... here.
6991 * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
6992 (common_handle_option): Set them; enable ipa-cp when profiling.
6993 * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
6994 (ipa_print_all_jump_functions): Likewise.
6995 (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
6996 (ipa_print_node_params, ipa_print_all_params): New.
6997 * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
6998 ipa_print_all_param_flags): Remove.
6999 (ipa_print_node_params, ipa_print_all_params): New.
7001 2008-08-29 Bob Wilson <bob.wilson@acm.org>
7003 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
7004 change from 2008-04-03.
7005 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
7007 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
7010 * ira-color.c (push_allocnos_to_stack): Truncate
7011 removed_splay_allocno_vec.
7013 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
7016 * ira-color (ira_fast_allocation): Don't assign hard registers to
7019 2008-08-29 Jan Hubicka <jh@suse.cz>
7022 * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
7023 for cold internal loops.
7025 2008-08-29 Richard Guenther <rguenther@suse.de>
7027 * tree-ssa-structalias.c (create_variable_info_for): Do not
7028 create fields for heap vars or vars with a noalias state.
7029 For NO_ALIAS_ANYTHING variables add a self-constraint, not one
7032 2008-08-29 Richard Guenther <rguenther@suse.de>
7034 * common.opt (ftree-store-ccp): Mark as preserved for
7035 backward compatibility.
7036 * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
7037 * tree-pass.h (pass_store_ccp): Remove.
7038 * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
7039 (first_vdef): Remove declaration.
7040 (get_value_loaded_by): Likewise.
7041 * tree-ssa-ccp.c (do_store_ccp): Remove.
7042 (get_default_value): Simplify as do_store_ccp is always false
7043 now. Do not initialize mem_ref.
7044 (set_value_varying): Likewise.
7045 (canonicalize_float_value): Likewise.
7046 (set_lattice_value): Likewise.
7047 (likely_value): Likewise.
7048 (surely_varying_stmt_p): Likewise.
7049 (ccp_initialize): Likewise.
7050 (ccp_lattice_meet): Likewise.
7051 (ccp_visit_phi_node): Likewise.
7052 (ccp_fold): Likewise.
7053 (evaluate_stmt): Likewise.
7054 (visit_assignment): Likewise.
7055 (ccp_visit_stmt): Likewise.
7056 (execute_ssa_ccp): Fold into ...
7057 (do_ssa_ccp): ... this.
7058 (do_ssa_store_ccp): Remove.
7059 (gate_store_ccp): Likewise.
7060 (pass_store_ccp): Likewise.
7061 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
7063 * tree-ssa-propagate.c (first_vdef): Remove.
7064 (get_value_loaded_by): Likewise.
7065 (replace_vuses_in): Likewise.
7066 (substitute_and_fold): Do not call replace_vuses_in.
7067 * opts.c (decode_options): Do not set flag_tree_store_ccp.
7069 2008-08-29 Richard Guenther <rguenther@suse.de>
7072 * tree-ssa-structalias.c (intra_create_variable_infos): Mark
7073 PARAM_NOALIAS tags with is_heapvar.
7074 * tree-ssa-operands.c (access_can_touch_variable): Offset
7075 based tests do not apply for heapvars. Fix offset test.
7077 2008-08-29 Jan Hubicka <jh@suse.cz>
7079 * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
7080 (-fipa-cp-clone): Enabled by default at -O3.
7081 * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
7082 make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
7084 2008-08-29 Jan Hubicka <jh@suse.cz>
7086 * tree.c (build_function_type_skip_args,
7087 build_function_decl_skip_args): New functions.
7088 * tree.h (build_function_type_skip_args,
7089 build_function_decl_skip_args): Declare.
7090 * gimple.c (giple_copy_call_skip_args): New function.
7091 (giple_copy_call_skip_args): Declare.
7093 * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
7094 * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
7095 (ipcp_node_modifiable_p): ... this one; use
7096 tree_versionable_function_p.
7097 (ipcp_create_replace_map): Improve debug output.
7098 (ipcp_need_redirect_p): Return false when not clonning.
7099 (ipcp_update_callgraph): Skip args.
7100 (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
7102 * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
7103 (save_inline_function_body): Update call of tree_function_versioning.
7104 * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
7105 * tree-inline.c (copy_arguments_for_versioning): Add skip_args
7107 (tree_function_versioning): Likewise.
7108 * tree-inline.h (tree_function_versioning): Update prototype.
7110 2008-08-29 Jan Hubicka <jh@suse.cz>
7112 * loop-unswitch.c (unswitch_single_loop): Use
7113 optimize_loop_for_speed_p.
7114 * tree-ssa-threadupdate.c (mark_threaded_blocks):
7115 Use optimize_function_for_size_p.
7116 * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
7117 * postreload-gcse.c (eliminate_partially_redundant_load):
7118 Use optimize_bb_for_size_p.
7119 * value-prof.c (gimple_divmod_fixed_value_transform,
7120 gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
7121 gimple_stringops_transform): Use optimize_bb_for_size_p.
7122 * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
7123 * final.c (compute_alignments): Use optimize_function_for_size_p.
7124 * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
7125 (fold_builtin_strcpy, fold_builtin_fputs): Use
7126 optimize_function_for_size_p.
7127 * fold-const.c (tree_swap_operands_p): Use
7128 optimize_function_for_size_p.
7129 * recog.c (relax_delay_slots): Likewise.
7130 * tree-ssa-math-opts.c (replace_reciprocal):
7131 Use optimize_bb_for_speed_p.
7132 (execute_cse_reciprocals): Use optimize_bb_for_size_p.
7133 * ipa-inline.c (cgraph_decide_recursive_inlining): Use
7134 optimize_function_for_size_p.
7135 (cgraph_decide_inlining_of_small_function): Use
7136 optimize_function_for_size_p.
7137 * global.c (find_reg): Use optimize_function_for_size_p.
7138 * opts.c (decode_options): Do not clear flag_tree_ch,
7139 flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
7140 flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
7141 work it out from profile.
7142 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
7143 optimize_loop_for_speed_p.
7144 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
7146 (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
7147 * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
7148 * tree-eh.c (decide_copy_try_finally): Use
7149 optimize_function_for_size_p.
7150 * local-alloc.c (block_alloc): Pass BB pointer.
7151 (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
7152 * gcse.c (gcse_main): Use optimize_function_for_size_p.
7153 * loop-unroll.c (decide_unrolling_and_peeling):
7154 Use optimize_loop_for_size_p.
7155 (decide_peel_completely): Likewise.
7156 * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
7157 optimize_loop_for_size_p.
7158 (vect_enhance_data_refs_alignment): Likewise.
7159 * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
7160 (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
7162 * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
7163 (try_crossjump_bb): Use optimize_bb_for_size_p.
7164 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
7165 optimize_loop_for_speed_p.
7166 * bb-reorder.c (find_traces_1_round): Likewise.
7167 (copy_bb): Use optimize_bb_for_speed_p.
7168 (duplicate_computed_gotos): Likewise.
7169 * basic-block.h (optimize_loop_nest_for_size_p,
7170 optimize_loop_nest_for_speed_p): New.
7171 * stmt.c (expand_case): Use optimize_insn_for_size_p.
7173 2008-08-29 Tristan Gingold <gingold@adacore.com>
7175 * gcov.c (main): Call expandargv.
7177 2008-08-29 Jan Hubicka <jh@suse.cz>
7179 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
7181 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
7183 (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
7184 * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
7186 (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
7188 2008-08-29 Jan Hubicka <jh@suse.cz>
7190 * tree-pass.h (pass_strip_predict_hints): Declare.
7191 * predict.c (strip_builtin_expect): Rename to ...
7192 (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
7193 (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
7194 (tree_estimate_probability): Do not strip builtin_expect.
7195 (pass_strip_predict_hints): New pass.
7196 * tree-inline.c (expand_call_inline): When inlining cold function,
7197 predict it as unlikely.
7198 * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
7200 2008-08-29 Richard Guenther <rguenther@suse.de>
7202 PR tree-optimization/37207
7203 * tree-vrp.c (extract_range_from_binary_expr): Also try
7204 to constant fold if only one of the operands is a constant.
7206 2008-08-29 Nick Clifton <nickc@redhat.com>
7208 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
7209 the same way as SYMBOL_REFs.
7211 2008-08-28 Bob Wilson <bob.wilson@acm.org>
7213 * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
7215 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
7217 * config/mips/mips.h (ISA_HAS_BBIT): New macro.
7218 * config/mips/mips.md (branch_likely): Remove const. Fix
7220 (define_delay for type "branch"): Change to only apply for branch
7221 with likely variant.
7222 (define_delay for type "branch" and "branch_likely" no). New delay
7224 (equality_op): New code iterator.
7225 (bbv, bbinv): New code attributes.
7226 (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
7229 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7230 Andrew Pinski <pinskia@gcc.gnu.org>
7233 * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
7235 2008-08-28 Paolo Carlini <paolo.carlini@oracle.com>
7237 * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
7238 rule that a symbolic constant must be defined and >= 0 for the
7239 corresponding facility to be present at compile-time.
7240 * gthr-posix.c: Likewise.
7242 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
7244 * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
7245 * config/mips/mips.md (D): New mode attribute.
7246 (mulsi3, muldi3): Merge it into ...
7247 (mul<mode>3): ... new template. Use _mul3 ending for 3-op patterns.
7248 (muldi3_mul3): New pattern.
7249 (mulsi3_mult3): Rename to mulsi3_mul3.
7251 2008-08-28 Jan Hubicka <jh@suse.cz>
7253 * expmed.c (store_bit_field_1): Be prepared for movstrict expander
7255 * predict.c (always_optimize_for_size_p): Rename to ...
7256 (optimize_function_for_size): ... this one; make extern.
7257 (optimize_function_for_speed_p): New.
7258 (optimize_bb_for_size_p, optimize_bb_for_size_p,
7259 optimize_edge_for_size_p,optimize_edge_for_size_p,
7260 optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
7261 * basic-block.h (optimize_function_for_size_p,
7262 optimize_function_for_speed_p): Declare.
7263 * i386.md (optimize_size checks): Replace them by appropriate
7265 (standard_80387_constant_p, ix86_compute_frame_layout,
7266 ix86_expand_epilogue, ix86_decompose_address,
7267 print_operand, emit_i387_cw_initialization,
7268 inline_memory_move_cost, ix86_pad_returns,
7269 ix86_reorg): Replace optimize_size checks.
7271 2008-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7273 * rtl.h (simplify_subreg_regno): Declare.
7274 * rtlanal.c (simplify_subreg_regno): New function, split out from...
7275 * simplify-rtx.c (simplify_subreg): ...here.
7276 * reload.c (find_reloads): Use simplify_subreg_regno instead of
7277 subreg_offset_representable_p.
7279 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7282 * c-typeck.c (convert_for_assignment): Give a note describing what
7283 was passed and what was expected.
7285 2008-08-28 Joey Ye <joey.ye@intel.com>
7287 * doc/extend.texi: Document AVX built-in functions.
7288 * doc/invoke.texi: Document -mavx.
7290 2008-08-28 H.J. Lu <hongjiu.lu@intel.com>
7291 Joey Ye <joey.ye@intel.com>
7292 Xuepeng Guo <xuepeng.guo@intel.com>
7294 * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
7296 * config/i386/cpuid.h (bit_FMA): New.
7297 (bit_XSAVE): Likewise.
7298 (bit_OSXSAVE): Likewise.
7299 (bit_AVX): Likewise.
7301 * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
7302 define. Use ASM_OUTPUT_AVX_PREFIX.
7304 * config/i386/gmmintrin.h: New.
7306 * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
7307 (OPTION_MASK_ISA_AVX_SET): New.
7308 (OPTION_MASK_ISA_FMA_SET): Likewise.
7309 (OPTION_MASK_ISA_AVX_UNSET): Likewise.
7310 (OPTION_MASK_ISA_FMA_SET): Likewise.
7311 (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
7312 (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
7313 (pta_flags): Add PTA_AVX and PTA_FMA.
7314 (override_options): Handle PTA_AVX and PTA_FMA.
7315 (init_cumulative_args): Handle warn_avx.
7316 (classify_argument): Return 0 for COImode and OImode. Return
7317 1 and X86_64_AVX_CLASS for 256bit vector types.
7318 (examine_argument): Handle X86_64_AVX_CLASS.
7319 (construct_container): Likewise.
7320 (function_arg_advance_32): Pass OImode and 256bit vector types
7322 (function_arg_advance_64): Take a new argument to indicate if a
7323 parameter is named. Handle 256bit vector types. Return
7324 immediately for unnamed 256bit vector mode parameters.
7325 (function_arg_advance): Updated.
7326 (function_arg_32): Add comments for TImode. Handle OImode
7327 and 256bit vector types.
7328 (function_arg_64): Take a new argument to indicate if a
7329 parameter is named. Handle 256bit vector types. Return NULL
7330 for unnamed 256bit vector mode parameters.
7331 (function_arg): Updated.
7332 (setup_incoming_varargs_64): Support
7333 AVX encoding for *sse_prologue_save_insn.
7334 (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
7335 (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
7336 enabled. For all 1s in 256bit vector modes, return 3 if AVX is
7337 enabled, otherwise return -3.
7338 (standard_sse_constant_opcode): Handle AVX and 256bit vector
7340 (print_reg): Support AVX registers. Handle 'x' and 't'.
7341 Handle 'd' to duplicate the operand.
7342 (print_operand): Likewise. Also support AVX vector compare
7344 (output_387_binary_op): Support AVX.
7345 (output_fp_compare): Likewise.
7346 (ix86_expand_vector_move_misalign): Likewise.
7347 (ix86_attr_length_vex_default): New.
7348 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
7349 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
7350 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
7351 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
7352 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
7353 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
7354 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
7355 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
7356 IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
7357 IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
7358 IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
7359 IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
7360 IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
7361 IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
7362 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
7363 IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
7364 IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
7365 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
7366 IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
7367 IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
7368 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
7369 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
7370 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
7371 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
7372 IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
7373 IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
7374 IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
7375 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
7376 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
7377 IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
7378 IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
7379 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
7380 IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
7381 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
7382 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
7383 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
7384 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
7385 IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
7386 IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
7387 IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
7388 IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
7389 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
7390 IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
7391 IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
7392 IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
7393 IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
7394 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
7395 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
7396 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
7397 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
7398 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
7399 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
7400 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
7401 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
7402 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
7403 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
7404 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
7405 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
7406 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
7407 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
7408 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
7409 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
7410 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
7411 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
7412 and IX86_BUILTIN_MOVMSKPS256,
7413 (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
7414 V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
7415 V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
7416 V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
7417 V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
7418 VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
7419 VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
7420 VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
7421 (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
7422 INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
7423 INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
7424 INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
7425 V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
7426 V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
7427 V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
7428 V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
7429 V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
7430 V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
7431 V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
7432 V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
7433 V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
7434 V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
7435 V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
7436 V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
7437 V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
7438 V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
7439 (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
7440 IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
7441 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
7442 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
7443 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
7444 IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
7445 IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
7446 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
7447 IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
7448 IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
7449 IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
7450 IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
7451 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
7452 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
7453 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
7454 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
7455 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
7456 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
7457 IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
7458 IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
7459 IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
7460 IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
7461 IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
7462 IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
7463 IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
7464 IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
7465 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
7466 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
7467 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
7468 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
7469 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
7470 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
7472 IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
7473 IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
7474 IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
7475 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
7476 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
7477 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
7478 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
7479 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
7480 IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
7481 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
7482 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
7483 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
7484 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
7485 IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
7486 IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
7487 IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
7488 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
7489 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
7490 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
7491 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
7492 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
7493 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
7494 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
7495 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
7496 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
7497 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
7498 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
7499 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
7500 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
7501 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
7502 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
7503 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
7504 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
7505 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
7506 IX86_BUILTIN_MOVMSKPS256.
7507 (ix86_init_mmx_sse_builtins): Support AVX builtins.
7508 (ix86_expand_args_builtin): Likewise.
7509 (ix86_expand_special_args_builtin): Likewise.
7510 (ix86_hard_regno_mode_ok): Handle AVX modes.
7511 (ix86_expand_vector_init_duplicate): Likewise.
7512 (ix86_expand_vector_init_one_nonzero): Likewise.
7513 (ix86_expand_vector_init_one_var): Likewise.
7514 (ix86_expand_vector_init_concat): Likewise.
7515 (ix86_expand_vector_init_general): Likewise.
7516 (ix86_expand_vector_set): Likewise.
7517 (ix86_vector_mode_supported_p): Likewise.
7518 (x86_extended_reg_mentioned_p): Check INSN_P before using
7521 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7522 OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
7524 * config/i386/i386.h (TARGET_AVX): New.
7525 (TARGET_FMA): Likewise.
7526 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
7527 (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
7528 (VALID_AVX256_REG_MODE): New.
7529 (AVX256_VEC_FLOAT_MODE_P): Likewise.
7530 (AVX_FLOAT_MODE_P): Likewise.
7531 (AVX128_VEC_FLOAT_MODE_P): Likewise.
7532 (AVX256_VEC_FLOAT_MODE_P): Likewise.
7533 (AVX_VEC_FLOAT_MODE_P): Likewise.
7534 (ASM_OUTPUT_AVX_PREFIX): Likewise.
7535 (ASM_OUTPUT_OPCODE): Likewise.
7536 (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
7538 (SSE_REG_MODE_P): Allow 256bit vector modes.
7539 (ix86_args): Add a warn_avx field.
7541 * config/i386/i386.md (UNSPEC_PCMP): New.
7542 (UNSPEC_VPERMIL): Likewise.
7543 (UNSPEC_VPERMIL2): Likewise.
7544 (UNSPEC_VPERMIL2F128): Likewise.
7545 (UNSPEC_MASKLOAD): Likewise.
7546 (UNSPEC_MASKSTORE): Likewise.
7547 (UNSPEC_CAST): Likewise.
7548 (UNSPEC_VTESTP): Likewise.
7549 (UNSPECV_VZEROALL): Likewise.
7550 (UNSPECV_VZEROUPPER): Likewise.
7551 (XMM0_REG): Likewise.
7552 (XMM1_REG): Likewise.
7553 (XMM2_REG): Likewise.
7554 (XMM3_REG): Likewise.
7555 (XMM4_REG): Likewise.
7556 (XMM5_REG): Likewise.
7557 (XMM6_REG): Likewise.
7558 (XMM8_REG): Likewise.
7559 (XMM9_REG): Likewise.
7560 (XMM10_REG): Likewise.
7561 (XMM11_REG): Likewise.
7562 (XMM12_REG): Likewise.
7563 (XMM13_REG): Likewise.
7564 (XMM14_REG): Likewise.
7565 (XMM15_REG): Likewise.
7567 (prefix_vex_imm8): Likewise.
7568 (prefix_vex_w): Likewise.
7569 (length_vex): Likewise.
7572 (*avx_ashlti3): Likewise.
7573 (*avx_lshrti3): Likewise.
7574 (*avx_setcc<mode>): Likewise.
7575 (*fop_<mode>_comm_mixed_avx): Likewise.
7576 (*fop_<mode>_comm_avx): Likewise.
7577 (*fop_<mode>_1_mixed_avx): Likewise.
7578 (*fop_<mode>_1_avx): Likewise.
7579 (*avx_<code><mode>3): Likewise.
7580 (*avx_ieee_smin<mode>3): Likewise.
7581 (*avx_ieee_smax<mode>3): Likewise.
7582 (mode): Add OI, V8SF and V4DF.
7583 (length): Support VEX prefix.
7584 (*cmpfp_i_mixed): Set prefix attribute.
7585 (*cmpfp_i_sse): Likewise.
7586 (*cmpfp_iu_mixed): Likewise.
7587 (*cmpfp_iu_sse): Likewise.
7588 (*movsi_1): Support AVX.
7589 (*movdi_2): Likewise.
7590 (*movdi_1_rex64): Likewise.
7591 (*movti_internal): Likewise.
7592 (*movti_rex64): Likewise.
7593 (*movsf_1): Likewise.
7594 (*movdf_nointeger): Likewise.
7595 (*movdf_integer_rex64): Likewise.
7596 (*movtf_internal): Likewise.
7597 (zero_extendsidi2_32): Likewise.
7598 (zero_extendsidi2_rex64): Likewise.
7599 (*extendsfdf2_mixed): Likewise.
7600 (*extendsfdf2_sse): Likewise.
7601 (*truncdfsf_fast_mixed): Likewise.
7602 (*truncdfsf_fast_sse): Likewise.
7603 (*truncdfsf_mixed): Likewise.
7604 (fix_trunc<mode>di_sse): Likewise.
7605 (fix_trunc<mode>si_sse): Likewise.
7606 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
7607 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
7608 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
7609 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
7610 (*rcpsf2_sse): Likewise.
7611 (*rsqrtsf2_sse): Likewise.
7612 (*sqrt<mode>2_sse): Likewise.
7613 (sse4_1_round<mode>2): Likewise.
7614 (*sse_prologue_save_insn): Disallow REX prefix for AVX.
7615 Support AVX. Set length attribute properly for AVX.
7617 * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
7618 (VECTOR_MODES (FLOAT, 32)): Likewise.
7619 (VECTOR_MODE (INT, DI, 8)): Likewise.
7620 (VECTOR_MODE (INT, HI, 32)): Likewise.
7621 (VECTOR_MODE (INT, QI, 64)): Likewise.
7622 (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
7623 (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
7624 (VECTOR_MODE (INT, DI, 4)): Removed.
7625 (VECTOR_MODE (INT, SI, 8)): Likewise.
7626 (VECTOR_MODE (INT, HI, 16)): Likewise.
7627 (VECTOR_MODE (INT, QI, 32)): Likewise.
7628 (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
7629 (INT_MODE (OI, 32)): Likewise.
7631 * config/i386/i386.opt (mavx): New.
7634 * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
7636 * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
7637 (*mov<mode>_internal_avx): New.
7638 (*movv2sf_internal_rex64_avx): Likewise.
7639 (*movv2sf_internal_avx): Likewise.
7641 * config/i386/predicates.md (const_4_to_5_operand): New.
7642 (const_6_to_7_operand): Likewise.
7643 (const_8_to_11_operand): Likewise.
7644 (const_12_to_15_operand): Likewise.
7645 (avx_comparison_float_operator): Likewise.
7647 * config/i386/sse.md (AVX256MODEI): New.
7648 (AVX256MODE): Likewise.
7649 (AVXMODEQI): Likewise.
7650 (AVXMODE): Likewise.
7651 (AVX256MODEF2P): Likewise.
7652 (AVX256MODE2P): Likewise.
7653 (AVX256MODE4P): Likewise.
7654 (AVX256MODE8P): Likewise.
7655 (AVXMODEF2P): Likewise.
7656 (AVXMODEF4P): Likewise.
7657 (AVXMODEDCVTDQ2PS): Likewise.
7658 (AVXMODEDCVTPS2DQ): Likewise.
7659 (avxvecmode): Likewise.
7660 (avxvecpsmode): Likewise.
7661 (avxhalfvecmode): Likewise.
7662 (avxscalarmode): Likewise.
7663 (avxcvtvecmode): Likewise.
7664 (avxpermvecmode): Likewise.
7665 (avxmodesuffixf2c): Likewise.
7666 (avxmodesuffixp): Likewise.
7667 (avxmodesuffixs): Likewise.
7668 (avxmodesuffix): Likewise.
7669 (vpermilbits): Likewise.
7670 (pinsrbits): Likewise.
7671 (mov<mode>): Likewise.
7672 (*mov<mode>_internal): Likewise.
7673 (push<mode>1): Likewise.
7674 (movmisalign<mode>): Likewise.
7675 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7676 (avx_movdqu<avxmodesuffix>): Likewise.
7677 (avx_lddqu<avxmodesuffix>): Likewise.
7678 (<plusminus_insn><mode>3): Likewise.
7679 (*avx_<plusminus_insn><mode>3): Likewise.
7680 (*avx_vm<plusminus_insn><mode>3): Likewise.
7681 (mul<mode>3): Likewise.
7682 (*avx_mul<mode>3): Likewise.
7683 (*avx_vmmul<mode>3): Likewise.
7684 (divv8sf3): Likewise.
7685 (divv4df3): Likewise.
7686 (avx_div<mode>3): Likewise.
7687 (*avx_div<mode>3): Likewise.
7688 (*avx_vmdiv<mode>3): Likewise.
7689 (avx_rcpv8sf2): Likewise.
7690 (*avx_vmrcpv4sf2): Likewise.
7691 (sqrtv8sf2): Likewise.
7692 (avx_sqrtv8sf2): Likewise.
7693 (*avx_vmsqrt<mode>2): Likewise.
7694 (rsqrtv8sf2): Likewise.
7695 (avx_rsqrtv8sf2): Likewise.
7696 (*avx_vmrsqrtv4sf2): Likewise.
7697 (<code><mode>3): Likewise.
7698 (*avx_<code><mode>3_finite): Likewise.
7699 (*avx_<code><mode>3): Likewise.
7700 (*avx_vm<code><mode>3): Likewise.
7701 (*avx_ieee_smin<mode>3): Likewise.
7702 (*avx_ieee_smax<mode>3): Likewise.
7703 (avx_addsubv8sf3): Likewise.
7704 (avx_addsubv4df3): Likewise.
7705 (*avx_addsubv4sf3): Likewise.
7706 (*avx_addsubv2df3): Likewise.
7707 (avx_h<plusminus_insn>v4df3): Likewise.
7708 (avx_h<plusminus_insn>v8sf3): Likewise.
7709 (*avx_h<plusminus_insn>v4sf3): Likewise.
7710 (*avx_h<plusminus_insn>v2df3): Likewise.
7711 (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
7712 (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
7713 (*avx_maskcmp<mode>3): Likewise.
7714 (avx_nand<mode>3): Likewise.
7715 (*avx_<code><mode>3): Likewise.
7716 (*avx_nand<mode>3): Likewise.
7717 (*avx_<code><mode>3): Likewise.
7718 (*avx_cvtsi2ss): Likewise.
7719 (*avx_cvtsi2ssq): Likewise.
7720 (*avx_cvtsi2sd): Likewise.
7721 (*avx_cvtsi2sdq): Likewise.
7722 (*avx_cvtsd2ss): Likewise.
7723 (avx_cvtss2sd): Likewise.
7724 (avx_cvtdq2ps<avxmodesuffix>): Likewise.
7725 (avx_cvtps2dq<avxmodesuffix>): Likewise.
7726 (avx_cvttps2dq<avxmodesuffix>): Likewise.
7727 (*avx_cvtsi2sd): Likewise.
7728 (*avx_cvtsi2sdq): Likewise.
7729 (avx_cvtdq2pd256): Likewise.
7730 (avx_cvtpd2dq256): Likewise.
7731 (avx_cvttpd2dq256): Likewise.
7732 (*avx_cvtsd2ss): Likewise.
7733 (*avx_cvtss2sd): Likewise.
7734 (avx_cvtpd2ps256): Likewise.
7735 (avx_cvtps2pd256): Likewise.
7736 (*avx_movhlps): Likewise.
7737 (*avx_movlhps): Likewise.
7738 (avx_unpckhps256): Likewise.
7739 (*avx_unpckhps): Likewise.
7740 (avx_unpcklps256): Likewise.
7741 (*avx_unpcklps): Likewise.
7742 (avx_movshdup256): Likewise.
7743 (avx_movsldup256): Likewise.
7744 (avx_shufps256): Likewise.
7745 (avx_shufps256_1): Likewise.
7746 (*avx_shufps_<mode>): Likewise.
7747 (*avx_loadhps): Likewise.
7748 (*avx_storelps): Likewise.
7749 (*avx_loadlps): Likewise.
7750 (*avx_movss): Likewise.
7751 (*vec_dupv4sf_avx): Likewise.
7752 (*vec_concatv2sf_avx): Likewise.
7753 (*vec_concatv4sf_avx): Likewise.
7754 (*vec_setv4sf_0_avx): Likewise.
7755 (*vec_setv4sf_avx): Likewise.
7756 (*avx_insertps): Likewise.
7757 (avx_vextractf128<mode>): Likewise.
7758 (vec_extract_lo_<mode>): Likewise.
7759 (vec_extract_hi_<mode>): Likewise.
7760 (vec_extract_lo_<mode>): Likewise.
7761 (vec_extract_hi_<mode>): Likewise.
7762 (vec_extract_lo_v16hi): Likewise.
7763 (vec_extract_hi_v16hi): Likewise.
7764 (vec_extract_lo_v32qi): Likewise.
7765 (vec_extract_hi_v32qi): Likewise.
7766 (avx_unpckhpd256): Likewise.
7767 (*avx_unpckhpd): Likewise.
7768 (avx_movddup256): Likewise.
7769 (*avx_movddup): Likewise.
7770 (avx_unpcklpd256): Likewise.
7771 (*avx_unpcklpd): Likewise.
7772 (avx_shufpd256): Likewise.
7773 (avx_shufpd256_1): Likewise.
7774 (*avx_punpckhqdq): Likewise.
7775 (*avx_punpcklqdq): Likewise.
7776 (*avx_shufpd_<mode>): Likewise.
7777 (*avx_storehpd): Likewise.
7778 (*avx_loadhpd): Likewise.
7779 (*avx_loadlpd): Likewise.
7780 (*avx_movsd): Likewise.
7781 (*vec_concatv2df_avx): Likewise.
7782 (*avx_<plusminus_insn><mode>3): Likewise.
7783 (*avx_<plusminus_insn><mode>3): Likewise.
7784 (*avx_mulv8hi3): Likewise.
7785 (*avxv8hi3_highpart): Likewise.
7786 (*avx_umulv8hi3_highpart): Likewise.
7787 (*avx_umulv2siv2di3): Likewise.
7788 (*avx_mulv2siv2di3): Likewise.
7789 (*avx_pmaddwd): Likewise.
7790 (*avx_mulv4si3): Likewise.
7791 (*avx_ashr<mode>3): Likewise.
7792 (*avx_lshr<mode>3): Likewise.
7793 (*avx_ashl<mode>3): Likewise.
7794 (*avx_<code><mode>3): Likewise.
7795 (*avx_eq<mode>3): Likewise.
7796 (*avx_gt<mode>3): Likewise.
7797 (*avx_nand<mode>3): Likewise.
7798 (*avx_nand<mode>3): Likewise.
7799 (*avx_<code><mode>3): Likewise.
7800 (*avx_<code><mode>3): Likewise.
7801 (*avx_packsswb): Likewise.
7802 (*avx_packssdw): Likewise.
7803 (*avx_packuswb): Likewise.
7804 (*avx_punpckhbw): Likewise.
7805 (*avx_punpcklbw): Likewise.
7806 (*avx_punpckhwd): Likewise.
7807 (*avx_punpcklwd): Likewise.
7808 (*avx_punpckhdq): Likewise.
7809 (*avx_punpckldq): Likewise.
7810 (*avx_pinsr<avxmodesuffixs>): Likewise.
7811 (*avx_pinsrq): Likewise.
7812 (*avx_loadld): Likewise.
7813 (*vec_extractv2di_1_rex64_avx): Likewise.
7814 (*vec_extractv2di_1_avx): Likewise.
7815 (*vec_dupv2di_avx): Likewise.
7816 (*vec_concatv2si_avx): Likewise.
7817 (*vec_concatv4si_1_avx): Likewise.
7818 (*vec_concatv2di_avx): Likewise.
7819 (*vec_concatv2di_rex64_avx): Likewise.
7820 (*avx_uavgv16qi3): Likewise.
7821 (*avx_uavgv8hi3): Likewise.
7822 (*avx_psadbw): Likewise.
7823 (avx_movmskp<avxmodesuffixf2c>256): Likewise.
7824 (*avx_phaddwv8hi3): Likewise.
7825 (*avx_phadddv4si3): Likewise.
7826 (*avx_phaddswv8hi3): Likewise.
7827 (*avx_phsubwv8hi3): Likewise.
7828 (*avx_phsubdv4si3): Likewise.
7829 (*avx_phsubswv8hi3): Likewise.
7830 (*avx_pmaddubsw128): Likewise.
7831 (*avx_pmulhrswv8hi3): Likewise.
7832 (*avx_pshufbv16qi3): Likewise.
7833 (*avx_psign<mode>3): Likewise.
7834 (*avx_palignrti): Likewise.
7835 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7836 (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7837 (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7838 (*avx_mpsadbw): Likewise.
7839 (*avx_packusdw): Likewise.
7840 (*avx_pblendvb): Likewise.
7841 (*avx_pblendw): Likewise.
7842 (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7843 (avx_ptest256): Likewise.
7844 (avx_roundp<avxmodesuffixf2c>256): Likewise.
7845 (*avx_rounds<ssemodesuffixf2c>): Likewise.
7846 (*avx_aesenc): Likewise.
7847 (*avx_aesenclast): Likewise.
7848 (*avx_aesdec): Likewise.
7849 (*avx_aesdeclast): Likewise.
7850 (avx_vzeroupper): Likewise.
7851 (avx_vzeroupper_rex64): Likewise.
7852 (avx_vpermil<mode>): Likewise.
7853 (avx_vpermilvar<mode>3): Likewise.
7854 (avx_vpermil2<mode>3): Likewise.
7855 (avx_vperm2f128<mode>3): Likewise.
7856 (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7857 (avx_vbroadcastss256): Likewise.
7858 (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
7859 (avx_vinsertf128<mode>): Likewise.
7860 (vec_set_lo_<mode>): Likewise.
7861 (vec_set_hi_<mode>): Likewise.
7862 (vec_set_lo_<mode>): Likewise.
7863 (vec_set_hi_<mode>): Likewise.
7864 (vec_set_lo_v16hi): Likewise.
7865 (vec_set_hi_v16hi): Likewise.
7866 (vec_set_lo_v32qi): Likewise.
7867 (vec_set_hi_v32qi): Likewise.
7868 (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7869 (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7870 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
7871 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
7872 (vec_init<mode>): Likewise.
7873 (*vec_concat<mode>_avx): Likewise.
7874 (blendbits): Support V8SF and V4DF.
7875 (sse2_movq128): Support AVX.
7876 (<sse>_movnt<mode>): Likewise.
7877 (sse2_movntv2di): Likewise.
7878 (sse_rcpv4sf2): Likewise.
7879 (sse_sqrtv4sf2): Likewise.
7880 (sse_rsqrtv4sf2): Likewise.
7881 (<sse>_comi): Likewise.
7882 (<sse>_ucomi): Likewise.
7883 (sse_cvtss2si): Likewise.
7884 (sse_cvtss2si_2): Likewise.
7885 (sse_cvtss2siq): Likewise.
7886 (sse_cvtss2siq_2): Likewise.
7887 (sse_cvttss2si): Likewise.
7888 (sse_cvttss2siq): Likewise.
7889 (sse2_cvtsd2si): Likewise.
7890 (sse2_cvtsd2si_2): Likewise.
7891 (sse2_cvtsd2siq): Likewise.
7892 (sse2_cvtsd2siq_2): Likewise.
7893 (sse2_cvttsd2si): Likewise.
7894 (sse2_cvttsd2siq): Likewise.
7895 (sse2_cvtdq2pd): Likewise.
7896 (*sse2_cvtpd2dq): Likewise.
7897 (*sse2_cvttpd2dq): Likewise.
7898 (*sse2_cvtpd2ps): Likewise.
7899 (sse2_cvtps2pd): Likewise.
7900 (sse3_movshdup): Likewise.
7901 (sse3_movsldup): Likewise.
7902 (sse_storehps): Likewise.
7903 (*sse4_1_extractps): Likewise.
7904 (sse2_storelpd): Likewise.
7905 (vec_dupv2df_sse3): Likewise.
7906 (*vec_concatv2df_sse3): Likewise.
7907 (*sse4_1_pextrb): Likewise.
7908 (*sse4_1_pextrb_memory): Likewise.
7909 (*sse2_pextrw): Likewise.
7910 (*sse4_1_pextrw_memory): Likewise.
7911 (*sse4_1_pextrd): Likewise.
7912 (*sse4_1_pextrq): Likewise.
7913 (sse2_pshufd_1): Likewise.
7914 (sse2_pshuflw_1): Likewise.
7915 (sse2_pshufhw_1): Likewise.
7916 (*sse2_storeq_rex64): Likewise.
7917 (*vec_dupv4si): Likewise.
7918 (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
7919 (sse2_pmovmskb): Likewise.
7920 (*sse2_maskmovdqu): Likewise.
7921 (*sse2_maskmovdqu_rex64): Likewise.
7922 (sse_ldmxcsr): Likewise.
7923 (sse_stmxcsr): Likewise.
7924 (abs<mode>2): Likewise.
7925 (sse4_1_movntdqa): Likewise.
7926 (sse4_1_phminposuw): Likewise.
7927 (sse4_1_extendv8qiv8hi2): Likewise.
7928 (*sse4_1_extendv8qiv8hi2): Likewise.
7929 (sse4_1_extendv4qiv4si2): Likewise.
7930 (*sse4_1_extendv4qiv4si2): Likewise.
7931 (sse4_1_extendv2qiv2di2): Likewise.
7932 (*sse4_1_extendv2qiv2di2): Likewise.
7933 (sse4_1_extendv4hiv4si2): Likewise.
7934 (*sse4_1_extendv4hiv4si2): Likewise.
7935 (sse4_1_extendv2hiv2di2): Likewise.
7936 (*sse4_1_extendv2hiv2di2): Likewise.
7937 (sse4_1_extendv2siv2di2): Likewise.
7938 (*sse4_1_extendv2siv2di2): Likewise.
7939 (sse4_1_zero_extendv8qiv8hi2): Likewise.
7940 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
7941 (sse4_1_zero_extendv4qiv4si2): Likewise.
7942 (*sse4_1_zero_extendv4qiv4si2): Likewise.
7943 (sse4_1_zero_extendv2qiv2di2): Likewise.
7944 (*sse4_1_zero_extendv2qiv2di2): Likewise.
7945 (sse4_1_zero_extendv4hiv4si2): Likewise.
7946 (*sse4_1_zero_extendv4hiv4si2): Likewise.
7947 (sse4_1_zero_extendv2hiv2di2): Likewise.
7948 (*sse4_1_zero_extendv2hiv2di2): Likewise.
7949 (sse4_1_zero_extendv2siv2di2): Likewise.
7950 (*sse4_1_zero_extendv2siv2di2): Likewise.
7951 (sse4_1_ptest): Likewise.
7952 (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
7953 (sse4_2_pcmpestri): Likewise.
7954 (sse4_2_pcmpestrm): Likewise.
7955 (sse4_2_pcmpistri): Likewise.
7956 (sse4_2_pcmpistrm): Likewise.
7958 (aeskeygenassist): Likewise.
7960 2008-08-28 Uros Bizjak <ubizjak@gmail.com>
7962 * config/i386/predicates.md (vzeroall_operation): New.
7964 * config/i386/sse.md (avx_vzeroall): New.
7965 (*avx_vzeroall): Likewise.
7967 2008-08-28 Paul Brook <paul@codesourcery.com>
7968 Mark Shinwell <shinwell@codesourcery.com>
7969 Richard Earnshaw <richard.earnshaw@arm.com>
7971 * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
7972 (TARGET_MIN_ANCHOR_OFFSET): New.
7973 (arm_override_options): Set correct anchor ranges for Thumb-1
7974 and Thumb-2 if required.
7975 (legitimize_pic_address): Handle case involving a TLS symbol
7976 reference with an addend.
7977 (arm_optimization_options): Enable section anchors at -O1 and
7979 * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
7980 * config/arm/arm-protos.h (arm_optimization_options): New.
7982 2008-08-28 Nick Clifton <nickc@redhat.com>
7984 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
7985 * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
7988 * config/v850/v850.h (IRA_COVER_CLASSES): Define.
7989 * config/v850/v850.md (return): Remove frame size restriction.
7991 * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
7993 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
7995 * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
7997 * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
7999 2008-08-28 Paul Brook <paul@codesourcery.com>
8001 * config/arm/vfp11.md: Update license notice.
8002 * config/arm/cortex-r4.md: Ditto.
8004 2008-08-28 Richard Guenther <rguenther@suse.de>
8006 PR tree-optimization/37207
8007 * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
8010 2008-08-28 Dodji Seketeli <dodji@redhat.com>
8013 * tree.c (int_fits_type_p): Don't forget unsigned integers
8014 of type sizetype which higher end word equals -1.
8016 2008-08-28 Ira Rosen <irar@il.ibm.com>
8018 * target.h (struct vectorize): Add new target builtin.
8019 * tree-vectorizer.c (destroy_loop_vec_info): Call
8020 vect_free_slp_instance instead of vect_free_slp_node.
8021 * tree-vectorizer.h (enum slp_load_perm_type): New.
8022 (struct _slp_instance): Add new fields.
8023 (SLP_INSTANCE_LOAD_PERMUTATION): New.
8024 (SLP_INSTANCE_LOADS): New.
8025 (vect_free_slp_tree): Remove.
8026 (vect_free_slp_instance): Declare.
8027 (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
8028 (vectorizable_load): Add argument.
8029 (vect_transform_slp_perm_load): New.
8030 * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
8032 (vect_get_place_in_interleaving_chain): New function.
8033 (vect_free_slp_tree): Make static.
8034 (vect_free_slp_instance): New function.
8035 (vect_build_slp_tree): Add new arguments. Allow load permutations and
8036 collect the load location in the interleaving chain.
8037 (vect_supported_slp_permutation_p): New function.
8038 (vect_supported_load_permutation_p): Likewise.
8039 (vect_analyze_slp_instance): In case of loads permutation, call
8040 vect_supported_load_permutation_p to check that the permutation is
8042 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
8043 * tree-vect-transform.c (vect_transform_stmt): Add new argument.
8044 (vect_create_mask_and_perm): New function.
8045 (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
8046 (vectorizable_load): Add an argument. Don't keep the created vectors
8047 statements in the node if permutation is required. Call
8048 vect_transform_slp_perm_load to generate the permutation.
8049 (vect_transform_stmt): Add new argument. Call vectorizable_load with
8050 additional argument.
8051 (vect_schedule_slp_instance): In case of loads permutation, allocate
8052 vectorized statements structure for all the related SLP nodes. Call
8053 vect_transform_stmt with addditional argument.
8054 (vect_transform_loop): Call vect_transform_stmt with correct arguments.
8055 * config/spu/spu.c (spu_builtin_vec_perm): New.
8056 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
8057 * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
8058 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
8059 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
8061 2008-08-28 Chris Fairles <chris.fairles@gmail.com>
8063 * gthr-posix.h (__gthread_create, __gthread_join, __gthread_detach,
8064 __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
8065 __gthread_cond_signal, __gthread_cond_timedwait,
8066 __gthread_cond_timedwait_recursive): New functions.
8067 * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
8069 * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
8072 2008-08-28 Richard Guenther <rguenther@suse.de>
8075 * fold-const.c (maybe_canonicalize_comparison_1): Require
8076 undefined overflow only for canonicalizing A +- CST cmp CST.
8077 Make sure to not generate new constants that are not inside
8078 their TYPE_MIN/MAX_VALUE range.
8079 (maybe_canonicalize_comparison): Remove undefined overflow
8081 (fold_binary): Remove now duplicate folding.
8083 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
8085 * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
8086 use not updated in the last change.
8088 2008-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
8090 * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
8091 (IRA_COVER_CLASSES): Add FPUL_REGS.
8093 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8096 * c-common.c (conversion_warning): Check for null operands.
8098 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8101 * c-decl.c (check_for_loop_decls): Improve error message. Give
8104 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8107 * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
8108 (convert_for_assignment): Pass corrent OPT_W* parameter to
8109 WARN_FOR_ASSIGNMENT.
8111 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
8114 * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
8116 2008-08-27 Paul Brook <paul@codesourcery.com>
8118 * config.gcc: Loosen checks for arm uclinux eabi targets.
8120 2008-08-27 Paul Brook <paul@codesourcery.com>
8122 * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
8124 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
8126 2008-08-26 Douglas Gregor <doug.gregor@gmail.com>
8128 * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
8129 the enumerators of an ENUMERAL_TYPE.
8130 * dbxout.c (dbxout_type): Ditto.
8132 2008-08-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
8135 * fwprop.c (fwprop): Check that the loop_father is the outer loop.
8136 (fwprop_addr): Check that the loop_father is not the outer loop.
8138 2008-08-26 Paul Brook <paul@codesourcery.com>
8140 * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
8141 Remove documentation entry for fmul type.
8142 Use fmuls to annotate single-precision multiplication patterns,
8143 fmuld to annotate double-precision multiplication patterns,
8144 fmacs to annotate single-precision multiply-accumulate patterns
8145 and fmacd to annotate double-precision multiply-accumulate patterns.
8146 * config/arm/vfp11.md: Update reservations accordingly.
8147 * config/arm/arm.md: Note that certain values of the "type"
8148 attribute are documented in vfp.md.
8149 * config/arm/arm1020e.md: Remove out of date duplicate comment.
8150 (v10_cvt): Use new fmul types.
8152 2008-08-26 Paul Brook <paul@codesourcery.com>
8154 * config/arm/vfp.md: Move pipeline description for VFP11 to...
8155 * config/arm/vfp11.md: ...here. New.
8156 * config/arm/arm.md: Include vfp11.md.
8158 2008-08-26 Hans-Peter Nilsson <hp@axis.com>
8160 * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
8161 parameter to inform call.
8163 2008-08-26 Jeff Law <law@redhat.com>
8165 * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
8166 avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
8167 preferred class when copying a constant into a partial word register.
8169 2008-08-26 Ben Elliston <bje@au.ibm.com>
8171 * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
8172 * cp/typeck.c: Likewise.
8173 * cp/tree.c: Likewise.
8174 * gimple-low.c: Likewise.
8177 2008-08-26 Vladimir Makarov <vmakarov@redhat.com>
8179 * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
8180 ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
8182 * doc/passes.texi: Describe IRA.
8184 * doc/tm.texi (IRA_COVER_CLASSES,
8185 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
8187 * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
8188 (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
8189 -fira-propagate-cost, -fno-ira-share-save-slots,
8190 -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
8192 * flags.h (ira_algorithm): New enumeration.
8193 (flag_ira_algorithm, flag_ira_verbose): New external variable
8196 * postreload.c (gate_handle_postreload): Don't do post reload
8197 optimizations unless the reload is completed.
8199 * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
8202 * tree-pass.h (pass_ira): New external variable declaration.
8204 * reload.h: Add 2008 to the Copyright.
8206 * cfgloopanal.c: Include params.h.
8207 (estimate_reg_pressure_cost): Decrease cost for IRA optimization
8210 * params.h (IRA_MAX_LOOPS_NUM): New macro.
8212 * toplev.c (ira.h): New include.
8213 (flag_ira_algorithm, flag_ira_verbose): New external variables.
8214 (backend_init_target): Call ira_init.
8215 (backend_init): Call ira_init_once.
8216 (finalize): Call finish_ira_once.
8218 * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
8219 flag_ira_share_save_slots, flag_ira_share_spill_slots): New
8222 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
8223 may_move_out_cost): New external variable declarations.
8224 (move_table): New typedef.
8226 * caller-save.c: Include headers output.h and ira.h.
8227 (no_caller_save_reg_set): New global variable.
8228 (save_slots_num, save_slots): New variables.
8229 (reg_save_code, reg_restore_code, add_stored_regs): Add
8231 (init_caller_save): Set up no_caller_save_reg_set.
8232 (init_save_areas): Reset save_slots_num.
8233 (saved_hard_reg): New structure.
8234 (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
8235 (initiate_saved_hard_regs, new_saved_hard_reg,
8236 finish_saved_hard_regs, saved_hard_reg_compare_func): New
8238 (setup_save_areas): Add code for sharing stack slots.
8239 (all_blocks): New variable.
8240 (save_call_clobbered_regs): Process pseudo-register too.
8241 (mark_set_regs): Process pseudo-register too.
8242 (insert_one_insn): Put the insn after bb note in a empty basic
8243 block. Add insn check.
8245 * global.c (eliminable_regset): Make it external.
8246 (mark_elimination): Use DF_LR_IN for IRA.
8247 (pseudo_for_reload_consideration_p): New.
8248 (build_insn_chain): Make it external. Don't ignore spilled
8249 pseudos for IRA. Use pseudo_for_reload_consideration_p.
8250 (gate_handle_global_alloc): New function.
8251 (pass_global_alloc): Add the gate function.
8253 * opts.c (decode_options): Set up flag_ira. Print the warning for
8255 (common_handle_option): Process -fira-algorithm and -fira-verbose.
8257 * timevar.def (TV_IRA, TV_RELOAD): New passes.
8259 * regmove.c (regmove_optimize): Don't do replacement of output for
8262 * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
8263 New external variable declarations.
8265 * local-alloc.c (update_equiv_regs): Make it external. Return
8266 true if jump label rebuilding should be done. Rescan new_insn for
8268 (gate_handle_local_alloc): New function.
8269 (pass_local_alloc): Add the gate function.
8271 * alias.c (value_addr_p, stack_addr_p): New functions.
8272 (nonoverlapping_memrefs_p): Use them for IRA.
8274 * common.opt (fira, fira-algorithm, fira-coalesce,
8275 fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
8276 fira-verbose): New options.
8278 * regclass.c (reg_class_subclasses, contains_reg_of_mode,
8279 move_cost, may_move_in_cost, may_move_out_cost): Make the
8281 (move_table): Remove typedef.
8282 (init_move_cost): Make it external.
8283 (allocate_reg_info, resize_reg_info, setup_reg_classes): New
8286 * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
8287 setup_reg_classes): New function prototypes.
8288 (eliminable_regset): New external variable declaration.
8289 (build_insn_chain, update_equiv_regs): New function prototypes.
8291 * Makefile.in (IRA_INT_H): New definition.
8292 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
8293 ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
8294 (reload1.o, toplev.o): Add dependence on ira.h.
8295 (cfgloopanal.o): Add PARAMS_H.
8296 (caller-save.o): Add dependence on output.h and ira.h.
8297 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
8298 ira-emit.o, ira-lives.o): New entries.
8300 * passes.c (pass_ira): New pass.
8302 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
8304 * reload1.c (ira.h): Include the header.
8305 (changed_allocation_pseudos): New bitmap.
8306 (init_reload): Initiate the bitmap.
8307 (compute_use_by_pseudos): Permits spilled registers in FROM.
8308 (temp_pseudo_reg_arr): New variable.
8309 (reload): Allocate and free temp_pseudo_reg_arr. Sort pseudos for
8310 IRA. Call alter_reg with the additional parameter. Don't clear
8311 spilled_pseudos for IRA. Restore original insn chain for IRA.
8312 Clear changed_allocation_pseudos at the end of reload.
8313 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
8314 (hard_regno_to_pseudo_regno): New variable.
8315 (count_pseudo): Check spilled pseudos. Set up
8316 hard_regno_to_pseudo_regno.
8317 (count_spilled_pseudo): Check spilled pseudos. Update
8318 hard_regno_to_pseudo_regno.
8319 (find_reg): Use better_spill_reload_regno_p. Check
8320 hard_regno_to_pseudo_regno.
8321 (alter_reg): Set up spilled_pseudos. Add a new parameter. Add
8323 (eliminate_regs_1): Use additional parameter for alter_reg.
8324 (finish_spills): Set up pseudo_previous_regs only for spilled
8325 pseudos. Call reassign_pseudos once for all spilled pseudos, pass
8326 more arguments. Don't clear live_throughout and dead_or_set for
8327 spilled pseudos. Use additional parameter for alter_reg. Call
8328 mark_allocation_change. Set up changed_allocation_pseudos.
8329 Remove sanity check.
8330 (emit_input_reload_insns, delete_output_reload): Use additional
8331 parameter for alter_reg. Call mark_allocation_change.
8332 (substitute, gen_reload_chain_without_interm_reg_p): New
8334 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
8336 * testsuite/gcc.dg/20080410-1.c: New file.
8338 * config/s390/s390.h (IRA_COVER_CLASSES,
8339 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
8341 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
8343 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
8345 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8347 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
8349 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8351 * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
8353 2008-08-24 Jeff Law <law@redhat.com>
8354 * ira.c (setup_reg_class_intersect_union): Prefer smallest class
8355 when ignoring unavailable registers.
8357 2008-08-24 Jeff Law <law@redhat.com>
8358 * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
8359 FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
8360 * ira.c (setup_eliminable_regset): Check stack_realign_needed.
8361 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
8363 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
8364 * ira-build.c (allocno_range_compare_func): Stabilize sort.
8366 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
8367 * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
8368 * reload1.c (find_reg): Process registers in register allocation order.
8370 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
8371 * toplev.c (backend_init_target): Move ira_init call from
8373 (lang_dependent_init_target): ...to here.
8375 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
8376 * ira.c (setup_class_subset_and_memory_move_costs): Don't
8377 calculate memory move costs for NO_REGS.
8379 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
8380 * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
8381 STACK_REGS is defined.
8383 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
8384 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
8386 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
8387 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
8389 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
8390 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
8391 * config/sh/sh.md (movsicc_true+3): Check if emit returns a
8394 2008-08-26 Victor Kaplansky <victork@il.ibm.com>
8395 Dorit Nuzman <dorit@il.ibm.com>
8397 * gcc/config/spu/spu.md (vec_extract_evenv4si,
8398 vec_extract_evenv4sf, vec_extract_evenv8hi,
8399 vec_extract_evenv16qi, vec_extract_oddv4si,
8400 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
8401 vec_interleave_highv4sf, vec_interleave_lowv4sf,
8402 vec_interleave_highv4si, vec_interleave_lowv4si,
8403 vec_interleave_highv8hi, vec_interleave_lowv8hi,
8404 vec_interleave_highv16qi, vec_interleave_lowv16qi,
8405 vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
8407 2008-08-25 Janis Johnson <janis187@us.ibm.com>
8410 * config/rs6000/rs6000.c (optimization_options): Don't default to
8411 section anchors without toplevel reorder.
8413 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8415 * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
8416 (mfc_end_critical_section): Likewise.
8418 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8420 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
8421 all type qualifiers from element type to vector type.
8423 2008-08-25 David Daney <ddaney@avtrex.com>
8425 * config/mips/mips.md (immediate_insn): Move up in file, fix
8426 comment typo, reformat.
8427 (fetchop_bit, atomic_hiqi_op memory_barrier,
8428 sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
8429 sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
8430 sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
8431 sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
8432 sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
8433 sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
8434 sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
8435 sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
8436 sync_old_nand<mode>, sync_new_nand<mode>,
8437 sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
8438 test_and_set_12): Moved to sync.md.
8440 * config/mips/sync.md: New file.
8442 2008-08-25 Richard Henderson <rth@redhat.com>
8444 * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
8445 (regsave): Likewise.
8446 (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
8447 (output_cfi_directive): Likewise.
8448 (div_data_align): New.
8449 (output_cfi): Use it.
8451 2008-08-24 Adam Nemet <anemet@caviumnetworks.com>
8453 * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
8454 * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
8455 (TARGET_OCTEON): New macro.
8456 (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
8457 (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
8458 (ISA_HAS_POP): New macro.
8459 * config/mips/driver-native.c (host_detect_local_cpu): Handle
8461 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
8463 * config/mips/mips.md (cpu): Add octeon.
8464 (type): Add pop attribute value.
8465 (popcount<mode>2): New pattern.
8466 * doc/invoke.texi (-march=@var{arch}): Add octeon.
8468 2008-08-24 Jan Hubicka <jh@suse.cz>
8470 * doc/invoke.texi (-fipa-cp-clone): New option.
8471 (-fipa-cp): Update docs.
8472 (--param ipcp-unit-growth):New.
8473 * ipa-cp.c: Include fibheap.h, params.h
8474 (ipcp_initialize_node_lattices): When not cloning, all externally
8475 visible functions are bottom.
8476 (ipcp_need_redirect_p): Accept clones.
8477 (ipcp_insert_stage): Use cost driven heuristics.
8478 (max_count, dead_nodes): New static vars.
8479 (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
8480 ipcp_const_param_count): New functions.
8481 * common.opt (ipa-cp-clone): New command line option.
8482 * params.def (ipcp-unit-growth): New.
8484 2008-08-24 Jan Hubicka <jh@suse.cz>
8486 * tree-inline.c (tree_function_versioning): Look harder
8487 for referenced vars.
8489 2008-08-24 Razya Ladelsky <razya@il.ibm.com>
8491 PR tree-optimization/37185
8492 * matrix-reorg.c (transform_access_sites): Update changed stmt.
8494 2008-08-23 Jan Hubicka <jh@suse.cz>
8496 * ipa-cp.c (ipcp_analyze_node): New function.
8497 (ipcp_update_cloned_node): Use it.
8498 (ipcp_init_stage): Likewise.
8499 * ipa-inline.c (function_insertion_hook_holder): New static var.
8500 (analyze_function): Break out from ....
8501 (inline_generate_summary): Here; register insertion hook.
8502 (cgraph_decide_inlining): Remove hook.
8503 (add_new_function): New function.
8505 2008-08-23 Jan Hubicka <jh@suse.cz>
8507 * opts.c (decode_options): Revert accidental change enabling ipa-cp.
8509 2008-08-23 Jan Hubicka <jh@suse.cz>
8511 * ipa-cp.c (constant_val_insert): Remove.
8512 (ipcp_propagate_one_const): Remove.
8513 (ipcp_create_replace_map): Always insert replacements to the map.
8514 (ipcp_insert_stage): Do not try to insert statements by hand.
8515 * tree-inline.c (insert_init_stmt): Break out from ...
8516 (setup_one_parameter): ... here; allow NULL BB pointer.
8517 (tree_function_versioning): Use setup_one_parameter to process
8520 2008-08-23 Jan Hubicka <jh@suse.cz>
8522 * tree.c (decl_address_ip_invariant_p): New function.
8523 * tree.h (decl_address_ip_invariant_p): Declare.
8524 * gimple.c (strip_invariant_refs): Break out from ...
8525 (is_gimple_invariant_address): ... here
8526 (is_gimple_ip_invariant_address): New function.
8527 (is_gimple_ip_invariant): New function.
8528 * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
8531 * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
8532 (ipcp_lat_is_insertable): All constants are insertable.
8533 (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
8534 IPA_CONST_VALUE_REF.
8535 (ipcp_initialize_node_lattices): Propagate all types of operands.
8536 (build_const_val): Do not handle IPA_CONST_VALUE_REF.
8537 (ipcp_create_replace_map): Reformat.
8538 (ipcp_need_redirect_p): Simplify.
8539 (ipcp_insert_stage): Check that argument is used before clonning.
8540 * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
8542 (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
8543 (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
8544 (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
8545 * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
8546 (jump_func_type): Remove IPA_CONST_VALUE_REF.
8547 * tree-inline.c (tree_function_versioning): Add variables referenced
8550 2008-08-23 Jan Hubicka <jh@suse.cz>
8553 * i386.c (standard_80387_constant_p): Use optimize_size.
8555 2008-08-23 Ira Rosen <irar@il.ibm.com>
8557 PR tree-optimization/37161
8558 * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
8559 * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
8560 (vect_determine_vectorization_factor): Move the scalar type
8561 retrieval to vect_get_smallest_scalar_type.
8562 (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
8563 scalar type. Remove redundant computation.
8564 * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
8565 (vect_get_slp_defs): Take the type of RHS into account if
8566 necessary by calling vect_get_smallest_scalar_type. Call
8567 vect_get_constant_vectors with additional argument.
8569 2008-08-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8572 * doc/invoke.texi (Wwrite-strings): Clarify description.
8574 2008-08-23 Ira Rosen <irar@il.ibm.com>
8576 PR tree-optimization/37174
8577 * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
8578 def stmt is a part of the loop before accessing its stmt_vec_info.
8580 2008-08-22 Anatoly Sokolov <aesok@post.ru>
8583 * config/avr/avr.md (UNSPEC_SWAP): New constants.
8584 (*swap): New insn pattern.
8585 (*ashlqi3): Rename from ashlqi3 insn pattern.
8586 (ashlqi3): New expanders.
8587 (*lshrqi3): Rename from lshrqi3 insn pattern.
8588 (lshrqi3): New expanders.
8589 (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
8590 lshrqi3_const5, lshrqi3_const6): New splitters.
8591 (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
8592 lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
8595 2008-08-22 Richard Guenther <rguenther@suse.de>
8597 PR tree-optimization/37078
8598 * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
8599 [+INF, +INF] ranges.
8601 2008-08-22 Richard Guenther <rguenther@suse.de>
8603 PR tree-optimization/37143
8604 * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
8605 a conversion statement instead of a copy.
8607 2008-08-22 Uros Bizjak <ubizjak@gmail.com>
8610 * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
8611 CCCmode, CCOmode and CCSmode destination modes.
8614 * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
8615 from different units in a single alternative.
8616 (*vec_extractv2sf_1): Ditto.
8617 (*vec_extractv2si_0): Ditto.
8618 (*vec_extractv2si_1): Ditto.
8619 * config/i386/sse.md (sse2_storehpd): Ditto.
8620 (sse2_storelpd): Ditto.
8621 (sse2_loadhpd): Ditto.
8622 (sse2_loadlpd): Ditto.
8625 * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
8626 (popcountsi2): Ditto.
8627 (clzdi2_abm): Ditto.
8628 (popcountdi2): Ditto.
8629 (clzhi2_abm): Ditto.
8630 (popcounthi2): Ditto.
8632 2008-08-22 Richard Guenther <rguenther@suse.de>
8636 * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
8637 if the multiplication does not overflow.
8639 2008-08-21 Nathan Sidwell <nathan@codesourcery.com>
8641 * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
8643 2008-08-21 Richard Henderson <rth@redhat.com>
8645 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
8646 spurrious comma from test.
8647 * configure: Rebuild.
8649 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8652 * builtins.c (fold_builtin_next_arg): Add warning about undefined
8655 2008-08-21 Aldy Hernandez <aldyh@redhat.com>
8657 * c-tree.h (grokfield): New argument.
8658 * c-decl.c (grokfield): Handle new location argument.
8659 * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
8661 2008-08-21 Richard Guenther <rguenther@suse.de>
8663 * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
8665 2008-08-21 Jan Hubicka <jh@suse.cz>
8667 * cgraph.c (first_cgraph_function_insertion_hook): New variable.
8668 (cgraph_add_function_insertion_hook,
8669 cgraph_remove_function_insertion_hook,
8670 cgraph_call_function_insertion_hooks): New functions.
8671 * cgraph.h (cgraph_add_function_insertion_hook,
8672 cgraph_remove_function_insertion_hook,
8673 cgraph_call_function_insertion_hooks): Declare.
8674 * ipa-reference.c (function_insertion_hook_holder): New variable.
8675 (check_operand, look_for_address_of): When checking late, do not care
8676 about module bitmaps.
8677 (add_new_function): New function.
8678 (generate_summary): Register hooks; zero module bitmaps.
8679 (propagate): Unregister hooks.
8680 * ipa-pure-const.c (function_insertion_hook_holder): New variable.
8681 (add_new_function): New function.
8682 (generate_summary): Register hook.
8683 (propagate): Remove hook.
8685 * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
8687 * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
8688 * ipa-cp.c (ipcp_update_cloned_node): New function.
8689 (build_const_val): Handle functions correctly; bring type logic
8690 into sync with tree-inline.c
8691 (ipcp_init_stage): Take care of computing stuff needed by
8692 indirect inlining; update clones.
8693 (ipcp_generate_summary): Break out of ipcp_driver.
8694 (ipcp_driver): Do only execution and transformation.
8695 (pass_ipa_cp): Make IPA_PASS.
8696 * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
8698 * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
8699 ipcp, some info is already available.
8700 * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
8701 * tree-inline.c (remap_ssa_name): Unshare expression.
8703 2008-08-21 Richard Guenther <rguenther@suse.de>
8705 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
8706 a PHI ask VN if it is already available.
8707 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
8708 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
8710 2008-08-21 Richard Guenther <rguenther@suse.de>
8713 * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
8714 makes sure to produce a result of the correct type.
8716 2008-08-21 Jan Hubicka <jh@suse.cz>
8717 Backport from LTO branch:
8719 2008-05-05 Kenneth Zadeck <zadeck@naturalbridge.com>
8720 Jan Hubicka <jh@suse.cz>
8723 (init_state, finish_state, set_function_state, generate_summary):
8725 (scan_stmt): Renamed from scan_function. Changed to keep state in
8726 local static vars rather than cgraph aux field.
8727 (propagate): Renamed from static_execute. Changed to keep state in
8728 local static vars rather than cgraph aux field.
8729 (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
8730 * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
8732 2008-07-15 Kenneth Zadeck <zadeck@naturalbridge.com>
8734 * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
8735 * ipa-reference.c (init_function_info, generate_summary,
8736 propagate): New functions.
8737 (analyze_function): Call init_function_info.
8738 (static_execute): Stripped into generate_summary and propagate.
8739 (pass_ipa_reference): Made into ipa_opt_pass.
8741 2008-08-21 Richard Guenther <rguenther@suse.de>
8743 PR tree-optimization/37181
8744 * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
8746 (extract_range_from_unary_expr): Likewise.
8748 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8750 * diagnostic.c (pedwarn_at): Rename as pedwarn.
8752 * toplev.h (pedwarn_at): Likewise.
8753 * builtins.c: Update all calls to pedwarn.
8754 * c-lex.c: Likewise.
8755 * toplev.c: Likewise.
8756 * c-tree.h: Likewise.
8757 * c-decl.c: Likewise.
8758 * c-errors.c: Likewise.
8759 * c-typeck.c: Likewise.
8760 * c-common.c: Likewise.
8761 * c-parser.c: Likewise.
8763 2008-08-20 Joseph Myers <joseph@codesourcery.com>
8766 * config/sparc/sparc.c (function_arg_slotno): Handle structure
8767 with MODE_VECTOR_INT mode.
8769 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8772 * tree-ssa.c (warn_uninit): Do not warn for variables that can be
8773 initialized outside the current module.
8774 (warn_uninitialized_var): Ignore left-hand side when walking the
8775 trees. Ignore address expressions. Examine VUSE operands in gimple
8776 statements with a variable declaration on the right-hand side.
8778 2008-08-20 Richard Sandiford <rdsandiford@googlemail.com>
8781 * rtlanal.c (subreg_offset_representable_p): Revert last change.
8783 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8786 * c-common.c (conversion_warning): Do not warn if applying bit-and
8787 operator to unsigned constant that fits in the target type.
8789 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8792 * c-common.c (conversion_warning): Do not warn for artificial
8795 2008-08-20 Richard Guenther <rguenther@suse.de>
8797 * tree-vrp.c (op_with_constant_singleton_value_range): New function.
8798 (extract_range_from_binary_expr): Fall back to constant propagation.
8799 (extract_range_from_unary_expr): Likewise.
8801 2008-08-20 Richard Guenther <rguenther@suse.de>
8803 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
8804 with TREE_THIS_VOLATILE on shared nodes.
8805 (fold_stmt_r): Likewise.
8807 2008-08-20 Jakub Jelinek <jakub@redhat.com>
8810 * c-parser.c (c_parser_attributes): For keywords use canonical
8811 spelling for attr_name.
8813 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8815 * value-prof.c (check_counter): Revert wrong call to error.
8817 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8819 * profile.c: Update calls to inform.
8820 * value-prof.c: Update calls to inform.
8822 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8824 * diagnostic.c (inform): Add an explicit location_t parameter.
8825 * toplev.h (inform): Update declaration.
8826 * builtins.c: Update all calls to inform.
8827 * c-common.c: Likewise.
8828 * c-decl.c: Likewise.
8829 * c-opts.c: Likewise.
8830 * c-pch.c: Likewise.
8831 * c-pragma.c: Likewise.
8832 * c-typeck.c: Likewise.
8833 * coverage.c: Likewise.
8835 * toplev.c: Likewise.
8836 * tree-cfg.c: Likewise.
8837 * tree-ssa.c: Likewise.
8839 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
8842 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
8843 V2DI mode, for SSE4.1, use movq instead of vector set if the
8844 second element is zero and inter-unit moves are OK.
8846 2008-08-20 Richard Guenther <rguenther@suse.de>
8848 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
8849 properly handle conversion/copy chains after tuplification.
8851 2008-08-20 Richard Guenther <rguenther@suse.de>
8853 * passes.c (init_optimization_passes): Move the second
8854 forwprop pass before alias computation. Remove the second
8855 DCE pass. Remove the first dominator and phi copy/const
8858 2008-08-20 Nick Clifton <nickc@redhat.com>
8860 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
8861 support of this feature. Do not assume that a sufficiently new
8862 assembler will support the feature regardless of the target type.
8863 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
8864 * configure: Regenerate.
8866 2008-08-20 Richard Guenther <rguenther@suse.de>
8868 * tree-vrp.c (found_in_subgraph): Remove.
8869 (live): New global static.
8870 (live_on_edge): New function.
8871 (blocks_visited): Remove.
8872 (register_edge_assert_for_2): Use live_on_edge.
8873 (find_conditional_asserts): Remove code dealing with
8874 found_in_subgraph. Do not walk the CFG.
8875 (find_switch_asserts): Likewise.
8876 (find_assert_locations_1): Renamed from find_assert_locations.
8877 Move finding assert locations for conditional and switch
8878 statements first. Update live bitmap. Do not walk the CFG.
8879 (find_assert_locations): New function.
8880 (insert_range_assertions): Remove entry of CFG walk.
8881 Adjust call to find_assert_locations.
8882 * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
8883 that only can appear because of fake exit edges but assert we
8884 never try to insert on those.
8885 (fini_pre): Do not remove fake exit edges here...
8886 (execute_pre): ...but here, before committing edge inserts.
8888 2008-08-19 Richard Guenther <rguenther@suse.de>
8890 * passes.c (init_optimization_passes): Exchange store-ccp
8893 2008-08-19 Rafael Espíndola <espindola@google.com>
8895 * varasm.c (weak_decls): Move earlier in the file.
8896 (assemble_external): Add weak decls to the weak_decls list.
8897 (declare_weak): Don't add decls to the weak_decls list.
8899 2008-08-19 H.J. Lu <hongjiu.lu@intel.com>
8902 * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
8903 before (sse2_shufpd_<mode>).
8905 2008-08-19 Jakub Jelinek <jakub@redhat.com>
8908 * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
8909 * tree.c (block_nonartificial_location): Likewise.
8911 2008-08-19 Richard Guenther <rguenther@suse.de>
8913 PR tree-optimization/35972
8914 PR tree-optimization/23094
8915 * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
8917 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
8918 handle MISALIGNED_INDIRECT_REF.
8919 (get_ref_from_reference_ops): New helper.
8920 (vn_reference_lookup_pieces): Walk the use-def chain using the
8921 alias-oracle if requested.
8922 * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
8923 walking the use-def chain.
8924 (compute_avail): But not here.
8925 (create_component_ref_by_pieces_1): Properly handle
8926 MISALIGNED_INDIRECT_REF.
8927 (do_regular_insertion): Handle fully redundant
8928 expressions after PHI-translation also for SSA_NAME values, not
8929 only constants. Correctly use edoubleprime for that.
8931 2008-08-19 Ira Rosen <irar@il.ibm.com>
8933 * tree-vectorizer.c (supportable_widening_operation): Support
8934 multi-step conversion, return the number of steps in such conversion
8935 and the required intermediate types.
8936 (supportable_narrowing_operation): Likewise.
8937 * tree-vectorizer.h (vect_pow2): New function.
8938 (supportable_widening_operation): Change argument types.
8939 (supportable_narrowing_operation): Likewise.
8940 (vectorizable_type_promotion): Add an argument.
8941 (vectorizable_type_demotion): Likewise.
8942 * tree-vect-analyze.c (vect_analyze_operations): Call
8943 vectorizable_type_promotion and vectorizable_type_demotion with
8944 additional argument.
8945 (vect_get_and_check_slp_defs): Detect patterns.
8946 (vect_build_slp_tree): Add an argument, don't fail in case of multiple
8948 (vect_analyze_slp_instance): Don't fail in case of multiple types.
8949 Call vect_build_slp_tree with correct arguments. Calculate unrolling
8950 factor according to the smallest type in the loop.
8951 (vect_detect_hybrid_slp_stmts): Include statements from patterns.
8952 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
8953 supportable_widening_operation with correct arguments.
8954 * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
8955 operands lists according to the number of vector statements in left
8956 or right node, if exists.
8957 (vect_gen_widened_results_half): Remove unused argument.
8958 (vectorizable_conversion): Call supportable_widening_operation,
8959 supportable_narrowing_operation, and vect_gen_widened_results_half
8960 with correct arguments.
8961 (vectorizable_assignment): Change documentation, support multiple
8963 (vectorizable_operation): Likewise.
8964 (vect_get_loop_based_defs): New function.
8965 (vect_create_vectorized_demotion_stmts): Likewise.
8966 (vectorizable_type_demotion): Support loop-aware SLP and general
8967 multi-step conversion. Call vect_get_loop_based_defs and
8968 vect_create_vectorized_demotion_stmts for transformation.
8969 (vect_create_vectorized_promotion_stmts): New function.
8970 (vectorizable_type_promotion): Support loop-aware SLP and general
8971 multi-step conversion. Call vect_create_vectorized_promotion_stmts
8973 (vectorizable_store): Change documentation, support multiple
8975 (vectorizable_load): Likewise.
8976 (vect_transform_stmt): Pass SLP_NODE to
8977 vectorizable_type_promotion and vectorizable_type_demotion.
8978 (vect_schedule_slp_instance): Move here the calculation of number
8979 of vectorized statements for each node from...
8980 (vect_schedule_slp): ... here.
8981 (vect_transform_loop): Call vect_schedule_slp without the last
8984 2008-08-19 Dorit Nuzman <dorit@il.ibm.com>
8987 * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
8988 to == in assert statement.
8989 (vectorizable_reduction): Fix typo.
8991 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
8994 * value-prof.c (check_counter): Dereference pointer to overall
8995 count when printing it.
8997 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
8999 * profile.h: Really add it.
9001 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
9003 * mcf.c: Really add it.
9005 2008-08-18 Paul Yuan <yingbo.com@gmail.com>
9006 Vinodha Ramasamy <vinodha@google.com>
9008 * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
9010 * value-prof.c (check_counter): Fix the counter if
9011 flag_profile_correction is true.
9012 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
9013 tree_mod_subtract_transform):
9014 Follow check_counter parameter change.
9015 * common.opt (fprofile-correction): New option.
9017 * profile.h: Likewise.
9018 * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
9019 (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
9020 is_inconsistent, set_bb_counts, read_profile_edge_counts): New
9022 (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
9023 flag_profile_correction is set.
9025 2008-08-18 Richard Sandiford <rdsandiford@googlemail.com>
9027 * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
9029 2008-08-18 Tomas Bily <tbily@suse.cz>
9031 * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
9032 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
9034 * tree-data-ref.c (split_constant_offset_1): Likewise.
9035 * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
9036 * tree-sra.c (sra_walk_expr): Likewise.
9037 * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
9038 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
9039 * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
9040 * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
9042 * gimple.c (gimple_assign_unary_nop_p): Likewise.
9043 * tree-vect-transform.c (vectorizable_type_demotion)
9044 (vectorizable_type_promotion): Likewise.
9045 * tree-inline.c (expand_call_inline):
9046 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
9047 (forward_propagate_addr_expr_1, forward_propagate_comparison)
9048 (tree_ssa_forward_propagate_single_use_vars): Likewise.
9049 * expr.c (expand_expr_real_1): Likewise.
9050 * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
9051 (gimple_assign_unary_useless_conversion_p): Likewise.
9052 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9053 * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
9054 * fold-const.c (fold_unary): Likewise.
9055 * tree.h (CONVERT_EXPR_P): Likewise.
9056 * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
9057 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
9059 (register_edge_assert_for_2, extract_range_from_unary_expr)
9060 (register_edge_assert_for_1): Likewise.
9062 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9064 * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
9065 dconst_third_ptr, dconst_sqrt2_ptr): Declare.
9066 (enum real_value_const): Delete.
9067 (get_real_const): Delete.
9068 * real.c (get_real_const): Delete.
9069 (dconst_e_ptr): Define.
9070 (dconst_third_ptr): Define.
9071 (dconst_sqrt2_ptr): Define.
9072 * builtins.c: Update all callers.
9074 2008-08-18 Richard Guenther <rguenther@suse.de>
9076 * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
9077 statement iterator after statement removal.
9079 2008-08-18 Andreas Tobler <a.tobler@schweiz.org>
9081 * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
9082 (detect_processor_freebsd): Likewise.
9083 (host_detect_local_cpu): Call newly added functions for FreeBSD.
9085 2008-08-18 Richard Guenther <rguenther@suse.de>
9087 * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
9088 and loads have the correct types.
9090 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9093 * c-opts.c (cpp_opts): Remove static.
9094 * c-parser.c (cpp_opts): Declare it extern.
9095 (disable_extension_diagnostics): Handle cpp options.
9096 (enable_extension_diagnostics): Likewise.
9098 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9100 * diagnostics.c (permerror_at): Rename as permerror.
9101 (permerror): Delete.
9102 * toplev.h: Likewise.
9104 2008-08-18 Richard Guenther <rguenther@suse.de>
9106 * passes.c (init_optimization_passes): Remove cleanup_cfg1,
9107 sdse1 and addressables2 passes. Replace dce1 with cddce1.
9108 Move call_cdce before build_alias. Move copyrename2,
9109 cunrolli and ccp2 beafore build_alias. Re-add addressable2
9110 right after final inlining.
9111 * tree-cfg.c (build_gimple_cfg): Do not dump function here.
9112 (pass_build_cfg): But instead via TODO_dump_func.
9114 2008-08-18 Richard Guenther <rguenther@suse.de>
9116 * tree-sra.c (generate_element_init_1): Deal with NULL constructor
9118 (scalarize_init): If we failed to generate some initializers
9119 do not generate zeros for not instantiated members. Instead
9120 rely on the copy out.
9121 * tree-ssa-operands.c (get_addr_dereference_operands): Warn
9122 about missing flow-sensitive alias info only if we have
9125 2008-08-17 Nick Clifton <nickc@redhat.com>
9127 * doc/extend.texi (Function Attributes): Fix typo in description
9128 if hot function attribute.
9130 2008-08-17 Daniel Jacobowitz <dan@codesourcery.com>
9131 Richard Sandiford <rdsandiford@googlemail.com>
9133 * doc/install.texi (--with-mips-plt): Document.
9134 * doc/invoke.texi (-mplt, -mno-plt): Document.
9135 * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
9136 and handle ${with_mips_plt}.
9137 * config/mips/mips.opt (mplt): New option.
9138 * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
9139 (TARGET_ABICALLS_PIC2): Likewise.
9140 (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
9141 (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
9142 (ASM_SPEC): Use !mabi=* instead of !mabi*.
9143 (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
9144 to decide whether to output ".option picX" directives.
9145 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
9146 Pass -call_nonpic rather than -KPIC for -mplt.
9147 (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
9148 on the command line. Also remove it when -mabi=64 is used without
9150 * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
9151 * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
9152 TARGET_ABICALLS_PIC0.
9153 (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
9155 (mips16_build_function_stub): Only output ".option pic" directives
9156 and PIC stubs if TARGET_ABICALLS_PIC2. Call through $25 instead of $1.
9157 (mips16_build_call_stub): Fix comment and remove redundant
9158 ".set at"/"set .noat" directives.
9159 (mips_function_rodata_section): Use the default behaviour for
9160 TARGET_ABSOLUTE_ABICALLS.
9161 (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
9162 (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
9163 (mips_restore_gp): Do nothing if the current function doesn't use
9165 (mips_expand_prologue): Only save $gp if the current function uses it.
9166 Use a normal move for TARGET_ABICALLS_PIC0.
9167 (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
9169 2008-08-17 Richard Sandiford <rdsandiford@googlemail.com>
9171 * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
9172 of function when handling GLOBAL_POINTER_REGNUM.
9174 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
9177 * common.opt (-fstack-check): Do not declare the variable here.
9178 (-fstack-check=): New option variant.
9179 * doc/invoke.texi (Code Gen Options): Document it.
9180 * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
9181 (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
9182 (STACK_CHECK_STATIC_BUILTIN): New macro.
9183 * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
9184 * opts.c: Include expr.h.
9185 (common_handle_option) <OPT_fold_stack_check_>: New case.
9186 <OPT_fstack_check>: Likewise.
9187 * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
9188 consistently in the test for variable-sized types. Adjust for
9189 new behaviour of flag_stack_check.
9190 * explow.c: Include except.h.
9191 (allocate_dynamic_stack_space): Do not take into account
9192 STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
9193 * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
9194 for variable-sized parameters. Treat all parameters whose size is
9195 greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
9196 stack checking is enabled.
9197 * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
9198 size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
9199 if generic stack checking is enabled.
9200 (expand_function_end): Adjust for new behaviour of flag_stack_check.
9201 * reload1.c (reload): Likewise.
9202 * stmt.c (expand_decl): Assert that all automatic variables have
9203 fixed size at this point and remove dead code.
9204 * flags.h (stack_check_type): New enumeration type.
9205 (flag_stack_check): Declare.
9206 * toplev.c (flag_stack_check): New global variable.
9207 * Makefile.in (opts.o): Add dependency on EXPR_H.
9208 (explow.o): Add dependency on except.h.
9210 2008-08-16 Andy Hutchinson <hutchinsonandy@aim.com>
9212 * config/avr/avr.c (avr_override_options): Reduce value of
9213 PARAM_INLINE_CALL_COST.
9215 2008-08-15 Eric Botcazou <ebotcazou@adacore.com>
9217 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
9218 to BLKmode, try to fetch an inner memory reference. Use 'mode' in
9219 lieu of TYPE_MODE (type) throughout.
9221 2008-08-15 Joseph Myers <joseph@codesourcery.com>
9223 * config/arm/arm.c (add_minipool_backward_ref): Check for
9224 8-byte-aligned entries in second case of forcing insertion after a
9225 particular entry. Change third case to avoid inserting
9226 non-8-byte-aligned entries before 8-byte-aligned ones.
9228 2008-08-15 Richard Guenther <rguenther@suse.de>
9230 * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
9231 strip components for unknown size accesses.
9233 2008-08-15 Wolfgang Gellerich <gellerich@de.ibm.com>
9235 * config/s390/2097.md New file.
9236 * config/s390/s390.md ("z10prop" attribute): Define none,
9237 z10_super, z10_super_E1, z10_super_A1, z10_super_c,
9238 z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
9239 z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
9240 possible values and apply them to insns as appropriate.
9241 ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
9242 ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
9243 fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
9244 fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
9245 ("bfp" mode attribute): Removed. Every occurence replaced
9247 * config/s390/s390.c (struct "z10_cost"): Updated entries.
9248 * config/s390/2084.md (insn_reservation "x_itof"): Updated
9251 2008-08-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9254 * c-parser.c (c_lex_one_token): Do not store the canonical spelling
9257 2008-08-14 Dorit Nuzman <dorit@il.ibm.com>
9259 * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
9260 additional argument. Support reduction when duplication is needed due
9261 to data-types of different sizes in the loop.
9262 (get_initial_def_for_induction): Fix printout.
9263 (vect_get_vec_def_for_stmt_copy): Support case where the
9264 vec_stmt_for_operand is a phi node.
9265 (vectorizable_reduction): Support reduction when duplication is needed
9266 due to data-types of different sizes in the loop.
9267 (vectorizable_call): Remove restriction to not vectorize in case we
9268 have data-types of different sizes in the loop.
9269 (vectorizable_conversion): Likewise.
9270 (vectorizable_operation): Likewise.
9271 (vectorizable_type_demotion): Likewise.
9272 (vectorizable_type_promotion): Likewise.
9273 (vectorizable_induction): Add restriction to not vectorize in case
9274 we have data-types of different sizes in the loop.
9276 2008-08-14 Christophe Saout <christophe@saout.de>
9277 Uros Bizjak <ubizjak@gmail.com>
9280 * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
9281 (*vec_concatv2di_rex64_sse4_1): Ditto.
9282 (*vec_concatv2di_rex64_sse): Ditto.
9284 2008-08-14 Jakub Jelinek <jakub@redhat.com>
9287 * fold-const.c (fold_widened_comparison): Do not allow
9288 sign changes that change the result even if shorter type
9289 is wider than arg1_unw's type.
9291 2008-08-13 Kazu Hirata <kazu@codesourcery.com>
9293 * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
9294 Skip if the multilib testing specifies -march that does not
9295 agree with the one specified in the testcase.
9297 2008-08-13 Joseph Myers <joseph@codesourcery.com>
9299 * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
9300 zero extend SImode values being converted to TFmode before passing
9303 2008-08-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9305 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
9306 __PPU__ when targeting the Cell/B.E. PPU processor.
9308 2008-08-13 Eric Botcazou <ebotcazou@adacore.com>
9310 * gimple.h (gimple_call_set_chain): Accept SSA variables.
9311 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
9312 Rematerialize the static chain, if any.
9313 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
9316 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
9318 * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
9319 (new_loc_descr): Likewise.
9320 (add_loc_descr): Likewise.
9321 (size_of_loc_descr): Likewise.
9322 (size_of_locs): Likewise.
9323 (output_loc_operands): Likewise.
9324 (output_loc_sequence): Likewise.
9325 (new_reg_loc_descr): New.
9326 (build_cfa_loc): Use it.
9327 (build_cfa_aligned_loc): Likewise.
9328 (one_reg_loc_descriptor): Likewise.
9329 (based_loc_descr): Likewise.
9331 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9334 * doc/invoke.texi (Wmain): Update.
9335 * c-decl.c (start_decl): warn_main is only 0 or 1.
9336 (start_function): Likewise. Fix formatting.
9337 (finish_function): Delete redundant warning.
9338 * c.opt (Wmain): Add Var(warn_main) and Init(-1).
9339 * c-opts (c_common_handle_option): -Wall only has effect if
9340 warn_main is uninitialized. OPT_Wmain is automatically
9341 handled. -pedantic also enables Wmain.
9342 (c_common_post_options): Handle all logic for Wmain here.
9343 * c-common.c (warn_main): Delete.
9344 (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
9345 * c-common.h (warn_main): Delete.
9347 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
9350 * expr.c (emit_group_store): Allocate stack temp with the
9351 largest alignment when copying from register to stack.
9353 2008-08-13 Richard Guenther <rguenther@suse.de>
9355 * tree.h (maybe_fold_offset_to_address): Declare.
9356 * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
9357 (ccp_fold): Handle pointer conversions the same as fold_stmt.
9358 Likewise for POINTER_PLUS_EXPR.
9359 (maybe_fold_offset_to_reference): Enable disabled code.
9360 (maybe_fold_offset_to_address): New function.
9361 (fold_stmt_r): Use it.
9362 (fold_gimple_assign): Likewise.
9363 * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
9364 (gimplify_expr): Likewise.
9366 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9368 * toplev.h (pedwarn_at): Fix declaration.
9370 2008-08-13 Joseph Myers <joseph@codesourcery.com>
9372 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9373 LINK_SPEC): Use %R in -Y P argument.
9375 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9378 * diagnostic.c (pedwarn_at): New.
9379 * toplev.h (pedwarn_at): Declare.
9380 * c-tree.h (build_enumerator): Update declaration.
9381 * c-decl.c (finish_enum): Update comment.
9382 (build_enumerator): Take a location parameter. Give a pedwarn but do
9383 not perform any conversion.
9384 * c-parser.c (c_parser_enum_specifier): Set correct location for
9387 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9390 * c-common.c (conversion_warning): Use a switch. Ignore boolean
9391 expressions except for conversions to signed:1 bitfields. Handle
9392 COND_EXPR with constant operands.
9394 2008-08-13 Richard Guenther <rguenther@suse.de>
9396 PR tree-optimization/15255
9397 * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
9398 (struct oecount_s): New struct and VEC types.
9400 (oecount_hash): New function.
9401 (oecount_eq): Likewise.
9402 (oecount_cmp): Likewise.
9403 (zero_one_operation): New function.
9404 (build_and_add_sum): Likewise.
9405 (undistribute_ops_list): Perform un-distribution of multiplication
9406 and division on the chain of summands.
9407 (should_break_up_subtract): Also break up subtracts for factors.
9408 (reassociate_bb): Delete dead visited statements.
9409 Call undistribute_ops_list. Re-sort and optimize if it did something.
9410 * passes.c (init_optimization_passes): Move DSE before
9412 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
9415 2008-08-12 Janis Johnson <janis187@us.ibm.com>
9417 * doc/invoke.texi (-fipa-pta): Say the option is experimental.
9419 * doc/invoke.texi: Revert unintended checkin.
9421 2008-08-12 Nathan Froyd <froydnj@codesourcery.com>
9424 * gcc.c (include_spec_function): Tweak call to find_a_file.
9426 2008-08-12 Jakub Jelinek <jakub@redhat.com>
9429 * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
9430 and TRUTH_ORIF_EXPR.
9431 * dojump.c (do_jump): Likewise.
9433 PR tree-optimization/37084
9434 * tree-inline.c (copy_bb): Call gimple_regimplify_operands
9435 if id->regimplify, don't assume stmt is a cast assignment.
9437 2008-08-12 Anatoly Sokolov <aesok@post.ru>
9439 * final.c (final_scan_insn): Use app_enable/app_disable functions.
9441 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9444 * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
9447 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9449 * defaults.h (TARGET_FLOAT_FORMAT): Remove.
9450 (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
9452 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
9453 * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
9454 * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
9455 * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
9456 * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
9458 * doc/tm.texi (Storage Layout): Remove documentation for
9459 TARGET_FLOAT_FORMAT.
9461 * simplify-rtx.c (simplify_binary_operation_1): Replace
9462 TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
9464 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9466 * real.h (struct real_format): New member has_sign_dependent_rounding.
9467 * real.c (ieee_single_format, mips_single_format, motorola_single_format,
9468 spu_single_format, ieee_double_format, mips_double_format,
9469 motorola_double_format, ieee_extended_motorola_format,
9470 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
9471 ieee_extended_intel_96_round_53_format, ibm_extended_format,
9472 mips_extended_format, ieee_quad_format, mips_quad_format,
9473 vax_f_format, vax_d_format, vax_g_format): Initialize it.
9474 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
9476 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
9477 MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
9478 * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
9479 MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
9480 (ROUND_TOWARDS_ZERO): Likewise.
9482 * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
9483 (FLOAT_MODE_FORMAT): New macro.
9484 (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
9485 (MODE_COMPOSITE_P): ... this new macro.
9486 (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
9487 MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
9488 * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
9490 * flags.h: Include "real.h".
9492 * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
9493 REAL_MODE_FORMAT_COMPOSITE_P.
9494 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
9496 * doc/tm.texi (Storage Layout): Remove documentation of
9497 MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
9498 MODE_HAS_SIGN_DEPENDENT_ROUNDING. Update documentation of
9499 ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
9500 they only apply to libgcc2.a.
9502 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9504 * config/spu/float_disf.c: New file.
9505 * config/spu/float_unsdisf.c: New file.
9506 * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
9507 (LIB2FUNCS_EXCLUDE): Define.
9509 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9510 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
9512 * real.h (struct real_format): New member round_towards_zero.
9513 * real.c (round_for_format): Respect fmt->round_towards_zero.
9514 (ieee_single_format, mips_single_format, motorola_single_format,
9515 spu_single_format, ieee_double_format, mips_double_format,
9516 motorola_double_format, ieee_extended_motorola_format,
9517 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
9518 ieee_extended_intel_96_round_53_format, ibm_extended_format,
9519 mips_extended_format, ieee_quad_format, mips_quad_format,
9520 vax_f_format, vax_d_format, vax_g_format): Initialize it.
9521 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
9523 * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
9524 real_format to choose rounding mode when calling MPFR functions.
9525 (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
9526 (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
9528 * real.h (real_to_decimal_for_mode): Add prototype.
9529 * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
9530 Respect target rounding mode when generating decimal representation.
9531 (real_to_decimal): New stub for backwards compatibility.
9532 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
9533 real_to_decimal_for_mode instead of real_to_decimal.
9535 * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
9537 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9538 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
9540 * real.c (spu_single_format): New variable.
9541 * real.h (spu_single_format): Declare.
9543 * config/spu/spu.c (spu_override_options): Install SFmode format.
9544 (spu_split_immediate): Use integer mode to operate on pieces of
9545 floating-point values in all cases.
9547 * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
9548 ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
9549 ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
9551 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9553 * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
9555 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9557 * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
9559 2008-08-12 Jakub Jelinek <jakub@redhat.com>
9562 * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
9563 on the VAR_DECL instead of TYPE_READONLY on its type.
9565 2008-08-12 Ira Rosen <irar@il.ibm.com>
9567 * tree-vectorizer.c: Depend on langhooks.h.
9568 (supportable_widening_operation): Add two arguments. Support double
9570 (supportable_narrowing_operation): Likewise.
9571 * tree-vectorizer.h (supportable_widening_operation): Add two
9573 (supportable_narrowing_operation): Likewise.
9574 * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
9575 supportable_widening_operation with correct arguments.
9576 * tree-vect-transform.c (vectorizable_conversion): Likewise.
9577 (vectorizable_type_demotion): Support double type conversions.
9578 (vectorizable_type_promotion): Likewise.
9579 * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
9581 2008-08-11 Michael Matz <matz@suse.de>
9583 * i386/i386.c (override_options): Move initialisation from
9584 flag_schedule_insns_after_reload to here from ...
9585 (optimization_options): ... here.
9587 2008-08-11 Jakub Jelinek <jakub@redhat.com>
9589 PR rtl-optimization/36998
9590 * dwarf2out.c (compute_barrier_args_size_1,
9591 compute_barrier_args_size): Temporarily remove assertions.
9593 2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9596 * tree-ssa.c (struct walk_data): Add new flag
9597 warn_possibly_uninitialized.
9598 (warn_uninitialized_var): Use it.
9599 (warn_uninitialized_vars): New.
9600 (execute_early_warn_uninitialized): Call it.
9601 (execute_late_warn_uninitialized): Likewise.
9603 2008-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
9606 * reload1.c (gen_reload): Guard calls to get_secondary_mem
9609 2008-08-09 Jan Hubicka <jh@suse.cz>
9612 * optabs.c (maybe_emit_unop_insn): Remove produced code if
9614 (expand_fix): Be prepared for expansion to fail.
9615 (expand_sfix_optab): Remove instructions if expansion failed.
9617 2008-08-09 Anatoly Sokolov <aesok@post.ru>
9619 * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
9621 * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
9622 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9624 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9626 * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
9627 mips/t-libgcc-mips16 to tmake_file.
9628 * config/mips/mips-protos.h (mips_call_type): New enum.
9629 (mips_pic_base_register, mips_got_load): Declare.
9630 (mips_restore_gp): Take an rtx argument.
9631 (mips_use_pic_fn_addr_reg_p): Declare.
9632 (mips_expand_call): Replace the sibcall_p argument with
9633 a mips_call_type argument. Add a lazy_p parameter.
9634 (mips_split_call): Declare.
9635 * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
9636 (MIPS16_PIC_TEMP): Likewise.
9637 (reg_class): Delete M16_NA_REGS.
9638 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
9639 (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
9640 (mips_split_hi_p): Declare.
9641 * config/mips/mips.c (mips_split_hi_p): New array.
9642 (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
9643 (mips_got_symbol_type_p): New function.
9644 (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
9645 (mips16_stub_function_p): New function.
9646 (mips16_local_function_p): Likewise.
9647 (mips_use_pic_fn_addr_reg_p): Likewise.
9648 (mips_cannot_force_const_mem): Return false for HIGHs.
9649 Extend CONST_INT and symbolic handling to MIPS16, using
9650 mips_symbol_insns to check that the base symbol type is a
9651 legitimate constant. Reject GOT-based constants if
9652 TARGET_MIPS16_PCREL_LOADS.
9653 (mips_const_insns): Check targetm.cannot_force_const_mem when
9654 decomposing a symbolic base and a large offset.
9655 (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
9656 When calling a function that needs $25 from MIPS16 code,
9657 move the target address into $25 separately and add a USE
9659 (mips16_gp_pseudo_reg): Insert the initializer immediately
9660 before the first real insn.
9661 (mips_pic_base_register, mips_got_load): New functions.
9662 (mips_split_symbol): Generalize the name of the LO_SUM_OUT
9663 parameter to LOW_OUT. Say that it can be any valid SET_SRC
9664 when splitting a load-address operation. Split SYMBOL_GOT_DISP
9665 constants and highs of SYMBOL_GOT_PAGE_OFST constants.
9666 (mips_call_tls_get_addr): Update the call to mips_expand_call,
9667 also passing NULL_RTX rather than const0_rtx as the aux argument.
9668 (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
9669 instead of TARGET_EXPLICIT_RELOCS.
9670 (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
9671 (mips_load_call_address): Replace the sibcall_p argument with
9672 a mips_call_type argument. Use mips_got_load.
9673 (mips16_local_alias): New structure.
9674 (mips16_local_aliases): New variable.
9675 (mips16_local_aliases_hash): New function.
9676 (mips16_local_aliases_eq): Likewise.
9677 (mips16_local_alias): Likewise.
9678 (mips16_stub_function): Likewise.
9679 (mips16_build_function_stub): Create a local alias for the target
9680 function. Handle TARGET_ABICALLS. For PIC abicalls, emit a
9681 .cpload directive and an R_MIPS_NONE relocation for the target
9682 function, then load the alias rather than the function itself.
9683 Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
9684 (mips16_copy_fpr_return_value): Use mips16_stub_function and
9685 mips_expand_call. Set SYMBOL_REF_BIND_NOW on the symbol.
9686 (mips16_build_call_stub): Replace the FN parameter with an
9687 FN_PTR parameter. Force the address into a register if it
9688 isn't a call_insn_operand; don't rely on the caller to do this.
9689 If a call to a locally-defined and locally-binding MIPS16
9690 function must be made indirectly, redirect the call to the
9691 function's local alias. Use mips16_stub_function_p,
9692 mips16_stub_function, mips_expand_call and use_reg.
9693 Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
9694 Use explicit %hi and %lo accesses where possible.
9695 Use MIPS_CALL to generate the correct code form of a
9696 jal instruction. Add clobbers of $18 instead of uses.
9697 Update the call to mips_emit_call_insn.
9698 (mips_expand_call): Replace the SIBCALL_P argument with a
9699 mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
9700 Take a LAZY_P parameter. Call mips16_build_call_stub first,
9701 allowing it to modify the call address. Update the calls to
9702 mips_load_call_address and mips_emit_call_insn.
9703 (mips_split_call): New function.
9704 (mips_init_relocs): Clear mips_split_hi_p. Only use %gp_rel if
9705 !TARGET_MIPS16. Split SYMBOL_GOT_DISP, and the high parts of
9706 SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
9707 (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
9708 (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
9710 (mips_cprestore_slot): New function.
9711 (mips_restore_gp): Take a TEMP parameter. Handle TARGET_MIPS16
9712 and use mips_cprestore_slot.
9713 (mips_output_function_prologue): Handle TARGET_MIPS16 for
9715 (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
9716 then use a copygp_mips16 instruction to set up $28.
9717 (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
9718 (mips16_lay_out_constants): Call split_all_insns_noflow.
9719 (mips_reorg_process_insns): Explicitly set all_noreorder_p to
9720 false if TARGET_MIPS16.
9721 (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
9722 (mips_output_mi_thunk): Use mips_got_symbol_type_p. Use the
9723 mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
9724 (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
9725 MIPS16 code. Allow MIPS16 o32 PIC.
9726 (mips_override_options): Allow MIPS16 o32 PIC.
9727 * config/mips/mips.md: Lower CONST_GP_P moves into register moves
9728 after reload if TARGET_USE_GOT.
9729 (UNSPEC_COPYGP): New constant.
9730 (length): Use a default length of 8 for MIPS16 GOT loads.
9731 (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
9732 (*got_page<mode>): Check mips_split_hi_p.
9733 (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
9734 (unspec_got<mode>, unspec_call<mode>): New expanders.
9735 (load_got<mode>, load_call<mode>): Remove the length attributes.
9736 Use a got attribute instead of a type attribute.
9737 (copygp_mips16): New insn.
9738 (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
9739 (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
9740 (sibcall, sibcall_value, call, call_value): Update the calls
9741 to mips_expand_call.
9742 (call_internal, call_value_internal): Use mips_split_call.
9743 (call_value_multiple_internal): Likewise.
9744 (call_split): Move after call_internal (the insn it is split from).
9745 (call_internal_direct, call_value_internal_direct): Turn into
9746 define_insn_and_splits. Split if TARGET_SPLIT_CALLS.
9747 (call_direct_split, call_value_direct_split): New patterns.
9748 * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
9749 and use M16_REGS instead of M16_NA_REGS.
9750 * config/mips/predicates.md (const_call_insn_operand): Replace
9751 the TARGET_ABSOLUTE_ABICALLS-based check with a more general
9752 mips_use_pic_fn_addr_reg_p check.
9753 (move_operand): Reject HIGHs if mips_split_hi_p.
9754 * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
9755 (__mips16_floatunsisf): Inline __mips16_floatsisf.
9756 (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
9757 * config/mips/libgcc-mips16.ver: New file.
9758 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
9759 $(srcdir)/config/mips/libgcc-mips16.ver.
9761 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9763 * config/mips/mips.c (mips_unspec_address_offset): Move earlier
9765 (mips_unspec_address, mips_unspec_offset_high): Likewise.
9766 (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
9767 (mips16_cfun_returns_in_fpr_p): Likewise.
9769 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9771 * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
9772 * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
9773 rather than 4 to PC.
9775 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9777 * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
9778 (FUNCTION_PROFILER): Save the static chain pointer into $2
9779 beforehand and restore it aftewards.
9780 (TRAMPOLINE_TEMPLATE): Adjust accordingly. Load the target
9781 address directly into $25 and call the function through $25;
9782 do not clobber $3. Pad the DImode version to cover the space
9783 left by the deleted $25 <- $3 move.
9784 (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
9785 the removal of the $25 <- $3 move.
9786 (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
9787 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
9789 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9790 Daniel Jacobowitz <dan@codesourcery.com>
9792 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
9793 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
9794 (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
9795 * config/mips/mips.c (mips_start_function_definition): New function.
9796 (mips_end_function_definition): Likewise.
9797 (mips_output_function_prologue): Use mips_start_function_definition.
9798 (mips_output_function_epilogue): Use mips_end_function_definition.
9799 (build_mips16_function_stub): Use mips_start_function_definition
9800 and mips_end_function_definition.
9801 (build_mips16_call_stub): Likewise.
9803 2008-08-09 Richard Guenther <rguenther@suse.de>
9805 * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
9806 * gimple.h (gimple_call_fn): Adjust comment.
9807 (gimple_call_set_fndecl): New function.
9808 (gimple_call_fndecl): Adjust for GIMPLE_CALL no
9809 longer having bare FUNCTION_DECL operand.
9810 (gimple_call_return_type): Likewise.
9811 * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
9813 * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
9814 (gimple_mod_pow2): Likewise.
9815 (gimple_mod_subtract): Likewise.
9816 (gimple_ic): Likewise.
9817 (gimple_stringop_fixed_value): Likewise.
9818 (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
9819 longer having bare FUNCTION_DECL operand.
9820 * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
9821 * omp-low.c (optimize_omp_library_calls): Likewise.
9822 * cgraphunit.c (update_call_expr): Likewise.
9823 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
9824 (execute_convert_to_rsqrt): Likewise.
9825 * cfgexpand.c (gimple_to_tree): Simplify.
9826 (release_stmt_tree): Fix for GIMPLE_CALL no longer having
9827 bare FUNCTION_DECL operand.
9828 * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
9829 (convert_gimple_call): Use gimple_call_fndecl.
9830 * c-common.c (c_warn_unused_result): Likewise.
9832 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9835 * c-typeck.c (digest_init): Call verify_sequence_points from here.
9836 (c_finish_return): Likewise.
9837 (c_start_case): Likewise.
9838 * c-common.c (warn_for_collisions_1): Use explicit location in warning.
9839 * c-parser.c (c_parser_condition): New. Call
9840 verify_sequence_points.
9841 (c_parser_paren_condition): Call c_parser_condition.
9842 (c_parser_for_statement): Call c_parser_condition.
9844 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9847 * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
9848 * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
9849 Moved from diagnostic.h
9850 (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
9852 (emit_diagnostic): New.
9853 (warning0, pedwarn0): Delete.
9854 (warning, warning_at, pedwarn, permerror): Return bool.
9855 * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
9856 Moved to diagnostic.c.
9857 (struct diagnostic_context): Use correct type for
9858 classify_diagnostic.
9859 (diagnostic_report_diagnostic): Update declaration.
9860 (emit_diagnostic): Declare.
9861 * errors.c (warning): Return bool.
9862 * errors.h (warning): Update declaration.
9863 * toplev.h (warning0, pedwarn0): Delete.
9864 (warning, warning_at, pedwarn, permerror): Return bool.
9865 * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
9866 * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
9867 inform. Update all calls.
9868 (diagnose_mismatched_decls): Check return value of warning/pedwarn
9869 before giving informative note.
9870 (implicit_decl_warning): Likewise.
9871 * c-typeck.c (build_function_call): Likewise.
9872 * tree-sssa.c (warn_uninit): Likewise.
9873 * builtins.c (gimplify_va_arg_expr): Likewise.
9875 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9878 * doc/invoke.texi (-Wextra): Move warning from here...
9879 (-Wuninitialized): ... to here.
9881 2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9884 * flags.h (set_Wunused): Delete
9885 * toplev.c (process_options): Handle Wunused flags here.
9886 * opts.c (maybe_warn_unused_parameter): Delete.
9887 (common_handle_option): Replace set_Wunused by warn_unused.
9888 (set_Wextra): Do not handle Wunused-parameter here.
9889 (set_Wunused): Delete.
9890 * c-opts.c (c_common_handle_option): Replace set_Wunused by
9892 * common.opt (Wunused): Add Var and Init.
9893 (Wunused-function): Likewise.
9894 (Wunused-label): Likewise.
9895 (Wunused-parameter): Likewise.
9896 (Wunused-value): Likewise.
9897 (Wunused-variable): Likewise.
9899 2008-08-08 Peter Bergner <bergner@vnet.ibm.com>
9901 * doc/invoke.texi: Add cpu_type power7.
9902 * config.in (HAVE_AS_VSX): New.
9903 * config.gcc: Add cpu_type power7.
9904 * configure.ac (HAVE_AS_VSX): Check for assembler support of the
9906 * configure: Regenerate.
9907 * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
9909 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
9910 (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
9911 (EXTRA_SPECS): Add asm_cpu_power7 spec string.
9913 2008-08-08 Dorit Nuzman <dorit@il.ibm.com>
9915 * tree-vect-transform.c (vectorizable_conversion): Pass the integral
9916 type to vectorize.builtin_conversion.
9917 (vectorizable_conversion): Likewise.
9918 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
9919 integral type as input.
9920 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
9922 (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
9923 and ALTIVEC_BUILTIN_VCTSXS.
9924 (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
9927 2008-08-08 Richard Guenther <rguenther@suse.de>
9929 * tree-ssa-ccp.c (likely_value): Calls are not all varying.
9930 (surely_varying_stmt_p): Calls are varying only if they are
9931 non-builtin and not indirect or have no result.
9932 (ccp_fold): Re-instantiate code before the tuples merge.
9934 2008-08-08 Richard Guenther <rguenther@suse.de>
9936 PR tree-optimization/37056
9937 * gimple.h (gimple_assign_rhs_class): New helper function.
9938 * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
9939 unary operations properly.
9941 2008-08-07 Jan Hubicka <jh@suse.cz>
9943 * i386.h (ix86_size_cost): Declare.
9944 (ix86_cur_cost): New function macro.
9945 * i386.md (peepholes expanding size and splitters): Predicate by
9946 optimize_insn_for_speed_p.
9947 (peepholes reduce size and splitters): Predicate by
9948 optimize_insn_for_size_p.
9949 * i386.c (ix86_size_cost): Rename from ...
9950 (size_cost): This one.
9951 (override_options): Update.
9952 (decide_alg): Likewise.
9953 (ix86_expand_clear): Use RTL profile.
9954 (ix86_pad_returns): Use RTL profile.
9956 2008-08-07 Jan Hubicka <jh@suse.cz>
9958 * recog.c (split_all_insns): Set RTL profile
9959 (peephole2_optimize): Likewise.
9960 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9961 * combine.c (combine_instructions): Likewise.
9963 2008-08-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9965 * c-common.c (c_common_reswords): Also warn about keyword "bool".
9967 2008-08-07 Bob Wilson <bob.wilson@acm.org>
9969 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
9970 value in a6 after the set_frame_ptr insn.
9972 2008-08-07 Richard Henderson <rth@redhat.com>
9975 * gcc.c (cpp_options): Pass along -g*.
9977 2008-08-07 Joseph Myers <joseph@codesourcery.com>
9979 * config/arm/arm.c (output_move_neon): Update comment describing
9980 big-endian vector layout.
9981 (arm_assemble_integer): Do not handle big-endian NEON vectors
9983 * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
9984 neon_vget_lane<mode>_sext_internal,
9985 neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
9986 element indices for big-endian.
9988 2008-08-07 Richard Henderson <rth@redhat.com>
9990 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
9991 * configure, config.in: Rebuild.
9992 * debug.h (dwarf2out_do_cfi_asm): Declare.
9993 * c-cppbuiltin.c (c_cpp_builtins): Use it.
9994 * dwarf2out.c (dwarf2out_do_cfi_asm): New.
9995 (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
9996 dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
9998 2008-08-07 Joseph Myers <joseph@codesourcery.com>
10000 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
10001 movv2si_internal): Combine into mov<mode>_internal.
10002 (movv2si_internal_2): Remove.
10004 2008-08-07 Jan Hubicka <jh@suse.cz>
10007 * i386.md (single stringop patterns): Enable unconditionally.
10009 2008-08-07 H.J. Lu <hongjiu.lu@intel.com>
10012 * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
10014 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
10015 (bdesc_args): Add IX86_BUILTIN_MOVQ128.
10017 * config/i386/sse.md (sse2_movq128): New.
10019 * doc/extend.texi: Document __builtin_ia32_movq128.
10021 2008-08-07 Richard Guenther <rguenther@suse.de>
10023 PR middle-end/37042
10024 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
10025 pointers can access anything.
10027 2008-08-06 Jan Hubicka <jh@suse.cz>
10029 * optabs.c (emit_unop_insn): Break out to ...
10030 (maybe_emit_unop_insn): ... this one.
10031 (expand_sfix_optab): Use maybe variant.
10032 * optabs.h (maybe_emit_unop_insn): Declare.
10034 * i386.md (mov0 patterns): Enable by default.
10035 (FP conversion expanders): Disable expansion of code expanding
10036 sequences when instruction should be optimized for size.
10037 (single strinop patterns): Enable when optimizing for size.
10038 (string expanders): Disable expanding of code expanding sequences
10039 when optimizning instruction for size.
10040 * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
10042 (ix86_fp_comparison_sahf_cost): Likewise.
10043 (ix86_expand_branch): Likewise.
10044 (ix86_expand_ashl_const): Likewise.
10045 (ix86_split_ashl): Likewise.
10046 (ix86_expand_strlen): Likewise.
10047 (ix86_emit_fp_unordered_jump): Likewie.
10049 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10051 * c-common.c: Fix typo.
10052 (c_common_reswords): Activate more C++ keyword warnings.
10054 * matrix-reorg.c (compute_offset): Avoid C++ keywords.
10056 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10059 * diagnostic.c (permerror_at): New.
10060 * toplev.h (permerror_at): Declare.
10062 2008-08-06 Victor Kaplansky <victork@il.ibm.com>
10063 Ira Rosen <irar@il.ibm.com>
10065 * tree-vect-transform.c (vect_model_simple_cost): Return
10066 immediately if stmt is pure SLP.
10067 (vect_model_store_cost): Ditto.
10068 (vect_model_load_cost): Ditto.
10069 (vectorizable_store): Remove PURE_SLP check before call
10070 to vect_model_store_cost.
10071 (vect_model_store_cost): When checking whether stmt describe
10072 strided access, add a check that it is not slp_node.
10074 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10077 * c-common.c (warn_for_sign_compare): New. Handle separately the
10078 case that 'constant' is zero.
10079 * c-typeck.c (build_binary_op): Move code to c-common.c
10081 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10083 * config/alpha/alpha.c (alpha_preferred_reload_class,
10084 alpha_secondary_reload, alpha_emit_set_const_1, function_value,
10085 alpha_output_mi_thunk_osf): Avoid C++ keywords.
10086 * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
10087 * config/arm/arm.md: Likewise.
10088 * config/avr/avr-protos.h (preferred_reload_class,
10089 test_hard_reg_class, avr_simplify_comparison_p,
10090 out_shift_with_cnt, class_max_nregs): Likewise.
10091 * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
10092 output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
10093 preferred_reload_class, test_hard_reg_class): Likewise.
10094 * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
10095 bfin_memory_move_cost, bfin_secondary_reload,
10096 bfin_output_mi_thunk): Likewise.
10097 * config/crx/crx.c (crx_secondary_reload_class,
10098 crx_memory_move_cost): Likewise.
10099 * config/frv/frv-protos.h (frv_secondary_reload_class,
10100 frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
10101 * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
10102 frv_secondary_reload_class, frv_class_likely_spilled_p,
10103 frv_class_max_nregs): Likewise.
10104 * config/h8300/h8300.c (h8300_classify_operand,
10105 h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
10107 * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
10108 * config/ia64/ia64.c (ia64_preferred_reload_class,
10109 ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
10110 * config/iq2000/iq2000.c (gen_int_relational): Likewise.
10111 * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
10113 * config/m68hc11/m68hc11.c (preferred_reload_class,
10114 m68hc11_memory_move_cost): Likewise.
10115 * config/mcore/mcore.c (mcore_secondary_reload_class,
10116 mcore_reload_class): Likewise.
10117 * config/mips/mips.c (mips_hard_regno_mode_ok_p,
10118 mips_class_max_nregs, mips_cannot_change_mode_class,
10119 mips_preferred_reload_class, mips_secondary_reload_class,
10120 mips_output_mi_thunk): Likewise.
10121 * config/mmix/mmix.c (mmix_preferred_reload_class,
10122 mmix_preferred_output_reload_class, mmix_secondary_reload_class):
10124 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10126 * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
10127 pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
10128 * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
10129 * config/rs6000/rs6000.c (paired_expand_vector_init,
10130 rs6000_secondary_reload_class, rs6000_output_mi_thunk,
10131 compare_section_name, rs6000_memory_move_cost): Likewise.
10132 * config/s390/s390.c (s390_emit_compare_and_swap,
10133 s390_preferred_reload_class, s390_secondary_reload,
10134 legitimize_pic_address, legitimize_tls_address,
10135 legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
10136 s390_class_max_nregs): Likewise.
10137 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
10138 * config/s390/s390.md: Likewise.
10139 * config/score/score-protos.h (score_secondary_reload_class,
10140 score_preferred_reload_class): Likewise.
10141 * config/score/score.c (score_preferred_reload_class,
10142 score_secondary_reload_class): Likewise.
10143 * config/score/score3.c (score3_output_mi_thunk,
10144 score3_preferred_reload_class, score3_secondary_reload_class,
10145 score3_hard_regno_mode_ok): Likewise.
10146 * config/score/score3.h (score3_preferred_reload_class,
10147 score3_secondary_reload_class): Likewise.
10148 * config/score/score7.c (score7_output_mi_thunk,
10149 score7_preferred_reload_class, score7_secondary_reload_class,
10150 score7_hard_regno_mode_ok): Likewise.
10151 * config/score/score7.h (score7_preferred_reload_class,
10152 score7_secondary_reload_class): Likewise.
10153 * config/sh/sh.c (prepare_move_operands, output_far_jump,
10154 output_branchy_insn, add_constant, gen_block_redirect,
10155 sh_insn_length_adjustment, sh_cannot_change_mode_class,
10156 sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
10157 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10158 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
10159 xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
10160 xstormy16_preferred_reload_class): Likewise.
10161 * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
10162 xtensa_expand_atomic, override_options,
10163 xtensa_preferred_reload_class, xtensa_secondary_reload_class):
10165 * reorg.c (try_merge_delay_insns): Likewise.
10166 * tree.c (merge_dllimport_decl_attributes): Likewise.
10168 * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
10170 2008-08-06 Michael Matz <matz@suse.de>
10172 * Makefile.in (write_entries_to_file): Quote words.
10173 * gengtype.c: (read_input_line): Skip over leading white-space.
10175 2008-08-06 Marc Gauthier <marc@tensilica.com>
10177 * config.gcc: Match more processor names for Xtensa.
10178 * configure.ac: Likewise.
10179 * doc/install.texi (Specific): Likewise.
10180 * configure: Regenerate.
10182 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10184 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
10185 * calls.c (avoid_likely_spilled_reg): Likewise.
10186 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
10187 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
10188 * config/i386/i386.c (ix86_expand_special_args_builtin,
10189 ix86_secondary_reload): Likewise.
10190 * except.c (struct eh_region, gen_eh_region_catch,
10191 remove_unreachable_regions, duplicate_eh_regions,
10192 assign_filter_values, build_post_landing_pads,
10193 sjlj_find_directly_reachable_regions, remove_eh_handler,
10194 reachable_next_level, foreach_reachable_handler,
10195 can_throw_internal_1, can_throw_external_1,
10196 collect_one_action_chain): Likewise.
10197 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
10198 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
10199 * function.c (update_temp_slot_address, instantiate_new_reg,
10200 instantiate_virtual_regs_in_rtx,
10201 instantiate_virtual_regs_in_insn): Likewise.
10202 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
10203 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
10204 gimplify_cleanup_point_expr): Likewise.
10205 * ipa-cp.c (ipcp_lattice_changed): Likewise.
10206 * passes.c (next_pass_1): Likewise.
10207 * print-tree.c (print_node_brief, print_node): Likewise.
10208 * profile.c (branch_prob): Likewise.
10209 * tree-dump.c (dump_register): Likewise.
10210 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
10212 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
10213 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
10214 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
10215 copy_arguments_for_versioning, copy_static_chain): Likewise.
10216 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
10217 add_new_name_mapping, register_new_name_mapping): Likewise.
10218 * tree-mudflap.c (mf_xform_derefs): Likewise.
10219 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
10220 get_init_expr, combine_chains): Likewise.
10221 * tree-pretty-print.c (dump_generic_node): Likewise.
10222 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
10223 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
10224 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
10225 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
10227 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
10229 PR middle-end/37010
10230 * calls.c (expand_call): Use the biggest preferred stack
10233 2008-08-06 Michael Matz <matz@suse.de>
10236 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
10237 for reused reload, instead of overwriting them.
10239 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
10241 PR middle-end/37009
10242 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
10243 for incoming stack boundary.
10245 * function.c (assign_parm_find_entry_rtl): Update
10246 parm_stack_boundary.
10248 * function.h (rtl_data): Add parm_stack_boundary.
10250 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
10251 parm_stack_boundary for incoming stack boundary.
10253 2008-08-06 Joseph Myers <joseph@codesourcery.com>
10255 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
10256 for unrepresentable subregs or treat them as equal to other regs
10257 or subregs with the same register number.
10259 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
10261 PR middle-end/35432
10262 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
10265 2008-08-06 Jan Hubicka <jh@suse.cz>
10267 * predict.c (maybe_hot_frequency_p): When profile is absent, all
10268 frequencies might be hot.
10270 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
10272 * reload.c (find_reloads): Force constants into literal pool
10273 also if they are wrapped in a SUBREG.
10275 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10278 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
10279 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
10280 Don't allow predicated instructions for data speculation.
10281 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
10284 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10286 * haifa-sched.c (extend_global): Split to extend_global_data and
10287 extend_region_data. Update all uses.
10288 (extend_all): Rename to extend_block_data.
10290 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10292 * sched-rgn.c (new_ready): Check if instruction can be
10293 speculatively scheduled before attempting speculation.
10294 (debug_rgn_dependencies): Remove wrongful assert.
10296 2008-08-05 Bob Wilson <bob.wilson@acm.org>
10298 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
10300 2008-08-05 Bob Wilson <bob.wilson@acm.org>
10302 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
10303 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
10304 va_size, and type_size.
10306 2008-08-04 Jason Merrill <jason@redhat.com>
10309 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
10310 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
10312 2008-08-05 Richard Henderson <rth@redhat.com>
10314 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
10315 * configure: Rebuild.
10317 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
10320 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
10321 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
10324 2008-08-05 Richard Henderson <rth@redhat.com>
10326 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
10327 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
10328 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
10329 * common.opt (fdwarf2-cfi-asm): New.
10330 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
10331 * config.in, configure: Rebuild.
10332 * dwarf2asm.c (dw2_asm_output_data_raw): New.
10333 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw):
10335 (dw2_force_const_mem): Externalize.
10336 * dwarf2asm.h: Update.
10337 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
10338 generate a real label.
10339 (output_cfi_directive): New.
10340 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
10341 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
10342 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
10344 (dwarf2out_end_epilogue): Emit .cfi_endproc.
10345 (output_loc_operands_raw, output_loc_sequence_raw): New.
10346 (output_cfa_loc_raw): New.
10348 2008-08-05 Paul Brook <paul@codesourcery.com>
10350 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
10351 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
10352 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
10353 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
10354 * config/arm/arm.h (TARGET_VFPD32): Define.
10355 (TARGET_VFP3): Use TARGET_VFPD32.
10356 (fputype): Add FPUTYPE_VFP3D16.
10357 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
10358 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
10359 * config/arm/arm-cores.def: Add cortex-r4f.
10360 * config/arm/arm-tune.md: Regenerate.
10362 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10364 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
10365 Reword some comments throughout the file.
10367 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
10368 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
10369 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of
10370 MFC_MIN_DMA_LIST_ELEMENTS.
10371 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of
10372 MFC_MAX_DMA_LIST_ELEMENTS.
10374 (MFC_START_ENABLE): Remove PPU-only define.
10375 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
10376 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
10378 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
10379 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
10380 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
10381 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
10382 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
10383 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
10384 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
10386 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
10387 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
10388 (mfc_sdcrt, mfc_sdcrtst): Likewise.
10389 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
10391 (spu_read_machine_status): Fix typo.
10393 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10395 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
10396 SUBREG of multi-word hard register.
10397 * config/spu/spu.c (valid_subreg): Likewise.
10398 (adjust_operand): Handle SUBREGs of multi-word hard registers.
10400 2008-08-04 Richard Guenther <rguenther@suse.de>
10402 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
10403 the candidate with the stripped base if that base is different
10404 from the original base even for offset zero.
10406 2008-08-04 Richard Guenther <rguenther@suse.de>
10408 PR middle-end/36691
10409 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
10410 check for no_overflow.
10412 2008-08-04 Richard Guenther <rguenther@suse.de>
10414 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
10416 2008-08-04 Paul Brook <paul@codesourcery.com>
10418 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
10419 (arm_order_regs_for_local_alloc): New function.
10420 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
10422 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
10424 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
10427 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
10428 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
10429 (ix86_expand_epilogue): Likewise.
10431 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
10433 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
10436 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
10438 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
10439 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
10440 (*movv2sf_internal_rex64): Ditto.
10442 2008-08-03 Jan Hubicka <jh@suse.cz>
10444 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
10445 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
10446 * expmed.c (expand_smod_pow2): Likewise.
10448 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
10451 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
10452 alternative 0 of operand 1.
10453 (*vec_concatv2di_rex64_sse): Ditto.
10454 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
10456 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
10457 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
10458 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
10459 (*movv2sf_internal_rex64): Ditto.
10461 2008-08-02 Richard Guenther <rguenther@suse.de>
10464 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
10465 (ssedoublesizemode): New mode attribute.
10466 (sse_shufps): Call gen_sse_shufps_v4sf.
10467 (sse_shufps_1): Macroize.
10468 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
10469 (sse2_shufpd_1): Macroize.
10470 (vec_extract_odd, vec_extract_even): New expanders.
10471 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
10472 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
10473 * i386.c (ix86_expand_vector_init_one_nonzero): Call
10474 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
10475 (ix86_expand_vector_set): Likewise.
10476 (ix86_expand_reduc_v4sf): Likewise.
10478 2008-08-01 Doug Kwan <dougkwan@google.com>
10480 * matrix-reorg.c: Re-enable all code.
10481 (struct malloc_call_data): Change CALL_STMT to gimple type.
10482 (collect_data_for_malloc_call): Tuplify.
10483 (struct access_site_info): Change STMT to gimple type.
10484 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
10485 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
10486 (struct free_info): Change STMT to gimple type.
10487 (struct matrix_access_phi_node): Change PHI to gimple type.
10488 (get_inner_of_cast_expr): Remove.
10489 (may_flatten_matrices_1): Tuplify.
10490 (may_flatten_matrices): Ditto.
10491 (mark_min_matrix_escape_level): Ditto.
10492 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
10493 (ssa_accessed_in_call_rhs): New
10494 (ssa_accessed_in_assign_rhs): New
10495 (record_access_alloc_site_info): Tuplify.
10496 (add_allocation_site): Ditto.
10497 (analyze_matrix_allocation_site): Ditto.
10498 (analyze_transpose): Ditto.
10499 (get_index_from_offset): Ditto.
10500 (update_type_size): Ditto.
10501 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
10502 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
10503 (analyze_accesses_for_phi_node): Tuplify.
10504 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
10505 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
10506 (analyze_matrix_accesses): Tuplify.
10507 (check_var_data): New call-back type for check_var_notmodified_p.
10508 (check_var_notmodified_p): Tuplify and use call-back struct to
10509 return statement found.
10510 (can_calculate_expr_before_stmt): Factor out statement related code
10512 (can_calculate_stmt_before_stmt): New.
10513 (check_allocation_function): Tuplify.
10514 (find_sites_in_func): Ditto.
10515 (record_all_accesses_in_func): Ditto.
10516 (transform_access_sites): Ditto.
10517 (transform_allocation_sites): Ditto.
10518 (matrix_reorg): Re-enable.
10519 (gate_matrix_reorg): Re-enable.
10521 2008-08-01 Jakub Jelinek <jakub@redhat.com>
10523 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
10524 for labels for which it hasn't been set yet. If it has been set,
10525 stop walking insns and continue with next worklist item.
10526 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
10527 if the only BARRIER is at the very end of a function.
10529 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
10531 * cfgexpand.c (expand_stack_alignment): Assert that
10532 stack_realign_drap and drap_rtx must match.
10534 * function.c (instantiate_new_reg): If DRAP is used to realign
10535 stack, replace virtual_incoming_args_rtx with internal arg
10538 2008-08-01 Richard Guenther <rguenther@suse.de>
10540 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
10541 loop information only if we initialized it.
10542 (execute_pre): Call fini_pre with in_fre.
10543 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
10544 if we do not unroll because we hit max-completely-peeled-insns.
10545 Use our estimation for consistency, do allow shrinking.
10547 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
10549 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
10550 with MIN_STACK_BOUNDARY.
10551 (ix86_update_stack_boundary): Likewise.
10552 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
10555 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
10556 (MIN_STACK_BOUNDARY): This.
10558 2008-08-01 Richard Guenther <rguenther@suse.de>
10560 PR middle-end/36997
10561 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
10563 2008-08-01 Richard Guenther <rguenther@suse.de>
10565 PR tree-optimization/36988
10566 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
10567 do not matter if that doesn't change volatile qualification.
10569 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
10571 * configure.ac: Do not generate libada-mk. Do not subst
10572 host_cc_for_libada.
10573 * libada-mk.in: Remove.
10574 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
10575 * configure: Regenerate.
10577 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
10579 * tree-pass.h: Added comment about not dumping passes with name
10580 starting with star in struct opt_pass.
10581 * passes.c (register_dump_files_1): Don't do dump for a pass with
10582 name starting with star.
10583 * doc/passes.texi (Pass manager): Mention pass names and special
10584 meaning of star prefix to avoid dump.
10586 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
10588 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
10590 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
10591 (ISA_MIPS64R2): New macro.
10592 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
10593 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
10594 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
10595 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
10596 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
10597 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
10598 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
10599 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
10600 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
10601 Move up to keep list alphabetically sorted.
10602 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
10603 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
10605 * doc/invoke.texi (MIPS Options): Add -mips64r2.
10606 (-march=@var{arch}): Add mips64r2.
10608 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
10610 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
10612 2008-07-31 Steve Ellcey <sje@cup.hp.com>
10614 * expr.c (expand_assignment): Check for complete type.
10616 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
10619 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
10621 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
10622 for stack alignment.
10624 * function.h (rtl_data): Add stack_realign_tried. Update comments.
10626 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
10628 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
10629 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
10631 2008-07-31 Jakub Jelinek <jakub@redhat.com>
10633 PR rtl-optimization/36419
10634 * dwarf2out.c (barrier_args_size): New variable.
10635 (compute_barrier_args_size, compute_barrier_args_size_1): New
10637 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
10638 if not called yet in the current function, use barrier_args_size
10639 array to find the new args_size value.
10640 (dwarf2out_frame_debug): Free and clear barrier_args_size.
10642 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
10645 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
10648 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
10651 * dwarf2out.c (dwarf2out_args_size_adjust): New.
10652 (dwarf2out_stack_adjust): Use it.
10653 (dwarf2out_frame_debug_expr): Likewise.
10655 2008-07-31 Richard Guenther <rguenther@suse.de>
10657 PR tree-optimization/36978
10658 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
10659 the generated condition.
10661 2008-07-31 Richard Guenther <rguenther@suse.de>
10663 * passes.c (init_optimization_passes): Always call
10664 pass_early_warn_uninitialized.
10665 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
10666 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
10667 * doc/passes.texi (Warn for uninitialized variables): Adjust.
10669 2008-07-31 Jakub Jelinek <jakub@redhat.com>
10672 * builtins.c (maybe_emit_free_warning): New function.
10673 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
10674 maybe_emit_free_warning for BUILT_IN_FREE.
10677 * dwarf2out.c (get_context_die): New function.
10678 (force_decl_die, force_type_die): Use it.
10679 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
10680 returns NULL, force generation of DW_TAG_typedef and put that into
10683 PR preprocessor/36649
10684 * c-pch.c (c_common_read_pch): Save and restore
10685 line_table->trace_includes across PCH restore.
10687 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
10690 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
10692 2008-07-30 Rafael Ávila de Espíndola <espindola@google.com>
10695 * final.c (call_from_call_insn): Handle COND_EXEC.
10697 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
10699 * builtins.c (std_gimplify_va_arg_expr): Replace
10700 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
10701 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
10703 2008-07-30 Joey Ye <joey.ye@intel.com>
10704 H.J. Lu <hongjiu.lu@intel.com>
10706 * builtins.c (expand_builtin_setjmp_receiver): Replace
10707 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
10708 (expand_builtin_apply_args_1): Likewise.
10709 (expand_builtin_longjmp): Need DRAP for stack alignment.
10710 (expand_builtin_apply): Likewise.
10712 * caller-save.c (setup_save_areas): Call assign_stack_local_1
10713 instead of assign_stack_local to allow alignment reduction.
10715 * calls.c (emit_call_1): Need DRAP for stack alignment if
10717 (expand_call): Replace virtual_incoming_args_rtx with
10718 crtl->args.internal_arg_pointer.
10719 * stmt.c (expand_nl_goto_receiver): Likewise.
10721 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
10722 alignment and store to stack_alignment_estimated and
10723 max_used_stack_slot_alignment.
10724 (expand_one_var): Likewise.
10725 (expand_stack_alignment): New function.
10726 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
10727 and stack_alignment_estimated fields in rtl_data. Call
10728 expand_stack_alignment at end.
10730 * defaults.h (INCOMING_STACK_BOUNDARY): New.
10731 (MAX_STACK_ALIGNMENT): Likewise.
10732 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
10733 (SUPPORTS_STACK_ALIGNMENT): Likewise.
10735 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
10736 stack alignment when generating virtual registers.
10738 * function.c (assign_stack_local): Renamed to ...
10739 (assign_stack_local_1): This. Add a parameter to indicate
10740 if it is OK to reduce alignment.
10741 (assign_stack_local): Use it.
10742 (instantiate_new_reg): Instantiate virtual incoming args rtx
10743 to vDRAP if stack realignment and DRAP is needed.
10744 (assign_parms): Collect parameter/return type alignment and
10745 contribute to stack_alignment_estimated.
10746 (locate_and_pad_parm): Likewise.
10747 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
10748 with crtl->args.internal_arg_pointer.
10750 * function.h (rtl_data): Add new field drap_reg,
10751 max_used_stack_slot_alignment, stack_alignment_estimated,
10752 stack_realign_needed, need_drap, stack_realign_processed and
10753 stack_realign_finalized.
10754 (stack_realign_fp): New macro.
10755 (stack_realign_drap): Likewise.
10757 * global.c (compute_regsets): Frame pointer is needed when
10758 stack is realigned. Can eliminate frame pointer when stack is
10759 realigned and dynamic realigned argument pointer isn't used.
10761 * reload1.c (update_eliminables): Frame pointer is needed
10762 when stack is realigned.
10763 (init_elim_table): Can eliminate frame pointer when stack is
10764 realigned and dynamic realigned argument pointer isn't used.
10766 * rtl.h (assign_stack_local_1): Declare new funtion.
10768 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
10769 (TARGET_GET_DRAP_RTX): Likewise.
10770 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
10771 TARGET_GET_DRAP_RTX.
10773 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
10775 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
10776 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
10778 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
10779 H.J. Lu <hongjiu.lu@intel.com>
10781 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
10782 vdrap_reg, stack_realign and drap_reg_saved.
10783 (add_cfi): Don't allow redefining CFA when DRAP is used.
10784 (reg_save): Handle stack alignment.
10785 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
10786 alignment. Don't generate DWARF information for (set fp sp)
10788 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
10790 (int_loc_descriptor): Move prototype forward. Also define if
10791 DWARF2_UNWIND_INFO is true.
10792 (output_cfa_loc): Handle DW_CFA_expression.
10793 (build_cfa_aligned_loc): New.
10794 (based_loc_descr): Update assert for stack realign. For local
10795 variables, use sp+offset when stack is aligned without drap and
10796 fp+offset when stack is aligned with drap. For arguments, use
10797 cfa+offset when drap is used to align stack.
10799 2008-07-30 Joey Ye <joey.ye@intel.com>
10800 H.J. Lu <hongjiu.lu@intel.com>
10802 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
10804 (ix86_gen_andsp): New.
10805 (ix86_user_incoming_stack_boundary): Likewise.
10806 (ix86_default_incoming_stack_boundary): Likewise.
10807 (ix86_incoming_stack_boundary): Likewise.
10808 (ix86_can_eliminate): Likewise.
10809 (find_drap_reg): Likewise.
10810 (ix86_update_stack_boundary): Likewise.
10811 (ix86_get_drap_rtx): Likewise.
10812 (ix86_finalize_stack_realign_flags): Likewise.
10813 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
10814 (TARGET_GET_DRAP_RTX): Likewise.
10815 (override_options): Overide option value for new options.
10816 (ix86_function_ok_for_sibcall): Remove check for
10817 force_align_arg_pointer.
10818 (ix86_handle_cconv_attribute): Likewise.
10819 (ix86_function_regparm): Likewise.
10820 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
10821 (ix86_va_start): Replace virtual_incoming_args_rtx with
10822 crtl->args.internal_arg_pointer.
10823 (ix86_select_alt_pic_regnum): Check DRAP register.
10824 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
10825 (ix86_compute_frame_layout): Compute frame layout wrt stack
10827 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
10828 (ix86_expand_prologue): Decide if stack realignment is needed
10829 and generate prologue code accordingly.
10830 (ix86_expand_epilogue): Generate epilogue code wrt stack
10831 realignment is really needed or not.
10833 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
10834 (ABI_STACK_BOUNDARY): Likewise.
10835 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
10836 (STACK_REALIGN_DEFAULT): Likewise.
10837 (INCOMING_STACK_BOUNDARY): Likewise.
10838 (MAX_STACK_ALIGNMENT): Likewise.
10839 (ix86_incoming_stack_boundary): Likewise.
10840 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
10841 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
10842 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
10843 (machine_function): Remove force_align_arg_pointer.
10845 * config/i386/i386.md (BX_REG): New.
10846 (R13_REG): Likewise.
10848 * config/i386/i386.opt (mforce_drap): New.
10849 (mincoming-stack-boundary): Likewise.
10850 (mstackrealign): Add Init(-1).
10852 * config/i386/i386-protos.h (ix86_can_eliminate): New
10854 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
10856 * doc/extend.texi: Update force_align_arg_pointer.
10858 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
10861 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
10862 (INCOMING_STACK_BOUNDARY): Likewise.
10863 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
10864 (TARGET_GET_DRAP_RTX): Likewise.
10866 2008-07-30 Andreas Schwab <schwab@suse.de>
10868 PR rtl-optimization/36929
10869 * dse.c (replace_inc_dec): Use emit_insn_before instead of
10870 add_insn_before and fix argument order.
10871 (replace_inc_dec_mem): Handle NULL rtx.
10873 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
10875 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
10877 (arm_compute_initial_elimination_offset): Use it.
10878 (arm_compute_save_reg_mask): Include static chain save slot when
10879 calculating alignment.
10880 (arm_get_frame_offsets): Ditto.
10881 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
10882 that we can use to decrement the stack when the stack decrement
10883 could be too big for an immediate value in a single insn.
10884 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
10886 2008-07-30 Richard Guenther <rguenther@suse.de>
10888 PR tree-optimization/36967
10889 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
10890 Release defs of statements we remove.
10892 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
10894 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
10895 instead of NULL_RTVEC.
10897 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
10901 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
10904 2008-07-30 Rafael Ávila de Espíndola <espindola@google.com>
10906 * final.c (call_from_call_insn): New.
10907 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
10909 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
10911 * configure.ac: Substitute ADA_CFLAGS.
10912 * configure: Regenerate.
10913 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
10914 * Makefile.in: Remove mention of X_* variables.
10915 * config/pa/x-ada-hpux10: Remove.
10916 * config/pa/x-ada: Remove.
10918 * doc/fragments.texi: Update.
10920 2008-07-30 Olivier Hainque <hainque@adacore.com>
10922 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
10923 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
10924 __dso_handle explicitly here.
10926 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10929 * c-typeck.c (build_binary_op): Encapsulate code into...
10930 * c-common.c (shorten_binary_op): ...this new function.
10931 (conversion_warning): Use the new function. Handle non-negative
10932 constant in bitwise-and.
10933 * c-common.h (shorten_binary_op): Declare.
10935 2008-07-30 Olivier Hainque <hainque@adacore.com>
10937 * scan.c (make_sstring_space): Add explicit conversions of
10938 allocator's return value.
10939 * fix-header.c (recognized_function): Likewise.
10941 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10943 * doc/cpp.texi: Update to GFDL 1.2.
10944 * doc/gcc.texi: Do not list GPL as Invariant Section.
10945 * doc/gccint.texi: Likewise. Update copyright years.
10946 * doc/install.texi: Update copyright years.
10948 2008-07-30 Alan Modra <amodra@bigpond.net.au>
10951 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
10952 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
10954 2008-07-29 Jan Hubicka <jh@suse.cz>
10956 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
10957 (grokdeclarator): Likewise.
10958 * langhooks.c (lhd_warn_unused_global_decl): Use
10959 DECL_DECLARED_INLINE_P.
10960 * print-tree.c (print_node): Remove DECL_INLINE check.
10962 2008-07-29 Richard Guenther <rguenther@suse.de>
10964 PR tree-optimization/36945
10965 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
10966 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
10967 Record invariant addresses un-decomposed.
10968 (copy_reference_ops_from_call): Record reference call
10969 arguments properly. Simplify.
10970 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
10971 helper split out from ...
10972 (create_component_ref_by_pieces): ... here. Simplify.
10973 Prepare for recursive invocation for call arguments.
10974 (create_expression_by_pieces): Adjust call to
10975 create_component_ref_by_pieces.
10976 (compute_avail): Process operand 2 of reference ops.
10978 2008-07-29 Richard Guenther <rguenther@suse.de>
10980 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
10982 2008-07-29 Jakub Jelinek <jakub@redhat.com>
10984 * c-format.c (check_format_types): Revert unwanted checkin.
10986 2008-07-29 Jan Hubicka <jh@suse.cz>
10988 * flags.h (flag_really_no_inline): Remove.
10989 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
10990 * toplev.c (flag_really_no_inline): Remove.
10991 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
10992 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
10993 (cgraph_decide_inlining_incrementally): Likewise.
10994 (compute_inline_parameters): Likewise.
10995 * opts.c (decode_options): Simplify.
10996 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
10997 * common.opt (finline): Initialize to 1.
10998 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
11000 2008-07-29 Jan Hubicka <jh@suse.cz>
11002 * predict.c (always_optimize_for_size_p): New function.
11003 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
11004 optimize_edge_for_size_p, optimize_edge_for_speed_p,
11005 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
11007 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
11008 * function.c (prepare_function_start): Set default profile.
11009 * function.h (rtl_data): Add maybe_hot_insn_p.
11010 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
11011 (construct_exit_block): Likewise.
11012 (tree_expand_cfg): Likewise.
11014 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
11015 optimize_edge_for_size_p, optimize_edge_for_speed_p,
11016 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
11017 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
11020 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11023 * c-decl.c (merge_decls): Merge USED flags.
11025 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
11027 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
11028 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
11029 next_stack, lab_false and lab_over trees.
11031 2008-07-28 Richard Guenther <rguenther@suse.de>
11033 PR tree-optimization/36957
11034 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
11035 (useless_type_conversion_p): Remove.
11036 (types_compatible_p): Remove.
11037 * gimple.h (tree_ssa_useless_type_conversion): Declare.
11038 (useless_type_conversion_p): Declare.
11039 (types_compatible_p): Declare.
11040 (gimple_expr_type): Return the base type only if it is
11041 trivially convertible to the subtype.
11043 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
11045 * configure.ac: Use the m4_do macro to concatenate the warnings into
11046 one string in ACX_PROG_CC_WARNING_OPTS,
11047 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
11048 ACX_PROG_CC_WARNINGS_ARE_ERRORS.
11049 * configure: Regenerate.
11051 2008-07-28 Richard Guenther <rguenther@suse.de>
11053 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
11054 (insert_fake_stores): Remove.
11055 (realify_fake_stores): Likewise.
11056 (execute_pre): Remove dead code.
11057 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
11058 (find_func_aliases): Deal with it here instead.
11059 Re-enable gcc_unreachable call.
11061 2008-07-28 Richard Guenther <rguenther@suse.de>
11063 Merge from gimple-tuples-branch.
11065 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
11066 * gimple.def: New file.
11067 * gsstruct.def: Likewise.
11068 * gimple-iterator.c: Likewise.
11069 * gimple-pretty-print.c: Likewise.
11070 * tree-gimple.c: Removed. Merged into ...
11071 * gimple.c: ... here. New file.
11072 * tree-gimple.h: Removed. Merged into ...
11073 * gimple.h: ... here. New file.
11075 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
11076 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
11077 --enable-checking=gimple flag.
11078 * config.in: Likewise.
11079 * configure: Regenerated.
11081 * tree-ssa-operands.h: Tuplified.
11082 * tree-vrp.c: Likewise.
11083 * tree-loop-linear.c: Likewise.
11084 * tree-into-ssa.c: Likewise.
11085 * tree-ssa-loop-im.c: Likewise.
11086 * tree-dump.c: Likewise.
11087 * tree-complex.c: Likewise.
11088 * cgraphbuild.c: Likewise.
11089 * tree-ssa-threadupdate.c: Likewise.
11090 * tree-ssa-loop-niter.c: Likewise.
11091 * tree-pretty-print.c: Likewise.
11092 * tracer.c: Likewise.
11093 * gengtype.c: Likewise.
11094 * tree-loop-distribution.c: Likewise.
11095 * tree-ssa-loop-unswitch.c: Likewise.
11096 * cgraph.c: Likewise.
11097 * cgraph.h: Likewise.
11098 * tree-ssa-loop-manip.c: Likewise.
11099 * value-prof.c: Likewise.
11100 * tree-ssa-loop-ch.c: Likewise.
11101 * tree-tailcall.c: Likewise.
11102 * value-prof.h: Likewise.
11103 * tree.c: Likewise.
11104 * tree.h: Likewise.
11105 * tree-pass.h: Likewise.
11106 * ipa-cp.c: Likewise.
11107 * tree-scalar-evolution.c: Likewise.
11108 * tree-scalar-evolution.h: Likewise.
11109 * target.h: Likewise.
11110 * lambda-mat.c: Likewise.
11111 * tree-phinodes.c: Likewise.
11112 * diagnostic.h: Likewise.
11113 * builtins.c: Likewise.
11114 * tree-ssa-alias-warnings.c: Likewise.
11115 * cfghooks.c: Likewise.
11116 * fold-const.c: Likewise.
11117 * cfghooks.h: Likewise.
11118 * omp-low.c: Likewise.
11119 * tree-ssa-dse.c: Likewise.
11120 * ipa-reference.c: Likewise.
11121 * tree-ssa-uncprop.c: Likewise.
11122 * toplev.c: Likewise.
11123 * tree-gimple.c: Likewise.
11124 * tree-gimple.h: Likewise.
11125 * tree-chrec.c: Likewise.
11126 * tree-chrec.h: Likewise.
11127 * tree-ssa-sccvn.c: Likewise.
11128 * tree-ssa-sccvn.h: Likewise.
11129 * cgraphunit.c: Likewise.
11130 * tree-ssa-copyrename.c: Likewise.
11131 * tree-ssa-ccp.c: Likewise.
11132 * tree-ssa-loop-ivopts.c: Likewise.
11133 * tree-nomudflap.c: Likewise.
11134 * tree-call-cdce.c: Likewise.
11135 * ipa-pure-const.c: Likewise.
11136 * c-format.c: Likewise.
11137 * tree-stdarg.c: Likewise.
11138 * tree-ssa-math-opts.c: Likewise.
11139 * tree-ssa-dom.c: Likewise.
11140 * tree-nrv.c: Likewise.
11141 * tree-ssa-propagate.c: Likewise.
11142 * ipa-utils.c: Likewise.
11143 * tree-ssa-propagate.h: Likewise.
11144 * tree-ssa-alias.c: Likewise.
11145 * gimple-low.c: Likewise.
11146 * tree-ssa-sink.c: Likewise.
11147 * ipa-inline.c: Likewise.
11148 * c-semantics.c: Likewise.
11149 * dwarf2out.c: Likewise.
11150 * expr.c: Likewise.
11151 * tree-ssa-loop-ivcanon.c: Likewise.
11152 * predict.c: Likewise.
11153 * tree-ssa-loop.c: Likewise.
11154 * tree-parloops.c: Likewise.
11155 * tree-ssa-address.c: Likewise.
11156 * tree-ssa-ifcombine.c: Likewise.
11157 * matrix-reorg.c: Likewise.
11158 * c-decl.c: Likewise.
11159 * tree-eh.c: Likewise.
11160 * c-pretty-print.c: Likewise.
11161 * lambda-trans.c: Likewise.
11162 * function.c: Likewise.
11163 * langhooks.c: Likewise.
11164 * ebitmap.h: Likewise.
11165 * tree-vectorizer.c: Likewise.
11166 * function.h: Likewise.
11167 * langhooks.h: Likewise.
11168 * tree-vectorizer.h: Likewise.
11169 * ipa-type-escape.c: Likewise.
11170 * ipa-type-escape.h: Likewise.
11171 * domwalk.c: Likewise.
11172 * tree-if-conv.c: Likewise.
11173 * profile.c: Likewise.
11174 * domwalk.h: Likewise.
11175 * tree-data-ref.c: Likewise.
11176 * tree-data-ref.h: Likewise.
11177 * tree-flow-inline.h: Likewise.
11178 * tree-affine.c: Likewise.
11179 * tree-vect-analyze.c: Likewise.
11180 * c-typeck.c: Likewise.
11181 * gimplify.c: Likewise.
11182 * coretypes.h: Likewise.
11183 * tree-ssa-phiopt.c: Likewise.
11184 * calls.c: Likewise.
11185 * tree-ssa-coalesce.c: Likewise.
11186 * tree.def: Likewise.
11187 * tree-dfa.c: Likewise.
11188 * except.c: Likewise.
11189 * except.h: Likewise.
11190 * cfgexpand.c: Likewise.
11191 * tree-cfgcleanup.c: Likewise.
11192 * tree-ssa-pre.c: Likewise.
11193 * tree-ssa-live.c: Likewise.
11194 * tree-sra.c: Likewise.
11195 * tree-ssa-live.h: Likewise.
11196 * tree-predcom.c: Likewise.
11197 * lambda.h: Likewise.
11198 * tree-mudflap.c: Likewise.
11199 * ipa-prop.c: Likewise.
11200 * print-tree.c: Likewise.
11201 * tree-ssa-copy.c: Likewise.
11202 * ipa-prop.h: Likewise.
11203 * tree-ssa-forwprop.c: Likewise.
11204 * ggc-page.c: Likewise.
11205 * c-omp.c: Likewise.
11206 * tree-ssa-dce.c: Likewise.
11207 * tree-vect-patterns.c: Likewise.
11208 * tree-ssa-ter.c: Likewise.
11209 * tree-nested.c: Likewise.
11210 * tree-ssa.c: Likewise.
11211 * lambda-code.c: Likewise.
11212 * tree-ssa-loop-prefetch.c: Likewise.
11213 * tree-inline.c: Likewise.
11214 * tree-inline.h: Likewise.
11215 * tree-iterator.c: Likewise.
11216 * tree-optimize.c: Likewise.
11217 * tree-ssa-phiprop.c: Likewise.
11218 * tree-vect-transform.c: Likewise.
11219 * tree-object-size.c: Likewise.
11220 * tree-outof-ssa.c: Likewise.
11221 * cfgloop.c: Likewise.
11222 * system.h: Likewise.
11223 * tree-profile.c: Likewise.
11224 * cfgloop.h: Likewise.
11225 * c-gimplify.c: Likewise.
11226 * c-common.c: Likewise.
11227 * tree-vect-generic.c: Likewise.
11228 * tree-flow.h: Likewise.
11229 * c-common.h: Likewise.
11230 * basic-block.h: Likewise.
11231 * tree-ssa-structalias.c: Likewise.
11232 * tree-switch-conversion.c: Likewise.
11233 * tree-ssa-structalias.h: Likewise.
11234 * tree-cfg.c: Likewise.
11235 * passes.c: Likewise.
11236 * ipa-struct-reorg.c: Likewise.
11237 * ipa-struct-reorg.h: Likewise.
11238 * tree-ssa-reassoc.c: Likewise.
11239 * cfgrtl.c: Likewise.
11240 * varpool.c: Likewise.
11241 * stmt.c: Likewise.
11242 * tree-ssanames.c: Likewise.
11243 * tree-ssa-threadedge.c: Likewise.
11244 * langhooks-def.h: Likewise.
11245 * tree-ssa-operands.c: Likewise.
11246 * config/alpha/alpha.c: Likewise.
11247 * config/frv/frv.c: Likewise.
11248 * config/s390/s390.c: Likewise.
11249 * config/m32c/m32c.c: Likewise.
11250 * config/m32c/m32c-protos.h: Likewise.
11251 * config/spu/spu.c: Likewise.
11252 * config/sparc/sparc.c: Likewise.
11253 * config/i386/i386.c: Likewise.
11254 * config/sh/sh.c: Likewise.
11255 * config/xtensa/xtensa.c: Likewise.
11256 * config/stormy16/stormy16.c: Likewise.
11257 * config/ia64/ia64.c: Likewise.
11258 * config/rs6000/rs6000.c: Likewise.
11259 * config/pa/pa.c: Likewise.
11260 * config/mips/mips.c: Likewise.
11262 2008-07-28 Simon Baldwin <simonb@google.com>
11264 * c-pragma.c (handle_pragma_message): New function.
11265 (init_pragma): Register handle_pragma_message.
11266 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
11269 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
11271 PR tree-optimization/35252
11272 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
11273 REALPART_EXPR to be considered as same load operation.
11275 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
11277 PR tree-optimization/36830
11278 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
11279 (expressions_equal_p): Return false if only one operand is null.
11281 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
11283 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
11284 version requirements.
11286 2008-07-26 Olivier Hainque <hainque@adacore.com>
11288 * collect2.c (symkind): New enum. Symbol kinds we care about.
11289 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
11290 code and head comment accordingly.
11291 (scan_prog_file): Use symkind names instead of bare integers.
11293 2008-07-25 Jan Hubicka <jh@suse.cz>
11295 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
11297 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
11298 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
11299 * dojump.c (clear_pending_stack_adjust): Likewise.
11300 * print-tree.c (print_node): Ignore DECL_INLINE.
11301 * tree-inline.c (inlinable_function_p): Likewise.
11303 2008-07-25 Michael Meissner <gnu@the-meissners.org>
11305 * doc/extend.texi (hot attribute): Document that the hot attribute
11306 turns on -O3 for some ports.
11307 (cold attribute): Document that the cold attribute turns on -Os
11310 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
11311 reflect function specific option support.
11313 * target.h (struct target_option_hooks): Add fields to say whether
11314 the cold attribute implies -Os and the hot attribute implies -O3.
11316 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
11317 By default, do not turn on -Os for cold functions.
11318 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
11319 not turn on -O3 for hot functions.
11321 * c-common.c (handle_hot_attribute): Use target hook to determine
11322 if hot functions should enable -O3.
11323 (handle_cold_attribute): Use target hook to determine if cold
11324 functions should enable -Os.
11326 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
11327 (override_options): Move disable scheduling to
11328 optimization_options.
11329 (optimization_options): Disable scheduling here, not
11331 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
11332 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
11334 * config/ia64/ia64.c (ia64_override_options): Move setting
11335 scheduling flags to ia64_optimization_options.
11336 (ia64_optimization_options): Disable scheduling options here, and
11337 not in ia64_override_options.
11338 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
11339 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
11341 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
11344 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
11346 2008-07-25 Martin Jambor <mjambor@suse.cz>
11348 PR tree-optimization/36926
11349 * ipa-prop.c (ipa_analyze_call_uses): Call
11350 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
11352 2008-07-25 Joseph Myers <joseph@codesourcery.com>
11354 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
11355 movv2si_internal): Add mem = reg alternative.
11357 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
11360 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
11361 DEFAULT_PCC_STRUCT_RETURN to 127.
11363 2008-07-24 Jan Hubicka <jh@suse.cz>
11365 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
11366 (build_cgraph_edges): Likewise.
11367 * cgraph.c (cgraph_node): Do not update assembler hash.
11368 (cgraph_remove_node): Drop non-unit-at-a-time code.
11369 * tree-pass.h (pass_O0_always_inline): Remove.
11370 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
11371 * toplev.c (process_options): Flag unit-at-a-time does not imply
11372 no section anchors.
11373 * cgraphunit.c: Update comments.
11374 (decide_is_function_needed): Drop non-unit-at-a-time mode.
11375 (cgraph_assemble_pending_functions): Remove.
11376 (cgraph_reset_node): Drop non-unit-at-a-time code.
11377 (cgraph_finalize_function): Likewise.
11378 (cgraph_analyze_function): Likewise.
11379 (cgraph_finalize_compilation_unit): Likewise.
11380 (cgraph_expand_function): Likewise.
11381 (cgraph_optimize): Likesise.
11382 (save_inline_function_body): Likewise.
11383 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
11384 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
11385 * ipa-inline.c: Update comments.
11386 (enum inlining_mode): remove INLINE_SPEED.
11387 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
11388 (cgraph_mark_inline_edge): Likewise.
11389 (try_inline): Likewise.
11390 (cgraph_decide_inlining_incrementally): Likewise.
11391 (cgraph_gate_inlining): Remove.
11392 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
11393 (cgraph_gate_early_inlining): Likewise.
11394 (gate_inline_passes): Remove.
11395 (pass_inline_parameters, pass_ipa_inline): Remove gates.
11396 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
11397 pass_O0_always_inline): Remove.
11398 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
11399 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
11400 * opts.c (no_unit_at_a_time_default): Remove.
11401 (decode_options): Remove flag_unit_at_a_time reset and warning.
11402 * opts.h (no_unit_at_a_time_default): Remove.
11403 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
11404 early in GNU dialect.
11405 (merge_decls): Update comment; drop unit-at-a-time check.
11406 (finish_decl): Likewise.
11407 (grok_declaration): Remove flag_inline_trees code.
11408 (finish_functions): Return on function returning non-void on all
11410 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
11411 * cfgexpand.c (expand_one_static_var): Remove.
11412 (expand_one_var): Remove expand_one_static_var call.
11413 (expand_used_vars_for_block): Remove flag_unit_a_time check.
11414 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
11415 and flag_unit_at_a-time compatibility checks.
11416 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
11417 * tree-inline.c (flag_inline_trees): Remove.
11418 (inlinable_function_p): Don't check it.
11419 (expand_call_inline): Remove non-unit-at-a-time code.
11420 * tree-inline.h (flag_inline_trees): Remove.
11421 * tree-optimize.c (execute_early_local_optimizations): Remove
11422 unit-at-a-time checks.
11423 (tree_rest_of_compilation): Likewise.
11424 * combine.c (setup_incoming_promotions): Likewise.
11425 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
11426 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
11427 * passes.c (pass_inline_parameters): Update comments; remove
11428 O0_alwaysinline pass.
11429 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
11430 (execute_one_pass): Likewise.
11431 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
11432 (ix86_function_sseregparm): Likewise.
11433 * arm.c (arm_function_in_section_p): Likewise.
11434 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
11435 * varpool.c: Update comments.
11436 (decide_is_variable_needed): Remove unit-at-a-time checks.
11437 (varpool_finalize_decl): Likewise.
11439 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
11441 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
11442 to 2 instead of -1.
11443 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
11445 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
11447 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
11448 imp symbol extension.
11450 2008-07-23 Ian Lance Taylor <iant@google.com>
11452 * tree-vrp.c (infer_value_range): Ignore asm statements when
11453 looking for memory accesses for -fdelete-null-pointer-checks.
11455 2008-07-24 Ben Elliston <bje@au.ibm.com>
11457 * config/spu/spu-c.c (__vector_keyword): New variable.
11458 (vector_keyword): Likewise.
11459 (spu_categorize_keyword): New function.
11460 (spu_macro_to_expand): Likewise.
11461 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
11462 compiling an ISO C dialect.
11464 2008-07-24 Ben Elliston <bje@au.ibm.com>
11466 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
11467 conventional usage.
11469 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
11471 * configure: Regenerate.
11472 * configure.ac: Require texinfo 4.7.
11473 * doc/install.texi: Document texinfo 4.7 requirement.
11475 2008-07-23 Martin Jambor <mjambor@suse.cz>
11477 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
11478 rather than for DECL_SAVED_TREE.
11479 * ipa-prop.c: Include diagnostic.h.
11480 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
11482 (ipa_detect_param_modifications): Function rewritten from scratch.
11483 (ipa_compute_jump_functions): Changed accesses to modification flags.
11484 (ipa_free_node_params_substructures): Update flags destruction.
11485 (ipa_node_duplication_hook): Update flags duplication.
11486 (ipa_print_all_params_modified): Updated flag access.
11487 * ipa-prop.h (struct ipa_param_flags): New structure.
11488 (struct ipa_node_params): New field modification_analysis_done,
11489 modified_flags changed into param_flags.
11490 (ipa_is_ith_param_modified): Changed to use new flags.
11491 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
11493 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
11494 ipa-cp.c and split into two functions.
11495 (ipa_print_node_jump_functions): New function.
11496 (compute_scalar_jump_functions): New function.
11497 (type_like_member_ptr_p): New function.
11498 (compute_pass_through_member_ptrs): New function.
11499 (fill_member_ptr_cst_jump_function): New function.
11500 (determine_cst_member_ptr): New function.
11501 (compute_cst_member_ptr_arguments): New function.
11502 (ipa_compute_jump_functions): Complete rewrite.
11503 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
11504 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
11505 (struct ipa_member_ptr_cst): New structure.
11506 (union jump_func_value): New field member_cst.
11507 * ipa-cp.c (ipcp_lat_is_insertable): New function.
11508 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
11509 jump function types.
11510 (ipcp_print_all_lattices): Slight fprintf rearrangement.
11511 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
11512 instead of ipcp_print_all_jump_functions.
11513 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
11514 only for replacable scalars.
11516 * doc/invoke.texi (Optimize options): Add description of
11517 -findirect-inlining.
11518 * common.opt (flag_indirect_inlining): New flag.
11519 * opts.c (decode_options): Set flag_indirect_inlining when
11522 * ipa-inline.c: Include ipa-prop.h.
11523 (inline_indirect_intraprocedural_analysis): New function.
11524 (inline_generate_summary): Allocate parameter and argument info
11525 structures, call inline_indirect_intraprocedural_analysis on each
11526 node when doing indirect inlining and deallocate indirect inlining
11527 data structures in the end.
11528 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
11529 (free_all_ipa_structures_after_iinln): New function.
11530 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
11532 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
11534 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
11535 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
11536 of computing the frequency separately.
11537 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
11538 of computing the frequency separately.
11539 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
11540 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
11541 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
11542 (ipa_get_stmt_member_ptr_load_param): New function.
11543 (ipa_is_ssa_with_stmt_def): New function.
11544 (ipa_note_param_call): New function.
11545 (ipa_analyze_call_uses): New function.
11546 (ipa_analyze_stmt_uses): New function.
11547 (ipa_analyze_params_uses): New function.
11548 (ipa_free_node_params_substructures): Also free the param_calls linked
11550 (ipa_node_duplication_hook): Also duplicate the param_calls
11552 (ipa_print_node_param_flags): New function.
11553 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
11554 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
11555 * ipa-prop.h (struct ipa_param_flags): New field called.
11556 (struct ipa_param_call_note): New structure.
11557 (struct ipa_node_params): New fields param_calls and
11558 uses_analysis_done.
11559 (ipa_is_ith_param_called): New function.
11560 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11561 ipa_analyze_params_uses and dump parameter flags.
11563 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
11564 ipa_propagate_indirect_call_infos if performing indirect inlining,
11565 pass a new parameter new_edges to it.
11566 (add_new_edges_to_heap): New fucntion.
11567 (cgraph_decide_inlining_of_small_functions): New vector
11568 new_indirect_edges for newly found indirect edges , call
11569 ipa_propagate_indirect_call_infos after inlining.
11570 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
11571 inlining if performing indirect inlining. Call
11572 free_all_ipa_structures_after_iinln when doing so too.
11573 (inline_generate_summary): Do not call
11574 free_all_ipa_structures_after_iinln here.
11575 * ipa-prop.c (update_jump_functions_after_inlining): New function.
11576 (print_edge_addition_message): New function.
11577 (update_call_notes_after_inlining): New function.
11578 (propagate_info_to_inlined_callees): New function.
11579 (ipa_propagate_indirect_call_infos): New function.
11580 * ipa-prop.h: Include cgraph.h
11581 (struct ipa_param_call_note): Fields reordered, new field processed.
11582 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
11583 flag indirect_call.
11584 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
11585 rediscovered call statements.
11586 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
11587 (dump_cgraph_node): Dump also the indirect_call flag.
11588 (cgraph_clone_edge): Copy also the indirect_call flag.
11589 * tree-inline.c (copy_bb): Do not check for fndecls from call
11590 expressions, check for edge availability when moving clones.
11591 (get_indirect_callee_fndecl): New function.
11592 (expand_call_inline): If callee declaration is not apprent from
11593 the statement, try calling get_indirect_callee_fndecl. Do not
11594 issue warnings or call sorry when not inlinings an indirect edge.
11595 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
11597 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
11598 bit more frandly to matching.
11599 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
11600 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
11601 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
11603 2008-07-23 Michael Meissner <gnu@the-meissners.org>
11606 * opth-gen.awk: Suppress function specific features when building
11608 * optc-gen.awk: Ditto.
11610 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11613 * diagnostic.c (pedwarn): Add opt parameter.
11615 * c-tree.h (pedwarn_init): Add opt parameter.
11616 (pedwarn_c90): Likewise.
11617 (pedwarn_c99): Likewise.
11618 * c-errors.c (pedwarn_c99): Likewise.
11619 (pedwarn_c90): Likewise.
11620 * toplev.h (pedwarn): Update declaration.
11621 (pedwarn0): Declare.
11622 * c-lex.c: All calls to pedwarn changed.
11623 * builtins.c: All calls to pedwarn changed.
11624 * toplev.c: All calls to pedwarn changed.
11625 * c-decl.c: All calls to pedwarn changed.
11626 * c-typeck.c: All calls to pedwarn changed.
11627 * c-common.c: All calls to pedwarn changed.
11628 * c-parser.c: All calls to pedwarn changed.
11630 2008-07-23 Michael Meissner <gnu@the-meissners.org>
11631 Karthik Kumar <karthikkumar@gmail.com>
11633 * attribs.c (file scope): Include c-common.h.
11634 (decl_attributes): Add support for #pragma GCC optimize and
11635 #pragma GCC option.
11637 * targhooks.c (default_can_inline_p): New function that is the
11638 default for the TARGET_CAN_INLINE_P target hook.
11640 * targhooks.h (default_can_inline_p): Add declaration.
11642 * tree.c (cl_optimization_node): New static tree for building
11643 OPTIMIZATION_NODE tree.
11644 (cl_target_option_node): New static tree for building
11645 TARGET_OPTION_NODE tree.
11646 (cl_option_hash_table): New hash table for hashing
11647 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
11648 (cl_option_hash_hash): New function to provide the hash value for
11649 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
11650 (cl_option_hash_eq): New function to provide an equality test for
11651 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
11652 (tree_code_size): Add support for OPTIMIZATION_NODE and
11653 TARGET_OPTION_NODE trees.
11654 (tree_code_structure): Add support for OPTIMIZATION_NODE and
11655 TARGET_OPTION_NODE trees.
11656 (build_optimization_node): Build a tree that has all of the
11657 current optimization options.
11658 (build_target_option_node): Build a tree that has the target
11659 options that might be changed on a per function basis.
11661 * tree.h (file scope): Include options.h.
11662 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
11663 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
11664 (TREE_OPTIMIZATION): Ditto.
11665 (TREE_TARGET_SPECIFIC): Ditto.
11666 (struct tree_function_decl): Add fields for remembering the
11667 current optimization options and target specific options.
11668 (struct tree_optimization_option): New tree variant that remembers
11669 the optimization options.
11670 (struct tree_target_option): New tree variant that remembers the
11671 target specific flags that might change for compiling a particular
11673 (union tree_node): Include tree_optimization_option and
11674 tree_target_option fields.
11675 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
11676 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
11677 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
11678 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
11679 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
11680 optimization and target options.
11681 (optimization_default_node): New macro to refer to global_trees
11683 (optimization_current_node): Ditto.
11684 (optimization_cold_node): Ditto.
11685 (optimization_hot_node): Ditto.
11686 (target_option_default_node): Ditto.
11687 (target_option_current_node): Ditto.
11688 (current_option_pragma): Ditto.
11689 (current_optimize_pragma): Ditto.
11691 * target.h (struct gcc_target): Add valid_option_attribute_p,
11692 target_option_save, target_option_restore, target_option_print,
11693 target_option_pragma_parse, and can_inline_p hooks.
11695 * toplev.h (parse_optimize_options): Add declaration.
11696 (fast_math_flags_struct_set_p): Ditto.
11698 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
11699 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
11702 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
11703 tree_can_inline_p hook to see if one function can inline another.
11704 (cgraph_decide_inlining): Ditto.
11705 (cgraph_decide_inlining_incrementally): Ditto.
11707 * opts.c (decode_options): Add support for running multiple times
11708 to allow functions with different target or optimization options
11709 than was specified on the command line.
11710 (fast_math_flags_struct_set_p): New function that is similar to
11711 fast_math_flags_set_p, except it uses the values in the
11712 cl_optimization structure instead of global variables.
11714 * optc-gen.awk: Add support for TargetSave to allow a back end to
11715 declare new fields that need to be saved when using function
11716 specific options. Include flags.h and target.h in the options.c
11717 source. Add support for Save to indicate which options can be set
11718 for individual functions. Generate cl_optimize_save,
11719 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
11720 cl_target_option_restore, cl_target_option_print functions to
11721 allow functions to use different optimization or target options.
11723 * opt-functions.awk (var_type_struct): Return the type used for
11724 storing the field in a structure.
11726 * opth-gen.awk: Add support for TargetSave to allow a back end to
11727 declare new fields that need to be saved when using function
11728 specific options. Add support for Save to indicate which options
11729 can be set for individual functions. Only generate one extern for
11730 Mask fields. Generate cl_optimization and cl_target_option
11731 structures to remember optimization and target options.
11733 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
11734 collecting new tree nodes.
11735 (TS_TARGET_OPTION): Ditto.
11737 * c-decl.c (merge_decls): Merge function specific target and
11738 optimization options.
11740 * function.c (invoke_set_current_function_hook): If the function
11741 uses different optimization options, change the global variables
11744 * coretypes.h (struct cl_optimization): Add forward reference.
11745 (struct cl_target_option): Ditto.
11747 * c-pragma.c (option_stack): New static vector to remember the
11748 current #pragma GCC option stack.
11749 (handle_pragma_option): New function to support #pragma GCC option
11750 to change target options.
11751 (optimize_stack): New static vector to remember the current
11752 #pragma GCC optimize stack.
11753 (handle_pragma_optimize): New function to support #pragma GCC
11754 optimize to change optimization options.
11755 (init_pragma): Add support for #pragma GCC optimize and #pragma
11758 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
11759 optimization options.
11760 (TARGET_OPTION_NODE): New tree code for remembering certain target
11763 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
11764 TARGET_OPTION_NODE trees.
11766 * common.opt (-O): Add Optimization flag.
11768 (-fmath-errno): Ditto.
11769 (-falign-functions): Add UInteger flag to make sure flag gets full
11770 int in cl_optimization structure.
11771 (-falign-jumps): Ditto.
11772 (-falign-labels): Ditto.
11773 (-falign-loops): Ditto.
11774 (-fsched-stalled-insns): Ditto.
11775 (-fsched-stalled-insns-dep): Ditto.
11777 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
11779 (TARGET_OPTION_SAVE): Ditto.
11780 (TARGET_OPTION_RESTORE): Ditto.
11781 (TARGET_OPTION_PRINT): Ditto.
11782 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
11783 (TARGET_CAN_INLINE_P): Ditto.
11784 (TARGET_INITIALIZER): Add new hooks.
11786 * tree-inline.c (tree_can_inline_p): New function to determine
11787 whether one function can inline another. Check if the functions
11788 use compatible optimization options, and also call the backend
11791 * tree-inline.h (tree_can_inline_p): Add declaration.
11793 * c-common.c (c_common_attribute): Add support for option and
11794 optimize attributes.
11795 (handle_option_attribute): Add support for the option attribute to
11796 allow the user to specify different target options for compiling a
11798 (handle_optimize_attribute): Add support for the optimize
11799 attribute to allow the user to specify different optimization
11800 options for compiling a specific function.
11801 (handle_hot_attribute): Turn on -O3 optimization for this one
11802 function if it isn't the default optimization level.
11803 (handle_cold_attribute): Turn on -Os optimization for this one
11804 function if it insn't the default optimization.
11805 (const_char_p): New const char * typedef.
11806 (optimize_args): New static vector to remember the optimization
11808 (parse_optimize_options): New function to set up the optimization
11809 arguments from either the optimize attribute or #pragma GCC optimize.
11811 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
11812 (builtin_define_std): Ditto.
11814 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
11815 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
11816 (x86_64-*-*): Ditto.
11818 * Makefile.in (TREE_H): Add options.h.
11819 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
11821 * doc/extend.texi (option attribute): Document new attribute.
11822 (optimize attribute): Ditto.
11823 (hot attribute): Document hot attribute sets -O3.
11824 (cold attribute): Document cold attribute sets -Os.
11825 (#pragma GCC option): Document new pragma.
11826 (#pragma GCC optimize): Ditto.
11828 * doc/options.texi (TargetSave): Document TargetSave syntax.
11829 (UInteger): Document UInteger must be used for certain flags.
11830 (Save): Document Save option to create target specific options
11831 that can be saved/restored on a function specific context.
11833 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
11834 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
11836 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
11837 (TARGET_OPTION_SAVE): Ditto.
11838 (TARGET_OPTION_RESTORE): Ditto.
11839 (TARGET_OPTION_PRINT): Ditto.
11840 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
11841 (TARGET_CAN_INLINE_P): Ditto.
11843 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
11845 (-mfpmath=both): Ditto.
11847 2008-07-23 Michael Meissner <gnu@the-meissners.org>
11848 Karthik Kumar <karthikkumar@gmail.com>
11850 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
11851 (TARGET_POPCNT): Ditto.
11852 (TARGET_SAHF): Ditto.
11853 (TARGET_AES): Ditto.
11854 (TARGET_PCLMUL): Ditto.
11855 (TARGET_CMPXCHG16B): Ditto.
11856 (TARGET_RECIP): Move switch into target_flags.
11857 (TARGET_FUSED_MADD): Ditto.
11858 (ix86_arch_features): Make an unsigned char type.
11859 (ix86_tune_features): Ditto.
11860 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
11861 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
11862 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
11864 * config/i386/i386.opt (arch): New TargetSave field to define
11865 fields that need to be saved for function specific option support.
11868 (branch_cost): Ditto.
11869 (ix86_isa_flags_explicit): Ditto.
11870 (tune_defaulted): Ditto.
11871 (arch_specified): Ditto.
11872 (-m128-long-double): Add Save flag to save option for target
11873 specific option support.
11875 (-maccumulate-outgoing-args): Ditto.
11876 (-malign-double): Ditto.
11877 (-malign-stringops): Ditto.
11878 (-mfancy-math-387): Ditto.
11879 (-mhard-float): Ditto.
11880 (-mieee-fp): Ditto.
11881 (-minline-all-stringops): Ditto.
11882 (-minline-stringops-dynamically): Ditto.
11883 (-mms-bitfields): Ditto.
11884 (-mno-align-stringops): Ditto.
11885 (-mno-fancy-math-387): Ditto.
11886 (-mno-push-args): Ditto.
11887 (-mno-red-zone): Ditto.
11888 (-mpush-args): Ditto.
11889 (-mred-zone): Ditto.
11891 (-msseregparm): Ditto.
11892 (-mstack-arg-probe): Ditto.
11904 (-mno-sse4): Ditto.
11907 (-mrecip): Move flag into target_flags.
11909 (-mno-fused-madd): Ditto.
11910 (-mfused-madd): Ditto.
11911 (-mabm): Move flag into ix86_isa_flags.
11918 * config/i386/i386-c.c: New file for #pragma support.
11919 (ix86_target_macros_internal): New function to #define or #undef
11920 target macros based when the user uses the #pragma GCC option to
11921 change target options.
11922 (ix86_pragma_option_parse): New function to add #pragma GCC option
11924 (ix86_target_macros): Move defining the target macros here from
11925 TARGET_CPU_CPP_BUILTINS in i386.h.
11926 (ix86_register_pragmas): Register the #pragma GCC option hook. If
11927 defined, initialize any subtarget #pragmas.
11929 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
11930 REGISTER_TARGET_PRAGMAS.
11932 * config/i386/t-i386: New file for x86 dependencies.
11933 (i386.o): Make dependencies mirror the include files used.
11934 (i386-c.o): New file, add dependencies.
11936 * config/i386/i386-protos.h (override_options): Add bool argument.
11937 (ix86_valid_option_attribute_tree): Add declaration.
11938 (ix86_target_macros): Ditto.
11939 (ix86_register_macros): Ditto.
11941 * config/i386/i386.c (ix86_tune_features): Move initialization of
11942 the target masks to initial_ix86_tune_features to allow functions
11943 to have different target options. Make type unsigned char,
11944 instead of unsigned int.
11945 (initial_ix86_tune_features): New static vector to hold processor
11946 masks for the tune variables.
11947 (ix86_arch_features): Move initialization of the target masks to
11948 initial_ix86_arch_features to allow functions to have different
11949 target options. Make type unsigned char, instead of unsigned int.
11950 (initial_ix86_arch_features): New static vector to hold processor
11951 masks for the arch variables.
11952 (enum ix86_function_specific_strings): New enum to describe the
11953 string options used for attribute((option(...))).
11954 (ix86_target_string): New function to return a string that
11955 describes the target options.
11956 (ix86_debug_options): New function to print the current options in
11958 (ix86_function_specific_save): New function hook to save the
11959 function specific global variables in the cl_target_option structure.
11960 (ix86_function_specific_restore): New function hook to restore the
11961 function specific variables from the cl_target_option structure to
11962 the global variables.
11963 (ix86_function_specific_print): New function hook to print the
11964 target specific options in the cl_target_option structure.
11965 (ix86_valid_option_attribute_p): New function hook to validate
11966 attribute((option(...))) arguments.
11967 (ix86_valid_option_attribute_tree): New function that is common
11968 code between attribute((option(...))) and #pragma GCC option
11969 support that parses the options and returns a tree holding the options.
11970 (ix86_valid_option_attribute_inner_p): New helper function for
11971 ix86_valid_option_attribute_tree.
11972 (ix86_can_inline_p): New function hook to decide if one function
11973 can inline another on a target specific basis.
11974 (ix86_set_current_function); New function hook to switch target
11975 options if the user used attribute((option(...))) or #pragma GCC
11977 (ix86_tune_defaulted): Move to static file scope from
11979 (ix86_arch_specified): Ditto.
11980 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
11982 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
11983 (OPTION_MASK_ISA_ABM_SET): Ditto.
11984 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
11985 (OPTION_MASK_ISA_CX16_SET): Ditto.
11986 (OPTION_MASK_ISA_SAHF_SET): Ditto.
11987 (OPTION_MASK_ISA_AES_UNSET): Ditto.
11988 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
11989 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
11990 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
11991 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
11992 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
11993 (struct ptt): Move to static file scope from override_options.
11994 (processor_target_table): Ditto.
11995 (cpu_names): Ditto.
11996 (ix86_handle_option): Add support for options that are now isa options.
11997 (override_options): Add support for declaring functions that
11998 support different target options than were specified on the
11999 command line. Move struct ptt, processor_target_table, cpu_names,
12000 ix86_tune_defaulted, ix86_arch_specified to static file scope.
12001 Add bool argument. Fix up error messages so the appropriate error
12002 is given for either command line or attribute.
12003 (ix86_previous_fndecl): New static to remember previous function
12004 declaration to see if we need to change target options.
12005 (ix86_builtins_isa): New array to record the ISA of each builtin
12007 (def_builtin): Always create the builtin function, even if the
12008 current ISA doesn't support it.
12009 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
12010 tests for those builtins.
12011 (ix86_init_builtins): Remove TARGET_MMX test for calling
12012 ix86_init_mmx_sse_builtins.
12013 (ix86_expand_builtin): If the current ISA doesn't support a given
12014 builtin, signal an error.
12015 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
12016 (TARGET_SET_CURRENT_FUNCTION): Ditto.
12017 (TARGET_OPTION_SAVE): Ditto.
12018 (TARGET_OPTION_RESTORE): Ditto.
12019 (TARGET_OPTION_PRINT): Ditto.
12020 (TARGET_CAN_INLINE_P): Ditto.
12022 2008-07-22 Rafael Ávila de Espíndola <espindola@google.com>
12024 * c-typeck.c (build_external_ref): Don't call assemble_external.
12025 * final.c (output_operand): Call assemble_external.
12027 2008-07-21 DJ Delorie <dj@redhat.com>
12029 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
12030 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
12032 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12034 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
12035 original insn and splitter contents into ...
12036 ("*div<mode>3_fast"): ... this new pattern. Enable only if
12037 flag_unsafe_math_optimizations. Add dummy scratch register.
12038 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
12039 !flag_unsafe_math_optimizations. Returns number with next
12040 highest magnitude if this is still less or equal to the true
12041 quotient in magnitude.
12043 2008-07-21 Rafael Ávila de Espíndola <espindola@google.com>
12045 * Makefile.in: Replace toplev.h with TOPLEV_H.
12046 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
12047 * c-lex.c (fe_file_change): Don't set in_system_header.
12048 * c-parser.c (c_token): Remove in_system_header.
12049 (c_lex_one_token): Don't set in_system_header.
12050 (c_parser_set_source_position_from_token): Don't set in_system_header.
12051 * diagnostic.c (diagnostic_report_diagnostic): Use location from
12054 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
12055 * flags.h (in_system_header): Remove.
12056 * function.c (saved_in_system_header): Remove.
12057 (push_cfun): Don't set in_system_header.
12058 (pop_cfun): Don't set in_system_header.
12059 (push_struct_function): Don't set in_system_header.
12060 * input.h (expanded_location): Add sysp.
12061 (in_system_header_at): New.
12062 (in_system_header): New.
12063 * toplev.c (in_system_header): Remove.
12064 * toplev.h: Include input.h
12066 * tree-cfg.c (execute_warn_function_return): Call warning_at.
12067 * tree-ssa.c (warn_uninit): Call warning_at.
12068 (warn_uninitialized_var): Update calls to warn_uninit.
12069 (warn_uninitialized_phi): Update calls to warn_uninit.
12070 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
12071 (expand_location): Initialize xloc.sysp.
12072 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
12073 (tree_decl_with_vis): Remove in_system_header_flag.
12075 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
12078 * recog.c (asm_operand_ok): Change the order of the extra
12079 memory constraint checks.
12081 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
12084 * tree-switch-conversion.c (build_one_array): Call
12085 varpool_mark_needed_node and varpool_finalize_decl
12086 instead of assemble_variable.
12088 2008-07-19 Jan Hubicka <jh@suse.cz>
12090 * cgraph.c (cgraph_add_new_function): Do early local passes.
12091 * tree-nrv.c (gate_pass_return_slot): New gate.
12092 (pass_nrv): Add the gate.
12093 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
12095 (coalesce_ssa_name): Coalesce SSA names.
12096 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
12097 not optimizing so unused user vars remains visible.
12098 * common.opt (flag_tree_ter): Always enable by default.
12099 * tree-ssa-ter.c: Include flags.h
12100 (is_replaceable_p): Check that locations match; when aliasing
12101 is missing be conservative about loads.
12102 * tree-optimize.c (gate_init_datastructures): Remove.
12103 (pass_init_datastructures): New.
12104 * passes.c: Reorder passes so we always go into SSA.
12106 2008-07-19 Jan Hubicka <jh@suse.cz>
12108 * doc/extend.texi (flatten attribute): Remove note about
12110 * doc/invoke.texi (--combine): Likewise.
12111 (-finline-functions-called-once): Update levels when enabled.
12112 (-funit-at-a-time): Document new behaviour.
12113 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
12114 -fno-section-anchors when disabled explicitly.
12115 (inline params): They are not ignored now.
12116 (precompiled headers): Remove unit-at-a-time as being incompatible.
12117 * opts.c (decode_options): Handle unit-at-a-time as alias;
12118 imply -fno-section-anchors when toplevel reorder is disabled
12120 * common.opt (ftoplevel-reorder): Set default value to 2.
12121 (funit-at-a-time): Set default value to 1.
12122 * config/rs6000/rs6000.c (optimization_options): Set section anchors
12125 2008-07-19 Jan Hubicka <jh@suse.cz>
12127 * builtins.c (expand_builtin_int_roundingfn,
12128 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
12131 2008-07-19 Richard Guenther <rguenther@suse.de>
12134 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
12135 * tree-ssa-sccvn.c (get_constant_value_id): New function.
12136 * tree-ssa-pre.c (get_expr_value_id): For newly created
12137 constant value-ids make sure to add the expression to its
12140 2008-07-19 Jakub Jelinek <jakub@redhat.com>
12142 PR middle-end/36877
12143 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
12144 return value of the builtin is ignored.
12146 2008-07-19 Olivier Hainque <hainque@adacore.com>
12148 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
12149 bits, a C conformant malloc implementation has to provide.
12150 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
12152 2008-07-19 Joseph Myers <joseph@codesourcery.com>
12156 * reload.c (find_reloads_subreg_address): Only reload address if
12157 reloaded == 0, not for reloaded != 1.
12160 2008-07-16 Joseph Myers <joseph@codesourcery.com>
12161 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
12162 (m32c_legitimate_address_p): Handle "++rii" addresses created by
12163 m32c_legitimize_reload_address.
12165 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
12166 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
12167 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
12169 2008-07-19 Olivier Hainque <hainque@adacore.com>
12171 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
12172 argument, saying whether nested array are to be collapsed
12173 into a single array type DIE with multiple subscripts.
12174 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
12175 issues, centralize the nested array types collapsing control and
12176 disable the transformation for Ada.
12178 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
12181 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
12183 (x86_64_shift_adj_2): New expander.
12184 (x86_64_shift_adj_3): Ditto.
12185 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
12186 to split TImode operands.
12187 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
12188 (ix86_split_lshr): Ditto.
12190 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
12192 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
12193 and __CHAR32_TYPE__.
12194 * c-typeck.c (digest_init): Support char16_t and char32_t.
12195 (set_nonincremental_init_from_string): Idem.
12197 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
12199 PR middle-end/36859
12200 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
12201 PREFERRED_STACK_BOUNDARY.
12202 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
12204 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
12206 PR middle-end/36858
12207 * function.c (locate_and_pad_parm): Cap boundary earlier.
12209 2008-07-17 Julian Brown <julian@codesourcery.com>
12211 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
12212 no-op for targets which don't use DLLs.
12214 2008-07-17 Martin Jambor <mjambor@suse.cz>
12216 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
12217 that nodes are relevant by examining the node->analyzed flag.
12218 (ipcp_init_stage): Check which nodes are relevant, assert that the
12219 relevant ones are also required.
12220 (ipcp_propagate_stage): Check on the side arrays are properly
12222 (ipcp_print_all_jump_functions): Make sure not to touch any node
12223 that is not analyzed or an edge that does not have a corresponding
12224 entry in the on-the-side vectors.
12225 (ipcp_function_scale_print): Likewise.
12226 (ipcp_update_callgraph): Check that the node is relevant.
12227 (ipcp_insert_stage): Check that the node is relevant. Check there is
12228 an info for every node and edge.
12229 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
12230 (ipa_print_all_tree_maps): Likewise and a new variable info.
12231 (ipa_print_all_params_modified): Likewise.
12232 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
12234 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
12237 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
12239 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
12241 PR rtl-optimization/36753
12242 * fwprop.c (use_killed_between): Don't shortcut
12243 single-definition global registers.
12245 2008-07-16 Jan Hubicka <jh@suse.cz>
12247 * cgraph.h (varpool_empty_needed_queue): Declare.
12248 * cgraphunit.c (output_in_order): Mark all variables as needed;
12250 * varpool.c (varpool_assemble_node): Update debug queue.
12251 (varpool_assemble_pending_decls): Don't do it here.
12252 (varpool_empty_needed_queue): New function.
12254 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12256 * recog.c (peephole2_optimize): Fix formatting.
12258 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12260 * c-pch.c (get_ident): Avoid C++ keywords.
12261 * combine-stack-adj.c (single_set_for_csa): Likewise.
12262 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
12263 output_asm_insn): Likewise.
12264 * reload.c (push_secondary_reload, find_reusable_reload,
12265 push_reload, combine_reloads, find_reloads,
12266 debug_reload_to_stream): Likewise.
12267 * reload.h (struct reload): Likewise.
12268 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
12269 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
12270 emit_output_reload_insns): Likewise.
12271 * targhooks.c (default_secondary_reload): Likewise.
12272 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
12274 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12276 * recog.c (validate_change_1, validate_change,
12277 validate_unshare_change, validate_replace_rtx_1, struct
12278 funny_match, constrain_operands, peephole2_optimize): Avoid C++
12280 * reload.c (push_secondary_reload, secondary_reload_class,
12281 scratch_reload_class, find_valid_class, find_reusable_reload,
12282 push_reload, find_dummy_reload, find_reloads_address_1,
12283 find_reloads_address_part, find_equiv_reg): Likewise.
12284 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
12285 choose_reload_regs): Likewise.
12286 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
12288 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
12289 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
12290 * sched-rgn.c (concat_INSN_LIST): Likewise.
12291 * stor-layout.c (mode_for_size, mode_for_size_tree,
12292 smallest_mode_for_size): Likewise.
12294 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12296 * cfg.c (dump_reg_info): Avoid C++ keywords.
12297 * dwarf2asm.c (dw2_force_const_mem,
12298 dw2_asm_output_encoded_addr_rtx): Likewise.
12299 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
12300 * expmed.c (expand_shift): Likewise.
12301 * global.c (find_reg): Likewise.
12302 * graph.c (draw_edge): Likewise.
12303 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
12304 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
12305 widen_clz, widen_bswap, expand_parity, expand_unop,
12306 emit_cmp_and_jump_insn_1): Likewise.
12307 * postreload.c (reload_cse_simplify_operands): Likewise.
12308 * ra.h (add_neighbor): Likewise.
12309 * reg-stack.c (remove_regno_note, change_stack): Likewise.
12310 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
12311 record_reg_classes, copy_cost, record_address_regs,
12312 invalid_mode_change_p): Likewise.
12313 * regrename.c (regrename_optimize, scan_rtx_reg,
12314 dump_def_use_chain, find_oldest_value_reg,
12315 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
12317 2008-07-16 David Edelsohn <edelsohn@gnu.org>
12319 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
12320 MASK_POWERPC64 for power4 in previous commit.
12322 2008-07-16 Olivier Hainque <hainque@adacore.com>
12324 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
12325 instead of bare conversion to cast const-ness away.
12327 2008-07-16 Anatoly Sokolov <aesok@post.ru>
12329 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
12330 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
12331 * config/xtensa/xtensa.c (xtensa_function_value): New function.
12332 (TARGET_FUNCTION_VALUE): Define.
12334 2008-07-16 David Edelsohn <edelsohn@gnu.org>
12336 * config/rs6000/rs6000.c (processor_target_table): Add
12337 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
12339 2008-07-16 Joseph Myers <joseph@codesourcery.com>
12342 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
12343 (m32c_legitimate_address_p): Handle "++rii" addresses created by
12344 m32c_legitimize_reload_address.
12346 2007-07-16 Rafael Ávila de Espíndola <espindola@google.com>
12348 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
12349 DECL_IN_SYSTEM_HEADER in sync.
12351 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
12353 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
12354 * tree-ssa-pre.c (pre_expr_eq): Ditto
12355 (get_constant_for_value_id): Take a type as an argument.
12356 (fully_constant_expression): Pass in type.
12357 (find_or_generate_expression): Short circuit constant case.
12358 (create_expression_by_pieces): Remove special casing of
12360 (do_regular_insertion): Short circuit constant case.
12361 (do_partial_partial_insertion): Ditto.
12363 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
12366 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
12368 2008-07-15 Bob Wilson <bob.wilson@acm.org>
12370 * config/xtensa/libgcc-xtensa.ver: New file.
12371 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
12373 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12375 * df-problems.c (df_set_note): Avoid C++ keywords.
12376 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
12377 * dse.c (record_store, remove_useless_values): Likewise.
12378 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
12379 gen_reg_rtx_offset, operand_subword, change_address_1,
12380 change_address, adjust_address_1, offset_address,
12381 widen_memory_access, emit_copy_of_insn_after): Likewise.
12382 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
12383 * fwprop.c (should_replace_address, propagate_rtx_1,
12384 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
12386 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
12387 gcse_emit_move_after, update_ld_motion_stores): Likewise.
12388 * lcm.c (compute_insert_delete, pre_edge_lcm,
12389 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
12390 * lower-subreg.c (resolve_reg_notes): Likewise.
12391 * mode-switching.c (optimize_mode_switching): Likewise.
12393 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12395 * bt-load.c (add_btr_def, migrate_btr_def,
12396 branch_target_load_optimize): Avoid C++ keywords.
12397 * caller-save.c (insert_restore, insert_save, insert_one_insn):
12399 * combine.c (subst, simplify_set, make_extraction,
12400 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
12401 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
12402 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
12404 2008-07-15 Richard Guenther <rguenther@suse.de>
12406 PR middle-end/36369
12407 * c-common.c (strict_aliasing_warning): Do not warn for
12408 TYPE_REF_CAN_ALIAS_ALL pointers.
12409 (c_common_get_alias_set): may_alias types are not special.
12410 * tree.c (build_pointer_type_for_mode): Look up the may_alias
12411 attribute and set can_ref_all accordingly.
12412 (build_reference_type_for_mode): Likewise.
12413 * doc/extend.texi (may_alias): Clarify.
12415 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
12418 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
12419 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
12421 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
12424 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
12425 gcc_assert, instead call output_operand_lossage.
12427 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
12429 * builtins.c (std_canonical_va_list): Treat structure based
12432 2008-07-15 Ben Elliston <bje@au.ibm.com>
12434 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
12436 2007-07-14 Rafael Ávila de Espíndola <espindola@google.com>
12438 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
12441 2008-07-14 Jan Hubicka <jh@suse.cz>
12443 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
12444 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
12445 fix predicates and constraints.
12446 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
12447 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
12449 2008-07-14 Doug Kwan <dougkwan@google.com>
12451 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
12452 additional option file arm/eabi.opt.
12453 * config/arm/eabi.h (File): New configuration file for EABI targets.
12454 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
12455 SUBSUBTARGET_EXTRA_SPECS.
12456 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
12457 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
12458 from STARTFILE_SPEC so that it can be referenced in an override.
12459 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
12460 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
12461 can be referenced in an override.
12462 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
12463 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
12464 so that it can be referenced in an override.
12465 (LINK_SPEC): Use BPABI_LINK_SPEC.
12466 * config/arm/eabi.opt (File): New.
12468 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12470 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
12471 (FIXED_VALUE_H): New variable.
12472 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
12473 input.h, fixed-value.h.
12474 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
12475 (BASIC_BLOCK_H): Use $(BITMAP_H).
12476 (FUNCTION_H): Add varray.h.
12477 (IPA_REFERENCE_H): Use $(BITMAP_H).
12478 (CGRAPH_H): Add $(BASIC_BLOCK_H).
12479 (DF_H): Use $(BITMAP_H).
12480 (GGC_H): Add statistics.h.
12481 (INSN_ADDR_H): New.
12482 (INSN_ATTR_H): Use it.
12483 (SYSTEM_H): Add safe-ctype.h, filenames.h.
12485 (SYMTAB_H): Add $(OBSTACK_H).
12486 (CPP_INTERNAL_H): New.
12487 (TREE_DUMP_H): Add tree-pass.h.
12488 (TREE_FLOW_H): Use $(BITMAP_H)
12489 (PRETTY_PRINT_H): Use $(INPUT_H).
12490 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
12493 (many object files): Fix lots of header dependencies throughout.
12495 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12497 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
12499 (s-gtyp-input): Use them to write tmp-gi.list.
12500 (echo_to_gi.list): Remove.
12502 2008-07-14 Richard Guenther <rguenther@suse.de>
12504 * tree-ssa-sccvn.c (pre_info): Remove.
12505 (switch_to_PRE_table): Likewise.
12506 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
12507 (set_hashtable_value_ids): Do not create value-ids for the
12509 (run_scc_vn): Remove double test. Remove bogus special-case
12510 in value-number printing.
12511 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
12512 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
12514 * tree-flow-inline.h (get_value_handle): Remove.
12515 * tree-flow.h (get_value_handle): Remove.
12517 2008-07-14 Martin Jambor <mjambor@suse.cz>
12519 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
12520 in which we generate arithmetics is not a subrange.
12522 2008-07-14 Martin Jambor <mjambor@suse.cz>
12524 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
12526 2008-07-14 Richard Guenther <rguenther@suse.de>
12528 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
12530 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
12533 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
12534 reload for symbol refs moved to r0 with -fPIC.
12535 (legitimize_pic_address): Use the target register as temporary
12537 (emit_symbolic_move): Adjust comment.
12538 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
12541 2008-07-14 Ben Elliston <bje@au.ibm.com>
12543 * c-common.h (C_CPP_HASHNODE): New macro.
12544 * coretypes.h (struct cpp_token): Forward declare.
12545 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12546 the context-sensitive keyword method.
12547 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
12548 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
12549 expand_bool_pixel): New.
12550 (altivec_categorize_keyword): New function.
12551 (init_vector_keywords): New function.
12552 (rs6000_macro_to_expand): Likewise.
12553 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
12554 compiling an ISO C dialect.
12556 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
12558 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
12559 (create_expression_by_pieces): Fix typo.
12560 (do_regular_insertion): Use debug counter here too.
12562 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
12565 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
12566 CONST_OK_FOR_LETTER_P. All port-local users changed.
12567 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
12568 implement Kp matching power-of-two.
12569 (CONSTRAINT_LEN): Define to match.
12570 * config/cris/cris.md: Replace all use of constraint K with Kc.
12571 ("*btst*): Use Kp for operand 0 of last alternative.
12573 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12576 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
12579 2008-07-13 Jan Hubicka <jh@suse.cz>
12581 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
12584 2008-07-13 Richard Guenther <rguenther@suse.de>
12586 PR middle-end/36811
12587 * langhooks.c (lhd_print_error_function): Deal with recursive
12590 2008-07-12 Jan Hubicka <jh@suse.cz>
12592 * cgraph.c (assembler_name_hash): New static var.
12593 (hash_node_by_assembler_name, eq_assembler_name): New.
12594 (cgraph_node_for_asm): Use hashtable.
12595 (cgraph_remove_node): Maintain hashtable.
12596 (change_decl_assembler_name): Sanity check that names are not changing
12597 after aliasing was processed.
12598 * cgraph.h (varpoon_node): Add next GGC marker.
12599 * tree.c (decl_assembler_name_equal): Constify.
12600 (decl_assembler_name_hash): New.
12601 * tree.h (decl_assembler_name_equal): Constify.
12602 (decl_assembler_name_hash): Update.
12604 2008-07-12 David Daney <ddaney@avtrex.com>
12606 * config/mips/driver-native.c (host_detect_local_cpu): Handle
12607 sb1 and r5000 cpus.
12609 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12611 * doc/md.texi: Document the MIPS "v" constraint.
12612 * config/mips/mips.h (reg_class): Revert last change.
12613 (REG_CLASS_NAMES): Likewise.
12614 (REG_CLASS_CONTENTS): Likewise.
12615 * config/mips/mips.c (mips_regno_to_class): Likewise.
12616 * config/mips/constraints.md (v): Likewise, but add documentation.
12617 Add a comment to say that this constraint should not be used in
12620 2008-07-11 DJ Delorie <dj@redhat.com>
12622 * config/h8300/h8300.md (length): Fix branch offset limit.
12624 2008-07-11 Anatoly Sokolov <aesok@post.ru>
12626 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
12627 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
12628 (avr_hard_regno_scratch_ok): New function.
12629 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
12630 * config/avr/avr.md (all peepholes that request a scratch register):
12631 Remove avr_peep2_scratch_safe use.
12633 2008-07-11 Tom Tromey <tromey@redhat.com>
12634 Ian Lance Taylor <iant@google.com>
12636 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
12637 (struct c_common_resword): Define.
12638 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
12639 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
12640 (c_common_reswords, num_c_common_reswords): Declare.
12641 * c-common.c (c_common_reswords): New global const array.
12642 (num_c_common_reswords): New const int.
12643 * c-parser.c (struct resword, reswords): Don't define.
12644 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
12645 (c_parse_init): Clarify mask code. Use c_common_reswords rather
12646 than reswords. If warning about C++ keywords, give them a special
12648 (c_lex_one_token): Warn about C++ keywords. Call
12649 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
12650 (c_parser_external_declaration): Look for RID_xxx rather than
12651 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
12652 (c_parser_statement_after_labels): Likewise.
12653 (c_parser_objc_class_instance_variables): Likewise.
12654 (c_parser_objc_class_declaration): Likewise.
12655 (c_parser_objc_try_catch_statement): Likewise.
12656 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
12657 (declspecs_add_type): Likewise.
12659 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
12661 * ggc-page.c (alloc_page):
12662 Substituting xmalloc, xcalloc with
12663 XNEWVEC and XCNEWVAR macros which add the
12666 2008-07-11 Richard Guenther <rguenther@suse.de>
12668 PR tree-optimization/36765
12669 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
12670 aliases from HEAP vars to SMTs.
12672 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12674 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
12675 * configure.ac (loose_warn): Move -Wc++-compat from here...
12676 (strict_warn): ...to here.
12677 * configure: Regenerate.
12679 2008-07-10 Joseph Myers <joseph@codesourcery.com>
12681 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
12682 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
12683 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
12684 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
12685 excluding more specific h8300-*-* and sh-*-* targets.
12687 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
12689 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
12690 (eliminate): Ditto.
12691 (execute_pre): Call loop_optimizer_finalize in early exit.
12693 2008-07-10 Jakub Jelinek <jakub@redhat.com>
12695 PR middle-end/36790
12696 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
12697 uids in the bitmap, not just VAR_DECL uids.
12699 PR rtl-optimization/36419
12700 * combine-stack-adj.c (adjust_frame_related_expr): New function.
12701 (combine_stack_adjustments_for_block): Call it if needed. Delete
12703 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
12704 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
12705 prologue sp adjustment.
12707 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
12710 * opts.c (print_ignored_options): Report postponed diagnostics for
12711 unknown -Wno-* options as warnings, not errors.
12712 (postpone_unknown_option_error): Renamed to...
12713 (postpone_unknown_option_warning): ... this.
12715 2008-07-09 Doug Kwan <dougkwan@google.com>
12718 2008-07-08 Doug Kwan <dougkwan@google.com>
12720 * config/arm/arm.opt (mandroid): New option.
12721 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
12722 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
12724 (CC1PLUS_SPEC): Same.
12726 (STARTFILE_SPEC): Same.
12727 (ENDFILE_SPEC): Same.
12728 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
12731 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
12734 * config/mips/mips.h (reg_class): Remove V1_REG.
12735 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
12736 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
12737 instead of V1_REGS.
12738 (mips_get_tp): New function.
12739 (mips_legitimize_tls_address): Use it.
12740 * config/mips/constraints.md (v): Delete.
12741 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
12742 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
12743 After reload, split into a move and ...
12744 (*tls_get_tp_<mode>_split): ...this new instruction.
12746 2008-07-09 David Daney <ddaney@avtrex.com>
12748 * config/mips/driver-native.c: Include coretypes.h and tm.h.
12750 2008-07-09 Jakub Jelinek <jakub@redhat.com>
12752 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
12753 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
12755 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
12756 htab_delete should be called. Don't free c.
12757 (lookup_tmp_var): Create temp_htab lazily.
12758 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
12759 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
12761 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
12762 lower_omp_ordered, lower_omp_critical, lower_omp_for,
12763 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
12764 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
12765 * tree-sra.c (generate_element_init): Likewise.
12766 * tree-mudflap.c (execute_mudflap_function_ops,
12767 execute_mudflap_function_decls): Likewise.
12768 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
12769 * tree-gimple.h (struct gimplify_ctx): New type.
12770 (push_gimplify_context): Adjust prototype.
12772 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
12774 * tree-ssa-pre.c (phi_translate_1): Update placement of
12775 add_to_value calls.
12777 2008-07-09 Anatoly Sokolov <aesok@post.ru>
12779 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
12780 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
12781 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
12782 * targhooks.c (default_hard_regno_scratch_ok): New function.
12783 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
12784 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
12785 * recog.c: Include "target.h".
12786 (peep2_find_free_register): Add check for global regs. Add target
12788 * Makefile.in (recog.o): Depend on target.h.
12790 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
12792 * config/sh/sh.c (sh_canonical_va_list_type): New.
12793 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
12795 2008-07-09 Raksit Ashok <raksit@google.com>
12797 * doc/invoke.texi (Option Summary): Mention new option
12798 -Wdisallowed-function-list=...
12799 (Warning Options): Document -Wdisallowed-function-list=...
12800 * common.opt (Wdisallowed-function-list=): New flag.
12801 * flags.h (warn_disallowed_functions): External definition of new
12802 boolean warning flag.
12803 (warn_if_disallowed_function_p): Declare new function.
12804 * opts.c (warning_disallowed_functions): New static variable.
12805 (warn_disallowed_functions): New boolean warning flag.
12806 (warn_if_disallowed_function_p): New function.
12807 (add_comma_separated_to_vector): Rename
12808 add_instrument_functions_exclude_list to this.
12809 (common_handle_option): Handle new option. Rename calls to
12810 add_instrument_functions_exclude_list into calls to
12811 add_comma_separated_to_vector.
12812 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
12813 based on flag warn_disallowed_functions.
12815 2008-07-09 Christian Bruel <christian.bruel@st.com>
12817 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
12818 instead of get_attr_length.
12820 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12822 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
12824 * genemit.c (gen_insn): Likewise.
12825 * gengtype.c (note_def_vec): Likewise.
12826 * gengtype.h (note_def_vec): Likewise.
12827 * genoutput.c (struct data, output_insn_data, process_template,
12828 gen_expand, gen_split, note_constraint): Likewise.
12829 * genrecog.c (new_decision, add_to_sequence, factor_tests,
12830 make_insn_sequence): Likewise.
12831 * gensupport.c (record_insn_name): Likewise.
12833 2008-07-08 Doug Kwan <dougkwan@google.com>
12835 * config/arm/arm.opt (mandroid): New option.
12836 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
12837 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
12839 (CC1PLUS_SPEC): Same.
12841 (STARTFILE_SPEC): Same.
12842 (ENDFILE_SPEC): Same.
12843 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
12846 2008-07-08 Raksit Ashok <raksit@google.com>
12848 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
12849 (set_storage_via_setmem): Fix expected_align parameter.
12850 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
12851 missing from the list.
12852 * doc/md.texi (movmem): Explicitly state that expected alignment is
12853 to be expressed in bytes.
12854 (setmem): Explicitly state that expected alignment is to be expressed
12857 2008-07-08 Joseph Myers <joseph@codesourcery.com>
12859 * reload.c (find_reloads_subreg_address): Do not require validity
12860 of address in original mode before reloading address.
12862 2008-07-07 Tianwei Sheng <tianweis@google.com>
12864 * df-core.c (df_remove_problem): Adjust the access to avoid out of
12865 bounds array access.
12867 2008-07-08 Jakub Jelinek <jakub@redhat.com>
12869 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
12871 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
12873 Fix PR tree-optimization/23455
12874 Fix PR tree-optimization/35286
12875 Fix PR tree-optimization/35287
12876 * Makefile.in (OBJS-common): Remove tree-vn.o.
12877 (tree-vn.o): Remove.
12878 * dbgcnt.def: Add treepre_insert debug counter.
12879 * gcc/tree-flow.h (add_to_value): Updated for other changes.
12880 (debug_value_expressions): Ditto.
12881 (print_value_expressions): Ditto.
12882 * tree-pretty-print.c (dump_generic_node): Updated for
12883 VALUE_HANDLE removal.
12884 * tree-ssa-dom.c (record_equality): Ditto.
12885 (cprop_operand): Ditto.
12886 (lookup_avail_expr): Ditto.
12887 * tree-ssa-threadedge.c
12888 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
12889 (simplify_control_stmt_condition): Ditto.
12890 * tree.c (tree_code_size): Ditto.
12891 (tree_node_structure): Ditto.
12892 (iterative_hash_expr): Ditto.
12894 * tree.h (VALUE_HANDLE_ID): Ditto.
12895 (VALUE_HANDLE_EXPR_SET): Ditto.
12896 (struct tree_value_handle): Ditto.
12897 (union tree_node): Ditto.
12898 * treestruct.def: Ditto.
12899 * tree-vn.c: Removed.
12900 * tree-ssa-pre.c: Rewritten entirely.
12901 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
12902 (constant_value_ids): Ditto.
12903 (vn_nary_op_t): Moved to header.
12905 (vn_reference_op_t): Ditto
12906 (vn_reference_t): Ditto.
12907 (next_value_id): New variable.
12908 (VN_INFO): Add an assert.
12909 (vn_constant_eq): New function.
12910 (vn_constant_hash): Ditto.
12911 (get_or_alloc_constant_value_id): Ditto.
12912 (value_id_constant_p): Ditto.
12913 (vn_reference_compute_hash): De-staticify.
12914 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
12915 Disable some code with a FIXME. Remove VALUE_HANDLE use.
12916 (valueize_refs): Update opcode if it changes from ssa name to constant.
12917 (vn_reference_lookup_1): Add new argument.
12918 (vn_reference_lookup): Ditto.
12919 (vn_reference_lookup_pieces): New function.
12920 (vn_reference_insert): Add return type. Modify to deal with value ids.
12921 (vn_reference_insert_pieces): New function.
12922 (vn_nary_op_compute_hash): De-staticify.
12923 (vn_nary_op_eq): Ditto.
12924 (vn_nary_op_lookup_pieces): New function.
12925 (vn_nary_op_lookup): Add new argument.
12926 (vn_nary_op_insert_pieces): New function.
12927 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
12928 (vn_phi_insert): Ditto.
12929 (visit_unary_op): Update for callee changes.
12930 (visit_binary_op): Ditto.
12931 (visit_reference_op_load): Ditto.
12932 (visit_reference_op_store): Ditto.
12933 (init_scc_vn): Init next_value_id, constant_to_value_id and
12934 constant_value_ids.
12935 (free_scc_vn): Free them.
12936 (set_hashtable_value_ids): New function.
12937 (run_scc_vn): Use it.
12938 (get_max_value_id): New function.
12939 (get_next_value_id): Ditto.
12940 (expressions_equal_p): Moved from tree-vn.c
12941 (sort_vuses): Ditto.
12942 (sort_vuses_heap): Ditto.
12943 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
12945 * tree.c (iterative_hash_hashval_t): Made non-static
12946 * tree.h (iterative_hash_hashval_t): Declare it.
12948 2008-07-08 Martin Jambor <mjambor@suse.cz>
12950 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
12951 instead of ipa_create_node_params.
12952 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
12953 ipa_check_create_edge_args, free them with
12954 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
12956 * ipa-prop.c: Include flags.h and tree-inline.h.
12957 (ipa_node_params_vector): New variable.
12958 (ipa_edge_args_vector): New variable.
12959 (edge_removal_hook_holder): New variable.
12960 (node_removal_hook_holder): New variable.
12961 (edge_duplication_hook_holder): New variable.
12962 (node_duplication_hook_holder): New variable.
12963 (ipa_detect_param_modifications): Check for presence of modified flags.
12964 (ipa_compute_jump_functions): Check for presence of jump functions.
12965 (ipa_free_edge_args_substructures): New function.
12966 (ipa_create_node_params): Removed.
12967 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
12968 (ipa_free_node_params_substructures): New function.
12969 (ipa_free_all_node_params): Changed to deallocate the on-the-side
12971 (ipa_edge_removal_hook): New function.
12972 (ipa_node_removal_hook): New function.
12973 (duplicate_array): New function.
12974 (ipa_edge_duplication_hook): New function.
12975 (ipa_node_duplication_hook): New function.
12976 (ipa_register_cgraph_hooks): New function.
12977 (ipa_unregister_cgraph_hooks): New function.
12978 (free_all_ipa_structures_after_ipa_cp): New function.
12980 * ipa-prop.h: Include vec.h.
12981 (ipa_node_params_t): New typedef with vector types for it.
12982 (ipa_edge_args_t): New typedef with vector types for it.
12983 (IPA_NODE_REF): Changed to access an on-the-side vector.
12984 (IPA_EDGE_REF): Changed to access an on-the-side vector.
12985 (ipa_check_create_node_params): New function.
12986 (ipa_check_create_edge_args): New function.
12988 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
12991 2008-07-07 Tom Tromey <tromey@redhat.com>
12993 * configure, config.in: Rebuilt.
12994 * configure.ac: Don't check for scandir or alphasort.
12996 2008-07-07 Joseph Myers <joseph@codesourcery.com>
12998 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
12999 types immediately after creating them.
13001 2008-07-07 Joseph Myers <joseph@codesourcery.com>
13003 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
13005 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
13007 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
13008 dump_constraint_graph.
13009 (dump_constraint_edge): New function.
13010 (dump_constraint_graph): New function.
13011 (debug_constraint_graph): New function.
13012 (dump_constraint): Removed useless comparison.
13013 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
13014 (dump_constraint_graph): Declare.
13015 (debug_constraint_graph): Declare.
13016 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
13018 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
13020 * config/i386/i386.c (is_va_list_char_pointer): New.
13021 (ix86_va_start): Replace compare with ms_va_list_type_node
13022 by is_va_list_char_pointer.
13023 (ix86_gimplify_va_arg): Likewise.
13025 2008-07-07 Martin Jambor <mjambor@suse.cz>
13027 * cgraph.c (cgraph_edge_max_uid): New variable.
13028 (struct cgraph_edge_hook_list): New type.
13029 (struct cgraph_node_hook_list): New type.
13030 (struct cgraph_2edge_hook_list): New type.
13031 (struct cgraph_2node_hook_list): New type.
13032 (first_cgraph_edge_removal_hook): New variable.
13033 (first_cgraph_node_removal_hook): New variable.
13034 (first_cgraph_edge_duplicated_hook): New variable.
13035 (first_cgraph_node_duplicated_hook): New variable.
13036 (cgraph_add_edge_removal_hook): New function.
13037 (cgraph_remove_edge_removal_hook): New function.
13038 (cgraph_call_edge_removal_hooks): New function.
13039 (cgraph_add_node_removal_hook): New function.
13040 (cgraph_remove_node_removal_hook): New function.
13041 (cgraph_call_node_removal_hooks): New function.
13042 (cgraph_add_edge_duplication_hook): New function.
13043 (cgraph_remove_edge_duplication_hook): New function.
13044 (cgraph_call_edge_duplication_hooks): New function.
13045 (cgraph_add_node_duplication_hook): New function.
13046 (cgraph_remove_node_duplication_hook): New function.
13047 (cgraph_call_node_duplication_hooks): New function.
13048 (cgraph_create_edge): Assign to edge uid.
13049 (cgraph_remove_edge): Call edge removal hooks.
13050 (cgraph_node_remove_callees): Call edge removal hooks.
13051 (cgraph_node_remove_callers): Call edge removal hooks.
13052 (cgraph_remove_node): Call node removal hooks.
13053 (cgraph_clone_edge): Call edge duplication hooks.
13054 (cgraph_clone_node): Call node duplication hooks.
13056 * cgraph.h (cgraph_edge): New field uid.
13057 (cgraph_edge_hook): New type.
13058 (cgraph_node_hook): New type.
13059 (cgraph_2edge_hook): New type.
13060 (cgraph_2node_hook): New type.
13062 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
13064 * config.in: Regenerate.
13066 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
13068 * gcc.c (print_sysroot): New.
13069 (option_map, display_help, process_command): Handle the
13070 -print-sysroot option.
13071 (main): Print the sysroot if requested.
13072 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
13074 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13077 * unwind-pe.h (size_of_encoded_value): add attribute unused.
13079 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
13081 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
13082 (assign_parm_setup_block_p): Also check mode of entry_parm.
13084 2008-07-07 Richard Guenther <rguenther@suse.de>
13086 * tree-ssa-structalias.h (set_used_smts): Remove.
13087 * tree-ssa-structalias.c (used_smts): Likewise.
13088 (set_used_smts): Likewise.
13089 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
13090 call to set_used_smts.
13092 2008-07-07 Richard Guenther <rguenther@suse.de>
13094 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
13095 (new_var_info): Set it to false.
13096 (solution_set_add): Correctly handle pointers outside a var and
13098 (type_safe): Treat variables with is_full_var properly.
13099 (do_sd_constraint): Likewise.
13100 (do_ds_constraint): Likewise.
13101 (process_constraint): Remove zeroing offset for !use_field_sensitive.
13102 (get_constraint_for_ptr_offset): New function.
13103 (get_constraint_for_component_ref): For addresses at least include
13104 the last field of the variable. Handle is_full_vars properly.
13105 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
13106 (handle_ptr_arith): Remove.
13107 (find_func_aliases): Simplify assignment handling.
13108 (create_function_info_for): For parameter and result varinfos set
13110 (create_variable_info_for): Set is_full_var flag whenever we
13111 just created a single varinfo for a decl.
13112 (init_alias_vars): Initialize use_field_sensitive from
13113 max-fields-for-field-sensitive parameter.
13115 2008-07-07 Richard Guenther <rguenther@suse.de>
13117 PR tree-optimization/36713
13118 * tree-flow-inline.h (is_call_used): New function.
13119 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
13120 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13121 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
13123 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
13125 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
13127 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
13129 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
13131 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
13132 Nathan Sidwell <nathan@codesourcery.com>
13134 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
13135 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
13137 * config/m68k/t-linux: New.
13138 * doc/install.texi: Document m68k-*-linux is now multilibbed by
13141 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
13143 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
13144 * config/m68k/m68k-devices.def: Remove multilibs that only differ
13147 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13149 * gcc.c (execute): Fix -Wc++-compat warning.
13151 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
13154 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
13155 constant for little endian.
13157 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
13159 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
13160 mips_base_mips16 instead of TARGET_MIPS16.
13161 (mips_base_mips16): Declare.
13162 * config/mips/mips.c (mips_base_mips16): Make global.
13163 (was_mips16_p): Remove GTY marker.
13164 (was_mips16_pch_p): New variable.
13165 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
13166 (mips_override_options): Force to non-MIPS16 mode initially.
13167 Do not complain about MIPS16 PIC incompatibilities here.
13168 Only allow -mgpopt if -mexplicit-relocs is in force for
13171 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
13173 * configure.ac: Check for caddr_t, define to char * if not defined.
13174 * configure: Regenerate.
13175 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
13176 (mmap_gt_pch_use_address): Likewise.
13177 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
13179 2008-07-06 Richard Guenther <rguenther@suse.de>
13181 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
13182 (new_var_info): Deal with it.
13183 (solution_set_add): Likewise.
13184 (bitpos_of_field): Make signed, fix.
13185 (struct fieldoff): Remove type and decl fields. Make size field
13186 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
13188 (fieldoff_compare): Deal with it.
13189 (push_fields_onto_fieldstack): Remove has_union argument, glob
13190 adjacent non-pointer fields together.
13191 (create_function_info_for): Do not set has_union.
13192 (create_variable_info_for): Simplify.
13194 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
13196 * config.gcc (extra_headers): Add cross-stdarg.h for target
13197 x86_64-*-* and i?86-*-*.
13198 * config/i386/cross-stdarg.h: New.
13199 * builtins.c (std_fn_abi_va_list): New.
13200 (std_canonical_va_list_type): New.
13201 (stabilize_va_list): Replace va_list_type_node use by
13202 mtarget.canonical_va_list_type.
13203 (gimplify_va_arg_expr): Likewise.
13204 (expand_builtin_va_copy): Replace va_list_type_node use by
13205 mtarget.fn_abi_va_list.
13206 * tree-sra.c (is_va_list_type): New helper.
13207 (decl_can_be_decomposed_p): Replace
13208 va_list_type_node use by is_va_list_type.
13209 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
13210 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13211 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
13212 * config/i386/i386-protos.h (ix86_get_valist_type): New.
13213 (ix86_enum_va_list): New.
13214 * config/i386/i386.c (sysv_va_list_type_node): New.
13215 (ms_va_list_type_node): New.
13216 (ix86_function_type_abi): Remove sorry.
13217 (ix86_build_builtin_va_list_abi): New.
13218 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
13219 for 64-bit targets.
13220 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
13221 (ix86_init_builtins_va_builtins_abi): New.
13222 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
13223 for 64-bit targets.
13224 (ix86_handle_abi_attribute): New.
13225 (attribute_spec): Add sysv_abi and ms_abi.
13226 (ix86_fn_abi_va_list): New.
13227 (ix86_canonical_va_list_type): New.
13228 (ix86_enum_va_list): New.
13229 (TARGET_FN_ABI_VA_LIST): New.
13230 (TARGET_CANONICAL_VA_LIST_TYPE): New.
13231 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
13232 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
13233 (TARGET_CANONICAL_VA_LIST_TYPE): New.
13234 (TARGET_ENUM_VA_LIST): New.
13235 * expr.h (std_fn_abi_va_list): New.
13236 (std_canonical_va_list_type): New.
13237 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
13238 (TARGET_CANONICAL_VA_LIST_TYPE): New.
13239 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
13240 TARGET_CANONICAL_VA_LIST_TYPE.
13241 * target.h (struct gcc_target): Add fn_abi_va_list hook
13242 and canonical_va_list_type hook.
13244 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
13246 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
13247 integral and pointer types.
13249 2008-07-04 Roger Sayle <roger@eyesopen.com>
13251 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
13252 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
13254 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
13257 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
13259 2008-07-04 Jakub Jelinek <jakub@redhat.com>
13261 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
13262 build_gimple_modify_stmt.
13263 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
13264 gimple operand. Use fold_build* instead of build*.
13266 2008-07-04 Richard Guenther <rguenther@suse.de>
13268 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
13269 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
13270 properly to compute the reachability set if we do field-sensitive PTA.
13271 * invoke.texi (max-fields-for-field-sensitive): Document default.
13272 * opts.c (decode_options): Set max-fields-for-field-sensitive to
13273 100 for optimize >= 2.
13275 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13277 * ggc-zone.c (lookup_page_table_if_allocated,
13278 set_page_table_entry, zone_find_object_size, alloc_small_page,
13279 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
13280 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
13281 -Wc++-compat and/or -Wcast-qual warnings.
13283 2008-07-04 Alan Modra <amodra@bigpond.net.au>
13286 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
13287 pic_offset_table_rtx to be marked as used here.
13288 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
13289 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
13290 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
13291 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
13292 !TARGET_SECURE_PLT.
13294 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13296 * alloc-pool.c (hash_descriptor, eq_descriptor,
13297 alloc_pool_descriptor): Fix -Wc++-compat warnings.
13298 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
13300 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
13301 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
13302 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
13303 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
13306 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
13308 * tree-flow.h (loop_only_exit_p): Declare.
13309 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
13310 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
13311 the number of iterations if it is constant. Otherwise, if this is the
13312 only possible exit of the loop, use the conservative estimate on the
13313 number of iterations of the entire loop if available.
13315 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
13317 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
13318 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
13319 Add synchronization functions.
13320 * config/sync.c: New file.
13321 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
13322 (LIBGCC_SYNC_CFLAGS): Likewise.
13324 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
13327 * config/i386/i386.md (mode): Add TF to "mode" attribute.
13328 (*pushtf_sse): New insn pattern.
13329 (pushtf splitters): New splitters.
13331 2008-07-03 Michael Meissner <gnu@the-meissners.org>
13333 PR middle-end/35736
13334 * predict.c (build_predict_expr): Use void_type_node for the tree
13335 type, instead of NULL_TREE.
13337 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
13339 * config/i386/i386.c (contains_aligned_value_p): Return true
13341 (ix86_data_alignment): Align TCmode to 128bits.
13342 (ix86_local_alignment): Likewise.
13344 2008-07-03 Andrew Haley <aph@redhat.com>
13347 * vec.h (VEC_TA): New.
13348 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
13349 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
13350 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
13351 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
13352 (C_COMMON_FIXED_TYPES): Remove first arg.
13353 (C_COMMON_FIXED_MODE_TYPES): Likewise.
13354 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
13355 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
13356 not to use empty macro arguments.
13358 2008-07-02 Joseph Myers <joseph@codesourcery.com>
13360 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
13361 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
13362 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
13363 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
13364 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
13365 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
13366 config/ia64/crtn.asm, config/m68hc11/larith.asm,
13367 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
13368 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
13369 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
13370 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
13371 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
13372 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
13373 config/rs6000/e500crtres64gpr.asm,
13374 config/rs6000/e500crtres64gprctr.asm,
13375 config/rs6000/e500crtrest32gpr.asm,
13376 config/rs6000/e500crtrest64gpr.asm,
13377 config/rs6000/e500crtresx32gpr.asm,
13378 config/rs6000/e500crtresx64gpr.asm,
13379 config/rs6000/e500crtsav32gpr.asm,
13380 config/rs6000/e500crtsav64gpr.asm,
13381 config/rs6000/e500crtsav64gprctr.asm,
13382 config/rs6000/e500crtsavg32gpr.asm,
13383 config/rs6000/e500crtsavg64gpr.asm,
13384 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
13385 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
13386 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
13387 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
13388 config/sparc/sol2-cn.asm: Remove .file directives.
13390 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
13392 * resource.c (mark_referenced_resources): Look inside
13393 UNSPEC_VOLATILEs and ASM_INPUTs.
13395 2008-07-02 Ian Lance Taylor <iant@google.com>
13397 * rtlanal.c (add_reg_note): New function.
13398 * rtl.h (add_reg_note): Declare.
13399 * auto-inc-dec.c (attempt_change): Use add_reg_note.
13400 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
13401 * builtins.c (expand_builtin_longjmp): Likewise.
13402 (expand_builtin_nonlocal_goto): Likewise.
13403 * calls.c (emit_call_1, expand_call): Likewise.
13404 * cfgexpand.c (add_reg_br_prob_note): Likewise.
13405 * cfglayout.c (fixup_reorder_chain): Likewise.
13406 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13407 (commit_one_edge_insertion): Likewise.
13408 * combine.c (move_deaths, distribute_notes): Likewise.
13409 * df-problems.c (df_set_note): Likewise.
13410 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
13411 (set_unique_reg_note): Likewise.
13412 (emit_copy_of_insn_after): Likewise.
13413 * expr.c (expand_expr_real): Likewise.
13414 * gcse.c (add_label_notes): Likewise.
13415 * haifa-sched.c (create_check_block_twin): Likewise.
13416 * jump.c (mark_jump_label_1): Likewise.
13417 * loop-doloop.c (add_test, doloop_modify): Likewise.
13418 * loop-unswitch.c (compare_and_jump_seq): Likewise.
13419 * lower-subreg.c (move_eh_region_note): Likewise.
13420 * optabs.c (emit_libcall_block): Likewise.
13421 * predict.c (predict_insn): Likewise.
13422 (combine_predictions_for_insn): Likewise.
13423 * recog.c (peephole2_optimize): Likewise.
13424 * regmove.c (try_auto_increment): Likewise.
13425 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
13426 * reload.c (find_reloads): Likewise.
13427 * reload1.c (fixup_eh_region_note): Likewise.
13428 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
13429 * reorg.c (delete_prior_computation): Likewise.
13430 (delete_computation, dbr_schedule): Likewise.
13431 * config/pa/pa.c (legitimize_pic_address): Likewise.
13432 * config/sh/sh.c (sh_reorg): Likewise.
13434 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
13437 * config/libgcc-glibc.ver: Add %exclude.
13438 * config/m32r/libgcc-glibc.ver: Likwise.
13439 * config/s390/libgcc-glibc.ver: Likwise.
13440 * config/sh/libgcc-glibc.ver: Likwise.
13441 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
13443 * config/i386/libgcc-glibc.ver: New.
13445 * config/i386/libgcc-x86_64-glibc.ver: Removed.
13447 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
13449 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
13450 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
13451 i[34567]86-*-linux*, x86_64-*-linux*. Add
13452 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
13453 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
13454 x86_64-*-linux*. Add i386/t-linux to tmake_file for
13455 i[34567]86-*-linux*, x86_64-*-linux*.
13457 * libgcc-std.ver: Add empty GCC_4.4.0.
13459 * mkmap-symver.awk: Support multiple versions per symbol.
13461 * config/i386/i386.c (ix86_init_builtins): Always define
13462 __builtin_fabsq and __builtin_copysignq with fallbacks.
13463 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
13464 and __builtin_copysignq if SSE2 isn't available.
13466 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
13467 (LIBGCC2_TF_CEXT): Likwise.
13468 (TF_SIZE): Likwise.
13470 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
13472 * config/i386/sfp-machine.h: Moved to libgcc.
13474 * config/i386/sfp-machine.h: New.
13475 * config/i386/t-linux: Likwise.
13477 * config/i386/t-darwin: Remove softfp_wrap_start and
13479 * config/i386/t-darwin64: Likewise.
13481 * config/i386/t-fprules-softfp64: Renamed to ...
13482 * config/i386/t-fprules-softfp: This.
13484 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
13485 and softfp_wrap_end.
13487 2008-07-02 Jason Merrill <jason@redhat.com>
13489 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
13491 * tree.c (ctor_to_list): New fn.
13492 * tree.h: Declare it.
13493 (CONSTRUCTOR_ELT): New macro.
13494 (CONSTRUCTOR_NELTS): New macro.
13496 2008-07-02 Richard Guenther <rguenther@suse.de>
13498 * tree-ssa-structalias.c (struct variable_info): Reorder
13499 to fill padding on 64bit hosts. Make collapsed_to an int.
13500 (get_varinfo_fc): Deal with that.
13501 (new_var_info): Likewise.
13502 (collapse_rest_of_var): Likewise.
13504 2008-07-02 Joshua Sumali <jsumali@redhat.com>
13506 * doc/install.texi (--enable-java-home): Document.
13507 (--enable-aot-compile-rpm): Likewise.
13508 (--with-arch-directory): Likewise.
13509 (--with-os-directory): Likewise.
13510 (--with-origin-name): Likewise.
13511 (--with-arch-suffix): Likewise.
13512 (--with-jvm-root-dir): Likewise.
13513 (--with-jvm-jar-dir): Likewise.
13514 (--with-python-dir): Likewise.
13516 2008-07-02 Richard Guenther <rguenther@suse.de>
13518 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
13519 from decls explicitly. Merge operand checking from tuples.
13521 2008-07-02 Martin Jambor <mjambor@suse.cz>
13523 * tree-switch-conversion.c: Included timevar.h which I forgot before.
13525 2008-07-02 Martin Jambor <mjambor@suse.cz>
13527 * tree-switch-conversion.c: Included timevar.h
13528 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
13530 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
13532 2008-07-02 Martin Jambor <mjambor@suse.cz>
13534 * tree-switch-conversion.c: Corrected various comments and
13536 (build_constructors): Fixed minor formatting mistakes.
13538 * invoke.texi (Optimize Options): Corrected the
13539 switch-conversion-max-branch-ratio parameter.
13541 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
13543 * final.c (asm_insn_count): Return zero for an empty asm body.
13545 2008-07-02 Richard Guenther <rguenther@suse.de>
13547 * bitmap.h (bitmap_set_bit): Return bool.
13548 (bitmap_clear_bit): Likewise.
13549 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
13550 write to the bitmap if it would.
13551 (bitmap_clear_bit): Likewise.
13552 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
13553 bitmap_set_bit return value.
13554 (add_pred_graph_edge): Likewise.
13555 (add_graph_edge): Likewise.
13556 (do_sd_constraint): Likewise.
13557 (do_ds_constraint): Likewise.
13559 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13561 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
13562 Fix -Wc++-compat and/or -Wcast-qual warnings.
13563 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
13564 gen_regparm_prefix): Likewise.
13565 * vmsdbgout.c (write_modbeg, lookup_filename,
13566 vmsdbgout_source_line, vmsdbgout_init): Likewise.
13568 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
13570 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
13571 defaults.h definition apply.
13573 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
13575 * function.c (assign_parm_remove_parallels): New.
13576 (assign_parm_setup_block_p): Do not return true for non-BLKmode
13578 (assign_parm_setup_block): Do not handle them.
13579 (assign_parm_setup_reg, assign_parm_setup_stack): Call
13580 assign_parm_remove_parallels.
13582 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
13584 * c-typeck.c (convert_for_assignment): Use
13585 vector_targets_convertible_p.
13586 * c-common.c (vector_targets_convertible_p): New.
13587 * c-common.h (vector_targets_convertible_p): New prototype.
13588 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
13589 opaque_p_V2SI_type_node.
13591 2008-07-01 Steve Ellcey <sje@cup.hp.com>
13593 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
13596 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
13598 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
13599 TFmode constants via two element DImode vector for hosts with
13600 HOST_BITS_PER_WIDE_INT < 64.
13601 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
13602 also for HOST_BITS_PER_WIDE_INT < 64.
13604 2008-07-01 Richard Guenther <rguenther@suse.de>
13606 PR tree-optimization/36666
13607 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
13608 (get_constraint_exp_from_ssa_var): Split into ...
13609 (get_constraint_exp_for_temp): ... this ...
13610 (get_constraint_for_ssa_var): ... and that.
13611 Return constraint expressions for all touched sub-fields
13612 if the results address is not taken.
13613 (process_constraint): Remove assertion that aggregate
13614 assignments do not happen at this place.
13615 (get_constraint_for_component_ref): Add address_p argument.
13616 Return constraint expressions for all touched sub-fields
13617 if the results address is not taken.
13618 (do_deref): Use get_constraint_exp_for_temp.
13619 (get_constraint_for_1): Rename from ...
13620 (get_constraint_for): ... this. Add the old function as wrapper.
13621 (do_structure_copy): Use get_constraint_for_1.
13623 2008-07-01 Martin Jambor <mjambor@suse.cz>
13625 * Makefile.in (tree-switch-conversion.o): Add.
13626 (OBJS-common): Add tree-swtch-conversion.o.
13627 * passes.c (init_optimization_passes): Add pass_convert_switch.
13628 * tree-pass.h: (pass_convert_switch): Add.
13629 * tree-switch-conversion.c: New file.
13630 * gcc.dg/tree-ssa/cswtch.c: New testcase.
13631 * common.opt (ftree-cswtch): New option.
13632 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
13633 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
13634 * opts.c (decode_options): Set flag_tree_switch_conversion when
13635 optimization level is >= 2.
13636 * doc/invoke.texi (Optimize Options): Added description of
13637 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
13639 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13641 * config/darwin-driver.c (darwin_default_min_version): Fix
13642 -Wc++-compat warnings.
13644 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
13646 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
13649 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
13651 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
13653 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
13655 PR rtl-optimization/34744
13656 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
13657 (df_scan_free_internal): Free data structures not
13658 allocated in storage pools.
13659 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
13660 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
13661 df_scan_free_mws_vec.
13662 * dse.c (dse_step6): Free offset_map_p and offset_map_n
13665 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
13667 * config/i386/i386.c (contains_aligned_value_p): Return true
13669 (ix86_function_arg_boundary): Return its natural boundary
13671 (return_in_memory_32): Don't check TDmode.
13672 (ix86_split_to_parts): Support splitting into 4 parts and
13673 support TFmode for 32bit target.
13674 (ix86_split_long_move): Support splitting into 4 parts.
13675 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
13677 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
13678 (ix86_init_builtins): Here.
13679 (ix86_scalar_mode_supported_p): Always return true for TFmode.
13680 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
13681 'q' and 'w', respectively.
13683 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
13685 (movtf_internal): Likewise.
13686 (<code>tf2): Likewise.
13687 (*absnegtf2_sse): Likewise.
13688 (copysign<mode>3): Likewise.
13689 (copysign<mode>3_const): Likewise.
13690 (copysign<mode>3_var): Likewise.
13691 (define_split UNSPEC_COPYSIGN): Likewise.
13692 * config/i386/sse.md (*nandtf3): Likewise.
13693 (<code>tf3): Likewise.
13694 (*<code>tf3): Likewise.
13696 2008-06-30 Joey Ye <joey.ye@intel.com>
13697 H.J. Lu <hongjiu.lu@intel.com>
13699 * global.c (compute_regsets): Set frame_pointer_needed here.
13700 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
13702 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
13704 * doc/install.texi (specific): Expand Windows build notes.
13706 2008-06-30 Ira Rosen <irar@il.ibm.com>
13708 PR tree-optimization/36648
13709 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
13710 number of prolog iterations by step. Fix the comment.
13712 2008-06-30 Richard Guenther <rguenther@suse.de>
13714 PR middle-end/36671
13715 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
13716 handle calls from ECF_MALLOC functions.
13717 (handle_pure_call): ECF_MALLOC functions do not return
13719 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
13721 2008-06-29 Andreas Schwab <schwab@suse.de>
13723 * config/m68k/m68k.c (print_operand): Always print a float
13725 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
13726 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
13729 * config/rs6000/x-linux64: Remove never used file.
13731 2008-06-29 Richard Guenther <rguenther@suse.de>
13733 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
13735 (struct alias_info): Move ...
13736 * tree-ssa-alias.c: ... here.
13737 (update_alias_info): Declare.
13738 (compute_may_aliases): Call it.
13739 (update_alias_info): New function.
13740 * tree-ssa-structalias.c (update_alias_info): Move ...
13741 * tree-ssa-alias.c (update_alias_info_1): ... here.
13742 * tree-ssa-structalias.c (process_constraint_1): Remove
13743 unused from_call argument. Rename to ...
13744 (process_constraint): ... this. Delete old wrapper.
13745 (make_constraint_to): Adjust callers.
13746 (handle_const_call): Likewise.
13747 (handle_pure_call): Likewise.
13748 (init_base_vars): Likewise.
13749 (handle_lhs_call): Likewise. Remove unnecessary constraint.
13750 (find_func_aliases): We don't need structure copies for
13752 (make_constraint_from_anything): Remove.
13753 (create_variable_info_for): For globals make constraints
13754 from escaped, not from anything.
13755 (compute_points_to_sets): Do not call update_alias_info.
13756 (ipa_pta_execute): Use make_constraint_from.
13758 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13760 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
13761 (bitmap.o-warn, dominance.o-warn): New.
13762 * configure.ac (cxx_compat_warn): Delete.
13763 (loose_warn): Add -Wcast-qual and -Wc++-compat.
13764 * system.h: Remove #pragma diagnostic for -Wcast-qual and
13766 * configure: Regenerate.
13768 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
13771 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13773 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
13774 * df-scan.c (df_notes_rescan): Likewise.
13775 * ggc-page.c (set_page_table_entry): Likewise.
13776 * intl.c (gcc_gettext_width): Likewise.
13777 * varasm.c (get_unnamed_section, get_noswitch_section,
13778 get_section): Likewise.
13780 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
13782 * regrename.c (build_def_use): Don't copy RTX.
13784 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
13786 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
13787 (Type Attributes): Fix nesting of @table and @subsection. Adjust
13788 punctuation. Use @ref instead of @xref.
13789 (Function Names): Remove stray @display/@end display.
13790 (C++ Attributes): Use @ref instead of @xref.
13791 (Deprecated Features): Fix punctuation around @xref.
13792 (Backwards Compatibility): Likewise.
13793 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
13795 2008-06-28 Joseph Myers <joseph@codesourcery.com>
13797 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
13798 constants for E500 double.
13800 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13802 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
13803 element type of const_vector.
13805 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
13807 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
13808 Remove FLAGS_REG clobber from expander pattern.
13809 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
13810 (anddi3, andsi3, andhi3, andqi3): Ditto.
13811 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
13812 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
13813 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
13814 (ashlsi3, ashlhi3, ashlqi3): Ditto.
13815 (ashrsi3, ashrhi3, ashrqi3): Ditto.
13816 (lshrsi3, lshrhi3, lshrqi3): Ditto.
13817 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
13818 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
13820 2008-06-28 Richard Guenther <rguenther@suse.de>
13822 * tree-ssa-structalias.c (callused_id, var_callused,
13823 callused_tree): Add.
13824 (handle_pure_call): New function.
13825 (find_func_aliases): Call it.
13826 (find_what_p_points_to): Handle the call-used set.
13827 (clobber_what_escaped): Likewise.
13828 (compute_call_used_vars): New function.
13829 (init_base_vars): Init the call-used variable.
13830 (do_sd_constraint): Do not propagate the solution from CALLUSED
13831 but use CALLUSED as a placeholder.
13832 (solve_graph): Likewise.
13833 * tree-flow-inline.h (gimple_call_used_vars): New function.
13834 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
13835 (compute_call_used_vars): Declare.
13836 * tree-ssa-alias.c (set_initial_properties): Call
13837 compute_call_used_vars.
13838 (reset_alias_info): Clear call-used variables.
13839 (add_call_clobber_ops): Assert we are not called for const/pure
13840 functions. Remove handling of them.
13841 (add_call_read_ops): Handle pure functions by adding the
13842 call-used set of variables as VUSEs.
13843 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
13844 (delete_tree_ssa): Free it.
13845 * tree-dfa.c (remove_referenced_var): Clear the var from the
13848 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
13850 * tree.c (build_varargs_function_type_list): New.
13851 (build_function_type_list_1): New.
13852 (build_function_type_list): Use build_function_type_list_1.
13853 * tree.h (build_varargs_function_type_list): New.
13855 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13858 * config/spu/spu.c (spu_builtin_splats): Do not generate
13859 invalid CONST_VECTOR expressions.
13860 (spu_expand_vector_init): Likewise.
13862 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
13864 * optabs.c (libfunc_decls): New variable.
13865 (libfunc_decl_hash, libfunc_decl_eq): New functions.
13866 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
13867 for the same function twice.
13869 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
13871 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
13872 ix86_expand_binary_operator directly.
13873 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
13875 (*ashrti3_1): Ditto.
13876 (*lshrti3_1): Ditto.
13877 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
13878 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
13879 using only one splitter. Conditionaly execute splitter before or
13880 after peephole2 pass.
13881 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
13882 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
13883 Use only one alternative in asm template.
13884 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
13886 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
13887 "J" operand constraint for operand 2.
13888 (*ashldi3_cconly_rex64): Ditto.
13889 (*ashrdi3_cmp_rex64): Ditto.
13890 (*ashrdi3_cconly_rex64): Ditto.
13891 (*lshrdi3_cmp_rex64): Ditto.
13892 (*lshrdi3_cconly_rex64): Ditto.
13893 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
13894 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
13895 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
13898 2008-06-27 Jakub Jelinek <jakub@redhat.com>
13900 * gimplify.c (omp_is_private): Don't return true if decl is not
13901 already private on #pragma omp for or #pragma omp parallel for.
13904 * tree-cfg.c (struct move_stmt_d): Replace block field with
13905 orig_block and new_block fields.
13906 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
13907 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
13908 (move_block_to_fn): Replace vars_map and new_label_map arguments
13909 with struct move_stmt_d pointer.
13910 (replace_block_vars_by_duplicates): New function.
13911 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
13912 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
13913 all subblocks of ORIG_BLOCK to the new function. Call
13914 replace_block_vars_by_duplicates.
13915 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
13916 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
13917 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
13918 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
13919 (expand_omp): Temporarily set input_location to the location of
13920 region's controlling stmt.
13921 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
13922 BIND_EXPR, push ctx->block_vars and gimplification vars into
13923 the BIND_EXPR and its block's BLOCK_VARS instead of directly
13924 into dest function.
13925 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
13926 there are any BLOCK_VARS.
13927 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
13928 OMP_PARALLEL or OMP_TASK stmt.
13929 (lower_omp): Save and restore input_location around the lower_omp_1
13932 2008-06-27 Richard Guenther <rguenther@suse.de>
13934 PR tree-optimization/36400
13935 PR tree-optimization/36373
13936 PR tree-optimization/36344
13937 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
13938 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
13939 (update_alias_info): Remove call clobbering code.
13940 (make_constraint_to): New helper function.
13941 (make_escape_constraint): Likewise.
13942 (handle_rhs_call): Use it on all pointer containing arguments.
13943 Also mark the static chain escaped.
13944 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
13945 instead of ANYTHING.
13946 (make_constraint_from): New helper split out from ...
13947 (make_constraint_from_anything): ... here.
13948 (find_func_aliases): Add constraints for escape sites.
13949 (intra_create_variable_infos): Make constraints from NONLOCAL
13951 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
13953 (clobber_what_p_points_to): Remove.
13954 (clobber_what_escaped): New function.
13955 (init_base_vars): Init NONLOCAL and ESCAPED.
13956 (do_sd_constraint): Do not propagate the solution from ESCAPED
13957 but use ESCAPED as a placeholder.
13958 (solve_graph): Likewise.
13959 * tree-flow.h (clobber_what_p_points_to): Remove.
13960 (clobber_what_escaped): Declare.
13961 * tree-ssa-alias.c (set_initial_properties): Call it.
13962 Remove code clobbering escaped pointers.
13964 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
13966 * function.c (allocate_struct_function): Only allocate a unique
13967 funcdef_no if the decl is nonzero.
13969 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
13971 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
13972 * config/mips/mips.c (mips_split_const_insns): New function.
13973 * config/mips/mips.md (move_type): New attribute.
13974 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
13975 (dword_mode): New attribute.
13976 (type): Avoid long line. Map "move_type"s to "type"s,
13977 choosing "multi" for doubleword moves if appropriate.
13978 Swap MTC/MFC comments to match their declaration order.
13979 (extended_mips16): Default to "yes" if "move_type" is "sll0",
13980 "type" is "branch" or "jal" is "direct".
13981 (length): Handle "extended_mips16" first. Make the default
13982 "0" for "ghost" instructions. Set the length from "move_type".
13983 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
13984 of "type", with "sll0" for the register alternative. Remove the
13985 "extended_mips16" attribute.
13986 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
13987 of "type", with "shift_shift" for the register alternative.
13988 Remove the "length" attribute.
13989 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
13990 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
13991 of "type", with "andi" for the register alternative.
13992 (*zero_extendqihi2): Likewise.
13993 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
13994 of "andi" instead of a "type" of "arith".
13995 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
13997 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
13998 (mov_<store>r, *mov<mode>_ra): Likewise.
13999 (extendsidi2): Use "move_type" instead of "type", with "move"
14000 for the register alternative.
14001 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
14002 of "type", with "signext" for the register alternative.
14003 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
14004 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
14005 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
14006 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
14007 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
14008 (unnamed branch insn): Likewise.
14009 (*movdi_gp32_fp64): Fold into...
14010 (*movdi_32bit): ...here.
14011 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
14012 (*movdf_hardfloat): ...this new pattern.
14013 (*movdf_softfloat): Remove redundant FPR alternatives.
14014 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
14015 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
14016 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
14017 the "move" attribute.
14018 (*movdi_32bit): Use "move_type" instead of "type" and remove the
14019 "length" attribute. Use "fpload" and "fpstore" instead of "load"
14020 and "store" for COP loads and stores.
14021 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
14022 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
14023 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
14024 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
14025 (*movtf_mips16, *movv2sf): Likewise.
14026 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
14027 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
14028 (mfhc1<mode>): Use "move_type" instead of "move".
14029 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
14030 (loadgp_blockage): Remove the "length" attribute.
14031 (blockage, set_got_version, update_got_version): Likewise.
14032 (call_internal): Remove the "extended_mips16" attribute.
14033 (call_value_internal, call_value_multiple_internal): Likewise.
14034 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
14036 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
14037 the "length" attribute.
14039 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14041 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
14042 -Wcast-qual warnings.
14043 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
14044 handle_pragma_pop_macro): Likewise.
14045 * collect2.c (resolve_lib_name): Likewise.
14046 * config/arc/arc.c (arc_init): Likewise.
14047 * config/arm/arm.c (neon_builtin_compare,
14048 locate_neon_builtin_icode): Likewise.
14049 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
14050 * config/bfin/bfin.c (bfin_init_machine_status,
14051 bfin_optimize_loop): Likewise.
14052 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
14053 * config/cris/cris.c (cris_init_expanders): Likewise.
14054 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
14055 * config/darwin.c (machopic_indirection_eq,
14056 machopic_indirection_name, machopic_output_indirection): Likewise.
14057 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
14058 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
14059 frv_optimize_membar): Likewise.
14060 * config/i386/cygwin.h (mingw_scan,
14061 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
14062 * config/i386/cygwin1.c (mingw_scan): Likewise.
14063 * config/i386/i386.c (machopic_output_stub): Likewise.
14064 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
14065 i386_pe_unique_section): Likewise.
14066 * config/ia64/ia64.c (ia64_init_machine_status,
14067 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
14069 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
14070 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
14071 * config/m68k/m68k.c (m68k_handle_option,
14072 m68k_sched_md_init_global): Likewise.
14073 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
14074 mcore_unique_section): Likewise.
14075 * config/mips/mips.c (mips_block_move_straight,
14076 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
14078 * config/mmix/mmix.c (mmix_init_machine_status,
14079 mmix_encode_section_info): Likewise.
14080 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
14081 * config/rs6000/rs6000.c (rs6000_init_machine_status,
14082 print_operand_address, output_toc, redefine_groups,
14083 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
14084 * config/s390/s390.c (s390_init_machine_status): Likewise.
14085 * config/score/score.c (score_block_move_straight,
14086 score_block_move_loop_body): Likewise.
14087 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
14088 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
14089 * emit-rtl.c (find_auto_inc): Likewise.
14090 * gcc.c (translate_options, process_command): Likewise.
14091 * reorg.c (dbr_schedule): Likewise.
14092 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
14093 * xcoffout.c (xcoffout_declare_function): Likewise.
14095 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
14097 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
14098 ipa-pta working again.
14100 2008-06-27 David Edelsohn <edelsohn@gnu.org>
14102 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
14105 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
14107 * config.gcc (powerpc*-*-*): Add new core e500mc.
14108 * config/rs6000/e500mc.md: New file.
14109 * config/rs6000/rs6000.c (processor_costs): Add new costs for
14111 (rs6000_override_options): Add e500mc case to
14112 processor_target_table. Altivec and Spe options not allowed
14113 with e500mc. Add isel instruction to e500mc by
14114 default. Initialize rs6000_cost for e500mc.
14115 (rs6000_issue_rate): Set issue rate for e500mc.
14116 * config/rs6000/rs6000.h (processor_type): Add
14117 PROCESSOR_PPCE500MC.
14118 (ASM_CPU_SPEC): Add e500mc.
14119 Set TARGET_ISEL to rs6000_isel.
14120 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
14121 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
14122 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
14124 * doc/invoke.texi: Add e500mc to list of cpus.
14126 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14129 * c-lex.c (lex_charconst): Initialize unsignedp.
14131 2008-06-27 Olivier Hainque <hainque@adacore.com>
14133 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
14134 documented assumptions.
14136 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
14138 * dwarf2out.c: Remove trailing white spaces. Break long line
14141 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
14143 * libfuncs.h (LTI_synchronize): New libfunc_index.
14144 (synchronize_libfunc): Declare.
14145 * builtins.c (expand_builtin_synchronize): Consider using
14146 synchronize_libfunc before falling back on an asm blockage.
14147 * config/mips/mips.c: Include libfuncs.h
14148 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
14150 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
14152 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
14153 parameter. Copy stack_reg to r11 where appropriate.
14154 (no_global_regs_above): Add gpr parameter.
14155 (rs6000_stack_info): Only add padding for SPE save area if we
14156 are saving SPE GPRs and CR.
14157 (saveres_routine_syms): New variable.
14158 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
14160 (rs6000_savres_routine_sym): New function.
14161 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
14163 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
14164 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
14165 Tweak FPR out-of-line saving.
14166 (rs6000_make_savres_rtx): New function.
14167 (rs6000_use_multiple_p): New function.
14168 (rs6000_savres_strategy): New function.
14169 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
14170 out-of-line if appropriate.
14171 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
14172 if we are optimizing for size.
14173 (GP_SAVE_INLINE): Define.
14174 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
14175 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
14176 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
14177 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
14178 (*save_fpregs_<mode>): Add use of r11.
14179 (*restore_gpregs_<mode>): New insn.
14180 (*return_and_restore_gpregs_<mode>): New insn.
14181 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
14183 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
14184 (*restore_gpregs_spe): New insn.
14185 (*return_and_restore_gpregs_spe): New insn.
14186 * config/rs6000/predicates.md (save_world_operation): Fix check.
14188 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
14190 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
14191 this point, so assert that.
14193 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
14195 * cfganal.c: Include vec.h and vecprim.h.
14196 (compute_idf): Import from...
14197 * tree-into-ssa (compute_idf): ...here.
14198 * basic-block.h (compute_idf): Export.
14200 2008-06-26 Joseph Myers <joseph@codesourcery.com>
14202 * c-decl.c (merge_decls): Use !current_function_decl to check for
14203 extern declaration of C99 inline function being at file scope.
14205 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
14207 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
14209 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14211 * alias.c (record_alias_subset, init_alias_analysis): Fix
14212 -Wc++-compat and/or -Wcast-qual warnings.
14213 * attribs.c (lookup_attribute_spec): Likewise.
14214 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
14215 copy_bb, connect_traces,
14216 find_rarely_executed_basic_blocks_and_cr): Likewise.
14217 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
14218 note_btr_set, migrate_btr_defs): Likewise.
14219 * builtins.c (result_vector, expand_builtin_memcpy,
14220 expand_builtin_mempcpy_args, expand_builtin_strncpy,
14221 builtin_memset_read_str, expand_builtin_printf,
14222 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
14224 * caller-save.c (mark_set_regs): Likewise.
14225 * calls.c (expand_call, emit_library_call_value_1): Likewise.
14226 * cgraph.c (cgraph_edge): Likewise.
14227 * combine.c (likely_spilled_retval_1): Likewise.
14228 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
14229 htab_counts_entry_del, get_coverage_counts): Likewise.
14230 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
14231 new_cselib_val): Likewise.
14232 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
14233 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
14235 * df-core.c (df_compact_blocks): Likewise.
14236 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
14237 * df-scan.c (df_grow_reg_info, df_ref_create,
14238 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
14239 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
14240 df_record_entry_block_defs, df_record_exit_block_uses,
14241 df_bb_verify): Likewise.
14242 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
14243 DF_REF_EXTRACT_MODE_CONST): New.
14244 * dominance.c (get_immediate_dominator, get_dominated_by,
14245 nearest_common_dominator, root_of_dom_tree,
14246 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
14247 -Wc++-compat and/or -Wcast-qual warnings.
14248 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
14249 record_store, replace_read, check_mem_read_rtx, scan_insn,
14250 dse_step1, dse_record_singleton_alias_set): Likewise.
14251 * dwarf2asm.c (dw2_force_const_mem): Likewise.
14253 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14255 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
14256 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
14257 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
14258 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
14259 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
14260 add_ranges_num, add_ranges_by_labels, file_info_cmp,
14261 file_name_acquire, output_file_names, add_const_value_attribute,
14262 premark_used_types_helper, file_table_eq, file_table_hash,
14263 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
14264 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
14265 -Wcast-qual warnings.
14266 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
14267 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
14268 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
14269 gen_reg_rtx, start_sequence, init_emit): Likewise.
14270 * et-forest.c (et_new_occ, et_new_tree): Likewise.
14271 * except.c (init_eh_for_function, gen_eh_region,
14272 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
14273 arh_to_landing_pad, arh_to_label, add_action_record,
14274 add_call_site, switch_to_exception_section): Likewise.
14275 * expmed.c (synth_mult): Likewise.
14276 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
14277 store_expr): Likewise.
14278 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
14280 * function.c (assign_stack_temp_for_type,
14281 allocate_struct_function, match_asm_constraints_1): Likewise.
14282 * gcov-io.c (gcov_allocate): Likewise.
14283 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
14284 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
14285 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
14286 record_one_set, insert_expr_in_table, insert_set_in_table,
14287 dump_hash_table, compute_hash_table_work, alloc_hash_table,
14288 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
14289 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
14290 -Wcast-qual warnings.
14292 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14294 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
14295 -Wcast-qual warnings.
14296 * gcc.c (process_command): Likewise.
14297 * genattrtab.c (oballoc): Use XOBNEW.
14298 (oballocvec): Define.
14299 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
14300 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
14301 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
14302 -Wc++-compat and/or -Wcast-qual warnings.
14303 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
14304 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
14305 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
14306 gen_presence_absence_set, gen_automaton, gen_regexp_el,
14307 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
14308 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
14309 add_excls, process_presence_absence_names,
14310 process_presence_absence_patterns, add_presence_absence,
14311 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
14312 get_free_state, add_arc, get_free_automata_list_el,
14313 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
14314 transform_3, cache_presence, create_ainsns, create_automata,
14315 create_state_ainsn_table, dfa_insn_code_enlarge,
14316 output_trans_func, output_min_issue_delay_func,
14317 output_dead_lock_func, output_reset_func,
14318 output_get_cpu_unit_code_func, output_dfa_start_func,
14319 expand_automata): Likewise.
14320 * genextract.c (gen_insn): Likewise.
14321 * gengtype-lex.l: Likewise.
14322 * gengtype.c (read_input_list, adjust_field_type,
14323 process_gc_options): Likewise.
14324 * genoutput.c (note_constraint): Likewise.
14325 * genpreds.c (mangle, add_constraint): Likewise.
14326 * genrecog.c (process_define_predicate, new_decision,
14327 add_to_sequence): Likewise.
14328 * gensupport.c (record_insn_name): Likewise.
14330 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14332 * config/i386/driver-i386.c (detect_caches_amd,
14333 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
14334 and/or -Wcast-qual warnings.
14335 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
14336 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
14337 gt_pch_save): Likewise.
14338 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
14339 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
14340 * global.c (compute_regsets): Likewise.
14341 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
14342 finish_graph_dump_file): Likewise.
14343 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
14344 unlink_bb_notes): Likewise.
14345 * integrate.c (get_hard_reg_initial_val): Likewise.
14346 * ipa-prop.c (ipa_push_func_to_list): Likewise.
14347 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
14348 * local-alloc.c (update_equiv_regs): Likewise.
14349 * loop-invariant.c (check_invariant_table_size,
14350 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
14352 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
14353 altered_reg_used, mark_altered): Likewise.
14354 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
14355 insert_var_expansion_initialization,
14356 combine_var_copies_in_loop_exit, apply_opt_in_copies,
14357 release_var_copies): Likewise.
14358 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
14359 analyze_matrix_decl, add_allocation_site, analyze_transpose,
14360 analyze_accesses_for_phi_node, check_var_notmodified_p,
14361 check_allocation_function, find_sites_in_func,
14362 record_all_accesses_in_func, transform_access_sites,
14363 transform_allocation_sites): Likewise.
14364 * omp-low.c (new_omp_region, create_omp_child_function_name,
14365 check_omp_nesting_restrictions, check_combined_parallel,
14366 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
14367 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
14368 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
14369 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
14371 * opts-common.c (prune_options): Likewise.
14372 * opts.c (add_input_filename, print_filtered_help,
14373 get_option_state): Likewise.
14374 * params.c (add_params): Likewise.
14375 * passes.c (set_pass_for_id, next_pass_1,
14376 do_per_function_toporder, pass_fini_dump_file): Likewise.
14377 * postreload.c (reload_cse_simplify_operands): Likewise.
14378 * predict.c (tree_predicted_by_p, tree_predict_edge,
14379 clear_bb_predictions, combine_predictions_for_bb): Likewise.
14381 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14383 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
14385 * recog.c (check_asm_operands, validate_change_1): Likewise.
14386 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
14387 subst_asm_stack_regs): Likewise.
14388 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
14389 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
14390 * regmove.c (reg_is_remote_constant_p): Likewise.
14391 * regrename.c (regrename_optimize, scan_rtx_reg,
14392 kill_clobbered_value, kill_set_value, kill_autoinc_value):
14394 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
14395 regstat_compute_calls_crossed): Likewise.
14396 * reload1.c (init_reload, new_insn_chain,
14397 has_nonexceptional_receiver, reload, copy_reloads,
14398 calculate_needs_all_insns, init_elim_table): Likewise.
14399 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
14400 * rtl.c (shallow_copy_rtx_stat): Likewise.
14401 * rtlanal.c (parms_set): Likewise.
14402 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
14403 sbitmap_resize, sbitmap_vector_alloc): Likewise.
14404 * sched-ebb.c (earliest_block_with_similiar_load,
14405 add_deps_for_risky_insns): Likewise.
14406 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
14407 schedule_region): Likewise.
14408 * see.c (eq_descriptor_pre_extension,
14409 hash_descriptor_pre_extension, hash_del_pre_extension,
14410 eq_descriptor_properties, hash_descriptor_properties,
14411 hash_del_properties, see_seek_pre_extension_expr,
14412 see_initialize_data_structures, see_print_register_properties,
14413 see_print_pre_extension_expr, see_delete_merged_def_extension,
14414 see_delete_unmerged_def_extension, see_emit_use_extension,
14415 see_pre_delete_extension, see_map_extension, see_commit_changes,
14416 see_analyze_merged_def_local_prop,
14417 see_analyze_merged_def_local_prop,
14418 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
14419 see_set_prop_merged_def, see_set_prop_unmerged_def,
14420 see_set_prop_unmerged_use, see_print_one_extension,
14421 see_merge_one_use_extension, see_merge_one_def_extension,
14422 see_store_reference_and_extension, see_update_uses_relevancy,
14423 see_update_defs_relevancy): Likewise.
14424 * statistics.c (hash_statistics_hash, hash_statistics_eq,
14425 hash_statistics_free, curr_statistics_hash): Likewise.
14426 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
14427 expand_asm_operands, expand_return, case_bit_test_cmp,
14428 expand_case): Likewise.
14429 * stor-layout.c (start_record_layout): Likewise.
14430 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
14431 gt_pch_save_stringpool): Likewise.
14432 * tree-data-ref.c (hash_stmt_vertex_info,
14433 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
14434 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
14436 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
14439 * config/i386/i386.md : Change constraints of HImode and QImode
14440 immediate operands from "i" to "n". Change SImode "ni" constraint to
14441 "i" and SImode "rmi" constraint to "g". Remove all constraints
14442 from const0_operand and const1_operand predicated operands.
14443 (i): Change QImode and HImode attribute from "i" to "n".
14444 (*subqi_2): Change HImode operands to QImode.
14447 2008-06-25 Olivier Hainque <hainque@adacore.com>
14449 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
14452 2008-06-25 Richard Guenther <rguenther@suse.de>
14454 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
14455 not overflow the result type.
14457 2008-06-25 Richard Guenther <rguenther@suse.de>
14459 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
14460 (vn_lookup): Likewise.
14462 2008-06-25 Richard Guenther <rguenther@suse.de>
14464 PR tree-optimization/35518
14465 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
14466 * tree-sra.c (instantiate_element): Use fold_build3 to build
14468 (try_instantiate_multiple_fields): Likewise.
14470 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
14472 * config/rs6000/rs6000.md: Change all string instruction's clobber to
14475 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
14477 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
14478 use_backchain_to_restore_sp to true
14479 if the offset of the link register save area would go over the 32k - 1
14480 offset limit of the load
14483 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
14485 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
14486 anchor for the type-punning blurb. Cross-reference "Structures
14487 unions enumerations and bit-fields implementation". Provide a
14488 cast-through-pointer example. Make final sentence self-contained.
14489 * doc/implement-c.texi (Structures unions enumerations and
14490 bit-fields implementation): Cross-reference the type-punning blurb
14491 in the -fstrict-aliasing documentation.
14493 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
14495 PR middle-end/36594
14496 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
14497 the memory instead of the memory itself for the save area.
14499 2008-06-24 Olivier Hainque <hainque@adacore.com>
14500 Nicolas Roche <roche@adacore.com>
14502 * gengtype.c (srcdir_len): size_t instead of int.
14503 (get_file_realbasename): New function. For F a filename, the real
14504 basename of F, with all the path components stripped.
14505 (get_file_srcdir_relative_path): New function. For F a filename, the
14506 relative path to F from $(srcdir).
14507 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
14508 get_file_realbasename. Adjust the head comment.
14509 (get_prefix_langdir_index): New function. For F a filename, return the
14510 lang_dir_names[] relative index of the language directory that is
14512 (get_file_langdir): For F a filename, return the name of the language
14513 directory where F is located.
14514 (get_file_gtfilename): New function. The gt- output file name for an
14516 (get_output_file_with_visibility): Replace in-line computations with
14517 uses of get_file_gtfilename and get_prefix_langdir_index.
14518 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
14520 2008-06-24 Jakub Jelinek <jakub@redhat.com>
14522 PR tree-optimization/36504
14523 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
14524 references without base address.
14526 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
14528 PR middle-end/36584
14529 * calls.c (expand_call): Increase alignment for recursive functions.
14531 2008-06-23 Anatoly Sokolov <aesok@post.ru>
14533 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
14534 (TARGET_FUNCTION_VALUE): New define.
14535 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
14536 * config/avr/avr.h (FUNCTION_VALUE): Remove.
14538 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
14540 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
14541 (fmod<mode>3): Ditto.
14542 (remainderxf3): Ditto.
14543 (remainder<mode>3): Ditto.
14545 2008-06-23 Jakub Jelinek <jakub@redhat.com>
14548 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
14549 REG is a hard register.
14551 PR tree-optimization/36508
14552 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
14553 499, don't check it at all in release compilers.
14555 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
14557 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
14558 together with SSE_TARGET_MATH to disable insn pattern.
14559 (*fop_<MODEF:mode>_2_i387): Ditto.
14560 (*fop_<MODEF:mode>_3_i387): Ditto.
14562 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
14564 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
14566 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14568 PR middle-end/34906
14569 * gimplify.c (gimplify_asm_expr): Check the return code of
14570 parse_output_constraint call, set function return and is_inout
14571 value if it failed.
14573 2008-06-22 Ian Lance Taylor <iant@google.com>
14575 * c-lex.c (narrowest_unsigned_type): Change itk to int.
14576 (narrowest_signed_type): Likewise.
14577 * c-typeck.c (c_common_type): Change local variable mclass to enum
14579 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
14580 tcc_comparison, not the tree code itself.
14581 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
14582 (c_expand_expr): Cast modifier to enum expand_modifier.
14583 * c-common.h (C_RID_CODE): Add casts.
14584 (C_SET_RID_CODE): Define.
14585 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
14586 (c_lex_one_token): Add cast to avoid warning.
14587 (c_parser_objc_type_name): Rename local typename to type_name.
14588 (check_no_duplicate_clause): Change code parameter to enum
14590 (c_parser_omp_var_list_parens): Change kind parameter to enum
14592 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
14593 c_parser_omp_list_var_parens.
14594 (c_parser_omp_threadprivate): Likewise.
14595 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
14596 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
14597 * c-format.c (NO_FMT): Define.
14598 (printf_length_specs): Use NO_FMT.
14599 (asm_fprintf_length_specs): Likewise.
14600 (gcc_diag_length_specs): Likewise.
14601 (scanf_length_specs): Likewise.
14602 (strfmon_length_specs): Likewise.
14603 (gcc_gfc_length_specs): Likewise.
14604 (printf_flag_specs): Change 0 to STD_C89.
14605 (asm_fprintf_flag_specs): Likewise.
14606 (gcc_diag_flag_specs): Likewise.
14607 (gcc_cxxdiag_flag_specs): Likewise.
14608 (scanf_flag_specs): Likewise.
14609 (strftime_flag_specs): Likewise.
14610 (strfmon_flag_specs): Likewise.
14611 (print_char_table): Likewise.
14612 (asm_fprintf_char_table): Likewise.
14613 (gcc_diag_char_table): Likewise.
14614 (gcc_tdiag_char_table): Likewise.
14615 (gcc_cdiag_char_table): Likewise.
14616 (gcc_cxxdiag_char_table): Likewise.
14617 (gcc_gfc_char_table): Likewise.
14618 (scan_char_table): Likewise.
14619 (time_char_table): Likewis.
14620 (monetary_char_table): Likewise.
14621 * c-format.h (BADLEN): Likewise.
14623 2008-06-21 Ian Lance Taylor <iant@google.com>
14625 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
14626 Define END_OF_BASE_TREE_CODES around inclusion.
14627 * tree.c (tree_code_type): New global array.
14628 (tree_code_length, tree_code_name): Likewise.
14629 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
14630 $(lang_tree_files).
14631 (all-tree.def, s-alltree): New targets.
14632 (gencheck.h, s-gencheck): Remove.
14633 (tree.o): Depend upon all-tree.def.
14634 (build/gencheck.o): Remove gencheck.h dependency.
14635 (mostlyclean): Don't remove gencheck.h.
14636 * c-common.h (enum c_tree_code): Remove.
14637 * c-lang.c (tree_code_type): Remove.
14638 (tree_code_length, tree_code_name): Remove.
14639 * gencheck.c (tree_codes): Include all-tree.def, rather than
14640 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
14642 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
14644 * cp/cp-tree.h (enum cplus_tree_code): Remove.
14645 (operator_name_info): Size to MAX_TREE_CODES.
14646 (assignment_operator_name_info): Likewise.
14647 * cp/cp-lang.c (tree_code_type): Remove.
14648 (tree_code_length, tree_code_name): Remove.
14649 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
14650 (assignment_operator_name_info): Likewise.
14651 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
14653 * cp/mangle.c (write_expression): Likewise.
14654 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
14655 * fortran/f95-lang.c (tree_code_type): Remove.
14656 (tree_code_length, tree_code_name): Remove.
14657 * java/java-tree.h (enum java_tree_code): Remove.
14658 * java/lang.c (tree_code_type): Remove.
14659 (tree_code_length, tree_code_name): Remove.
14660 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
14661 * objc/objc-act.h (enum objc_tree_code): Remove.
14662 * objc/objc-lang.c (tree_code_type): Remove.
14663 (tree_code_length, tree_code_name): Remove.
14664 * objcp/objcp-lang.c (tree_code_type): Remove.
14665 (tree_code_length, tree_code_name): Remove.
14666 * ada/ada-tree.h (enum gnat_tree_code): Remove.
14667 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
14668 * ada/misc.c (tree_code_type): Remove.
14669 (tree_code_length, tree_code_name): Remove.
14671 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
14673 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
14674 the grand_bitmap_obstack.
14676 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14678 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
14679 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
14680 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
14681 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
14682 move_stmt_r, new_label_mapper): Likewise.
14683 * tree-complex.c (cvc_lookup): Likewise.
14684 * tree-dfa.c (create_function_ann): Likewise.
14685 * tree-dump.c (dump_register): Likewise.
14686 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
14687 find_phi_replacement_condition): Likewise.
14688 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
14689 tree_function_versioning): Likewise.
14690 * tree-into-ssa.c (cmp_dfsnum): Likewise.
14691 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
14692 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
14693 get_nonlocal_debug_decl, convert_nonlocal_reference,
14694 convert_nonlocal_omp_clauses, get_local_debug_decl,
14695 convert_local_reference, convert_local_omp_clauses,
14696 convert_nl_goto_reference, convert_nl_goto_receiver,
14697 convert_tramp_reference, convert_call_expr): Likewise.
14698 * tree-outof-ssa.c (contains_tree_r): Likewise.
14699 * tree-parloops.c (reduction_phi, initialize_reductions,
14700 eliminate_local_variables_1, add_field_for_reduction,
14701 add_field_for_name, create_phi_for_local_result,
14702 create_call_for_reduction_1, create_loads_for_reductions,
14703 create_stores_for_reduction, create_loads_and_stores_for_name):
14705 * tree-phinodes.c (allocate_phi_node): Likewise.
14706 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
14707 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
14708 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
14709 * tree-ssa-coalesce.c (compare_pairs): Likewise.
14710 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
14711 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
14712 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
14713 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
14714 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
14715 vn_nary_op_insert): Likewise.
14716 * tree-ssa.c (redirect_edge_var_map_add,
14717 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
14718 * tree-vectorizer.c (vectorize_loops): Likewise.
14719 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
14720 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
14721 tree_cons_stat, build1_stat, build_variant_type_copy,
14722 decl_init_priority_lookup, decl_fini_priority_lookup,
14723 decl_priority_info, decl_restrict_base_lookup,
14724 decl_restrict_base_insert, decl_debug_expr_lookup,
14725 decl_debug_expr_insert, decl_value_expr_lookup,
14726 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
14727 type_hash_add, get_file_function_name, tree_check_failed,
14728 tree_not_check_failed, tree_range_check_failed,
14729 omp_clause_range_check_failed, build_omp_clause,
14730 build_vl_exp_stat): Likewise.
14731 * value-prof.c (gimple_histogram_value,
14732 gimple_duplicate_stmt_histograms): Likewise.
14733 * var-tracking.c (attrs_list_insert, attrs_list_copy,
14734 unshare_variable, variable_union_info_cmp_pos, variable_union,
14735 dataflow_set_different_1, dataflow_set_different_2,
14736 vt_find_locations, variable_was_changed, set_variable_part,
14737 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
14738 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
14739 section_entry_hash, object_block_entry_eq,
14740 object_block_entry_hash, create_block_symbol,
14741 initialize_cold_section_name, default_function_rodata_section,
14742 strip_reg_name, set_user_assembler_name, const_desc_eq,
14743 build_constant_desc, output_constant_def, lookup_constant_def,
14744 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
14745 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
14746 default_internal_label): Likewise.
14747 * varray.c (varray_init, varray_grow): Likewise.
14748 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
14750 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
14752 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
14753 operators for "test" insn. Macroize insn using SWI mode macro.
14754 (*jcc_fused_2): Ditto.
14755 (*jcc_fused_3): Macroize insn using SWI mode macro.
14756 (*jcc_fused_4): Ditto.
14758 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
14760 * tree-ssa-pre.c: Fix typo in comment.
14761 (init_antic, fini_antic): Add explicit funtions for
14762 initializing and deinitializing ANTIC and AVAIL sets.
14763 (create_expression_by_pieces): Fix typo in comment.
14764 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
14765 (execute_pre): Eventually dump details about ANTIC_IN.
14767 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14769 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
14770 * gcc.c (translate_options, init_spec, store_arg, read_specs,
14771 add_to_obstack, file_at_path, find_a_file, execute,
14772 add_preprocessor_option, add_assembler_option, add_linker_option,
14773 process_command, insert_wrapper, do_option_spec, do_self_spec,
14774 spec_path, do_spec_1, is_directory, main, used_arg,
14775 getenv_spec_function): Likewise.
14776 * tlink.c (symbol_hash_lookup, file_hash_lookup,
14777 demangled_hash_lookup, symbol_push, file_push, frob_extension):
14780 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
14782 * doc/rtl.texi: Updated subreg section.
14784 2008-06-19 Jakub Jelinek <jakub@redhat.com>
14787 * cgraphunit.c (cgraph_process_new_functions): Don't clear
14788 node->needed and node->reachable.
14789 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
14790 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
14791 (expand_task_call): Don't call expand_task_copyfn.
14792 (expand_task_copyfn): Renamed to...
14793 (finalize_task_copyfn): ... this.
14795 2008-06-19 Jan Hubicka <jh@suse.cz>
14797 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
14798 clobbering framepointer.
14800 2008-06-19 Jan Hubicka <jh@suse.cz>
14802 * tree-optimize.c (execute_early_local_optimizations): Set
14803 cgraph_state only at first invocation.
14805 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14807 * system.h (-Wc++-compat): Activate as a warning, no an error.
14809 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
14811 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
14812 instead of "#" in insn asm template.
14813 (*jcc_fused_2): Ditto.
14815 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
14817 * config/i386/i386.h (ix86_tune_indices)
14818 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
14819 (TARGET_FUSE_CMP_AND_BRANCH): New define.
14820 * config/i386/i386.md (*jcc_fused_1): New insn pattern
14821 (*jcc_fused_2): Ditto.
14822 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
14823 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
14824 (print operand): Handle 'E' and 'e' code.
14826 2008-06-19 Anatoly Sokolov <aesok@post.ru>
14828 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
14829 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
14830 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
14832 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
14834 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
14836 (cgraph_expand_function): Use local copy of decl.
14837 (cgraph_expand_all_functions): Remove redundant initialization of
14839 (cgraph_optimize): Reword internal_error message.
14841 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
14843 * arm-protos.h (arm_return_in_memory): Remove public
14844 arm_return_in_memory() prototype.
14845 * arm.c (arm_return_in_memory): Add static prototype, add target
14846 hook macro, change definition and comments.
14847 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
14849 2008-06-19 Ben Elliston <bje@au.ibm.com>
14851 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
14852 real.c: Remove references to IEEE 754R.
14853 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
14854 * doc/libgcc.texi (Decimal float library routines): Likewise.
14856 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14858 * targhooks.h (struct gcc_target): New member unwind_word_mode.
14859 (default_unwind_word_mode): Add prototype.
14860 * targhooks.c (default_unwind_word_mode): New function.
14861 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
14862 instead of word_mode.
14863 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
14864 (TARGET_INITIALIZER): Use it.
14866 * c-common.c (handle_mode_attribute): Support "unwind_word"
14868 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
14870 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
14871 word_mode to access SjLj_Function_Context member "data".
14872 (sjlj_emit_dispatch_table): Likewise. Also, perform type
14873 conversion from targetm.eh_return_filter_mode () to
14874 targetm.unwind_word_mode () if they differ.
14876 * builtin-types.def (BT_UNWINDWORD): New primitive type.
14877 (BT_FN_UNWINDWORD_PTR): New function type.
14878 (BT_FN_WORD_PTR): Remove.
14879 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
14880 * except.c (expand_builtin_extend_pointer): Convert pointer to
14881 targetm.unwind_word_mode () instead of word_mode.
14883 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
14884 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
14885 (spu_unwind_word_mode): New function.
14886 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
14887 (TARGET_UNWIND_WORD_MODE): Define.
14888 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
14890 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14892 * config/spu/spu.c (reg_align): Remove.
14893 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
14894 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
14895 (spu_split_store): Likewise.
14897 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
14899 * gcc/tree-vn.c: Fix typo in comment.
14901 2008-06-18 Jan Hubicka <jh@suse.cz>
14903 * cgraphunit.c (cgraph_optimize): Output debug info when doing
14904 toplevel reorder too.
14906 2008-06-18 Jan Hubicka <jh@suse.cz>
14908 * c-opts.c (c_common_post_options): PCH is not compatible with
14910 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
14911 -fno-toplevel-reorder by default now.
14913 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14915 PR documentation/30739
14916 * doc/install.texi (Prerequisites): Document dependency on awk.
14918 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
14919 Ian Lance Taylor <iant@google.com>
14921 PR rtl-optimization/35604
14922 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
14923 only want to change jump destinations, not eventual label comparisons.
14925 2008-06-16 Jan Hubicka <jh@suse.cz>
14927 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
14929 (cgraph_analyze_function): Likewise.
14931 2008-06-16 Jan Hubicka <jh@suse.cz>
14933 * cgraph.h (cgraph_mark_if_needed): New function.
14934 * cgraphunit.c (cgraph_mark_if_needed): New function.
14935 * c-decl.c (duplicate_decl): Use it.
14937 2008-06-16 Jan Hubicka <jh@suse.cz>
14939 * cgraph.c (cgraph_add_new_function): When in expansion state, do
14942 2008-06-16 Jan Hubicka <jh@suse.cz>
14944 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
14946 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
14947 Kazu Hirata <kazu@codesourcery.com>
14948 Maxim Kuvyrkov <maxim@codesourcery.com
14950 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
14951 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
14952 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
14953 EXTRA_SPEC_FUNCTIONS.
14954 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
14955 (DRIVER_SELF_SPECS): Adjust.
14956 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
14957 * config/mips/st.h, config/mips/t-st: New.
14958 * config/mips/driver-native.c, config/mips/x-native: New.
14959 * doc/invoke.texi (MIPS): Document 'native' value for -march and
14962 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14964 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
14966 (ISA_HAS_FP_CONDMOVE): New macro.
14967 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
14968 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
14969 (ISA_HAS_NMADD3_NMSUB3): New macro.
14970 * config/mips/mips.c (mips_rtx_costs): Update.
14971 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
14972 compiling for ST Loongson 2E/2F.
14973 (madd<mode>): Rename to madd4<mode>. Update.
14974 (madd3<mode>): New pattern.
14975 (msub<mode>): Rename to msub4<mode>. Update.
14976 (msub3<mode>): New pattern.
14977 (nmadd<mode>): Rename to nmadd4<mode>. Update.
14978 (nmadd3<mode>): New pattern.
14979 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
14980 (nmadd3<mode>_fastmath): New pattern.
14981 (nmsub<mode>): Rename to nmsub4<mode>. Update.
14982 (nmsub3<mode>): New pattern.
14983 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
14984 (nmsub3<mode>_fastmath): New pattern.
14985 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
14987 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
14989 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
14990 (DF_REF_INSN_INFO): New.
14991 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
14992 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
14993 with a NULL DF_REF_INSN_INFO.
14994 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
14996 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
14997 DF_INSN_INFO_EQ_USES): New.
14998 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
14999 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
15000 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
15001 * df-core.c: Update comment for above changes.
15002 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
15003 DF_INSN_UID_* macros.
15004 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
15005 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
15006 insn rtx. Update all callers.
15007 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
15008 df_ref_create_structure, df_insn_refs_collect): Likewise.
15009 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
15010 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
15011 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
15012 macros to access the insn refs.
15013 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
15014 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
15015 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
15016 for accessing the refs.
15017 (try_fwprop_subst): Likewise.
15018 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
15019 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
15020 for accessing the refs.
15021 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
15022 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
15023 to look at the insn refs.
15024 (record_uses): Likewise.
15025 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
15027 (mark_artificial_uses): Don't mark_insn for artificial refs.
15028 (mark_reg_rependencies): Likewise.
15030 * doc/rtl.texi: Remove documentation of ADDRESSOF.
15032 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15034 * configure: Regenerate.
15036 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
15038 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
15039 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15040 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15042 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
15044 * config/avr/avr.c (avr_mcu_t): Add attiny167.
15045 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15046 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15048 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
15050 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
15051 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15052 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15054 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
15056 * tree-ssa-sccvn.c: Fix format of comments.
15058 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
15060 * cgraph.c: Remove unneeded forward declarations of eq_node()
15063 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
15065 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
15067 (see_update_relevancy): Likewise.
15068 * fwprop.c (try_fwprop_subst): Likewise.
15069 * rtlanal.c (noop_move_p): Likewise.
15070 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
15071 notes to non-existing libcall blocks.
15072 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
15074 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
15075 (dead_libcall_p): Remove.
15076 (delete_trivially_dead_insns): Don't use it.
15077 * web.c (union_defs): Remove comment about keeping nops.
15078 * gcse.c (hash_scan_insn): Don't take libcall pointers.
15079 (compute_hash_table_work): Don't track libcall notes.
15080 (do_local_cprop): Don't take libcall pointers. Don't update
15082 (adjust_libcall_notes): Deleted.
15083 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
15084 ever have existed in the first place).
15085 (replace_store_insn): Don't try to remove libcall notes.
15086 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
15087 (resolve_reg_notes): Don't call them.
15088 (resolve_simple_move): Likewise.
15089 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
15090 Don't remove REG_RETVAL notes.
15091 * emit-rtl.c (try_split): Don't update libcall notes.
15092 (emit_copy_of_insn_after): Dito.
15093 * cselib.c (cselib_current_insn_in_libcall): Remove.
15094 (cselib_process_insn): Don't set/clear it.
15095 (new_elt_loc_list): Don't record it.
15096 (cselib_init): Don't initialize it.
15097 * cselib.c (struct elt_loc_list): Remove in_libcall field.
15098 * loop-invariant.c (find_invariant_insn): Don't look for libcall
15100 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
15101 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
15102 (init_deps): Don't initialize it.
15103 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
15104 * combine.c (delete_noop_moves): Don't update libcall notes.
15105 (can_combine_p): Remove now pointless #if 0 block.
15106 (try_combine): Remove another obsolete #if 0 block.
15107 (distribute_notes): Don't distribute libcall notes.
15108 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
15109 * dce.c (libcall_dead_p): Remove.
15110 (delete_unmarked_insns): Don't handle libcall blocks.
15111 (preserve_libcall_for_dce): Remove.
15112 (prescan_insns_for_dce): Don't special-case libcall block insns.
15113 * reload1 (reload): Don't handle libcall notes.
15114 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
15117 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
15119 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
15120 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15121 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15123 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
15125 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
15126 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15127 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15129 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15131 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
15133 2008-06-16 Ira Rosen <irar@il.ibm.com>
15135 PR tree-optimization/36493
15136 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
15137 the arguments list. Use VECTYPE to create vector pointer.
15138 (vectorizable_store): Fail if accesses through a pointer to vectype
15139 do not alias the original memory reference operands.
15140 Call vect_create_data_ref_ptr without the removed argument.
15141 (vectorizable_load): Likewise.
15142 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
15145 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
15148 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
15149 reg_equiv_constant.
15151 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
15153 * config/mips/loongson2ef.md: New file.
15154 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
15155 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
15156 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
15157 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
15158 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
15160 (loongson2ef.md): New include.
15161 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
15162 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
15163 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
15164 (loongson_gt_<mode>, loongson_extract_halfword)
15165 (loongson_insert_halfword_0, loongson_insert_halfword_2)
15166 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
15167 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
15168 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
15169 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
15170 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
15171 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
15172 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
15173 (vec_interleave_low<mode>): Define type attribute.
15174 * config/mips/mips.c (mips_ls2): New static variable.
15175 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
15176 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
15177 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
15178 Implement target scheduling hooks.
15179 (mips_multipass_dfa_lookahead): Update to handle tuning for
15181 (mips_sched_init): Initialize data for Loongson scheduling.
15182 (mips_ls2_variable_issue): New static function.
15183 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
15185 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
15186 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
15187 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
15188 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
15189 Handle ST Loongson 2E/2F cores.
15190 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
15192 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15194 * omp-low.c (extract_omp_for_data): Fix comment typo.
15197 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15199 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
15200 FIXME note about gcc/config.guess.
15201 * doc/options.texi (Option file format): Remove non-ASCII bytes.
15202 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
15203 * doc/cppopts.texi: Likewise.
15204 * doc/extend.texi: Likewise.
15205 * doc/gcc.texi: Likewise.
15206 * doc/gccint.texi: Likewise.
15207 * doc/gcov.texi: Likewise.
15208 * doc/gty.texi: Likewise.
15209 * doc/hostconfig.texi: Likewise.
15210 * doc/install.texi: Likewise.
15211 * doc/invoke.texi: Likewise.
15212 * doc/loop.texi: Likewise.
15213 * doc/makefile.texi: Likewise.
15214 * doc/md.texi: Likewise.
15215 * doc/passes.texi: Likewise.
15216 * doc/tm.texi: Likewise.
15217 * doc/tree-ssa.texi: Likewise.
15218 * doc/trouble.texi: Likewise.
15220 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
15221 Nathan Sidwell <nathan@codesourcery.com>
15222 Maxim Kuvyrkov <maxim@codesourcery.com>
15223 Richard Sandiford <rdsandiford@googlemail.com>
15225 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
15226 * config/mips/mips-protos.h (mips_expand_vector_init): New.
15227 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
15229 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
15230 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
15231 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
15233 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
15234 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
15235 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
15236 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
15237 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
15238 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
15239 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
15240 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
15241 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
15242 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
15243 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
15244 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
15245 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
15246 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
15247 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
15248 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
15249 (mips_builtins): Add Loongson builtins.
15250 (mips_loongson_2ef_bdesc): New.
15251 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
15252 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
15253 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
15254 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
15256 (mips_expand_vector_init): New.
15257 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
15258 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
15260 * config/mips/mips.md: Add unspec numbers for Loongson
15261 builtins. Include loongson.md.
15262 (MOVE64): Include Loongson vector modes.
15263 (SPLITF): Include Loongson vector modes.
15264 (HALFMODE): Handle Loongson vector modes.
15265 * config/mips/loongson.md: New.
15266 * config/mips/loongson.h: New.
15267 * config.gcc: Add loongson.h header for mips*-*-* targets.
15268 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
15270 2008-06-14 Joseph Myers <joseph@codesourcery.com>
15272 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
15273 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
15274 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
15275 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
15276 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
15277 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
15278 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
15279 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
15280 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
15281 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
15282 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
15283 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
15284 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
15285 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
15286 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
15287 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
15288 Remove use_fixproto=yes.
15289 (ia64*-*-hpux*): Remove comment about using fixproto.
15290 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
15292 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15294 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
15296 * configure: Regenerate.
15298 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
15300 PR middle-end/36520
15301 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
15302 before evaluating it.
15304 2008-06-13 Jakub Jelinek <jakub@redhat.com>
15307 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
15308 nested inline functions.
15309 (start_decl, start_function): Don't invert DECL_EXTERNAL
15310 for nested inline functions.
15312 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
15314 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
15315 splits that must be made for correctness.
15317 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
15319 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
15320 (AVAIL_NON_MIPS16): Likewise.
15321 (mips_builtin_description): Replace target_flags with a predicate.
15322 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
15323 (dspr2_32): New availability predicates.
15324 (MIPS_BUILTIN): New macro.
15325 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
15326 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
15327 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
15328 Replace the TARGET_FLAGS parameters with AVAIL parameters.
15329 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
15330 (mips_dsp_32only_bdesc): Merge into...
15331 (mips_builtins): ...this new array.
15332 (mips_bdesc_map, mips_bdesc_arrays): Delete.
15333 (mips_init_builtins): Update after above changes.
15334 (mips_expand_builtin_1): Merge into...
15335 (mips_expand_builtin): ...here and update after above changes.
15337 2008-06-12 Paul Brook <paul@codesourcery.com>
15339 * longlong.h (__arm__): Define count_leading_zeros.
15340 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
15341 (clzsi2, clzdi2): New functions.
15342 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
15343 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
15344 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
15345 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
15346 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
15347 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
15348 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
15349 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
15350 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
15351 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
15353 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
15355 * config/m68k/m68k.c (m68k_tune_flags): New.
15356 (override_options): Compute m68k_tune_flags.
15357 (MULL_COST, MULW_COST): Update for various variants of CFV2.
15358 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
15360 2008-06-12 Jakub Jelinek <jakub@redhat.com>
15362 PR middle-end/36506
15363 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
15365 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
15367 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
15368 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
15370 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
15372 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
15373 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
15375 2008-06-12 Jakub Jelinek <jakub@redhat.com>
15377 PR middle-end/36506
15378 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
15381 2008-06-12 Richard Guenther <rguenther@suse.de>
15383 PR tree-optimization/36345
15384 * tree-flow.h (struct ptr_info_def): Align escape_mask,
15385 add memory_tag_needed flag.
15386 (may_alias_p): Declare.
15387 * tree-ssa-alias.c (may_alias_p): Export.
15388 (set_initial_properties): Use memory_tag_needed flag.
15389 (update_reference_counts): Likewise.
15390 (reset_alias_info): Reset memory_tag_needed flag.
15391 (create_name_tags): Check memory_tag_needed flag.
15392 (dump_points_to_info_for): Dump it.
15393 * tree-ssa-structalias.c (struct variable_info): Remove
15394 directly_dereferenced flag.
15395 (new_var_info): Do not initialize it.
15396 (process_constraint_1): Do not set it.
15397 (update_alias_info): Set is_dereferenced flag.
15398 (set_uids_in_ptset): Use may_alias_p.
15399 (set_used_smts): Check memory_tag_needed flag.
15400 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
15401 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
15402 memory_tag_needed flag.
15403 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
15404 from broken design.
15406 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
15408 * config/i386/i386.c (ix86_compute_frame_layout): Disable
15409 red zone for w64 abi.
15410 (ix86_expand_prologue): Likewise.
15411 (ix86_force_to_memory): Likewise.
15412 (ix86_free_from_memory): Likewise.
15414 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
15417 * config/rs6000/rs6000.c (rs6000_override_options): Set
15418 rs6000_isel conditionally to the absence of comand line override.
15419 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
15420 Remove duplicate rs6000_isel setting.
15421 * config/rs6000/eabispe.h: Ditto.
15423 2008-06-11 Richard Guenther <rguenther@suse.de>
15425 * alias.c (get_alias_set): Use the element alias-set for arrays.
15426 (record_component_aliases): For arrays and vectors do nothing.
15427 * c-common.c (strict_aliasing_warning): Handle the cases
15428 of alias set zero explicitly.
15429 * Makefile.in (dfp.o-warn): Add -Wno-error.
15431 2008-06-11 Joseph Myers <joseph@codesourcery.com>
15433 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
15435 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
15436 tune_32 tune_64 to supported_defaults. Allow values not
15437 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
15438 x86_64. Do not override cpu_32 or cpu_64 values from target name.
15439 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
15440 with_cpu_64 to generic for 64-bit-supporting configurations, not
15441 with_cpu. Remove FIXMEs.
15442 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
15443 --with-arch-64, --with-tune-32, --with-tune-64): Document.
15444 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
15445 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
15446 arch_32 and arch_64.
15448 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
15449 Olivier Hainque <hainque@adacore.com>
15451 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
15452 Use DECL_SIZE_UNIT to retrieve the size of the field.
15454 2008-06-11 Joseph Myers <joseph@codesourcery.com>
15456 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
15457 with function calls after declarations. Lay out
15458 neon_float_type_node before further use.
15460 2008-06-11 Richard Guenther <rguenther@suse.de>
15462 * tree-flow.h (may_point_to_global_var): Declare.
15463 * tree-ssa-alias.c (may_point_to_global_var): New function.
15464 * tree-ssa-sink.c (is_hidden_global_store): Use it.
15466 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
15468 * configure.ac: Teach that fido supports .debug_line.
15469 * configure: Regenerate.
15471 2008-06-10 Tom Tromey <tromey@redhat.com>
15473 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
15476 2008-06-10 Joseph Myers <joseph@codesourcery.com>
15478 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
15479 (encode_decimal64, decode_decimal64, encode_decimal128,
15480 decode_decimal128): Reverse order of 32-bit parts of value if host
15481 and target endianness differ.
15483 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
15485 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
15486 Avoid division by 0.
15487 (tree_mod_pow2_value_transform): Likewise.
15488 (tree_ic_transform): Likewise.
15489 (tree_stringops_transform): Likewise.
15490 (tree_mod_subtract_transform): Likewise.
15491 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
15492 (copy_edges_for_bb): Likewise.
15493 (initialize_cfun): Likewise.
15495 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
15497 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
15498 nonmemory_operand. Add "N" operand constraint.
15500 (*jcc_btdi_mask_rex64): New instruction and split pattern.
15501 (*jcc_btsi_mask): Ditto.
15502 (*jcc_btsi_mask_1): Ditto.
15504 2008-06-10 Joseph Myers <joseph@codesourcery.com>
15506 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
15507 TYPE_CANONICAL for copied element type.
15509 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
15512 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
15513 Add m_CORE2 and m_GENERIC.
15514 * config/i386/predicates.md (bt_comparison_operator): New predicate.
15515 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
15517 (*jcc_btdi_rex64): New instruction and split pattern.
15518 (*jcc_btsi): Ditto.
15519 (*jcc_btsi_1): Ditto.
15520 (*btsq): Fix Intel asm dialect operand order.
15524 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
15526 PR middle-end/36447
15527 * simplify-rtx.c (simplify_subreg): Add check for shift count
15530 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
15532 * doc/md.texi: Synchronize with later constraints.md change.
15533 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
15534 with a C implementation.
15535 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
15537 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
15538 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
15539 when moving to and from MD_REGNUM.
15540 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
15541 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
15542 Handle byte and halfword moves.
15543 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
15545 * config/mips/constraints.md (h): Turn into NO_REGS.
15546 (l, x): Update documentation.
15547 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
15548 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
15549 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
15550 (HILO): New mode iterator.
15552 (any_div): New code iterator.
15553 (u): Extend code attribute to div and udiv.
15554 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
15555 d_operand in the splitters. Remove redundant CONST_INT checks.
15556 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
15557 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
15558 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
15559 accordingly, using normal moves instead of unspecs to move LO into
15560 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
15561 (<u>mulsidi3): Handle expansion in C code.
15562 (<u>mulsidi3_32bit_internal): Rename to...
15563 (<u>mulsidi3_32bit): ...this.
15564 (<u>mulsidi3_32bit_r4000): Fix insn separator.
15565 (*<u>mulsidi3_64bit): Rename to...
15566 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
15567 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
15568 to set LO and HI to the multiplication result. Use a normal move
15569 for MFLO and an unspec for MFHI.
15570 (*<u>mulsidi3_64bit_parts): Replace with...
15571 (<u>mulsidi3_64bit_hilo): ...this new instruction.
15572 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
15573 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
15574 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
15575 instead of HI. Split the instruction into a separate multiplication
15576 and MFHI if !TARGET_FIX_R4000.
15577 (<su>muldi3_highpart): Likewise.
15578 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
15579 and the "=h" clobber.
15580 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
15581 (<u>mulditi3): New expander.
15582 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
15583 (madsi): Remove "=h" clobber.
15584 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
15585 Force the modulus result to be a GPR and split the instruction into
15586 a division followed by an MFHI after reload.
15587 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
15588 (*lea_high64): Use d_operand in the define_peephole2. Likewise
15589 the MIPS16 HIGH define_split.
15590 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
15591 of acc<->gpr moves to "multi".
15592 (*movdi_64bit): Replace the single "x" alternative with
15593 alternatives for moving into and out of "a".
15594 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
15595 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
15596 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
15597 Use d_operand in the splitters. Remove redundant CONST_INT checks.
15598 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
15599 (movti): New expander.
15600 (*movti, *movti_mips16): New insns.
15601 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
15602 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
15603 (mthi<GPR:mode>_<HILO:mode>): Likewise.
15604 * config/mips/predicates.md (fpr_operand): Delete.
15605 (d_operand): New predicate.
15607 2008-06-09 Michael Meissner <michael.meissner@amd.com>
15609 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
15610 failure on some Bourne shells.
15611 (x86_64-*-*): Ditto.
15613 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
15615 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
15617 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
15619 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
15620 (sparc-sun-solaris2*): Likewise.
15622 2008-06-09 Arnaud Charlet <charlet@adacore.com
15624 * doc/install.texi: Update requirements to build the Ada compiler.
15626 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
15628 * df-scan.c (struct df_scan_problem_data): Remove the
15629 mw_link_pool alloc pool.
15630 (df_scan_free_internal): Don't free it.
15631 (df_scan_alloc): Don't allocate it.
15632 * df.h (struct df_link): Update comment.
15634 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
15636 * except.h: Correct checks for when SJLJ exceptions must be used.
15638 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15640 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
15643 2008-06-08 Joseph Myers <joseph@codesourcery.com>
15645 PR tree-optimization/36218
15646 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
15647 configure for the build system.
15648 (BUILD_LDFLAGS): Define.
15649 * configure: Regenerate.
15650 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
15652 2008-07-08 Anatoly Sokolov <aesok@post.ru>
15655 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
15656 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
15657 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
15659 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
15661 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
15663 2008-06-07 Joseph Myers <joseph@codesourcery.com>
15665 * config.gcc (Obsolete configurations): Remove list of
15667 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
15668 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
15669 targets matched by those patterns.
15670 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
15671 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
15672 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
15673 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
15674 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15675 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
15676 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
15677 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
15678 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
15679 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
15680 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
15681 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
15682 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
15683 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
15684 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
15685 Make code for Solaris 7 and greater unconditional for Solaris.
15686 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
15687 Remove --with-* handling.
15688 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
15689 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
15690 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
15691 LINK_OS_WINDISS_SPEC): Remove.
15692 * config/rs6000/sysv4.opt (mwindiss): Remove.
15693 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
15694 * configure: Regenerate.
15695 * doc/cpp.texi: Don't mention BeOS.
15696 * doc/extend.texi (interrupt): Don't mention MS1.
15697 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
15698 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
15699 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
15700 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
15701 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
15703 * doc/invoke.texi (MT Options): Remove.
15704 (-mwindiss): Remove.
15705 (CRIS Options): Remove cris-axis-aout references.
15706 (HPPA Options): Don't mention hppa1.1-*-pro.
15707 * doc/md.texi: (MorphoTech family): Remove.
15708 * libgcc2.c: Don't handle UWIN.
15709 * config/alpha/t-unicosmk: Remove.
15710 * config/alpha/unicosmk.h: Remove.
15711 * config/arm/kaos-arm.h: Remove.
15712 * config/arm/kaos-strongarm.h: Remove.
15713 * config/arm/strongarm-coff.h: Remove.
15714 * config/arm/strongarm-elf.h: Remove.
15715 * config/arm/strongarm-pe.h: Remove.
15716 * config/arm/t-strongarm-pe: Remove.
15717 * config/arm/t-xscale-coff: Remove.
15718 * config/arm/t-xscale-elf: Remove.
15719 * config/arm/xscale-coff.h: Remove.
15720 * config/arm/xscale-elf.h: Remove.
15721 * config/chorus.h: Remove.
15722 * config/cris/aout.h: Remove.
15723 * config/cris/aout.opt: Remove.
15724 * config/cris/t-aout: Remove.
15725 * config/i386/beos-elf.h: Remove.
15726 * config/i386/kaos-i386.h: Remove.
15727 * config/i386/ptx4-i.h: Remove.
15728 * config/i386/sco5.h: Remove.
15729 * config/i386/sco5.opt: Remove.
15730 * config/i386/sysv4-cpp.h: Remove.
15731 * config/i386/sysv5.h: Remove.
15732 * config/i386/t-beos: Remove.
15733 * config/i386/t-sco5: Remove.
15734 * config/i386/t-uwin: Remove.
15735 * config/i386/uwin.asm: Remove.
15736 * config/i386/uwin.h: Remove.
15737 * config/kaos.h: Remove.
15738 * config/mips/windiss.h: Remove.
15739 * config/mt: Remove directory.
15740 * config/pa/pa-osf.h: Remove.
15741 * config/pa/pa-pro-end.h: Remove.
15742 * config/pa/t-pro: Remove.
15743 * config/ptx4.h: Remove.
15744 * config/rs6000/beos.h: Remove.
15745 * config/rs6000/kaos-ppc.h: Remove.
15746 * config/rs6000/t-beos: Remove.
15747 * config/rs6000/windiss.h: Remove.
15748 * config/sh/kaos-sh.h: Remove.
15749 * config/sol2-6.h: Remove.
15750 * config/sparc/sol26-sld.h: Remove.
15751 * config/sparc/sysv4-only.h: Remove.
15752 * config/vax/bsd.h: Remove.
15753 * config/vax/t-memfuncs: Remove.
15754 * config/vax/ultrix.h: Remove.
15755 * config/vax/vaxv.h: Remove.
15756 * config/windiss.h: Remove.
15758 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
15760 PR rtl-optimization/36438
15761 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
15762 for vector shifts with constant scalar shift operands.
15764 2008-06-06 Sandip Matte <sandip@rmicorp.com>
15766 * doc/invoke.texi: Document -march=xlr.
15767 * config/mips/xlr.md: New file.
15768 * config/mips/mips.md: Include it.
15770 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
15771 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
15772 (mips_rtx_cost_data): Likewise.
15774 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
15776 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
15777 PRE_INC and PRE_DEC cases.
15779 2008-06-06 Jakub Jelinek <jakub@redhat.com>
15781 PR rtl-optimization/36419
15782 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
15783 the emitting jump insn.
15786 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
15787 is not bool, boolify the whole *expr_p and convert to the desired type.
15789 2008-06-06 Jakub Jelinek <jakub@redhat.com>
15791 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
15792 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
15793 Add omp_private_outer_ref hook, add another argument to
15794 omp_clause_default_ctor hook.
15795 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
15796 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
15797 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
15798 hook_tree_tree_tree_tree_null.
15799 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
15800 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
15801 * hooks.c (hook_tree_tree_tree_tree_null): New function.
15802 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
15803 * tree.def (OMP_TASK): New tree code.
15804 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
15805 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
15806 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
15807 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
15808 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
15809 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
15810 OMP_CLAUSE_COLLAPSE_EXPR): Define.
15811 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
15812 (OMP_DIRECTIVE_P): Add OMP_TASK.
15813 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
15814 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
15815 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
15816 and OMP_CLAUSE_UNTIED entries.
15817 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
15819 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
15820 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
15821 * tree-pretty-print.c (dump_omp_clause): Handle
15822 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
15823 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
15824 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
15825 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
15826 warning about unsigned iterators. Change decl/init/cond/incr
15827 arguments to TREE_VECs, check arguments for all collapsed loops.
15828 (c_finish_omp_taskwait): New function.
15829 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
15831 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
15832 default_function_array_conversion on init. Add par_clauses argument.
15833 If decl is present in parallel's lastprivate clause, change it to
15834 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
15835 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
15836 collapse count in clauses.
15837 (c_parser_omp_for, c_parser_omp_parallel): Adjust
15838 c_parser_omp_for_loop callers.
15839 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
15840 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
15841 (c_parser_omp_clause_name): Handle collapse and untied clauses.
15842 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
15844 (c_parser_omp_clause_schedule): Handle schedule(auto).
15845 Include correct location in the error message.
15846 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
15847 and PRAGMA_OMP_CLAUSE_UNTIED.
15848 (OMP_TASK_CLAUSE_MASK): Define.
15849 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
15850 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
15851 * tree-nested.c (convert_nonlocal_omp_clauses,
15852 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
15853 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
15854 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
15855 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
15857 (conver_nonlocal_reference, convert_local_reference,
15858 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
15859 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
15860 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
15861 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
15862 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
15863 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
15864 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
15865 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
15866 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
15868 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
15869 * c-common.h (c_finish_omp_taskwait): New prototype.
15870 * gimple-low.c (lower_stmt): Handle OMP_TASK.
15871 * tree-parloops.c (create_parallel_loop): Create 1 entry
15872 vectors for OMP_FOR_{INIT,COND,INCR}.
15873 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
15874 (make_edges): Handle OMP_TASK.
15875 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
15876 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
15877 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
15878 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
15879 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
15880 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
15881 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
15882 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
15883 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
15884 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
15885 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
15886 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
15887 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
15888 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
15889 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
15890 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
15891 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
15892 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
15893 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
15894 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
15895 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
15896 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
15897 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
15898 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
15899 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
15900 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
15901 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
15902 original iterator is present in lastprivate clause or if
15903 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
15904 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
15905 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
15906 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
15907 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
15908 if it is set, lookup var in outer contexts too. Handle
15909 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
15910 to be implicitly determined firstprivate for task regions.
15911 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
15912 if it is set, lookup var in outer contexts too. Set
15913 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
15914 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
15915 OMP_CLAUSE_UNTIED. Take region_type as last argument
15916 instead of in_parallel and in_combined_parallel.
15917 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
15919 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
15920 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
15921 (new_omp_context): Set default_kind to
15922 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
15923 (omp_region_type): New enum.
15924 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
15925 fields, add region_type.
15926 (new_omp_context): Take region_type as argument instead of is_parallel
15927 and is_combined_parallel.
15928 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
15929 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
15930 ctx->is_combined_parallel checks.
15931 (gimplify_omp_task): New function.
15932 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
15934 * omp-low.c (extract_omp_for_data): Use schedule(static)
15935 for schedule(auto). Handle pointer and unsigned iterators.
15936 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
15937 Add loops argument. Extract data for collapsed OMP_FOR loops.
15938 (expand_parallel_call): Assert sched_kind isn't auto,
15939 map runtime schedule to index 3.
15940 (struct omp_for_data_loop): New type.
15941 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
15942 Add loop, loops, collapse and iter_type fields.
15943 (workshare_safe_to_combine_p): Disallow combined for if
15944 iter_type is unsigned long long. Don't combine collapse > 1 loops
15945 unless all bounds and steps are constant. Adjust extract_omp_for_data
15947 (expand_omp_for_generic): Handle pointer, unsigned and long long
15948 iterators. Handle collapsed OMP_FOR loops. Adjust
15949 for struct omp_for_data changes. If libgomp function doesn't return
15950 boolean_type_node, add comparison of the return value with 0.
15951 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
15952 pointer, unsigned and long long iterators. Adjust for struct
15953 omp_for_data changes.
15954 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
15955 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
15956 unsigned long long. Allocate loops array, pass it to
15957 extract_omp_for_data. For collapse > 1 loops use always
15958 expand_omp_for_generic.
15959 (omp_context): Add sfield_map and srecord_type fields.
15960 (is_task_ctx, lookup_sfield): New functions.
15961 (use_pointer_for_field): Use is_task_ctx helper. Change first
15962 argument's type from const_tree to tree. Clarify comment.
15963 In OMP_TASK disallow copy-in/out sharing.
15964 (build_sender_ref): Call lookup_sfield instead of lookup_field.
15965 (install_var_field): Add mask argument. Populate both record_type
15966 and srecord_type if needed.
15967 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
15969 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
15970 and DECL_FIELD_OFFSET.
15971 (scan_sharing_clauses): Adjust install_var_field callers. For
15972 firstprivate clauses on explicit tasks allocate the var by value in
15973 record_type unconditionally, rather than by reference.
15974 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
15975 Use is_taskreg_ctx instead of is_parallel_ctx.
15976 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
15977 (create_omp_child_function_name): Add task_copy argument, use
15978 *_omp_cpyfn* names if it is true.
15979 (create_omp_child_function): Add task_copy argument, if true create
15980 *_omp_cpyfn* helper function.
15981 (scan_omp_parallel): Adjust create_omp_child_function callers.
15982 Rename parallel_nesting_level to taskreg_nesting_level.
15983 (scan_omp_task): New function.
15984 (lower_rec_input_clauses): Don't run constructors for firstprivate
15985 explicit task vars which are initialized by *_omp_cpyfn*.
15986 Pass outer var ref to omp_clause_default_ctor hook if
15987 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
15988 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
15989 OMP_CLAUSE_REDUCTION_INIT.
15990 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
15991 avoid duplicate setting of fields. Handle
15992 OMP_CLAUSE_PRIVATE_OUTER_REF.
15993 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
15994 copy-out if TREE_READONLY, only copy-in.
15995 (expand_task_copyfn): New function.
15996 (expand_task_call): New function.
15997 (struct omp_taskcopy_context): New type.
15998 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
16000 (lower_omp_parallel): Rename to...
16001 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
16002 Call create_task_copyfn if srecord_type is needed. Adjust
16004 (task_shared_vars): New variable.
16005 (check_omp_nesting_restrictions): Warn if work-sharing,
16006 barrier, master or ordered region is closely nested inside OMP_TASK.
16007 Add warnings for barrier if closely nested inside of work-sharing,
16008 ordered, or master region.
16009 (scan_omp_1): Call check_omp_nesting_restrictions even for
16010 GOMP_barrier calls. Rename parallel_nesting_level to
16011 taskreg_nesting_level. Handle OMP_TASK.
16012 (lower_lastprivate_clauses): Even if some lastprivate is found on a
16013 work-sharing construct, continue looking for them on parent parallel
16015 (lower_omp_for_lastprivate): Add lastprivate clauses
16016 to the beginning of dlist rather than end. Adjust for struct
16017 omp_for_data changes.
16018 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
16019 not after it. Handle collapsed OMP_FOR loops, adjust for
16020 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
16021 (get_ws_args_for): Adjust extract_omp_for_data caller.
16022 (scan_omp_for): Handle collapsed OMP_FOR
16023 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
16024 (lower_omp_single_simple): If libgomp function doesn't return
16025 boolean_type_node, add comparison of the return value with 0.
16026 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
16027 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
16028 (parallel_nesting_level): Rename to...
16029 (taskreg_nesting_level): ... this.
16030 (is_taskreg_ctx): New function.
16031 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
16032 of is_parallel_ctx.
16033 (execute_lower_omp): Rename parallel_nesting_level to
16034 taskreg_nesting_level.
16035 (expand_omp_parallel): Rename to...
16036 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
16037 Call omp_task_call for OMP_TASK regions.
16038 (expand_omp): Adjust caller, handle OMP_TASK.
16039 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
16041 * bitmap.c (bitmap_default_obstack_depth): New variable.
16042 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
16043 if argument is NULL and bitmap_default_obstack is already initialized.
16044 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
16046 * matrix-reorg.c (matrix_reorg): Likewise.
16048 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
16050 * config/i386/i386.md (*indirect_jump): Macroize using P
16051 mode iterator. Remove !TARGET_64BIT from insn constraints.
16052 (*tablejump_1): Ditto.
16053 (*indirect_jump_rex64): Remove insn pattern.
16054 (*tablejump_1_rex64): Ditto.
16055 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
16056 and eh_return_si insn patterns.
16058 2008-06-06 Richard Guenther <rguenther@suse.de>
16060 * tree-ssa-structalias.c (merge_smts_into): Remove.
16061 (find_what_p_points_to): Do not bother to compute the
16062 points-to set for pt_anything pointers.
16063 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
16064 for pt_anything pointers is ok.
16066 2008-06-06 Jan Hubicka <jh@suse.cz>
16068 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
16070 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16072 * cgraph.c: Fix typos in comments.
16073 (cgraph_availability_names): Fix string typo.
16074 * fold-const.c: Fix typos in comments.
16075 (fold_binary): Fix typo in warning.
16076 * genautomata.c: Fix typos in comments.
16077 (check_presence_pattern_sets): Fix typo in local variable.
16078 (output_description): Fix typo in output.
16079 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
16080 * hwint.h: Likewise.
16081 * matrix-reorg.c (check_allocation_function): Likewise.
16082 * omega.c (smooth_weird_equations): Likewise.
16083 * auto-inc-dec.c: Fix typos in comments.
16084 * bb-reorder.c: Likewise.
16085 * builtins.c: Likewise.
16086 * c-common.c: Likewise.
16087 * c-cppbuiltin.c: Likewise.
16088 * c-parser.c: Likewise.
16089 * c-pretty-print.c: Likewise.
16090 * cfgcleanup.c: Likewise.
16091 * cfgexpand.c: Likewise.
16092 * cfghooks.c: Likewise.
16093 * cfglayout.c: Likewise.
16094 * cfgloopmanip.c: Likewise.
16095 * cgraphunit.c: Likewise.
16096 * coverage.c: Likewise.
16097 * dbxout.c: Likewise.
16098 * df-byte-scan.c: Likewise.
16099 * df-core.c: Likewise.
16100 * df-problems.c: Likewise.
16101 * df-scan.c: Likewise.
16103 * dominance.c: Likewise.
16104 * domwalk.c: Likewise.
16106 * dwarf2out.c: Likewise.
16107 * emit-rtl.c: Likewise.
16108 * et-forest.c: Likewise.
16109 * function.c: Likewise.
16110 * function.h: Likewise.
16112 * gcov-io.c: Likewise.
16113 * gcov.c: Likewise.
16114 * gcse.c: Likewise.
16115 * genattrtab.c: Likewise.
16116 * ggc-page.c: Likewise.
16117 * gimplify.c: Likewise.
16118 * gthr-lynx.h: Likewise.
16119 * haifa-sched.c: Likewise.
16120 * ipa-cp.c: Likewise.
16121 * ipa-inline.c: Likewise.
16122 * ipa-prop.h: Likewise.
16123 * ipa-pure-const.c: Likewise.
16124 * ipa-struct-reorg.c: Likewise.
16125 * ipa-struct-reorg.h: Likewise.
16126 * ipa-type-escape.c: Likewise.
16128 * loop-doloop.c: Likewise.
16129 * mips-tfile.c: Likewise.
16130 * mkmap-flat.awk: Likewise.
16131 * mkmap-symver.awk: Likewise.
16132 * modulo-sched.c: Likewise.
16133 * omp-low.c: Likewise.
16134 * optabs.c: Likewise.
16135 * optabs.h: Likewise.
16136 * opts.c: Likewise.
16137 * passes.c: Likewise.
16138 * postreload-gcse.c: Likewise.
16139 * postreload.c: Likewise.
16140 * predict.c: Likewise.
16141 * pretty-print.h: Likewise.
16142 * profile.c: Likewise.
16143 * protoize.c: Likewise.
16144 * ra-conflict.c: Likewise.
16145 * real.c: Likewise.
16146 * recog.c: Likewise.
16147 * regclass.c: Likewise.
16148 * regs.h: Likewise.
16149 * reload.c: Likewise.
16150 * rtl-error.c: Likewise.
16151 * rtlanal.c: Likewise.
16152 * scan.h: Likewise.
16153 * sched-rgn.c: Likewise.
16155 * stmt.c: Likewise.
16156 * target.h: Likewise.
16157 * tree-dfa.c: Likewise.
16158 * tree-eh.c: Likewise.
16159 * tree-flow-inline.h: Likewise.
16160 * tree-inline.c: Likewise.
16161 * tree-into-ssa.c: Likewise.
16162 * tree-loop-distribution.c: Likewise.
16163 * tree-nested.c: Likewise.
16164 * tree-parloops.c: Likewise.
16165 * tree-pass.h: Likewise.
16166 * tree-pretty-print.c: Likewise.
16167 * tree-profile.c: Likewise.
16168 * tree-scalar-evolution.c: Likewise.
16169 * tree-sra.c: Likewise.
16170 * tree-ssa-alias-warnings.c: Likewise.
16171 * tree-ssa-ccp.c: Likewise.
16172 * tree-ssa-coalesce.c: Likewise.
16173 * tree-ssa-dom.c: Likewise.
16174 * tree-ssa-dse.c: Likewise.
16175 * tree-ssa-forwprop.c: Likewise.
16176 * tree-ssa-live.c: Likewise.
16177 * tree-ssa-live.h: Likewise.
16178 * tree-ssa-loop-im.c: Likewise.
16179 * tree-ssa-loop-ivopts.c: Likewise.
16180 * tree-ssa-loop-niter.c: Likewise.
16181 * tree-ssa-loop-prefetch.c: Likewise.
16182 * tree-ssa-phiopt.c: Likewise.
16183 * tree-ssa-phiprop.c: Likewise.
16184 * tree-ssa-sccvn.c: Likewise.
16185 * tree-ssa-ter.c: Likewise.
16186 * tree-ssa-threadupdate.c: Likewise.
16187 * tree-ssa.c: Likewise.
16188 * tree-vect-analyze.c: Likewise.
16189 * tree-vect-transform.c: Likewise.
16190 * tree-vectorizer.c: Likewise.
16191 * tree-vn.c: Likewise.
16192 * tree-vrp.c: Likewise.
16193 * tree.c: Likewise.
16194 * tree.def: Likewise.
16195 * tree.h: Likewise.
16196 * unwind-dw2-fde.c: Likewise.
16197 * unwind.inc: Likewise.
16198 * value-prof.c: Likewise.
16199 * vmsdbgout.c: Likewise.
16201 2008-06-05 David Edelsohn <edelsohn@gnu.org>
16203 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
16204 always place FP constants in the TOC for TARGET_POWERPC64.
16205 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
16207 2008-06-05 Joseph Myers <joseph@codesourcery.com>
16209 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
16210 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
16211 enable for TARGET_E500_DOUBLE.
16212 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
16213 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
16214 floating-point modes like integer modes for E500 double.
16215 (rs6000_legitimate_offset_address_p): Likewise.
16216 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
16217 addressing for DDmode for E500 double.
16218 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
16219 modes as using 64-bits of registers for E500 double.
16220 (spe_build_register_parallel): Do not handle DDmode or TDmode.
16221 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
16222 specially for E500 double.
16223 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
16224 TDmode for E500 double.
16225 (rs6000_gimplify_va_arg): Only handle SDmode in registers
16226 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
16227 (rs6000_split_multireg_move): Do not handle TDmode specially for
16229 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
16230 using 64-bit registers for E500 double.
16231 (emit_frame_save): Do not handle DDmode specially for E500 double.
16232 (gen_frame_mem_offset): Likewise.
16233 (rs6000_function_value): Do not call spe_build_register_parallel
16234 for DDmode or TDmode.
16235 (rs6000_libcall_value): Likewise.
16236 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
16237 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
16240 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
16242 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
16245 2008-06-04 Junjie Gu <jgu@tensilica.com>
16247 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
16248 comparison for frame pointers.
16250 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
16253 * config/avr/avr.h (PUSH_ROUNDING): Remove.
16255 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
16258 * builtins.c (expand_builtin_signbit): Don't take lowpart when
16259 register is already smaller or equal to required mode.
16261 2008-06-04 Xinliang David Li <davidxl@google.com>
16263 * tree-call-cdce.c: New file.
16264 (cond_dead_built_in_calls): New static variable.
16265 (input_domain): New struct.
16266 (check_pow): New function.
16267 (check_builtin_call): Ditto.
16268 (check_target_format): Ditto.
16269 (is_call_dce_candidate): Ditto.
16270 (gen_one_condition): Ditto.
16271 (gen_conditions_for_domain): Ditto.
16272 (get_domain): Ditto.
16273 (gen_conditions_for_pow_cst_base): Ditto.
16274 (gen_conditions_for_pow_int_base): Ditto.
16275 (gen_conditions_for_pow): Ditto.
16276 (get_no_error_domain): Ditto.
16277 (gen_shrink_wrap_conditions): Ditto.
16278 (shrink_wrap_one_built_in_call): Ditto.
16279 (shink_wrap_conditional_dead_built_in_calls): Ditto.
16280 (tree_call_cdce): Ditto.
16281 (gate_call_cdce): Ditto.
16282 (pass_call_cdce): New gimple pass.
16283 * passes.c: (init_optimization_passes): New pass.
16284 * tree-pass.h: New pass declaration.
16285 * opts.c (decode_options): New flag setting.
16286 * common.opt: Add -ftree-builtin-call-dce flag.
16287 * Makefile.in: Add new source file.
16288 * tempvar.def: New tv_id.
16289 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
16291 2008-06-04 Richard Guenther <rguenther@suse.de>
16293 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
16294 (is_call_clobbered): Always check var_ann->call_clobbered.
16295 (mark_call_clobbered): Always set var_ann->call_clobbered.
16296 (clear_call_clobbered): Always clear var_ann->call_clobbered.
16297 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
16298 (reset_alias_info): Clear call clobbering info on MTAGs and
16300 (set_pt_anything): Set pt_global_mem.
16301 (create_tag_raw): Adjust comment.
16302 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
16304 2008-06-04 Joseph Myers <joseph@codesourcery.com>
16305 Maxim Kuvyrkov <maxim@codesourcery.com>
16307 * config/m68k/m68k.opt (mxgot): New option.
16308 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
16309 (m68k_output_addr_const_extra): New.
16310 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
16311 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
16312 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
16313 * doc/invoke.texi (M680x0 Options): Document -mxgot.
16315 2008-06-04 Richard Guenther <rguenther@suse.de>
16317 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
16318 negative or non-representable offsets.
16320 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
16322 * config/i386/i386.c (ix86_gen_leave): New.
16323 (ix86_gen_pop1): Likewise.
16324 (ix86_gen_add3): Likewise.
16325 (ix86_gen_sub3): Likewise.
16326 (ix86_gen_sub3_carry): Likewise.
16327 (ix86_gen_one_cmpl2): Likewise.
16328 (ix86_gen_monitor): Likewise.
16329 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
16330 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
16331 ix86_gen_one_cmpl2 and ix86_gen_monitor.
16332 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
16333 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
16334 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
16335 (ix86_expand_epilogue): Updated.
16336 (print_operand): Handle integer register operand for 'z'.
16337 (ix86_expand_strlensi_unroll_1): Likewise.
16338 (ix86_expand_strlen): Likewise.
16339 (ix86_expand_builtin): Likewise.
16340 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
16341 mov{q}/mov{l} and add{q}/add{l}.
16343 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
16345 * config/i386/i386.md (P): New mode iterator.
16346 (SFmode push_operand splitter): Macroize DImode and SImode pushes
16347 using P mode iterator.
16348 (DFmode push_operand splitter): Ditto.
16349 (XFmode push_operand splitter): Ditto.
16350 (DFmode float_extend SFmode push_operand splitter): Ditto.
16351 (XFmode float_extend SFmode push_operand splitter): Do not generate
16352 SImode pushes for 64bit target. Macroize Dimode and SImode
16353 pushes using P mode iterator.
16354 (XFmode float_extend DFmode push_operand splitter): Ditto.
16356 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
16358 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
16359 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
16360 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
16361 return type to int.
16362 (ix86_call_abi_override): Remove check for call_used_regs.
16364 2008-06-03 Richard Guenther <rguenther@suse.de>
16366 * tree-ssa-structalias.c (find_func_aliases): Add constraints
16367 for the lhs of calls if the return type contains pointers.
16369 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
16371 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
16372 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
16373 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
16374 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
16375 of cfun and DEFAULT_ABI to deceide abi mode.
16376 (DEFAULT_ABI): New.
16377 (REG_PARM_STACK_SPACE): Removed.
16378 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
16379 (STACK_BOUNDARY): Use default target to deceide stack boundary.
16380 * config/i386/i386-protos.h (ix86_cfun_abi): New.
16381 (ix86_function_abi): Likewise.
16382 (ix86_function_type_abi): Likewise.
16383 (ix86_call_abi_override): Likewise.
16384 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
16385 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
16386 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
16387 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
16389 (X86_64_REGPARM_MAX): New.
16390 (X86_64_SSE_REGPARM_MAX): New.
16391 (X64_REGPARM_MAX): New.
16392 (X64_SSE_REGPARM_MAX): New.
16393 (X86_32_REGPARM_MAX): New.
16394 (X86_32_SSE_REGPARM_MAX): New.
16395 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
16396 (ix86_function_regparm): Handle user calling abi.
16397 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
16398 by DEFAULT_ABI versus SYSV_ABI check.
16399 (ix86_reg_parm_stack_space): New.
16400 (ix86_function_type_abi): New.
16401 (ix86_call_abi_override): New.
16402 (ix86_function_abi): New.
16403 (ix86_cfun_abi): New.
16404 (init_cumulative_args): Call abi specific initialization.
16405 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
16406 (function_arg_64): Extend SSE_REGPARM_MAX check.
16407 (function_arg (): Remove TARGET_64BIT_MS_ABI.
16408 (ix86_pass_by_reference): Likewise.
16409 (ix86_function_value_regno_p): Likewise.
16410 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
16411 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
16412 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
16413 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
16414 (setup_incoming_varargs_64): Adjust regparm for call abi.
16415 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
16416 (ix86_va_start): Likewise.
16417 (ix86_gimplify_va_arg): Likewise.
16418 (ix86_expand_prologue): Likewise.
16419 (output_pic_addr_const): Likewise.
16420 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
16421 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
16422 (x86_output_mi_thunk): Likewise.
16423 (x86_function_profiler): Likewise.
16424 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
16425 (SYSV_ABI, MS_ABI): New constants.
16426 (DEFAULT_ABI): New.
16427 (init_regs): Add prototype of function in regclass.c file.
16428 (OVERRIDE_ABI_FORMAT): New.
16429 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
16430 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
16431 (OUTGOING_REG_PARM_STACK_SPACE): New.
16432 (ix86_reg_parm_stack_space): New prototype.
16433 (CUMULATIVE_ARGS): Add call_abi member.
16434 (machine_function): Add call_abi member.
16435 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
16436 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
16438 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
16441 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
16442 (avr_builtin_setjmp_frame_value): New function.
16443 * config/avr/avr.md (nonlocal_goto_receiver): Define.
16444 (nonlocal_goto): Define.
16446 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
16448 * config/mips/mips.c (mips_emit_loadgp): Return early if
16449 there is nothing do to, otherwise emit a blockage if
16450 !TARGET_EXPLICIT_RELOCS || crtl->profile.
16451 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
16453 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16455 * configure.ac: Drop unneeded backslash ending up in config.in.
16456 * acinclude.m4: Likewise.
16457 * config.in: Regenerate.
16459 2008-05-26 Jan Hubicka <jh@suse.cz>
16461 * predict.c (maybe_hot_frequency_p): Break out of...
16462 (maybe_hot_bb_p): ... here.
16463 (maybe_hot_edge_p): New.
16464 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
16465 * basic-block.h (maybe_hot_edge_p): Declare.
16467 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
16469 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
16470 (*cmpfp_<mode>_cc): Ditto.
16471 (*fp_jcc_8<mode>_387): Ditto.
16472 (*fop_<MODEF:mode>_2_i387): Ditto.
16473 (*fop_<MODEF:mode>_3_i387): Ditto.
16474 (*fop_xf_2_i387): Ditto.
16475 (*fop_xf_3_i387): Ditto.
16477 2008-06-02 Tomas Bily <tbily@suse.cz>
16479 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
16481 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
16483 * config/mips/mips.c (mips_valid_offset_p): New function.
16484 (mips_valid_lo_sum_p): Likewise.
16485 (mips_classify_address): Use them.
16486 (mips_force_address): New function.
16487 (mips_legitimize_address): Use it.
16488 * config/mips/mips.md (MOVE128): New mode iterator.
16489 (movtf): Require TARGET_64BIT. Remove empty strings.
16490 (*movtf_internal): Rename to...
16491 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
16492 of "R" and use {,fp}{load,store} attributes instead of "multi".
16493 Use a separate define_split.
16494 (*movtf_mips16): New pattern.
16496 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
16498 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
16499 * config/mips/mips.c (mips_expand_before_return): New function.
16500 (mips_expand_epilogue): Call it.
16501 * config/mips/mips.md (return): Turn into a define_expand.
16502 (*return): New insn.
16504 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
16506 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
16507 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
16508 functions. Do not emit uses and clobbers of CONCATs; individually
16509 use and clobber their operands.
16510 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
16511 gen_clobber, emit_use and gen_use.
16512 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
16513 (expand_builtin_return): Likewise.
16514 * cfgbuild.c (count_basic_blocks): Likewise.
16515 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
16516 * explow.c (emit_stack_restore): Likewise.
16517 * expmed.c (extract_bit_field_1): Likewise.
16518 * expr.c (convert_move, emit_move_complex_parts): Likewise.
16519 (emit_move_multi_word, store_constructor): Likewise.
16520 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
16521 (thread_prologue_and_epilogue_insns): Likewise.
16522 * lower-subreg.c (resolve_simple_move): Likewise.
16523 * optabs.c (widen_operand, expand_binop): Likewise.
16524 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
16525 * reload.c (find_reloads): Likewise.
16526 * reload1.c (eliminate_regs_in_insn): Likewise.
16527 * stmt.c (expand_nl_goto_receiver): Likewise.
16528 * config/alpha/alpha.md (builtin_longjmp): Likewise.
16529 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
16530 * config/arm/arm.c (arm_load_pic_register): Likewise.
16531 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
16532 * config/arm/arm.md (untyped_return): Likewise.
16533 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
16534 * config/avr/avr.c (expand_prologue): Likewise.
16535 * config/bfin/bfin.c (do_unlink): Likewise.
16536 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
16537 * config/cris/cris.c (cris_expand_prologue): Likewise.
16538 * config/darwin.c (machopic_indirect_data_reference): Likewise.
16539 (machopic_legitimize_pic_address): Likewise.
16540 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
16541 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
16542 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
16543 (ix86_expand_convert_uns_didf_sse): Likewise.
16544 (ix86_expand_vector_init_general): Likewise.
16545 * config/ia64/ia64.md (eh_epilogue): Likewise.
16546 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
16547 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
16548 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
16549 (config/iq2000/iq2000.c): Likewise.
16550 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
16551 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
16552 (builtin_longjmp): Likewise.
16553 * config/mn10300/mn10300.md (call, call_value): Likewise.
16554 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
16555 * config/pdp11/pdp11.md (abshi2): Likewise.
16556 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
16557 * config/s390/s390.c (s390_emit_prologue): Likewise.
16558 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
16559 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
16560 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
16561 * config/sh/sh.c (prepare_move_operands): Likewise.
16562 (output_stack_adjust, sh_expand_epilogue): Likewise.
16563 (sh_set_return_address, sh_expand_t_scc): Likewise.
16564 * config/sparc/sparc.c (load_pic_register): Likewise.
16565 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
16566 * config/spu/spu.c (spu_expand_epilogue): Likewise.
16567 * config/v850/v850.c (expand_epilogue): Likewise.
16569 2008-05-31 Anatoly Sokolov <aesok@post.ru>
16571 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
16572 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
16573 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
16574 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
16575 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
16576 stack pointer register.
16577 (output_movhi): Remove code for interrupt specific writing to the
16578 stack pointer register.
16580 2008-05-31 Richard Guenther <rguenther@suse.de>
16582 PR tree-optimization/34244
16583 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
16584 (tree_expr_nonzero_warnv_p): Likewise.
16585 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
16586 ssa_name_nonnegative_p.
16587 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
16588 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
16589 not tree_expr_nonzero_warnv_p.
16591 PR tree-optimization/36262
16593 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
16595 PR tree-optimization/34244
16596 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
16597 (record_numbers_of_iterations): New function.
16598 (execute_vrp): Cache the numbers of iterations of loops.
16599 * tree-scalar-evolution.c (scev_reset_except_niters):
16601 (scev_reset): Use scev_reset_except_niters.
16602 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
16604 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
16606 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16607 __WORKAROUND_RETS when appropriate.
16609 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
16611 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
16612 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
16614 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
16615 *fop_df_comm_sse insn patterns using MODEF mode iterator.
16616 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
16617 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
16618 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
16619 *fop_df_1_mixed insn patterns using MODEF mode iterator.
16620 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
16621 *fop_df_1_sse insn patterns using MODEF mode iterator.
16622 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
16623 *fop_df_1_i387 insn patterns using MODEF mode iterator.
16624 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
16625 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
16626 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
16627 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
16628 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
16629 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
16630 (*fop_xf_4_i387): Use <MODE> for mode attribute.
16631 (*fop_xf_5_i387): Ditto.
16632 (*fop_xf_6_i387): Ditto.
16634 2008-05-30 Richard Guenther <rguenther@suse.de>
16636 * builtins.c (build_string_literal): Avoid generating
16637 a non-gimple_val result.
16639 2008-05-30 DJ Delorie <dj@redhat.com>
16641 * exec-tool.in: Use an environment variable (private) instead of a
16642 file (shared) as a semaphore, so as to not break parallel builds.
16644 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
16646 * optabs.c (maybe_encapsulate_block): Remove.
16647 (emit_libcall_block): Adjust accordingly.
16648 * optabs.h (maybe_encapsulate_block): Remove prototype.
16650 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
16651 Don't use maybe_encapsulate_block.
16653 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
16655 * config/rs6000/rs6000.c (rs6000_legitimize_address,
16656 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
16657 rtx is a SYMBOL_REF before calling get_pool_constant.
16659 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
16661 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
16663 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
16665 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
16666 rather than OS names to choose INO_T_EQ definition.
16667 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
16668 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
16670 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
16673 * config/darwin-f.c: New.
16674 * config/t-darwin: Added rule to build darwin-f.o.
16675 * config.gcc: Defined new variable, fortran_target_objs.
16676 (*-*-darwin*): Set fortran_target_objs.
16677 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
16678 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
16679 * configure: Regenerated.
16681 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
16684 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
16685 canonical type if needed.
16687 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
16689 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
16691 2008-05-29 Richard Guenther <rguenther@suse.de>
16693 PR tree-optimization/36343
16694 PR tree-optimization/36346
16695 PR tree-optimization/36347
16696 * tree-flow.h (clobber_what_p_points_to): Declare.
16697 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
16698 pointed-to variable is dereferenced is irrelevant to whether
16699 the pointer can access the pointed-to variable.
16700 (clobber_what_p_points_to): New function.
16701 * tree-ssa-alias.c (set_initial_properties): Use it.
16702 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
16703 call clobber check for NMTs.
16705 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
16707 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
16708 for printing gcov_type.
16710 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
16712 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
16713 and the eh region information.
16714 * value-prof.c (gimple_move_stmt_histograms): New function.
16715 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
16717 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
16719 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
16721 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
16723 * value-prof.c (tree_ic_transform): Print counts.
16724 * tree-profile.c (tree_gen_ic_func_profiler):
16725 Clear __gcov_indreict_call_callee variable to avoid misattribution
16728 2008-05-28 Rafael Espíndola <espindola@google.com>
16730 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
16733 2008-05-28 Richard Guenther <rguenther@suse.de>
16735 PR tree-optimization/36339
16736 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
16737 and clobbering code out of the loop.
16739 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
16741 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
16744 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
16745 s390_contiguous_bitmask_p, s390_symref_operand_p,
16746 s390_check_symref_alignment, s390_reload_larl_operand,
16747 s390_reload_symref_address): New functions.
16748 (s390_branch_condition_mnemonic): Support compare and branch
16750 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
16751 and 'W' constraints.
16752 (s390_secondary_reload): Add secondary reloads for unaligned
16753 symbol refs or symbol refs to floating point or QI/TI mode
16755 (legitimate_address_p): Accept symbol references as addresses.
16756 (s390_expand_insv): Use rotate and insert selected bits
16757 instruction for insv when building for z10.
16758 (print_operand_address): Handle symbol ref addresses.
16759 (print_operand): Output modifier 'c' added for signed byte values.
16760 (s390_encode_section_info): Mark symbol refs with
16761 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
16763 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
16764 (length attribute): RRF, RRR have 4 byte length.
16765 (FPALL, INTALL): New mode iterators added.
16766 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
16767 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
16768 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
16769 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
16770 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
16771 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
16772 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
16773 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
16775 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
16776 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
16777 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
16778 reload<INTALL:mode><P:mode>_toreg_z10,
16779 reload<FPALL:mode><P:mode>_tomem_z10,
16780 reload<FPALL:mode><P:mode>_toreg_z10,
16781 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
16782 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
16783 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
16784 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
16786 (movmem, clrmem, cmpmem): New splitters added.
16788 * config/s390/predicates.md (larl_operand): Use
16789 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
16790 SYMBOL_REF_ALIGN1_P.
16791 (s390_signed_integer_comparison,
16792 s390_unsigned_integer_comparison): New predicates.
16794 * config/s390/s390-protos.h (s390_check_symref_alignment,
16795 s390_contiguous_bitmask_p, s390_reload_larl_operand,
16796 s390_reload_symref_address,
16797 s390_compare_and_branch_condition_mask): Prototypes added.
16799 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
16800 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
16801 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
16803 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
16805 * config/s390/s390.c (z10_cost): New cost function for z10.
16806 (s390_handle_arch_option, override_options): Support -march=z10 switch.
16807 (s390_issue_rate): Adjust issue rate for z10.
16808 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
16809 (processor_flags): Add PF_Z10.
16810 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
16811 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
16812 * gcc/config.gcc: Add z10.
16814 2008-05-28 Richard Guenther <rguenther@suse.de>
16816 PR tree-optimization/36291
16817 * tree-flow. h (struct gimple_df): Remove var_anns member.
16818 * tree-flow-inline.h (gimple_var_anns): Remove.
16819 (var_ann): Simplify.
16820 * tree-dfa.c (create_var_ann): Simplify.
16821 (remove_referenced_var): Clear alias info from var_anns of globals.
16822 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
16823 (delete_tree_ssa): Clear alias info from var_anns of globals.
16824 Do not free var_anns.
16825 (var_ann_eq): Remove.
16826 (var_ann_hash): Likewise.
16828 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
16830 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
16831 and loongson2f entries.
16832 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
16833 * config/mips/mips.h (processor_type): Add Loongson-2E
16834 and Loongson-2F entries.
16835 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
16836 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
16837 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
16838 * doc/invoke.texi (MIPS Options): Document loongson2e
16839 and loongson2f processor names.
16841 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
16845 * config/i386/i386.c (ix86_function_arg_boundary): Use
16846 alignment of canonical type.
16847 (ix86_expand_vector_move): Check unaligned memory access for
16850 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
16852 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
16853 Moved to the front of file.
16855 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
16856 H.J. Lu <hongjiu.lu@intel.com>
16858 * dwarf2out.c (current_fde): New.
16860 (lookup_cfa:): Likewise.
16861 (dwarf2out_end_epilogue): Likewise.
16862 (dwarf2out_note_section_used): Likewise.
16864 2008-05-27 Michael Matz <matz@suse.de>
16867 * c.opt (Wenum-compare): New warning option.
16868 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
16870 2008-05-27 Michael Matz <matz@suse.de>
16872 PR middle-end/36326
16873 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
16875 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
16876 into memory as tail calls.
16878 2008-05-27 Richard Guenther <rguenther@suse.de>
16880 PR tree-optimization/36339
16881 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
16882 pointers cause all addressable variables to be call clobbered.
16884 2008-05-27 Richard Guenther <rguenther@suse.de>
16886 PR tree-optimization/36245
16887 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
16889 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
16891 * config/s390/s390.md: Replace all occurences of the 'm'
16892 constraint with 'RT'.
16894 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
16896 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
16898 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
16900 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
16901 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
16902 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
16904 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
16906 * reload.c: (find_reloads): Skip alternatives according to the
16907 "enabled" attribute. Constify the constraint variable.
16908 * recog.c (get_attr_enabled): Add default implementation.
16909 (extract_insn): Set the alternative_enabled_p array
16910 in the recog_data struct.
16911 (preprocess_constraints, constrain_operands): Skip
16912 alternatives according to the "enabled" attribute
16913 * recog.h (struct recog_data): New field alternative_enabled_p.
16914 (skip_alternative): New inline function.
16915 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
16916 (record_reg_classes): Skip alternative according to the
16917 "enabled" attribute.
16919 * doc/md.texi: Add documention for the "enabled" attribute.
16921 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
16923 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
16924 * postreload.c (reload_cse_simplify_operands): Replace 'm'
16925 constraint with TARGET_MEM_CONSTRAINT.
16926 * recog.c (asm_operand_ok, preprocess_constraints,
16927 constrain_operands): Likewise.
16928 * regclass.c (record_reg_classes): Likewise.
16929 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
16930 * reload1.c (maybe_fix_stack_asms): Likewise.
16931 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16932 * recog.h: Adjust comment.
16933 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
16934 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
16935 * doc/md.texi: Add a note to description of 'm' constraint.
16936 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
16938 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
16940 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
16941 that the bitfield is of integral type before testing its precision.
16943 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
16944 Sa Liu <saliu@de.ibm.com>
16946 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
16947 __modti3, __udivti3, __umodti3 and __udivmodti4.
16948 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
16949 that implement TImode mul and div functions.
16950 * config/spu/multi3.c: New. Implement __multi3.
16951 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
16952 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
16955 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
16957 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
16958 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
16959 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
16960 tls_sysv_suffix): New mode and mode attribute iterators.
16961 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
16962 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
16963 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
16964 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
16965 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
16968 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
16970 PR tree-optimization/36329
16971 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
16972 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
16973 * cgraphbuild.c (initialize_inline_failed): Use the latter
16974 macro in lieu of the former.
16975 * ipa-inline.c (cgraph_mark_inline): Likewise.
16976 (cgraph_decide_inlining_of_small_function): Likewise.
16977 (cgraph_decide_inlining): Likewise.
16978 (cgraph_decide_inlining_incrementally): Likewise.
16980 2008-05-26 Tristan Gingold <gingold@adacore.com>
16981 Anatoly Sokolov <aesok@post.ru>
16983 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
16984 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
16985 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
16986 optimization for 'avr6' architecture.
16988 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
16991 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
16993 2008-05-26 Richard Guenther <rguenther@suse.de>
16995 * tree-ssa-sccvn.c (expr_has_constants): Declare.
16996 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
16998 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
17000 PR middle-end/36253
17001 * caller-save.c (insert_restore): Verify alignment of spill space.
17002 (insert_save): Likewise.
17003 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
17004 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
17005 (STACK_SLOT_ALIGNMENT): Likewise.
17006 * function.c (LOCAL_ALIGNMENT): Removed.
17007 (get_stack_local_alignment): New.
17008 (assign_stack_local): Use it. Set alignment on stack slot.
17009 (assign_stack_temp_for_type): Use get_stack_local_alignment.
17010 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
17011 (STACK_SLOT_ALIGNMENT): New.
17012 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
17013 stack slot in XFmode.
17015 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
17017 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
17020 * config/i386/i386.md (allocate_stack_worker_64): Make sure
17021 argument operand in rax isn't removed.
17023 2008-05-26 Richard Guenther <rguenther@suse.de>
17025 PR middle-end/36300
17026 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
17027 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
17029 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
17032 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
17034 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
17036 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
17037 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
17039 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
17041 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
17042 build a trampoline if we don't want one.
17043 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
17044 return zero for nested functions if we don't want a trampoline.
17046 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
17048 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
17050 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
17053 * c.opt: Removed undocumented option '-lang-fortran'.
17054 * c-common.h: Removed global variable 'lang_fortran'.
17055 * c-opts.c (c_common_handle_option): Removed code to handle
17056 option '-lang-fortran'. Updated includes.
17057 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
17058 definition of '__GFORTRAN__'.
17059 (define__GNUC__): Reimplemented to use BASEVER and
17060 cpp_define_formatted.
17061 (builtin_define_with_value_n): Removed.
17062 * c-incpath.h: Renamed to ...
17063 * incpath.h: ... this.
17064 * c-incpath.c: Renamed to ...
17065 * incpath.c: ... this. Updated includes.
17066 * fix-header.c: Updated includes.
17067 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
17068 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
17069 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
17071 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
17073 * tree.h: Update the table of flags used on tree nodes.
17074 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
17075 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
17076 (FORCED_LABEL): Add access check.
17077 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
17078 (ASM_INPUT_P): Likewise.
17079 (ASM_VOLATILE_P): Likewise.
17080 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
17081 (OMP_SECTION_LAST): Access private_flag directly.
17082 (OMP_RETURN_NOWAIT): Likewise.
17083 (OMP_PARALLEL_COMBINED): Likewise.
17084 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
17085 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
17086 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
17087 deprecated_flag directly.
17089 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
17091 * final.c (frame_pointer_needed): Removed.
17092 * flags.h (frame_pointer_needed): Likewise.
17094 * function.h (rtl_data): Add frame_pointer_needed.
17095 (frame_pointer_needed): New.
17097 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
17099 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
17101 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
17103 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
17106 2008-05-25 Alan Modra <amodra@bigpond.net.au>
17108 * c-common.c (strip_array_types): Move function to..
17110 (get_inner_array_type): Delete.
17111 * c-common.h (strip_array_types): Move declaration to..
17113 (get_inner_array_type): Delete.
17114 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
17115 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
17116 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17117 * config/pa/pa.c (emit_move_sequence): Likewise.
17119 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
17121 * config/i386/i386.md (*sse_prologue_save_insn): Set length
17124 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
17126 * function.c: Include target hook for nonlocal_goto frame value.
17128 2008-05-24 Richard Guenther <rguenther@suse.de>
17130 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
17131 variable can be only accessed through a pointer or a union.
17133 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17135 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
17136 * doc/extend.texi: Likewise.
17138 2008-05-23 DJ Delorie <dj@redhat.com>
17140 * config/m32c/jump.md (untyped_call): Add.
17142 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
17143 for A24 to PSImode.
17144 (m32c_address_cost): Detail costs for indirect offsets.
17146 2008-05-23 Rafael Espíndola <espindola@google.com>
17148 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
17149 if a node is a SUBREG.
17150 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
17153 2008-05-23 Paul Brook <paul@codesourcery.com>
17154 Carlos O'Donell <carlos@codesourcery.com>
17156 * doc/extend.texi: Clarify use of __attribute__((naked)).
17157 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
17158 * target.h (gcc_target): Add allocate_stack_slots_for_args.
17159 * function.c (use_register_for_decl): Use
17160 targetm.calls.allocate_stack_slots_for_args.
17161 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
17162 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
17163 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
17165 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
17167 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
17169 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
17171 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
17172 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
17173 is only rounded once.
17175 2008-05-23 Richard Guenther <rguenther@suse.de>
17177 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
17179 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
17180 Jakub Jelinek <jakub@redhat.com>
17183 * configure.ac: Handle --enable-cld.
17184 * configure: Regenerated.
17185 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
17186 * config/i386/i386.h (struct machine_function): Add needs_cld field.
17187 (ix86_current_function_needs_cld): New define.
17188 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
17189 (cld): New isns pattern.
17190 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
17191 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
17192 * config/i386/i386.opt (mcld): New option.
17193 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
17194 TARGET_CLD and ix86_current_function_needs_cld.
17195 (override_options): Use -mcld by default for 32-bit code if
17198 * doc/install.texi (Options specification): Document --enable-cld.
17199 * doc/invoke.texi (Machine Dependent Options)
17200 [i386 and x86-64 Options]: Add -mcld option.
17201 (Intel 386 and AMD x86-64 Options): Document -mcld option.
17203 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
17204 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
17205 (return_in_memory_64): Likewise.
17206 (return_in_memory_ms_64): Likewise.
17208 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17210 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
17211 * builtins.c (fold_builtin_fpclassify): New.
17212 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
17213 * builtins.def (BUILT_IN_FPCLASSIFY): New.
17214 * c-common.c (handle_type_generic_attribute): Adjust to accept
17215 fixed arguments before an elipsis.
17216 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
17217 * doc/extend.texi: Document __builtin_fpclassify.
17219 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
17221 * omp-low.c (gate_expand_omp_ssa): Remove.
17222 (pass_expand_omp_ssa): Remove.
17223 (gate_expand_omp): Do not check for flag_openmp_ssa.
17224 * common.opt (-fopenmp-ssa): Remove.
17225 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
17227 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
17229 * config/sh/sh.opt (mfixed-range): New option.
17230 * config/sh/sh-protos.h (sh_fix_range): Declare.
17231 * config/sh/sh.c (sh_fix_range): New function.
17232 * config/sh/sh.h (sh_fixed_range_str): Declare.
17233 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
17235 * doc/invoke.texi (SH Options): Document -mfixed-range.
17237 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
17239 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
17240 it before the redeclaration.
17242 2008-05-22 Anatoly Sokolov <aesok@post.ru>
17244 * config/avr/avr.c (get_sequence_length): Add new function.
17245 (expand_prologue, expand_epilogue): Remove duplicate code.
17247 2008-05-22 Rafael Espíndola <espindola@google.com>
17249 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
17252 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
17254 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
17255 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
17257 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
17258 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
17259 (vect_update_misalignment_for_peel): Likewise.
17260 (vector_alignment_reachable_p): Likewise.
17261 * tree-vect-transform.c (vectorizable_load): Likewise.
17262 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
17263 (get_vectype_for_scalar_type): Pass mode of scalar_type
17264 to UNITS_PER_SIMD_WORD.
17266 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
17267 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
17268 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
17269 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
17270 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
17272 2008-05-22 Ira Rosen <irar@il.ibm.com>
17274 PR tree-optimization/36293
17275 * tree-vect-transform.c (vect_transform_strided_load): Don't check
17276 if the first load must be skipped because of a gap.
17278 2008-05-22 Richard Guenther <rguenther@suse.de>
17280 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
17281 more cases of offset disambiguation that is possible if
17282 strict-aliasing rules apply.
17283 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
17284 for basic offset and type-based disambiguation.
17286 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
17288 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
17289 ix86_expand_vector_set on V16QImode for SSE4.1.
17291 2008-05-21 Tom Tromey <tromey@redhat.com>
17293 * c.opt (Wimport): Mark as undocumented.
17294 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
17296 (Warning Options): Likewise.
17297 * doc/cppopts.texi: Don't mention -Wimport.
17299 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
17301 PR tree-optimization/36287
17302 PR tree-optimization/36286
17303 * lambda-code.c (build_access_matrix): Do not use the loop->num
17304 for computing the number of induction variables: use the loop depth
17307 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
17310 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
17311 option -f(no-)leading-underscore.
17313 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
17315 * config/i386/i386.c (ix86_expand_vector_init_general): Use
17316 GET_MODE_NUNITS (mode).
17318 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
17320 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
17321 (-mmulhw): Add 464 to description.
17322 (-mdlmzb): Likewise.
17323 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
17324 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
17326 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
17327 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
17328 * config/rs6000/rs6000.md: Update comments for 464.
17330 2008-05-21 Janis Johnson <janis187@us.ibm.com>
17332 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
17334 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
17336 * config/i386/sse.md (vec_extractv4sf): Removed.
17337 (vec_extractv2df): Likewise.
17338 (vec_extractv2di): Likewise.
17339 (vec_extractv4si): Likewise.
17340 (vec_extractv8hi): Likewise.
17341 (vec_extractv16qi): Likewise.
17342 (vec_extract<mode>): New.
17344 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
17346 * config/i386/sse.md (vec_setv4sf): Removed.
17347 (vec_setv2df): Likewise.
17348 (vec_setv2di): Likewise.
17349 (vec_setv4si): Likewise.
17350 (vec_setv8hi): Likewise.
17351 (vec_setv16qi): Likewise.
17352 (vec_set<mode>): New.
17354 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
17356 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
17357 goto for vec_concat and vec_interleave.
17359 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
17361 * config/i386/sse.md (vec_initv4sf): Removed.
17362 (vec_initv2df): Likewise.
17363 (vec_initv2di): Likewise.
17364 (vec_initv4si): Likewise.
17365 (vec_initv8hi): Likewise.
17366 (vec_initv16qi): Likewise.
17367 (vec_init<mode>): New.
17369 2008-05-21 Joseph Myers <joseph@codesourcery.com>
17371 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
17373 2008-05-21 Tom Tromey <tromey@redhat.com>
17375 * ggc-zone.c (lookup_page_table_if_allocated): New function.
17376 (zone_find_object_offset): Likewise.
17377 (gt_ggc_m_S): Likewise.
17378 (highest_bit): Likewise.
17379 * ggc-page.c (gt_ggc_m_S): New function.
17380 * stringpool.c (string_stack): Remove.
17381 (init_stringpool): Update.
17382 (ggc_alloc_string): Use ggc_alloc.
17383 (maybe_delete_ident): New function.
17384 (ggc_purge_stringpool): Likewise.
17385 (gt_ggc_m_S): Remove.
17386 * ggc-common.c (ggc_protect_identifiers): New global.
17387 (ggc_mark_roots): Call ggc_purge_stringpool. Use
17388 ggc_protect_identifiers.
17389 * ggc.h (ggc_protect_identifiers): Declare.
17390 (gt_ggc_m_S): Update.
17391 (ggc_purge_stringpool): Declare.
17392 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
17393 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
17395 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
17397 2008-05-21 David S. Miller <davem@davemloft.net>
17399 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
17402 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
17404 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
17407 2008-05-20 David Daney <ddaney@avtrex.com>
17409 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
17410 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
17411 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
17412 UNSPEC_UPDATE_GOT_VERSION): Renumber.
17413 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
17414 (atomic_hiqi_op): New define_code_iterator.
17415 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
17416 mips_expand_compare_and_swap_12.
17417 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
17418 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
17419 (sync_<optab><mode>, sync_old_<optab><mode>,
17420 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
17421 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
17422 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
17423 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
17424 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
17425 (test_and_set_12): New insn.
17426 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
17427 sync_new_<optab><mode>, sync_old_nand<mode>,
17428 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
17429 clobber to operand 0 for SI and DI mode insns.
17430 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
17431 mips_gen_fn_4): New typedefs.
17432 (mips_gen_fn_ptrs): Define new union type.
17433 (mips_expand_compare_and_swap_12): Remove declaration.
17434 (mips_expand_atomic_qihi): Declare function.
17435 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
17436 (mips_expand_atomic_qihi): ... this. Use new generator function
17438 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
17439 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
17440 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
17441 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
17442 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
17443 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
17444 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
17445 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
17446 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
17447 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
17450 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
17452 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
17455 2008-05-20 Anatoly Sokolov <aesok@post.ru>
17457 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
17458 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
17459 (avr_attribute_table): Add 'OS_main' function attribute.
17460 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
17461 functions with 'OS_main' attribute.
17463 2008-05-20 Richard Guenther <rguenther@suse.de>
17465 PR tree-optimization/35204
17466 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
17467 helper, split out from ...
17468 (DFS): ... here. Make the DFS walk non-recursive.
17470 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
17471 Jan Sjodin <jan.sjodin@amd.com>
17473 PR tree-optimization/36181
17474 * tree-parloops.c (loop_has_vector_phi_nodes): New.
17475 (parallelize_loops): Don't parallelize when the loop has vector
17478 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
17479 Sebastian Pop <sebastian.pop@amd.com>
17481 * tree-loop-linear.c (gather_interchange_stats): Look in the access
17482 matrix, and never look at the tree representation of the memory
17484 (linear_transform_loops): Computes parameters and access matrices.
17485 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
17487 (access_matrix_get_index_for_parameter): New.
17488 * tree-data-ref.h (struct access_matrix): New.
17489 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
17490 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
17491 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
17492 am_vector_index_for_loop): New.
17493 (struct data_reference): Add field access_matrix.
17494 (DR_ACCESS_MATRIX): New.
17495 (compute_data_dependences_for_loop): Update declaration.
17496 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
17497 * lambda.h (lambda_vector_vec_p): Declared.
17498 * lambda-code.c: Depend on pointer-set.h.
17499 (lambda_collect_parameters_from_af, lambda_collect_parameters,
17500 av_for_af_base, av_for_af, build_access_matrix,
17501 lambda_compute_access_matrices): New.
17502 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
17504 2008-05-20 Joseph Myers <joseph@codesourcery.com>
17506 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
17507 $SOURCEDIR/include.
17509 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
17510 Sebastian Pop <sebastian.pop@amd.com>
17512 PR tree-optimization/36206
17513 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
17515 (instantiate_scev_1): Rename flags to fold_conversions.
17516 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
17517 outeside instantiation_loop.
17518 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
17519 (evolution_function_is_affine_or_constant_p): Removed.
17520 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
17522 (analyze_siv_subscript): Pass in the loop nest number.
17523 Call evolution_function_is_affine_in_loop instead of
17524 evolution_function_is_affine_p.
17525 (analyze_overlapping_iterations): Pass in the loop nest number.
17527 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
17528 Sebastian Pop <sebastian.pop@amd.com>
17530 PR tree-optimization/36206
17531 * tree-chrec.h (chrec_fold_op): New.
17532 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
17535 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
17537 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
17539 (remove_duplicates): Do not set inode on non-inode systems.
17542 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
17544 * config.gcc (tm_file): Update comments about relative pathnames.
17546 2008-05-20 Richard Guenther <rguenther@suse.de>
17548 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
17549 * tree-ssa-sccvn.c (process_scc): Likewise.
17550 * tree-ssa-sink.c (execute_sink_code): Likewise.
17551 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17552 * tree-vrp.c (process_assert_insertions): Likewise.
17553 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
17554 (perform_tree_ssa_dce): Likewise.
17555 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
17556 (dump_dominator_optimization_stats): Likewise.
17557 * tree-vectorizer.c (vectorize_loops): Likewise.
17559 2008-05-20 Richard Guenther <rguenther@suse.de>
17561 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
17563 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
17565 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
17566 (ix86_i386elf_return_in_memory): Likewise.
17567 (ix86_i386interix_return_in_memory): Likewise.
17568 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
17569 (SUBTARGET_RETURN_IN_MEMORY): New.
17570 * config/i386/i386elf.h: Likewise.
17571 * config/i386/ptx4-i.h: Likewise.
17572 * config/i386/sol2-10.h: Likewise.
17573 * config/i386/sysv4.h: Likewise.
17574 * config/i386/vx-common.h: Likewise.
17575 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
17576 * config/i386/i386.c (ix86_return_in_memory): Made static and
17577 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
17578 (ix86_i386elf_return_in_memory): Removed.
17579 (ix86_i386interix_return_in_memory): Removed.
17580 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
17581 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
17583 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
17585 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
17587 2008-05-19 Xinliang David Li <davidxl@google.com>
17589 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
17591 * common.opt: Ditto.
17592 * doc/invoke.texi: Ditto.
17594 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
17596 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
17597 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
17599 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
17601 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
17602 sizes of operand array from 8/4 to 4/2.
17603 (ix86_expand_vector_init_general): Change size of operand array
17604 from 32 to 16. Remove op0, op1 and half_mode.
17606 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
17608 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
17609 (ix86_expand_vector_init_interleave): Likewise.
17610 (ix86_expand_vector_init_general): Use them. Assert
17611 word_mode == SImode when n_words == 4.
17613 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
17615 * config/i386/i386.c (ix86_secondary_reload): New static function.
17616 (TARGET_SECONDARY_RELOAD): New define.
17617 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
17618 * config/i386/i386.md (reload_outqi): Remove.
17620 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17622 PR middle-end/35509
17623 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
17624 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
17625 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
17626 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
17627 (fold_builtin_1): Likewise.
17628 * builtins.def (BUILT_IN_ISINF_SIGN): New.
17629 c-common.c (check_builtin_function_arguments): Handle
17630 BUILT_IN_ISINF_SIGN.
17631 * doc/extend.texi: Document __builtin_isinf_sign.
17632 * fold-const.c (operand_equal_p): Handle COND_EXPR.
17634 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
17636 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
17637 EH cleanup at the end of the pass, search for those that have been
17638 turned into forwarder blocks and do the cleanup on their successor.
17640 2008-05-18 Richard Guenther <rguenther@suse.de>
17642 * tree-cfg.c (verify_gimple_expr): Allow conversions from
17643 pointers to sizetype and vice versa.
17645 2008-05-18 Xinliang David Li <davidxl@google.com>
17647 * gcc/tree-ssa-dce.c: Coding style fix.
17648 (check_pow): Documentation comment.
17649 (check_log): Documenation comment. Coding style fix.
17650 (is_unnecessary_except_errno_call): Ditto.
17651 (gen_conditions_for_pow): Ditto.
17652 (gen_conditions_for_log): Ditto.
17653 (gen_shrink_wrap_conditions): Ditto.
17654 (shrink_wrap_one_built_in_calls): Ditto.
17655 * gcc/doc/invoke.texi: Better documentation string.
17656 * ChangeLog: Fix wrong change log entries from
17657 May 17 checkin on function call DCE.
17659 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
17661 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
17663 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
17665 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
17666 * df-problems.c (simulation routines): Fixed block comment to
17667 properly say how to add forwards scanning functions.
17669 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
17671 * tree-inline.c (setup_one_parameter): Remove dead code.
17673 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
17675 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
17676 a BIT_AND_EXPR only for an INTEGER_TYPE.
17678 2008-05-17 Xinliang David Li <davidxl@google.com>
17680 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
17681 (check_pow, check_log, is_unnecessary_except_errno_call): New
17682 functions to check for eliminating math functions that are pure
17683 except for setting errno.
17684 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
17685 general condition expressions for shrink-wrapping pow/log calls.
17686 (gen_shrink_wrap_conditions): Ditto.
17687 (shrink_wrap_one_built_in_call): Ditto.
17688 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
17689 (mark_operand_necessary): If debugging, output if OP is necessary.
17690 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
17692 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
17694 * gcc/common.opt: New user flag -ftree-builtin-dce.
17695 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
17697 2008-05-16 David S. Miller <davem@davemloft.net>
17699 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
17700 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
17702 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
17705 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
17707 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
17709 * ifcvt.c (dead_or_predicable): Rename
17710 df_simulate_one_insn_backwards to df_simulate_one_insn.
17711 * recog.c (peephole2_optimize): Ditto.
17712 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
17714 * df.h: Rename df_simulate_one_insn_backwards to
17715 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
17716 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
17717 scanning of defs and uses.
17718 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
17719 (df_simulate_one_insn_forwards): Removed.
17721 2008-05-16 Doug Kwan <dougkwan@google.com>
17723 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
17725 (real_from_string): Handle NaNs and Inf as approriate.
17727 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
17729 * doc/gty.texi (Source Files Containing Type Information): Note
17730 that headers should appear first in the gtfiles list.
17732 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
17734 * tree.def (COND_EXEC): Properly documented this code.
17736 2008-05-16 Diego Novillo <dnovillo@google.com>
17738 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
17739 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
17742 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
17744 * tree-ssa-dse (max_stmt_uid): Removed.
17745 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
17746 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
17747 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
17748 * function.h (cfun.last_stmt_uid): New field.
17749 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
17750 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
17752 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
17753 (create_stmt_ann): Initialize the ann->uid field.
17754 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
17756 * tree-flow.h (renumber_gimple_stmt_uids): New function.
17758 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
17760 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
17761 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
17762 (init_empty_tree_cfg): Call it.
17764 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
17766 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
17769 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
17771 * doc/invoke.text (-fdump-tree-*-verbose): New option.
17772 * tree-dump.c (dump_options): New verbose option.
17773 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
17775 * tree-pass.h (TDF_VERBOSE): New dump flag.
17776 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
17777 (tree-flow.h): Added include.
17778 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
17780 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
17782 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
17784 From Jie Zhang <jie.zhang@analog.com>
17785 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
17786 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
17787 mcpu=bf561-none and mcpu=bf561-0.2.
17788 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
17789 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
17790 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
17791 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
17792 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
17793 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
17794 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
17796 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
17797 (cputype_selected): Remove.
17798 (bfin_handle_option): Don't use cputype_selected.
17799 (override_options): When no mcpu option, enable all workarounds.
17800 Don't use bfin_workarounds.
17801 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
17803 (DEFAULT_CPU_TYPE): Don't define.
17805 2008-05-16 Richard Guenther <rguenther@suse.de>
17807 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
17808 on deletion of the last stmt.
17810 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
17812 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
17813 V8HImode for SSE2 and V16QImode for SSE4.1.
17815 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
17817 * cgraph.h (compute_inline_parameters): Made public.
17818 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
17819 variable_generate_summary, function_write_summary,
17820 variable_write_summary, variable_read_summary. Added generate_summary,
17821 write_summary, read_summary.
17822 * cgraphunit.c (cgraph_process_new_functions): Changed call from
17823 pass_ipa_inline.function_generate_summary, to
17824 compute_inline_parameters.
17825 * ipa-inline.c (compute_inline_parameters): Made public and added
17827 (compute_inline_parameters_for_current): New function.
17828 (pass_inline_param): Now calls compute_inline_parameters_for_current.
17829 (inline_generate_summary): Removed parameter and made to loop over
17831 (pass_ipa_inline): Updated for new IPA_PASS structure.
17832 * passes.c (execute_ipa_summary_passes): Now is called once per
17833 pass rather than once per node*pass.
17835 2008-05-15 Anatoly Sokolov <aesok@post.ru>
17837 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
17838 avr_have_mul_p, avr_asm_only_p): Remove variables.
17839 (avr_override_options): Remove initialization of removed variables.
17840 (avr_file_start): Convert removed variables to fields of
17841 'struct base_arch_s *avr_current_arch'.
17842 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
17843 (AVR_HAVE_MUL): (Ditto.).
17844 (AVR_HAVE_MOVW): (Ditto.).
17845 (AVR_HAVE_LPMX): (Ditto.).
17846 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
17847 avr_asm_only_p): Remove declaration.
17849 2008-05-15 Diego Novillo <dnovillo@google.com>
17851 * config/arm/arm.c (arm_return_in_memory): Fix return type.
17852 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
17854 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
17856 PR middle-end/36194
17857 * combine.c (check_conversion): Rename back to check_promoted_subreg.
17858 Don't call record_truncated_value from here.
17859 (record_truncated_value): Turn it into a for_each_rtx callback.
17860 (record_truncated_values): New function.
17861 (combine_instructions): Call note_uses with record_truncated_values.
17862 Change name of check_conversion to check_promoted_subreg.
17864 2008-05-15 Janis Johnson <janis187@us.ibm.com>
17866 * doc/sourcebuild.texi: Document support for torture tests.
17868 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
17870 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
17871 to alternative 4 of operand 2.
17873 2008-05-15 Richard Guenther <rguenther@suse.de>
17875 * tree-pass.h (current_pass): Declare.
17876 (get_pass_for_id): Likewise.
17877 * passes.c (passes_by_id, passes_by_id_size): New globals.
17878 (set_pass_for_id): New function.
17879 (get_pass_for_id): Likewise.
17880 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
17881 (execute_function_todo): Flush per function statistics.
17882 * toplev.c (compile_file): Init statistics.
17883 (general_init): Do early statistics initialization.
17884 (finalize): Finish statistics.
17885 * statistics.h (statistics_early_init): Declare.
17886 (statistics_init): Likewise.
17887 (statistics_fini): Likewise.
17888 (statistics_fini_pass): Likewise.
17889 (statistics_counter_event): Likewise.
17890 (statistics_histogram_event): Likewise.
17891 * statistics.c: New file.
17892 * Makefile.in (OBJS-common): Add statistics.o.
17893 (statistics.o): Add dependencies.
17894 * doc/invoke.texi (-fdump-statistics): Document.
17896 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
17897 (insert): Likewise.
17898 (execute_pre): Use statistics_counter_event.
17899 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
17900 (substitute_and_fold): Increment it. Use statistics_counter_event.
17902 2008-05-15 Diego Novillo <dnovillo@google.com>
17904 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
17906 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
17907 * tree-ssa-alias.c (new_type_alias): Remove references to
17908 sub-variables from comment.
17909 * tree-ssa-operands.c (swap_tree_operands): Likewise.
17911 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
17913 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
17914 attribute to 1 only for insertps alternative.
17916 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
17918 * config/bfin/bfin.md (loadbytes): New pattern.
17919 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
17920 (bfin_init_builtins): Initialize it.
17921 (bdesc_1arg): Add it.
17923 2008-05-15 Sa Liu <saliu@de.ibm.com>
17925 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
17926 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
17927 * testsuite/lib/target-supports.exp: Add
17928 check_effective_target_fortran_integer_16.
17930 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
17932 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
17933 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
17934 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
17935 (TARGET_RETURN_IN_MEMORY): Define.
17937 2008-05-15 Richard Guenther <rguenther@suse.de>
17939 PR middle-end/36244
17940 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
17941 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
17942 represent unmodifiable vars.
17944 2008-05-15 Richard Guenther <rguenther@suse.de>
17946 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
17947 INDIRECT_REF and TARGET_MEM_REF.
17948 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
17951 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
17952 H.J. Lu <hongjiu.lu@intel.com>
17954 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
17955 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
17956 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
17957 insn alternatives. Add missing alternatives.
17958 (*vec_concatv2di_rex64_sse4_1): Likewise.
17959 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
17960 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
17961 Require TARGET_SSE.
17963 2008-05-15 Richard Guenther <rguenther@suse.de>
17965 PR tree-optimization/36009
17966 PR tree-optimization/36204
17967 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
17968 (determine_invariantness_stmt): Record the loop a store is
17969 always executed in.
17970 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
17973 2008-05-15 Richard Guenther <rguenther@suse.de>
17975 PR tree-optimization/34330
17976 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
17977 through the pointer will alias the SMT.
17979 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
17981 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
17983 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
17985 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
17987 2008-05-14 Michael Meissner <michael.meissner@amd.com>
17988 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
17990 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
17991 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
17992 (vashl_optab): New optab for vector/vector shifts.
17993 (vashr_optab): Ditto.
17994 (vlshr_optab): Ditto.
17995 (vrotl_optab): Ditto.
17996 (vrotr_optab): Ditto.
17997 (optab_subtype): New enum for optab_for_tree_code call.
17998 (optab_for_tree_code): Add enum optab_subtype argument.
18000 * optabs.c (optab_for_tree_code): Take an additional argument to
18001 distinguish between a vector shift by a scalar and vector shift by
18002 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
18003 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
18004 vector shift by a vector.
18005 (expand_widen_pattern_expr): Pass additional argument to
18006 optab_for_tree_code.
18008 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
18009 vrotl_optab, vrotr_optab.
18011 * expr.c (expand_expr_real_1): Update calls to
18012 optab_for_tree_code to distinguish between vector shifted by a
18013 scalar and vector shifted by a vector.
18014 * tree-vectorizer.c (supportable_widening_operation): Ditto.
18015 (supportable_narrowing_operation): Ditto.
18016 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
18017 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
18018 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
18019 (vect_create_epilog_for_reduction): Ditto.
18020 (vectorizable_reduction): Ditto.
18021 (vectorizable_operation): Ditto.
18022 (vect_strided_store_supported): Ditto.
18023 (vect_strided_load_supported): Ditto.
18024 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
18025 * expmed.c (expand_shift): Ditto.
18027 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
18029 (ashr@var{m}3): Ditto.
18030 (vashl@var{m}3): Document new vector/vector shift standard name.
18031 (vashr@var{m}3): Ditto.
18032 (vlshr@var{m}3): Ditto.
18033 (vrotl@var{m}3): Ditto.
18034 (vrotr@var{m}3): Ditto.
18036 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
18037 (PPERM_INVERT): Ditto.
18038 (PPERM_REVERSE): Ditto.
18039 (PPERM_REV_INV): Ditto.
18040 (PPERM_ZERO): Ditto.
18041 (PPERM_ONES): Ditto.
18042 (PPERM_SIGN): Ditto.
18043 (PPERM_INV_SIGN): Ditto.
18044 (PPERM_SRC1): Ditto.
18045 (PPERM_SRC2): Ditto.
18047 * config/i386/sse.md (mulv2di3): Add SSE5 support.
18048 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
18049 allows a memory operand to be the value being added, and split it
18050 to improve vectorization.
18051 (sse5_pmacsdqh_mem): Ditto.
18052 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
18053 (sse5_mulv2div2di3_high): Ditto.
18054 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
18055 (vec_pack_trunc_v4si): Ditto.
18056 (vec_pack_trunc_v2di): Ditto.
18057 (sse5_pcmov_<mode>): Remove code that tried to use use
18058 andps/andnps instead of pcmov.
18059 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
18060 pmacsdqh instructions.
18061 (vec_widen_smult_lo_v4si): Ditto.
18063 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
18064 (PPERM_INVERT): Ditto.
18065 (PPERM_REVERSE): Ditto.
18066 (PPERM_REV_INV): Ditto.
18067 (PPERM_ZERO): Ditto.
18068 (PPERM_ONES): Ditto.
18069 (PPERM_SIGN): Ditto.
18070 (PPERM_INV_SIGN): Ditto.
18071 (PPERM_SRC1): Ditto.
18072 (PPERM_SRC2): Ditto.
18073 (ix86_expand_sse_movcc): Move the SSE5 test after the if
18075 (ix86_expand_int_vcond): If SSE5 generate all possible integer
18077 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
18078 says ignore whether the last reference is a memory operand.
18080 2008-05-14 Michael Meissner <michael.meissner@amd.com>
18081 Paolo Bonzini <bonzini at gnu dot org>
18083 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
18086 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
18087 (vlshr<mode>3): Rename from vlshr<mode>3.
18088 (vashr<mode>3): Rename from vashr<mode>3.
18089 (mulv4sf3): Change the names of vector shift patterns.
18093 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
18096 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
18121 * config/spu/spu.md (v): New iterator macro to add v for vector types.
18122 (floatunssidf2_internal): Change vector/vector shift names.
18123 (floatunsdidf2_internal): Ditto.
18130 (vashl<mode>3): Rename from ashl<mode>3.
18131 (vashr<mode>3): Rename from ashr<mode>3.
18132 (vlshr<mode>3): Rename from lshr<mode>3.
18133 (vrotl<mode>3): Rename from rotl<mode>3.
18135 2008-05-14 Michael Meissner <michael.meissner@amd.com>
18138 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
18139 multiply gives the wrong value when doing widening multiplies.
18140 (vec_widen_smult_lo_v4si): Ditto.
18142 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
18144 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
18145 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
18146 emit_library_call_value.
18147 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
18148 * tree.h (ECF_LIBCALL_BLOCK): Removed.
18149 * calls.c (initialize_argument_information, precompute_arguments,
18150 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
18151 (precompute_arguments): Removed flags parameter.
18152 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
18154 2008-05-14 Richard Guenther <rguenther@suse.de>
18156 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
18157 Make sure to register the store if the use is a PHI_NODE.
18159 2008-05-14 Olivier Hainque <hainque@adacore.com>
18161 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
18162 memory if the component is to be referenced in BLKmode according
18163 to get_inner_reference.
18165 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
18167 * calls.c (emit_library_call_value_1): Restore code clearing
18168 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
18170 2008-05-14 Olivier Hainque <hainque@adacore.com>
18171 Nicolas Roche <roche@adacore.com>
18173 * configure.ac: Add support for a "gcc_subdir" variable in
18174 config-lang.in, to denote a subdirectory where the language/GCC
18175 integration files are to be found.
18176 * configure: Regenerate.
18178 2008-05-14 Ira Rosen <irar@il.ibm.com>
18180 PR tree-optimization/36098
18181 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
18182 value for the first load in the group in case of a gap.
18183 (vect_build_slp_tree): Check that there are no gaps in loads.
18185 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
18187 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
18188 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
18189 expand_copysign_bit, ): Change call to emit_no_conflict_block to
18190 emit_insn and remove unneeded code to construct extra args.
18191 (emit_no_conflict_block): Removed.
18192 * optabls.h: (emit_no_conflict_block): Removed.
18193 * cse.c (cse_extended_basic_block): Remove search for
18194 REG_NO_CONFLICT note.
18195 * global.c: Removed incorrect comment added in revision 117.
18196 * expr.c (convert_move): Change call to emit_no_conflict_block to
18198 * recog.c: Change comments so that they do not mention
18200 * local_alloc.c (combine_regs): Removed last parameter.
18201 (no_conflict_p): Removed.
18202 (block_alloc): Removed note, no_conflict_combined_regno and set
18203 local vars. Removed all code to process REG_NO_CONFLICT blocks.
18204 (combine_regs): Removed already_dead and code to look for
18205 REG_NO_CONFLICT notes.
18206 * lower_subreg (remove_retval_note): Removed code to look for
18207 REG_NO_CONFLICT block.
18208 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
18209 (resolve_clobber): Remove code to process libcalls that have
18210 REG_NO_CONFLICT notes.
18211 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
18213 * combine.c (can_combine_p, distribute_notes): Removed
18214 REG_NO_CONFLICT case.
18215 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
18217 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
18218 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
18220 * reg-notes.def (NO_CONFLICT): Removed.
18222 2008-05-14 David S. Miller <davem@davemloft.net>
18224 * config/sparc/sparc.c (sparc_profile_hook): If
18225 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
18226 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
18227 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
18229 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
18231 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
18233 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
18236 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
18237 and op1 expansion before vector concat to have less live pseudos.
18239 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
18241 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
18242 ix86_expand_vector_set if supported.
18244 2008-05-13 Diego Novillo <dnovillo@google.com>
18245 Kenneth Zadeck <zadeck@naturalbridge.com>
18247 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
18249 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
18250 phinodes_print_statistics, init_ssanames, fini_ssanames,
18251 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
18252 release_ssa_name, release_defs, replace_ssa_name_symbol,
18253 ssanames_print_statistics): Move ...
18254 * tree-flow.h: ... here.
18255 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
18256 Use FN instead of cfun.
18257 (make_ssa_name_fn): Rename from make_ssa_name.
18258 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
18259 * tree-flow-inline.h (make_ssa_name): Move from
18260 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
18261 * omp-low.c (expand_omp_parallel):
18262 * tree-flow-inline.h (redirect_edge_var_map_result):
18263 * tree-ssa.c (init_tree_ssa): Add argument FN.
18264 Use it instead of cfun. Update all users.
18266 2008-05-13 Tom Tromey <tromey@redhat.com>
18268 PR preprocessor/22168:
18269 * doc/cpp.texi (Top): Update menu.
18270 (Alternatives to Wrapper #ifndef): New node.
18271 (Other Directives): Document deprecation.
18272 (Obsolete Features): Remove menu.
18273 (Assertions): Merge node into Obsolete Features.
18274 (Obsolete once-only headers): Move earlier; rename to Alternatives
18275 to Wrapper #ifndef.
18276 * doc/cppopts.texi: Update.
18277 * c.opt (Wdeprecated): Enable for C and ObjC.
18278 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
18279 (C++ Dialect Options): Move -Wno-deprecated from here to...
18280 (Warning Options): ... here.
18282 2008-05-13 Richard Guenther <rguenther@suse.de>
18284 PR middle-end/36227
18285 * fold-const.c (fold_sign_changed_comparison): Do not allow
18286 changes in pointer-ness.
18288 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
18291 * config/sh/sh.c (sh_expand_prologue): Don't clear
18292 RTX_FRAME_RELATED_P for push insns.
18294 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
18296 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
18298 2008-05-12 Anatoly Sokolov <aesok@post.ru>
18300 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
18301 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
18302 Use 'machine->is_leaf' instead of 'leaf_func_p'.
18304 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
18306 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
18307 (*vec_concatv4sf_sse): This.
18308 (*sse2_concatv2si): Renamed to ...
18309 (*vec_concatv2si_sse2): This.
18310 (*sse1_concatv2si): Renamed to ...
18311 (*vec_concatv2si_sse): This.
18312 (*vec_concatv2di_rex): Renamed to ...
18313 (*vec_concatv2di_rex64): This.
18314 (*vec_concatv2si_sse4_1): New.
18315 (*vec_concatv2di_rex64_sse4_1): Likewise.
18317 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
18319 PR rtl-optimization/36111
18320 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
18321 that was created for swappable operands.
18323 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
18326 * Makefile.in: Substitute GNATMAKE and GNATBIND.
18327 * configure.ac: Add call to ACX_PROG_GNAT.
18329 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
18331 * optc-gen.awk: Fix comment typo.
18333 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18335 * pretty-print.c (pp_integer_with_precision): Use
18336 HOST_LONG_LONG_FORMAT.
18338 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
18340 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
18342 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
18344 * config/i386/i386.c (bdesc_ptest): Removed.
18345 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
18346 (bdesc_args): Add __builtin_ia32_ptestz128,
18347 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
18348 (ix86_init_mmx_sse_builtins): Updated.
18349 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
18350 (ix86_expand_builtin): Updated.
18352 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
18354 * tree-cfg.c (valid_fixed_convert_types_p): New function.
18355 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
18357 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
18359 * value-prof.c (interesting_stringop_to_profile): Do not
18360 return early for BUILT_IN_MEMPCPY.
18362 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
18364 * calls.c (expand_call): Don't use callgraph to increase
18365 preferred_stack_boundary.
18367 * cgraph.h (cgraph_rtl_info): Use unsigned on
18368 preferred_incoming_stack_boundary.
18370 * final.c (rest_of_clean_state): Use unsigned on
18371 preferred_stack_boundary.
18373 2008-05-09 Tom Tromey <tromey@redhat.com>
18375 PR preprocessor/22231:
18376 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
18379 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
18381 PR tree-optimization/36129
18382 * tree-ssa-ccp.c: Include value-prof.h.
18383 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
18384 built-in function was folded to a constant.
18385 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
18387 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
18388 Sebastian Pop <sebastian.pop@amd.com>
18390 * tree-scalar-evolution.c: Document instantiate_scev.
18391 (instantiate_parameters_1): Renamed instantiate_scev_1.
18392 Don't use the same loop for instantiation_loop and evolution_loop.
18393 (instantiate_scev): New.
18394 (instantiate_parameters): Moved...
18395 (resolve_mixers): Update call to instantiate_scev_1 to pass the
18396 same loop twice. Maintains the semantics for this function.
18397 * tree-scalar-evolution.h (instantiate_scev): Declare.
18398 (instantiate_parameters): ...here. Now static inline.
18399 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
18400 instead of resolve_mixers.
18402 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
18404 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
18406 2008-05-09 Tomas Bily <tbily@suse.cz>
18408 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
18409 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
18410 * tree-ssa-structalias.c (get_constraint_for): Likewise.
18411 * c-common.c (c_common_truthvalue_conversion): Likewise.
18412 * tree-object-size.c (compute_object_offset): Likewise.
18413 * tree-inline.c (estimate_num_insns_1): Likewise.
18414 * varasm.c (const_hash_1, compare_constant, copy_constant)
18415 (compute_reloc_for_constant, output_addressed_constants)
18416 (initializer_constant_valid_p): Likewise.
18417 * c-omp.c (check_omp_for_incr_expr): Likewise.
18418 * gimplify.c (gimplify_expr): Likewise.
18419 * c-typeck.c (c_finish_return): Likewise.
18420 * tree-vectorizer.c (supportable_widening_operation)
18421 (supportable_narrowing_operation): Likewise.
18422 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
18423 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
18424 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
18425 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
18426 (descr_info_loc): Likewise.
18427 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
18428 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
18429 (fold_unary): Likewise.
18430 * builtins.c (get_pointer_alignment): Likewise.
18431 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
18432 (instantiate_parameters_1): Likewise.
18433 * tree.c (expr_align, stabilize_reference): Likewise.
18434 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
18435 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
18436 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
18437 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
18438 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
18439 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
18441 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
18442 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
18443 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
18444 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
18445 (forward_propagate_comparison)
18446 (tree_ssa_forward_propagate_single_use_vars): Likewise.
18447 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
18448 * emit-rtl.c (component_ref_for_mem_expr)
18449 (set_mem_attributes_minus_bitpos): Likewise.
18450 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
18451 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
18453 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
18454 (build_function_call, pointer_diff, build_compound_expr)
18455 (c_finish_return): Likewise.
18456 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
18457 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
18459 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
18460 * expr.c (is_aligning_offset): Likewise.
18461 * tree-ssa-alias.c (is_escape_site): Likewise.
18462 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
18463 (check_all_va_list_escapes): Likewise.
18464 * tree-ssa-loop-ivopts.c (determine_base_object)
18465 (determine_common_wider_type): Likewise.
18466 * dojump.c (do_jump): Likewise.
18467 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
18468 * tree-gimple.c (is_gimple_cast): Likewise.
18469 * fold-const.c (decode_field_reference, )
18470 (fold_sign_changed_comparison, fold_unary, fold_comparison)
18471 (fold_binary): Likewise.
18472 * tree-ssa-alias-warnings.c (find_alias_site_helper)
18473 (already_warned_in_frontend_p): Likewise.
18474 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
18475 * tree.c (really_constant_p, get_unwidened): Likewise.
18476 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
18477 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
18478 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
18480 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
18482 (CONVERT_EXPR_P): Define.
18483 (CASE_CONVERT): Define.
18485 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
18487 PR middle-end/36117
18488 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
18489 (delete_unmarked_insns): When deleting a call, call
18490 delete_unreachable_blocks.
18491 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
18492 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
18494 2008-05-08 Richard Guenther <rguenther@suse.de>
18496 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
18497 (-ftree-salias): Likewise.
18498 (salias-max-implicit-fields): Remove param documentation.
18499 (salias-max-array-elements): Likewise.
18500 * tree-pass.h (pass_create_structure_vars): Remove.
18501 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
18502 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
18503 * tree-ssa-alias.c (create_structure_vars): Remove.
18504 (gate_structure_vars): Likewise.
18505 (pass_create_structure_vars): Likewise.
18506 (gate_build_alias): Likewise.
18507 (pass_build_alias): Adjust to run always and dump the function.
18508 * common.opt (ftree-salias): Hide.
18509 * passes.c (init_optimization_passes): Remove
18510 pass_create_structure_vars, adjust comment.
18511 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
18512 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
18513 * opts.c (decode_options): Do not set flag_tree_salias.
18514 (common_handle_option): Add OPT_ftree_salias to the backward
18515 compatibility section.
18517 2008-05-08 Richard Guenther <rguenther@suse.de>
18519 * tree-flow-inline.h (var_can_have_subvars): Move ...
18520 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
18521 * tree-flow.h (var_can_have_subvars): Remove.
18522 (push_fields_onto_fieldstack): Remove.
18523 (sort_fieldstack): Likewise.
18524 (struct fieldoff): Move ...
18525 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
18526 alias_set and base_for_components fields.
18527 (sort_fieldstack): Make static.
18528 (push_fields_onto_fieldstack): Likewise. Remove code that
18529 handles anything but RECORD_TYPEs. Remove alias_set and
18530 base_for_components handling.
18531 (create_variable_info_for): Adjust.
18533 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
18535 * common.opt (Wframe-larger-than=): Shorten the help message
18537 * doc/invoke.texi (Wframe-larger-than=): Add more description.
18539 2008-05-08 Rafael Espíndola <espindola@google.com>
18541 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
18543 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
18544 trap and that both operands are gimple values.
18545 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
18546 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
18549 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
18551 * read-rtl.c (join_c_conditions): Return the first string if the
18552 two strings are equal.
18554 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
18556 * gensupport.h (pred_data): Add a "num_codes" field.
18557 (add_predicate_code): Declare.
18558 * gensupport.c (add_predicate_code): New function.
18559 (std_pred_table): Add an "allows_const_p" field.
18560 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
18561 Remove the (incomplete) list of such codes from the codes field.
18562 (init_predicate_table): Use add_predicate_code. Add all
18563 RTX_CONST_OBJs if allows_const_p is true.
18564 * genrecog.c (process_define_predicate): Use add_predicate_code.
18566 2008-05-08 David Daney <ddaney@avtrex.com>
18567 Richard Sandiford <rsandifo@nildram.co.uk>
18569 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
18570 special case of constant zero operands.
18571 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
18572 old and new values. Special case constant zero values.
18573 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
18575 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
18576 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
18578 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
18581 * simplify-rtx.c (simplify_plus_minus): Create CONST of
18582 similar RTX_CONST_OBJ before CONST_INT.
18584 2008-05-08 Steve Ellcey <sje@cup.hp.com>
18586 * stmt.c (expand_stack_restore): Change sa mode if needed.
18588 2008-05-08 Richard Guenther <rguenther@suse.de>
18590 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
18591 return type to bool.
18592 (ix86_sol10_return_in_memory): Likewise.
18593 (ix86_i386elf_return_in_memory): Likewise.
18594 (ix86_i386interix_return_in_memory): Likewise.
18595 * config/i386/i386.c (ix86_return_in_memory): Likewise.
18596 (ix86_sol10_return_in_memory): Likewise.
18597 (ix86_i386elf_return_in_memory): Likewise.
18598 (ix86_i386interix_return_in_memory): Likewise.
18600 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
18603 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
18605 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
18606 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
18609 2008-05-08 Richard Guenther <rguenther@suse.de>
18611 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
18612 * tree-data-ref.h (struct dr_alias): Remove subvars field.
18613 (DR_SUBVARS): Remove.
18614 * tree-dfa.c (dump_subvars_for): Remove.
18615 (debug_subvars_for): Likewise.
18616 (dump_variable): Do not dump subvars.
18617 (remove_referenced_var): Do not remove subvars.
18618 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
18619 (lookup_subvars_for_var): Remove.
18620 (get_subvars_for_var): Likewise.
18621 (get_subvars_at): Likewise.
18622 (get_first_overlapping_subvar): Likewise.
18623 (overlap_subvar): Likewise.
18624 * tree-flow.h (subvar_t): Remove.
18625 (struct var_ann_d): Remove subvars field.
18626 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
18627 argument. Remove special handling of SFTs.
18628 (compute_tag_properties): Likewise.
18629 (set_initial_properties): Likewise.
18630 (compute_call_clobbered): Likewise.
18631 (count_mem_refs): Likewise.
18632 (compute_memory_partitions): Likewise.
18633 (compute_flow_insensitive_aliasing): Likewise.
18634 (setup_pointers_and_addressables): Likewise.
18635 (new_type_alias): Likewise.
18636 (struct used_part): Remove.
18637 (used_portions): Likewise.
18638 (struct used_part_map): Likewise.
18639 (used_part_map_eq): Likewise.
18640 (used_part_map_hash): Likewise.
18641 (free_used_part_map): Likewise.
18642 (up_lookup): Likewise.
18643 (up_insert): Likewise.
18644 (get_or_create_used_part_for): Likewise.
18645 (create_sft): Likewise.
18646 (create_overlap_variables_for): Likewise.
18647 (find_used_portions): Likewise.
18648 (create_structure_vars): Likewise.
18649 * tree.def (STRUCT_FIELD_TAG): Remove.
18650 * tree.h (MTAG_P): Adjust.
18651 (struct tree_memory_tag): Remove base_for_components and
18652 unpartitionable flags.
18653 (struct tree_struct_field_tag): Remove.
18654 (SFT_PARENT_VAR): Likewise.
18655 (SFT_OFFSET): Likewise.
18656 (SFT_SIZE): Likewise.
18657 (SFT_NONADDRESSABLE_P): Likewise.
18658 (SFT_ALIAS_SET): Likewise.
18659 (SFT_UNPARTITIONABLE_P): Likewise.
18660 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
18661 (union tree_node): Remove sft field.
18662 * alias.c (get_alias_set): Remove special handling of SFTs.
18663 * print-tree.c (print_node): Remove handling of SFTs.
18664 * tree-dump.c (dequeue_and_dump): Likewise.
18665 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
18666 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
18667 * tree-predcom.c (set_alias_info): Do not set subvars.
18668 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
18669 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
18670 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
18671 (add_vars_for_offset): Remove.
18672 (add_virtual_operand): Remove special handling of SFTs.
18673 (add_call_clobber_ops): Likewise.
18674 (add_call_read_ops): Likewise.
18675 (get_asm_expr_operands): Likewise.
18676 (get_modify_stmt_operands): Likewise.
18677 (get_expr_operands): Likewise.
18678 (add_to_addressable_set): Likewise.
18679 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
18680 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
18681 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
18682 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
18683 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
18684 (tree_node_structure): Likewise.
18685 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
18687 (find_what_p_points_to): Likewise.
18689 2008-05-08 Sa Liu <saliu@de.ibm.com>
18691 * config/spu/spu.md: Fixed subti3 pattern.
18693 2008-05-08 Richard Guenther <rguenther@suse.de>
18695 PR middle-end/36154
18696 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
18697 sure to create a representative for trailing arrays for PTA.
18699 2008-05-08 Richard Guenther <rguenther@suse.de>
18701 PR middle-end/36172
18702 * fold-const.c (operand_equal_p): Two objects which types
18703 differ in pointerness are not equal.
18705 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
18707 * calls.c (compute_argument_block_size): Add argument tree fndecl.
18708 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
18709 (emit_library_call_value_1): Add new variable fndecl initialized by
18710 NULL_TREE. It should be the decl type of orgfun, but this information
18711 seems not to be available here, so it uses the default calling abi.
18712 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
18713 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
18714 by TARGET_RETURN_IN_MEMORY.
18715 * config/i386/i386-interix.h: Likewise.
18716 * config/i386/i386.h: Likewise.
18717 * config/i386/i386elf.h: Likewise.
18718 * config/i386/ptx4-i.h: Likewise.
18719 * config/i386/sol2-10.h: Likewise.
18720 * config/i386/sysv4.h: Likewise.
18721 * config/i386/vx-common.h: Likewise.
18722 * config/cris/cris.h: Removed #if 0 clause.
18723 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
18724 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
18726 (ix86_sol10_return_in_memory): Likewise.
18727 (ix86_i386elf_return_in_memory): New.
18728 (ix86_i386interix_return_in_memory): New.
18729 * config/mt/mt-protos.h (mt_return_in_memory): New.
18730 * config/mt/mt.c: Likewise.
18731 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
18732 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
18733 * config/bfin/bfin.h: Likewise.
18734 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
18736 * config/bfin/bfin.c: Likewise.
18737 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
18738 * config/alpha/unicosmk.h: Likewise.
18739 * config/i386/cygming.h: Likewise.
18740 * config/iq2000/iq2000.h: Likewise.
18741 * config/mips/mips.h: Likewise.
18742 * config/mn10300/mn10300.h: Likewise.
18743 * config/rs6000/rs6000.h: Likewise.
18744 * config/score/score.h: Likewise.
18745 * config/spu/spu.h: Likewise.
18746 * config/v850/v850.h: Likewise.
18747 * defaults.h: Likewise.
18748 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
18749 * expr.c (emit_block_move): Adjust use of
18750 OUTGOING_REG_PARM_STACK_SPACE.
18751 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
18752 OUTGOING_REG_PARM_STACK_SPACE.
18753 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
18755 2008-05-08 Jakub Jelinek <jakub@redhat.com>
18757 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
18758 on OMP_RETURN for OMP_FOR.
18761 * dwarf2out.c (dw_expand_expr, common_check): Removed.
18762 (fortran_common): New function.
18763 (gen_variable_die): Call fortran_common instead of common_check,
18764 adjust for it returning tree instead of rtx. Formatting.
18766 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
18770 * see.c (see_copy_insn): Copy new pure const attributes for new call.
18771 * c-decl.c (merge_decls): Ditto.
18772 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
18773 to RTL_CONST_OR_PURE_CALL_P.
18774 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
18775 Initialized DECL_LOOPING_CONST_PURE.
18776 (process_call_operands): Set tree_side_effects properly.
18777 * tree.h (TREE_READONLY_DECL_P): Removed.
18778 (DECL_IS_PURE): Renamed to DECL_PURE_P.
18779 (DECL_LOOPING_OR_CONST_P): New macro.
18780 (struct tree_function_decl): Added looping_const_or_pure_p.
18781 (ECF_*) Renumbered.
18782 (ECF_LOOPING_OR_CONST_P): New macro.
18783 * rtlanal.c (pure_const_p): Removed.
18784 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
18785 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
18786 to RTL_CONST_CALL_P.
18787 * ipa-pure-const.c (pure_const_state_e): Added looping field.
18788 (check_decl, check_tree, check_call, scan_function): Initialize
18790 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
18791 (static_execute): Set looping true for recursive functions.
18792 Undo setting state to IPA_NEITHER for recursive functions.
18793 * cse.c (cse_insn):
18794 * ifcvt.c (noce_can_store_speculate_p): Changed
18795 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
18796 RTL_CONST_OR_PURE_CALL_P.
18797 * dse.c (scan_insn): Ditto.
18798 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
18799 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
18800 RTL_CONST_OR_PURE_CALL_P.
18801 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
18802 pure_call_p to RTL_CONST_CALL_P.
18803 * gimplify.c (gimplify_call_expr): Clear side effects for
18804 non-looping pure and constant calls.
18805 * calls.c (emit_call_1): Set rtl flags from ecf flags.
18806 (flags_from_decl_or_type): Set ecf flags from decl flags.
18807 (initialize_argument_information): Turn off
18808 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
18809 Change const to pure if callee_copies is true rather than just
18811 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
18812 way of marking pure calls.
18813 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
18814 Remove hack that was supposed to fix pr7335 and remove old
18815 way of marking pure calls.
18816 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
18817 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
18818 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
18819 RTL_CONST_OR_PURE_CALL_P.
18820 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
18821 * loop-invariant.c (find_exits, find_invariant_bb): Changed
18822 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
18823 * sched-deps.c (schedule_analyze): Ditto.
18824 * rtl.h (struct rtx_def): Use call field, unchanging field, and
18825 return_val field of calls to represent pure and const function info.
18826 (CONST_OR_PURE_CALL_P): Deleted macro.
18827 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
18828 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
18829 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
18831 * tree-optimize.c (execute_fixup_cfg): Added test for
18832 ECF_LOOPING_CONST_OR_PURE.
18833 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
18835 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
18836 effects for looping pure or const calls.
18837 (verify_gimple_expr): Added verification code.
18838 * config/alpha/alpha.c (alpha_legitimize_address,
18839 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
18841 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
18842 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
18843 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
18844 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
18845 RTL_CONST_OR_PURE_CALL_P.
18846 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
18847 and const calls to be deleted.
18849 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
18852 * config/i386/mmx.md (mmx_subv2sf3): New expander.
18853 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
18854 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
18855 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
18856 to handle nonimmediate operands.
18857 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
18858 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
18859 to handle nonimmediate operands.
18860 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
18861 (mmx_pmulhrwv4hi3): New expander. Use
18862 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18863 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
18864 (sse2_umulv1siv1di3): New expander. Use
18865 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18866 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
18867 (mmx_eq<mode>3): New expander. Use
18868 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18869 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
18870 (mmx_uavgv8qi3): New expander. Use
18871 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18872 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
18873 (mmx_uavgv4hi3): New expander. Use
18874 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18876 * config/i386/sse.md
18877 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
18878 to handle nonimmediate operands.
18879 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
18880 to handle nonimmediate operands.
18881 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
18882 to handle nonimmediate operands.
18883 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
18884 to handle nonimmediate operands.
18885 (sse2_unpckhpd_exp): New expander. Use
18886 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18887 (sse2_unpcklpd_exp): New expander. Use
18888 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18889 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
18890 to handle nonimmediate operands.
18891 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
18892 to handle nonimmediate operands.
18893 (*sse2_<plusminus_insn><mode>3): Rename from
18894 sse2_<plusminus_insn><mode>3 insn pattern.
18895 (sse2_<plusminus_insn><mode>3): New expander. Use
18896 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18897 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
18898 (sse2_umulv2siv2di3): New expander. Use
18899 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18900 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
18901 (sse4_1_mulv2siv2di3): New expander. Use
18902 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18903 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
18904 (sse2_pmaddwd): New expander. Use
18905 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18906 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
18907 (sse2_eq<mode>3): New expander. Use
18908 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18909 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
18910 (sse4_1_eqv2di3): New expander. Use
18911 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18912 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
18913 (sse2_uavgv16qi3): New expander. Use
18914 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18915 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
18916 (sse2_uavgv16qi3): New expander. Use
18917 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18918 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
18919 (sse2_uavgv8hi3): New expander. Use
18920 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18921 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
18922 (ssse3_pmulhrswv8hi3): New expander. Use
18923 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18924 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
18925 (ssse3_pmulhrswv4hi3): New expander. Use
18926 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18928 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
18929 (<sse>_vmmul<mode>3): Ditto.
18930 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
18932 (ssse3_pmaddubsw128): Use register_operand for operand 1.
18933 (ssse3_pmaddubsw): Ditto.
18935 * config/i386/i386.c (struct_builtin_description)
18936 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
18937 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
18938 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
18939 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
18940 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
18941 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
18942 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
18943 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
18944 (ix86_fixup_binary_operands): Assert that src1
18945 and src2 must have the same mode when swapped.
18946 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
18947 and ix86_binary_operator_ok. Do not force operands in registers
18950 2008-05-07 Jan Hubicka <jh@suse.cz>
18952 * cgraph.c (dump_cgraph_node): Update.
18953 * cgraph.h (cgraph_local_info): Break out inline summary.
18954 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
18956 * ipa-inline (inline_summary): New accestor function.
18957 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
18958 cgraph_decide_inlining, compute_inline_parameters): Update.
18959 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
18961 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
18963 Cleanup ColdFire scheduling support and add V4 pipeline model.
18965 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
18966 (define_attr cpu): Add cfv4 value.
18967 (define_attr type, define_attr type1): Merge into a single 'type'
18968 attribute. Update all uses.
18969 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
18970 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
18972 (define_attr opx_mem, define_attr opy_mem): Remove.
18973 (define_attr op_mem): Clean up, update comment.
18974 (define_attr size): Use specific values instead of general int.
18975 (define_attr guess, define_attr split): Remove. Update all uses.
18976 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
18977 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
18978 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
18979 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
18980 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
18981 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
18982 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
18983 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
18984 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
18985 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
18986 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
18987 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
18988 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
18989 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
18990 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
18991 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
18992 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
18993 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
18994 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
18995 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
18996 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
18997 Update or set attributes.
18998 (stack_tie): New fake instruction.
19000 * config/m68k/m68k.h (TUNE_CFV4): New macro.
19001 (m68k_sched_attr_size): Update declaration.
19002 (m68k_sched_attr_type2): Remove.
19003 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
19004 Declare new bypass predicates.
19006 * config/m68k/m68k.c (m68k_sched_issue_rate,
19007 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
19009 (TARGET_SCHED_ISSUE_RATE,
19010 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
19011 (override_options): Handle scheduling for ColdFire V4 core.
19012 (m68k_expand_prologue): Emit stack_tie.
19013 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
19014 'OP_TYPE_FPN'. Update all uses.
19015 (sched_guess_p): Remove.
19016 (sched_address_type): Handle symbolic addresses.
19017 (sched_get_operand): New static function.
19018 (sched_operand_type): Merge into sched_attr_op_type.
19019 (sched_attr_op_type): Handle FP registers, handle quick constants,
19021 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
19022 (m68k_sched_attr_size): Update. Move logic to ...
19023 (sched_get_attr_size_int): New static function.
19024 (sched_get_opxy_mem_type): New static function.
19025 (m68k_sched_attr_op_mem): Update.
19026 (m68k_sched_attr_type2): Remove.
19027 (sched_cfv4_bypass_data): New static variable.
19028 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
19029 (m68k_sched_issue_rate): Implement scheduler hook.
19030 (struct _sched_ib: enabled_p): New field.
19031 (m68k_sched_variable_issue): Update. Handle V4.
19032 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
19033 sched_dump_class_func_t, sched_dump_split_class,
19034 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
19035 sched_dump_dfa_class, m68k_sched_dump): Remove.
19036 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
19038 (m68k_sched_init_global): Remove statisctics dumping, introduce
19039 sanity check that all instructions have pipeline reservations. Handle
19041 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
19042 Handle ColdFire V4 core.
19043 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
19044 New static functions.
19045 (m68k_sched_address_bypass_p): New bypass predicate.
19046 (sched_get_indexed_address_scale): New static function.
19047 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
19049 * cf.md: Update comments.
19050 (define_attr type2): Remove. Use 'type' attribute instead.
19052 (cf_ib): Rename to cfv123_ib. Update all uses.
19053 (cf_oep): Rename to cfv123_oep. Update all uses.
19054 (cf_chr): Rename to cfv123_chr. Update all uses.
19055 (cf_mem): Rename to cfv123_mem. Update all uses.
19056 (cf_mac): Move to more appropriate place.
19057 (cfv123_guess): New automaton and cpu_unit.
19058 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
19059 Update uses of 'size' attribute. Handle before reload scheduling.
19060 (cfv123_guess): New dummy reservation for unhandled instructions.
19061 (cfv4_*): Pipeline description of ColdFire V4 core.
19062 (ignore): New reservation to handle 'ignore' type.
19064 2008-05-07 Ian Lance Taylor <iant@google.com>
19066 PR middle-end/36013
19067 * gimplify.c (find_single_pointer_decl_1): Don't look through
19069 (find_single_pointer_decl): Adjust comments.
19071 2008-05-07 Jakub Jelinek <jakub@redhat.com>
19073 PR middle-end/36137
19074 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
19075 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
19077 PR middle-end/36106
19078 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
19079 integral type rather than floating point, then VIEW_CONVERT_EXPR
19080 to the floating point type.
19082 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
19084 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
19085 TFmode op0 to register.
19087 2008-05-07 Alan Modra <amodra@bigpond.net.au>
19089 * c-decl.c (grokdeclarator): Comment typo.
19091 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
19093 * tree-flow.h: Remove prototype for computed_goto_p.
19094 * tree-cfg.c (computed_goto_p): Make static.
19096 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
19099 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
19100 (contains_aligned_value_p): This. Handle _Decimal128.
19101 (ix86_function_arg_boundary): Only align _Decimal128 to its
19102 natural boundary and handle it properly.
19104 2008-05-06 Martin Jambor <mjambor@suse.cz>
19106 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
19107 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
19108 (ipcp_method_set_orig_node): Removed.
19109 (ipcp_cval_get_cvalue_type): Removed.
19110 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
19111 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
19112 (ipcp_cval_set_cvalue_type): Removed.
19113 (ipcp_cval_get_cvalue): Removed.
19114 (ipcp_cval_set_cvalue): Removed.
19115 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
19116 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
19117 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
19118 (ipcp_cval_meet): Renamed to ipa_lattice_meet
19119 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
19120 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
19121 (ipcp_get_ith_lattice): Changed parameters.
19122 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
19123 (ipcp_lattice_from_jfunc): Changed parameters.
19124 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
19125 (ipcp_method_cval_print): Added temporary variable info.
19126 (ipcp_redirect): Removed already unused local variable caller.
19127 (ipcp_redirect): New temporary variable orig_callee_info
19128 (ipcp_redirect): Removed newly unused local variable callee.
19129 (ipcp_redirect): Removed (a bit confusing) local variable type.
19130 (ipcp_insert_stage): Added local variable info.
19131 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
19133 (ipcp_formal_create): Removed.
19134 (ipcp_method_cval_set): Removed.
19135 (ipcp_propagate_stage): Renamed lattice variables.
19136 (ipcp_method_cval_set_cvalue_type): Removed.
19137 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
19138 (ipcp_print_all_lattices): Changed printed strings to refer to
19139 lattices rather than cvals.
19140 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
19141 (ipcp_propagate_const): Changed formal parameters.
19142 (build_const_val): Changed formal parameters.
19143 (ipcp_insert_stage): Removed useless variable cvalue
19144 (build_const_val): Changed formal parameters.
19145 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
19146 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
19147 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
19148 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
19149 (ipcp_print_func_profile_counts): Changed string from "method" to
19151 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
19152 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
19153 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
19154 (ipcp_structures_print): Renamed to ipcp_print_all_structures
19155 (ipcp_profile_print): Renamed to ipcp_print_profile_data
19156 (ipcp_lat_is_const): Changed parameters and made inline.
19157 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
19158 (ipcp_redirect): Renamed to ipcp_need_redirect_p
19159 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
19160 the predicate condition directly
19161 (ipcp_propagate_stage): Added local variable args. Removed local
19162 variable callee. (Both are mere code simplifications.)
19163 (ipcp_method_dont_insert_const): Renamed to
19164 ipcp_node_not_modifiable_p.
19165 (ipcp_node_not_modifiable_p): Made inline.
19166 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
19167 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
19168 (ipcp_print_all_lattices): Removed variable cvalue
19169 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
19172 2008-05-06 Olivier Hainque <hainque@adacore.com>
19174 * tree-sra.c (try_instantiate_multiple_fields): Early return
19175 if field has POINTER_TYPE.
19177 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
19179 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
19180 by using 'q' specifier for instruction.
19181 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
19183 2008-05-06 Anatoly Sokolov <aesok@post.ru>
19185 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
19186 Change mode of zero_extract from QImode to HImode.
19187 (sign bit tests peepholes): (Ditto.).
19189 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
19191 * config/i386/mmx.md: Remove double backslashes from asm templates.
19192 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
19193 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
19194 to handle nonimmediate operands.
19195 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
19196 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
19197 to handle nonimmediate operands.
19198 (*mmx_<code>v2sf3_finite): New insn pattern.
19199 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
19200 (mmx_<code>v2sf3): New expander. Use
19201 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19202 (mmx_<plusminus_insn><mode>3): New expander. Use
19203 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19204 (*mmx_<plusminus_insn><mode>3): New insn pattern.
19205 (mmx_add<mode>3): Removed.
19206 (mmx_ssadd<mode>3): Ditto.
19207 (mmx_usadd<mode>3): Ditto.
19208 (mmx_sub<mode>3): Ditto.
19209 (mmx_sssub<mode>3): Ditto.
19210 (mmx_ussub<mode>3): Ditto.
19211 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
19212 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
19213 to handle nonimmediate operands.
19214 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
19216 (mmx_smulv4hi3_highpart): New expander. Use
19217 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19218 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
19220 (mmx_umulv4hi3_highpart): New expander. Use
19221 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19222 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
19223 (mmx_<code>v4hi3): New expander. Use
19224 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19225 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
19226 (mmx_<code>v8qi3): New expander. Use
19227 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19228 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
19229 (mmx_<code><mode>3): New expander. Use
19230 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19232 2008-05-05 Jan Hubicka <jh@suse.cz>
19234 PR tree-optimization/36118
19235 * passes.c (pass_init_dump_file): Fix dump header.
19237 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
19239 PR middle-end/36141
19240 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
19241 VCE for function decls.
19243 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
19245 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
19247 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
19249 * config/i386/i386.md (sat_plusminus): New.
19250 (plusminus_insn): Likewise.
19251 (plusminus_mnemonic): Likewise.
19253 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
19254 (*<addsub><mode>3_cc_overflow): Renamed to ...
19255 (*<plusminus_insn><mode>3_cc_overflow): This.
19256 (*<addsub>si3_zext_cc_overflow): Renamed to ...
19257 (*<plusminus_insn>si3_zext_cc_overflow): This.
19259 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
19260 (<plusminus_insn><mode>3): This.
19261 (*<addsub><mode>3): Renamed to ...
19262 (*<plusminus_insn><mode>3): This.
19263 (<sse>_vm<addsub><mode>3): Renamed to ...
19264 (<sse>_vm<plusminus_insn><mode>3): This.
19265 (sse3_h<addsub>v4sf3): Renamed to ...
19266 (sse3_h<plusminus_insn>v4sf3): This.
19267 (sse3_h<addsub>v2df3): Renamed to ...
19268 (sse3_h<plusminus_insn>v2df3): This.
19269 (<plusminus_insn><mode>3): New.
19270 (*<plusminus_insn><mode>3): Likewise.
19271 (sse2_<plusminus_insn><mode>3): Likewise.
19272 (add<mode>): Removed.
19273 (*add<mode>3): Likewise.
19274 (sse2_ssadd<mode>3): Likewise.
19275 (sse2_usadd<mode>3): Likewise.
19276 (sub<mode>3): Likewise.
19277 (*sub<mode>3): Likewise.
19278 (sse2_sssub<mode>3): Likewise.
19279 (sse2_ussub<mode>3): Likewise.
19281 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
19283 * gthr-single.h: Add in required interface elements as per gthr.h.
19284 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
19285 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
19286 Generalize UNUSED macro.
19287 (__gthread_once): Add.
19288 (__gthread_key_create): Add.
19289 (__gthread_key_delete): Add.
19290 (__gthread_getspecific): Add.
19291 (__gthread_setspecific): Add.
19293 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
19295 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
19296 the same size types for the indirect reference on the rhs, then
19299 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
19301 * config/i386/i386.md
19302 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
19303 one insn template instead of template series.
19304 (*xordi_1_rex64): Ditto.
19305 (*xordi_2_rex64): Ditto.
19307 2008-05-05 Ira Rosen <irar@il.ibm.com>
19309 PR tree-optimization/36119
19310 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
19313 2008-06-04 Jan Hubicka <jh@suse.cz>
19315 tree-optimization/36100
19316 * tree-pass.h (pass_O0_always_inline): Declare.
19317 * ipa-inline.c (inline_transform): Remove dead code.
19318 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
19319 pass_O0_always_inline): New.
19320 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
19322 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
19324 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
19325 mnemonic in this_param move for TARGET_64BIT.
19327 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
19329 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
19330 (*strmovsi_rex_1): Ditto.
19331 (*strsetsi_1): Ditto.
19332 (*strsetsi_rex_1): Ditto.
19334 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
19335 adddicc expanders using SWI mode iterator.
19337 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
19340 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
19343 2008-05-04 David S. Miller <davem@davemloft.net>
19345 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
19346 (sparc*-*-linux*): Use linux.h in tm_file.
19347 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
19348 compiler defaulting to 32-bit.
19349 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
19351 * config/sparc/linux.h: Remove definitions now obtained
19352 properly from linux.h
19353 * config/sparc/linux64.h: Likewise.
19354 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
19355 don't want this setting for 32-bit builds in a biarch compiler.
19356 * doc/install.texi: Add sparc-linux to list of targets
19357 supporting --enable-targets=all.
19359 2008-05-03 Andrew Pinski <pinskia@gmail.com>
19361 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
19363 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
19365 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
19366 after V4SI_FTYPE_V8HI.
19367 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
19368 case V4SI_FTYPE_V2DF.
19370 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
19372 * doc/invoke.texi (max-flow-memory-locations): Removed.
19373 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
19375 2008-05-03 Richard Guenther <rguenther@suse.de>
19377 PR middle-end/34973
19378 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
19380 2008-05-02 David S. Miller <davem@davemloft.net>
19382 * config.gcc (need_64bit_hwint): Document libcpp dependency.
19384 2008-05-02 Simon Baldwin <simonb@google.com>
19387 * c-common.h (warn_array_subscript_range): Removed.
19388 * c-common.c (warn_array_subscript_range): Ditto.
19389 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
19390 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
19392 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
19394 * config/i386/i386.c (ix86_special_builtin_type): New.
19395 (bdesc_special_args): Likewise.
19396 (ix86_expand_special_args_builtin): Likewise.
19397 (ix86_init_mmx_sse_builtins): Updated.
19398 (ix86_expand_builtin): Updated.
19399 (ix86_expand_store_builtin): Removed.
19400 (ix86_expand_unop_builtin): Likewise.
19402 * config/i386/mm3dnow.h (__v2sf): Moved to ...
19403 * config/i386/mmintrin.h (__v2sf): Here.
19405 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
19407 (_mm_loadl_pi): Likewise.
19408 (_mm_storeh_pi): Replace __v2si with __v2sf.
19409 (_mm_storel_pi): Likewise.
19411 * doc/extend.texi: Correct __builtin_ia32_loadhps,
19412 __builtin_ia32_loadlps, __builtin_ia32_storehps,
19413 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
19414 __builtin_ia32_loadlpd.
19416 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
19418 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
19419 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
19420 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
19421 (ix86_init_mmx_sse_builtins): Updated.
19422 (ix86_expand_args_builtin): Likewise.
19423 (ix86_expand_builtin): Likewise.
19424 (ix86_expand_unop1_builtin): Renamed to ...
19425 (ix86_expand_unop_vec_merge_builtin): This.
19427 2008-05-01 Jan Hubicka <jh@suse.cz>
19430 * ipa-inline.c (inline_generate_summary): Make static.
19431 (inline_transform): Do not call inlining at -O0; make static.
19432 * passes.c (execute_todo): Add sanity check.
19433 (execute_one_ipa_transform_pass): Execute proper flags.
19435 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
19437 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
19438 (DECL_NONADDRESSABLE_P): Likewise.
19439 * alias.c (record_component_aliases): Fix comment.
19441 2008-05-01 Simon Baldwin <simonb@google.com>
19443 * c-common.h (warn_array_subscript_range): New function.
19444 * c-common.c (warn_array_subscript_range): Ditto.
19445 * tree-vrp.c (check_array_ref): Corrected code to agree with
19446 comment, ignoring only arrays of size 0 or size 1.
19447 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
19449 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
19451 * config/i386/i386.c (ix86_builtin_type): Replace
19452 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
19453 (bdesc_args): Updated.
19454 (ix86_init_mmx_sse_builtins): Likewise.
19455 (ix86_expand_args_builtin): Likewise.
19457 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
19460 * doc/extend.texi: Correct __builtin_ia32_palignr.
19462 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
19465 * config/i386/i386.c (bdesc_crc32): Removed.
19466 (ix86_expand_crc32): Likewise.
19467 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
19468 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
19469 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
19470 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
19471 UINT_FTYPE_UINT_UCHAR.
19472 (bdesc_args): Updated. Add crc32 builtins.
19473 (ix86_init_mmx_sse_builtins): Updated.
19474 (ix86_expand_args_builtin): Updated to support subreg.
19476 * doc/extend.texi: Correct __builtin_ia32_crc32di.
19478 2008-05-01 Jan Hubicka <jh@suse.cz>
19480 * tree-pass.h (opt_pass): Add IPA_PASS.
19481 (varpool_node, cgraph_node): Forward declare.
19482 (ipa_opt_pass): Define.
19483 (pass_ipa_inline): Turn into ipa_opt_pass.
19484 (pass_apply_inline): Remove.
19485 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
19486 (apply_inline): Turn into ....
19487 (inline_transform): ... this one.
19488 (inline_generate_summary): New function.
19489 (pass_apply_inline): Remove.
19490 * function.h (ipa_opt_pass): Forward declare structure; typedef;
19492 (struct function): Add ipa_transforms_to_apply.
19493 * passes.c (register_one_dump_file): Work on IPA_PASS.
19494 (init_optimization_passes): Remove pass_inline_parameters and
19496 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
19497 (execute_one_pass) ... here; apply transforms when possible.
19498 (add_ipa_transform_pass, execute_ipa_summary_asses,
19499 execute_one_ipa_transform_pass): New.
19500 (execute_ipa_pass_list): Update for IPA_PASS type.
19502 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
19504 * config/i386/i386.c (ix86_builtin_type): Add
19505 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
19506 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
19507 (bdesc_args): Add SSE4a builtins.
19508 (ix86_init_mmx_sse_builtins): Updated.
19509 (ix86_expand_args_builtin): Likewise.
19510 (ix86_expand_builtin): Likewise.
19512 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
19514 * config/i386/i386.c (ix86_builtin_type): Add
19515 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
19516 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
19517 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
19518 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
19519 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
19520 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
19521 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
19522 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
19523 and DI_FTYPE_DI_DI_INT.
19524 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
19525 (ix86_init_mmx_sse_builtins): Updated.
19526 (ix86_expand_args_builtin): Likewise.
19527 (ix86_expand_builtin): Likewise.
19528 (ix86_expand_binop_imm_builtin): Removed.
19530 * doc/extend.texi: Correct __builtin_ia32_palignr128.
19532 2008-04-30 Richard Guenther <rguenther@suse.de>
19534 PR tree-optimization/32921
19535 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
19537 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
19539 * config/arm/arm.c (arm_unwind_emit): Use
19540 crtl->all_throwers_are_sibcalls instead of
19541 cfun->all_throwers_are_sibcalls.
19542 (arm_output_fn_unwind): Likewise.
19543 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
19544 instead of cfun->uses_pic_offset_table.
19545 (frv_expand_prologue): Likewise.
19546 (frv_frame_pointer_required): Likewise.
19547 (frv_expand_fdpic_call): Likewise.
19548 (frv_emit_movsi): Likewise.
19549 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
19550 cfun->returns_pcc_struct instead of
19551 current_function_returns_pcc_struct.
19552 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
19553 instead of cfun->calls_eh_return.
19554 (m32c_pushm_popm): Likewise.
19555 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
19556 "extern" declaration.
19558 2008-04-30 Richard Guenther <rguenther@suse.de>
19560 PR tree-optimization/21636
19561 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
19563 (evaluate_stmt): Print the likely value.
19564 (ccp_visit_stmt): Avoid excessive vertical spacing.
19566 2008-04-30 Rafael Espíndola <espindola@google.com>
19568 * builtins.c (fold_call_expr): Return realret.
19569 * tree-ssa-threadedge.c
19570 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
19571 __builtin_object_size.
19573 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
19575 * gcc.c (wrapper_string): New variable.
19576 (insert_wrapper): New function.
19577 (execute): New option -wrapper.
19578 * doc/invoke.texi (Overall Options): New driver option -wrapper.
19580 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
19582 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
19583 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
19584 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
19586 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
19587 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
19588 config/rs6000/e500crtres64gprctr.asm,
19589 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
19590 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
19591 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
19592 config/rs6000/e500crtsav64gprctr.asm,
19593 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
19594 config/rs6000/e500crtsavg64gprctr.asm: New files.
19595 * config/rs6000/t-ppccomm: Add build rules for new files.
19596 (LIB2FUNCS_STATIC_EXTRA): Add new files.
19597 * config/rs6000/t-netbsd: Add build rules for new files.
19598 (LIB2FUNCS_STATIC_EXTRA): New variable.
19599 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
19600 (CRTSAVRES_DEFAULT_SPEC): Likewise.
19601 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
19603 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
19605 * config/i386/i386.c (ix86_builtin_type): Add
19606 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
19607 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
19608 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
19609 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
19610 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
19611 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
19612 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
19613 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
19614 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
19615 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
19616 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
19617 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
19618 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
19619 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
19620 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
19621 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
19622 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
19623 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
19624 V1DI_FTYPE_V2SI_V2SI.
19625 (bdesc_2arg): Moved to ...
19626 (bdesc_args): Here.
19627 (ix86_init_mmx_sse_builtins): Updated.
19628 (ix86_expand_args_builtin): Updated. Take a pointer
19629 to const struct builtin_description. Handle comparison
19631 (ix86_expand_sse_compare): Take a new argument for swapping operands.
19632 (ix86_expand_builtin): Updated.
19634 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
19635 (ssse3_pmaddubsw128): This.
19636 (ssse3_pmaddubswv4hi3): Renamed to ...
19637 (ssse3_pmaddubsw): This.
19639 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
19640 (__builtin_ia32_packssdw128): Likewise.
19641 (__builtin_ia32_packuswb128): Likewise.
19642 (__builtin_ia32_pmaddubsw): Likewise.
19643 (__builtin_ia32_pmaddubsw128): Likewise.
19645 2008-04-30 Richard Guenther <rguenther@suse.de>
19647 PR tree-optimization/14847
19648 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
19649 (recognize_bits_test): Use it.
19650 (recognize_single_bit_test): Likewise.
19652 2008-04-30 Martin Jambor <mjambor@suse.cz>
19654 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
19655 instead of setting number of formal parameters to zero.
19656 (ipcp_init_stage): Do not set the number of actual parameters to zero
19658 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
19659 which are called with variable number of arguments.
19660 (ipcp_insert_stage): Explicitely skipping all nodes which are
19661 called with variable number of arguments.
19662 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
19663 number of parameters.
19665 * ipa-prop.h (struct ipa_node_params): Added flag
19666 called_with_var_arguments
19667 (ipa_set_param_count): Added. Changed sole setter to use it.
19668 (ipa_get_param_count): Added. All readers of param_count
19669 converted to use it instead.
19670 (ipa_set_called_with_variable_arg): Added.
19671 (ipa_is_called_with_var_arguments): Added.
19672 (ipa_get_ith_param): Added. All readers of param_decls converted
19674 (ipa_set_cs_argument_count): Added, sole writer to argument_count
19676 (ipa_get_cs_argument_count): Added, all readers of argument_count
19678 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
19681 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
19682 (struct ipcp_lattice): Renamed cval_type to type
19683 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
19685 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
19686 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
19687 (ipcp_insert_stage): Changed the type of variable cvalue to tree
19688 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
19689 (build_const_val): Changed the type of parameter cvalue to tree
19690 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
19691 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
19693 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
19696 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
19697 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
19698 (ipa_add_method): Renamed to ipa_push_func_to_list
19699 (ipa_remove_method): Renamed to ipa_pop_func_from_list
19700 (ipa_callsite_param_count): Removed.
19701 (ipa_callsite_param_count_set): Removed.
19702 (ipa_callsite_param): Removed.
19703 (ipa_callsite_callee): Removed.
19704 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
19705 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
19706 (ipa_method_formal_count): Removed.
19707 (ipa_method_formal_count_set): Removed.
19708 (ipa_method_get_tree): Removed.
19709 (ipa_method_tree_map_create): Removed.
19710 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
19711 (ipa_create_param_decls_array): Creates the array itself
19712 (ipa_create_param_decls_array): Temporary variable info instead of
19713 a few dereferences.
19714 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
19715 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
19716 (get_type): Removed.
19717 (ipa_jf_get_info_type): Removed.
19718 (ipa_node_create): Renamed to ipa_create_node_params
19719 (ipa_free): Renamed to ipa_free_all_node_params
19720 (ipa_nodes_create): Renamed to ipa_create_all_node_params
19721 (ipa_edges_create): Renamed to ipa_create_all_edge_args
19722 (ipa_edges_free): Renamed to ipa_free_all_edge_args
19723 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
19724 (ipa_free_all_node_params): Deallocation to jump_functions moved to
19725 ipa_free_all_edge_args
19726 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
19727 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
19728 (ipa_create_methodlist_node): Removed.
19729 (ipa_methodlist_method): Removed.
19730 (ipa_methodlist_method_set): Removed.
19731 (ipa_methodlist_next_method): Removed.
19732 (ipa_methodlist_next_method_set): Removed.
19733 (ipa_method_is_modified): Removed.
19734 (ipa_method_modify_create): Removed.
19735 (ipa_method_modify_init): Temporary variable info instead of a few
19737 (ipa_detect_param_modifications): Temporary variable info instead of
19738 a few dereferences.
19739 (ipa_compute_jump_functions): Temporary variable info instead of
19740 a few dereferences.
19741 (ipa_method_modify_set): Removed.
19742 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
19743 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
19744 than craph_node as the first parameter.
19745 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
19746 (ipa_method_modify_init): Removed.
19747 (ipa_compute_jump_functions): Added a temp variable instead of
19748 repeatadly dereferencing the cgraph_edge.aux pointer
19749 (ipa_callsite_param_set_type): Removed.
19750 (ipa_compute_jump_functions): i renamed to index and moved to
19752 (ipa_callsite_param_set_info_type_formal): Removed.
19753 (ipa_callsite_param_set_info_type): Removed.
19754 (ipa_callsite_param_map_create): Removed.
19755 (ipa_callsite_tree): Removed.
19756 (ipa_callsite_caller): Removed.
19757 (ipa_pop_func_from_list): return_method removed to return_func
19759 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
19760 prefixed all values with IPA_. Changed all users.
19761 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
19762 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
19763 and FORMAL_IPATYPE IPA_PASS_THROUGH.
19764 (union parameter_info): Renamed to jump_func_value.
19765 (union jump_func_value): Renamed value to constant
19766 (struct ipa_jump_func): Renamed info_type to value
19767 (struct ipa_node): Renamed to ipa_node_params
19768 (struct ipa_node_params): Renamed ipa_arg_num to param_count
19769 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
19770 (struct ipa_node_params): Renamed ipa_mod to modified_flags
19771 (struct ipa_edge): Renamed to ipa_edge_args
19772 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
19773 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
19774 (struct ipa_methodlist): Renamed to ipa_func_list
19775 (struct ipa_func_list): method_p renamed to node, next_method
19777 (ipa_methodlist_p): Removed, switched all users to struct pointer
19778 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
19780 2008-04-30 Alan Modra <amodra@bigpond.net.au>
19782 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
19783 (rs6000_emit_epilogue): Use backchain to restore only when we
19784 have a large frame. Make use of frame pointer to restore if we
19785 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
19787 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
19789 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
19790 Add mode to zero_extract.
19791 (sign bit tests peepholes): (Ditto.).
19793 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
19795 * config/i386/i386.c (ix86_builtins): Replace Prescott New
19796 Instructions in comments with SSE3.
19797 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
19798 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
19799 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
19800 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
19801 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
19802 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
19803 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
19804 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
19805 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
19806 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
19807 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
19808 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
19809 (bdesc_sse_args): Renamed to ...
19810 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
19811 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
19812 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
19813 IX86_BUILTIN_FABSQ.
19814 (bdesc_1arg): Moved to ...
19815 (bdesc_args): Here.
19816 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
19817 Instructions in comments with SSE3.
19818 (ix86_expand_sse_operands_builtin): Renamed to ...
19819 (ix86_expand_args_builtin): This. Updated.
19820 (ix86_expand_unop1_builtin): Update comments.
19821 (ix86_expand_builtin): Updated.
19823 2008-04-29 Richard Guenther <rguenther@suse.de>
19825 PR tree-optimization/36078
19826 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
19827 Update virtual SSA form after cleaning up the CFG.
19829 2008-04-29 Richard Guenther <rguenther@suse.de>
19831 PR middle-end/15255
19832 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
19834 2008-04-29 Richard Guenther <rguenther@suse.de>
19836 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
19837 (compute_may_aliases): Do not call finalize_ref_all_pointers.
19838 (compute_flow_insensitive_aliasing): Do not treat
19839 PTR_IS_REF_ALL pointers special.
19840 (get_smt_for): Likewise.
19841 (may_alias_p): Re-structure.
19842 (is_escape_site): A ref-all pointer conversion is not an escape site.
19843 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
19844 PTR_IS_REF_ALL pointers special.
19845 * tree-ssa-structalias.h (struct alias_info): Remove
19846 ref_all_symbol_mem_tag field.
19847 (PTR_IS_REF_ALL): Remove.
19849 2008-04-29 Richard Guenther <rguenther@suse.de>
19851 PR middle-end/36077
19852 * fold-const.c (extract_muldiv_1): In combining division constants
19853 make sure to never overflow.
19855 2008-04-29 Nick Clifton <nickc@redhat.com>
19857 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
19859 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19862 * optc-gen.awk: Work around HP-UX/IA awk bug.
19864 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
19866 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
19869 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
19872 * config/i386/i386.md
19873 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
19874 Change operand 1 predicate to nonimmediate_operand.
19876 2008-04-28 Jakub Jelinek <jakub@redhat.com>
19879 * dwarf2out.c (struct die_struct): Mark as chain_circular through
19881 * gengtype.c (walk_type, write_func_for_structure): Handle
19883 * doc/gty.texi: Document chain_circular.
19885 2008-04-28 Richard Guenther <rguenther@suse.de>
19887 PR tree-optimization/36066
19888 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
19891 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
19894 * config/i386/i386.md
19895 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
19896 Use match_scratch instead of match_operand for operands 3 and 4.
19898 2008-04-27 Richard Guenther <rguenther@suse.de>
19900 PR tree-optimization/18754
19901 PR tree-optimization/34223
19902 * tree-pass.h (pass_complete_unrolli): Declare.
19903 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
19904 loop size before and after unconditionally of UL_NO_GROWTH in effect.
19905 Rewrite loop into loop closed SSA form if it is not already.
19906 (tree_unroll_loops_completely): Re-structure to iterate over
19907 innermost loops with intermediate CFG cleanups.
19908 Unroll outermost loops only if requested or the code does not grow
19910 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
19911 loops are available.
19912 (tree_vectorize): Instead do so here.
19913 (tree_complete_unroll): Also unroll outermost loops.
19914 (tree_complete_unroll_inner): New function.
19915 (gate_tree_complete_unroll_inner): Likewise.
19916 (pass_complete_unrolli): New pass.
19917 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
19918 uses outside of the loop.
19919 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
19920 form if it is available.
19921 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
19922 * passes.c (init_optimization_passes): Schedule complete inner
19923 loop unrolling pass before the first CCP pass after final inlining.
19925 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
19927 * targhooks.h (default_emutls_var_fields,
19928 default_emutls_var_init): Declare.
19929 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
19930 * target.h (struct gcc_target): Add struct emutls member.
19931 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
19932 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
19933 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
19934 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
19935 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
19936 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
19937 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
19938 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
19939 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
19940 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
19941 emit debug information.
19942 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
19943 * varasm.c: Include targhooks.h.
19944 (emutls_object_section, emutls_tmpl_section): New.
19945 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
19946 (EMUTLS_SEPARATOR): New.
19947 (prefix_name): New.
19948 (get_emutls_object_name): New.
19949 (default_emutls_var_fields): New, broken out of ...
19950 (get_emutls_object_type): ... here. Adjust to use target hooks.
19951 (get_emutls_init_templ_addr): Adjust to use target hooks.
19952 (emutls_decl): Adjust to use target hooks.
19953 (emutls_finish): Likewise.
19954 (default_emutls_var_init): New, broken out of ...
19955 (assemble_variable): ... here. Adjust to use target hooks.
19956 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
19957 SECCAT_EMUTLS_TMPL.
19958 * c-common.c (handle_section_attribute): Prevent overriding
19959 sections for emulated tls with special sections.
19960 * config/i386/i386.c (x86_64_elf_select_section): Add
19961 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
19962 (x86_64_elf_unique_section): Likewise.
19963 * config/vxworks.c: Include tree.h.
19964 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
19965 (vxworks_override_options): Set TLS scheme.
19966 * doc/tm.texi (Emulated TLS): New node.
19968 2008-04-26 Simon Baldwin <simonb@google.com>
19971 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
19972 with propagated string constants.
19974 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
19976 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
19977 constraint for operand 2 when operand 0 is memory operand.
19978 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
19979 operand 0 is memory operand.
19980 (fix_trunc<mode>_i387_with_temp): Ditto.
19981 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
19982 operand 2 when operand 1 is memory operand.
19983 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
19984 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
19985 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
19986 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
19987 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
19988 operands 2,3 and 4 when operand 1 is memory operand.
19989 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
19991 (fistdi2_floor_with_temp): Ditto.
19992 (fist<mode>2_floor_with_temp): Ditto.
19993 (fistdi2_ceil_with_temp): Ditto.
19994 (fist<mode>2_ceil_with_temp): Ditto.
19995 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
19997 2008-04-26 David Daney <ddaney@avtrex.com>
19999 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
20001 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
20002 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
20003 UNSPEC_UPDATE_GOT_VERSION): Renumber.
20004 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
20005 (compare_and_swap_12): New insn.
20006 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
20007 * config/mips/mips.c (mips_force_binary): New function.
20008 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
20009 (mips_expand_compare_and_swap_12): New function.
20010 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
20012 2008-04-25 Jan Hubicka <jh@suse.cz>
20015 * cfgexpand.c (pass_expand): Turn into RTL pass.
20016 * passes.c (execute_one_pass): Do pass typechecking after execution.
20017 * tree-pass.h (pass_expand): Turn into RTL pass.
20019 * function.h (struct rtl_data): Move here fields
20020 accesses_prior_frames, calls_eh_return, saves_all_registers,
20021 has_nonlocal_goto, has_asm_statement, is_thunk,
20022 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
20023 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
20024 arg_pointer_save_area_init from struct function; turn into bool.
20025 (struct function): Move
20026 calls_eh_return, saves_all_registers, has_nonlocal_goto,
20027 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
20028 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
20029 tail_call_emit, arg_pointer_save_area_init
20030 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
20031 (current_function_returns_struct, current_function_returns_pcc_struct,
20032 current_function_calls_setjmp, current_function_calls_alloca,
20033 current_function_accesses_prior_frames,
20034 current_function_calls_eh_return, current_function_is_thunk,
20035 current_function_stdarg, current_function_profile,
20036 current_function_limit_stack, current_function_uses_pic_offset_table,
20037 current_function_uses_const_pool, current_function_has_nonlocal_label,
20038 current_function_saves_all_registers,
20039 current_function_has_nonlocal_goto,
20040 current_function_has_asm_statement): Remove accesor macros.
20041 * ra-conflict.c (global_conflicts): Update.
20042 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
20043 (suitable_for_tail_call_opt_p): Update.
20044 * builtins.c (expand_builtin_return_addr): Update.
20045 (expand_builtin_setjmp_setup): Update.
20046 (expand_builtin_nonlocal_goto): Update.
20047 * final.c (final_start_function): Update.
20048 (profile_function): Update.
20049 (leaf_function_p): Update.
20050 (only_leaf_regs_used): Update.
20051 * df-scan.c (df_get_exit_block_use_set): Update.
20052 * dojump.c (clear_pending_stack_adjust): Update.
20053 * tree-stdarg.c (gate_optimize_stdarg): Update.
20054 * gimple-low.c (lower_function_body): Update.
20055 * global.c (compute_regsets): Update.
20056 (global_alloc): Update.
20057 * dwarf2out.c (dwarf2out_begin_prologue): Update.
20058 * expr.c (expand_assignment): Update.
20059 * dse.c (dse_step0): Update.
20060 (dse_step1): Update.
20061 * c-decl.c (store_parm_decls): Update.
20062 * local-alloc.c (combine_regs): Update.
20063 (find_free_reg): Update.
20064 * function.c (assign_parms_augmented_arg_list): Update.
20065 (assign_parm_find_data_types): Update.
20066 (assign_parms): Update.
20067 (allocate_struct_function): Update.
20068 (expand_function_start): Update.
20069 (expand_function_end): Update.
20070 (get_arg_pointer_save_area): Update.
20071 (thread_prologue_and_epilogue_insns): Update.
20072 (rest_of_match_asm_constraints): Update.
20073 * stor-layout.c (variable_size): Update.
20074 * gcse.c (gcse_main): Update.
20075 (bypass_jumps): Update.
20076 * gimplify.c (gimplify_function_tree): Update.
20077 * calls.c (emit_call_1): Update.
20078 (expand_call): Update.
20079 * bt-load.c (compute_defs_uses_and_gen): Update.
20080 * except.c (sjlj_assign_call_site_values): Update.
20081 (sjlj_emit_function_enter): Update.
20082 (can_throw_external): Update.
20083 (set_nothrow_function_flags): Update.
20084 (expand_builtin_unwind_init): Update.
20085 (expand_eh_return): Update.
20086 (convert_to_eh_region_ranges): Update.
20087 (output_function_exception_table): Update.
20088 * emit-rtl.c (gen_tmp_stack_mem): Update.
20089 * cfgexpand.c (expand_used_vars): Update.
20090 (tree_expand_cfg): Update.
20091 * cfgcleanup.c (rest_of_handle_jump): Update.
20092 * explow.c (allocate_dynamic_stack_space): Update.
20093 * varasm.c (assemble_start_function): Update.
20094 (force_const_mem): Update.
20095 (mark_constant_pool): Update.
20096 * tree-optimize.c (tree_rest_of_compilation): Update.
20097 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
20098 * tree-cfg.c (notice_special_calls): Update.
20099 (is_ctrl_altering_stmt): Update.
20100 (tree_can_make_abnormal_goto): Update.
20101 (tree_purge_dead_abnormal_call_edges): Update.
20102 * config/alpha/predicates.md: Update.
20103 * config/alpha/alpha.c (alpha_sa_mask): Update.
20104 (alpha_sa_size): Update.
20105 (alpha_does_function_need_gp): Update.
20106 (alpha_expand_prologue): Update.
20107 (alpha_start_function): Update.
20108 (alpha_output_function_end_prologue): Update.
20109 (alpha_expand_epilogue): Update.
20110 * config/frv/frv.c (frv_stack_info): Update.
20111 (frv_expand_epilogue): Update.
20112 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
20113 (s390_register_info): Update.
20114 (s390_frame_info): Update.
20115 (s390_init_frame_layout): Update.
20116 (s390_can_eliminate): Update.
20117 (save_gprs): Update.
20118 * config/spu/spu.c (spu_split_immediate): Update.
20119 (need_to_save_reg): Update.
20120 (spu_expand_prologue): Update.
20121 (spu_expand_epilogue): Update.
20122 * config/sparc/sparc.md: Update.
20123 * config/sparc/sparc.c (eligible_for_return_delay): Update.
20124 (sparc_tls_got): Update.
20125 (legitimize_pic_address): Update.
20126 (sparc_emit_call_insn): Update.
20127 (sparc_expand_prologue): Update.
20128 (output_return): Update.
20129 (print_operand): Update.
20130 (sparc_function_ok_for_sibcall): Update.
20131 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
20132 * config/m32r/m32r.md: Update.
20133 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
20134 (m32r_compute_frame_size): Update.
20135 (m32r_expand_prologue): Update.
20136 (m32r_expand_epilogue): Update.
20137 (m32r_legitimize_pic_address): Update.
20138 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
20139 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
20140 * config/i386/i386.c (ix86_frame_pointer_required): Update.
20141 (gen_push): Update.
20142 (ix86_save_reg): Update.
20143 (ix86_compute_frame_layout): Update.
20144 (ix86_expand_prologue): Update.
20145 (ix86_expand_epilogue): Update.
20146 * config/sh/sh.c (output_stack_adjust): Update.
20147 (calc_live_regs): Update.
20148 (sh5_schedule_saves): Update.
20149 (sh_expand_prologue): Update.
20150 (sh_expand_epilogue): Update.
20151 (sh_setup_incoming_varargs): Update.
20152 (sh_allocate_initial_value): Update.
20153 (sh_get_pr_initial_val): Update.
20154 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
20155 * config/sh/sh.md (label:): Update.
20156 * config/avr/avr.c (out_movhi_mr_r): Update.
20157 * config/crx/crx.h (enum): Update.
20158 * config/xtensa/xtensa.h (along): Update.
20159 * config/stormy16/stormy16.c Update.
20160 (xstormy16_compute_stack_layout): Update.
20161 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
20162 (fr30_expand_prologue): Update.
20163 * config/cris/cris.c (cris_conditional_register_usage): Update.
20164 (cris_reg_saved_in_regsave_area): Update.
20165 (cris_initial_frame_pointer_offset): Update.
20166 (cris_simple_epilogue): Update.
20167 (cris_expand_prologue): Update.
20168 (cris_expand_epilogue): Update.
20169 (cris_expand_pic_call_address): Update.
20170 (cris_asm_output_symbol_ref): Update.
20171 (cris_asm_output_label_ref): Update.
20172 * config/cris/cris.md Update.
20173 * config/iq2000/iq2000.c (compute_frame_size): Update.
20174 (iq2000_expand_epilogue): Update.
20175 * config/mt/mt.h (save_direction): Update.
20176 * config/mn10300/mn10300.c (mn10300_function_value): Update.
20177 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
20178 (ia64_secondary_reload_class): Update.
20179 * config/m68k/m68k.c (m68k_save_reg): Update.
20180 (m68k_expand_prologue): Update.
20181 (m68k_expand_epilogue): Update.
20182 (legitimize_pic_address): Update.
20183 * config/rs6000/rs6000.c (rs6000_got_register): Update.
20184 (first_reg_to_save): Update.
20185 (first_altivec_reg_to_save): Update.
20186 (compute_vrsave_mask): Update.
20187 (compute_save_world_info): Update.
20188 (rs6000_stack_info): Update.
20189 (spe_func_has_64bit_regs_p): Update.
20190 (rs6000_ra_ever_killed): Update.
20191 (rs6000_emit_eh_reg_restore): Update.
20192 (rs6000_emit_allocate_stack): Update.
20193 (rs6000_emit_prologue): Update.
20194 (rs6000_emit_epilogue): Update.
20195 (rs6000_output_function_epilogue): Update.
20196 (output_profile_hook): Update.
20197 (rs6000_elf_declare_function_name): Update.
20198 * config/rs6000/rs6000.h (rs6000_args): Update.
20199 * config/rs6000/rs6000.md: Update.
20200 * config/mcore/mcore.c (mcore_expand_prolog): Update.
20201 * config/arc/arc.c (arc_output_function_epilogue): Update.
20202 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
20203 * config/darwin.c (machopic_function_base_name): Update.
20204 * config/score/score3.c (score3_compute_frame_size): Update.
20207 (score3_epilogue): Update.
20208 * config/score/score7.c (score7_compute_frame_size): Update.
20209 (score7_prologue): Update.
20210 (score7_epilogue): Update.
20211 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
20212 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
20213 * config/arm/arm.c (use_return_insn): Update.
20214 (require_pic_register): Update.
20215 (arm_load_pic_register): Update.
20216 (arm_compute_save_reg0_reg12_mask): Update.
20217 (arm_compute_save_reg_mask): Update.
20218 (thumb1_compute_save_reg_mask): Update.
20219 (output_return_instruction): Update.
20220 (arm_output_function_prologue): Update.
20221 (arm_output_epilogue): Update.
20222 (arm_get_frame_offsets): Update.
20223 (arm_expand_prologue): Update.
20224 (thumb_pushpop): Update.
20225 (thumb_exit): Update.
20226 (thumb1_expand_prologue): Update.
20227 (thumb1_expand_epilogue): Update.
20228 (arm_unwind_emit): Update.
20229 (arm_output_fn_unwind): Update.
20230 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
20231 * config/arm/arm.md: Update.
20232 * config/pa/pa.md: Update.
20233 * config/pa/pa.c (legitimize_pic_address): Update.
20234 (compute_frame_size): Update.
20235 (hppa_expand_prologue): Update.
20236 (hppa_expand_epilogue): Update.
20237 (borx_reg_operand): Update.
20238 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
20239 (HARD_REGNO_RENAME_OK): Update.
20240 * config/mips/mips.c (mips_global_pointer): Update.
20241 (mips_save_reg_p): Update.
20242 (mips_compute_frame_info): Update.
20243 (mips_frame_pointer_required): Update.
20244 (mips_expand_prologue): Update.
20245 (mips_expand_epilogue): Update.
20246 (mips_can_use_return_insn): Update.
20247 (mips_reorg_process_insns): Update.
20248 * config/v850/v850.c (compute_register_save_size): Update.
20249 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
20250 * config/mmix/mmix.c (along): Update.
20251 (mmix_expand_epilogue): Update.
20252 * config/bfin/bfin.c (legitimize_pic_address): Update.
20253 (must_save_p): Update.
20254 (stack_frame_needed_p): Update.
20255 (add_to_reg): Update.
20256 (bfin_expand_prologue): Update.
20257 * stmt.c (expand_asm_operands): Update.
20258 * reload1.c (reload): Update.
20259 (init_elim_table): Update.
20261 2008-04-25 Bob Wilson <bob.wilson@acm.org>
20263 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
20265 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
20267 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
20268 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
20269 (mov<mode>): Removed.
20270 (*movv4sf_internal): Likewise.
20271 (*movv2df_internal): Likewise.
20273 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
20275 * config.gcc (crx-*-elf): Remove deprecation.
20277 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
20279 * config/i386/cygming-crtend.c (register_frame_ctor): Register
20280 __gcc_deregister_frame with atexit.
20281 (deregister_frame_dtor): Remove.
20283 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
20284 Nathan Sidwell <nathan@codesourcery.com>
20286 * config/rs6000/rs6000.opt (mspe): Remove Var property.
20288 * config/rs6000/rs6000.h (rs6000_spe): Declare.
20289 (rs6000_isel): Likewise.
20290 * config/rs6000/rs6000.c (rs6000_spe): New variable.
20291 (rs6000_isel): New variable.
20292 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
20294 2008-04-24 Jakub Jelinek <jakub@redhat.com>
20297 * c-common.c (handle_vector_size_attribute): Call
20298 lang_hooks.types.reconstruct_complex_type instead of
20299 reconstruct_complex_type.
20300 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
20301 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
20302 * langhooks.h (struct lang_hooks_for_types): Add
20303 reconstruct_complex_type hook.
20304 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
20305 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
20307 2008-04-24 Richard Guenther <rguenther@suse.de>
20309 * c-common.h (check_builtin_function_arguments): Declare.
20310 * c-common.c (validate_nargs): New function.
20311 (check_builtin_function_arguments): Likewise.
20312 * c-typeck.c (build_function_call): Call
20313 check_builtin_function_arguments.
20314 * builtins.c (fold_builtin_classify): Remove error reporting code.
20315 (fold_builtin_unordered_cmp): Likewise.
20316 (fold_builtin_1): Likewise.
20317 (fold_builtin_n): Likewise.
20319 2008-04-24 Jakub Jelinek <jakub@redhat.com>
20321 PR tree-optimization/36008
20322 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
20323 the original op1, rather than delta by step.
20325 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
20326 Sebastian Pop <sebastian.pop@amd.com>
20328 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
20329 eliminate_local_variables_stmt, eliminate_local_variables,
20330 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
20331 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
20332 of code delimited by two edges in the CFG.
20333 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
20334 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
20335 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
20336 the case of parallelisation of reductions.
20337 (expr_invariant_in_region_p): New.
20339 * tree-flow.h (gather_blocks_in_sese_region): Declared.
20340 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
20342 2008-04-24 Ira Rosen <irar@il.ibm.com>
20343 Richard Guenther <rguenther@suse.de>
20345 PR tree-optimization/36034
20346 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
20347 incapable of dealing with loads with gaps.
20349 2008-04-24 Rafael Espíndola <espindola@google.com>
20351 * tree-flow.h (vrp_evaluate_conditional): Change signature.
20352 * tree-ssa-propagate.c (fold_predicate_in): Update call to
20353 vrp_evaluate_conditional.
20354 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
20355 (vrp_evaluate_conditional): Split the cond argument.
20356 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
20357 (simplify_stmt_for_jump_threading): Update call to
20358 vrp_evaluate_conditional.
20360 2008-04-24 Ira Rosen <irar@il.ibm.com>
20362 PR tree-optimization/35982
20363 * tree-vect-analyze.c (vect_check_interleaving): Check that the
20364 interleaved data-refs are of the same type.
20366 2008-04-24 Danny Smith <dannysmith@users.net>
20368 * c-format.c (check_format_info_main): Use strncmp rather than a
20369 magic prefix to handle multichar length specs.
20370 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
20371 Don't prefix "I64" and "I32" with '\0'.
20373 2008-04-24 Jakub Jelinek <jakub@redhat.com>
20376 * config/i386/i386.c (init_cumulative_args): Don't pass anything
20377 in registers for -m32 only if stdarg_p (fntype).
20379 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
20381 PR rtl-optimization/36006
20382 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
20383 temp to op0 in order to avoid invalid rtx sharing.
20385 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20387 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
20388 check TREE_INVARIANT.
20389 * tree-gimple.c (is_gimple_address): New.
20390 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
20391 * tree-gimple.h (is_gimple_address): New.
20392 * tree.h (decl_address_invariant_p): New.
20393 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
20394 (build_string): Likewise.
20395 (decl_address_invariant_p): New, from is_gimple_invariant_address.
20396 (tree_invariant_p_1): Likewise.
20397 (save_expr): Use it.
20398 (tree_invariant_p): New.
20399 (skip_simple_arithmetic): Use it.
20400 (stabilize_reference_1): Use it.
20401 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
20403 (build1_stat): Drop code to compute TREE_INVARIANT.
20404 (build2_stat): Drop code to compute TREE_INVARIANT.
20405 (build3_stat): Drop code to compute TREE_INVARIANT.
20406 (build4_stat): Drop code to compute TREE_INVARIANT.
20407 (build5_stat): Drop code to compute TREE_INVARIANT.
20408 (build7_stat): Drop code to compute TREE_INVARIANT.
20409 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
20410 * tree.h (struct tree_base): Remove invariant_flag.
20411 (TREE_INVARIANT): Remove.
20412 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
20413 (fold_builtin_expect): Check TREE_CONSTANT.
20414 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
20415 * c-tree.h (c_expr_to_decl): Drop third parameter.
20416 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
20417 (build_c_cast): Don't set TREE_INVARIANT.
20418 (pop_init_level): Don't set TREE_INVARIANT.
20419 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
20420 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
20422 (gimplify_init_constructor): Don't set TREE_INVARIANT.
20423 (gimplify_addr_expr): Adjust comment.
20424 * tree-mudflap.c (mf_build_string):
20425 * print-tree.c (print_node): Don't print TREE_INVARIANT.
20426 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
20427 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
20428 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
20429 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
20430 * langhooks.h (struct lang_hooks): Drop third parameter from
20433 2008-04-23 Richard Guenther <rguenther@suse.de>
20435 PR tree-optimization/27799
20436 PR tree-optimization/32921
20437 PR tree-optimization/32624
20438 * tree-ssa-structalias.c (merge_smts_into): Only merge the
20439 SMTs aliases and the tag itself into the solution.
20440 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
20441 merge the points-to solution back into the SMT aliases.
20442 (may_alias_p): Use alias_set_subset_of instead of
20443 aliases_conflict_p. A pointer which points to
20444 memory with alias set zero may access any variable.
20446 2008-04-23 Richard Guenther <rguenther@suse.de>
20448 * alias.c (alias_set_subset_of): Correctly handle asking
20449 if zero is a subset of an alias set with zero child.
20450 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
20451 (compute_flow_insensitive_aliasing): Correctly walk all
20452 pointers. Do not unnecessarily union sets.
20454 2008-04-23 Richard Guenther <rguenther@suse.de>
20456 PR middle-end/36021
20457 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
20459 2008-04-22 Tomas Bily <tbily@suse.cz>
20461 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
20463 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
20465 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
20466 * tree-ssa-structalias.c (get_constraint_for): Likewise.
20467 * tree-inline.c (estimate_num_insns_1): Likewise.
20468 * varasm.c (const_hash_1, compare_constant, copy_constant)
20469 (compute_reloc_for_constant, output_addressed_constants): Likewise.
20470 * emit-rtl.c (component_ref_for_mem_expr)
20471 (set_mem_attributes_minus_bitpos): Likewise.
20472 * expr.c (highest_pow2_factor, expand_expr_real_1, )
20473 (is_aligning_offset): Likewise.
20474 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
20475 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
20476 * dojump.c (do_jump): Likewise.
20477 * builtins.c (get_pointer_alignment, get_memory_rtx)
20478 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
20479 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
20481 2008-04-23 Jakub Jelinek <jakub@redhat.com>
20483 PR rtl-optimization/36017
20484 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
20485 expanding the library call.
20487 2008-04-22 Ian Lance Taylor <iant@google.com>
20489 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
20490 than size_in_bytes.
20492 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
20494 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
20495 of LR/CTR moves for Power6.
20497 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
20499 PR middle-end/36003
20500 * passes.c (init_optimization_passes): Remove
20501 pass_fast_rtl_byte_dce.
20503 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
20506 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
20507 builtin functions to generate faster code.
20508 (_mm_cvtpu16_ps): Ditto.
20509 (_mm_cvtpi32x2_ps): Ditto.
20511 2008-04-22 Nick Clifton <nickc@redhat.com>
20513 * common.opt (ftree-loop-distribution): Add Optimization
20516 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
20517 (frv_expand_builtin_va_start): Likewise.
20519 * config/arm/arm.c (thumb_find_work_register): Fix location of
20520 argument register count.
20522 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
20524 Support scheduling for ColdFire V1 and V3 microarchitecture.
20525 Improve scheduling of multiplication instructions.
20527 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
20528 (mac): New instruction attribute.
20529 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
20530 (m68k_sched_mac): New variable.
20531 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
20532 Handle cfv1 and cfv3.
20533 (max_insn_size): New static variable.
20534 (struct _sched_ib): New type.
20535 (sched_ib): New static variable.
20536 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
20537 to fields of 'struct _sched_ib sched_ib'. Update all uses.
20538 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
20540 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
20541 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
20542 new variables. Update.
20543 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
20544 Add modeling of cfv3 instruction buffer. Update.
20545 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
20546 * config/m68k/m68k.h (TUNE_CFV3): New macro.
20547 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
20548 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
20549 a particular reservation applies to.
20550 (type2): Reorganize attribute values. Rename alu to alu_reg,
20551 alu_l to alu, move_l to omove. Join move to alu. Split mul
20552 to mul_l and mul_w.
20553 (cf_ib_*): Simplify description of instruction buffer.
20554 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
20555 (cf_mem): Split into cf_mem1 and cf_mem2.
20556 (cf_v2_move_??): Rename to cfv12_alu_??.
20557 (cf_v2_move_l_??): Rename to cfv12_omove_??.
20558 (cf_v2_mul_??): Remove reservations.
20559 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
20560 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
20561 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
20563 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
20564 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
20565 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
20566 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
20567 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
20568 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
20569 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
20570 expansions of the above reservations for instructions of sizes
20573 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
20575 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
20577 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
20579 * coverage.c: Include tree-pass.h.
20580 (coverage_counter_alloc): Print da_file_name to the dump file.
20582 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
20584 * sbitmap.c (sbitmap_range_empty_p): New function.
20585 * sbitmap.h (sbitmap_range_empty_p): New function.
20586 * bitmap.h: Now includes obstack.h.
20588 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
20589 Kenneth Zadeck <zadeck@naturalbridge.com>
20591 * dbgcnt.def (ra_byte_scan): Added.
20592 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
20593 when the last hit happens for a counter.
20594 * timevar.def (TV_DF_BYTE_LR): New variable.
20595 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
20596 * passes.c (pass_fast_rtl_byte_dce): New pass.
20597 * fwprop.c (update_df): Added mode to call df_ref_create.
20598 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
20599 DF_REF_EXTRACT_OFFSET.
20600 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
20601 DF_BYTE_LR_OUT, df_byte_lr): New macro.
20603 (df_ref_extract): Added mode field.
20604 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
20605 DF_REF_EXTRACT_OFFSET.
20606 (DF_REF_EXTRACT_MODE): New macro.
20607 (df_byte_lr_bb_info): New structure.
20608 (df_print_byte_regset, df_compute_accessed_bytes,
20609 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
20610 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
20611 df_byte_lr_simulate_uses,
20612 df_byte_lr_simulate_artificial_refs_at_top,
20613 df_byte_lr_simulate_artificial_refs_at_end,
20614 df_compute_accessed_bytes): New function.
20615 (df_ref_create): Add parameter.
20616 (df_byte_lr_get_bb_info): New inline function.
20617 * df-scan.c (df_ref_record, df_uses_record,
20618 df_ref_create_structure): Added mode parameter.
20619 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
20620 df_defs_record, df_uses_record, df_get_conditional_uses,
20621 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
20622 df_entry_block_defs_collect, df_exit_block_uses_collect):
20623 Added mode parameter to calls to df_ref_record, df_uses_record,
20624 df_ref_create_structure.
20625 (df_ref_equal_p, df_ref_compare): Added test for modes.
20626 (df_ref_create_structure): Added code to set mode. Renamed
20627 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
20628 DF_REF_EXTRACT_OFFSET.
20629 * df-core.c (df_print_byte_regset): New function.
20630 * df-byte-scan.c: New file.
20631 * df-problems.c (df_rd_transfer_function): Removed unnecessary
20632 calls to BITMAP_FREE.
20633 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
20634 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
20635 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
20636 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
20637 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
20638 df_byte_lr_local_compute, df_byte_lr_init,
20639 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
20640 df_byte_lr_transfer_function, df_byte_lr_free,
20641 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
20642 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
20643 df_byte_lr_simulate_uses,
20644 df_byte_lr_simulate_artificial_refs_at_top,
20645 df_byte_lr_simulate_artificial_refs_at_end): New function.
20646 * dce.c (byte_dce_process_block): New function.
20647 (dce_process_block): au is now passed in rather than computed
20648 locally. Changed loops that look at artificial defs to not look
20649 for conditional or partial ones, because there never are any.
20650 (fast_dce): Now is able to drive byte_dce_process_block or
20651 dce_process_block depending on the kind of dce being done.
20652 (rest_of_handle_fast_dce): Add parameter to fast_dce.
20653 (rest_of_handle_fast_byte_dce): New function.
20654 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
20655 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
20657 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
20660 * gcc.h: Added fortran options that take arguments to
20661 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
20664 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
20666 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
20667 scalarization if on the LHS and not a full access.
20669 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20671 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
20673 2008-04-18 Rafael Espíndola <espindola@google.com>
20675 * tree-vrp.c (find_case_label_index): Fix the binary search.
20676 (find_case_label_range): New.
20677 (vrp_visit_switch_stmt): Use find_case_label_range.
20678 (simplify_switch_using_ranges): Use find_case_label_range.
20680 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
20682 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
20683 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
20685 2008-04-18 Tom Tromey <tromey@redhat.com>
20688 * doc/cpp.texi (Implementation-defined behavior): Mention
20691 2008-04-18 Ian Lance Taylor <iant@google.com>
20693 * fold-const.c (pointer_may_wrap_p): New static function.
20694 (fold_comparison): Add another test for pointer overflow. Use
20695 pointer_may_wrap_p to disable some false positives.
20697 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
20699 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
20700 (fname_as_string): Match updated cpp_interpret_string prototype.
20701 (fix_string_type): Support char16_t* and char32_t*.
20702 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
20703 derivative) nodes. Register as builtin if C++0x.
20704 (c_parse_error): Support CPP_CHAR{16,32}.
20705 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
20706 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
20707 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
20708 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
20709 CTI_CHAR32_ARRAY_TYPE>: New elements.
20710 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
20711 char32_type_node, signed_char32_type_node, char16_array_type_node,
20712 char32_array_type_node): New defines.
20713 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
20714 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
20715 (lex_string): Support CPP_STRING{16,32}, match updated
20716 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
20717 (lex_charconst): Support CPP_CHAR{16,32}.
20718 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
20719 and CPP_STRING{16,32}.
20721 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
20724 * aclocal.m4: Regenerate.
20725 * configure: Regenerate.
20727 2008-04-18 Jan Hubicka <jh@suse.cz>
20729 * except.c (dw2_size_of_call_site_table,
20730 sjlj_size_of_call_site_table): Use vector API for call_site_record.
20732 * cgraphbuild.c (build_cgraph_edges): Update.
20733 * tree-pass.h: Update comment.
20734 * final.c (leaf_function_p): Update.
20735 (leaf_renumber_regs): Update.
20736 (rest_of_clean_state): Update.
20737 * omp-low.c (expand_omp_parallel): Update.
20738 * ipa-reference.c (analyze_function): Update.
20739 * reorg.c (find_end_label): Update.
20740 (optimize_skip): Update.
20741 (fill_simple_delay_slots): Update.
20742 (fill_simple_delay_slots): Update.
20743 (make_return_insns): Update.
20744 (dbr_schedule): Update.
20745 * gimple-low.c (record_vars_into): Update.
20746 * cfgbuild.c (make_edges): Update.
20747 * function.c (assign_stack_local): Update.
20748 (assign_parm_adjust_stack_rtl): Update.
20749 (locate_and_pad_parm): Update.
20750 (allocate_struct_function): Do not initialize stack_alignment_needed
20751 and preferred_stack_boundary here.
20752 (stack_protect_prologue): Update.
20753 (stack_protect_epilogue): Update.
20754 (expand_function_start): Initialize stack_alignment_needed,
20755 preferred_stack_boundary and max_jumptable_ents.
20756 (expand_function_end): Update.
20757 (free_after_compilation): Do not NULLify epilogue_delay_list.
20758 * function.h (struct rtl_data): Add stack_protect_guard,
20759 stack_alignment_needed,
20760 preferred_stack_boundary, epilogue_delay_list.
20761 (struct function): Remove value_histograms, stack_alignment_needed,
20762 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
20764 unexpanded_var_list, stack_protect_guard.
20765 (current_function_epilogue_delay_list): Remove.
20766 * ipa-type-escape.c (analyze_function): Update.
20767 * gimplify.c (pop_gimplify_context): Update comment.
20768 * calls.c (expand_call): Update.
20769 (emit_library_call_value_1): Update.
20770 * except.c (set_nothrow_function_flags): Update.
20771 * cfgexpand.c (get_decl_align_unit): Update.
20772 (create_stack_guard): Update.
20773 (estimated_stack_frame_size): Update.
20774 (expand_used_vars): Update.
20775 (tree_expand_cfg): Free histogram earliers, init expansion variables.
20776 * explow.c (allocate_dynamic_stack_space): Update.
20777 * tree-ssa-live.c (remove_unused_locals): Update.
20778 * varasm.c (mark_constant_pool): Update.
20779 * tree-inline.c (remap_decls): Update.
20780 (initialize_cfun): Update.
20781 (declare_return_variable): Update.
20782 (inline_forbidden_p): Update.
20783 (expand_call_inline): Update.
20784 (declare_inline_vars): Update.
20785 (tree_function_versioning): Update.
20786 * tree-flow.h (value_histograms): New.
20787 (VALUE_HISTOGRAMS): New macro.
20788 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
20790 * tree-cfg.c (set_bb_for_stmt): Update.
20791 (replace_by_duplicate_decl): Update.
20792 (move_block_to_fn): Update.
20793 (new_label_mapper): Update.
20794 (dump_function_to_file): Update.
20795 * ipa-struct-reorg.c (build_data_structure): Update.
20796 * cfgrtl.c (print_rtl_with_bb): Update.
20797 * reload1.c (reload): Update.
20799 * config/i386/i386.c (setup_incoming_varargs_64,
20800 ix86_compute_frame_layout): Update.
20801 * config/arc/arc.c (arc_output_function_epilogue): Update.
20803 2008-04-18 Marius Strobl <marius@FreeBSD.org>
20805 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
20806 for FreeBSD as well.
20807 * gthr-posix95.h: Likewise.
20809 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
20811 PR rtl-optimization/35838
20812 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
20813 out the byte offset of the first subreg.
20815 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
20817 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
20818 to split_ti instead of three separate calls with single member arrays.
20819 (subti3 splitter): Ditto.
20820 (adddi3 splitter): Ditto with split_di.
20821 (subdi3 splitter): Ditto.
20822 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
20823 two separate calls with single member arrays. Swap match_dup
20824 operands 1 and 2 to better fit into the array.
20825 (negdi2 splitter): Ditto with split_di.
20826 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
20827 two separate calls with single member arrays. Swap match_dup operands
20828 6 and 7 to better fit into the array.
20830 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
20832 * config/i386/i386.c (sse_builtin_type): New.
20833 (bdesc_sse_args): Likewise.
20834 (bdesc_sse_3arg): Removed.
20835 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
20836 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
20837 IX86_BUILTIN_ROUNDPS.
20838 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
20839 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
20840 IX86_BUILTIN_ROUNDPS.
20841 (ix86_expand_sse_4_operands_builtin): Removed.
20842 (ix86_expand_sse_operands_builtin): New.
20843 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
20844 and CODE_FOR_sse4_1_roundps.
20845 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
20846 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
20848 2008-04-17 Alan Modra <amodra@bigpond.net.au>
20851 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
20852 regs before frame pop when needed. If use_backchain_to_restore_sp
20853 then load backchain into a temp reg to restore vr and vrsave. Add
20854 code to restore vr after frame pop if possible.
20856 2008-04-17 Richard Guenther <rguenther@suse.de>
20858 * tree-vn.c (expressions_equal_p): Do not check type
20859 equality or compatibility before calling operand_equal_p.
20860 * fold-const.c (operand_equal_p): Check equivalence of
20861 integer constants before bailing out due to signedness or
20862 precision differences.
20863 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
20864 spurious differences in type qualification. Ignore types
20865 for COMPONENT_REFs at all.
20867 2008-04-17 Christian Bruel <christian.bruel@st.com>
20869 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
20870 msw_skip comparison.
20872 2008-04-16 Jakub Jelinek <jakub@redhat.com>
20875 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
20878 PR tree-optimization/35899
20879 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
20880 rather than TREE_OPERAND.
20882 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
20885 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
20886 temporary registers. Change operand predicate to general_operand.
20887 (remainderxf3): Ditto.
20889 2008-04-16 Richard Guenther <rguenther@suse.de>
20891 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
20892 * tree-affine.c (aff_combination_expand): Look through some
20895 2008-04-15 Doug Kwan <dougkwan@google.com>
20897 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
20899 * tree-pretty-print.c (dump_generic_node): Ditto.
20900 * final.c (output_addr_const): Ditto.
20901 * dwarf2out.c (output_cfi): Ditto.
20902 * c-pretty-print.c (pp_c_integer_constant): Ditto.
20903 * print-rtl.c (print_rtx): Ditto.
20904 * print-tree.c (print_node_brief, print_node): Ditto.
20905 * c-common.c (match_case_to_enum_1): Ditto.
20906 * sched-vis.c (print_value): Ditto.
20907 * config/i386/i386.c (print_operand): Cast to long unsigned int
20910 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
20911 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
20912 MS Windows VirtualProtect function.
20914 2008-04-15 Jan Hubicka <jh@suse.cz>
20916 * gengtype.c (write_root): Param_is argument is OK.
20917 * expr.c (expand_expr_real_1): Update call of get_exception_*.
20918 * function.h: Include varray.h
20919 (rtl_eh): New stucture based on except.c one.
20920 (call_site_record): New forward declaration and vector type.
20921 * calls.c (emit_call_1): Do not call
20922 note_current_region_may_contain_throw.
20923 * except.c (eh_status): Remove cur_region, try_region since they are
20925 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
20926 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
20927 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
20928 Remove call_site_data_used, call_site_data_size.
20929 Turn call_site_record into vector in function.h.
20930 (note_current_region_may_contain_throw): Remove.
20931 (get_exception_pointer, get_exception_filter): Do not take struct
20932 function argument; update.
20933 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
20934 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
20935 build_post_landing_pads, dw2_build_landing_pads,
20936 sjlj_assign_call_site_values, sjlj_mark_call_sites,
20937 sjlj_emit_function_enter, sjlj_emit_function_enter,
20938 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
20939 sjlj_build_landing_pads, finish_eh_generation,
20940 remove_exception_handler_label, remove_eh_handler,
20941 maybe_remove_eh_handler, add_reachable_handler,
20942 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
20943 add_action_record, collect_one_action_chain, add_call_site,
20944 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
20945 sjlj_output_call_site_table, output_function_exception_table,
20946 * except.h (note_current_region_may_contain_throw): Remove
20947 (get_exception_pointer, get_exception_filter): Do not take struct
20949 * Makefile.in (GTFILES): Put varargs before struct function.
20951 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
20953 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
20954 punt for STRING_CST.
20955 (get_constraint_for): Deal with STRING_CST here instead.
20957 2008-04-15 Richard Guenther <rguenther@suse.de>
20959 * tree-ssa-propagate.c (substitute_and_fold): Substitute
20960 statements in a basic-block with a backward walk. Do not
20961 substitute into dead statements but instead remove those.
20963 2008-04-15 Richard Guenther <rguenther@suse.de>
20965 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
20966 to zero, thus disable creation of SFTs.
20968 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
20970 * tree-predcom.c (suitable_reference_p): Return false if the
20971 reference can throw.
20973 2008-04-15 Jakub Jelinek <jakub@redhat.com>
20976 * c-decl.c (finish_decl): If extern or static var has variable
20977 size, set TREE_TYPE (decl) to error_mark_node.
20979 2008-04-15 Rafael Espíndola <espindola@google.com>
20981 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
20984 2008-04-15 Richard Guenther <rguenther@suse.de>
20986 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
20987 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
20988 (visit_reference_op_load): Do walk vuse-vdef chains on
20989 vn_reference_lookup.
20990 (visit_reference_op_store): But do not here.
20991 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
20992 vn_reference_lookup.
20993 (vn_lookup_with_vuses): But do so here.
20995 2008-04-14 Ian Lance Taylor <iant@google.com>
20997 * fold-const.c (fold_overflow_warning): Remove assertion.
20999 2008-04-15 Ben Elliston <bje@au.ibm.com>
21001 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
21002 temp1 local variables.
21004 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
21007 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
21008 ".text.unlikely" section as executable.
21010 2008-04-14 James E. Wilson <wilson@tuliptree.org>
21012 * config/ia64/ia64.c (rtx_needs_barrier): Handle
21013 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
21014 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
21015 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
21016 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
21017 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
21018 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
21020 2008-04-14 Ian Lance Taylor <iant@google.com>
21022 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
21023 * fold-const.c (fold_comparison): If appropriate, test
21024 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
21025 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
21026 reassociating a pointer type.
21027 * doc/invoke.texi (Optimize Options): Document that
21028 -fstrict-overflow applies to pointer wraparound.
21030 2008-04-13 Jan Hubicka <jh@suse.cz>
21032 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
21034 2008-04-12 Andrew Pinski <pinskia@gmail.com>
21036 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
21037 we are going to "save the world".
21039 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
21041 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
21042 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
21043 operand 0 constraint, not "=".
21045 2008-04-11 James E. Wilson <wilson@tuliptree.org>
21047 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
21049 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
21051 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
21052 of size of positions_needed * CHAR_BIT.
21054 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
21056 PR middle-end/35897
21057 * dse.c (store_info): Change positions_needed to unsigned
21059 (lowpart_bitmask): New.
21060 (record_store): Cast to unsigned HOST_WIDE_INT for
21061 positions_needed. Assert width <= size of positions_needed *
21062 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
21063 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
21064 lowpart_bitmask to set mask.
21066 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
21068 * config/bfin/constraints.md: New file.
21069 * config/bfin/bfin.md: Include it.
21070 (adddi3): Use satisfies_constraint functions instead of the old macros.
21071 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
21072 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
21073 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
21074 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
21075 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
21076 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
21077 EXTRA_CONSTRAINT): Delete.
21078 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
21079 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
21081 * config/bfin/bfin.c: Include "tm-constrs.h".
21082 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
21083 Use satisfies_constraint functions instead of the old macros.
21084 * doc/md.texi (Blackfin Constraints): Update file name reference.
21086 2008-04-11 Richard Guenther <rguenther@suse.de>
21088 PR tree-optimization/35869
21089 * tree-vrp.c (execute_vrp): Move switch statement update after
21090 jump threading. Schedule another cfg cleanup run.
21092 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
21095 * attribs.c (decl_attributes): Return early on errorneous node.
21097 2008-04-10 Oleg Ryjkov <olegr@google.com>
21099 * tree.h (struct tree_base): Added a new flag default_def_flag.
21100 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
21102 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
21104 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
21106 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21109 * pa.md: Define mode iterator P. Define mode attribute dwc.
21110 (dcacheflush): Update pattern to use iterator P and attribute dwc.
21111 (icacheflush): Likewise.
21112 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
21113 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
21115 2008-04-11 Ben Elliston <bje@au.ibm.com>
21117 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
21119 2008-04-10 Rafael Espíndola <espindola@google.com>
21121 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
21122 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
21123 (extract_range_from_expr): The same.
21125 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
21127 * config/mips/mips.md (GPR2): New mode iterator.
21128 (seq): Add comment.
21129 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
21130 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
21131 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
21132 Rewrite these to take two modes, the mode of comparison and the
21133 mode of the destination.
21134 * config/mips/mips.c (mips_expand_scc): Instead of having
21135 paradoxical subreg as destination, expand "narrowing" scc if mode
21136 of comparison is SI and target is requested in DI mode.
21137 (mips_emit_int_order_test): Update comment. Make mode of
21138 comparison match CMP0 rather than TARGET. When creating inverse
21139 target use mode of TARGET.
21141 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
21143 * gcov-dump.c (tag_summary): Only print summaries for the first
21144 GCOV_COUNTERS_SUMMABLE counters.
21146 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
21148 * config/i386/i386.md (absneg): New code iterator.
21149 (absnegprefix): New code attribute.
21150 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
21151 patterns using absneg code iterator.
21152 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
21153 using absneg code iterator.
21154 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
21155 *neg<mode>2 patterns using absneg code iterator.
21156 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
21157 *negextendsfdf2 patterns using absneg code iterator.
21158 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
21159 *negextendsfxf2 patterns using absneg code iterator.
21160 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
21161 *negextendsfdf2 patterns using absneg code iterator.
21162 * config/i386/sse.md (<code><mode>2): Macroize expander from
21163 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
21165 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
21167 * config/s390/s390.h: Remove the remains of the recent search
21168 & replace action of current_function_outgoing_args_size.
21170 2008-04-10 Ira Rosen <irar@il.ibm.com>
21172 PR tree-optimization/35821
21173 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
21174 NEW_STMT_LIST is not NULL.
21176 2008-04-09 David Edelsohn <edelsohn@gnu.org>
21179 * toplev.c (process_options): Remove -ffunction-sections debugging
21182 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
21184 PR middle-end/PR28690
21185 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
21186 than gen_rtx_fmt_ee to perform more canonicalizations.
21188 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21191 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
21193 2008-04-09 Richard Guenther <rguenther@suse.de>
21195 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
21196 (dump_function_to_file): Dump function arguments with types.
21198 2008-04-08 Richard Guenther <rguenther@suse.de>
21200 * fold-const.c (fold_widened_comparison): Do not allow
21201 sign-changes that change the result.
21203 2008-04-08 Janis Johnson <janis187@us.ibm.com>
21206 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
21207 kinds of indirect references.
21209 2008-04-08 David Edelsohn <edelsohn@gnu.org>
21211 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
21212 GNU Fortran language string.
21214 2008-04-08 Rafael Espíndola <espindola@google.com>
21216 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
21217 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
21218 * tree.h (tree_call_nonnegative_warnv_p): New.
21220 2008-04-08 Jan Hubicka <jh@suse.cz>
21222 * function.c (free_after_compilation): Clear out regno_reg_rtx
21225 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
21228 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
21230 PR middle-end/PR28690
21231 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
21232 same precedence as REG_POINTER and MEM_POINTER operands.
21234 2008-04-08 Richard Guenther <rguenther@suse.de>
21236 PR middle-end/35834
21237 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
21238 for adding index to base.
21240 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
21242 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
21243 (MINGW_ENABLE_EXECUTE_STACK): New.
21244 (IN_LIBGCC2): For libgcc include windows.h file for
21245 function declarations.
21247 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
21249 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
21250 and tem2 if tem1 is not a REG or MULT.
21252 2008-04-08 Jan Hubicka <jh@suse.cz>
21254 * function.h (incomming_args): Break out of struct function.
21255 (function_subsections): Break out of struct function.
21256 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
21257 return_rtx and hard_reg_initial_vals from struct function.
21258 Kill inl_max_label_num.
21259 (current_function_pops_args, current_function_args_info,
21260 current_function_args_size, current_function_args_size,
21261 current_function_pretend_args_size,
21262 current_function_outgoing_args_size,
21263 current_function_internal_arg_pointer, current_function_return_rtx):
21264 Kill compatibility accestor macros.
21265 * builtins.c (expand_builtin_apply_args_1): Update.
21266 (expand_builtin_next_arg): Update.
21267 * df-scan.c (df_get_call_refs): Update.
21268 * dbxout.c (dbxout_function_end): Update.
21269 * dwarf2out.c (dwarf2out_switch_text_section): Update.
21270 (output_line_info): Update.
21271 (secname_for_decl): Update.
21272 (dwarf2out_var_location): Update.
21273 * function.c (free_after_compilation): Update.
21274 (assign_parm_find_stack_rtl): Update.
21275 (assign_parms): Update.
21276 (expand_dummy_function_end): Update.
21277 (expand_function_end): Update.
21278 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
21279 (expand_call): Update.
21280 (emit_library_call_value_1): Update.
21281 (store_one_arg): Update.
21282 * varasm.c (initialize_cold_section_name): Update.
21283 (unlikely_text_section): Update.
21284 (unlikely_text_section_p): Update.
21285 (assemble_start_function): Update.
21286 (assemble_end_function): Update.
21287 (default_section_type_flags): Update.
21288 (switch_to_section): Update.
21289 * integrate.c (set_decl_abstract_flags): Update.
21290 (get_hard_reg_initial_val): Update.
21291 (has_hard_reg_initial_val): Update.
21292 (allocate_initial_values): Update.
21293 * resource.c (init_resource_info): Update.
21294 * config/alpha/alpha.c (NUM_ARGS): Update.
21295 (direct_return): Update.
21296 (alpha_va_start): Update.
21297 (alpha_sa_size): Update.
21298 (alpha_initial_elimination_offset): Update.
21299 (alpha_expand_prologue): Update.
21300 (alpha_start_function): Update.
21301 (alpha_expand_epilogue): Update.
21302 (unicosmk_initial_elimination_offset):
21303 * config/alpha/alpha.md (call expander): Update.
21304 * config/s390/s390.c (s390_register_info): Update.
21305 (s390_register_info): Update.
21306 (s390_frame_info): Update.
21307 (s390_initial_elimination_offset): Update.
21308 (s390_build_builtin_va_list): Update.
21309 (s390_va_start): Update.
21310 * config/spu/spu.c (direct_return): Update.
21311 (spu_expand_prologue): Update.
21312 (spu_initial_elimination_offset): Update.
21313 (spu_build_builtin_va_list): Update.
21314 (spu_va_start): Update.
21315 * config/sparc/sparc.c (sparc_init_modes): Update.
21316 (sparc_compute_frame_size): Update.
21317 (function_value): Update.
21318 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
21319 * config/i386/i386.md (return expander): Update.
21320 * config/i386/i386.c (ix86_va_start): Update.
21321 (ix86_can_use_return_insn_p): Update.
21322 (ix86_compute_frame_layout): Update.
21323 (ix86_expand_epilogue): Update.
21324 * config/sh/sh.c (output_stack_adjust): Update.
21325 (calc_live_regs): Update.
21326 (sh_expand_prologue): Update.
21327 (sh_builtin_saveregs): Update.
21328 (sh_va_start): Update.
21329 (initial_elimination_offset): Update.
21330 (sh_allocate_initial_value): Update.
21331 (sh_function_ok_for_sibcall): Update.
21332 (sh_get_pr_initial_val): Update.
21333 * config/sh/sh.md (return expander): Update.
21334 * config/avr/avr.c (frame_pointer_required_p): UPdate.
21335 * config/crx/crx.c (crx_compute_frame): UPdate.
21336 (crx_initial_elimination_offset): UPdate.
21337 * config/xtensa/xtensa.c (compute_frame_size): Update
21338 (xtensa_builtin_saveregs): Update.
21339 (xtensa_va_start): Update.
21340 (order_regs_for_local_alloc): Update.
21341 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
21342 (xstormy16_expand_builtin_va_start): Update.
21343 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
21344 * config/m68hc11/m68hc11.md (return expanders): Update.
21345 * config/m68hc11/m68hc11.c (expand_prologue): Update.
21346 (expand_epilogue): Update.
21347 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
21348 (cris_simple_epilogue): Update.
21349 (cris_expand_prologue): Update.
21350 (cris_expand_epilogue): Update.
21351 * config/iq2000/iq2000.c (iq2000_va_start): Update.
21352 (compute_frame_size): Update.
21353 * config/mt/mt.c (mt_compute_frame_size): Update.
21354 * config/mn10300/mn10300.c (expand_prologue): Update.
21355 (expand_epilogue): Update.
21356 (initial_offset): Update.
21357 (mn10300_builtin_saveregs):
21358 * config/mn10300/mn10300.md (return expander): Update.
21359 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
21360 (ia64_initial_elimination_offset): Update.
21361 (ia64_initial_elimination_offset): Update.
21362 (ia64_expand_prologue): Update.
21363 * config/m68k/m68k.md (return expander): Update.
21364 * config/rs6000/rs6000.c (rs6000_va_start): Update.
21365 (rs6000_stack_info): Update.
21366 * config/mcore/mcore.c (layout_mcore_frame): Update.
21367 (mcore_expand_prolog): Update.
21368 * config/arc/arc.c (arc_compute_frame_size): Update.
21369 * config/score/score3.c (score3_compute_frame_size): Update.
21370 * config/score/score7.c (score7_compute_frame_size): Update.
21371 * config/arm/arm.c (use_return_insn): Update.
21372 (thumb_find_work_register): Update.
21373 (arm_compute_save_reg_mask): Update.
21374 (arm_output_function_prologue): Update.
21375 (arm_output_epilogue): Update.
21376 (arm_size_return_regs): Update.
21377 (arm_get_frame_offsets): Update.
21378 (arm_expand_prologue): Update.
21379 (thumb_exit): Update.
21380 (thumb_unexpanded_epilogue): Update.
21381 (thumb1_output_function_prologue): Update.
21382 * config/pa/pa.md (return expander): Update.
21383 * config/pa/pa.c (compute_frame_size): Update.
21384 (hppa_builtin_saveregs): Update.
21385 * config/mips/mips.c (mips_va_start): Update.
21386 (mips16_build_function_stub): Update.
21387 (mips_compute_frame_info): Update.
21388 (mips_restore_gp): Update.
21389 (mips_output_function_prologue): Update.
21390 (mips_expand_prologue): Update.
21391 * config/v850/v850.c (compute_frame_size): Update.
21392 (expand_prologue): * config/mmix/mmix.c (along): update.
21393 (mmix_initial_elimination_offset): update.
21394 (mmix_reorg): update.
21395 (mmix_use_simple_return): update.
21396 (mmix_expand_prologue): update.
21397 (mmix_expand_epilogue): Update.
21398 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
21399 (emit_link_insn): Update.
21401 2008-04-08 Anatoly Sokolov <aesok@post.ru>
21403 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
21404 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
21406 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
21409 2008-04-07 Jan Hubicka <jh@suse.cz>
21411 * function.h (rtl): Rename to x_rtl.
21412 (crtl): New define.
21413 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
21414 frame_offset, stack_check_probe_note, arg_pointer_save_area,
21415 used_temp_slots avail_temp_slots, temp_slot_level,
21416 nonlocal_goto_handler_labels): Update accesstors.
21417 (rtl): New global variable.
21418 (struct function): Move some fileds to rtl_data.
21419 (get_arg_pointer_save_area): Update prototype.
21420 * builtins.c (expand_builtin_setjmp_receiver): Update call of
21421 get_arg_pointer_save_area.
21422 * expr.c (init_expr): Update
21423 * function.c (get_frame_size): Update
21424 (assign_stack_local): Update
21425 (expand_function_end): Update.
21426 (get_art_pointer_save_area): Update
21428 * emit-rtl.c (rtl): Declare.
21429 (regno_reg_rtx): Declare.
21430 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
21432 (gen_reg_rtx): Update.
21433 * varasm.c (n_deferred_constatns): Update accestor.
21434 (init_varasm_status): Do not allocate varasm_status.
21435 (force_const_mem, get_pool_size, output_constant_pool): Update.
21436 * stmt.c (force_label_rtx): Do not use x_ prefixes.
21437 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
21438 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
21439 * sparc/sparc.h (INIT_EXPANDERS): Update.
21440 * ia64/ia64.h (INIT_EXPANDERS): Update.
21442 2008-04-07 James E. Wilson <wilson@tuliptree.org>
21444 * reload.c (push_secondary_reload): Add missing break to for loop.
21446 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
21448 PR middle-end/PR28690
21449 * rtlanal.c: Update copyright years.
21450 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
21451 as REG_POINTER and MEM_POINTER operands.
21452 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
21453 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
21454 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
21455 * gcse.c: Update copyright years.
21456 (pre_delete): Call gen_reg_rtx_and_attrs.
21457 (hoist_code): Likewise.
21458 (build_store_vectors): Likewise.
21459 (delete_store): Likewise.
21460 * loop-invariant.c (move_invariant_reg): Likewise.
21461 Update copyright years.
21463 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
21465 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
21466 control string instead of quoted.
21468 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
21470 * doc/rtl.texi: Rewrite of subreg section.
21472 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
21475 * config/i386/i386.c (legitimize_pic_address): Add treating
21476 of dllimport SYM_REF's.
21477 (legitimize_dllimport_symbol): Add prototype.
21479 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
21481 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
21482 reference in constructor with non self-referential type.
21484 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
21486 Removal of Return with Depressed Stack Pointer support
21487 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
21488 (ECF_SP_DEPRESSED): Likewise.
21489 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
21490 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
21491 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
21492 (expand_call): Do not test ECF_SP_DEPRESSED.
21493 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
21494 * function.c (keep_stack_depressed): Delete.
21495 (handle_epilogue_set): Likewise.
21496 (update_epilogue_consts): Likewise.
21497 (emit_equiv_load): Likewise.
21498 (thread_prologue_and_epilogue_insns): Remove support for Return with
21499 Depressed Stack Pointer.
21500 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
21502 2008-04-06 Richard Guenther <rguenther@suse.de>
21504 PR tree-optimization/35400
21505 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
21506 information from SSA_NAMEs.
21508 2008-04-06 Anatoly Sokolov <aesok@post.ru>
21510 * config/avr/avr.h (avr_mega_p): Remove declaration.
21511 (AVR_MEGA): Remove macro.
21512 * config/avr/avr.c (avr_mega_p): Remove variable.
21513 (avr_override_options): Remove inicializion of avr_mega_p.
21514 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
21515 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
21516 (avr_jump_mode): (Ditto.).
21517 (avr_output_progmem_section_asm_op): (Ditto.).
21518 (avr_asm_init_sections): (Ditto.).
21519 (avr_asm_init_sections): (Ditto.).
21520 (avr_rtx_costs): (Ditto.).
21521 * config/avr/avr.md: (Ditto.).
21522 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
21525 2008-04-06 Richard Guenther <rguenther@suse.de>
21527 PR tree-optimization/35842
21528 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
21529 is_gimple_invariant_address.
21531 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
21533 * gcc.c (default_compilers): Sync Fortran extensions list with
21534 that in fortran/lang-specs.h.
21535 * doc/invoke.texi: Likewise.
21536 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
21537 * dwarf2out.c (gen_compile_unit_die): Likewise.
21539 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
21541 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
21543 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
21546 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
21547 attribute is used for nested functions.
21549 2008-04-05 Jan Hubicka <jh@suse.cz>
21551 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
21553 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
21555 (dump_files): Update.
21556 (enable_rtl_dump_file): Do not accept letter argument.
21557 * tree-pass.h (dump_file_info): Remove letter argument.
21558 * toplev.c (decode_d_option): Update -da handling.
21559 * toplev.h (enable_rtl_dump_file): Update prototype.
21560 * passes.c (register_one_dump_file): Do not accept IPA argument; work
21561 it out based on pass type.
21562 (register_dump_files_1): Likewise.
21563 (init_optimization_passes): Update register_one_dump_file calls.
21564 (execute_one_pass): Sanity check that IPA passes are called at IPA
21565 level and RTL passes at RTL level.
21566 (execute_pass_list): IPA pass can not be after or subpass of
21568 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
21569 disallov RTL subpasses of IPA subpasses.
21571 2008-04-05 Ben Elliston <bje@au.ibm.com>
21573 * tree-cfg.c (need_fake_edge_p): Return false for calls to
21574 builtins that return exactly once and do not throw. Cache call to
21577 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
21579 PR rtl-optimization/34916
21580 PR middle-end/35519
21581 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
21582 between instruction pairs.
21584 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
21586 * doc/invoke.texi: Document -mbitops for SH.
21587 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
21588 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
21589 * config/sh/sh.c (print_operand): Add %t operand code.
21590 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
21591 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
21592 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
21593 (extendqihi2): Likewise.
21594 (movqi_i): Likewise.
21595 (insv): Use bset, bclr and bst instructions for SH2A if possible.
21596 (extv): Use bld instruction for SH2A if possible.
21598 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
21599 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
21600 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
21601 (bset.b, bclr.b): Define peepholes.
21602 * config/sh/sh.opt (mbitops): New option.
21604 2008-04-04 Janis Johnson <janis187@us.ibm.com>
21607 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
21608 and view convert expression.
21610 2008-04-04 Jakub Jelinek <jakub@redhat.com>
21613 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
21615 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
21617 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
21619 * config/i386/cpuid.h (bit_AES): New.
21620 (bit_PCLMUL): Likewise.
21622 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
21623 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
21624 SSE2 if AES or PCLMUL is enabled.
21625 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
21626 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
21627 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
21628 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
21629 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
21630 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
21631 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
21632 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
21633 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
21634 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
21635 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
21636 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
21637 __builtin_ia32_aeskeygenassist128 and
21638 __builtin_ia32_pclmulqdq128.
21639 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
21640 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
21641 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
21643 * config/i386/i386.h (TARGET_AES): New.
21644 (TARGET_PCLMUL): Likewise.
21645 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
21647 * config/i386/i386.md (UNSPEC_AESENC): New.
21648 (UNSPEC_AESENCLAST): Likewise.
21649 (UNSPEC_AESDEC): Likewise.
21650 (UNSPEC_AESDECLAST): Likewise.
21651 (UNSPEC_AESIMC): Likewise.
21652 (UNSPEC_AESKEYGENASSIST): Likewise.
21653 (UNSPEC_PCLMUL): Likewise.
21655 * config/i386/i386.opt (maes): New.
21656 (mpclmul): Likewise.
21658 * config/i386/sse.md (aesenc): New pattern.
21659 (aesenclast): Likewise.
21660 (aesdec): Likewise.
21661 (aesdeclast): Likewise.
21662 (aesimc): Likewise.
21663 (aeskeygenassist): Likewise.
21664 (pclmulqdq): Likewise.
21666 * config/i386/wmmintrin.h: New.
21668 * doc/extend.texi: Document AES and PCLMUL built-in function.
21670 * doc/invoke.texi: Document -maes and -mpclmul.
21672 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
21674 * function.c (free_after_parsing): Replace with
21675 cxx_push_function_context from C++ front-end.
21676 (allocate_struct_function): Don't call langhook.
21677 * langhooks.h (struct lang_hooks_for_functions): Delete.
21678 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
21680 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
21681 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
21682 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
21683 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
21684 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
21685 remove LANG_HOOKS_FUNCTION_INITIALIZER.
21686 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
21688 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
21689 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
21691 2008-04-04 Jakub Jelinek <jakub@redhat.com>
21694 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
21697 2008-04-04 Richard Guenther <rguenther@suse.de>
21699 PR middle-end/35823
21700 * fold-const.c (optimize_minmax_comparison): Use the correct
21701 type for the constant in the simplified comparison.
21703 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
21705 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
21706 Pass L2 size as "--param l2-cache-size" to the compiler.
21707 (decode_l2_cache): New function to decode L2 cache parameters using
21708 0x8000006 extended cpuid function.
21709 (detect_caches_amd): Determine parameters of L2 cache using
21710 decode_l2_caches function.
21711 (decode_caches_intel): Decode L2 cache parameters.
21712 (detect_caches_intel): Determine L2 cache parameters using
21713 decode_caches_intel and decode_l2_caches functions.
21715 2008-04-03 Bob Wilson <bob.wilson@acm.org>
21717 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
21718 secondary input reload for subword loads from the constant pool.
21720 2008-04-03 Janis Johnson <janis187@us.ibm.com>
21723 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
21724 constants of the appropriate size for runtime calculations.
21727 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
21728 decimal-float literal constant zero.
21730 2008-04-03 Jakub Jelinek <jakub@redhat.com>
21733 * c-parser.c (c_parser_omp_atomic): Call
21734 default_function_array_conversion on the RHS.
21736 PR middle-end/35818
21737 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
21738 call is_variable_sized if decl has incomplete type.
21740 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
21742 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
21744 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
21746 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
21748 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
21749 (sgt<u>): Merge sgt and sgtu into new expander.
21750 (sgt, sgtu): Remove expanders.
21751 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
21752 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
21753 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
21754 *sgtu_<mode>_mips16 into new pattern.
21755 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
21756 (sge<u>): Merge sge and sgeu into new expander.
21757 (sge, sgeu): Remove expanders.
21758 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
21760 (*sge_<mode>, second *sge_<mode>): Remove patterns.
21761 (slt<u>): Merge slt and sltu into new expander.
21762 (slt, sltu): Remove expanders.
21763 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
21764 (*slt_<mode>, *sltu_<mode>): Remove patterns.
21765 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
21766 *sltu_<mode>_mips16 into new pattern.
21767 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
21768 (sle<u>): Merge sle and sleu into new expander.
21769 (sle, sleu): Remove expanders.
21770 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
21771 (*sle_<mode>, *sleu_<mode>): Remove patterns.
21772 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
21773 *sleu_<mode>_mips16 into new pattern.
21774 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
21776 2008-04-03 Jan Hubicka <jh@suse.cz>
21778 PR tree-optimization/35795
21779 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
21780 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
21781 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
21782 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
21783 * score/score3.c (score3_output_mi_thunk): Likewise.
21784 * score/score7.c (score7_output_mi_thunk): Likewise.
21785 * mips/mips.c (mips_output_mi_thunk): Likewise.
21787 2008-04-03 Richard Guenther <rguenther@suse.de>
21789 * tree-vrp.c (extract_range_from_unary_expr): Handle all
21790 conversions. Simplify code.
21792 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
21794 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
21796 2008-04-03 Tom Tromey <tromey@redhat.com>
21797 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21799 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
21800 * config/bfin/t-bfin-linux (generated_files): Add
21801 linux-sysroot-suffix.h.
21802 * doc/install.texi (Prerequisites): Require make 3.80.
21803 * doc/sourcebuild.texi (Front End Directory): Document new
21805 * Makefile.in (generated_files): New variable.
21806 (ALL_HOST_OBJS): New variable.
21807 ($(ALL_HOST_OBJS)): New target.
21809 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
21811 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
21812 (remap_block): Call id->transform_lang_insert_block instead
21814 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
21815 Set id.transform_lang_insert_block to NULL.
21816 (clone_body): Move to cp/optimize.c
21817 * tree-inline.h (struct copy_body_data): Change
21818 transform_lang_insert_block to function pointer.
21819 (copy_generic_body, copy_decl_no_change): Export.
21820 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
21821 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
21822 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
21824 * c-tree.h (insert_block): Kill.
21825 * c-decl.c (insert_block): Kill.
21827 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
21829 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
21830 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
21831 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
21833 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
21834 argument, call {push,pop}_function_context from here.
21835 * c-parser.c: Use c_{push,pop}_function_context.
21837 * function.c (push_function_context_to): Move meat ...
21838 (push_function_context): ... here. Simplify.
21839 * function.c (pop_function_context_from): Move meat ...
21840 (pop_function_context): ... here. Simplify.
21841 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
21843 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
21844 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
21845 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
21846 * tree.h (push_function_context_to, pop_function_context_from): Remove.
21848 2008-04-03 Ben Elliston <bje@au.ibm.com>
21850 * expmed.c (extract_force_align_mem_bit_field): Remove.
21852 2008-04-03 Richard Guenther <rguenther@suse.de>
21854 PR middle-end/35800
21855 * expr.h (try_casesi): Adjust prototype.
21856 * expr.c (try_casesi): Take fallback label as extra parameter.
21857 Use that for gen_casesi if default_label is NULL.
21858 * stmt.c (expand_case): Pass fallback label to try_casesi,
21859 make sure to fill gaps with a fallback label if default_label
21862 2008-04-03 Dominique d'Humières <dominiq@lps.ens.fr>
21865 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
21867 2008-04-03 Ben Elliston <bje@au.ibm.com>
21869 * expmed.c (extract_split_bit_field): Remove if (0) code.
21870 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
21871 (do_ds_constraint): Likewise.
21873 2008-04-02 Joseph Myers <joseph@codesourcery.com>
21875 * doc/cppopts.texi (-dU): Document.
21876 * c-common.h (flag_dump_macros): Update comment.
21877 * c-opts.c (handle_OPT_d): Handle -dU.
21878 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
21879 dump_queued_macros, cb_used_define, cb_used_undef): New.
21880 (init_pp_output): Handle -dU.
21881 (cb_line_change): Call dump_queued_macros.
21882 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
21884 2008-04-02 Anatoly Sokolov <aesok@post.ru>
21886 * config/avr/predicates.md (io_address_operand): New predicate.
21887 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
21888 * config/avr/avr.c (avr_io_address_p): Remove function.
21889 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
21890 'avr_io_address_p' function.
21891 (out_movhi_r_mr): (Ditto.).
21892 (out_movqi_mr_r): (Ditto.).
21893 (out_movhi_mr_r): (Ditto.).
21894 (avr_address_cost): (Ditto.).
21896 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
21898 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
21899 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
21900 in 32bit mode when XMM registers are available to avoid store
21902 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
21903 corresponding post-reload splitters.
21905 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
21907 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
21908 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
21909 __builtin_ia32_roundss.
21910 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
21911 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
21912 __builtin_ia32_roundss.
21913 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
21914 IX86_BUILTIN_SHUFPD here.
21916 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
21918 * config/i386/i386.md (plogic): New.
21919 (plogicprefix): Likewise.
21921 * config/i386/mmx.md (mmx_<code><mode>3): New.
21922 (mmx_and<mode>3): Removed.
21923 (mmx_ior<mode>3): Likewise.
21924 (mmx_xor<mode>3): Likewise.
21926 * config/i386/sse.md (<code><mode>3): New.
21927 (*<code><mode>3): Likewise.
21928 (*<code><mode>3): Likewise.
21929 (<code><mode>3): Likewise.
21930 (*sse_<code><mode>3): Likewise.
21931 (*sse2_<code><mode>3): Likewise.
21932 (<code>tf3): Likewise.
21933 (*<code>tf3): Likewise.
21934 (and<mode>3): Likewise.
21935 (*and<mode>3): Likewise.
21936 (ior<mode>3): Removed.
21937 (*ior<mode>3): Likewise.
21938 (xor<mode>3): Likewise.
21939 (*xor<mode>3): Likewise.
21940 (*and<mode>3): Likewise.
21941 (*ior<mode>3): Likewise.
21942 (*xor<mode>3): Likewise.
21943 (and<mode>3): Likewise.
21944 (*sse_and<mode>3): Likewise.
21945 (*sse2_and<mode>3): Likewise.
21946 (andtf3): Likewise.
21947 (*andtf3): Likewise.
21948 (ior<mode>3): Likewise.
21949 (*sse_ior<mode>3): Likewise.
21950 (*sse2_ior<mode>3): Likewise.
21951 (iortf3): Likewise.
21952 (*iortf3): Likewise.
21953 (xor<mode>3): Likewise.
21954 (*sse_xor<mode>3): Likewise.
21955 (*sse2_xor<mode>3): Likewise.
21956 (xortf3): Likewise.
21957 (*xortf3): Likewise.
21959 2008-04-02 Richard Guenther <rguenther@suse.de>
21961 PR tree-optimization/14495
21962 PR tree-optimization/34793
21963 * tree-vrp.c (struct switch_update): New structure.
21964 (to_remove_edges, to_update_switch_stmts): New VECs.
21965 (simplify_switch_using_ranges): New function. Remove not taken
21966 case labels and edges.
21967 (simplify_stmt_using_ranges): Call it.
21968 (identify_jump_threads): Mark edges we have queued for removal
21969 so we don't thread them.
21970 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
21972 * tree-cfg.c (group_case_labels): Deal with missing default label.
21973 (tree_verify_flow_info): Allow missing default label.
21974 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
21975 (emit_case_nodes): Likewise.
21976 (expand_case): Do not rely on the default label to be present.
21977 * expr.c (try_casesi): Deal with NULL default_label.
21978 (do_tablejump): Likewise.
21980 2008-04-02 Richard Guenther <rguenther@suse.de>
21982 PR tree-optimization/14495
21983 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
21984 SWITCH_EXPR here ...
21985 (vrp_visit_switch_stmt): ... but here (new function).
21986 (find_case_label_index): New helper function.
21987 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
21989 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
21991 * fwprop.c: Fix ISO-C99ism.
21993 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
21996 * Makefile.in (objdir): Set it here.
21997 * configure.ac: Not here. Find dynamic linker characteristics.
21998 * exec-tool.in: Use them.
21999 * aclocal.m4: Regenerate.
22000 * configure: Regenerate.
22002 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
22004 * expr.c (expand_var): Delete it.
22005 * expr.h (expand_var): Delete prototype.
22006 * function.c (expand_function_start): Use expand_decl instead.
22007 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
22010 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
22012 PR rtl-optimization/35542
22013 * fwprop.c (forward_propagate_and_simplify): Replace
22014 loc_reg_mentioned_in_p with reg_mentioned_p.
22016 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
22018 PR rtl-optimization/35281
22019 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
22020 (propagate_rtx_1): Handle PR_HANDLE_MEM.
22021 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
22022 (varying_mem_p): Move above propagate_rtx.
22023 (all_uses_available_at): Do not check MEMs.
22025 2008-04-02 Rafael Espíndola <espindola@google.com>
22027 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
22028 (register_edge_assert_for_2): Split the cond argument.
22029 (register_edge_assert_for_1): Adjust for the change in
22030 register_edge_assert_for_2.
22031 (register_edge_assert_for): Split the cond argument.
22032 (find_switch_asserts): Adjust for the change in
22033 register_edge_assert_for.
22035 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
22037 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
22038 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
22039 offsets for 64-bit mingw.
22040 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
22041 abi for x86_64-pc-mingw.
22043 2008-04-02 Richard Guenther <rguenther@suse.de>
22045 * tree-vrp.c (extract_range_from_assert): Make sure to not
22046 produce range min/max with TREE_OVERFOW set.
22047 If merging a anti-range and a range keep the anti-range if
22048 the range covers all values of the type.
22049 (register_edge_assert_for_2): Only allow sign-changing
22050 conversions in detecting canonical range checks. Also
22051 register an assert for the unsigned name if useful.
22053 PR tree-optimization/35787
22054 * tree-vrp.c (vrp_val_max): New function.
22055 (vrp_val_min): Likewise.
22056 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
22057 (vrp_val_is_min): Likewise.
22058 (supports_overflow_infinity): Use vrp_val_{min,max}.
22059 (negative_overflow_infinity): Likewise.
22060 (positive_overflow_infinity): Likewise.
22061 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
22062 (is_positive_overflow_infinity): Likewise.
22063 (is_overflow_infinity): Likewise.
22064 (avoid_overflow_infinity): Use vrp_val_{min,max} and
22065 vrp_val_is_{min,max}.
22066 (set_and_canonicalize_value_range): Canonicalize anti-ranges
22067 to ranges if possible. Avoid empty ranges.
22069 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22071 PR middle-end/35705
22072 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
22073 the expression is a function address.
22075 2008-04-01 George Helffrich <george@gcc.gnu.org>
22077 PR fortran/35154, fortran/23057
22078 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
22079 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
22080 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
22081 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
22083 (dbxout_syms): Check for COMMON-based symbol and wrap in
22084 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
22085 in bracket for efficiency.
22087 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
22088 using DW_TAG_common_block + member offset.
22089 (add_pubname_string): New function.
22090 (dw_expand_expr): New function to find block name and offset for
22092 (common_check): New function to check whether symbol in Fortran COMMON.
22093 (gen_variable_die): If COMMON, use DW_TAG_common_block.
22095 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
22098 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
22100 2008-04-02 Ben Elliston <bje@au.ibm.com>
22102 * config/v850/v850.md (casesi): Remove if (0) code.
22103 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
22104 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
22106 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
22108 * config/i386/i386.md (rex64suffix): New mode attribute.
22109 (floathi<mode>2): Disable expander for SSE math.
22110 (*floathi<mode>2_1): New insn insn_and_split pattern.
22111 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
22112 corresponding post-reload splitters.
22113 (*floathi<mode>2_i387): New macroized insn pattern.
22114 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
22115 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
22116 insn_and_split pattern.
22117 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
22118 New macroized instruction patterns and corresponding post-reload
22120 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
22121 and corresponding post-reload splitters.
22122 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
22123 New macroized instruction patterns.
22124 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
22125 macroized instruction patterns and corresponding post-reload splitters.
22126 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
22127 corresponding post-reload splitters.
22128 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
22129 New macroized instruction patterns.
22130 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
22131 corresponding post-reload splitters.
22132 (*floatsi<mode>2_i387): New macroized instruction patterns.
22134 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
22136 * config/i386/i386.md (smaxmin): New.
22137 (umaxmin): Likewise.
22138 (maxminiprefix): Likewise.
22139 (maxminfprefix): Likewise.
22140 (<code><mode>3): Likewise.
22141 (smin<mode>3): Removed.
22142 (smax<mode>3): Likewise.
22144 * config/i386/mmx.md (mmx_<code>v2sf3): New.
22145 (mmx_<code>v4hi3): Likewise.
22146 (mmx_<code>v8qi3): Likewise.
22147 (mmx_smaxv2sf3): Removed.
22148 (mmx_sminv2sf3): Likewise.
22149 (mmx_umaxv8qi3): Likewise.
22150 (mmx_smaxv4hi3): Likewise.
22151 (mmx_uminv8qi3): Likewise.
22152 (mmx_sminv4hi3): Likewise.
22154 * config/i386/sse.md (<addsub><mode>3): New.
22155 (*<addsub><mode>3): Likewise.
22156 (<sse>_vm<addsub><mode>3): Likewise.
22157 (<maxmin><mode>3): Likewise.
22158 (*<maxmin><mode>3_finite): Likewise.
22159 (*<maxmin><mode>3): Likewise.
22160 (<sse>_vm<maxmin><mode>3): Likewise.
22161 (sse3_h<addsub>v4sf3): Likewise.
22162 (sse3_h<addsub>v2df3): Likewise.
22163 (<maxmin>v16qi3): Likewise.
22164 (*<maxmin>v16qi3): Likewise.
22165 (<maxmin>v8hi3): Likewise.
22166 (*<maxmin>v8hi3): Likewise.
22167 (*sse4_1_<maxmin><mode>3): Likewise.
22168 (*sse4_1_<maxmin><mode>3): Likewise.
22169 (add<mode>3): Removed.
22170 (*add<mode>3): Likewise.
22171 (<sse>_vmadd<mode>3): Likewise.
22172 (sub<mode>3): Likewise.
22173 (*sub<mode>3): Likewise.
22174 (<sse>_vmsub<mode>3): Likewise.
22175 (smin<mode>3): Likewise.
22176 (*smin<mode>3_finite): Likewise.
22177 (*smin<mode>3): Likewise.
22178 (<sse>_vmsmin<mode>3): Likewise.
22179 (smax<mode>3): Likewise.
22180 (*smax<mode>3_finite): Likewise.
22181 (*smax<mode>3): Likewise.
22182 (<sse>_vmsmax<mode>3): Likewise.
22183 (sse3_haddv4sf3): Likewise.
22184 (sse3_haddv2df3): Likewise.
22185 (sse3_hsubv4sf3): Likewise.
22186 (sse3_hsubv2df3): Likewise.
22187 (umaxv16qi3): Likewise.
22188 (*umaxv16qi3): Likewise.
22189 (smaxv8hi3): Likewise.
22190 (*smaxv8hi3): Likewise.
22191 (*sse4_1_smax<mode>3): Likewise.
22192 (*sse4_1_umax<mode>3): Likewise.
22193 (uminv16qi3): Likewise.
22194 (*uminv16qi3): Likewise.
22195 (sminv8hi3): Likewise.
22196 (*sminv8hi3): Likewise.
22197 (*sse4_1_smin<mode>3): Likewise.
22198 (*sse4_1_umin<mode>3): Likewise.
22200 2008-04-01 Rafael Espíndola <espindola@google.com>
22202 * tree-cfg.c (verify_expr): remove in_phi.
22203 (verify_stmt): Don't call walk_tree with verify_expr. Use
22204 is_gimple_min_invariant instead of is_gimple_val.
22206 2008-04-01 Joseph Myers <joseph@codesourcery.com>
22208 * doc/include/gpl_v3.texi: Update for manpage generation.
22209 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
22211 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
22212 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
22213 gpl_v3.texi instead of gpl.texi.
22216 2008-04-01 Jakub Jelinek <jakub@redhat.com>
22219 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
22221 2008-04-01 Rafael Espíndola <espindola@google.com>
22223 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
22224 (extract_code_and_val_from_cond): Use
22225 extract_code_and_val_from_cond_with_ops.
22227 2008-04-01 Jan Hubicka <jh@suse.cz>
22229 * function.c (free_after_compilation): Free epilogue_delay_list.
22230 (prepare_function_start): Assert that previous compilation was freed.
22232 2008-04-01 Jan Hubicka <jh@suse.cz>
22233 Jim Wilson <wilson@tuliptree.org>
22234 Andreas Tobler <andreast@gcc.gnu.org>
22236 PR middle-end/35781
22237 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
22238 rtl.emit instead cfun->emit.
22239 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
22240 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
22242 2008-04-01 Ben Elliston <bje@au.ibm.com>
22244 * doc/c-tree.texi (Function Basics): Fix grammatical error.
22246 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
22248 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
22250 (fprofile-use): Add var flag_profile_use
22251 * coverage.c (coverage_begin_output): Do not open a gcno file for
22252 output only if -ftest-coverage is set.
22253 Do not add getpwd() to gcda file path.
22254 (build_gcov_info): Check the new flag
22255 flag_profile_datafile_relative_path.
22256 (coverage_init): Use profile_data_prefix.
22257 Read profile counter only if flag_profile_use is set.
22258 * opts.c (common_handle_option): New option fprofile-use=,
22259 fprofile-dir=, fprofile-generate=.
22260 * toplev.c (profile_data_prefix): New variable definition.
22261 * toplev.h (profile_data_prefix): New declaration.
22262 * doc/invoke.tex (Option Summary, Optimization Options):
22265 2008-03-31 James E. Wilson <wilson@tuliptree.org>
22267 * varasm.c (output_constant_pool_1): In LABEL_REF check,
22268 use tmp consistently.
22271 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
22272 * config/ia64/ia64.c (rtx_needs_barrier): Handle
22273 UNSPEC_FR_RECIP_APPROX_RES.
22274 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
22276 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
22279 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
22281 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
22283 PR middle-end/30186
22284 * fold-const.c (fold_indirect_ref_1): Support accessing non first
22285 element of the vector via a pointer.
22287 2008-03-31 Ian Lance Taylor <iant@google.com>
22289 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
22291 2008-03-31 Jan Hubicka <jh@suse.cz>
22293 * builtins.c (expand_builtin_setjmp_receiver): Update call of
22294 get_arg_pointer_save_area.
22295 * expr.c (init_expr): Just clear out rtl.expr.
22296 * function.c (free_after_compilation): Clear out whole RTL structure.
22297 (get_func_frame_size): Merge into ...
22298 (get_frame_size): ... this one.
22299 (assign_stack_local_1): Merge into ...
22300 (assign_stack_local): ... this one.
22301 (expand_function_end): Update call of get_arg_pointer_save_area.
22302 (get_art_pointer_save_area): Remove cfun argument.
22303 * function.h (emit_status): regno_pointer_align does not need length
22304 attribute. Move x_regno_reg_rtx to ...
22305 (regno_reg_rtx): ... new global array.
22306 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
22307 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
22308 apply_args_value, forced_labels, stack_pointer_delta):
22310 (struct varasm_status): Move here from varasm.c
22311 (struct rtl_data): New. Move here some fields from struct function.
22312 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
22313 frame_offset, stack_check_probe_note, arg_pointer_save_area,
22314 used_temp_slots avail_temp_slots, temp_slot_level,
22315 nonlocal_goto_handler_labels): Update accesstors.
22316 (rtl): New global variable.
22317 (struct function): Move some fileds to rtl_data.
22318 (get_arg_pointer_save_area): Update prototype.
22319 * emit-rtl.c (rtl): Declare.
22320 (regno_reg_rtx): Declare.
22321 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
22323 (gen_reg_rtx): Update.
22324 (init_virtual_regs): Do not tate emit_status argument.
22325 (init_emit): Do not allocate emit.
22326 * varasm.c (varasm_statuc): Move to function.h.
22327 (n_deferred_constatns): Update accestor.
22328 (init_varasm_status): Do not allocate varasm_status.
22329 (force_const_mem, get_pool_size, output_constant_pool): Update.
22330 * stmt.c (force_label_rtx): Do not use x_ prefixes.
22331 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
22333 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
22335 PR rtl-optimization/35729
22336 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
22339 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
22342 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
22343 load/store if memory is unaligned.
22344 (*movti_rex64): Likewise.
22346 * config/i386/predicates.md (misaligned_operand): New.
22348 2008-03-31 Andrew Pinski <pinskia@gmail.com>
22351 * tree-ssa-phiopt.c (conditional_replacement): Return early for
22354 2008-03-31 Jan Beulich <jbeulich@novell.com>
22356 * config/ia64/constraints.md: Add 'j' constraint.
22357 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
22358 (movdi_internal): Likewise.
22360 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
22363 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
22365 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
22368 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
22369 proper error message for the third argument on blendpd and
22372 * config/i386/sse.md (blendbits): New.
22373 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
22375 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
22377 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
22379 2008-03-30 Richard Guenther <rguenther@suse.de>
22381 PR middle-end/31023
22382 * fold-const.c (fold_sign_changed_comparison): Do leave
22383 conversions to base-types alone.
22385 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
22387 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
22388 the link register if one altivec register is be saved.
22390 2008-03-30 Ben Elliston <bje@au.ibm.com>
22392 * final.c (final_scan_insn): Remove if (0) code.
22394 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
22396 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
22398 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
22400 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
22401 of V4SFmode to ix86_binary_operator_ok.
22403 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
22405 * config/i386/i386.c (override_options): Initialize
22406 ix86_veclib_handler to ix86_veclibabi_svml when
22407 -mveclibabi=svml is used.
22408 (ix86_veclibabi_svml): New function for SVML ABI style
22409 vectorization support.
22410 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
22412 2008-03-28 Rafael Espíndola <espindola@google.com>
22414 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
22415 (tree_binary_nonnegative_warnv_p): Make it public.
22416 (tree_single_nonnegative_warnv_p): Make it public.
22417 (tree_invalid_nonnegative_warnv_p): Make it public.
22418 (tree_unary_nonzero_warnv_p): Make it public.
22419 (tree_binary_nonzero_warnv_p): Make it public
22420 (tree_single_nonzero_warnv_p): Make it public.
22421 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
22422 (extract_range_from_binary_expr): Split the expr argument.
22423 (extract_range_from_unary_expr): Split the expr argument.
22424 (extract_range_from_comparison): Split the expr argument.
22425 (extract_range_from_expr): Use the new aux functions.
22426 (vrp_evaluate_conditional_warnv): Use
22427 vrp_evaluate_conditional_warnv_with_ops.
22428 * tree.h (tree_unary_nonzero_warnv_p): Declare.
22429 (tree_binary_nonzero_warnv_p): Declare.
22430 (tree_single_nonzero_warnv_p): Declare.
22431 (tree_expr_nonzero_warnv_p): Declare.
22432 (tree_unary_nonnegative_warnv_p): Declare.
22433 (tree_binary_nonnegative_warnv_p): Declare.
22434 (tree_single_nonnegative_warnv_p): Declare.
22435 (tree_invalid_nonnegative_warnv_p): Declare.
22437 2008-03-28 Richard Guenther <rguenther@suse.de>
22439 PR tree-optimization/30317
22440 PR tree-optimization/30911
22441 PR tree-optimization/34793
22442 * tree-vrp.c (set_and_canonicalize_value_range): New function.
22443 (struct assert_locus_d): New member EXPR.
22444 (register_new_assert_for): Add EXPR parameter to support
22445 ASSERT_EXPR <name, expr OP limit>.
22446 (register_edge_assert_for_1): Adjust callers.
22447 (find_assert_locations): Likewise.
22448 (process_assert_insertions_for): Build condition from expression.
22449 (extract_range_from_assert): Handle ASSERT_EXPRs
22450 of the form ASSERT_EXPR <name, expr OP limit>.
22451 (register_edge_assert_for_2): New helper registering
22452 asserts for comparisons. Recognize range tests of the form
22453 (unsigned)i - CST1 OP CST2.
22454 (register_edge_assert_for_1): Use it.
22455 (register_edge_assert_for): Likewise.
22456 (needs_overflow_infinity): Integer sub-types
22457 do not need overflow infinities.
22458 (vrp_val_is_max): The extreme values of integer sub-types
22459 are those of the base type.
22460 (vrp_val_is_min): Likewise.
22461 * tree.def (ASSERT_EXPR): Document extra allowed conditional
22464 2008-03-28 Nick Clifton <nickc@redhat.com>
22467 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
22468 Return GENERAL_REGS for stack adjustment reloads.
22470 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
22473 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
22474 const_vector when all the vectors are constant.
22476 2008-03-27 Bob Wilson <bob.wilson@acm.org>
22478 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
22480 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
22481 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
22483 (s<code>_sf): Use new scc_sf attribute for opcode names.
22485 2008-03-27 Tom Tromey <tromey@redhat.com>
22487 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
22488 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
22489 config/spu/t-spu-elf, config/i386/t-interix,
22490 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
22491 config/i386/x-darwin, config/i386/x-mingw32,
22492 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
22493 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
22494 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
22495 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
22496 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
22497 config/rs6000/x-darwin, config/rs6000/t-rs6000,
22498 config/score/t-score-elf, config/arm/t-strongarm-pe,
22499 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
22500 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
22501 Revert automatic dependency patch.
22503 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
22506 * config/i386/i386.c (ix86_function_arg_boundary): Align
22507 decimal floating point to its natural boundary.
22509 2008-03-27 Richard Guenther <rguenther@suse.de>
22511 PR middle-end/35716
22512 * fold-const.c (fold_comparison): Restrict distinct decl
22513 comparison folding to VAR_DECLs and PARM_DECLs. Do not
22514 solely rely on operand_equal_p.
22516 2008-03-27 Richard Guenther <rguenther@suse.de>
22519 * c-common.c (handle_weak_attribute): Reject combination of
22522 2008-03-27 Richard Guenther <rguenther@suse.de>
22524 PR tree-optimization/32810
22525 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
22526 conversions from DECL_INITIAL.
22527 (fold_const_aggregate_ref): Likewise from constructor elements.
22529 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
22531 * tree-affine.h (aff_combination_expand): Declare.
22532 (get_inner_reference_aff): Likewise.
22533 * tree-affine.c (aff_combination_expand): Split out from
22534 tree_to_aff_combination_expand.
22535 (get_inner_reference_aff): New function.
22536 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
22537 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
22538 (struct lim_aux_data): sm_done field removed.
22539 (mem_ref_loc_p, mem_ref_locs_p): New types.
22540 (struct mem_ref): Added id, stored, accesses_in_loop,
22541 indep_loop, dep_loop, indep_ref, dep_ref fields.
22542 Removed is_stored, locs and next fields.
22543 (memory_accesses): New variable.
22544 (movement_possibility): Do not allow moving statements
22545 that store to memory.
22546 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
22548 (determine_max_movement): For statements with memory references,
22549 find the outermost loop in that the reference is independent.
22550 (move_computations_stmt): Mark the virtual operands for renaming.
22551 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
22552 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
22553 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
22554 add_vop_ref_mapping, create_vop_ref_mapping_loop,
22555 create_vop_ref_mapping, analyze_memory_references,
22556 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
22557 get_all_locs_in_loop, ref_always_accessed_p,
22558 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
22559 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
22560 store_motion_loop, store_motion): New functions.
22561 (struct vop_to_refs_elt): New type.
22562 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
22563 memref_hash, memref_eq, hoist_memory_references): Rewritten.
22564 (schedule_sm): Replaced by...
22565 (execute_sm): ... this.
22566 (determine_lsm_ref, hoist_memory_references,
22567 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
22568 find_more_ref_vops, free_mem_ref, free_mem_refs,
22569 determine_lsm_loop, determine_lsm): Removed.
22570 (tree_ssa_lim_finalize): Free data structures used by store motion.
22571 (tree_ssa_lim): Call analyze_memory_references. Use
22572 store_motion instead of determine_lsm.
22574 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
22576 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
22577 rename tmake_file to m68hc11/t-m68hc11.
22578 (mcore): Set inhibit_libc to true.
22579 * config.host (alpha*-dec-*vms*): Set extra_programs.
22580 (interix3*): Don't use host_xmake_file.
22581 * configure.ac: Let config.gcc override inhibit_libc.
22582 * configure: Regenerate.
22584 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
22585 * config/t-openbsd-thread: Remove commented out lines.
22587 * config/x-interix: Remove.
22589 * config/m68hc11/t-m68hc11-gas: Rename to...
22590 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
22592 * config/mcore/t-mcore: Remove T_CFLAGS.
22593 * config/mcore/t-mcore-pe: Likewise.
22595 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
22597 * configure.ac: Replace custom __GNU_SOURCE test with
22598 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
22599 * aclocal.m4: Regenerate.
22600 * configure: Regenerate.
22601 * config.in: Regenerate.
22603 2008-03-27 Richard Guenther <rguenther@suse.de>
22605 * fold-const.c (target.h): Include.
22606 (fold_comparison): Fold comparison of addresses of decls
22607 that bind locally or of constants. Consolidate address folding code.
22608 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
22609 results from fold_binary_to_constant.
22610 (compare_values_warnv): Likewise.
22612 2008-03-27 Andrew Pinski <pinskia@gmail.com>
22614 PR middle-end/35429
22615 * fold-const.c (fold_truthop): Check for integeral types when folding
22616 a == 0 && b == 0 and a != 0 || b != 0 .
22618 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
22620 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
22622 2008-03-26 Andreas Schwab <schwab@suse.de>
22624 * doc/invoke.texi: Fix use of @item vs. @itemx.
22626 2008-03-26 Tom Tromey <tromey@redhat.com>
22628 * Makefile.in (build/gensupport.o, build/print-rtl.o,
22629 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
22630 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
22631 build/gencodes.o, build/genconditions.o, build/genconfig.o,
22632 build/genconstants.o, build/genemit.o, build/genextract.o,
22633 build/genflags.o, build/genmddeps.o, build/genopinit.o,
22634 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
22637 2008-03-26 Richard Guenther <rguenther@suse.de>
22640 2008-03-26 Richard Guenther <rguenther@suse.de>
22642 * fold-const.c (target.h): Include.
22643 (fold_comparison): Fold comparison of addresses of two decls
22644 that bind locally. Consolidate address folding code.
22646 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22648 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
22649 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
22650 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
22651 dconstsqrt2, dconstthird, dconste and/or dconst10.
22652 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
22653 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
22654 dconstsqrt2, dconste): Delete.
22655 (init_emit_once): Likewise. Simplify initializing dconstm1.
22657 * real.c (get_real_const): New.
22658 * real.h (dconst3, dconst10, dconstm2, dconstthird,
22659 dconstsqrt2, dconste): Delete.
22660 (real_value_const, get_real_const): New.
22662 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
22664 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
22666 * config/i386/i386.c (ix86_function_arg_boundary): Check
22667 BIGGEST_ALIGNMENT instead of 128.
22668 (setup_incoming_varargs_64): Likewise.
22670 2008-03-26 Tom Tromey <tromey@redhat.com>
22672 * Makefile.in (DEPFILES): Add missing '/'.
22674 2008-03-26 Richard Guenther <rguenther@suse.de>
22676 * fold-const.c (target.h): Include.
22677 (fold_comparison): Fold comparison of addresses of two decls
22678 that bind locally. Consolidate address folding code.
22680 2008-03-26 Nick Clifton <nickc@redhat.com>
22683 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
22684 not allow INT+INT as a legitimate addressing mode.
22686 2008-03-26 Richard Guenther <rguenther@suse.de>
22688 * tree-flow.h (widen_bitfield): Remove declaration.
22689 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
22690 (widen_bitfield): Remove function.
22691 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
22694 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
22697 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
22700 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
22702 PR rtl-optimization/35232
22703 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
22704 (forget_old_reloads_1, forget_marked_reloads): Don't clear
22705 reg_reloaded_call_part_clobbered here.
22706 (reload_regs_reach_end_p): New function.
22707 (reload_reg_rtx_for_input): New variable.
22708 (reload_reg_rtx_for_output): Likewise.
22709 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
22710 when reassigning a pseudo register. Load reloadreg from
22711 reload_reg_rtx_for_input, moving the mode and register
22713 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
22714 instead of the original when deciding whether an input reload
22715 would be a no-op or whether an output reload can be deleted.
22716 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
22717 when setting up new_spill_reg_store. Load it from
22718 reload_reg_rtx_for_output, moving the mode and register
22720 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
22721 instead of the original when deciding whether an output reload
22722 would be a no-op. Do the same when modifying insn notes.
22723 Use rtx_equal_p instead of == to compare the registers.
22724 (inherit_piecemeal_p): Take a mode and two register numbers
22726 (emit_reload_insns): Clear new_spill_reg_store for every hard
22727 register in the reload register. Remove spill registers
22728 from reg_reloaded_valid before considering whether to record
22729 inheritance information for them. Use reload_reg_rtx_for_output
22730 instead of reg_rtx when recording output reloads. Use
22731 reload_reg_rtx_for_input instead of reg_rtx when recording
22732 input reloads. Set or clear reg_reloaded_call_part_clobbered
22733 at the same time as setting reg_reloaded_valid.
22734 (delete_output_reload): Add a new_reload_reg parameter and use it
22735 instead of rld[j].reg_rtx.
22736 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
22739 2008-03-25 Tom Tromey <tromey@redhat.com>
22741 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
22742 (build/genattr.o): Likewise.
22743 (build/genattrtab.o): Likewise.
22744 (build/gencodes.o): Likewise.
22745 (build/genconfig.o): Likewise.
22746 (build/genconstants.o): Likewise.
22747 (build/genemit.o): Likewise.
22748 (build/genextract.o): Likewise.
22749 (build/genflags.o): Likewise.
22751 2008-03-25 Bob Wilson <bob.wilson@acm.org>
22753 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
22754 instead of size_int for integer types.
22755 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
22756 to match type of MINUS_EXPR.
22758 2008-03-25 Tom Tromey <tromey@redhat.com>
22760 * configure: Rebuilt.
22761 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
22764 2008-03-25 Tom Tromey <tromey@redhat.com>
22766 * config/x-solaris (host-solaris.o): Update.
22767 * config/x-linux (host-linux.o): Update.
22768 * config/x-hpux (host-hpux.o): Update.
22769 * config/x-darwin (host-darwin.o): Update.
22770 * config/v850/t-v850e (v850-c.o): Update.
22771 * config/v850/t-v850 (v850-c.o): Update.
22772 * config/t-vxworks (vxworks.o): Update.
22773 * config/t-sol2 (sol2-c.o, sol2.o): Update.
22774 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
22775 * config/spu/t-spu-elf (spu-c.o): Update.
22777 * config/sh/t-symbian (sh-c.o): Update.
22778 (symbian.o): Update.
22779 * config/sh/t-sh (sh-c.o): Update.
22780 * config/score/t-score-elf (score7.o, score3.o): Update.
22781 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
22782 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
22783 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
22784 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
22785 (rs6000.o): Remove.
22786 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
22787 * config/m32c/t-m32c (m32c-pragma.o): Update.
22788 * config/ia64/t-ia64 (ia64-c.o): Update.
22789 * config/i386/x-mingw32 (host-mingw32.o): Update.
22790 * config/i386/x-i386 (driver-i386.o): Update.
22791 * config/i386/x-darwin (host-i386-darwin.o): Update.
22792 * config/i386/x-cygwin (host-cygwin.o): Update.
22793 * config/i386/t-nwld (nwld.o): Update.
22794 * config/i386/t-netware (netware.o): Update.
22795 * config/i386/t-interix (winnt.o): Update.
22796 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
22797 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
22798 msformat-c.o): Update.
22799 * config/bfin/t-bfin-linux (generated_files): Add
22800 linux-sysroot-suffix.h.
22801 * config/arm/t-wince-pe (pe.o): Update.
22802 * config/arm/t-strongarm-pe (pe.o): Update.
22803 * config/arm/t-pe (pe.o): Update.
22804 * config/arm/t-arm (arm-c.o): Update.
22805 * doc/install.texi (Prerequisites): Require make 3.80.
22806 * Makefile.in: Remove .o targets.
22807 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
22808 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
22809 (simple_generated_h, simple_generated_c): Move earlier.
22810 (generated_files): New variable.
22811 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
22812 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
22813 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
22814 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
22815 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
22816 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
22817 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
22818 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
22819 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
22820 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
22821 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
22822 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
22824 (COMPILE.base, COMPILE): New variables.
22825 (%.o): New pattern rule.
22826 (ALL_HOST_OBJS): New variable.
22827 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
22828 (dummy-checksum.o, cc1-checksum.o): Remove.
22829 (DRIVER_SHLIB): New variable.
22830 (DRIVER_DEFINES): Use it.
22831 (gencondmd.c): Move out of build/.
22832 (s-conditions): Update.
22833 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
22834 (ALL_BUILD_OBJS): Likewise.
22835 (build/%.o): Use BUILDCOMPILE.
22836 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
22837 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
22838 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
22839 build/gencheck.o, build/gencodes.o, build/genconditions.o,
22840 build/genconfig.o, build/genconstants.o, build/genemit.o,
22841 build/genextract.o, build/genflags.o, build/genmddeps.o,
22842 build/genopinit.o, build/genoutput.o, build/genpeep.o,
22843 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
22844 build/gen-protos.o, build/scan.o, build/fix-header.o,
22845 build/scan-decls.o): Simplify.
22846 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
22847 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
22848 prefix.o, toplev.o): Reduce to variable setting.
22849 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
22850 ($(out_object_file), gcc-options.o): New targets.
22851 ($(ALL_HOST_OBJS)): New target. Include dependency files.
22852 * configure: Rebuilt.
22853 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
22854 * doc/sourcebuild.texi (Front End Directory): Document new variable.
22856 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
22858 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
22859 complain when we hit an error, return ERROR_MARK_NODE.
22861 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
22863 * config/sh/constraints.md (Pso, Psz): New constraints.
22864 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
22865 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
22867 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
22869 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
22870 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
22872 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
22874 * config/sh/sh.md (prefetch): Add condition for SH2A target.
22875 (prefetch_sh2a): New.
22877 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
22878 Naveen.H.S <naveen.hs@kpitcummins.com>
22880 * config/sh/constraints.md (I28): New constraint.
22881 * config/sh/sh.c (broken_move): Add support for movi20s.
22882 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
22884 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
22885 Jayant Sonar <Jayant.sonar@kpitcummins.com>
22886 Naveen.H.S <naveen.hs@kpitcummins.com>
22888 * config/sh/sh.c (SH_ATTRIBUTES): Define.
22889 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
22890 (print_operand): Handle resbank in %@ operand code.
22891 (sh_encode_section_info): New.
22892 (push_regs): Add conditions for resbank.
22893 (sh_expand_epilogue): Likewise.
22894 (sh_insert_attributes): Likewise.
22895 (sh_attribute_table): Likewise.
22896 (sh_handle_resbank_handler_attribute): New.
22897 (sh2a_handle_function_vector_handler_attribute): New.
22898 (sh2a_is_function_vector_call): New.
22899 (sh2a_get_function_vector_number): New.
22900 (sh2a_function_vector_p): New.
22901 (sh_cfun_resbank_handler_p): New.
22902 * config/sh/sh.md (calli): Emit jsr/n if possible.
22903 (calli_tbr_rel): New.
22904 (calli_pcrel): Emit jsr/n if possible.
22905 (return_i): Emit rts/n if possible.
22906 (call_valuei_tbr_rel): New.
22907 (call_valuei_pcrel): Add condition for SH2A target.
22908 (call_value): Likewise.
22909 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
22910 (sh2a_get_function_vector_number): Likewise.
22911 (sh2a_is_function_vector_call): Likewise.
22912 * doc/extend.texi: Document TBR relative addressing of SH2A.
22913 (resbank): Add description for SH2A.
22915 2008-03-24 Richard Guenther <rguenther@suse.de>
22918 * gimplify.c (gimplify_modify_expr): For frontend type-correct
22919 pointer assignments change conversions according to middle-end rules.
22920 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
22921 * configure.ac: Include type checking in yes.
22922 * configure: Regenerate.
22924 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22926 * diagnostic.c (diagnostic_count_diagnostic): Delete.
22927 (diagnostic_report_diagnostic): Update. Handle ICEs here.
22929 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
22931 * gthr-vxworks.h (UNUSED): Define.
22933 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
22935 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
22937 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
22939 * doc/extend.texi (Function Attributes): Add missing comma in the
22940 example of the "alloc_size" attribute.
22942 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
22945 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
22947 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
22950 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
22953 * stor-layout.c (update_alignment_for_field): Set minimum alignment
22954 of the underlying type of a MS bitfield layout to the natural
22955 alignment of the type.
22957 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
22959 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
22960 to their natural alignment to avoid store forwarding stalls.
22962 2008-03-22 Richard Guenther <rguenther@suse.de>
22964 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
22965 For PHI nodes verify the address is invariant.
22966 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
22967 (get_symbol_constant_value): Use is_gimple_min_invariant.
22968 (maybe_fold_stmt_indirect): Likewise.
22970 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
22972 PR rtl-optimization/33927
22973 * Makefile.in (dse.o): Depend on $(TM_P_H).
22974 * expr.h (extract_low_bits): Declare.
22975 * expmed.c (extract_low_bits): New function.
22976 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
22977 * dse.c: Include tm_p.h.
22978 (find_shift_sequence): Remove the read_reg argument and return the
22979 read value. Emit the instructions instead of returning them.
22980 Iterate on new_mode rather than calculating it each time.
22981 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
22982 source to NEW_MODE and extract_low_bits to convert the shifted
22983 value to READ_MODE.
22984 (replace_read): Allow the load and store to have different mode
22985 classes. Use extract_low_bits when SHIFT == 0. Create the shift
22986 or extraction instructions before trying the replacement. Update
22987 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
22989 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
22991 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
22992 to their natural alignment to avoid store forwarding stalls.
22994 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
22997 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
22998 encouraging but not allowing gprs for input;
22999 change the input constraint to !f#r.
23000 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
23002 change the output constraint to !f#r.
23004 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
23007 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
23008 corresponding post-reload splitters.
23009 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
23010 when x87 FP math is selected.
23011 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
23012 New function prototype.
23013 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
23014 unreachable function to ease macroization of insn patterns.
23016 2008-03-21 Martin Jambor <mjambor@suse.cz>
23018 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
23019 reference dumps if ddr is NULL or dependence is unknown.
23021 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
23023 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
23024 unsigned extension into account.
23025 (ATOMIC_COMPARE_AND_SWAP): Likewise.
23026 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
23027 Do computations on a scratch register.
23029 2008-03-21 Richard Guenther <rguenther@suse.de>
23031 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
23032 Use is_gimple_min_invariant instead of TREE_INVARIANT.
23033 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
23034 * tree-ssa-dom.c (record_equality): Likewise.
23035 * tree-inline.c (copy_body_r): Likewise.
23036 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
23039 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
23041 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
23042 as 'delete_unused' argument.
23044 2008-03-20 Richard Guenther <rguenther@suse.de>
23046 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
23047 special casing of constant qualifiers.
23048 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
23049 care about them in general.
23050 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
23051 regardless of their type.
23052 (fold_stmt_r): Forcefully fold *& if we end up with that.
23054 2008-03-20 Paul Brook <paul@codesourcery.com>
23056 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
23057 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
23059 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
23061 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
23062 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
23064 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
23066 * common.opt (Wmudflap): New option.
23067 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
23068 (mx_register_decls): Likewise.
23069 (mudflap_finish_file): Likewise.
23070 * doc/invoke.texi: Document -Wno-mudflap.
23072 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
23074 * c-format.c (replace_format_name_to_system_name): New.
23075 (cmp_attribs): New.
23076 (convert_format_name_to_system_name): New.
23077 (decode_format_attr): Add use of convert_format_name_to_system_name.
23078 (format_types_orig): Add gnu_ prefix to names.
23079 (check_format_info_main): Special treating of \0 escaped names for
23080 supporting multi-character format specifiers as I32, I64.
23081 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
23082 (gnu_target_overrides_format_attributes): New.
23083 * c-format.h: Add structure target_ovr_attr to hold
23084 system specific formatter names.
23085 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
23086 msformat-c.o file to c_target_objs and cxx_target_objs.
23087 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
23088 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
23089 (TARGET_N_FORMAT_TYPES): New.
23090 * config/i386/msformat-c.c: New.
23091 * config/i386/t-cygming: Add build rule for msformat-c.o.
23092 * doc/extend.texi: Add new format names gnu_* and ms_* and
23094 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
23096 2008-03-20 Ira Rosen <irar@il.ibm.com>
23098 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
23099 optimizations turned on under -O3.
23100 (ftree-vectorize): Add that the flag is turned on with -O3.
23102 2008-03-20 Ben Elliston <bje@au.ibm.com>
23104 * regmove.c (try_auto_increment): Fix spelling error in comment.
23105 * final.c (final_scan_insn): Likewise.
23107 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
23110 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
23111 allocator preferences for "y" and "r" class registers.
23112 ("*mov<mode>_internal"): Ditto.
23113 ("*movv2sf_internal_rex64"): Ditto.
23114 ("*movv2sf_internal"): Ditto.
23116 2008-03-19 Michael Matz <matz@suse.de>
23118 PR middle-end/35616
23119 * calls.c (expand_call): Check overlap of arguments with call
23120 address for sibcalls.
23122 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
23125 * stor-layout.c (update_alignment_for_field): Set minimum alignment
23126 of the underlying type of a MS bitfield layout to the natural
23127 alignment of the type.
23129 2008-03-19 Jan Hubicka <jh@suse.cz>
23132 * toplev.c (decode_d_option): Handle all CPP flags.
23133 * tree-vrp.c: Update tree_pass descriptors.
23134 * regrename.c: Update tree_pass descriptors.
23135 * fwprop.c: Update tree_pass descriptors.
23136 * doc/invoke.texi: Remove documentation of dropped -d? flags.
23137 * tree-into-ssa.c: Update tree_pass descriptors.
23138 * tree-dump.c: Update tree_pass descriptors.
23139 * tree-complex.c: Update tree_pass descriptors.
23140 * tree-dump.h: Update tree_pass descriptors.
23141 * see.c: Update tree_pass descriptors.
23142 * cgraphbuild.c: Update tree_pass descriptors.
23143 * tracer.c: Update tree_pass descriptors.
23144 * tree-loop-distribution.c: Update tree_pass descriptors.
23145 * cgraph.c: Update tree_pass descriptors.
23146 * postreload-gcse.c: Update tree_pass descriptors.
23147 * postreload.c: Update tree_pass descriptors.
23148 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
23149 * tree-tailcall.c: Update tree_pass descriptors.
23150 * tree-pass.h (tree_opt_pass): Rename to ...
23151 (opt_pass) ... this one; add "type" field and remove letter field.
23152 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
23153 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
23154 all_lowering_passes): Update declaration.
23155 * ipa-cp.c: Update tree_pass descriptors.
23156 * final.c: Update tree_pass descriptors.
23157 * omp-low.c: Update tree_pass descriptors.
23158 * tree-ssa-dse.c: Update tree_pass descriptors.
23159 * ipa-reference.c: Update tree_pass descriptors.
23160 * tree-ssa-uncprop.c: Update tree_pass descriptors.
23161 * auto-inc-dec.c: Update tree_pass descriptors.
23162 * reorg.c: Update tree_pass descriptors.
23163 * cgraphunit.c: Update tree_pass descriptors.
23164 * tree-ssa-copyrename.c: Update tree_pass descriptors.
23165 * tree-ssa-ccp.c: Update tree_pass descriptors.
23166 * df-core.c: Update tree_pass descriptors.
23167 * mode-switching.c: Update tree_pass descriptors.
23168 * tree-nomudflap.c: Update tree_pass descriptors.
23169 * modulo-sched.c: Update tree_pass descriptors.
23170 * ipa-pure-const.c: Update tree_pass descriptors.
23171 * cse.c: Update tree_pass descriptors.
23172 * web.c: Update tree_pass descriptors.
23173 * tree-stdarg.c: Update tree_pass descriptors.
23174 * tree-ssa-math-opts.c: Update tree_pass descriptors.
23175 * tree-ssa-dom.c: Update tree_pass descriptors.
23176 * tree-nrv.c: Update tree_pass descriptors.
23177 * tree-ssa-alias.c: Update tree_pass descriptors.
23178 * loop-init.c: Update tree_pass descriptors.
23179 * gimple-low.c: Update tree_pass descriptors.
23180 * ipa-inline.c: Update tree_pass descriptors.
23181 * tree-ssa-sink.c: Update tree_pass descriptors.
23182 * global.c: Update tree_pass descriptors.
23183 * ifcvt.c: Update tree_pass descriptors.
23184 * jump.c: Update tree_pass descriptors.
23185 * predict.c: Update tree_pass descriptors.
23186 * tree-ssa-loop.c: Update tree_pass descriptors.
23187 * recog.c: Update tree_pass descriptors.
23188 * dse.c: Update tree_pass descriptors.
23189 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
23190 * tree-eh.c: Update tree_pass descriptors.
23191 * regmove.c: Update tree_pass descriptors.
23193 * function.c: Update tree_pass descriptors.
23194 * tree-vectorizer.c: Update tree_pass descriptors.
23195 * gcse.c: Update tree_pass descriptors.
23196 * ipa-type-escape.c: Update tree_pass descriptors.
23197 * tree-if-conv.c: Update tree_pass descriptors.
23198 * init-regs.c: Update tree_pass descriptors.
23199 * ipa.c: Update tree_pass descriptors.
23200 * tree-ssa-phiopt.c: Update tree_pass descriptors.
23201 * rtl-factoring.c: Update tree_pass descriptors.
23202 * lower-subreg.c: Update tree_pass descriptors.
23203 * bt-load.c: Update tree_pass descriptors.
23204 * tree-dfa.c: Update tree_pass descriptors.
23205 * except.c: Update tree_pass descriptors.
23206 * emit-rtl.c: Update tree_pass descriptors.
23207 * cfgexpand.c: Update tree_pass descriptors.
23208 * tree-cfgcleanup.c: Update tree_pass descriptors.
23209 * cfgcleanup.c: Update tree_pass descriptors.
23210 * tree-ssa-pre.c: Update tree_pass descriptors.
23211 * tree-sra.c: Update tree_pass descriptors.
23212 * tree-mudflap.c: Update tree_pass descriptors.
23213 * tree-ssa-copy.c: Update tree_pass descriptors.
23214 * cfglayout.c: Update tree_pass descriptors.
23215 * tree-ssa-forwprop.c: Update tree_pass descriptors.
23216 * tree-ssa-dce.c: Update tree_pass descriptors.
23217 * tree-ssa.c: Update tree_pass descriptors.
23218 * regclass.c: Update tree_pass descriptors.
23219 * integrate.c: Update tree_pass descriptors.
23220 * tree-optimize.c: Update tree_pass descriptors.
23221 * tree-ssa-phiprop.c: Update tree_pass descriptors.
23222 * tree-object-size.c: Update tree_pass descriptors.
23223 * combine.c: Update tree_pass descriptors.
23224 * tree-outof-ssa.c: Update tree_pass descriptors.
23225 * bb-reorder.c: Update tree_pass descriptors.
23226 * stack-ptr-mod.c: Update tree_pass descriptors.
23227 * var-tracking.c: Update tree_pass descriptors.
23228 * tree-profile.c: Update tree_pass descriptors.
23229 * tree-vect-generic.c: Update tree_pass descriptors.
23230 * reg-stack.c: Update tree_pass descriptors.
23231 * sched-rgn.c: Update tree_pass descriptors.
23232 * tree-ssa-structalias.c: Update tree_pass descriptors.
23233 * tree-cfg.c: Update tree_pass descriptors.
23234 * passes.c (current_pass): Update declaration.
23235 (finish_optimization_passes): Update.
23236 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
23237 (register_one_dump_file, register_dump_files_1, next_pass_1):
23239 (init_optimization_passes): Update handling of new types.
23240 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
23241 * ipa-struct-reorg.c: Update tree_pass descriptors.
23242 * tree-ssa-reassoc.c: Update tree_pass descriptors.
23243 * combine-stack-adj.c: Update tree_pass descriptors.
23244 * cfgrtl.c: Update tree_pass descriptors.
23245 * dce.c: Update tree_pass descriptors.
23246 * tree-ssanames.c: Update tree_pass descriptors.
23248 2008-03-19 Richard Guenther <rguenther@suse.de>
23250 PR middle-end/35609
23251 * tree-ssa.c (walk_data): New structure.
23252 (warn_uninitialized_var): If not always_executed warn with "maybe"
23254 (execute_early_warn_uninitialized): Compute post-dominators.
23255 Initialize always_executed before processing each basic block.
23257 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
23260 * config/i386/i386.c (x86_this_parameter): Calculate correct location
23261 of "this" pointer when "regparm = N" or "fastcall" is in effect.
23263 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23265 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
23267 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
23269 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
23271 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
23272 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
23273 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
23274 target after ignore has been set, and move there also the commputation
23275 of subtarget and original_target.
23276 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
23277 (LANG_HOOKS_INITIALIZER): Remove it.
23278 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
23280 2008-03-18 Richard Guenther <rguenther@suse.de>
23282 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
23283 found an expression with constants, note that in the VN for the lhs.
23284 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
23285 fold them to constants if possible. Run cleanup_cfg if done so.
23286 (execute_pre): Return todo.
23287 (do_pre): Likewise.
23288 (execute_fre): Likewise.
23289 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
23291 (get_prop_source_stmt): Look through pointer conversions.
23293 2008-03-18 Jan Hubicka <jh@suse.cz>
23295 * tree-pretty-print.c: Include predict.h.
23296 (dump_generic_node): Dump predictor.
23297 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
23298 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
23299 * gimple-low.c (lower_stmt): Likewise.
23300 * expr.c (expand_expr_real): Likewise.
23301 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
23303 (build_predict_expr, build_predict_expr): New.
23304 * predict.h (predictor_name, build_predict_expr): Update.
23305 * c-typeck.c (c_finish_bc_stmt): Add prediction.
23306 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
23307 * predict.def (PRED_CONTINUE): Update hitrate.
23308 * tree.def (PREDICT_EXPR): Define.
23309 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
23310 do not handle BIND_EXPR.
23311 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
23312 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
23313 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
23316 2008-03-18 Michael Matz <matz@suse.de>
23318 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
23320 2008-03-18 Richard Guenther <rguenther@suse.de>
23322 * tree-gimple.h (is_gimple_invariant_address): Declare.
23323 (is_gimple_constant): Likewise.
23324 * tree-gimple.c (is_gimple_constant): New function.
23325 (is_gimple_invariant_address): Likewise.
23326 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
23327 and is_gimple_invariant_address.
23328 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
23330 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
23331 an addressable base.
23333 2008-03-18 Jakub Jelinek <jakub@redhat.com>
23335 PR middle-end/35611
23336 * gimplify.c (gimplify_expr): Gimplify second operand of
23339 2008-03-17 Richard Guenther <rguenther@suse.de>
23341 PR tree-optimization/19637
23342 * fold-const.c (fold_unary): Remove restrictions of removing
23343 intermediate pointer-conversions (P2)(P1)P0.
23344 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
23345 conversion to void pointer.
23346 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
23348 2008-03-16 James E. Wilson <wilson@tuliptree.org>
23351 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
23352 emulated thread local variables.
23354 2008-03-16 Richard Guenther <rguenther@suse.de>
23356 PR middle-end/35607
23357 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23358 expand TREE_INVARIANT operations that are not gimple invariant.
23360 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
23362 * doc/extend.texi (Alignment): Say that the ABI controls
23363 the __alignof__ for non-strict-alignment targets rather
23364 than being a recommendation.
23366 2008-03-15 Paul Brook <paul@codesourcery.com>
23368 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
23370 (arm_output_fn_unwind): Mark functions that can not be unwound.
23372 2008-03-15 Paul Brook <paul@codesourcery.com>
23374 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
23375 extension instructions.
23377 2008-03-15 Richard Guenther <rguenther@suse.de>
23379 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
23380 and fold constant aggregate refs.
23381 (fold_const_aggregate_ref): Handle string constants
23382 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
23383 (evaluate_stmt): Simplify now that ccp_fold folds constant
23386 2008-03-15 Paul Brook <paul@codesourcery.com>
23388 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
23389 (extzv): Use gen_extzv_t2.
23390 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
23392 2008-03-15 Richard Guenther <rguenther@suse.de>
23394 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
23395 (fold_const_aggregate_ref): Likewise.
23396 (get_value): Return NULL if we don't have any values.
23397 (ccp_finalize): Set const_val to NULL after freeing it.
23398 * tree-flow.h (get_symbol_constant_value): Declare.
23399 (fold_const_aggregate_ref): Likewise.
23400 * tree-ssa-sccvn.c (try_to_simplify): Use them.
23402 2008-03-15 Richard Guenther <rguenther@suse.de>
23404 PR middle-end/35593
23405 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
23406 to not produce negative array indices if not allowed. Add
23407 parameter to indicate that.
23408 (maybe_fold_offset_to_component_ref): Allow negative array
23409 indices only for the first member of a structure.
23410 (maybe_fold_offset_to_reference): Allow negative array indices.
23411 (maybe_fold_stmt_addition): Likewise.
23413 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
23414 Anatoly Sokolov <aesok@post.ru>
23416 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
23417 (avr_arch): Add ARCH_AVR6.
23418 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
23419 (initial_elimination_offset): Initialize and use 'avr_pc_size'
23420 instead of fixed value 2.
23421 (print_operand_address): Use gs() asm specifier instead of pm().
23422 (avr_assemble_integer): (Ditto.).
23423 (avr_output_addr_vec_elt): (Ditto.).
23424 (print_operand): Handle "!" code.
23425 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
23426 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
23427 (AVR_HAVE_EIJMP_EICALL): Define.
23428 (AVR_3_BYTE_PC): Redefine.
23429 (AVR_2_BYTE_PC): (Ditto.).
23430 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
23431 (LINK_SPEC): Add atmega2560 and atmega2561.
23432 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
23434 * config/avr/avr.md (call_insn): Use eicall instead of icall
23435 for 3 byte PC devices.
23436 (call_value_insn): (Ditto.).
23437 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
23438 (indirect_jump): Use only for for 2 byte PC devices.
23439 (*tablejump): (Ditto.).
23440 (*indirect_jump_avr6): Add insn.
23441 (*tablejump_rjmp): Don't use for 3 byte PC devices.
23442 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
23443 instead of ijmp for 3 byte PC devices.
23444 (__tablejump2__): (Ditto.).
23445 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
23446 (MULITLIB_DIRNAMES): (Ditto.).
23447 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
23449 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
23451 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
23452 "sse2_umulsidi3". Use V1DI mode for operand 0.
23453 ("mmx_psadbw"): Use V1DI mode for operand 0.
23454 * config/i386/i386-modes.def (V1SI): New vector mode.
23455 * config/i386/i386.c (struct builtin_description)
23456 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
23457 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
23458 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
23459 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
23460 v1di_ftype_v8qi_v8qi type.
23461 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
23463 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
23464 __builtin_ia32_pmuludq]: Fix the mode of return value.
23466 2008-03-15 Richard Guenther <rguenther@suse.de>
23468 PR middle-end/35595
23469 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
23472 2008-03-14 Bob Wilson <bob.wilson@acm.org>
23474 * doc/invoke.texi (Option Summary, Xtensa Options): Document
23475 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
23476 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
23477 unless TARGET_SERIALIZE_VOLATILE is enabled.
23478 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
23479 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
23480 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
23482 2008-03-14 Richard Guenther <rguenther@suse.de>
23484 PR tree-optimization/34172
23485 * tree-flow.h (refs_may_alias_p): Declare.
23486 (get_single_def_stmt): Likewise.
23487 (get_single_def_stmt_from_phi): Likewise.
23488 (get_single_def_stmt_with_phi): Likewise.
23489 * tree-dfa.c (refs_may_alias_p): New function.
23490 (get_single_def_stmt): Likewise.
23491 (get_single_def_stmt_from_phi): Likewise.
23492 (get_single_def_stmt_with_phi): Likewise.
23493 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
23494 (vn_reference_lookup_1): New helper function.
23495 (vn_reference_lookup): Walk the virtual use-def chain to
23496 continue searching for a match if the def does not alias the
23497 reference we are looking for.
23499 2008-03-14 David Edelsohn <edelsohn@gnu.org>
23501 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
23502 archive and Perzl. Update The Written Word listing.
23504 2008-03-14 Richard Guenther <rguenther@suse.de>
23506 PR tree-optimization/34043
23507 PR tree-optimization/33989
23508 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
23510 (bitmap_find_leader): Use extra argument to verify dominance
23511 relationship inside a basic-block.
23512 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
23513 (find_leader_in_sets): Adjust.
23514 (create_component_ref_by_pieces): Take extra argument for
23515 dominance check, handle lookup failures.
23516 (find_or_generate_expression): Likewise.
23517 (create_expression_by_pieces): Likewise.
23518 (insert_into_preds_of_block): Adjust.
23519 (create_value_expr_from): If asked for, verify all operands
23520 are in the blocks AVAIL_OUT set.
23521 (make_values_for_stmt): Check for SSA_NAMEs that are life
23522 over an abnormal edge.
23523 (compute_avail): Remove such check.
23524 (do_SCCVN_insertion): New function.
23525 (eliminate): If we do not find a leader suitable for replacement
23526 insert a replacement expression from SCCVN if available.
23527 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
23528 (struct vn_ssa_aux): Add needs_insertion flag.
23529 * tree-ssa-sccvn.c (may_insert): New global flag.
23530 (copy_reference_ops_from_ref): Value-number union member access
23531 based on its size, not type and member if insertion is allowed.
23532 (visit_reference_op_load): For a weak match from union type
23533 punning lookup a view-converted value and insert a SSA_NAME
23534 for that value if that is not found.
23535 (visit_use): Make dumps shorter. Do not disallow value numbering
23536 SSA_NAMEs that are life over an abnormal edge to constants.
23537 (free_scc_vn): Release inserted SSA_NAMEs.
23538 (run_scc_vn): New flag to specify whether insertion is allowed.
23539 Process SSA_NAMEs in forward order.
23540 * tree-ssa-loop-im.c (for_each_index): Handle invariant
23541 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
23542 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
23543 pointer type to/from integral types that do not change the
23544 precision to regular conversions.
23546 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
23548 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
23549 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
23550 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
23551 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
23552 input arguments and the mode of return value. Built-in functions
23553 that operate on whole 64-bit MMX register now use V1DI mode.
23555 2008-03-13 Alon Dayan <alond@il.ibm.com>
23556 Olga Golovanevsky <olga@il.ibm.com>
23558 PR tree-optimization/35041
23559 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
23560 to locate the right position in a statement.
23562 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
23566 * config/i386/xmmintrin.h: Change all static inline functions to
23567 extern inline and add __gnu_inline__ attribute.
23568 * config/i386/bmintrin.h: Ditto.
23569 * config/i386/smmintrin.h: Ditto.
23570 * config/i386/tmmintrin.h: Ditto.
23571 * config/i386/mmintrin-common.h: Ditto.
23572 * config/i386/ammintrin.h: Ditto.
23573 * config/i386/emmintrin.h: Ditto.
23574 * config/i386/pmmintrin.h: Ditto.
23575 * config/i386/mmintrin.h: Ditto.
23576 * config/i386/mm3dnow.h: Ditto.
23578 2008-03-13 Jakub Jelinek <jakub@redhat.com>
23580 PR middle-end/35185
23581 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
23582 (lower_omp_2): New function.
23583 (lower_omp_1, lower_omp): Rewritten.
23585 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
23588 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
23589 with the phrase "Microsoft Windows compilers".
23590 (Push/Pop Macro Pragmas): New subsection. Document
23591 #pragma push_macro and pragma pop_macro.
23593 2008-03-12 Paul Brook <paul@codesourcery.com>
23595 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
23597 2008-03-12 Paul Brook <paul@codesourcery.com>
23599 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
23600 (thumb2_alusi3_short): Exclude PLUS and MINUS.
23601 (thumb2_addsi_shortim): Rename ...
23602 (thumb2_addsi_short): ... to this. Allow register operands.
23603 (thumb2_subsi_short): New pattern.
23604 (thumb2_one_cmplsi2_short,
23605 thumb2_negsi2_short): New patterns and peepholes.
23607 2008-03-12 Paul Brook <paul@codesourcery.com>
23609 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
23611 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
23613 * config/i386/i386.md (int_cond): New code iterator.
23615 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
23616 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
23617 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
23618 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
23619 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
23620 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
23621 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
23622 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
23624 2008-03-12 Paul Brook <paul@codesourcery.com>
23626 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
23627 instead of {arm,thumb}_compute_save_reg_mask.
23628 (output_return_instruction): Ditto.
23629 (thumb_unexpanded_epilogue): Ditto.
23630 (thumb1_expand_prologue): Ditto.
23631 (thumb1_output_function_prologue): Ditto.
23632 (arm_set_return_address): Ditto.
23633 (thumb_set_return_address): Ditto.
23634 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
23635 regs to achieve stack alignment.
23636 (thumb1_compute_save_reg_mask): Fix compiler warning.
23637 (arm_output_epilogue): Use offsets->saved_regs_mask.
23638 Adjust stack pointer by poping call clobered registers.
23639 (arm_expand_prologue): Use offsets->saved_regs_mask.
23640 Adjust stack pointer by pushing extra registers.
23641 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
23643 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
23646 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
23647 conversion to the operands of a multiplication.
23649 2008-03-12 Richard Guenther <rguenther@suse.de>
23651 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
23652 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
23653 * timevar.def (TV_TREE_PHIPROP): Add.
23654 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
23655 pass description. Use TV_TREE_PHIPROP.
23656 * tree-ssa-forwprop.c: Remove phiprop code.
23658 2008-03-12 Jakub Jelinek <jakub@redhat.com>
23660 PR middle-end/35549
23661 * omp-low.c (maybe_lookup_decl): Constify first argument.
23662 (use_pointer_for_field): Change last argument from bool to
23663 omp_context *. Disallow shared copy-in/out in nested
23664 parallel if decl is shared in outer parallel too.
23665 (build_outer_var_ref, scan_sharing_clauses,
23666 lower_rec_input_clauses, lower_copyprivate_clauses,
23667 lower_send_clauses, lower_send_shared_vars): Adjust callers.
23669 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
23670 Ira Rosen <irar@il.ibm.com>
23672 * tree-vectorizer.c (free_stmt_vec_info): New function.
23673 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
23674 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
23675 * tree-vectorizer.h (free_stmt_vec_info): Declare.
23676 * tree-vect-transform.c (vectorizable_conversion): Free
23677 vec_oprnds0 if it was allocated.
23678 (vect_permute_store_chain): Remove unused VECs.
23679 (vectorizable_store): Free VECs that are allocated in the..
23681 (vect_transform_strided_load, vectorizable_load): Likewise.
23682 (vect_remove_stores): Simplify the code.
23683 (vect_transform_loop): Move code to vect_remove_stores().
23684 Call vect_remove_stores() and free_stmt_vec_info().
23686 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23688 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
23689 TARGET_HPUX. Revise comment.
23690 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
23691 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
23692 Use sr4 variant of `be' instruction when not generating PIC code.
23693 (attr_length_call): Adjust for above change.
23695 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
23697 * ipa-reference.c (static_execute): Remove module_statics_const and
23698 associated setting code.
23700 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
23703 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
23704 predicate for operand 1.
23705 (paritysi2_cmp): Use register_operand predicate for operand 2.
23706 Use earlyclobber modifier for operand 1. Remove support for
23708 (paritydi2_cmp): Use register_operand predicate for operand 3.
23709 Use earlyclobber modifier for operand 1. Remove support for
23712 2008-03-11 Paul Brook <paul@codesourcery.com>
23713 Vladimir Prus <vladimir@codesourcery.com>
23715 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
23716 (arm_compute_save_reg0_reg12_mask): Always
23717 check if register 11 must be saved. Always safe hard frame pointer
23718 when frame_pointer_needeed.
23719 (arm_compute_save_reg_mask): Save IP and PC
23720 only with apcs frames.
23721 (arm_output_epilogue): Adjust Thumb2 codepath to
23722 be also invoked and work for ARM non-apcs frames.
23723 (arm_expand_prologue): Don't bother saving IP
23724 for non-apcs frame, since it's not clobbered by
23725 prologue code. Implement non-apcs frame
23728 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
23730 PR rtl-optimization/35281
23731 * expr.c (convert_move): Use a new pseudo for the intermediate
23732 from_mode->word_mode result.
23734 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
23736 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
23737 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
23738 * toplev.c (compile_file): Don't call it.
23740 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
23742 PR middle-end/35526
23743 * expr.c (store_expr): Call emit_block_move if the mode
23744 of "temp" RTX is BLKmode.
23746 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
23747 Richard Guenther <rguenther@suse.de>
23749 PR tree-optimization/31358
23750 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
23751 the step with a NULL_TREE.
23752 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
23753 to sizetype if type is a pointer type.
23754 (add_candidate_1): Don't convert the base and step to
23755 the generic type if the orginal type is a pointer type.
23756 (add_iv_value_candidates): Use sizetype for the step
23757 if type is a pointer type.
23758 (cand_value_at): Likewise.
23759 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
23761 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
23762 Don't convert the tem affine to the type.
23763 (add_elt_to_tree): Use sizetype for the step if a pointer.
23764 Use POINTER_PLUS_EXPR for pointers.
23765 (aff_combination_to_tree): Use sizetype for the step if a
23768 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
23770 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
23771 Remove commutativity hint.
23773 2008-03-10 Jakub Jelinek <jakub@redhat.com>
23777 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
23778 errorneous type. Check that v is a VAR_DECL.
23780 PR middle-end/35099
23781 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
23783 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
23785 PR tree-optimization/35494
23786 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
23787 may be overriden at link and run time.
23789 2008-03-10 Richard Guenther <rguenther@suse.de>
23791 PR tree-optimization/34677
23792 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
23793 (poolify_tree): Likewise.
23794 (modify_expr_template): Likewise.
23795 (poolify_modify_stmt): Likewise.
23796 (insert_fake_stores): Handle all component-ref style stores
23797 in addition to INDIRECT_REF. Also handle complex types.
23798 Do not poolify the inserted load.
23799 (realify_fake_stores): Do not rebuild the tree but only
23800 make it a SSA_NAME copy.
23801 (init_pre): Remove initialzation of modify_expr_template.
23802 Do not allocate modify_expr_node_pool.
23803 (fini_pre): Do not free modify_expr_node_pool.
23805 2008-03-10 Paul Brook <paul@codesourcery.com>
23807 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
23808 to avoid conflicts.
23810 2008-03-10 Paul Brook <paul@codesourcery.com>
23811 Mark Shinwell <shinwell@codesourcery.com>
23813 * config/arm/cortex-r4.md: New.
23814 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
23816 * config/arm/arm.md: Include cortex-r4.md.
23817 (insn): Add smmls, sdiv and udiv values.
23818 (generic_sched): Don't use generic scheduling for Cortex-R4.
23819 (arm_issue_rate): New function.
23820 (TARGET_SCHED_ISSUE_RATE): Define.
23822 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
23824 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
23826 2008-03-10 Richard Guenther <rguenther@suse.de>
23828 * tree-ssa-pre.c (get_sccvn_value): Simplify.
23829 (compute_avail): Do not add stmt uses to AVAIL_OUT.
23831 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
23833 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
23834 Set default to true.
23836 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23838 * c.opt (Wsynth): Deprecate.
23839 * doc/invoke.texi (Option Summary, Warning Options): Document
23840 -Wno-format-contains-nul.
23842 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
23845 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
23846 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
23848 2008-03-09 Ira Rosen <irar@il.ibm.com>
23850 * config/rs6000/rs6000.c (builtin_description): Rename vector
23851 left shift operations.
23852 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
23853 (altivec_vsl<VI_char>): Rename to ...
23854 (ashl<mode>3): ... new name.
23855 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
23857 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
23859 2008-03-08 Richard Guenther <rguenther@suse.de>
23861 * coverage.h (tree_coverage_counter_addr): Declare.
23862 * coverage.c (tree_coverage_counter_addr): New function.
23863 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
23864 before using again.
23865 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
23866 (tree_gen_one_value_profiler): Likewise.
23867 (tree_gen_ic_profiler): Likewise.
23868 (tree_gen_average_profiler): Likewise.
23869 (tree_gen_ior_profiler): Likewise.
23871 2008-03-08 Richard Guenther <rguenther@suse.de>
23873 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
23874 (vn_binary_op_insert): Likewise.
23875 (vn_unary_op_lookup): Likewise.
23876 (vn_unary_op_insert): Likewise.
23877 (vn_nary_op_lookup): Declare.
23878 (vn_nary_op_insert): Likewise.
23879 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
23880 and binary hashes, use a single obstack for unary_op_pool
23881 and binary_op_pool.
23882 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
23883 a single struct vn_nary_op_s. Store tree code length and
23884 a variable number of operands.
23885 (struct vn_reference_op_struct): Remove unused op2.
23886 (vn_reference_op_eq): Do not compare op2.
23887 (vn_reference_op_compute_hash): Do not compute hash of op2.
23888 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
23889 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
23890 with vn_nary_op_compute_hash.
23891 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
23892 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
23894 (vn_unary_op_insert, vn_binary_op_insert): Replace with
23896 (visit_unary_op): Call nary functions.
23897 (visit_binary_op): Likewise.
23898 (process_scc): Adjust for struct vn_tables_s changes.
23899 (allocate_vn_table): Likewise.
23900 (free_vn_table): Likewise.
23901 * tree-vn.c (vn_add): Call nary functions.
23902 (vn_lookup): Likewise.
23904 2008-03-08 Jakub Jelinek <jakub@redhat.com>
23907 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
23908 wdst back after sync_compare_and_swapqhi_internal.
23910 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
23913 * config/i386/i386-modes.def (V1DI): New vector mode.
23914 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
23915 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
23916 (MMXMODE248): Ditto.
23917 (MMXMODE): Add V1DI mode.
23918 (mmxvecsize): Change DI mode to V1DI mode.
23919 ("mov<mode>): Use MMXMODEI8 mode iterator.
23920 ("*mov<mode>_internal_rex64"): Ditto.
23921 ("*mov<mode>_internal"): Ditto.
23922 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
23923 ("mmx_sub<mode>3"): Ditto.
23924 ("mmx_adddi3"): Remove insn pattern.
23925 ("mmx_subdi3"): Ditto.
23926 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
23927 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
23928 ("mmx_ashl<mode>3"): Ditto.
23929 ("mmx_lshrdi3"): Remove insn pattern.
23930 ("mmx_ashldi3"): Ditto.
23931 * config/i386/i386.c (classify_argument): Handle V1DImode.
23932 (function_arg_advance_32): Ditto.
23933 (function_arg_32): Ditto.
23934 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
23935 mmx_addv1di3 insn pattern.
23936 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
23937 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
23938 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
23939 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
23940 Remove definitions of built-in functions.
23941 (V1DI_type_node): New node.
23942 (v1di_ftype_v1di_int): Ditto.
23943 (v1di_ftype_v1di_v1di): Ditto.
23944 (v2si_ftype_v2si_si): Ditto.
23945 (v4hi_ftype_v4hi_di): Remove node.
23946 (v2si_ftype_v2si_di): Ditto.
23947 (ix86_init_mmx_sse_builtins): Handle V1DImode.
23948 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
23949 Redefine builtins using def_builtin_const with *_ftype_*_int node.
23950 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
23951 Add new builtins using def_builtin_const.
23952 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
23953 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
23954 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
23955 * config/i386/mmintrin.h (__v1di): New typedef.
23956 (_mm_add_si64): Cast arguments to __v1di type.
23957 (_mm_sub_si64): Ditto.
23958 (_mm_sll_pi16): Cast __count to __v4hi type.
23959 (_mm_sll_pi32): Cast __count to __v2si type.
23960 (_mm_sll_si64): Cast arguments to __v1di type.
23961 (_mm_srl_pi16): Cast __count to __v4hi type.
23962 (_mm_srl_pi32): Cast __count to __v2si type.
23963 (_mm_srl_si64): Cast arguments to __v1di type.
23964 (_mm_sra_pi16): Cast __count to __v4hi type.
23965 (_mm_sra_pi32): Cast __count to __v2si type.
23966 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
23967 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
23968 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
23969 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
23970 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
23971 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
23972 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
23973 (_mm_srai_pi32): Use __builtin_ia32_psradi.
23974 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
23975 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
23976 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
23977 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
23979 2008-03-07 Joseph Myers <joseph@codesourcery.com>
23981 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
23983 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
23986 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
23987 reg+const addressing for Altivec modes. Don't generate reg+reg
23988 addressing for TFmode or TDmode quantities.
23990 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
23992 * c-common.c (vector_types_convertible_p): Call langhook
23993 instead of comptypes.
23995 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
23998 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
23999 integral and scalar float variables which have a
24002 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
24004 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
24005 dwarf_register_span hook when emitting unwind information for
24006 register-to-memory saves.
24007 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
24008 (rs6000_frame_related): Remove call to spe_synthesize_frame.
24010 2008-03-06 Jakub Jelinek <jakub@redhat.com>
24012 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
24013 for the same VAR_DECL.
24015 2008-03-06 Tom Tromey <tromey@redhat.com>
24017 * treelang: Delete.
24018 * doc/standards.texi (Standards): Don't mention treelang.
24019 * doc/invoke.texi (Overall Options): Don't mention treelang.
24020 * doc/install.texi (Prerequisites): Don't mention bison or
24022 (Configuration): Don't mention treelang.
24023 (Building): Likewise.
24024 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
24026 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
24028 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
24029 word-extractions out of a multi-word object.
24031 2008-03-06 Richard Guenther <rguenther@suse.de>
24033 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
24034 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
24035 result type and precision.
24036 * expr.c (get_inner_reference): Set unsignedp based on the result
24037 type of BIT_FIELD_REF.
24038 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
24039 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
24040 (try_instantiate_multiple_fields): Likewise. Use the correct type
24042 (sra_build_assignment): Likewise.
24043 (sra_build_elt_assignment): Likewise.
24044 (sra_explode_bitfield_assignment): Likewise.
24045 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
24046 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
24047 set BIT_FIELD_REF_UNSIGNED.
24048 (vectorizable_load): Likewise.
24050 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
24052 * cse.c (cse_extended_basic_block): Invalidate artificial defs
24055 2008-03-06 Richard Guenther <rguenther@suse.de>
24057 * alias.c (struct alias_set_entry): Move has_zero_child field
24058 to pack with alias_set.
24060 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
24062 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
24065 2008-03-05 Ian Lance Taylor <iant@google.com>
24067 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
24069 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
24071 * fwprop.c (update_df): Support width and offset parameters of
24073 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
24074 global_conflicts): Change DF_REF_EXTRACT to either
24075 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
24076 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
24077 * df-scan.c (df_ref_record, df_defs_record,
24078 df_ref_create_structure, df_def_record_1, df_uses_record,
24079 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
24080 df_bb_refs_collect, df_entry_block_defs_collect,
24081 df_exit_block_uses_collect): Support new width and offset fields.
24082 (ref_extract_pool): New storage pool.
24083 (df_free_ref): New function.
24084 (df_reg_chain_unlink, df_free_collection_rec,
24085 df_sort_and_compress_refs): Call df_free_ref.
24086 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
24088 (df_ref_create_structure): Allocate df_ref_extract if offset and
24089 width fields are used.
24090 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
24091 (df_uses_record): Get offset and width from ZERO_EXTRACT
24093 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
24094 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
24095 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
24096 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
24097 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
24098 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
24099 (df_ref_extract): New structure.
24100 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
24101 (df_ref_create): Add width and offset parameters.
24103 2008-03-05 Richard Guenther <rguenther@suse.de>
24105 * tree-ssa-structalias.c (get_constraint_for_component_ref):
24106 Use ranges_overlap_p.
24107 (offset_overlaps_with_access): Rename
24108 to ranges_overlap_p and move ...
24109 * tree-flow-inline.h (ranges_overlap_p): ... here.
24111 * tree.h (get_inner_reference, handled_component_p): Update
24114 * tree.h (record_component_aliases, get_alias_set,
24115 alias_sets_conflict_p, alias_sets_must_conflict_p,
24116 objects_must_conflict_p): Move declarations ...
24117 * alias.h (record_component_aliases, get_alias_set,
24118 alias_sets_conflict_p, alias_sets_must_conflict_p,
24119 objects_must_conflict_p): ... here.
24120 Include coretypes.h.
24121 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
24123 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
24125 * cfg.c: Include tree-flow.h.
24126 (remove_edge_raw): Call redirect_edge_var_map_clear.
24127 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
24128 * tree-flow-inline.h (redirect_edge_var_map_def): New.
24129 (redirect_edge_var_map_result): New.
24130 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
24131 PENDING_STMT use with redirect_edge_var_map_*.
24132 * tree-ssa.c (edge_var_maps): New definition.
24133 (redirect_edge_var_map_add): New.
24134 (redirect_edge_var_map_clear): New.
24135 (redirect_edge_var_map_dup): New.
24136 (redirect_edge_var_map_vector): New.
24137 (redirect_edge_var_map_destroy): New.
24138 (ssa_redirect_edge): Replace PENDING_STMT use with
24139 redirect_edge_var_map_*.
24140 (flush_pending_stmts): Same.
24141 (delete_tree_ssa): Destroy edge var map.
24142 * tree-flow.h (struct _edge_var_map): New.
24143 Define edge_var_map vector type.
24144 Declare redirect_edge_var_map_* prototypes.
24145 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
24146 * tree-cfg.c (reinstall_phi_args): Replace
24147 PENDING_STMT use with redirect_edge_var_map_*.
24149 2008-03-05 Richard Guenther <rguenther@suse.de>
24151 PR tree-optimization/35472
24152 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
24153 whose single use_stmt has a overlapping set of loaded and
24154 stored symbols as that use_stmt might be a noop assignment then.
24156 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
24158 * gthr-rtems.h: Implement __gthread_mutex_destroy.
24160 2008-03-05 Richard Guenther <rguenther@suse.de>
24163 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
24164 should be constants.
24165 * tree-cfg.c (verify_expr): Verify it.
24166 * fold-const.c (fold_truthop): Remove code generating
24167 BIT_FIELD_REFs of structure bases.
24168 (fold_binary): Likewise.
24169 (fold_ternary): Position and size of BIT_FIELD_REFs are
24170 always host integers.
24171 (make_bit_field_ref): Remove.
24172 (optimize_bit_field_compare): Remove.
24173 (all_ones_mask_p): Remove.
24175 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
24178 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
24179 (split_block_and_df_analyze): New. Split basic block and rebuild
24181 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
24183 (split_pattern_seq): Likewise.
24184 (erase_matching_seqs): Likewise.
24185 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
24187 2008-03-04 Geoff Keating <geoffk@apple.com>
24189 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
24190 declaration and code.
24191 (tree_invalid_nonnegative_warnv_p): Likewise.
24193 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
24195 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
24196 examples. Truncate option-names then causing overfull hbox.
24198 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24201 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
24203 * configure: Rebuilt.
24205 2008-03-04 Rafael Espíndola <espindola@google.com>
24207 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
24208 (tree_unary_nonnegative_warnv_p): New.
24209 (tree_binary_nonnegative_warnv_p): New.
24210 (tree_single_nonnegative_warnv_p): New.
24211 (tree_invalid_nonnegative_warnv_p): New.
24212 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
24214 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24217 * opts.c (handle_option): Postpone 'unknown option' errors only for
24220 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
24223 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
24226 2008-03-04 Rafael Espíndola <espindola@google.com>
24228 * fold-const.c (tree_unary_nonzero_warnv_p): New.
24229 (tree_binary_nonzero_warnv_p): New.
24230 (tree_single_nonzero_warnv_p): New.
24231 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
24233 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
24235 PR middle-end/35456
24236 * fold-const.c (fold_cond_expr_with_comparison): Prevent
24237 transformations for modes that have signed zeros.
24238 * ifcvt.c (noce_try_abs): Ditto.
24240 2008-03-04 Joseph Myers <joseph@codesourcery.com>
24242 * config/i386/i386.c (override_options): Force
24243 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
24245 2008-03-04 Jan Hubicka <jh@suse.cz>
24248 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
24251 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
24253 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
24254 label to probe the stack.
24256 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
24258 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
24259 (__gthr_win32_mutex_destroy): Declare.
24260 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
24261 __gthr_win32_mutex_destroy.
24262 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
24264 2008-03-03 Jan Hubicka <jh@suse.cz>
24267 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
24268 aggressive on inlining cold calls.
24270 2008-03-03 Richard Guenther <rguenther@suse.de>
24272 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
24273 struct copies into the expression table.
24274 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
24275 (try_to_simplify): Likewise.
24276 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
24277 integral and pointer arguments which do not change the
24278 precision to NOP_EXPRs.
24279 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
24280 VIEW_CONVERT_EXPR case.
24282 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
24284 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
24285 defined in a loop at depth 0 is invariant.
24286 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
24287 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
24288 be called at loop depth 0.
24290 2008-03-02 Jakub Jelinek <jakub@redhat.com>
24293 * gcc.c (process_command): Update copyright notice dates.
24294 * gcov.c (print_version): Likewise.
24295 * gcov-dump.c (print_version): Likewise.
24296 * mips-tfile.c (main): Likewise.
24297 * mips-tdump.c (main): Likewise.
24299 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24302 * c-common.c (flag_permissive): Delete.
24303 (constant_expression_warnings): Check flags first.
24304 (constant_expression_error): New.
24305 * c-common.h (flag_permissive): Delete.
24306 (constant_expression_error): Declare.
24307 * flags.h (flag_permissive): Declare. Update description.
24308 * diagnostic.c (pedwarn): Update.
24310 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
24311 (permissive_error_kind): New.
24312 * toplev.c (flag_permissive): Define. Update description.
24313 * toplev.h (permissive_error_kind): Declare.
24314 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
24315 (pedwarn_c90): Use pedantic_warning_kind.
24316 * c-opts.c (c_common_post_options): flag_permissive does not affect
24317 flag_pedantic_errors.
24319 2008-03-02 Joseph Myers <joseph@codesourcery.com>
24321 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
24322 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
24323 __absvsi2, __absvDI2): Use unsigned arithmetic.
24325 2008-03-02 Andi Kleen <ak@suse.de>
24326 Richard Guenther <rguenther@suse.de>
24328 * struct-equiv.c: Remove file.
24329 * cfg_cleanup.c (condjump_equiv_p): Remove.
24330 * Makefile.in (OBJS-common): Remove struct-equiv.o.
24331 (struct-equiv.o): Remove rule.
24332 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
24333 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
24334 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
24336 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
24338 * ifcvt.c (noce_process_if_block): Try to handle only the then
24339 block if the else block exists but isn't suitable.
24341 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
24344 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
24345 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
24346 regression from previous patch.
24348 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
24351 * gthr.h: Add __gthread_mutex_destroy as a function that must be
24353 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
24354 * gthr-single.h (__gthread_mutex_destroy): Likewise.
24355 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
24356 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
24357 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
24358 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
24359 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
24360 (__gthread_mutex_destroy_function): Rename to
24361 __gthread_mutex_destroy.
24362 * gthr-dce.h (__gthread_mutex_destroy): Call
24363 pthread_mutex_destroy.
24364 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
24365 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
24366 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
24368 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
24370 * df-scan.c (df_ref_chain_change_bb): Simplify.
24371 (df_insn_change_bb): Add new_bb argument. Simplify. Call
24372 set_block_for_insn if there's any change.
24373 * df.h ((df_insn_change_bb): Fix prototype.
24374 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
24375 df_insn_change_bb, don't call set_block_for_insn.
24376 * emit-rtl.c (reorder_insns): Likewise.
24377 * haifa-sched.c (move_insn): Likewise.
24379 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
24381 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
24383 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
24385 * tree-flow-inline.h (next_readonly_imm_use): Return
24386 NULL_USE_OPERAND_P after the end.
24388 2008-03-01 Richard Guenther <rguenther@suse.de>
24390 PR tree-optimization/35411
24391 * tree-sra.c (sra_build_assignment): Split conversion to
24392 final type to a separate statement if we are not assigning
24395 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
24397 * fold-const.c (fold_convertible_p): Correct the logic to follow
24398 that in fold_convert().
24400 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
24403 * tree-inline.c (build_duplicate_type): When we make a
24404 duplicate type, make it unique in the canonical types system.
24406 2008-02-29 Tom Tromey <tromey@redhat.com>
24408 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
24409 input_file_stack_history, input_file_stack_restored): Remove.
24410 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
24411 * input.h (struct file_stack): Remove.
24412 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
24413 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
24415 * diagnostic.h (struct diagnostic_context) <last_module>: Change
24417 (diagnostic_last_module_changed): Add 'map' argument.
24418 (diagnostic_set_last_function): Likewise.
24419 * diagnostic.c (undiagnostic_report_current_module): Iterate using
24420 line map, not input_file_stack.
24421 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
24423 2008-02-29 Paul Brook <paul@codesourcery.com>
24425 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
24427 2008-02-29 Paul Brook <paul@codesourcery.com>
24429 * config/arm/ieee754-df.S (muldf3): Use RET macros.
24431 2008-02-29 Richard Guenther <rguenther@suse.de>
24433 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
24435 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
24436 value for comparing for a store match.
24437 (simplify_unary_expression): Do nothing for SSA_NAMEs.
24438 (try_to_simplify): Do not do a full-blown reference lookup.
24440 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
24442 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
24443 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
24445 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
24447 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
24449 * tree-loop-linear.c (try_interchange_loops): Compare memory access
24450 strides against cache sizes.
24452 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
24454 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
24457 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
24459 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
24460 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
24461 is smaller than the original promoted value.
24462 (simplify_subreg): If OP is a SUBREG, try to preserve its
24463 SUBREG_PROMOTED_VAR_P information.
24465 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
24467 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
24468 (VN_INFO_GET): Allocate new objects on the obstack.
24469 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
24470 for rpo_numbers_temp, for consistency.
24471 (free_scc_vn): Free the obstack.
24473 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
24475 * doc/invoke.texi: Document -ftree-loop-distribution.
24476 * tree-loop-distribution.c: New.
24477 * tree-pass.h (pass_loop_distribution): New.
24478 * graphds.h (struct graph): Add htab_t indices.
24479 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
24480 * tree-vectorizer.c (rename_variables_in_loop): Extern.
24481 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
24482 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
24483 * tree-data-ref.c (debug_data_dependence_relations): New.
24484 (dump_data_dependence_relation): Also print data references.
24485 (free_data_ref): Extern.
24486 (same_access_functions): Moved...
24487 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
24488 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
24489 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
24490 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
24491 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
24492 (stmts_from_loop): Skip LABEL_EXPR.
24493 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
24495 (build_rdg): Initialize rdg->indices htab.
24496 (free_rdg, stores_from_loop, ref_base_address,
24497 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
24498 have_similar_memory_accesses_1, ref_base_address_1,
24499 remove_similar_memory_refs): New.
24500 * tree-data-ref.h: Depend on tree-chrec.h.
24501 (debug_data_dependence_relations, free_data_ref): Declared.
24502 (same_access_functions): ... here.
24503 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
24505 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
24506 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
24507 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
24508 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
24509 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
24510 rdg_vertex_for_stmt): Declared.
24511 (struct rdg_edge): Add level.
24513 (free_rdg, stores_from_loop, remove_similar_memory_refs,
24514 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
24516 (rdg_has_similar_memory_accesses): New.
24517 * tree-vect-analyze.c: Remove unused static decls.
24518 * lambda.h (dependence_level): New.
24519 * common.opt (ftree-loop-distribution): New.
24520 * tree-flow.h (mark_virtual_ops_in_bb,
24521 slpeel_tree_duplicate_loop_to_edge_cfg,
24522 rename_variables_in_loop): Declared.
24523 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
24524 (OBJS-common): Add tree-loop-distribution.o.
24525 (tree-loop-distribution.o): New rule.
24526 * tree-cfg.c (mark_virtual_ops_in_bb): New.
24527 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
24528 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
24530 2008-02-28 Joseph Myers <joseph@codesourcery.com>
24533 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
24534 other than structures and unions.
24536 2008-02-28 Richard Guenther <rguenther@suse.de>
24539 2008-02-26 Richard Guenther <rguenther@suse.de>
24541 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
24542 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
24543 (lookup_decl_from_uid): Declare.
24544 (remove_decl_from_map): Likewise.
24545 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
24546 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
24547 (decl_for_uid_map): New global hashtable mapping DECL_UID
24549 (init_ttree): Allocate it.
24550 (insert_decl_to_uid_decl_map): New helper function.
24551 (make_node_stat): Insert new decls into the map.
24552 (copy_node_stat): Likewise.
24553 (lookup_decl_from_uid): New function.
24554 (remove_decl_from_map): Likewise.
24555 (print_decl_for_uid_map_statistics): New helper.
24556 (dump_tree_statistics): Call it.
24558 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
24559 (referenced_var_iterator): Adjust.
24560 (FOR_EACH_REFERENCED_VAR): Adjust.
24561 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
24562 (num_referenced_vars): Adjust.
24563 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
24564 (first_referenced_var): Remove.
24565 (end_referenced_vars_p): Likewise.
24566 (next_referenced_var): Likewise.
24567 (referenced_var_iterator_set): New helper function.
24568 * tree-dfa.c (referenced_var_lookup): Adjust.
24569 (referenced_var_check_and_insert): Likewise.
24570 (remove_referenced_var): Likewise.
24571 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
24572 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
24573 (verify_call_clobbering): Likewise.
24574 (verify_memory_partitions): Likewise.
24575 (init_tree_ssa): Allocate bitmap instead of hashtable for
24577 (delete_tree_ssa): Adjust.
24578 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
24579 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
24580 (compute_tag_properties): Likewise.
24581 (set_initial_properties): Likewise.
24582 (find_partition_for): Likewise.
24583 (update_reference_counts): Likewise.
24584 (dump_may_aliases_for): Likewise.
24585 * tree-ssa-operands.c (add_virtual_operand): Likewise.
24586 (add_call_clobber_ops): Likewise.
24587 (add_call_read_ops): Likewise.
24588 (get_asm_expr_operands): Likewise.
24589 * tree-into-ssa.c (dump_decl_set): Likewise.
24590 (update_ssa): Likewise.
24591 * tree-sra.c (scan_function): Likewise.
24592 (decide_instantiations): Likewise.
24593 (scalarize_parms): Likewise.
24594 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
24595 (dsa_named_for): Likewise.
24596 * tree-ssa-structalias.c (update_alias_info): Likewise.
24597 (merge_smts_into): Likewise.
24599 2008-02-27 David Daney <ddaney@avtrex.com>
24602 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
24603 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
24604 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
24605 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
24606 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
24608 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
24611 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
24612 (BUILT_IN_NEXTTOWARD): Remove.
24613 (BUILT_IN_NEXTTOWARDF): Ditto.
24614 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
24615 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
24617 2008-02-27 Tom Tromey <tromey@redhat.com>
24619 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
24620 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
24622 2008-02-27 Jan Beulich <jbeulich@novell.com>
24624 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
24625 update the respective field on newdecl.
24627 2008-02-27 Revital Eres <eres@il.ibm.com>
24629 PR rtl-optimization/34999
24630 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
24631 crossing edges that ends with a call insn.
24632 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
24633 call insn and clear the EDGE_CROSSING flag of the crossing edge
24634 when fixing fallthru edges.
24636 2008-02-27 Richard Guenther <rguenther@suse.de>
24638 PR middle-end/35390
24639 * fold-const.c (fold_unary): Return the correct argument,
24640 converted to the result type.
24642 2008-02-27 Richard Guenther <rguenther@suse.de>
24644 PR middle-end/34971
24645 * expr.c (expand_expr_real_1): Assert on rotates that operate
24647 * fold-const.c (fold_binary): Use the types precision, not the
24648 bitsize of the mode if folding rotate expressions. Build rotates
24649 only for full modes.
24651 2008-02-27 Jakub Jelinek <jakub@redhat.com>
24653 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
24654 and CPP_PRAGMA_EOL.
24655 * c-pragma.c (pragma_ns_name): New typedef.
24656 (registered_pp_pragmas): New variable.
24657 (c_pp_lookup_pragma): New function.
24658 (c_register_pragma_1): If flag_preprocess_only, do nothing
24659 for non-expanded pragmas, for expanded ones push pragma's
24660 namespace and name into registered_pp_pragmas vector.
24661 (c_invoke_pragma_handler): Register OpenMP pragmas even when
24662 flag_preprocess_only, don't register GCC pch_preprocess
24663 pragma if flag_preprocess_only.
24664 * c-opts.c (c_common_init): Call init_pragma even if
24665 flag_preprocess_only.
24666 * c-pragma.c (c_pp_lookup_pragma): New prototype.
24667 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
24668 cpp_register_pragma if flag_preprocess_only.
24670 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24673 * c-parser.c (c_parser_translation_unit): Warn for empty
24674 translation unit, not empty source file.
24676 2008-02-26 Paul Brook <paul@codesourcery.com>
24678 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
24679 operand for Thumb-2.
24680 * config/arm/arm.h (reg_class): Add CORE_REGS.
24681 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
24682 (BASE_REG_CLASS): Use CORE_REGS.
24683 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
24684 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
24685 (REGNO_OK_FOR_INDEX_P): Exclude SP.
24686 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
24687 ARM_REGNO_OK_FOR_INDEX_P.
24688 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
24689 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
24690 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
24691 (ldm/stm peepholes): Ditto.
24692 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
24693 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
24694 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
24695 * config/arm/constraints.md: Enable "k" constraint on ARM.
24697 2008-02-27 Ben Elliston <bje@au.ibm.com>
24699 * config/rs6000/rs6000.c: Annotate cache line size field in all
24700 instances of struct processor_costs.
24702 2008-02-26 David Edelsohn <edelsohn@gnu.org>
24704 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
24705 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
24706 jump_bypass): New counters.
24707 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
24708 * dce.c (gate_ud_dce): Same.
24709 (gate_fast_dce): Same.
24710 * dse.c (gate_dse1): New function.
24711 (gate_dse2): New function.
24712 (gate_dse): Merge results of new gate functions.
24713 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
24714 (gate_handle_jump_bypass): Add dbg_cnt.
24715 (gate_handle_gcse): Add dbg_cnt.
24716 * ifcvt.c (gate_handle_if_conversion): Same.
24717 (gate_handle_if_after_combine): Same.
24718 (gate_handle_if_after_reload): Same.
24719 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
24721 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
24723 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
24725 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
24727 2008-02-26 Jason Merrill <jason@redhat.com>
24730 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
24731 alone if it's the naming decl for the type's main variant.
24733 2008-02-26 Tom Tromey <tromey@redhat.com>
24735 * system.h (USE_MAPPED_LOCATION): Poison.
24736 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
24737 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
24738 (make_goto_expr_edges): Likewise.
24739 (remove_bb): Likewise.
24740 (execute_warn_function_return): Likewise.
24741 * basic-block.h (struct edge_def) <goto_locus>: Change type to
24743 * c-common.c (fname_decl): Remove old location code.
24744 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
24746 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
24748 (ASM_INPUT_SOURCE_LOCATION): Likewise.
24749 (gen_rtx_ASM_INPUT): Likewise.
24750 (gen_rtx_ASM_INPUT_loc): Likewise.
24751 (get_rtx_asm_OPERANDS): Remove.
24752 * cfglayout.c (insn_locators_alloc): Remove old location code.
24753 (set_curr_insn_source_location): Likewise.
24754 (curr_insn_locator): Likewise.
24755 * print-tree.c (print_node): Remove old location code.
24756 * tree-mudflap.c (mf_varname_tree): Remove old location code.
24757 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
24758 * cfgexpand.c (expand_gimple_cond_expr): Don't use
24759 location_from_locus.
24760 (construct_exit_block): Remove old location code.
24761 * emit-rtl.c (force_next_line_note): Remove old location code.
24762 * profile.c (branch_prob): Remove old location code.
24763 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
24764 LOC_LINE): Remove old-location variants.
24765 * langhooks.c (lhd_print_error_function): Remove old location
24767 * configure, config.in: Rebuilt.
24768 * configure.ac (--enable-mapped-location): Remove.
24769 * c-decl.c (c_init_decl_processing): Remove old location code.
24770 (finish_function): Likewise.
24771 * recog.c (decode_asm_operands): Remove old location code.
24772 * c-pch.c (c_common_read_pch): Remove old location code.
24773 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
24775 * gimple-low.c (lower_function_body): Remove old location code.
24776 * toplev.c (unknown_location): Remove.
24777 (push_srcloc): Remove old-location variant.
24778 (process_options): Remove old location code.
24779 (lang_dependent_init): Likewise.
24780 * input.h (UNKNOWN_LOCATION): Move definition.
24781 (location_t): Undeprecate.
24782 (source_locus): Remove.
24783 (location_from_locus): Remove.
24784 (struct location_s): Remove.
24785 Remove all old-location code.
24786 (input_line, input_filename): Remove.
24787 * final.c (final_scan_insn): Remove old location code.
24788 * diagnostic.c (diagnostic_build_prefix): Remove
24789 USE_MAPPED_LOCATION test.
24790 * tree.h (gimple_stmt) <locus>: Now a location_t.
24791 (tree_exp) <locus>: Likewise.
24792 (DECL_IS_BUILTIN): Remove old-location variant.
24793 (annotate_with_file_line, annotate_with_locus): Likewise.
24794 (expr_locus, set_expr_locus): Update.
24795 * tree.c (build1_stat): Remove old location code.
24796 (last_annotated_node): Remove.
24797 (annotate_with_file_line): Remove old-location variant.
24798 (annotate_with_locus): Likewise.
24799 (expr_location): Remove old location code.
24800 (set_expr_location): Likewise.
24801 (expr_has_location): Likewise.
24802 (expr_locus): Likewise.
24803 (set_expr_locus): Likewise.
24804 (expr_filename): Don't use location_from_locus.
24805 (expr_lineno): Likewise.
24806 * rtl-error.c (location_for_asm): Remove old location code.
24807 * c-lex.c (cb_line_change): Remove old location code.
24808 (fe_file_change): Likewise.
24809 (cb_def_pragma): Likewise.
24810 (c_lex_with_flags): Likewise.
24811 * gengtype.c (do_typedef): Don't special-case location types.
24812 (define_location_structures): Remove.
24813 (main): Don't call define_location_structures.
24814 * tree-pretty-print.c (dump_implicit_edges): Remove old location
24817 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24820 * builtins.def (BUILT_IN_STDARG_START): Remove.
24821 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
24822 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
24823 * tree-inline.c (inline_forbidden_p_1): Likewise.
24825 2008-02-26 Richard Guenther <rguenther@suse.de>
24827 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
24828 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
24829 (lookup_decl_from_uid): Declare.
24830 (remove_decl_from_map): Likewise.
24831 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
24832 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
24833 (decl_for_uid_map): New global hashtable mapping DECL_UID
24835 (init_ttree): Allocate it.
24836 (insert_decl_to_uid_decl_map): New helper function.
24837 (make_node_stat): Insert new decls into the map.
24838 (copy_node_stat): Likewise.
24839 (lookup_decl_from_uid): New function.
24840 (remove_decl_from_map): Likewise.
24841 (print_decl_for_uid_map_statistics): New helper.
24842 (dump_tree_statistics): Call it.
24844 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
24845 (referenced_var_iterator): Adjust.
24846 (FOR_EACH_REFERENCED_VAR): Adjust.
24847 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
24848 (num_referenced_vars): Adjust.
24849 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
24850 (first_referenced_var): Remove.
24851 (end_referenced_vars_p): Likewise.
24852 (next_referenced_var): Likewise.
24853 (referenced_var_iterator_set): New helper function.
24854 * tree-dfa.c (referenced_var_lookup): Adjust.
24855 (referenced_var_check_and_insert): Likewise.
24856 (remove_referenced_var): Likewise.
24857 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
24858 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
24859 (verify_call_clobbering): Likewise.
24860 (verify_memory_partitions): Likewise.
24861 (init_tree_ssa): Allocate bitmap instead of hashtable for
24863 (delete_tree_ssa): Adjust.
24864 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
24865 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
24866 (compute_tag_properties): Likewise.
24867 (set_initial_properties): Likewise.
24868 (find_partition_for): Likewise.
24869 (update_reference_counts): Likewise.
24870 (dump_may_aliases_for): Likewise.
24871 * tree-ssa-operands.c (add_virtual_operand): Likewise.
24872 (add_call_clobber_ops): Likewise.
24873 (add_call_read_ops): Likewise.
24874 (get_asm_expr_operands): Likewise.
24875 * tree-into-ssa.c (dump_decl_set): Likewise.
24876 (update_ssa): Likewise.
24877 * tree-sra.c (scan_function): Likewise.
24878 (decide_instantiations): Likewise.
24879 (scalarize_parms): Likewise.
24880 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
24881 (dsa_named_for): Likewise.
24882 * tree-ssa-structalias.c (update_alias_info): Likewise.
24883 (merge_smts_into): Likewise.
24885 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24888 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
24889 * c-opts.c (c_common_handle_option): Wall enables
24890 Wvolatile-register-var.
24891 * common.opt: Move Wvolatile-register-var to...
24894 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24896 * common.opt (Wlarger-than=): New.
24897 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
24899 * opts.c (common_handle_option): Handle -Wlarger-than=.
24900 * optc-gen.awk: Likewise.
24901 * opth-gen.awk: Likewise.
24902 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
24903 * tree-optimize.c (tree_rest_of_compilation): Likewise.
24905 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24907 * c-common.c (match_case_to_enum_1): Add appropriate
24908 OPT_W* parameter to warning.
24909 (c_do_switch_warnings): Likewise.
24910 * c-typeck.c (warning_init): Add one more parameter following
24911 'warning' function.
24912 (push_init_level): Update call to warning_init.
24913 (pop_init_level): Likewise.
24914 (add_pending_init): Likewise.
24915 (output_init_element: Likewise.
24917 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24920 * toplev.c (toplev_main): If there are warnings or error, print
24921 errors for ignored options.
24922 * opts.c (ignored_options): New static variable.
24923 (postpone_unknown_option_error): New.
24924 (print_ignored_options): New.
24925 (handle_option): Postpone errors for unknown -Wno-* options.
24926 * opts.h (print_ignored_options): Declare.
24928 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
24930 * config/mips/mips.md (loadgp_blockage, blockage): Change type
24933 2008-02-25 Richard Guenther <rguenther@suse.de>
24936 2008-02-25 Richard Guenther <rguenther@suse.de>
24938 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
24939 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
24940 (lookup_decl_from_uid): Declare.
24941 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
24942 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
24943 (decl_for_uid_map): New global hashtable mapping DECL_UID
24945 (init_ttree): Allocate it.
24946 (insert_decl_to_uid_decl_map): New helper function.
24947 (make_node_stat): Insert new decls into the map.
24948 (copy_node_stat): Likewise.
24949 (lookup_decl_from_uid): New function.
24950 (print_decl_for_uid_map_statistics): New helper.
24951 (dump_tree_statistics): Call it.
24953 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
24954 (referenced_var_iterator): Adjust.
24955 (FOR_EACH_REFERENCED_VAR): Adjust.
24956 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
24957 (num_referenced_vars): Adjust.
24958 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
24959 (first_referenced_var): Remove.
24960 (end_referenced_vars_p): Likewise.
24961 (next_referenced_var): Likewise.
24962 (referenced_var_iterator_set): New helper function.
24963 * tree-dfa.c (referenced_var_lookup): Adjust.
24964 (referenced_var_check_and_insert): Likewise.
24965 (remove_referenced_var): Likewise.
24966 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
24967 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
24968 (verify_call_clobbering): Likewise.
24969 (verify_memory_partitions): Likewise.
24970 (init_tree_ssa): Allocate bitmap instead of hashtable for
24972 (delete_tree_ssa): Adjust.
24973 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
24974 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
24975 (compute_tag_properties): Likewise.
24976 (set_initial_properties): Likewise.
24977 (find_partition_for): Likewise.
24978 (update_reference_counts): Likewise.
24979 (dump_may_aliases_for): Likewise.
24980 * tree-ssa-operands.c (add_virtual_operand): Likewise.
24981 (add_call_clobber_ops): Likewise.
24982 (add_call_read_ops): Likewise.
24983 (get_asm_expr_operands): Likewise.
24984 * tree-into-ssa.c (dump_decl_set): Likewise.
24985 (update_ssa): Likewise.
24986 * tree-sra.c (scan_function): Likewise.
24987 (decide_instantiations): Likewise.
24988 (scalarize_parms): Likewise.
24989 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
24990 (dsa_named_for): Likewise.
24991 * tree-ssa-structalias.c (update_alias_info): Likewise.
24992 (merge_smts_into): Likewise.
24994 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
24997 * doc/invoke.texi (-fcx-limited-range): Document new option.
24998 * toplev.c (process_options): Handle -fcx-fortran-rules.
24999 * common.opt: Add documentation for -fcx-fortran-rules.
25001 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
25004 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
25005 actual behaviour and C99.
25007 2008-02-26 Ben Elliston <bje@au.ibm.com>
25009 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
25010 (ASM_CPU_POWER6_SPEC): Likewise.
25011 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
25012 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
25013 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
25015 2008-02-25 Richard Guenther <rguenther@suse.de>
25017 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
25018 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
25019 (lookup_decl_from_uid): Declare.
25020 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
25021 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
25022 (decl_for_uid_map): New global hashtable mapping DECL_UID
25024 (init_ttree): Allocate it.
25025 (insert_decl_to_uid_decl_map): New helper function.
25026 (make_node_stat): Insert new decls into the map.
25027 (copy_node_stat): Likewise.
25028 (lookup_decl_from_uid): New function.
25029 (print_decl_for_uid_map_statistics): New helper.
25030 (dump_tree_statistics): Call it.
25032 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
25033 (referenced_var_iterator): Adjust.
25034 (FOR_EACH_REFERENCED_VAR): Adjust.
25035 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
25036 (num_referenced_vars): Adjust.
25037 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
25038 (first_referenced_var): Remove.
25039 (end_referenced_vars_p): Likewise.
25040 (next_referenced_var): Likewise.
25041 (referenced_var_iterator_set): New helper function.
25042 * tree-dfa.c (referenced_var_lookup): Adjust.
25043 (referenced_var_check_and_insert): Likewise.
25044 (remove_referenced_var): Likewise.
25045 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
25046 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25047 (verify_call_clobbering): Likewise.
25048 (verify_memory_partitions): Likewise.
25049 (init_tree_ssa): Allocate bitmap instead of hashtable for
25051 (delete_tree_ssa): Adjust.
25052 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
25053 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25054 (compute_tag_properties): Likewise.
25055 (set_initial_properties): Likewise.
25056 (find_partition_for): Likewise.
25057 (update_reference_counts): Likewise.
25058 (dump_may_aliases_for): Likewise.
25059 * tree-ssa-operands.c (add_virtual_operand): Likewise.
25060 (add_call_clobber_ops): Likewise.
25061 (add_call_read_ops): Likewise.
25062 (get_asm_expr_operands): Likewise.
25063 * tree-into-ssa.c (dump_decl_set): Likewise.
25064 (update_ssa): Likewise.
25065 * tree-sra.c (scan_function): Likewise.
25066 (decide_instantiations): Likewise.
25067 (scalarize_parms): Likewise.
25068 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
25069 (dsa_named_for): Likewise.
25070 * tree-ssa-structalias.c (update_alias_info): Likewise.
25071 (merge_smts_into): Likewise.
25073 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
25076 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
25077 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
25078 * alias.h (nonoverlapping_memrefs_p): Likewise.
25080 2008-02-25 Jan Beulich <jbeulich@novell.com>
25082 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
25083 * config/i386/netware-libgcc.exp: Add __bswap?i2,
25084 __emultls_get_address, __emultls_register_common,
25085 __floatundi?f, and _Unwind_GetIPInfo.
25086 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
25087 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
25088 (gen_regparm_prefix): Likewise.
25089 (i386_nlm_encode_section_info): Sync with
25090 config/i386/winnt.c:i386_pe_encode_section_info().
25091 (i386_nlm_maybe_mangle_decl_assembler_name): New.
25092 i386_nlm_mangle_decl_assembler_name): New.
25093 (netware_override_options): New.
25094 * config/i386/netware.h (netware_override_options): Declare.
25095 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
25096 (i386_nlm_mangle_decl_assembler_name): Declare.
25097 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
25099 2008-02-25 Ben Elliston <bje@au.ibm.com>
25102 * c-decl.c (grokdeclarator): Remove unused local variables
25103 `typedef_type' and `type_as_written'.
25105 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
25106 unused local variable `has_hot_blocks'.
25107 (fix_crossing_conditional_branches): Remove unused local variable
25110 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
25112 PR middle-end/19984
25113 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
25114 using DEF_C99_BUILTIN.
25115 (BUILT_IN_NANF): Ditto.
25116 (BUILT_IN_NANL): Ditto.
25118 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
25119 Revital Eres <eres@il.ibm.com>
25121 * modulo-sched.c (calculate_must_precede_follow): Address TODO
25122 regarding the order of two dependent insns in the same row.
25124 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
25126 * stor-layout.c (layout_decl): Do not bump the alignment of a
25127 bit-field to more than byte alignment if it is packed.
25129 2008-02-24 David Edelsohn <edelsohn@gnu.org>
25131 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
25134 2008-02-24 Diego Novillo <dnovillo@google.com>
25136 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
25139 * tree-vrp.c (vrp_evaluate_conditional): With
25140 -Wtype-limits, emit a warning when comparing against a
25141 constant outside the natural range of OP0's type.
25142 * c.opt (Wtype-limits): Move ...
25143 * common.opt (Wtype-limits): ... here.
25145 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
25147 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
25148 * config/rs6000/e300c2c3.md: New file.
25149 * config/rs6000/rs6000.c (processor_costs): Add new costs for
25151 (rs6000_override_options): Add e300c2 and e300c3 cases to
25152 processor_target_table. Do not allow usage of Altivec or Spe
25153 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
25154 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
25155 * config/rs6000/rs6000.h (processor_type): Add
25156 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
25157 (ASM_CPU_SPEC): Add e300c2 and e300c3.
25158 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
25159 and ppce300c3. Include e300c2c3.md.
25161 2008-02-23 David Edelsohn <edelsohn@gnu.org>
25163 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
25164 instead of TARGET_STRICT_ALIGN.
25166 2008-02-23 Joseph Myers <joseph@codesourcery.com>
25168 * explow.c (memory_address): Assert that the generated address is
25171 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
25174 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
25175 * config/darwin-ppc-ldouble-patch.def: New file.
25176 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
25177 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
25178 SUBTARGET_INIT_BUILTINS if defined.
25179 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
25182 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
25185 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
25186 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
25188 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
25191 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
25192 file" warning condtional on -Winvalid-PCH.
25194 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
25196 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
25198 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
25202 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
25203 prevent reload from using MMX registers.
25204 (*mov<mode>_internal): Ditto.
25205 (*movv2sf_internal_rex64): Ditto.
25206 (*movv2sf_internal): Ditto.
25208 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25210 PR documentation/31569
25211 * doc/install.texi2html: Use makeinfo --no-number-sections.
25213 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
25215 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
25216 ensure that we can address an entire entity > 8 bytes. Don't
25217 generate reg+reg addressing for such data.
25219 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
25221 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
25222 strings when optimizing for size, unless the target cares about
25225 2008-02-22 Tom Tromey <tromey@redhat.com>
25227 * regclass.c (current_pass): Remove declaration.
25229 2008-02-22 Anatoly Sokolov <aesok@post.ru>
25231 * config/avr/libgcc.S (__RAMPZ__): Define.
25232 (__do_copy_data): Add for devices with 128KB code memory.
25234 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
25236 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
25238 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
25240 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
25242 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
25245 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25248 * c-typeck.c (build_binary_op): Warn about floating point
25249 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
25251 2008-02-21 Janis Johnson <janis187@us.ibm.com>
25254 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
25255 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
25257 (rs6000_override_options): Set altivec_abi as default, not override,
25258 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
25259 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
25260 is used; use new member spe_abi.
25261 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
25262 spe_abi and altivec_abi.
25264 2008-02-22 Tomas Bily <tbily@suse.cz>
25266 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
25268 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25271 * config.build (build_file_translate): Set to `CMD //c' only if
25273 * Makefile.in (build_file_translate): Improve comment.
25275 2008-02-21 Jan Hubicka <jh@suse.cz>
25277 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
25278 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
25279 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
25281 2008-02-21 Michael Matz <matz@suse.de>
25284 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
25286 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
25288 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
25289 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
25290 as insn constraint.
25291 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
25292 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
25293 SSE_VEC_FLOAT_MODE_P as insn constraint.
25294 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
25295 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
25296 sse4a_movntdf using MODEF mode iterator.
25297 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
25298 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
25299 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
25300 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
25301 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
25302 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
25303 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
25305 2008-02-21 Richard Guenther <rguenther@suse.de>
25307 * tree.def (PAREN_EXPR): New tree code.
25308 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
25310 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
25311 * expr.c (expand_expr_real_1): Likewise.
25312 * tree-inline.c (estimate_num_insns_1): Likewise.
25313 * tree-complex.c (expand_complex_move): Likewise.
25314 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
25317 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
25320 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
25322 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
25325 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
25327 * config/sh/sh.c (find_barrier): Don't go past
25328 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
25330 2008-02-20 DJ Delorie <dj@redhat.com>
25332 * config/h8300/h8300.md (insv): Force source operand to be a register.
25334 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
25335 as a jump, not as a plain insn.
25337 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
25339 * doc/invoke.texi (Warning Options): Add new option
25340 -Wframe-larger-than=.
25341 (-Wframe-larger-than): Document.
25343 * flags.h (warn_frame_larger_than, frame_larger_than_size):
25344 Add declarations for new option variables.
25346 * final.c (final_start_function): Check the frame size
25347 before emission and issue a Wframe-larger-than warning.
25349 * opts.c (warn_frame_larger_than, frame_larger_than_size):
25350 Add definitions for new option variables.
25351 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
25353 * common.opt (Wframe-larger-than=): New option.
25355 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
25357 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
25358 (<sse>_div<mode>3): Ditto.
25359 (<sse>_vmdiv<mode>3): Ditto.
25360 (<sse>_vmsqrt<mode>2): Ditto.
25361 (*smax<mode>3): Ditto.
25362 (sse5_frcz<mode>2): Ditto.
25363 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
25364 as insn constraint.
25366 2008-02-20 Richard Guenther <rguenther@suse.de>
25368 PR middle-end/35265
25369 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
25370 be happy with INTEGRAL_TYPE_P.
25372 2008-02-20 Richard Guenther <rguenther@suse.de>
25374 * fold-const.c (split_tree): Associate floatig-point expressions
25375 if flag_associative_math is set.
25377 2008-02-20 Richard Guenther <rguenther@suse.de>
25379 * tree.h (fold_real_zero_addition_p): Declare.
25380 * fold-const.c (fold_real_zero_addition_p): Export.
25381 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
25382 floating-point operations with zero and one.
25384 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
25386 * doc/install.texi: Correct references to CFLAGS, replacing them
25387 with BOOT_CFLAGS. Document flags used during bootstrap for
25390 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
25392 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
25393 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
25394 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
25396 (smin<mode>3): Ditto from similar patterns.
25397 (smax<mode>3): Ditto.
25398 (*ieee_smin<mode>3): Ditto.
25399 (*ieee_smax<mode>3): Ditto.
25400 * config/i386/sse.md (sse): New mode attribute.
25401 (mov<mode>): Macroize expander from movv4sf and movv2df using
25402 SSEMODEF2P mode iterator.
25403 (<sse>_movnt<mode>): Ditto from similar patterns. Use
25404 SSE_VEC_FLOAT_MODE_P as insn constraint.
25405 (storent<mode>): Ditto.
25406 (storent<mode>): Macroize expander from storentsf and storentdf using
25407 MODEF mode iterator.
25408 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
25409 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
25410 (abs<mode>2): Ditto from similar patterns.
25411 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
25412 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
25413 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
25414 (<sse>_vmsqrt<mode>2): Ditto.
25415 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
25416 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
25417 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
25418 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
25419 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
25420 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
25421 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
25423 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
25424 iterator and SSE_FLOAT_MODE_P as insn constraint.
25425 (<sse>_ucomi): Ditto from similar patterns.
25426 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
25427 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
25428 SSE_VEC_FLOAT_MODE_P as insn constraint.
25429 (vcond<mode>): Ditto from similar patterns.
25430 (and<mode>3, *and<mode>3): Ditto.
25431 (<sse>_nand<mode>3): Ditto.
25432 (ior<mode>3, *ior<mode>3): Ditto.
25433 (xor<mode>3, *xor<mode>3): Ditto.
25434 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
25435 iterator and SSE_FLOAT_MODE_P as insn constraint.
25436 (*nand<mode>3): Ditto from similar patterns.
25437 (*ior<mode>3): Ditto.
25438 (*xor<mode>3): Ditto.
25440 2008-02-20 Ira Rosen <irar@il.ibm.com>
25442 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
25443 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
25444 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
25446 2008-02-19 Jan Hubicka <jh@suse.cz>
25448 * predict.c (tree_bb_level_predictions): Remove variable next
25449 mistakely introduced by previous commit.
25451 2008-02-19 Jan Hubicka <jh@suse.cz>
25453 * predict.c (predict_paths_leading_to): Rewrite.
25454 (predict_paths_for_bb): New.
25455 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
25457 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25460 * Makefile.in (build_file_translate): New.
25461 (gcc-vers.texi): Use it for translating $(abs_srcdir).
25462 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
25463 * configure.ac (build_file_translate): Substitute it.
25464 * configure: Regenerate.
25466 2008-02-19 Jan Hubicka <jh@suse.cz>
25468 PR rtl-optimization/34408
25469 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
25472 2008-02-19 Jan Hubicka <jh@suse.cz>
25474 PR middle-end/28779
25475 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
25478 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
25481 * config/i386/i386-modes.def: Revert the last DI alignment
25482 change until Ada people can look into it.
25484 2008-02-19 Nick Clifton <nickc@redhat.com>
25486 * opts.c (print_specific_help): Fix typo in --help text.
25488 2008-02-19 Jakub Jelinek <jakub@redhat.com>
25491 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
25492 32-bit inline asm without asm alternatives for host GCC < 3.0.
25494 2008-02-19 Richard Guenther <rguenther@suse.de>
25496 PR tree-optimization/34989
25497 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
25498 Allow propagation to INDIRECT_REF if we can simplify only.
25500 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25502 * c-common.c (warn_for_collisions_1): Use appropriate option when
25505 2008-02-19 Nick Clifton <nickc@redhat.com>
25508 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
25509 (handle_options): Fix indentation.
25510 (print_filtered_help): If no language-specific options were
25511 displayed tell the user how to list all the options supported by
25512 the language's front-end.
25513 (print_specific_help): Fix indentation and remove duplicate line.
25514 (common_handle_option): Handle the -v option.
25515 For --help enable the display of undocumented options if the -v
25516 switch has been included on the command line.
25517 For --help= check for overlaps in the arguments between the option
25518 classes and the language names and issue a warning when they
25519 cannot be disambiguated.
25520 * c.opt (v): Pass on to the common option handler.
25522 2008-02-19 Revital Eres <eres@il.ibm.com>
25524 * modulo-sched.c (sms_schedule): Change dump message when
25525 create_ddg function fails.
25526 (try_scheduling_node_in_cycle): Rename row to cycle.
25527 (print_partial_schedule): Rename CYCLE to ROW.
25529 2008-02-19 Christian Bruel <christian.bruel@st.com>
25530 Zdenek Dvorak <ook@ucw.cz>
25532 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
25534 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
25537 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
25538 (*x86_movdicc_0_m1_se): Ditto.
25540 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
25542 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
25543 (CMPtype): Define as __gcc_CMPtype.
25544 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
25545 (CMPtype): Define as __gcc_CMPtype.
25547 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
25549 Support valgrind 3.3 for --enable-checking=valgrind.
25550 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
25552 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
25553 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
25554 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
25555 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
25556 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
25557 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
25558 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
25560 * ggc-zone.c: Similar.
25561 * ggc-page.c: Similar.
25563 2008-02-19 Paul Brook <paul@codesourcery.com>
25566 * config/arm/ieee754-df.S: Fix do_it typo.
25567 * config/arm/ieee754-sf.S: Fix do_it typo.
25569 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
25572 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
25573 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
25574 (OPTION_MASK_ISA_SSE_SET): Likewise.
25575 (OPTION_MASK_ISA_SSE2_SET): Likewise.
25576 (OPTION_MASK_ISA_SSE3_SET): Likewise.
25577 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
25578 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
25579 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
25580 (OPTION_MASK_ISA_SSE4_SET): Likewise.
25581 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
25582 (OPTION_MASK_ISA_SSE5_SET): Likewise.
25583 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
25584 (OPTION_MASK_ISA_MMX_UNSET): Updated.
25585 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
25586 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
25587 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
25588 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
25589 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
25590 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
25591 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
25592 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
25593 (OPTION_MASK_ISA_SSE4): Removed.
25594 (ix86_handle_option): Turn on bits in ix86_isa_flags and
25595 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
25596 (override_options): Don't turn on implied SSE/MMX bits in
25599 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
25601 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
25604 2008-02-18 Joey Ye <joey.ye@intel.com>
25606 PR middle-end/34921
25607 * tree-nested.c (insert_field_into_struct): Set type alignment
25608 to field alignment if the former is less than the latter.
25610 2008-02-18 Jakub Jelinek <jakub@redhat.com>
25612 * BASE-VER: Set to 4.4.0.
25614 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25616 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
25617 * doc/cfg.texi: Likewise.
25618 * doc/extend.texi: Likewise.
25619 * doc/gty.texi: Likewise.
25620 * doc/invoke.texi: Likewise.
25621 * doc/loop.texi: Likewise.
25622 * doc/md.texi: Likewise.
25623 * doc/passes.texi: Likewise.
25624 * doc/rtl.texi: Likewise.
25625 * doc/sourcebuild.texi: Likewise.
25626 * doc/tm.texi: Likewise.
25627 * doc/tree-ssa.texi: Likewise.
25629 2008-02-17 Richard Guenther <rguenther@suse.de>
25631 PR middle-end/35227
25632 * tree-complex.c (init_parameter_lattice_values): Handle parameters
25633 without default definition.
25635 2008-02-17 Richard Guenther <rguenther@suse.de>
25637 PR tree-optimization/35231
25638 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
25641 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
25644 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
25645 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
25646 libgcc_cmp_return mode.
25648 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25651 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
25653 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
25655 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
25658 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25660 * doc/c-tree.texi: Use `@.' where appropriate.
25661 * doc/extend.texi: Likewise.
25662 * doc/install.texi: Likewise.
25663 * doc/invoke.texi: Likewise.
25664 * doc/loop.texi: Likewise.
25665 * doc/makefile.texi: Likewise.
25666 * doc/md.texi: Likewise.
25667 * doc/passes.texi: Likewise.
25668 * doc/standards.texi: Likewise.
25669 * doc/tm.texi: Likewise.
25671 2008-02-15 Jakub Jelinek <jakub@redhat.com>
25673 PR middle-end/35196
25674 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
25676 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
25677 rather than in entry_bb.
25679 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
25681 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
25682 libgcc_cmp_return mode.
25684 2008-02-15 Jakub Jelinek <jakub@redhat.com>
25686 PR middle-end/35130
25687 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
25688 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
25690 2008-02-15 Richard Guenther <rguenther@suse.de>
25691 Zdenek Dvorak <ook@ucw.cz>
25693 PR tree-optimization/35164
25694 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
25695 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
25696 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
25697 Only propagate addresses which do not have abnormal SSA_NAMEs
25700 2008-02-15 Joseph Myers <joseph@codesourcery.com>
25703 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
25705 2008-02-15 Jan Hubicka <jh@suse.cz>
25707 PR middle-end/35149
25708 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
25710 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
25712 PR middle-end/34621
25713 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
25714 when calculating alignment_pad.
25716 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
25718 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
25719 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
25720 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
25721 and STACK_BOUNDARY define.
25723 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
25725 PR preprocessor/35061
25726 * c-pragma.c (handle_pragma_pop_macro): Check that
25727 pushed_macro_table has been allocated.
25729 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
25731 PR middle-end/35136
25732 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
25733 (force_gimple_operand): Likewise.
25734 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
25735 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
25736 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
25737 (find_interesting_uses_address): Check addressability and alignment
25738 of the base expression only after substituting bases of IVs into it.
25740 2008-02-14 Michael Matz <matz@suse.de>
25743 * function.c (instantiate_virtual_regs_in_insn): Reload address
25744 before falling back to reloading the whole operand.
25746 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
25748 * config/s390/s390.c (s390_mainpool_start): Emit the pool
25749 before the first section switch note.
25751 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25753 * doc/bugreport.texi: Update copyright years.
25754 * doc/c-tree.texi: Likewise.
25755 * doc/cfg.texi: Likewise.
25756 * doc/cpp.texi: Likewise.
25757 * doc/cppinternals.texi: Likewise.
25758 * doc/fragments.texi: Likewise.
25759 * doc/frontends.texi: Likewise.
25760 * doc/gcc.texi: Likewise.
25761 * doc/gty.texi: Likewise.
25762 * doc/hostconfig.texi: Likewise.
25763 * doc/implement-c.texi: Likewise.
25764 * doc/libgcc.texi: Likewise.
25765 * doc/loop.texi: Likewise.
25766 * doc/makefile.texi: Likewise.
25767 * doc/options.texi: Likewise.
25768 * doc/passes.texi: Likewise.
25769 * doc/rtl.texi: Likewise.
25770 * doc/sourcebuild.texi: Likewise.
25771 * doc/standards.texi: Likewise.
25772 * doc/tree-ssa.texi: Likewise.
25773 * doc/trouble.texi: Likewise.
25775 * doc/extend.texi: Use @: or add comma where appropriate.
25776 * doc/invoke.texi: Likewise.
25777 * doc/tm.texi: Likewise.
25779 2008-02-14 Alan Modra <amodra@bigpond.net.au>
25782 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
25785 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
25787 * doc/md.texi (clz, ctz): Add reference.
25788 * doc/rtl.texi (clz, ctz): Likewise.
25790 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25793 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
25796 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
25798 * config/s390/s390.c (struct constant_pool): New field
25799 emit_pool_after added.
25800 (s390_mainpool_start): Set the emit_pool_after flag according
25801 to the section switch notes.
25802 (s390_mainpool_finish): Consider emit_pool_after when emitting
25803 the literal pool at the end of the function.
25804 (s390_chunkify_start): Force literal pool splits at section
25807 2008-02-13 Michael Matz <matz@suse.de>
25810 * var-tracking.c (clobber_variable_part): Correctly traverse the
25813 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25816 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
25817 Add -fdump-ipa-inline.
25818 * tree-dump.c (dump_files): Remove tree-inlined dump.
25819 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
25821 2008-02-12 Richard Guenther <rguenther@suse.de>
25823 PR tree-optimization/35171
25824 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
25827 2008-02-12 Richard Guenther <rguenther@suse.de>
25829 PR middle-end/35163
25830 * fold-const.c (fold_widened_comparison): Use get_unwidened in
25831 value-preserving mode. Disallow final truncation.
25833 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
25835 PR middle-end/35136
25836 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
25837 code from here to...
25838 (force_gimple_operand): ...here.
25840 2008-02-12 Jakub Jelinek <jakub@redhat.com>
25843 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
25844 non-compatible pointers.
25845 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
25846 different FIELD_DECLs, try harder by comparing field offsets, sizes
25849 PR inline-asm/35160
25850 * function.c (match_asm_constraints_1): Don't replace the same input
25853 2008-02-12 Anatoly Sokolov <aesok@post.ru>
25855 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
25856 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
25857 (expand_epilogue): Restore RAMPZ register.
25858 * config/avr/avr.md (RAMPZ_ADDR): New constant.
25860 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
25862 * config/i386/cygwin.asm: (__alloca): Correct calling
25863 convention and alignment.
25864 (__chkstk): Force 8 byte stack alignment.
25866 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
25867 Richard Guenther <rguenther@suse.de>
25869 PR tree-optimization/33992
25870 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
25871 the zero we compare against.
25873 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
25875 PR libfortran/35063
25876 * gthr-win32.h (__gthread_mutex_destroy_function): New function
25877 to CloseHandle after unlocking to prevent accumulation of handle
25880 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25882 PR middle_end/34150
25883 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
25884 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
25885 and update LABEL_NUSES during and after reload.
25887 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
25889 PR middle-end/34627
25890 * combine.c (simplify_if_then_else): Make sure the comparison is
25891 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
25893 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
25896 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
25897 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
25898 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
25899 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
25900 * tree.h (get_type_static_bounds): Likewise.
25902 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25904 * doc/invoke.texi (Option Summary, C++ Dialect Options)
25905 (Objective-C and Objective-C++ Dialect Options, Warning Options):
25906 Make -Wfoo language annotations match what the compiler outputs.
25908 2008-02-08 Sa Liu <saliu@de.ibm.com>
25910 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
25911 intrinsics spu_convts, spu_convtu, spu_convtf.
25913 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
25915 * doc/extend.texi (Function Attributes) <noinline>: Mention
25916 asm ("") as method to keep calls.
25918 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25921 * doc/options.texi (Options): Replace references to opts.sh with
25923 * opts-common.c: Likewise.
25924 * optc-gen.awk: Likewise.
25926 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
25928 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
25930 2008-02-07 Richard Henderson <rth@redhat.com>
25933 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
25934 EXPR_LIST for the REG_EQUAL instead of a comparison with a
25937 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
25939 PR tree-optimization/35085
25940 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
25941 for operand entry oe2 in addition to operand entry oe3 in order to
25942 expose more opportunities for vectorizer sum reduction.
25944 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25947 * Makefile.in (LIBS): Remove $(GMPLIBS).
25948 (cc1-dummy, cc1): Add $(GMPLIBS).
25950 2008-02-06 Jan Hubicka <jh@suse.cz>
25953 * i386.md (moddf_integer): Do not produce partial memory stalls for
25954 targets where it hurts.
25956 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
25959 * optabs.c (expand_float): Do not check for decimal modes when
25960 expanding unsigned integer through signed conversion.
25962 2008-02-06 Nick Clifton <nickc@redhat.com>
25964 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
25965 inside the clobber with a match_operand and duplicated operand
25966 number in the constraint.
25967 (ineqbranchsi): Delete redundant comment.
25969 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
25971 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
25972 builtin_define ("__USE_INIT_FINI__").
25973 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
25975 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
25977 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25979 PR documentation/30330
25980 * doc/invoke.texi (C++ Dialect Options)
25981 (Objective-C and Objective-C++ Dialect Options, Warning Options):
25982 For each warning option -Wfoo that allows -Wno-foo, ensure both
25983 -Wfoo and -Wno-foo are listed in the option index. Fix index
25984 entry of -Wswitch-default, index -Wnormalized= including the
25985 `=', and -Wlarger-than-@var{len} including @var{len}.
25987 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
25989 * config/i386/i386.md (floatunssisf2): Use
25990 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
25991 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
25992 Macroize expander using MODEF mode iterator.
25994 2008-02-05 Diego Novillo <dnovillo@google.com>
25996 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
25999 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
26001 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26004 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
26006 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
26009 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
26010 to indicate if a message should be generated.
26011 (init_cumulative_args): Updated.
26012 (function_value_32): Likewise.
26014 2008-02-05 Joseph Myers <joseph@codesourcery.com>
26016 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
26018 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
26021 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
26022 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
26024 2008-02-04 Diego Novillo <dnovillo@google.com>
26026 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
26029 * tree-vrp.c (vrp_evaluate_conditional): With
26030 -Wtype-limits, emit a warning when comparing against a
26031 constant outside the natural range of OP0's type.
26033 2008-02-04 Richard Guenther <rguenther@suse.de>
26035 PR middle-end/33631
26036 * expr.c (count_type_elements): Give for unions instead of
26039 2008-02-04 Richard Guenther <rguenther@suse.de>
26041 PR middle-end/35043
26042 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
26043 to TYPE_DOMAINs base type instead of using bitsizetype here.
26045 2008-02-03 Jason Merrill <jason@redhat.com>
26047 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
26049 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26052 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
26053 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
26054 (RS/6000 and PowerPC Options): Fix typos and markup.
26055 * doc/passes.texi (Tree-SSA passes): Likewise.
26057 2008-02-02 Michael Matz <matz@suse.de>
26060 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
26061 from record_last_reg_set_info.
26062 (record_last_reg_set_info): Take an RTX argument, iterate over all
26063 constituent hardregs.
26064 (record_last_set_info, record_opr_changes): Change calls to
26065 new signature or to record_last_reg_set_info_regno.
26067 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
26069 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
26071 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
26073 PR rtl-optimization/34773
26074 * reg-notes.def (EQUAL): Mention significance of combination of
26075 REG_EQUAL and REG_RETVAL.
26076 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
26077 insn that has a REG_RETVAL.
26079 2008-02-01 Roger Sayle <roger@eyesopen.com>
26082 * configure.ac (--enable-fixed-point): Disable unless explicitly
26084 * configure: Regenerate.
26086 2008-02-01 Richard Guenther <rguenther@suse.de>
26089 * invoke.texi (-finline-limit): Remove no longer true parts
26090 of the documentation. Note that there is no default value.
26092 2008-02-01 Andrew Pinski <pinskia@gmail.com>
26093 Mark Mitchell <mark@codesourcery.com>
26094 Ben Elliston <bje@au.ibm.com>
26097 * doc/extend.texi (Other Builtins): Document.
26099 2008-01-31 Tom Browder <tom.browder@gmail.com>
26101 * doc/c-tree.texi (Types): Fix grammar.
26102 (Expression trees): Ditto.
26103 * doc/passes.texi (Tree-SSA passes): Ditto.
26105 * doc/configterms.texi (Configure Terms): Fix typo.
26106 * doc/cpp.texi (Common Predefined Macros): Ditto.
26107 * doc/md.texi (Machine Constraints): Ditto.
26109 * doc/makefile.texi (Makefile): Add comma.
26111 2008-01-31 Tom Browder <tom.browder@gmail.com>
26112 Gerald Pfeifer <gerald@pfeifer.com>
26114 * doc/sourcebuild.texi (Front End): Remove references to CVS
26115 and CVSROOT/modules.
26116 (Texinfo Manuals): Replace reference to CVS by one to SVN.
26117 (Back End): Remove reference to CVS.
26119 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
26122 * config/mips/mips.c (gen_load_const_gp): New function, taking a
26124 (mips16_gp_pseudo_reg): ...here.
26125 * config/mips/mips.md (load_const_gp): Replace with...
26126 (load_const_gp_<mode>): ...this :P-based insn.
26128 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26130 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
26131 options. Minor fixes.
26132 (-std): Move reference to standards closer to where language
26133 standards are first mentioned.
26135 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
26137 PR rtl-optimization/34995
26138 * reload.c (alternative_allows_const_pool_ref): Take an rtx
26139 parameter and return a bool. If the rtx parameter is nonnull,
26140 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
26141 (find_reloads): Update call accordingly. Pass the new operand
26142 if it needed no address reloads, otherwise pass null.
26144 2008-01-30 Richard Henderson <rth@redhat.com>
26147 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
26148 for unbounded arrays.
26150 2008-01-30 Silvius Rus <rus@google.com>
26152 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
26154 2008-01-30 Jan Hubicka <jh@suse.cz>
26157 * i386.c (init_cumulative_args): Use real function declaration when
26160 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
26162 PR rtl-optimization/34998
26163 * global.c (build_insn_chain): Treat non-subreg_lowpart
26164 SUBREGs of pseudos as clobbering all the words covered by the
26165 SUBREG, not just all the bytes.
26166 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
26167 original df_ref rather than an extract parameter.
26168 (global_conflicts): Update call accordingly.
26170 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
26172 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
26173 the overflow check to make it easier to read.
26174 (__fixtfdi): Change the type of the ll member in union
26175 long_double to UDItype_x.
26177 2008-01-30 Jakub Jelinek <jakub@redhat.com>
26179 PR middle-end/34969
26180 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
26181 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
26182 * tree-inline.c (fold_marked_statements): Call
26183 cgraph_update_edges_for_call_stmt if folding a call statement.
26184 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
26185 debug_generic_stmt calls, reset it back afterwards.
26188 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
26190 * c-typeck.c (build_external_ref): Don't pedwarn about
26191 static vars in current function's scope.
26193 2008-01-29 Joseph Myers <joseph@codesourcery.com>
26195 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
26197 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
26200 * ipa-struct-reorg.c: Fix spelling.
26201 * params.def: Ditto.
26203 2008-01-29 Richard Guenther <rguenther@suse.de>
26205 PR middle-end/35006
26206 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
26208 * tree-inline.c (remap_type): Increment remapping_type_depth
26209 around remapping types.
26210 (copy_body_r): Only add referenced variables if they are referenced
26211 from code, not types.
26213 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
26224 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
26225 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
26227 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
26230 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
26231 pointer for tiny stack.
26233 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
26235 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
26237 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
26239 * config/vx-common.h: Fix typo in comment.
26241 2008-01-28 Ian Lance Taylor <iant@google.com>
26245 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
26246 coalesce pointers if they have different DECL_NO_TBAA_P values.
26247 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
26248 between variables with different DECL_NO_TBAA_P values.
26250 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
26253 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
26254 are not legitimate small data references on SPE targets.
26256 2008-01-28 David Daney <ddaney@avtrex.com>
26258 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
26260 2008-01-28 David Daney <ddaney@avtrex.com>
26262 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
26264 2008-01-27 Joseph Myers <joseph@codesourcery.com>
26266 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
26267 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
26268 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
26269 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
26270 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
26271 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
26272 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
26273 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
26275 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
26277 * basic-block.h (condjump_equiv_p): Fix comment.
26279 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
26281 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
26282 print_generic_stmt_indented): Fix comment.
26284 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
26286 * configure.ac (__stack_chk_fail): Add detecion for availability
26287 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
26288 * configure: Regenerate.
26290 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
26292 PR middle-end/34688
26293 * final.c (output_addr_const): Handle TRUNCATE.
26295 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
26298 * tree-ssa-loop-ivopts.c (comp_cost): New type.
26299 (zero_cost, infinite_cost): New constants.
26300 (struct cost_pair): Change type of cost to comp_cost.
26301 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
26302 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
26304 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
26305 split_address_cost, ptr_difference_cost, difference_cost,
26306 get_computation_cost_at, get_computation_cost,
26307 determine_use_iv_cost_generic, determine_use_iv_cost_address,
26308 determine_use_iv_cost_condition, determine_use_iv_costs,
26309 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
26310 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
26311 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
26312 Change type of cost to comp_cost.
26313 (determine_iv_cost): Increase cost of non-original ivs, instead
26314 of decreasing the cost of original ones.
26315 (get_address_cost): Indicate the complexity of the addressing mode
26317 (try_add_cand_for): Prefer using ivs not specific to some object.
26318 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
26320 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
26321 Janis Johnson <janis187@us.ibm.com>
26324 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
26325 (TARGET_INSTANTIATE_DECLS): Likewise.
26326 * target.h (expand_to_rtl_hook): New target hook.
26327 (instantiate_decls): Likewise.
26328 * function.c (instantiate_decl): Make non-static. Rename to...
26329 (instantiate_decl_rtl): ... this.
26330 (instantiate_expr): Use instantiate_decl_rtl.
26331 (instantiate_decls_1): Likewise.
26332 (instantiate_decls): Likewise.
26333 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
26334 * function.h (instantiate_decl_rtl): Add prototype.
26335 * cfgexpand.c (target.h): New include.
26336 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
26337 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
26338 (TARGET_INSTANTIATE_DECLS): Likewise.
26339 (TARGET_INITIALIZER): New target hooks added.
26340 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
26342 * config/rs6000/rs6000.c (tree-flow.h): New include.
26343 (machine_function): Add sdmode_stack_slot field.
26344 (rs6000_alloc_sdmode_stack_slot): New function.
26345 (rs6000_instantiate_decls): Likewise.
26346 (rs6000_secondary_memory_needed_rtx): Likewise.
26347 (rs6000_check_sdmode): Likewise.
26348 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
26349 (TARGET_INSTANTIATE_DECLS): Likewise.
26350 (rs6000_hard_regno_mode_ok): Allow SDmode.
26351 (num_insns_constant): Likewise. Handle _Decimal32 constants.
26352 (rs6000_emit_move): Handle SDmode.
26353 (function_arg_advance): Likewise.
26354 (function_arg): Likewise.
26355 (rs6000_gimplify_va_arg): Likewise. Add special handling of
26356 SDmode var args for 32-bit compiles.
26357 (rs6000_secondary_reload_class): Handle SDmode.
26358 (rs6000_output_function_epilogue): Likewise.
26359 (rs6000_function_value): Simplify if statement.
26360 (rs6000_libcall_value): Likewise.
26361 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
26362 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
26363 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
26364 (movsd_hardfloat): New define_insn.
26365 (movsd_softfloat): Likewise.
26366 (movsd_store): Likewise.
26367 (movsd_load): Likewise.
26368 (extendsddd2): Likewise.
26369 (extendsdtd2): Likewise.
26370 (truncddsd2): Likewise.
26371 (movdd_hardfloat64): Fixup comment.
26372 (UNSPEC_MOVSD_LOAD): New constant.
26373 (UNSPEC_MOVSD_STORE): Likewise.
26375 2008-01-26 Jakub Jelinek <jakub@redhat.com>
26378 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
26380 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
26381 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
26382 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
26383 and TRUTH_XOR_EXPR.
26385 2008-01-26 David Edelsohn <edelsohn@gnu.org>
26388 * config.gcc: Separate AIX 5.3 from AIX 6.1.
26389 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
26390 __LONGDOUBLE128 too.
26391 * config/rs6000/aix61.h: New file.
26393 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
26395 PR rtl-optimization/34959
26396 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
26397 popcount and parity rtxes the same mode as their operand.
26398 Truncate or extend the result to the return value's mode
26401 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
26404 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
26405 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
26406 to GOT_VERSION_REGNUM.
26407 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
26408 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
26409 * config/mips/mips.c (mips_emit_call_insn): New function.
26410 (mips_call_tls_get_addr): Call mips_expand_call directly.
26411 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
26413 (mips16_build_call_stub): Likewise. Return the call insn or null.
26414 (mips_expand_call): Update the call to mips16_build_call_stub
26415 accordingly and a remove redundant condition. Assert that MIPS16
26416 stubs do not use lazy binding. Use mips_emit_call_insn and return
26418 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
26420 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
26421 (mips_avoid_hazard): Remove hazard_set handling.
26422 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
26423 (UNSPEC_RESTORE_GP): ...this.
26424 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
26425 (FAKE_CALL_REGNO): Rename to...
26426 (GOT_VERSION_REGNUM): ...this.
26427 (type): Add "ghost" value. Add an associated insn reservation.
26428 (hazard_set): Remove.
26429 (exception_receiver): Rename to...
26430 (restore_gp): ...this and update the unspec identifier accordingly.
26431 (exception_receiver, nonlocal_got_receiver): New expanders.
26432 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
26433 FAKE_CALL_REGNO. Remove hazard_set attribute.
26434 (set_got_version, update_got_version): New patterns.
26436 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
26439 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
26441 2008-01-25 Joseph Myers <joseph@codesourcery.com>
26444 * doc/install.texi2html: Generate gcc-vers.texi.
26446 2008-01-25 DJ Delorie <dj@redhat.com>
26448 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
26450 2008-01-25 Joseph Myers <joseph@codesourcery.com>
26452 * config/c4x: Remove directory.
26453 * config.gcc (crx-*, mt-*): Mark obsolete.
26454 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
26455 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
26456 sh-*-rtemscoff*): Remove cases.
26457 * defaults.h (C4X_FLOAT_FORMAT): Remove.
26458 * real.c (encode_c4x_single, decode_c4x_single,
26459 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
26460 c4x_extended_format): Remove.
26461 * real.h (c4x_single_format, c4x_extended_format): Remove.
26462 * doc/extend.texi (interrupt, naked): Remove mention of attributes
26464 (Pragmas): Remove comment about c4x pragmas.
26465 * doc/install.texi (c4x): Remove target-specific instructions.
26466 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
26467 * doc/md.texi (Machine Constraints): Remove C4x documentation.
26468 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
26469 refer to C4x source files as examples.
26470 (C4X_FLOAT_FORMAT): Remove documentation.
26472 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
26474 * config/bfin/bfin.c (override_options): Reorder tests so that
26475 flag_pic gets enabled for -msep-data.
26477 2008-01-25 Richard Guenther <rguenther@suse.de>
26479 PR middle-end/32244
26480 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
26481 to its bitfield precision if required.
26483 2008-01-25 Jakub Jelinek <jakub@redhat.com>
26485 PR middle-end/33880
26486 * tree-nested.c (walk_omp_for): New function.
26487 (convert_nonlocal_reference, convert_local_reference): Call
26488 walk_omp_for on OMP_FOR.
26489 (convert_call_expr): Call walk_body on OMP_FOR's
26490 OMP_FOR_PRE_INIT_BODY.
26492 2008-01-25 Richard Guenther <rguenther@suse.de>
26494 PR tree-optimization/34966
26495 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
26496 default defs and PHI_NODEs we have to insert after the
26497 defining statement.
26499 2008-01-24 Nick Clifton <nickc@redhat.com>
26501 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
26502 Provide a default definition.
26503 (LIBGCC2_UNITS_PER_WORD): Likewise.
26505 * config/stormy16/stormy16.c: Include df.h for the prototype
26506 for df_regs_ever_live_p.
26507 (xstormy16_expand_builtin_va_start): Convert the stack offset
26508 into a component_ref and then use POINTER_PLUS_EXPR to add it
26509 to the incoming_virtual_args_rtx.
26510 (xstormy16_gimplify_va_arg_expr): Rename to
26511 xstormy16_gimplify_va_arg_expr.
26512 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
26513 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
26514 xstormy16_gimplify_va_arg_expr.
26515 Fix up some formatting issues.
26517 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
26518 Move to predicates.md.
26519 (xs_hi_general_operand): Likewise.
26520 (xs_hi_nonmemory_operand): Likewise.
26521 * config/stormy16/predicates.md:
26522 (xstormy16_carry_plus_operand): New predicate.
26523 (xs_hi_general_operand): New predicate.
26524 (xs_hi_nonmemory_operand): New predicate.
26525 * config/stormy16/stormy16-protos.h:
26526 (xstormy16_carry_plus_operand): Delete prototype.
26527 (xs_hi_general_operand): Likewise.
26528 (xs_hi_nonmemory_operand): Likewise.
26530 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
26531 modifiers as they are no longer needed and they can trigger
26532 reload spill failures.
26534 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
26535 with a match_operand in order to help reload.
26537 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
26538 constraint with 'e' for the 8th alternative as this version of
26539 the mov.w instruction only accepts the lower 8 registers.
26541 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
26544 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
26545 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
26548 2008-01-25 Jakub Jelinek <jakub@redhat.com>
26550 PR middle-end/33333
26551 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
26553 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
26555 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
26557 (remove_structure): Update allocations list before removing structure.
26559 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
26561 * ipa-struct-reorg.c (is_safe_cond_expr,
26562 create_new_stmts_for_cond_expr): Use integer_zerop function,
26563 that recognize not only zero-pointer, but zero-integer too.
26565 2008-01-25 Ben Elliston <bje@au.ibm.com>
26568 * fixproto: Escape "." in sed expression that strips leading "./".
26570 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
26573 * gcc.c (SWITCH_OK): Removed.
26574 (SWITCH_LIVE): Changed to bit.
26575 (SWITCH_FALSE): Likewise.
26576 (SWITCH_IGNORE): Likewise.
26577 (switchstr): Change live_cond to unsigned int.
26578 (process_command): Replace SWITCH_OK with 0.
26579 (do_self_spec): Likewise.
26580 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
26581 (give_switch): Likewise.
26582 (used_arg): Likewise.
26583 (do_spec_1): Set the SWITCH_IGNORE bit.
26584 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
26585 bits. Set the SWITCH_LIVE bit.
26587 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
26589 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
26591 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
26593 PR tree-optimization/34472
26594 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
26595 parameter to a "bool *" and set *DATA to false if there is
26596 an unsafe access. Do not delete the structure here.
26597 (check_cond_exprs): Delete it here instead.
26598 (check_cond_exprs, exclude_cold_structs): Do not increase
26599 I when removing a structure.
26601 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
26604 * config/i386/i386.c (ix86_expand_vector_init): Consider only
26605 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
26607 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
26609 PR middle-end/34934
26610 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
26611 a fixed vector for stack.
26613 2008-01-24 Ben Elliston <bje@au.ibm.com>
26616 * doc/gcc.texi (Software development): Add a direntry for g++.
26618 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
26620 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
26621 stale and straggling -fforce-addr comments above.
26623 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
26625 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
26626 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
26628 2008-01-23 Michael Matz <matz@suse.de>
26631 * dwarf2out.c (force_type_die): Use modified_type_die instead of
26634 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
26636 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
26637 malloc result type.
26639 2008-01-23 Anatoly Sokolov <aesok@post.ru>
26641 * config/avr/avr.c (avr_current_arch): New variable.
26642 (avr_arch_types): Add 'avr31' and 'avr51' entries.
26643 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
26644 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
26645 (avr_override_options): Init 'avr_current_arch'.
26646 (base_arch_s): Move from here...
26647 * config/avr/avr.h (base_arch_s): ... here. Add new members
26648 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
26649 'mega' to 'have_jmp_call'.
26650 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
26651 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
26653 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
26655 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
26656 MULTILIB_MATCHES): Ditto.
26658 2008-01-23 Richard Guenther <rguenther@suse.de>
26660 PR middle-end/31529
26661 * cgraphunit.c (cgraph_reset_node): Always mark the node
26662 not reachable if it is not queued already.
26664 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
26666 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
26667 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
26668 (cputype_selected): New static variable.
26669 (bfin_handle_option): Set it if -mcpu is used.
26670 (override_option): Select default set of workarounds if no cpu type
26671 selected on the command line.
26672 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
26674 From Michael Frysinger <michael.frysinger@analog.com>
26675 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
26676 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
26678 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
26679 for bf547, bf523, bf524, and bf526.
26680 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
26682 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
26683 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
26684 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
26685 __ADSPBF547__ and __ADSPBF54x__ for bf547.
26686 * doc/invoke.texi (Blackfin Options): Document that
26687 -mcpu now accept bf547, bf523, bf524, and bf526.
26689 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
26691 PR rtl-optimization/34628
26692 * combine.c (try_combine): Stop and undo after the first combination
26693 if an autoincrement side-effect on the first insn has effectively
26696 2008-01-22 David Edelsohn <edelsohn@gnu.org>
26699 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26700 Offset addresses are not valid for Altivec or paired float modes.
26702 2008-01-22 Jakub Jelinek <jakub@redhat.com>
26705 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
26706 if DECL_INITIAL (decl) is error_mark_node.
26709 * c-common.c (handle_vector_size_attribute): Only allow
26710 integral, scalar float and fixed point types. Handle OFFSET_TYPE
26711 the same way as pointer, array etc. types.
26712 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
26715 * tree.c (build_type_attribute_qual_variant): Call
26716 build_qualified_type if attributes are equal, but quals are not.
26718 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26721 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
26722 * flags.h (warn_strict_aliasing): Remove.
26723 (warn_strict_overflow): Remove.
26724 * opts.c (warn_strict_aliasing): Remove.
26725 (warn_strict_overflow): Remove.
26726 * c-opts.c (c_common_handle_option): -Wall only sets
26727 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
26728 (c_common_post_options): Give default values to -Wstrict-aliasing
26729 and -Wstrict-overflow if they are uninitialized.
26730 * common.opt (Wstrict-aliasing): Specify Var and Init.
26731 (Wstrict-overflow): Likewise.
26733 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
26735 PR rtl-optimization/26854
26736 PR rtl-optimization/34400
26737 PR rtl-optimization/34884
26738 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
26740 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
26741 (df_rd_bb_info.expanded_lr_out): Deleted
26742 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
26743 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
26744 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
26745 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
26746 Removed code to allocate, initialize or free expanded_lr_out.
26747 (df_rd_bb_local_compute_process_def): Restructured to make more
26749 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
26750 sets if the sets are being trimmed.
26752 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
26755 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
26756 (as_vers): Likewise.
26757 * configure: Regenerated.
26759 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26761 PR middle-end/33092
26762 * tree-pass.h (pass_build_alias): New pass.
26763 * tree-ssa-alias.c (gate_build_alias): New.
26764 (pass_build_alias): New.
26765 * passes.c (init_optimization_passes): Add pass_build_alias after
26766 pass_create_structure_vars.
26768 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
26770 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
26771 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
26772 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
26773 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
26774 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
26775 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
26776 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
26777 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
26778 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
26779 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
26780 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
26781 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
26782 * config/s390/s390.md (FP_ALL): New mode iterator.
26783 (_d): New mode attribute.
26784 ("*signbit<mode>2>"): Changed mode of first operand.
26785 ("isinf<mode>2"): Changed mode of first operand.
26786 ("*TDC_insn"): Adaptation for DFP modes.
26788 2008-01-22 Ben Elliston <bje@au.ibm.com>
26790 * tree.c (check_qualified_type): Improve function description.
26792 2008-01-21 Jason Merrill <jason@redhat.com>
26795 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
26796 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
26799 2008-01-21 DJ Delorie <dj@redhat.com>
26801 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
26804 2008-01-21 Richard Guenther <rguenther@suse.de>
26806 PR middle-end/34856
26807 * tree-cfg.c (verify_expr): Allow all invariant expressions
26808 instead of just constant class ones as reference argument.
26809 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
26810 like any other constant.
26811 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
26813 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
26815 * regmove.c (fixup_match_1): Update call crossed frequencies.
26817 2008-01-21 Richard Guenther <rguenther@suse.de>
26820 * tree-inline.c (setup_one_parameter): Deal with mismatched
26821 types using a VIEW_CONVERT_EXPR.
26823 2008-01-21 Alon Dayan <alond@il.ibm.com>
26824 Olga Golovanevsky <olga@il.ibm.com>
26826 PR tree-optimization/34701
26827 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
26828 when the structure size is not a power of 2.
26830 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
26832 * doc/install.texi: Add doc for --enable-checking=df.
26834 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
26836 PR rtl-optimization/34808
26837 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
26839 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
26841 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
26844 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
26846 PR rtl-optimization/26854
26847 PR rtl-optimization/34400
26848 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
26850 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
26851 (df_rd_bb_info.expanded_lr_out): New.
26852 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
26853 * loop_iv.c (iv_analysis_loop_init): Ditto.
26854 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
26855 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
26856 Added code to allocate, initialize or free expanded_lr_out.
26857 (df_rd_bb_local_compute_process_def): Restructured to make
26858 more understandable.
26859 (df_rd_confluence_n): Add code to do nothing with fake edges and
26860 code to no apply invalidate_by_call sets if the sets are being trimmed.
26861 (df_lr_local_finalize): Renamed to df_lr_finalize.
26862 (df_live_local_finalize): Renamed to df_live_finalize.
26864 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
26867 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
26868 deciding whether to use reciprocal instructions.
26870 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
26872 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
26873 dwarf2out_note_section_used if cold_text_section is NULL.
26875 2008-01-19 Jakub Jelinek <jakub@redhat.com>
26877 PR gcov-profile/34610
26878 * tree-cfg.c (make_edges): Mark both outgoing edges from
26879 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
26880 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
26881 from OMP_FOR and OMP_CONTINUE outgoing edges.
26883 * tree-profile.c (tree_profiling): Return early if
26884 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
26886 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
26887 from cfun to child_cfun.
26888 * function.h (struct function): Add after_tree_profile bit.
26890 2008-01-19 Anatoly Sokolov <aesok@post.ru>
26892 * config/avr/avr.S (_exit): Disable interrupt.
26894 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
26895 Steven Bosscher <stevenb.gcc@gmail.com>
26897 PR rtl-optimization/26854
26898 PR rtl-optimization/34400
26899 * df-problems.c (df_live_scratch): New scratch bitmap.
26900 (df_live_alloc): Allocate df_live_scratch when doing df_live.
26901 (df_live_reset): Clear the proper bitmaps.
26902 (df_live_bb_local_compute): Only process the artificial defs once
26903 since the order is not important.
26904 (df_live_init): Init the df_live sets only with the variables
26905 found live by df_lr.
26906 (df_live_transfer_function): Use the df_lr sets to prune the
26907 df_live sets as they are being computed.
26908 (df_live_free): Free df_live_scratch.
26910 2008-01-18 Ian Lance Taylor <iant@google.com>
26912 * common.opt: Add fmerge-debug-strings.
26913 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
26914 flag_merge_debug_strings rather than flag_merge_constants.
26915 * doc/invoke.texi (Option Summary): Mention
26916 -fmerge-debug-strings.
26917 (Debugging Options): Document -fmerge-debug-strings.
26919 2008-01-18 Ian Lance Taylor <iant@google.com>
26922 * tree.h (DECL_IS_OPERATOR_NEW): Define.
26923 (struct tree_function_decl): Add new field operator_new_flag.
26924 * tree-inline.c (expand_call_inline): When inlining a call to
26925 operator new, force the return value to go into a variable, and
26926 set DECL_NO_TBAA_P on that variable.
26927 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
26929 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
26932 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
26933 DWARF2_DEBUGGING_INFO.
26934 (dwarf2out_note_section_used): Ditto. Add prototype.
26935 (have_multiple_function_sections, text_section_used,
26936 cold_text_section_used, *cold_text_sections): Move declarations
26939 2008-01-17 Bob Wilson <bob.wilson@acm.org>
26941 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
26942 field and add signal_ra.
26943 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
26944 assignments to frame state pc. Move end of stack check after
26945 MD_FALLBACK_FRAME_STATE_FOR.
26946 (uw_update_context_1): Use frame state signal_regs if set, instead
26947 of checking signal_frame flag.
26948 (uw_update_context): Use frame state signal_ra if set.
26949 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
26950 * config/xtensa/linux-unwind.h: New file.
26952 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
26954 * modulo-sched.c (get_sched_window): Fix comment typo.
26956 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
26958 PR tree-optimization/34648
26959 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
26961 2008-01-17 Anatoly Sokolov <aesok@post.ru>
26963 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
26964 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
26966 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
26968 PR rtl-optimization/34400
26969 * df-core.c (df_worklist_dataflow_overeager,
26970 df_worklist_dataflow_doublequeue): New functions.
26971 (df_worklist_dataflow): Two different worklist solvers.
26972 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
26975 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
26978 * doc/invoke.texi: Document the dependence on pthread for fopenmp
26979 and ftree-parallelize-loops.
26981 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
26983 PR rtl-optimization/34826
26984 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
26986 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
26988 * global.c (find_reg): Mark the eh regs as used if necessary.
26989 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
26990 * ra.h (struct allocno): no_eh_reg field added. Changed
26991 no_stack_reg type to bitfield.
26993 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
26995 * tree.c (substitute_in_expr): Add missing 'break'.
26997 2008-01-17 Richard Guenther <rguenther@suse.de>
26999 PR tree-optimization/34825
27000 * tree-ssa-math-opts.c (is_division_by): Do not recognize
27001 x / x as division to handle.
27003 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27005 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
27006 "-pthread" is specified.
27007 * pa-hpux11.h (LIB_SPEC): Likewise.
27009 2008-01-16 Janis Johnson <janis187@us.ibm.com>
27010 Peter Bergner <bergner@vnet.ibm.com>
27012 PR rtl-optimization/33796
27013 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
27015 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27017 PR libgfortran/34699
27018 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
27020 * pa-hpux10.h (LINK_SPEC): Likewise.
27021 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
27023 2008-01-16 Richard Guenther <rguenther@suse.de>
27025 PR middle-end/32628
27026 * fold-const.c (fold_convert_const_int_from_int): Do not
27027 set overflow if that occured only because of a sign extension
27028 change when converting from/to a sizetype with the same
27029 precision and signedness.
27031 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
27034 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
27035 location address to the correct place. Update copyright year.
27037 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
27039 * lambda-code.c (lambda_transform_legal_p): Handle the case of
27040 no dependences in the dependence_relations vector.
27042 2008-01-16 Jan Hubicka <jh@suse.cz>
27044 PR rtl-optimization/31396
27045 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
27046 * cfg.c (dump_reg_info): Print it.
27047 * regs.h (struct reg_info_t): add freq_calls_crossed.
27048 (REG_FREQ_CALLS_CROSSED): New macro.
27049 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
27050 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
27051 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
27052 regmove_optimize): Update call crossed frequencies.
27053 * local-alloc.c (struct qty): Add freq_calls_crossed.
27054 (alloc_qty): Copute freq_calls_crossed.
27055 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
27056 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
27057 * ra.h (struct allocno): Add freq_calls_crossed.
27059 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
27061 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
27062 libgomp when compiling with ftree-parallelize-loops.
27063 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
27065 2008-01-16 Richard Guenther <rguenther@suse.de>
27067 PR tree-optimization/34769
27068 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
27069 * tree.c (int_cst_value): Instead make this function more
27070 permissive in what it accepts as valid input. Document this
27071 function always sign-extends the value.
27073 2008-01-16 Jakub Jelinek <jakub@redhat.com>
27074 Richard Guenther <rguenther@suse.de>
27077 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
27078 (gimple_fold_indirect_ref_rhs): ... this.
27079 (gimple_fold_indirect_ref): New function with foldings
27080 that preserve lvalueness.
27081 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
27082 * tree-flow.h (gimple_fold_indirect_ref): Declare.
27083 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
27084 to fold an INDIRECT_REF, fall back to the old use of
27085 fold_indirect_ref_1.
27087 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
27089 * tree-data-ref.c (subscript_dependence_tester_1): Call
27090 free_conflict_function.
27091 (compute_self_dependence): Same.
27093 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
27096 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
27097 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
27099 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
27100 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
27101 for DWARF2_UNWIND_INFO targets.
27103 2008-01-16 Richard Guenther <rguenther@suse.de>
27106 * c-typeck.c (common_pointer_type): Do not merge inconsistent
27107 type qualifiers for function types.
27109 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
27111 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
27112 loop_iterator li from previous commit.
27114 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
27116 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
27118 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
27120 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
27121 (parallelize_loops): Don't parallelize irreducible components.
27123 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27126 * c-opts (c_common_post_options): Do not enable CPP
27127 flag_pedantic_errors by default.
27129 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
27131 PR rtl-optimization/31944
27132 * cse.c (remove_pseudo_from_table): New function.
27133 (merge_equiv_classes): Use above function to remove pseudo-registers.
27134 (invalidate): Likewise.
27136 2008-01-13 Richard Guenther <rguenther@suse.de>
27138 PR middle-end/34601
27139 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
27140 instead of TYPE_MODE to deal with calls from expand_one_error_var.
27142 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
27144 * gcse.c (cprop_jump): Call validate_unshare_change instead of
27145 validate_change to unshare the source of the PC set.
27147 2008-01-12 Jan Hubicka <jh@suse.cz>
27149 PR middle-end/32135
27150 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
27151 references above array bounds. This might trigger bounds checks for
27152 pointers to arrays.
27154 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
27156 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
27157 new_replaceable_dependencies.
27159 2008-01-12 Doug Kwan <dougkwan@google.com>
27161 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
27162 instead of OPT_Wreturn_type in warning due to ignored return type
27164 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
27165 options included in -Wextra.
27166 * c.opt: New option -Wignored_qualifiers.
27167 * doc/invoke.texi (Warning Options, -Wextra): Add new option
27168 -Wignore_qualifiers.
27169 (-Wignored-qualifiers): Document.
27170 (-Wreturn-type): Remove description of functionality now handled
27171 by -Wignored-qualifiers.
27173 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
27176 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
27177 NOP_EXPR if it is between integral types with the same precision.
27179 2008-01-12 Jan Hubicka <jh@suse.cz>
27182 * invoke.texi (max-inline-recursive-depth): Fix default value.
27184 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
27186 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
27189 2008-01-11 Bob Wilson <bob.wilson@acm.org>
27191 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
27193 2008-01-11 James E. Wilson <wilson@specifix.com>
27196 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
27198 2008-01-11 Anatoly Sokolov <aesok@post.ru>
27200 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
27201 save/restore frame pointer register and don't use 'call-prologues'
27202 optimization in function with "OS_task" attribute.
27204 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
27206 PR middle-end/31309
27207 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
27208 when copying to memory.
27210 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
27212 PR rtl-optimization/30905
27213 * cfgcleanup.c: Include dce.h
27214 (crossjumps_occured): New global variable.
27215 (try_crossjump_bb): Exit loop after finding a fallthru edge.
27216 If something changed, set crossjumps_occured to true.
27217 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
27218 Don't add/remove fake edges to exit here...
27219 (cleanup_cfg): ...but do it here, when crossjumping.
27220 Run a fast DCE when successful crossjumps occured in the latest
27221 iteration of try_optimize_cfg.
27223 2008-01-11 Richard Guenther <rguenther@suse.de>
27225 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
27226 (struct vn_unary_op_s): Likewise.
27227 (vn_reference_insert): Free old reference on hash collision.
27229 2008-01-10 Raksit Ashok <raksit@google.com>
27231 PR rtl-optimization/27971
27232 * combine.c (find_split_point): Split PLUS expressions which are
27233 inside a MEM rtx, and whose first operand is complex.
27235 2008-01-10 DJ Delorie <dj@redhat.com>
27237 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
27238 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
27239 (m32c_hard_regno_ok): Call the underlying function.
27241 2008-01-10 Richard Guenther <rguenther@suse.de>
27243 PR middle-end/34683
27244 * tree-cfg.c (tree_merge_blocks): Do not go through the
27245 full-blown folding and stmt updating path if we just deal
27246 with virtual operands.
27247 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
27248 test for abnormal SSA_NAMEs.
27250 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
27252 PR middle-end/34641
27253 * reload.c (push_reload): Add assertions. All constants from
27254 reg_equiv_constant should have been used for replacing the respective
27256 (find_reloads_address): Invoke find_reloads_address_part for
27257 constant taken from the reg_equiv_constant array.
27259 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
27261 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
27262 field (valnum) the first in the struct. Replace bools with
27265 2008-01-10 Richard Guenther <rguenther@suse.de>
27267 PR tree-optimization/34651
27268 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
27269 types and ordering for masking and converting.
27271 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
27273 PR tree-optimization/34017
27274 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
27275 also for PHI_NODE expressions.
27277 2008-01-09 Jan Hubicka <jh@suse.cz>
27279 PR tree-optimization/34708
27280 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
27281 based on number of case labels.
27282 (init_inline_once): Remove switch_cost.
27283 * tree-inline.h (eni_weights_d): Remove switch_cost.
27285 2008-01-09 Richard Guenther <rguenther@suse.de>
27286 Andrew Pinski <andrew_pinski@playstation.sony.com>
27288 PR middle-end/30132
27289 * gimplify.c (gimplify_cond_expr): Do not create an addressable
27290 temporary if an rvalue is ok or an lvalue is not required.
27292 2008-01-09 Richard Guenther <rguenther@suse.de>
27294 PR middle-end/34458
27295 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
27296 adjust return type.
27298 2008-01-09 Richard Guenther <rguenther@suse.de>
27300 PR middle-end/34679
27301 * tree.c (host_integerp): Check for sizetype only if the
27302 type is an integer type.
27304 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
27307 * opts.c (decode_options): Disable inlining of functions called
27308 once if not in unit-at-a-time mode.
27310 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
27312 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
27314 2008-01-08 Richard Guenther <rguenther@suse.de>
27316 PR middle-end/31863
27317 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
27318 out early if the result will be unused.
27320 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
27325 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
27326 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
27329 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
27331 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
27332 for vectorization tuned.
27334 2008-01-08 Richard Guenther <rguenther@suse.de>
27336 PR tree-optimization/34683
27337 * tree-ssa-operands.c (operand_build_cmp): Export.
27338 * tree-ssa-operands.h (operand_build_cmp): Declare.
27339 * tree-vn.c (vuses_compare): Remove.
27340 (sort_vuses): Use operand_build_cmp.
27341 (sort_vuses_heap): Likewise.
27342 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
27343 to re-use old VEC if available. Do not sort already sorted VUSEs.
27344 (vdefs_to_vec): Do not sort already sorted VDEFs.
27346 2008-01-08 Jakub Jelinek <jakub@redhat.com>
27348 PR middle-end/34694
27349 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
27351 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
27354 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
27355 limitations of reciprocal sequences on x86 targets.
27357 2008-01-08 Richard Guenther <rguenther@suse.de>
27359 PR tree-optimization/34683
27360 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
27362 2008-01-07 Jakub Jelinek <jakub@redhat.com>
27365 * config/darwin.c (darwin_mergeable_string_section): Don't use
27366 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
27368 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
27371 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
27372 negxf2. Macroize expander using X87MODEF mode iterator. Change
27373 predicates of op0 and op1 to register_operand.
27374 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
27375 expander using X87MODEF mode iterator. Change predicates of
27376 op0 and op1 to register_operand.
27377 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
27378 corresponding patterns and macroize using MODEF macro. Change
27379 predicates of op0 and op1 to register_operand and remove
27380 "m" constraint. Disparage "r" alternative with "!".
27381 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
27382 macroize using X87MODEF macro. Change predicates of op0 and op1
27383 to register_operand and remove "m" constraint. Disparage "r"
27384 alternative with "!".
27385 (absneg splitter with memory operands): Remove.
27386 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
27387 patterns and macroize using X87MODEF mode iterator.
27388 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
27389 Change predicate of op1 to register_operand.
27390 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
27391 for memory operands.
27393 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
27395 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
27397 2008-01-07 Richard Guenther <rguenther@suse.de>
27399 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
27402 2008-01-07 Richard Guenther <rguenther@suse.de>
27404 PR tree-optimization/34683
27405 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
27406 VOPs of the needed size to save memory. Use VEC_quick_push
27407 to save compile-time.
27408 (vdefs_to_vec): Likewise.
27410 2008-01-07 Sa Liu <saliu@de.ibm.com>
27412 * config/spu/spu.md (divdf3): Genetate inline code for double
27413 division. The implementation doesn't handle INF or NAN, therefore it
27414 only applies when -ffinite-math-only is given.
27416 2008-01-06 Paolo Carlini <pcarlini@suse.de>
27419 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
27420 * doc/cpp.texi ([Common Predefined Macros]): Document.
27422 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
27424 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
27425 order to use commutative addition instead of subtraction.
27427 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
27428 Mircea Namolaru <namolaru@il.ibm.com>
27429 Vladimir Yanovsky <yanov@il.ibm.com>
27430 Revital Eres <eres@il.ibm.com>
27432 PR tree-optimization/34263
27433 * tree-outof-ssa.c (process_single_block_loop_latch,
27434 contains_tree_r): New functions.
27435 (analyze_edges_for_bb): Call process_single_block_loop_latch
27436 function to empty single-basic-block latch block if possible.
27438 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
27440 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
27442 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
27444 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
27446 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
27448 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
27450 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
27452 2008-01-05 Jakub Jelinek <jakub@redhat.com>
27454 PR tree-optimization/34618
27455 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
27458 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
27461 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
27462 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
27463 Update copyright year.
27465 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
27466 Update copyright year.
27467 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
27470 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
27472 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
27473 edge does not point to current bb before changing need_assert.
27475 2008-01-04 Richard Guenther <rguenther@suse.de>
27477 PR middle-end/34029
27478 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
27479 for verifying purposes if they are is_gimple_min_invariant.
27481 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
27483 PR tree-optimization/34448
27484 PR tree-optimization/34465
27485 * gimplify.c (gimplify_init_constructor): Add new parameter
27486 notify_temp_creation. Use it.
27487 (gimplify_modify_expr_rhs): Take volatiles into account when
27488 optimizing constructors.
27489 Do not optimize constructors if gimplify_init_constructor will dump to
27491 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
27492 * gcc.c-torture/compile/pr34448.c: New.
27494 2008-01-04 Jakub Jelinek <jakub@redhat.com>
27496 PR gcov-profile/34609
27497 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
27498 return_slot if result is TREE_ADDRESSABLE.
27500 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
27502 * config/mips/mips.md (sqrt_condition): Tweak comment.
27503 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
27505 2008-01-03 Tom Tromey <tromey@redhat.com>
27508 * c-common.c (c_type_hash): Handle VLAs.
27510 2008-01-03 Jan Hubicka <jh@suse.cz>
27512 PR tree-optimization/31081
27513 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
27514 0 when inlining and not inlining to first basic block.
27515 (remap_decl): When var is initialized to 0, don't set default_def.
27516 (expand_call_inline): Set entry_bb.
27517 * tree-inline.h (copy_body_data): Add entry_bb.
27519 2008-01-03 Jakub Jelinek <jakub@redhat.com>
27522 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
27525 PR tree-optimization/29484
27526 * tree-inline.c (inline_forbidden_p_2): New function.
27527 (inline_forbidden_p): Disallow inlining if some static var
27528 has an address of a local LABEL_DECL in its initializer.
27529 * doc/extend.texi (Labels as Values): Document &&foo behaviour
27532 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
27534 PR tree-optimization/34635
27535 * tree-data-ref.c (add_other_self_distances): Make sure that the
27536 evolution step is constant.
27538 2008-01-03 Jakub Jelinek <jakub@redhat.com>
27540 PR middle-end/34608
27541 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
27543 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
27545 * tree-sra.c (scalarize_init): Insert the generate_element_init
27546 statements after the generate_element_zero statements.
27548 2008-01-02 Richard Guenther <rguenther@suse.de>
27550 PR middle-end/34093
27551 PR middle-end/31976
27552 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
27553 for very large number of operands instead of ICEing.
27555 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
27558 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
27559 while stack probing.
27561 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
27563 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
27566 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
27568 PR libmudflap/26442
27569 * tree-mudflap.c (mx_register_decls): Guard warning by
27570 !DECL_ARTIFICIAL check.
27572 2008-01-01 Jakub Jelinek <jakub@redhat.com>
27574 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
27575 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
27576 sse5_perm<mode>): Fix constraints.