1 2008-12-03 Jakub Jelinek <jakub@redhat.com>
4 * tree-ssa-ccp.c (ccp_fold_builtin): Bail out if the builtin doesn't
5 have the right number of arguments.
7 2008-12-03 Richard Guenther <rguenther@suse.de>
10 * gimplify.c (is_gimple_mem_or_call_rhs): Remove work-around for
13 2008-12-03 Tomas Bily <tbily@suse.cz>
16 * tree-loop-distribution.c (build_size_arg): New function.
17 (generate_memset_zero): Checks if dr_analyze_innermost succeed.
18 Reorganized generating of stmts.
19 * testsuite/gcc.dg/tree-ssa/pr38250.c: New file.
20 * tree-data-ref.c (dr_analyze_innermost): Returns bool.
21 Indicate if analysis succeed.
22 * tree-data-ref.h (dr_analyze_innermost): Returns bool.
23 * tree-predcom.c (valid_initializer_p, find_looparound_phi):
24 Uses new definition of dr_analyze_innermost.
26 2008-12-03 Ben Elliston <bje@au.ibm.com>
28 * tree-ssa-pre.c (do_regular_insertion): Initialise edoubleprime.
30 2008-12-03 Jakub Jelinek <jakub@redhat.com>
32 PR tree-optimization/37716
33 * tree-sra.c (sra_build_assignment): For scalar bitfield SRC construct
34 all the needed operations as trees and gimplify_assign it to dst.
37 * configure.ac (gcc_cv_readelf): Look for readelf.
38 (gcc_cv_as_cfi_advance_working): Check for working
39 cfi advances with code alignment factor > 1.
40 (HAVE_GAS_CFI_DIRECTIVE): Don't define if cfi advances
42 * configure: Regenerated.
44 2008-12-03 Eric Botcazou <ebotcazou@adacore.com>
45 Jakub Jelinek <jakub@redhat.com>
46 Andrew Pinski <andrew_pinski@playstation.sony.com>
48 PR rtl-optimization/38281
49 * combine.c (distribute_notes): When invoking SET_INSN_DELETED on i2,
50 set it to NULL_RTX afterwards.
52 * emit-rtl.c (set_insn_deleted): Fix formatting.
54 2008-12-02 Richard Sandiford <rdsandiford@googlemail.com>
56 * config/mips/mips.c (mips_expand_builtin): Fix the mode of the
58 * config/mips/mips.md (IMOVE32): New mode iterator.
59 (movsi): Generalize with IMOVE32.
60 (*movsi_internal): Likewise.
61 (*mov<mode>_mips16): Likewise.
64 2008-12-02 Nathan Sidwell <nathan@codesourcery.com>
65 Maxim Kuvyrkov <maxim@codesourcery.com>
67 * config/m68k/lb1sf68.asm (PICCALL, PICJUMP): Use GOT instead of
68 PC-relative addressing when compiling for uclinux PIC.
69 (__cmpdf_internal, __cmpsf_internal): Hide.
70 (__cmpdf, __cmpsf): Use PIC call sequence.
72 2008-12-02 Andreas Tobler <a.tobler@schweiz.org>
73 Jack Howarth <howarth@bromo.med.uc.edu>
75 * config/i386/t-darwin64: Add m32 multilib support.
77 2008-12-02 Jack Howarth <howarth@bromo.med.uc.edu>
79 * testsuite/gcc.dg/darwin-comm.c: Expand to darwin10 and later.
81 2008-12-02 Jakub Jelinek <jakub@redhat.com>
84 * builtins.c (fold_builtin_memory_op): Convert len to sizetype
85 before using it in POINTER_PLUS_EXPR.
87 2008-12-02 Richard Guenther <rguenther@suse.de>
89 PR tree-optimization/38359
90 * fold-const.c (fold_binary): Fold -1 >> x to -1 only for
93 2008-12-02 Martin Jambor <mjambor@suse.cz>
96 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not check
98 (forward_propagate_addr_into_variable_array_index): Check that the
99 offset is not computed from a MULT_EXPR, use is_gimple_assign rather
100 than the gimple code directly.
102 2008-12-02 Ben Elliston <bje@au.ibm.com>
104 * config/spu/float_disf.c (__floatdisf): Prototype.
105 * config/spu/float_unsdisf.c (__float_undisf): Likewise.
106 * config/spu/float_unssidf.c (__float_unssidf): Constify cast.
107 * config/spu/float_unsdidf.c (__float_unsdidf): Likewise.
109 2008-12-02 DJ Delorie <dj@redhat.com>
111 * config/stormy16/stormy16.h (INCOMING_FRAME_SP_OFFSET): Negate.
112 (DWARF_CIE_DATA_ALIGNMENT): Define.
114 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout):
115 Invert add/sub for INCOMING_FRAME_SP_OFFSET.
116 (xstormy16_expand_prologue): Likewise.
117 (xstormy16_expand_builtin_va_start): Likewise.
118 (xstormy16_gimplify_va_arg_expr): Likewise.
120 2008-12-02 Jakub Jelinek <jakub@redhat.com>
123 * builtins.c (expand_builtin_mempcpy_args): Handle COMPOUND_EXPRs
124 potentially returned from folding memcpy.
125 (expand_builtin_stpcpy_args): Similarly for folding strcpy.
126 (fold_builtin_2): Handle BUILT_IN_STPCPY if result is ignored.
128 2008-12-02 Danny Smith <dannysmith@users.sourceforge.net>
131 * config/i386/winnt.c (i386_pe_encode_section_info): Condition stdcall
132 decoration of function RTL names here on Ada language.
134 2008-12-01 Vladimir Makarov <vmakarov@redhat.com>
136 PR rtl-optimization/38280
137 * ira-build.c (loop_is_inside_p, regno_allocno_order_compare_func,
138 ira_rebuild_regno_allocno_list): New functions.
139 (regno_allocnos): New static variable.
140 (remove_unnecessary_allocnos): Allocate/deallocate regno_allocnos.
141 Call ira_rebuild_regno_allocno_list.
143 2008-12-01 David Daney <ddaney@caviumnetworks.com>
144 Adam Nemet <anemet@caviumnetworks.com>
146 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add
147 LINUX_DRIVER_SELF_SPECS.
149 2008-12-01 Vladimir Makarov <vmakarov@redhat.com>
151 PR rtl-optimization/37514
152 * reload1.c (reload_as_needed): Invalidate reg_last_reload
155 2008-12-01 Jakub Jelinek <jakub@redhat.com>
158 * c-omp.c (c_finish_omp_for): Only transform pointer
159 ++ or -- into MODIFY_EXPR if second argument is non-NULL.
161 PR rtl-optimization/38245
162 * tree-vrp.c (abs_extent_range): New function.
163 (extract_range_from_binary_expr): Compute range
164 for *_DIV_EXPR even if vr1 is VR_VARYING, VR_ANTI_RANGE
165 or includes zero or if vr1 is VR_RANGE and op0 has some
168 2008-12-01 Uros Bizjak <ubizjak@gmail.com>
171 * config/alpha/alpha.c (alpha_split_atomic_op): Properly handle NAND
172 case by calculating ~(new_reg & val) instead of (~new_reg & val).
173 * config/alpha/sync.md (sync_nand<mode>): Change insn RTX
174 to (not:I48MODE (and:I48MODE (...))).
175 (sync_old_nand<mode>): Ditto.
176 (sync_new_nand<mode>): Ditto.
178 2008-12-01 Nick Clifton <nickc@redhat.com>
180 * config/stormy16/stormy16.md (CARRY_REG): New constant.
181 Replace uses of the "y" register class with direct references to
182 the CARRY_REG register.
183 * config/stormy16/stormy16.c: Replace clobbers of a BImode scratch
184 register with clobbers of the carry register.
185 (xstormy16_secondary_reload_class): Do not return CARRY_REGS.
186 (xstormy16_split_cbranch): Remove redundant carry parameter.
187 (xstormy16_expand_arith): Likewise.
188 * config/stormy16/stormy16.h (enum reg_class): Remove CARRY_REGS.
189 (IRA_COVER_CLASSES, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
190 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise.
191 (CARRY_REGNUM): Define.
192 * config/stormy16/stormy16-protos.h (xstormy16_split_cbranch):
194 (xstormy16_expand_arith): Likewise.
196 2008-12-01 Chen Liqin <liqin.chen@sunplusct.com>
198 * config/score/score.h (IRA_COVER_CLASSES): Define.
200 2008-11-30 Eric Botcazou <ebotcazou@adacore.com>
203 * config/sparc/sparc.md (divsi3 expander): Remove constraints.
204 (divsi3_sp32): Add new alternative with 'K' for operand #2.
205 (cmp_sdiv_cc_set): Factor common string.
206 (udivsi3_sp32): Add new alternative with 'K' for operand #2.
208 (cmp_udiv_cc_set): Factor common string.
210 2008-11-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
213 * varasm.c (emutls_finish): Fix common registration.
215 2008-11-29 Jakub Jelinek <jakub@redhat.com>
218 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
220 2008-11-29 David Edelsohn <edelsohn@gnu.org>
222 * config/rs6000/rs6000.c (rs6000_emit_sync): Remove support for
223 operand wrapped in NOT. Emit NAND as (ior (not X) (not Y)).
224 (rs6000_split_atomic_op): Emit NAND as (ior (not X) (not Y)).
225 * config/rs6000/sync.md (sync_nand<mode>): Represent NAND in RTL.
226 Call rs6000_emit_sync with CODE=NOT and unmodified operands.
227 Ignore sub-word case for now.
228 (sync_nand<mode>_internal): Represent NAND in RTL.
229 (sync_old_nand<mode): Same.
230 (sync_old_name<mode>_internal): Same.
231 (sync_new_nand<mode>): Same.
232 (sync_new_nand<mode>_internal): Same.
233 (sync_boolcshort_internal): Expect NAND.
235 2008-11-28 Richard Guenther <rguenther@suse.de>
237 PR tree-optimization/37955
238 PR tree-optimization/37742
239 * tree-vect-transform.c (vectorizable_store): Remove assert for
241 (vectorizable_load): Likewise.
243 2008-11-27 Richard Guenther <rguenther@suse.de>
245 * tree-ssa-structalias.c (intra_create_variable_infos): Make
246 a constraint for the static chain parameter.
248 2008-11-27 Bernd Schmidt <bernd.schmidt@analog.com>
250 * config/bfin/bfin.opt (micplb): New option.
251 * config/bfin/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Set it.
252 * config/bfin/bfin-protos.h (WA_INDIRECT_CALLS,
253 ENABLE_WA_INDIRECT_CALLS): New macros.
254 * config/bfin/bfin.c (bfin_cpus): Add WA_INDIRECT_CALLS to
256 (indirect_call_p): New function.
257 (workaround_speculation): Handle anomaly 05-00-0426 when
258 ENABLE_WA_INDIRECT_CALLS is true.
259 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
260 __WORKAROUND_INDIRECT_CALLS if ENABLE_WA_INDIRECT_CALLS.
261 * doc/invoke.texi (Blackfin Options): Document -micplb.
263 2008-11-26 DJ Delorie <dj@redhat.com>
265 * config/m32c/mov.md ("extendhipsi2"): New.
267 * config/m32c/bitops.md (bset_qi): Add memsym_operand predicate.
269 * config/m32c/bitops.md (andhi3_24, iorhi3_24): Don't prefer HL class.
270 * config/m32c/mov.md (zero_extendqihi2): Likewise.
272 2008-11-26 Adam Nemet <anemet@caviumnetworks.com>
274 * config/mips/mips.md (clear_hazard): Rename to
275 clear_hazard_<mode>. Use mode-specific addition.
276 (clear_cache): Rename gen_clear_hazard to gen_clear_hazard_si
277 or gen_clear_hazard_di depending on the size of Pmode.
279 2008-11-26 DJ Delorie <dj@redhat.com>
281 * configure.ac: Test m32c-elf-gas for .loc.
282 * configure: Likewise.
284 2008-11-26 Janis Johnson <janis187@us.ibm.com>
287 * doc/sourcebuild.texi (Test Directives): Add dg-timeout and
290 2008-11-26 Uros Bizjak <ubizjak@gmail.com>
292 * config/i386/sync.md (memory_barrier_nosse): Disable also for
293 TARGET_64BIT. Remove special asm template for TARGET_64BIT case.
294 (memory_barrier): Do not generate memory_barrier_nosse instruction
296 * config/i386/sse.md (*sse2_mfence): Also enable for TARGET_64BIT.
298 2008-11-26 Fredrik Unger <fred@tree.se>
300 * config/soft-fp/floatuntisf.c (__floatuntisf): Correct
301 function name from __floatundisf.
302 * config/soft-fp/fixdfti.c (__fixdfti): Correct argument type to
305 2008-11-25 Daniel Berlin <dberlin@dberlin.org>
306 Richard Guenther <rguenther@suse.de>
308 PR tree-optimization/37869
309 * tree-ssa-structalias.c (struct constraint_graph): Remove
310 pt_used and number_incoming members.
311 (build_pred_graph): Do not allocate them.
312 (condense_visit): Do not use them.
313 (label_visit): Likewise.
314 (free_var_substitution_info): Do not free them.
316 2008-11-25 Vladimir Makarov <vmakarov@redhat.com>
318 * doc/invoke.texi (ira-max-loops-num): Change semantics.
320 * ira-int.h (struct ira_loop_tree_node): New member to_remove_p.
322 * ira-color.c (allocno_spill_priority): New function.
323 (remove_allocno_from_bucket_and_push, push_allocno_to_spill):
324 Print more info about the spilled allocno.
325 (push_allocnos_to_stack): Use allocno_spill_priority. Add more
328 * ira-build.c (loop_node_to_be_removed_p): Remove.
329 (loop_compare_func, mark_loops_for_removal): New functions.
330 (remove_uneccesary_loop_nodes_from_loop_t): Use member
332 (remove_unnecessary_allocnos): Call mark_loops_for_removal.
334 * ira.c (ira): Don't change flag_ira_algorithm.
336 * params.def (ira-max-loops-num): Change the value.
338 2008-11-25 Maxim Kuvyrkov <maxim@codesourcery.com>
340 * config/m68k/m68k.md (extendsidi2, extendsidi2_mem): Merge, clean up.
341 Disable unsupported alternative for ColdFire,
342 add new alternative that ColdFire can handle.
344 2008-11-25 Eric Botcazou <ebotcazou@adacore.com>
346 * regrename.c (merge_overlapping_regs): Add registers artificially
347 defined at the top of the basic block to the set of live ones just
348 before the first insn.
350 2008-11-25 H.J. Lu <hongjiu.lu@intel.com>
351 Joey Ye <joey.ye@intel.com>
354 * config/i386/i386.c (ix86_function_ok_for_sibcall): Return
355 false if we need to align the outgoing stack.
356 (ix86_update_stack_boundary): Check parm_stack_boundary.
358 2008-11-25 Richard Guenther <rguenther@suse.de>
362 * tree-ssa-alias.c (struct alias_info): Remove written_vars.
363 Remove dereferenced_ptrs_store and dereferenced_ptrs_load
364 in favor of dereferenced_ptrs.
365 (init_alias_info): Adjust.
366 (delete_alias_info): Likewise.
367 (compute_flow_insensitive_aliasing): Properly
368 include all aliased variables.
369 (update_alias_info_1): Use dereferenced_ptrs.
370 (setup_pointers_and_addressables): Likewise.
371 (get_smt_for): Honor ref-all pointers and pointers with known alias
373 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers.
375 2008-11-25 Uros Bizjak <ubizjak@gmail.com>
378 * config/i386/sync.md (memory_barrier_nosse): New insn pattern.
379 (memory_barrier): Generate memory_barrier_nosse insn for !TARGET_SSE2.
381 2008-11-24 Maxim Kuvyrkov <maxim@codesourcery.com>
383 * config/m68k/m68k.md (cmpdi): Use (scratch) instead of pseudo.
385 2008-11-24 Richard Sandiford <rdsandiford@googlemail.com>
387 * config/mips/mips.h (ASM_OUTPUT_DEBUG_LABEL): Define.
389 2008-11-24 Maxim Kuvyrkov <maxim@codesourcery.com>
392 * config/m68k/m68k.md (ok_for_coldfire, enabled): New attributes.
393 (addsi_lshrsi_31): Add ColdFire-friendly alternatives.
395 2008-11-24 Uros Bizjak <ubizjak@gmail.com>
397 * config/i386/i386.md (UNSPECV_CMPXCHG): Rename from
398 UNSPECV_CMPXCHG_[12].
399 * config/i386/sync.md: Use UNSPECV_CMPXCHG instead of
400 UNSPECV_CMPXCHG_[12].
403 * config/i386/sync.md (memory_barrier): New expander.
405 2008-11-24 Jakub Jelinek <jakub@redhat.com>
408 * dse.c (find_shift_sequence): Optimize extraction from a constant.
410 2008-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
412 * pa.c (function_arg): Revert 2008-10-26 change.
414 2008-11-23 Helge Deller <deller@gmx.de>
416 * pa/linux-atomic.c (EBUSY): Define if not _LP64.
417 (__kernel_cmpxchg): Return -EBUSY if the kernel LWS call
418 succeeded and lws_ret is not equal to oldval.
420 2008-11-23 Kaz Kojima <kkojima@gcc.gnu.org>
422 * config/sh/sh.md (consttable_4): Call mark_symbol_refs_as_used.
424 2008-11-22 Andreas Schwab <schwab@suse.de>
426 * varasm.c (default_file_start): Suppress ASM_APP_OFF also with
429 2008-11-22 Adam Nemet <anemet@caviumnetworks.com>
431 * config/mips/mips.md (rdhwr): Rename to rdhwr_synci_step_<mode>.
432 Use constant 1 as the operand.
433 * config/mips/mips.c (mips_expand_synci_loop): Make INC Pmode.
434 Rename gen_rdhwr to gen_rdhwr_synci_step_si or
435 gen_rdhwr_synci_step_di depending on the size of Pmode.
437 2008-11-22 Uros Bizjak <ubizjak@gmail.com>
440 * config/i386/i386.md (SWI248): New mode iterator.
441 (SWI32): Remove mode iterator.
442 (popcount<mode>2): Rename from popcounthi2, popcountsi2 and
443 popcounthi2 insn patterns. Macroize pattern using SWI248 mode
444 iterator. Generate popcnt mnemonic without mode extensions
445 for Darwin x86 targets.
446 (*popcount<mode>2_cmp): Ditto.
447 (*popcountsi2_cmp_zext): Generate popcnt mnemonic without mode
448 extensions for Darwin x86 targets.
450 2008-11-22 Eric Botcazou <ebotcazou@adacore.com>
452 * config/sparc/sparc.c (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define
453 only if HAVE_AS_SPARC_UA_PCREL is defined.
455 2008-11-22 Richard Sandiford <rdsandiford@googlemail.com>
457 * ira-costs.c (find_allocno_class_costs): Work out the maximum
458 allocno_costs value of the classees with the lowest total_costs
459 value. Use this to set ALLOCNO_COVER_CLASS_COST here...
460 (setup_allocno_cover_class_and_costs): ...rather than here.
461 Use the ALLOCNO_COVER_CLASS_COST for all registers in the
464 2008-11-22 Jakub Jelinek <jakub@redhat.com>
467 * builtins.c (expand_builtin_apply_args): Emit sequence before
468 parm_birth_insn instead of after entry_of_function's first insn.
471 * function.c (assign_parm_remove_parallels): Pass
472 data->passed_type as third argument to emit_group_store.
475 * final.c (mark_symbol_refs_as_used): New function.
476 * output.h (mark_symbol_refs_as_used): New prototype.
477 * config/s390/s390.c (s390_mark_symbol_ref_as_used): Removed.
478 (s390_output_pool_entry): Use mark_symbol_refs_as_used.
479 * config/arm/arm.md (consttable_4): Likewise.
482 * doc/invoke.texi: Adjust wording of -mcmodel=medium description.
484 2008-11-21 Jakub Jelinek <jakub@redhat.com>
487 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
488 propagate x = &a into *x = b if conversion from b to a's type is
491 2008-11-21 Eric Botcazou <ebotcazou@adacore.com>
493 * caller-save.c (insert_one_insn): Take into account REG_INC notes
494 for the liveness computation of the new insn.
496 2008-11-21 DJ Delorie <dj@redhat.com>
498 * config/stormy16/stormy16.md (movqi_internal, movhi_internal):
499 Moves to/from below100 space (W) can only use r0-r7.
501 2008-11-21 Paolo Carlini <paolo.carlini@oracle.com>
504 * doc/invoke.texi (Optimization Options): Fix typo.
506 2008-11-21 H.J. Lu <hongjiu.lu@intel.com>
507 Xuepeng Guo <xuepeng.guo@intel.com>
509 * config.gcc (extra_headers): For x86 and x86-64, remove
510 gmmintrin.h, add immintrin.h and avxintrin.h.
512 * config/i386/gmmintrin.h: Renamed to ...
513 * config/i386/avxintrin.h: This. Issue an error if
514 _IMMINTRIN_H_INCLUDED is undedined.
516 * config/i386/immintrin.h: New.
518 2008-11-21 Jakub Jelinek <jakub@redhat.com>
521 * reload1.c (eliminate_regs_in_insn): For trunc_int_for_mode use
522 mode of PLUS, not mode of the eliminated register.
524 2008-11-21 Uros Bizjak <ubizjak@gmail.com>
526 * config/i386/mmx.md (mmx_nand<mode>3): Rename to mmx_andnot<mode>3.
527 * config/i386/sse.md (avx_nand<mode>3): Rename to avx_andnot<mode>3.
528 (<sse>_nand<mode>3): Rename to <sse>_andnot<mode>3.
529 (sse2_nand<mode>3): Rename to sse2_andnot<mode>3.
530 (*sse_nand<mode>3): Rename to *sse_andnot<mode>3.
531 (*avx_nand<mode>3): Rename to *avx_andnot<mode>3.
532 (*nand<mode>3): Rename to *andnot<mode>3.
533 (*nandtf3): rename to *andnottf3.
534 * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_PANDN]:
535 Use CODE_FOR_mmx_andnotv2si3.
536 [IX86_BUILTIN_ANDNPS]: Use CODE_FOR_sse_andnotv4sf3.
537 [IX86_BUILTIN_ANDNPD]: Use CODE_FOR_sse2_andnotv2df3.
538 [IX86_BUILTIN_PANDN128]: Use CODE_FOR_sse2_andnotv2di3.
539 [IX86_BUILTIN_ANDNPS256]: Use CODE_FOR_avx_andnotv8sf3.
540 [IX86_BUILTIN_ANDNPD256]: Use CODE_FOR_avx_andnotv4df3.
542 2008-11-21 Uros Bizjak <ubizjak@gmail.com>
545 * config/ia64/ia64.c (ia64_expand_atomic_op): Properly handle NAND
546 case by calculating ~(new_reg & val) instead of (~new_reg & val).
547 * config/ia64/sync.md (sync_nand<mode>): Change insn RTX
548 to (not:IMODE (and:IMODE (...))).
549 (sync_old_nand<mode>): Ditto.
550 (sync_new_nand<mode>): Ditto.
552 2008-11-20 Joseph Myers <joseph@codesourcery.com>
554 * config/arm/thumb2.md (thumb2_casesi_internal,
555 thumb2_casesi_internal_pic): Use earlyclobber for scratch operand 4.
557 2008-11-20 Andreas Krebbel <krebbel1@de.ibm.com>
559 * gcc/config/s390/s390.c (s390_expand_atomic): Adjust QI/HI atomic
560 nand to the changed 4.4 semantic.
562 2008-11-20 Jakub Jelinek <jakub@redhat.com>
565 * builtins.c (SLOW_UNALIGNED_ACCESS): Define if not defined.
566 (fold_builtin_memory_op): Handle even the case where just one
567 of src and dest is an address of a var decl component, using
568 TYPE_REF_CAN_ALIAS_ALL pointers. Remove is_gimple_min_invariant
569 and readonly_data_expr src check.
570 * tree-ssa-sccvn.c (DFS): Use clear_and_done_ssa_iter to shut
573 PR rtl-optimization/36998
574 * dwarf2out.c (stack_adjust_offset): Add cur_args_size and cur_offset
575 arguments. Handle sp = reg and (set (foo) (mem (pre_inc (reg sp)))).
576 (compute_barrier_args_size_1, dwarf2out_frame_debug_expr): Adjust
577 stack_adjust_offset callers.
578 (dwarf2out_stack_adjust): Likewise. Handle insns in annulled
580 (compute_barrier_args_size): Handle insns in annulled branches
583 2008-11-20 Uros Bizjak <ubizjak@gmail.com>
586 * config/i386/i386.c (classify_argument) [integer mode size <= 64bit]:
587 Handle cases when integer argument crosses argument register boundary.
589 2008-11-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
592 * config.gcc (i[34567]86-*-solaris2*): Don't include
593 i386/t-crtstuff here.
594 Move extra_parts, i386/t-sol2 in tmake_file to libgcc/config.host.
595 * config/i386/t-sol2: Move to libgcc/config/i386.
597 2008-11-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
600 * tlink.c: Include "libiberty.h".
601 (initial_cwd): Change type into char *.
602 (tlink_init): Call getpwd instead of getcwd.
604 2008-11-19 Zdenek Dvorak <ook@ucw.cz>
606 PR rtl-optimization/32283
607 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Use type of the base
608 of the induction variable to decide whether it may wrap.
609 * tree-ssa-loop-ivopts.c (rewrite_use_compare): Emit the
610 initialization of the bound before the loop.
611 * simplify-rtx.c (simplify_binary_operation_1): Add two
612 simplifications regarding AND.
613 (simplify_plus_minus): Only fail if no simplification is possible.
614 * loop-iv.c (simple_rhs_p): Consider reg + reg and reg << cst simple.
616 2008-11-20 Jakub Jelinek <jakub@redhat.com>
619 * gimplify.c (gimplify_call_expr): Defer most of the cannot inline
620 checking until GIMPLE lowering.
621 * gimple-low.c (check_call_args): New function.
622 (lower_stmt) <case GIMPLE_CALL>: Call it.
624 2008-11-19 Adam Nemet <anemet@caviumnetworks.com>
626 * config/mips/mips.c (mips_gimplify_va_arg_expr): Use -rsize
627 with the same type as the first operand of the AND expression.
629 2008-11-19 Vladimir Makarov <vmakarov@redhat.com>
632 * ira-int.h (struct ira_loop_tree_node): New member
633 entered_from_non_parent_p.
635 * ira-color.c (print_loop_title): Print loop bbs.
637 * ira-emit.c (entered_from_non_parent_p,
638 setup_entered_from_non_parent_p): New functions.
639 (not_modified_p): Rename to store_can_be_removed_p. Check there
641 (generate_edge_moves): Use store_can_be_removed_p instead of
643 (ira_emit): Call setup_entered_from_non_parent_p.
645 * ira-build.c (copy_info_to_removed_store_destinations):
646 Accumulate CALL_FREQ, CALL_CROSSED_NUM, and
647 ALLOCNO_EXCESS_PRESSURE_POINTS_NUM.
648 (ira_flattening): Don't CHECK MEM_OPTIMIZED_DEST[_P], always
649 update all accumulated attributes.
651 2008-11-19 Vladimir Makarov <vmakarov@redhat.com>
654 * ira-int.h (ira_copy_allocno_live_range_list,
655 ira_merge_allocno_live_ranges, ira_allocno_live_ranges_intersect_p,
656 ira_finish_allocno_live_range_list): New prototypes.
657 (ira_allocno_live_ranges_intersect_p,
658 ira_pseudo_live_ranges_intersect_p): Remove.
660 * ira-conflicts.c (ira_allocno_live_ranges_intersect_p,
661 ira_pseudo_live_ranges_intersect_p): Rename to
662 allocnos_have_intersected_live_ranges_p and
663 pseudos_have_intersected_live_ranges_p. Move them from here to ...
665 * ira-color.c: ... here
666 (coalesced_allocno_conflict_p): Use
667 allocnos_have_intersected_live_ranges_p.
668 (coalesced_allocnos_living_at_program_points,
669 coalesced_allocnos_live_at_points_p,
670 set_coalesced_allocnos_live_points): Remove.
671 (slot_coalesced_allocnos_live_ranges,
672 slot_coalesced_allocno_live_ranges_intersect_p,
673 setup_slot_coalesced_allocno_live_ranges): New.
674 (coalesce_spill_slots): Use ranges of coalesced allocnos.
675 (ira_sort_regnos_for_alter_reg): Use
676 allocnos_have_intersected_live_ranges_p.
677 (ira_reuse_stack_slot): Use
678 pseudos_have_intersected_live_ranges_p.
680 * global.c (pseudo_for_reload_consideration_p): Check
681 flag_ira_share_spill_slots too.
683 * ira-build.c (copy_allocno_live_range_list): Rename to
684 ira_copy_allocno_live_range_list. Make it external.
685 (merge_ranges): Rename to ira_merge_allocno_live_ranges. Make it
687 (ira_allocno_live_ranges_intersect_p): New.
688 (ira_finish_allocno_live_range_list): New.
689 (finish_allocno): Use it.
690 (remove_unnecessary_allocnos): Use ira_merge_allocno_live_ranges.
691 (copy_info_to_removed_store_destinations): Ditto. Use
692 ira_copy_allocno_live_range_list.
693 (ira_flattening): Use ira_merge_allocno_live_ranges.
695 * ira.c (too_high_register_pressure_p): New function.
696 (ira): Switch off sharing spill slots if the pressure is too high.
698 2008-11-19 Richard Guenther <rguenther@suse.de>
700 * tree.c (build2_stat): Allow non-POINTER_PLUS_EXPRs with
701 non-sizetype offsets if their precision matches that of the pointer.
702 * expr.c (expand_expr_real_1): Always sign-extend the offset
703 operand of a POINTER_PLUS_EXPR.
705 2008-11-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
707 * config.gcc: Unobsolete mips-sgi-irix[56]*.
708 (mips-sgi-irix[56]*): No need to use fixproto.
710 2008-11-19 Maxim Kuvyrkov <maxim@codesourcery.com>
711 Paul Brook <paul@codesourcery.com>
713 * config/m68k/lb1sf68.asm: Add GNU-stack annotation to avoid
716 2008-11-19 Maxim Kuvyrkov <maxim@codesourcery.com>
718 * config/m68k/m68k.c (sched_attr_op_type): Handle all CONSTs.
720 2008-11-19 Razya Ladelsky <razya@il.ibm.com>
723 * tree-parloops.c (loop_parallel_p): NULL vect_dump.
724 (separate_decls_in_region): Create shared struct even when there
727 2008-11-19 Hariharan Sandanagobalane <hariharan@picochip.com>
729 * config/picochip/picochip.c (headers): Remove an unnecessary
732 2008-11-19 Andrew Stubbs <ams@codesourcery.com>
735 * config/m68k/m68k.h (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY): New defines.
736 * config/m68k/m68k.c (notice_update_cc): Set cc_status properly for
738 * config/m68k/m68k.md: Adjust all conditional branches that use the
739 carry and overflow flags so they understand CC_OVERFLOW_UNUSABLE.
741 2008-11-18 Uros Bizjak <ubizjak@gmail.com>
744 * config/mips/mips.md (move_doubleword_fpr<mode>): Check that "high"
745 is a register or zero operand in the correct mode before generating
746 mtch1 insn or a register operand in the correct mode before generating
748 (mtch1<mode>): Correct operand 1 predicate to reg_or_0_operand.
750 2008-11-18 Adam Nemet <anemet@caviumnetworks.com>
752 * config.gcc (mips*-sde-elf*): Handle mipsisa64r2*.
753 (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Add new cases to
754 mipsisa*-*-elf*. Handle mipsisa64r2*.
755 * config/mips/sde.h (LINK_SPEC): Handle -mips64r2.
756 * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add
758 (MULTILIB_EXCLUSIONS): Add mips64r2/mfp64.
759 * config/mips/t-sde (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add
761 (MULTILIB_EXCLUSIONS): Add mips64r2/mfp64. Add mips64r2/mips16.
762 Fix mips16 if mips64 or mips64r2 are multilib defaults.
763 * config/mips/t-sdemtk (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add
766 2008-11-18 Jakub Jelinek <jakub@redhat.com>
769 * config/i386/i386.md (allocate_stack_worker_32,
770 allocate_stack_worker_64): Don't use match_dup between input and
772 (allocate_stack): Adjust gen_stack_worker_{32,64} caller.
773 * config/i386/i386.c (ix86_expand_prologue): Likewise.
775 2008-11-18 Kai Tietz <kai.tietz@onevision.com>
777 * config/i386/t-cygming (SHLIB_LINK): Make sure that $(SHLIB_MAP).def
778 is forced when trying to do a symbol link for it.
780 2008-11-17 Adam Nemet <anemet@caviumnetworks.com>
782 * expmed.c (extract_bit_field_1): Also use a temporary and
783 convert_extracted_bit_field when the conversion from ext_mode to
784 the target mode requires explicit truncation.
786 2008-11-17 Richard Sandiford <rdsandiford@googlemail.com>
788 * config/mips/mips.h (REG_ALLOC_ORDER): Put accumulators first.
790 * config/mips/mips.c (mips_ira_cover_classes): Don't use accumulator
791 registers when not optimizing.
793 2008-11-17 Richard Sandiford <rdsandiford@googlemail.com>
795 * config/mips/mips.md (*mul_acc_si): Remove middle alternative
796 and its associated define_split. Expose the all-d alternative
797 to the register allocator, but mark it with "?". Mark the first
798 alternative with "*?*?".
799 (*mul_sub_si): Likewise.
800 (*mul_acc_si_r3900): New pattern.
802 2008-11-17 Jakub Jelinek <jakub@redhat.com>
805 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If
806 propagating x = &a into *x = b, add a cast if not useless
807 type conversion or don't optimize if another stmt would be
810 2008-11-17 Uros Bizjak <ubizjak@gmail.com>
813 * optabs.c (expand_sync_operation): Properly handle NAND case
814 by calculating ~(t1 & val) instead of (~t1 & val).
815 * builtins.c (expand_builtin_sync_operation): Warn for changed
816 semantics in NAND builtins.
817 * c.opt (Wsync-nand): New warning option. Describe -Wsync-nand.
819 * doc/invoke.texi (Warning options): Add Wsync-nand.
820 * doc/extend.texi (Atomic Builtins) [__sync_fetch_and_nand]: Correct
821 __sync_fetch_and_nand builtin operation in the example. Add a note
822 about changed semantics in GCC 4.4.
823 [__sync_nand_and_fetch]: Correct __sync_nand_and_fetch builtin
824 operation in the example. Add a note about changed semantics in
827 2008-11-16 Jan Hubicka <jh@suse.cz>
829 * cgraph.c (cgraph_function_body_availability): Fix test of externally
832 2008-11-16 Joshua Kinard <kumba@gentoo.org>
834 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=r1[0246]000
837 2008-11-16 Richard Sandiford <rdsandiford@googlemail.com>
840 * config/mips/mips.c (mips_cfun_call_saved_reg_p)
841 (mips_cfun_might_clobber_call_saved_reg_p): New functions,
843 (mips_save_reg_p): ...here. Always consult TARGET_CALL_SAVED_GP
844 rather than call_really_used_regs when handling $gp.
846 2008-11-16 Richard Sandiford <rdsandiford@googlemail.com>
849 * config/mips/mips.c (machine_function): Update the comment
850 above global_pointer.
851 (mips_global_pointer): Use INVALID_REGNUM rather than 0 to indicate
852 that a function doesn't need a global pointer.
853 (mips_current_loadgp_style): Update accordingly.
854 (mips_restore_gp): Likewise.
855 (mips_output_cplocal): Likewise.
856 (mips_expand_prologue): Likewise.
858 2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
860 * config/sparc/sparc.c (function_arg_vector_value): Remove 'base_mode'
861 parameter. Use DImode for computing the number of registers.
862 (function_arg): Adjust for above change.
863 (function_value): Likewise.
865 2008-11-15 Zdenek Dvorak <ook@ucw.cz>
867 PR tree-optimization/37950
868 * tree-flow-inline.h (memory_partition): Return NULL when aliases were
869 not computed for the current function.
871 2008-11-15 Jakub Jelinek <jakub@redhat.com>
874 * config/i386/i386.c (ix86_gimplify_va_arg): Don't share valist between
875 gpr and other COMPONENT_REFs.
877 2008-11-15 Richard Guenther <rguenther@suse.de>
879 PR tree-optimization/38051
880 * tree-ssa-alias.c (update_alias_info_1): Manually find
883 2008-11-15 Joshua Kinard <kumba@gentoo.org>
885 * doc/invoke.texi (-mfix-r10000): Document.
886 * config/mips/mips.opt (mfix-r10000): New option.
887 * config/mips/mips-protos.h (mips_output_sync_loop): Declare.
888 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Use %?.
889 (MIPS_COMPARE_AND_SWAP_12): Likewise.
890 (MIPS_SYNC_OP): Likewise.
891 (MIPS_SYNC_OP_12): Likewise.
892 (MIPS_SYNC_OLD_OP_12): Likewise.
893 (MIPS_SYNC_NEW_OP_12): Likewise.
894 (MIPS_SYNC_OLD_OP): Likewise.
895 (MIPS_SYNC_NAND): Likewise.
896 (MIPS_SYNC_OLD_NAND): Likewise.
897 (MIPS_SYNC_EXCHANGE): Likewise.
898 (MIPS_SYNC_EXCHANGE_12): Likewise.
899 (MIPS_SYNC_NEW_OP): Likewise, using %~ to fill branch-likely
901 (MIPS_SYNC_NEW_NAND): Likewise.
902 * config/mips/mips.c (mips_print_operand_punctuation): Handle '~'.
903 (mips_init_print_operand_punct): Treat '~' as a punctuation character.
904 (mips_output_sync_loop): New function.
905 (mips_override_options): Make -march=r10000 imply -mfix-r10000.
906 Make -mfix-r10000 require branch-likely instructions.
907 * config/mips/sync.md (sync_compare_and_swap<mode>): Use
908 mips_output_sync_loop.
909 (compare_and_swap_12): Likewise.
910 (sync_add<mode>): Likewise.
911 (sync_<optab>_12): Likewise.
912 (sync_old_<optab>_12): Likewise.
913 (sync_new_<optab>_12): Likewise.
914 (sync_nand_12): Likewise.
915 (sync_old_nand_12): Likewise.
916 (sync_new_nand_12): Likewise.
917 (sync_sub<mode>): Likewise.
918 (sync_old_add<mode>): Likewise.
919 (sync_old_sub<mode>): Likewise.
920 (sync_new_add<mode>): Likewise.
921 (sync_new_sub<mode>): Likewise.
922 (sync_<optab><mode>): Likewise.
923 (sync_old_<optab><mode>): Likewise.
924 (sync_new_<optab><mode>): Likewise.
925 (sync_nand<mode>): Likewise.
926 (sync_old_nand<mode>): Likewise.
927 (sync_new_nand<mode>): Likewise.
928 (sync_lock_test_and_set<mode>): Likewise.
929 (test_and_set_12): Likewise.
931 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
933 * gcc.c (cc1_options): Fix comment.
935 2008-11-15 Jakub Jelinek <jakub@redhat.com>
938 * c-typeck.c (build_unary_op): Don't call get_unwidened. Use
939 argtype instead of result_type.
941 2008-11-14 Adam Nemet <anemet@caviumnetworks.com>
943 * ira-int.h (struct ira_loop_tree_node): Improve comments for
944 subloop_next/next and subloops/childen fields.
946 2008-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
948 * config/spu/spu-elf.h (STANDARD_STARTFILE_PREFIX_2): Disable default.
949 (STANDARD_INCLUDE_DIR): Redefine to "/include".
950 (LOCAL_INCLUDE_DIR): Undefine.
951 * config/spu/t-spu-elf (NATIVE_SYSTEM_HEADER_DIR): Define.
953 2008-11-14 Vladimir Makarov <vmakarov@redhat.com>
955 PR rtl-optimization/37397
956 * ira-int.h (struct ira_allocno): New member bad_spill_p.
957 (ALLOCNO_BAD_SPILL_P): New macro.
959 * ira-color.c (push_allocnos_to_stack): Check ALLOCNO_BAD_SPILL_P.
961 * ira-build.c (ira_create_allocno): Initialize ALLOCNO_BAD_SPILL_P.
962 (create_cap_allocno, propagate_allocno_info,
963 remove_unnecessary_allocnos): Set up or update ALLOCNO_BAD_SPILL_P.
964 (update_bad_spill_attribute): New function.
965 (ira_build): Call it.
967 * ira-costs.c (record_reg_classes): Set up ALLOCNO_BAD_SPILL_P.
969 2008-11-14 Jakub Jelinek <jakub@redhat.com>
971 PR tree-optimization/38104
972 * gimplify.c (gimple_regimplify_operands): Add referenced vars
973 before calling mark_symbols_for_renaming, not after it.
975 2008-11-14 Kaz Kojima <kkojima@gcc.gnu.org>
977 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Revert last change.
978 (OVERRIDE_OPTIONS): Likewise.
980 2008-11-14 Maxim Kuvyrkov <maxim@codesourcery.com>
981 Andrew Stubbs <ams@codesourcery.com>
982 Gunnar Von Boehn <gunnar@genesi-usa.com>
985 * config/m68k/m68k.md (addsi3_5200): Add a new alternative preferring
986 the shorter LEA insn over ADD.L where possible.
988 2008-11-14 Thomas Schwinge <tschwinge@gnu.org>
990 * configure.ac (gcc_cv_libc_provides_ssp): Also consider GNU/Hurd
991 systems, which are assumend to always provide SSP-support in glibc.
992 Also consider GNU/kFreeBSD, GNU/kNetBSD systems in the `*-*-linux*'
994 * configure: Regenerate.
996 2008-11-14 Jakub Jelinek <jakub@redhat.com>
999 * function.c (gimplify_parameters): For callee copies parameters,
1000 move TREE_ADDRESSABLE flag from the PARM_DECL to the local copy.
1002 2008-11-13 Thomas Schwinge <tschwinge@gnu.org>
1005 * config.gcc (*-*-gnu*): Move Alpha parts into the `alpha*-*-gnu*',
1006 x86 parts into the `i[34567]86-*-linux*' and parts that are
1007 independent of the processor architecture into the `*-*-linux*' cases.
1008 (*-*-linux*): Consider `linux.opt' only for Linux-based configurations.
1009 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Redefine.
1010 (TARGET_OS_CPP_BUILTINS, LINK_SPEC): Don't redefine.
1011 [TARGET_LIBC_PROVIDES_SSP] (TARGET_THREAD_SSP_OFFSET): Undefine.
1012 * config/gnu.h (NO_IMPLICIT_EXTERN_C): Don't redefine.
1013 (HURD_TARGET_OS_CPP_BUILTINS): Don't define, but instead...
1014 (LINUX_TARGET_OS_CPP_BUILTINS): Redefine.
1016 2008-11-13 Ruan Beihong <ruanbeihong@gmail.com>
1018 * config/mips/loongson.md (<u>div<mode>3, <u>mod<mode>3): New patterns.
1019 * config/mips/loongson2ef.md (ls2_imult): Handle imul3nc.
1020 (ls2_idiv): Likewise idiv3.
1021 (ls2_prefetch): New reservation.
1022 * config/mips/mips.h (ISA_HAS_PREFETCH): Add TARGET_LOONGSON_2EF.
1023 * config/mips/mips.md (type): Add imul3nc and idiv3.
1024 (length): Handle idiv3.
1025 (any_mod): New code_iterator.
1026 (u): Handle MOD and UMOD.
1027 (mul<mode>3): Generate mul<mode>3_mul3_ls2ef on Loongson targets.
1028 (prefetch): Handle TARGET_LOONGSON_2EF.
1030 2008-11-13 Jakub Jelinek <jakub@redhat.com>
1033 * dwarf2out.c (prune_unused_types_walk_local_classes): New function.
1034 (prune_unused_types_walk): Call it for non-perennial local classes.
1035 Set die_mark to 2 if recursing on children. If die_mark is 1 on
1036 entry, just set it to 2 and recurse on children, don't walk attributes
1039 2008-11-13 Martin Michlmayr <tbm@cyrius.com>
1041 * c-common.c (warn_about_parentheses): Add missing whitespace
1044 2008-11-13 Paul Brook <paul@codesourcery.com>
1046 * doc/invoke.texi: Document --fix-cortex-m3.
1047 * config/arm/arm.c (arm_override_options): Set fix_cm3_ldrd if
1048 Cortex-M3 cpu is selected.
1049 (output_move_double): Avoid overlapping base register and first
1050 destination register when fix_cm3_ldrd.
1051 * config/arm/arm.opt: Add mfix-cortex-m3-ldrd.
1053 2008-11-13 Jakub Jelinek <jakub@redhat.com>
1056 * gimple.h (gimple_range_check_failed): Remove prototype.
1057 * gimple.c (gimple_check_failed): Don't check GCC_VERSION
1059 (gimple_range_check_failed): Removed.
1061 2008-11-13 Andrew Haley <aph@redhat.com>
1064 * mcf.c (CAP_INFINITY): Use HOST_WIDEST_INT maximum, not GCC specific
1067 2008-11-12 Jakub Jelinek <jakub@redhat.com>
1071 2007-05-07 Mike Stump <mrs@apple.com>
1072 * doc/invoke.texi (Warning Options): Document that -Wempty-body
1073 also checks for and while statements in C++.
1075 2008-11-12 Dodji Seketeli <dodji@redhat.com>
1078 * cgraph.h: New abstract_and_needed member to struct cgraph_node.
1079 * cgraphunit.c (cgraph_analyze_functions): Flag abstract functions
1080 - which clones are reachable - as "abstract and needed".
1081 * cgraph.c (cgraph_release_function_body): If a node is
1082 "abstract and needed", do not release its DECL_INITIAL() content
1083 that will be needed to emit debug info.
1085 2008-11-12 Steve Ellcey <sje@cup.hp.com>
1088 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Use this macro
1089 to set HAVE_GETIPINFO.
1090 * aclocal.m4: Include ../config/unwind_ipinfo.m4.
1091 * configure: Regenerate.
1092 * config.in: Regenerate.
1094 2008-11-12 Jack Howarth <howarth@bromo.med.uc.edu>
1097 * gcc/config.gcc: Use darwin9.h on darwin10 as well.
1099 2008-11-12 Jakub Jelinek <jakub@redhat.com>
1102 2008-10-21 Jakub Jelinek <jakub@redhat.com>
1103 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.
1105 2008-11-12 Jason Merrill <jason@redhat.com>
1108 * c-common.c (c_common_signed_or_unsigned_type): Remove C++
1111 2008-11-12 Anatoly Sokolov <aesok@post.ru>
1113 * config/avr/avr.c (avr_mcu_t): Add atmega16hvb, atmega32hvb,
1114 atmega4hvd, atmega8hvd, atmega64c1, atmega64m1, atmega16u4 and
1116 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1117 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1119 2008-11-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1121 * gcc/config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Remove
1122 packed-stack special handling.
1123 (FRAME_ADDR_RTX): Add definition.
1125 2008-11-12 Jakub Jelinek <jakub@redhat.com>
1128 * fold-const.c (native_encode_string): New function.
1129 (native_encode_expr): Use it for STRING_CST.
1131 2008-11-12 DJ Delorie <dj@redhat.com>
1133 * config/m32c/cond.md (cond_to_int peephole2): Don't eliminate the
1134 insns if the intermediate value will be used later.
1136 2008-11-12 Andreas Schwab <schwab@suse.de>
1138 * config/m68k/m68k.c (print_operand): Mask off extra extension
1139 bits when writing out the representation of real values.
1141 2008-11-12 Ira Rosen <irar@il.ibm.com>
1143 PR tree-optimization/38079
1144 * tree-vect-analyze.c (vect_analyze_data_refs): Replace dump_file
1147 2008-11-12 Jakub Jelinek <jakub@redhat.com>
1150 * c-pretty-print.c (pp_c_complex_expr): New function.
1151 (pp_c_postfix_expression) <case COMPLEX_EXPR>: Call it.
1154 * expr.c (expand_expr_addr_expr_1): If EXP needs bigger alignment
1155 than INNER and INNER is a constant, forcibly align INNER as much
1158 2008-11-11 Richard Sandiford <rdsandiford@googlemail.com>
1160 * cse.c (fold_rtx): Remove redundant gen_rtx_CONST.
1162 2008-11-11 Richard Sandiford <rdsandiford@googlemail.com>
1164 PR rtl-optimization/37363
1165 * simplify-rtx.c (simplify_plus_minus): Don't create
1166 (const (minus ...)) expresisons.
1168 2008-11-11 Eric Botcazou <ebotcazou@adacore.com>
1170 * ira-lives.c (process_bb_node_lives): Restore EH_RETURN_DATA_REGNO
1173 2008-11-10 Catherine Moore <clm@codesourcery.com>
1175 * config.gcc (mips64vrel-*-elf*): Include the tm_file
1177 * config/mips/linux.h (LINUX_DRIVER_SELF_SPECS): New.
1178 (BASE_DRIVER_SELF_SPECS): Remove.
1179 (DRIVER_SELF_SPECS): New definition.
1180 * config/mips/elfoabi.h: (DRIVER_SELF_SPECS): Include
1181 BASE_DRIVER_SELF_SPECS.
1182 * config/mips/sde.h: Likewise.
1183 * config/mips/iris6.h: Likewise.
1184 * config/mips/vr.h: Likewise.
1185 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): New.
1187 2008-11-10 Vladimir Makarov <vmakarov@redhat.com>
1189 PR rtl-optimizations/37948
1190 * ira-int.h (struct ira_allocno_copy): New member constraint_p.
1191 (ira_create_copy, ira_add_allocno_copy): New parameter.
1193 * ira-conflicts.c (process_regs_for_copy): New parameter. Pass it
1194 to ira_add_allocno_copy.
1195 (process_reg_shuffles, add_insn_allocno_copies): Pass a new
1196 parameter to process_regs_for_copy.
1197 (propagate_copies): Pass a new parameter to ira_add_allocno_copy.
1198 Fix typo in passing second allocno to ira_add_allocno_copy.
1200 * ira-color.c (update_conflict_hard_regno_costs): Use head of
1201 coalesced allocnos list.
1202 (assign_hard_reg): Ditto. Check that assigned allocnos are not in
1204 (add_ira_allocno_to_bucket): Rename to add_allocno_to_bucket.
1205 (add_ira_allocno_to_ordered_bucket): Rename to
1206 add_allocno_to_ordered_bucket.
1207 (push_ira_allocno_to_stack): Rename to push_allocno_to_stack. Use
1208 head of coalesced allocnos list.
1209 (push_allocnos_to_stack): Remove calculation of ALLOCNO_TEMP.
1210 Check that it is aready calculated.
1211 (push_ira_allocno_to_spill): Rename to push_ira_allocno_to_spill.
1212 (setup_allocno_left_conflicts_num): Use head of coalesced allocnos
1214 (coalesce_allocnos): Do extended coalescing too.
1216 * ira-emit.c (add_range_and_copies_from_move_list): Pass a new
1217 parameter to ira_add_allocno_copy.
1219 * ira-build.c (ira_create_copy, ira_add_allocno_copy): Add a new
1221 (print_copy): Print copy origination too.
1223 * ira-costs.c (scan_one_insn): Use alloc_pref for load from
1226 2008-11-10 Kaz Kojima <kkojima@gcc.gnu.org>
1228 PR rtl-optimization/37514
1229 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set
1230 flag_ira_share_spill_slots to 2 if it's already non-zero.
1231 (OVERRIDE_OPTIONS): Clear flag_ira_share_spill_slots if
1232 flag_ira_share_spill_slots is 2.
1234 2008-11-10 Kevin Buettner <kevinb@redhat.com>
1236 * config/m32c/prologue.md (prologue_enter_16): Set FB to SP - 2.
1237 (prologue_enter_32): Set FB to SP - 4.
1239 2008-11-10 DJ Delorie <dj@redhat.com>
1241 * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add ImB
1242 constraint for single-bit-clear in lower byte of HI constant, vs
1243 Imb which just ignores the upper byte.
1244 * config/m32c/predicates.md (m32c_1mask8_operand): Use it.
1245 * config/m32c/bitops.md (andhi3_16, andhi3_24): Use it.
1246 (iorhi3_16): Check for single bit set, not single bit clear.
1248 2008-11-10 Janis Johnson <janis187@us.ibm.com>
1250 * doc/sourcebuild.texi (Torture Tests): Fix formatting for bullets.
1252 * doc/sourcebuild.texi (Torture Tests): Fix formatting in example.
1254 2008-11-10 Eric Botcazou <ebotcazou@adacore.com>
1256 * calls.c (store_unaligned_arguments_into_pseudos): Deal only with
1257 values living in memory and use more precise alignment information.
1259 2008-11-10 Jakub Jelinek <jakub@redhat.com>
1262 * tree-mudflap.c (mf_build_check_statement_for): Split then_block
1263 after __mf_check call if the call must end a bb.
1265 2008-11-10 Ralph Loader <suckfish@ihug.co.nz>
1269 * combine.c (force_to_mode): Do not process vector types.
1271 * rtlanal.c (nonzero_bits1): Do not process vector types.
1272 (num_sign_bit_copies1): Likewise.
1274 2008-11-09 Thomas Schwinge <tschwinge@gnu.org>
1276 * config/i386/gnu.h: Add copyright and licensing header.
1277 * config/gnu.h: Likewise.
1279 2008-11-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
1281 * fwprop.c (fwprop_done): Call df_remove_problem.
1283 2008-11-07 Sebastian Pop <sebastian.pop@amd.com>
1286 * tree-scalar-evolution.c (instantiate_scev_1): Return
1287 chrec_dont_know for VL_EXP_CLASS_P.
1289 2008-11-06 Uros Bizjak <ubizjak@gmail.com>
1291 * reg-stack.c (reg_to_stack): Add missing braces in memset
1294 2008-11-06 Andrew Stubbs <ams@codesourcery.com>
1296 * config/arm/bpabi.h (PROFILE_HOOK): New undef.
1297 (NO_PROFILE_COUNTERS): New define.
1299 2008-11-06 David Edelsohn <edelsohn@gnu.org>
1302 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Define.
1304 2008-11-06 Kazu Hirata <kazu@codesourcery.com>
1307 * config/sparc/constraints.md (D): New.
1308 * config/sparc/predicates.md (const_double_or_vector_operand): New.
1309 * config/sparc/sparc.c (sparc_extra_constraint_check): Handle the
1311 * config/sparc/sparc.md (*movdf_insn_sp32_v9, *movdf_insn_sp64):
1312 Use the 'D' constraint in addition to 'F' in some alternatives.
1313 (DF splitter): Generalize for V64mode.
1314 * doc/md.texi (SPARC): Document the 'D' constraint.
1316 2008-11-06 Uros Bizjak <ubizjak@gmail.com>
1318 * reg-stack.c (reg_to_stack): Generate +QNaN using real_nan.
1320 2008-11-06 Ben Elliston <bje@au.ibm.com>
1322 * gcc.c: Remove ancient comment about a bug in Sun cc.
1324 2008-11-05 Janis Johnson <janis187@us.ibm.com>
1326 * doc/sourcebuild.texi (Torture Tests): Add ADDITIONAL_TORTURE_OPTIONS.
1328 2008-11-06 Ben Elliston <bje@au.ibm.com>
1330 * config/rs6000/rs6000.c (rs6000_override_options): Comment fix.
1332 2008-11-06 Ben Elliston <bje@au.ibm.com>
1334 * config/rs6000/rs6000.opt (mwarn-cell-microcode): Improve option
1337 2008-11-05 Hans-Peter Nilsson <hp@axis.com>
1340 * config/cris/cris.c (cris_order_for_addsi3): Test for !REG_P, not
1343 2008-11-05 Martin Jambor <mjambor@suse.cz>
1346 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't turn
1347 pointer arithmetics into array_ref if the array is accessed
1348 through an indirect_ref.
1350 2008-11-05 Richard Guenther <rguenther@suse.de>
1353 * tree-ssa.c (useless_type_conversion_p_1): Check different restrict
1354 qualified pointer conversion before stripping qualifiers.
1355 * gimplify.c (create_tmp_from_val): Use correctly qualified type.
1356 * tree-flow.h (may_propagate_address_into_dereference): Declare.
1357 * tree-ssa-ccp.c (may_propagate_address_into_dereference): New
1360 * tree-ssa-forwprop.c (rhs_to_tree): Remove useless conversions,
1361 properly canonicalize binary ops.
1362 (forward_propagate_addr_expr_1): Use
1363 may_propagate_address_into_dereference.
1365 2008-11-05 Uros Bizjak <ubizjak@gmail.com>
1368 * reg-stack.c (subst_stack_regs_pat) [MINUS, DIV, MULT, PLUS]:
1369 Initialize uninitialized input registers with a NaN.
1371 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
1375 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
1377 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
1381 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
1382 exits and conditions.
1383 * testsuite/gcc.dg/graphite/pr37943.c: New.
1385 2008-11-04 Jakub Jelinek <jakub@redhat.com>
1386 Andrew Pinski <andrew_pinski@playstation.sony.com>
1389 * c-common.c (warn_for_sign_compare): For complex result_type
1390 use component's type.
1392 2008-11-04 Jakub Jelinek <jakuB@redhat.com>
1394 * print-tree.c (print_node): Use code instead of TREE_CODE (node).
1396 * print-tree.c (print_node): Don't print DECL_INITIAL
1400 * c-common.c (parse_optimize_options): Save and restore
1401 flag_strict_aliasing around decode_options call.
1403 2008-11-04 Uros Bizjak <ubizjak@gmail.com>
1405 * config/i386/driver-i386.c (enum vendor_signatures): New enum.
1406 (host_detect_local_cpu): Use it instead of casted strings to
1407 compare vendor signatures.
1409 2008-11-03 Mikael Pettersson <mikpe@it.uu.se>
1412 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Only add libgcc_s.a
1413 or libgcc_eh.a to spec if ENABLE_SHARED_LIBGCC.
1415 2008-11-03 Catherine Moore <clm@codesourcery.com>
1417 * config/mips.c (mips_conditional_register_usage): Handle the
1418 DSP control register.
1419 * doc/extend.texi: Document the DSP control register.
1421 2008-11-03 Steve Ellcey <sje@cup.hp.com>
1422 Jakub Jelinek <jakub@redhat.com>
1424 * omp-low.c (expand_omp_for_generic): If iter_type has different
1425 precision than type and type is a pointer type, cast n1 and n2
1426 first to an integer type with the same precision as pointers
1427 and only afterwards to iter_type.
1429 2008-11-03 Richard Sandiford <rdsandiford@googlemail.com>
1431 * config/arm/arm.md (UNSPEC_PIC_BASE): Update documentation.
1432 (UNSPEC_GOTSYM_OFF): New unspec.
1433 (pic_add_dot_plus_four): Simplify the UNSPEC_PIC_BASE operands.
1434 (pic_add_dot_plus_eight): Likewise.
1435 (tls_load_dot_plus_eight): Likewise. Update peephole2.
1436 * config/arm/thumb2.md (pic_load_dot_plus_four): Simplify the
1437 UNSPEC_PIC_BASE operands.
1438 * config/arm/arm.c (arm_load_pic_register): Use UNSPEC_GOTSYM_OFF.
1439 (arm_output_addr_const_extra): Handle it.
1441 2008-11-03 Eric Botcazou <ebotcazou@adacore.com>
1443 * config/i386/i386.c (classify_argument) <ARRAY_TYPE>: Promote partial
1444 integer class to full integer class if the offset is not word-aligned.
1446 2008-11-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
1449 * loop-doloop.c (doloop_modify): Add from_mode argument that says what
1451 (doloop_optimize): Update call to doloop_modify.
1453 2008-11-03 Eric Botcazou <ebotcazou@adacore.com>
1455 * tree-sra.c (bitfield_overlaps_p): Fix oversight.
1457 2008-11-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1460 * configure.ac (gcc_cv_ld_ro_rw_mix): Move before
1461 gcc_cv_as_cfi_directive.
1462 (gcc_cv_as_cfi_directive) [*-*-solaris*]: Check if linker supports
1463 merging read-only and read-write sections or assembler emits
1464 read-write .eh_frame sections.
1465 * configure: Regenerate.
1467 2008-11-03 Nathan Froyd <froydnj@codesourcery.com>
1470 2008-10-31 Nathan Froyd <froydnj@codesourcery.com>
1472 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
1474 (rs6000_emit_prologue): Invert logic.
1475 * config/rs6000/rs6000.md (*save_gpregs_<mode>): Use explicit
1476 (reg:P 11) instead of match_operand.
1477 (*save_fpregs_<mode>): Likewise.
1478 (*restore_gpregs_<mode>): Likewise.
1479 (*return_and_restore_gpregs_<mode>): Likewise.
1480 (*return_and_restore_fpregs_<mode>): Likewise.
1481 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit
1482 (reg:P 11) insted of match_operand.
1483 (*restore_gpregs_spe): Likewise.
1484 (*return_and_restore_gpregs_spe): Likewise.
1486 2008-11-03 Harsha Jagasia <harsha.jagasia@amd.com>
1488 PR tree-optimization/37684
1489 * gcc.dg/graphite/pr37684.c: New.
1490 * graphite.c (exclude_component_ref): New.
1491 (is_simple_operand): Call exclude_component_ref.
1493 2008-11-03 Sebastian Pop <sebastian.pop@amd.com>
1495 PR tree-optimization/36908
1496 * testsuite/gcc.dg/tree-ssa/pr36908.c: New.
1497 * tree-loop-distribution.c (number_of_rw_in_rdg): New.
1498 (number_of_rw_in_partition): New.
1499 (partition_contains_all_rw): New.
1500 (ldist_gen): Do not distribute when one of the partitions
1501 contains all the memory operations.
1503 2008-11-03 Sebastian Pop <sebastian.pop@amd.com>
1505 * cfghooks.c (split_block): Set BB_IRREDUCIBLE_LOOP and
1506 EDGE_IRREDUCIBLE_LOOP.
1508 2008-11-03 Bernd Schmidt <bernd.schmidt@analog.com>
1510 * config/bfin/bfin.c (bfin_optimize_loop): Properly handle case
1511 where we have one entry point in the loop which isn't the head.
1513 2008-11-03 Richard Guenther <rguenther@suse.de>
1516 * tree-data-ref.c (split_constant_offset_1): Fix tuplification.
1518 2008-11-03 Jakub Jelinek <jakub@redhat.com>
1521 * passes.c (execute_one_pass): Don't look at cfun->curr_properties
1522 for ipa and simple ipa passes.
1524 2008-11-02 Richard Guenther <rguenther@suse.de>
1526 PR tree-optimization/37542
1527 * tree-ssa-pre.c (fully_constant_expression): Handle more cases.
1528 * tree-ssa-sccvn.c (vn_get_expr_for): Fix typo.
1529 (vn_nary_op_lookup_stmt): Adjust for unary reference trees.
1530 (vn_nary_op_insert_stmt): Likewise.
1531 (visit_use): Likewise.
1533 2008-11-02 Anatoly Sokolov <aesok@post.ru>
1535 * config/avr/avr.md (UNSPEC_SWAP): Remove constants.
1537 (rotlqi3, *rotlqi3_4, rotlhi3, *rotlhi3_8,
1538 rotlsi3, *rotlsi3_8, *rotlsi3_16, *rotlsi3_24): New patterns.
1539 (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, ashlqi3_l_const4,
1540 ashlqi3_l_const5, ashlqi3_l_const6, lshrqi3_const4, lshrqi3_const5,
1541 lshrqi3_const6, lshrqi3_l_const4, lshrqi3_l_const4, lshrqi3_l_const6
1542 peephole2's): Replace unspec with rotate.
1543 * config/avr/avr.c (avr_rtx_costs): Add ROTATE.
1545 2008-11-02 Richard Guenther <rguenther@suse.de>
1547 PR tree-optimization/37991
1548 * tree-ssa-sccvn.h (copy_vuses_from_stmt): Remove.
1549 * tree-ssa-sccvn.c (copy_vuses_from_stmt): Make static.
1550 (set_ssa_val_to): Print if the value changed.
1551 (simplify_binary_expression): Strip useless conversions.
1553 2008-11-01 Hans-Peter Nilsson <hp@axis.com>
1556 * config/cris/cris.c (cris_rtx_costs) <MULT>: Return 0 for an ADDI
1559 2008-11-01 Richard Guenther <rguenther@suse.de>
1562 * builtins.c (fold_builtin_strspn): Return a size_t.
1563 (fold_builtin_strcspn): Likewise.
1565 2008-10-31 Nathan Froyd <froydnj@codesourcery.com>
1567 * config/rs6000/rs6000.c (rs6000_file_start): Output gnu
1568 attribute for struct return convention.
1570 2008-10-31 Nathan Froyd <froydnj@codesourcery.com>
1572 * config/rs6000/crtsavres.asm: Really, really delete.
1574 2008-10-31 Nathan Froyd <froydnj@codesourcery.com>
1576 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
1578 (rs6000_emit_prologue): Invert logic.
1579 * config/rs6000/rs6000.md (*save_gpregs_<mode>): Use explicit
1580 (reg:P 11) instead of match_operand.
1581 (*save_fpregs_<mode>): Likewise.
1582 (*restore_gpregs_<mode>): Likewise.
1583 (*return_and_restore_gpregs_<mode>): Likewise.
1584 (*return_and_restore_fpregs_<mode>): Likewise.
1585 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit
1586 (reg:P 11) insted of match_operand.
1587 (*restore_gpregs_spe): Likewise.
1588 (*return_and_restore_gpregs_spe): Likewise.
1590 2008-10-28 Luis Machado <luisgpm@br.ibm.com>
1592 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add "dumpbase" to the
1593 list of word switches that take args.
1595 2008-10-30 Jakub Jelinek <jakub@redhat.com>
1597 * config/s390/s390.c (s390_mark_symbol_ref_as_used): New function.
1598 (s390_output_pool_entry): Call it through for_each_rtx.
1601 * expr.c (store_constructor): For vectors, if target is a MEM, use
1602 target's MEM_ALIAS_SET instead of elttype alias set.
1604 2008-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
1607 * config/sh/sh.c (untangle_mova): Return -1 when NEW_MOVA has
1610 2008-10-29 David Edelsohn <edelsohn@gnu.org>
1613 * config/rs6000/predicates.md (word_offset_memref_operand):
1614 Restructure code and look inside auto-inc/dec addresses.
1616 2008-10-29 Steve Ellcey <sje@cup.hp.com>
1619 * libgcov.c ( __gcov_indirect_call_profiler): Check
1620 TARGET_VTABLE_USES_DESCRIPTORS.
1622 2008-10-29 Stefan Schulze Frielinghaus <xxschulz@de.ibm.com>
1624 * config/spu/spu.h (FRAME_GROWS_DOWNWARD): Define.
1625 (INITIAL_FRAME_POINTER_OFFSET): Remove.
1626 * config/spu/spu.c (spu_initial_elimination_offset): Calculate new
1627 offset if eliminating soft frame pointer.
1628 * config/spu/spu.md (stack_protect_set, stack_protect_test)
1629 (stack_protect_test_si): Add initial machine description
1630 for Stack Smashing Protector
1632 2008-10-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1635 * c-common.c (min_precision): Move to...
1636 * tree.c (tree_int_cst_min_precision): ... to here. Renamed.
1637 * tree.h (tree_int_cst_min_precision): Declare.
1638 * c-common.h (min_precision): Delete declaration.
1639 * fold-const.c (tree_binary_nonnegative_warnv_p): Handle
1640 multiplication of non-negative integer constants.
1641 * c-decl.c (check_bitfield_type_and_width): Rename min_precision to
1642 tree_int_cst_min_precision.
1643 (finish_enum): Likewise.
1645 2008-10-29 Joseph Myers <joseph@codesourcery.com>
1648 * convert.c (convert_to_real): Do not optimize conversions of
1649 binary arithmetic operations between binary and decimal
1650 floating-point types. Consider mode of target type in determining
1651 decimal type for arithmetic. Unless
1652 flag_unsafe_math_optimizations, do not optimize binary conversions
1653 where this may change rounding behavior.
1654 * real.c (real_can_shorten_arithmetic): New.
1655 * real.h (real_can_shorten_arithmetic): Declare.
1657 2008-10-29 Bernd Schmidt <bernd.schmidt@analog.com>
1659 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315,
1660 ENABLE_WA_05000257, ENABLE_WA_05000283, ENABLE_WA_05000315): New.
1661 * config/bfin/bfin.c (bfin_cpus): Add these workaround bits as
1663 (must_save_p): For some workarounds, interrupts need to clobber a
1665 (expand_prologue_reg_save, expand_epilogue_reg_restore): Save LC0
1666 and LC1 for WA_05000257.
1667 (expand_interrupt_handler_prologue): Add dummy read of CHIPID for
1668 WA_05000283 and WA_05000315.
1669 * config/bfin/bfin.md (UNSPEC_VOLATILE_DUMMY): New constant.
1670 (movbi): Add alternative to set CC to 1; improve code for setting
1672 (dummy_load): New pattern.
1674 2008-10-29 Jakub Jelinek <jakub@redhat.com>
1677 * expmed.c (extract_bit_field_1): If int_mode_for_mode returns
1678 BLKmode for non-memory, convert using a wider MODE_INT mode
1682 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Only split bbs
1683 that haven't been removed yet.
1685 2008-10-29 Bernd Schmidt <bernd.schmidt@analog.com>
1687 * config/bfin/bfin.c (struct machine_function): New member
1688 has_loopreg_clobber.
1689 (bfin_expand_movmem): Set it when generating memcpy insns.
1690 (n_regs_saved_by_prologue, expand_prologue_reg_save,
1691 expand_epilogue_reg_restore): If we have hardware loops,
1692 memcpy insns (indicated by has_loopreg_clobber) or function
1693 calls, we need to save the loop registers.
1695 2008-10-28 H.J. Lu <hongjiu.lu@intel.com>
1697 * config/i386/i386.c (core2_cost): Fix typos in comments.
1699 2008-10-28 Jakub Jelinek <jakub@redhat.com>
1702 * combine.c (make_compound_operation): Don't call make_extraction with
1703 non-positive length.
1704 (simplify_shift_const_1): Canonicalize count even if complement_p.
1706 2008-10-28 Joseph Myers <joseph@codesourcery.com>
1708 * convert.c (strip_float_extensions): Do not remove or introduce
1709 conversions between binary and decimal floating-point types.
1711 2008-10-28 Jakub Jelinek <jakub@redhat.com>
1714 * fold-const.c (distribute_bit_expr): Convert common, left and
1715 right arguments to type.
1717 2008-10-28 Nick Clifton <nickc@redhat.com>
1719 * config/mn10300/mn10300.h (CALL_REALLY_USED_REGISTERS): Define.
1720 * config/mn10300/mn10300.c (fp_regs_to_save): Test the
1721 call_really_used_regs array rather than the call_used_regs array.
1722 (mn10300_get_live_callee_saved_regs, expand_prologue,
1723 expand_epilogue, output_tst): Likewise.
1725 2008-10-27 Jakub Jelinek <jakub@redhat.com>
1728 * df-scan.c (df_bb_refs_collect): Don't handle EH_USES here.
1729 (df_get_entry_block_def_set): Neither here.
1730 (df_get_regular_block_artificial_uses): Add EH_USES registers.
1732 PR tree-optimization/37879
1733 * predict.c (tree_estimate_probability): Check if last_stmt is
1734 non-NULL before dereferencing it.
1736 2008-10-27 Vladimir Makarov <vmakarov@redhat.com>
1738 * ira-int.h (ira_allocno): Add member updated_cover_class_cost.
1739 (ALLOCNO_UPDATED_COVER_CLASS_COST): New.
1740 (ira_fast_allocation): Remove the prototype.
1742 * ira-color.c (update_copy_costs, allocno_cost_compare_func,
1743 assign_hard_reg, calculate_allocno_spill_cost): Use updated costs.
1744 (color_pass): Modify the updated costs.
1745 (ira_color): Rename to color. Make it static.
1746 (ira_fast_allocation): Rename to fast_allocation. Make it static.
1747 (ira_color): New function.
1749 * ira-conflicts.c (process_regs_for_copy): Propagate hard reg cost
1752 * ira-lives.c (last_call_num, allocno_saved_at_call): New
1754 (set_allocno_live, clear_allocno_live, mark_ref_live,
1755 mark_ref_dead): Invalidate corresponding element of
1756 allocno_saved_at_call.
1757 (process_bb_node_lives): Increment last_call_num. Setup
1758 allocno_saved_at_call. Don't increase ALLOCNO_CALL_FREQ if the
1759 allocno was already saved.
1760 (ira_create_allocno_live_ranges): Initiate last_call_num and
1761 allocno_saved_at_call.
1763 * ira-build.c (ira_create_allocno): Initiate
1764 ALLOCNO_UPDATED_COVER_CLASS_COST.
1765 (create_cap_allocno, propagate_allocno_info,
1766 remove_unnecessary_allocnos): Remove setting updated costs.
1767 (ira_flattening): Set up ALLOCNO_UPDATED_COVER_CLASS_COST.
1769 * ira.c (ira): Don't call ira_fast_allocation.
1771 * ira-costs.c (setup_allocno_cover_class_and_costs): Don't set up
1774 2008-10-27 Vladimir Makarov <vmakarov@redhat.com>
1777 * ira-conflicts.c (process_regs_for_copy): Remove class subset check.
1779 * ira-int.h (ira_hard_regno_cover_class): New.
1781 * ira-lives.c (mark_reg_live, mark_reg_dead,
1782 process_bb_node_lives): Use ira_hard_regno_cover_class.
1784 * ira.c (reg_class ira_hard_regno_cover_class): New global variable.
1785 (setup_hard_regno_cover_class): New function.
1786 (ira_init): Call setup_hard_regno_cover_class.
1788 * ira-costs.c (cost_class_nums): Add comment.
1789 (find_allocno_class_costs): Initiate cost_class_nums.
1790 (setup_allocno_cover_class_and_costs): Check cost_class_nums.
1792 2008-10-27 Vladimir Makarov <vmakarov@redhat.com>
1795 * ira-build.c (copy_live_ranges_to_removed_store_destinations):
1796 Rename to copy_info_to_removed_store_destinations. Propagate
1797 conflict hard regs and register stack attribute.
1799 2008-10-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1802 * pa.c (function_arg_padding): Pad complex and vector types
1803 upward in 64-bit runtime.
1804 (function_arg): Use BLKmode for PARALLEL in 64-bit runtime.
1806 2008-10-26 Matthias Klose <doko@ubuntu.com>
1808 * doc/install.texi: Document requirements on antlr.
1810 2008-10-25 Richard Sandiford <rdsandiford@googlemail.com>
1812 * config/mips/mips.h (REG_ALLOC_ORDER): Put call-clobbered registers
1815 2008-10-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1818 * function.c (locate_and_pad_parm): If FUNCTION_ARG_ADJUST_OFFSET
1819 is defined, use it to modify the constant offset.
1821 * doc/tm.texi (FUNCTION_ARG_OFFSET): Document new macro.
1823 * config/spu/spu.h (FUNCTION_ARG_OFFSET): New macro to move char
1824 and short arguments to the correct location as mandated by the ABI.
1826 2008-10-24 Kaz Kojima <kkojima@gcc.gnu.org>
1828 PR rtl-optimization/37769
1829 * regmove.c (optimize_reg_copy_2): Update REG_INC note if needed.
1831 2008-10-24 Kaz Kojima <kkojima@gcc.gnu.org>
1833 * config/sh/t-sh: Use $(MULTILIB_CFLAGS) when compiling to
1834 unwind-dw2-Os-4-200.o.
1836 2008-10-24 Joseph Myers <joseph@codesourcery.com>
1838 * c-typeck.c (enum impl_conv): Remove ic_argpass_nonproto.
1839 (convert_for_assignment): Remove ic_argpass_nonproto cases.
1841 2008-10-24 Jakub Jelinek <jakub@redhat.com>
1843 PR tree-optimization/36038
1844 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): For pointer bases
1845 add sizetype IV with initial value zero instead of pointer type.
1847 2008-10-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
1850 * value-prof.c (gimple_stringop_fixed_value): Use parentheses
1851 around bit operation.
1852 * profile.c (is_edge_inconsistent): Likewise.
1853 * fold-const.c (truth_value_p): Move from here...
1854 * tree.h (truth_value_p): ... to here.
1855 * c-tree.h (c_expr): Update description of original_code.
1856 * c-typeck.c (parser_build_unary_op): Set original_code.
1857 (parser_build_binary_op): Update call to warn_about_parentheses.
1858 * c-common.c (warn_about_parentheses): Take two additional
1859 arguments of the operands. Use a switch. Quote operators
1860 appropriately. Define macro APPEARS_TO_BE_BOOLEAN_EXPR_P.
1861 Add warning about !x | y and !x & y.
1862 * c-common.h (warn_about_parentheses): Update declaration.
1864 2008-10-24 Jakub Jelinek <jakub@redhat.com>
1866 * Makefile.in (lang_checks_parallelized, check_gcc_parallelize,
1867 check_p_tool, check_p_vars, check_p_subno, check_p_comma,
1868 check_p_subwork, check_p_numbers, check_p_subdir, check_p_subdirs):
1870 (check-subtargets, check-%-subtargets, check-parallel-%): New targets.
1871 (check-%): For test targets listed in lang_checks_parallelized
1872 if -j is used and RUNTESTFLAGS doesn't specify tests to execute,
1873 run the testing in multiple make goals, possibly parallel, and
1874 afterwards run dg-extract-results.sh to merge the sum and log files.
1876 2008-10-24 Richard Sandiford <rdsandiford@googlemail.com>
1878 * config/mips/mips.c (mips_canonicalize_move_class): New function.
1879 (mips_move_to_gpr_cost): Likewise.
1880 (mips_move_from_gpr_cost): Likewise.
1881 (mips_register_move_cost): Make more fine-grained.
1883 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
1885 * graphite.c (graphite_apply_transformations): Check for
1886 -fgraphite-identity.
1887 * toplev.c (process_options): Add graphite_identity.
1888 * tree-ssa-loop.c (gate_graphite_transforms): Add graphite_identity.
1890 2008-10-23 Bernd Schmidt <bernd.schmidt@analog.com>
1892 * config/bfin/bfin.c (bdesc_2arg): Add mulhisill, mulhisilh,
1893 mulhisihl and mulhisihh builtins.
1895 From Jie Zhang <jie.zhang@analog.com>
1896 * config/bfin/bfin.md (composev2hi): Put operands into vector
1899 2008-10-22 Chao-ying Fu <fu@mips.com>
1901 * config/mips/mips.opt (msmartmips): Accept -mno-smartmips.
1903 2008-10-22 Bernd Schmidt <bernd.schmidt@analog.com>
1905 From Mike Frysinger <michael.frysinger@analog.com>
1906 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF512,
1907 BFIN_CPU_BF514, BFIN_CPU_BF516, and BFIN_CPU_BF518.
1908 * config/bfin/bfin.c (bfin_cpus[]): Add 0.0 for bf512, bf514, bf516,
1909 and bf518. Add 0.2 for bf522, bf523, bf524, bf526, and bf527.
1910 Add 0.6 for bf533, bf532, and bf531. Add 0.5 for bf538 and bf539.
1911 Add 0.2 for bf542, bf544, bf547, bf548, and bf549.
1912 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF512__
1913 for BFIN_CPU_BF512, __ADSPBF514__ for BFIN_CPU_BF514, __ADSPBF516__
1914 for BFIN_CPU_BF516, and __ADSPBF518__ for BFIN_CPU_BF518. Define
1915 __ADSPBF51x__ for all of them.
1916 * config/bfin/elf.h (LIB_SPEC): Select proper linker scripts for
1917 -mcpu bf512, bf514, bf516, and bf518.
1918 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1919 bf512-none, bf514-none, bf516-none, and bf518-none.
1920 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1921 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1922 * doc/invoke.texi (Blackfin Options): Document that
1923 -mcpu now accepts bf512, bf514, bf516, and bf518.
1925 2008-10-22 Jakub Jelinek <jakub@redhat.com>
1928 * fold-const.c (build_range_type): For 1 .. signed_max
1929 range call build_nonstandard_inter_type if signed_type_for
1930 returned a type with bigger precision.
1932 2008-10-22 Richard Guenther <rguenther@suse.de>
1934 * tree.def (COMPLEX_TYPE): Constrain element type.
1935 * tree.c (build_complex_type): Assert that.
1936 * tree-ssa-structalias.c (could_have_pointers): Complex types
1937 cannot have pointers.
1939 2008-10-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1942 * c-typeck.c (convert_for_assignment): Do not give declaration's
1943 location for builtins. Spell out which type was expected and which
1946 2008-10-22 Nick Clifton <nickc@redhat.com>
1948 * config/frv/frv.h (HARD_REGNO_RENAME_OK): Define. Do not allow
1949 the fdpic register to be a target when running in fdpic mode.
1951 2008-10-22 Rafael Espindola <espindola@google.com>
1953 * ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the
1954 newly created statements.
1956 2008-10-22 Kaz Kojima <kkojima@gcc.gnu.org>
1959 * config/sh/sh.c (sh_hard_regno_mode_ok): New function.
1960 * config/sh/sh.h (HARD_REGNO_MODE_OK): Use it.
1961 * config/sh/sh-protos.h (sh_hard_regno_mode_ok): Declare.
1963 2008-10-22 Jakub Jelinek <jakub@redhat.com>
1966 * doc/invoke.texi: Fix spelling of -mlarge-data-threshold option.
1967 Adjust -mcmodel=medium description for 2005-07-31 changes.
1969 2008-10-22 Jan Hubicka <jh@suse.cz>
1970 Jakub Jelinek <jakub@redhat.com>
1973 * doc/invoke.texi: Remove references to obsoleted -d dumps.
1975 2008-10-21 Richard Henderson <rth@redhat.com>
1978 * emit-rtl.c (get_spill_slot_decl): Export.
1979 * emit-rtl.h (get_spill_slot_decl): Declare.
1980 * var-tracking.c (vt_add_function_parameters): Relax assertion
1981 on the contents of MEM_EXPR in a PARM_DECL to include a spill slot.
1983 2008-10-21 Bob Wilson <bob.wilson@acm.org>
1985 * var-tracking.c (insn_stack_adjust_offset_pre_post): If insn has a
1986 REG_FRAME_RELATED_EXPR note, examine the pattern from the note instead
1989 2008-10-21 Adam Nemet <anemet@caviumnetworks.com>
1992 * tree-ssa-ccp.c (ccp_fold_builtin): Only allow one argument to be
1993 processed by get_maxval_strlen.
1995 2008-10-21 David Edelsohn <edelsohn@gnu.org>
1998 * tree.c (get_file_function_name): Copy first_global_object_name.
1999 Centralize call to clean_symbol_name.
2001 2008-10-21 Sandra Loosemore <sandra@codesourcery.com>
2003 * config.gcc (powerpc-*): Make t-ppcgas imply usegas.h.
2004 * config/svr4.h (SVR4_ASM_SPEC): New.
2005 (ASM_SPEC): Inherit from SVR4_ASM_SPEC.
2006 * config/rs6000/sysv4.h (ASM_SPEC): Inherit from SVR4_ASM_SPEC.
2008 * doc/invoke.texi (Option Summary): Add -T to linker options.
2009 (Link Options): Document -T.
2011 2008-10-21 Jakub Jelinek <jakub@redhat.com>
2013 * tree-inline.c (tree_inlinable_function_p): Remove tuples
2016 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.
2019 * c-decl.c (merge_decls): Don't call outlining_inline_function hook.
2021 2008-10-20 Daniel Berlin <dberlin@dberlin.org>
2023 * tree-ssa-pre.c (insert_into_preds_of_block): Don't rewrite constant
2026 2008-10-20 Tobias Schlüter <tobi@gcc.gnu.org>
2028 * doc/install.texi: Fix typos in previous patch.
2030 2008-10-19 Tobias Schlüter <tobi@gcc.gnu.org>
2032 * doc/install.texi: Document in-tree building of gcc and mpfr.
2034 2008-10-19 Richard Guenther <rguenther@suse.de>
2036 * tree-ssa-alias.c (may_alias_p): Remove bogus shortcut.
2038 2008-10-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2041 * c-decl.c (finish_enum): Convert non-integer enumerators to enum type.
2042 (build_enumerator): Convert enumerators that fit in integer to
2045 2008-10-18 Uros Bizjak <ubizjak@gmail.com>
2047 * config/i386/i386.md (unnamed peephole2): Do not force memory
2048 operands of arith or logical instructions into registers for
2049 non-TARGET_READ_MODIFY targets.
2051 (ffs_cmove): Change operand 0 predicate to register_operand.
2052 Change operand 1 predicate to nonimmediate_operand.
2054 (*ffs_no_cmove): Change operand 0 predicate to register_operand.
2056 2008-10-18 Richard Guenther <rguenther@suse.de>
2058 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Guard
2059 VIEW_CONVERT_EXPR case against invalid gimple.
2061 2008-10-17 Andreas Krebbel <krebbel1@de.ibm.com>
2063 * c-parser.c (c_parser_binary_expression): Silence the
2064 uninitialized variable warning emitted for binary_loc.
2066 2008-10-16 Daniel Berlin <dberlin@dberlin.org>
2068 * tree-ssa-pre.c (phi_translate_set): Add constants to phi
2071 2008-10-16 Joseph Myers <joseph@codesourcery.com>
2074 * c-typeck.c (build_unary_op): Use omit_one_operand for
2075 IMAGPART_EXPR of real argument.
2077 2008-10-16 Jakub Jelinek <jakub@redhat.com>
2079 PR tree-optimization/37664
2080 * fold-const.c (fold_binary): When optimizing comparison with
2081 highest or lowest type's value, don't consider TREE_OVERFLOW.
2083 2008-10-16 David Edelsohn <edelsohn@gnu.org>
2086 * Makefile.in (coverage.o): Depend on $(TM_P_H).
2087 * coverage.c: Include tm_p.h.
2088 * config/rs6000/x-aix (jc1): Override LDFLAGS.
2089 * config/rs6000/xcoff.h (ASM_GENERATE_INTERNAL_LABEL): Strip
2090 dollar signs from PREFIX.
2091 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
2092 instead of manual strip_name_encoding.
2094 2008-10-16 Richard Guenther <rguenther@suse.de>
2097 * tree-ssa.c (useless_type_conversion_p_1): Do not treat
2098 volatile qualified functions or methods as relevant.
2100 2008-10-16 Jakub Jelinek <jakub@redhat.com>
2102 PR tree-optimization/37525
2103 * tree.c (int_fits_type_p): Rewrite using double_int. Zero extend
2104 sizetype unsigned constants, both in the case of C and bounds.
2106 2008-10-15 Jan Hubicka <jh@suse.cz>
2108 * ira-emit.c (change_regs): Return false when replacing reg by itself.
2110 2008-10-14 Vladimir Makarov <vmakarov@redhat.com>
2113 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Check
2114 HARD_REGNO_CALL_PART_CLOBBERED.
2116 2008-10-15 Vladimir Makarov <vmakarov@redhat.com>
2119 * ira-lives.c (mark_early_clobbers): Remove.
2120 (make_pseudo_conflict, check_and_make_def_use_conflicts,
2121 check_and_make_def_conflicts,
2122 make_early_clobber_and_input_conflicts,
2123 mark_hard_reg_early_clobbers): New functions.
2124 (process_bb_node_lives): Call
2125 make_early_clobber_and_input_conflicts and
2126 mark_hard_reg_early_clobbers. Make hard register inputs live again.
2128 * doc/rtl.texi (clobber): Change descriotion of RA behaviour for
2129 early clobbers of pseudo-registers.
2131 2008-10-15 Vladimir Makarov <vmakarov@redhat.com>
2134 * ira-build.c (ira_flattening): Recalculate
2135 ALLOCNO_TOTAL_NO_STACK_REG_P and ALLOCNO_TOTAL_CONFLICT_HARD_REGS
2136 from the scratch instead of the propagation.
2138 2008-10-15 Richard Sandiford <rdsandiford@googlemail.com>
2140 * doc/rtl.texi (const_double): Remove the "addr" operand.
2141 Describe CONST_DOUBLE_* macros under const_double rather
2143 (const_fixed): Fix the operand description.
2144 (const): Add an @findex directive.
2145 (CONST0_RTX, CONST1_RTX, CONST2_RTX): Move description
2146 after the constant rtl table.
2147 (fix): Combine floating-point and fixed-point descriptions.
2149 * sched-deps.c (sched_analyze_2): Remove reference to
2152 2008-10-15 Richard Sandiford <rdsandiford@googlemail.com>
2154 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Handle
2156 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Return true
2157 for UNSPEC_GOTSYM_OFFs.
2158 * config/mn10300/mn10300.md (UNSPEC_GOTSYM_OFF): New unspec.
2159 (add_GOT_to_pic_reg): Use it.
2160 * config/mn10300/constraints.md (S): Allow UNSPEC_GOTSYM_OFF.
2162 2008-10-15 Jan Sjodin <jan.sjodin@amd.com>
2163 Harsha Jagasia <harsha.jagasia@amd.com>
2165 PR tree-optimization/37485
2166 * graphite.c (gmp_cst_to_tree): Moved.
2167 (iv_stack_entry_is_constant): New.
2168 (iv_stack_entry_is_iv): New.
2169 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
2170 (loop_iv_stack_insert_constant): New.
2171 (loop_iv_stack_pop): Use new datatpype.
2172 (loop_iv_stack_get_iv): Same.
2173 (loop_iv_stack_get_iv_from_name): Same.
2174 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
2175 (loop_iv_stack_patch_for_consts): New.
2176 (loop_iv_stack_remove_constants): New.
2177 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
2178 (translate_clast): Call loop_iv_stack_patch_for_consts and
2179 loop_iv_stack_remove_constants.
2180 (gloog): Use new datatype. Redirect construction edge to end
2181 block to avoid accidental deletion.
2182 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
2184 (union iv_stack_entry_data): New. Data in iv stack entry.
2185 (struct iv_stack_entry): New. Datatype for iv stack entries.
2187 2008-10-15 Sebastian Pop <sebastian.pop@amd.com>
2189 * tree-data-ref.c (stmt_simple_memref_p): Fix memleak.
2190 * graphite.c (free_scop): Same.
2191 (build_scops): Same.
2192 (free_scattering): New.
2193 (build_cloog_prog): Call free_scattering.
2194 (patch_phis_for_virtual_defs): Fix memleak.
2195 (graphite_trans_bb_strip_mine): Same.
2196 (limit_scops): Same.
2198 2008-10-15 Sebastian Pop <sebastian.pop@amd.com>
2199 Harsha Jagasia <harsha.jagasia@amd.com>
2201 PR tree-optimization/37828
2202 * graphite.c (graphite_trans_loop_block): Do not loop block
2203 single nested loops.
2205 2008-10-15 Sebastian Pop <sebastian.pop@amd.com>
2207 PR tree-optimization/37686
2208 * tree-loop-linear.c (linear_transform_loops): Build a
2209 loop nest vector. Pass it to lambda_compute_access_matrices.
2210 * tree-data-ref.h (struct access_matrix): Store the loop nest
2211 relative to which it encodes the information.
2212 (AM_LOOP_NEST_NUM): Renamed AM_LOOP_NEST.
2213 (am_vector_index_for_loop): Reimplemented: iterate over the
2214 loop nest for finding the loop index in the access matrix.
2215 (lambda_compute_access_matrices): Update declaration.
2216 * lambda-code.c (build_access_matrix): Pass the loop nest and
2218 (lambda_compute_access_matrices): Same.
2220 2008-10-15 Andreas Krebbel <krebbel1@de.ibm.com>
2222 * config/s390/s390.h: (TARGET_DFP): This requires TARGET_HARD_FLOAT.
2223 * config/s390/s390.md: Replace "TARGET_HARD_FLOAT &&
2224 TARGET_(HARD_)DFP" with only TARGET_(HARD_)DFP since this
2225 already implies hard float. Also fix several insn condition
2226 with TARGET_DFP which shall require TARGET_HARD_DFP instead.
2228 2008-10-15 David Edelsohn <edelsohn@gnu.org>
2231 Based on patches by Laurent Vivier.
2232 * xcoffout.h (DBX_FINISH_STABS): Translate dollar sign to underscore.
2233 * config/rs6000/rs6000-protos.h (rs6000_xcoff_strip_dollar): Declare.
2234 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Translate
2235 dollar sign to underscore.
2236 (ASM_OUTPUT_EXTERNAL): Same.
2237 (ASM_OUTPUT_LABELREF): New.
2238 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): New.
2240 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Define.
2241 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Define.
2242 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Define.
2243 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Define.
2245 2008-10-15 Jakub Jelinek <jakub@redhat.com>
2247 PR tree-optimization/36881
2248 * tree-switch-conversion.c (check_final_bb): For flag_pic, check
2249 that each value doesn't need runtime relocations, for !flag_pic
2250 check that each value is just a valid initializer constant.
2252 2008-10-14 Richard Sandiford <rdsandiford@googlemail.com>
2254 * config/mips/mips.h (reg_class): Remove HI_AND_GR_REGS,
2255 LO_AND_GR_REGS, HI_AND_FP_REGS, COP0_AND_GR_REGS, COP2_AND_GR_REGS,
2256 COP3_AND_GR_REGS, ALL_COP_REGS and ALL_COP_AND_GR_REGS.
2257 Add GR_AND_MD0_REGS, GR_AND_MD1_REGS, GR_AND_MD_REGS and
2259 (REG_CLASS_NAMES): Update accordingly.
2260 (REG_CLASS_CONTENTS): Likewise. Use the class name in the comments,
2261 rather than an unpredictable descriptive string.
2262 * config/mips/mips.c (mips_register_move_cost): Remove comment.
2263 (mips_register_move_cost): Check for specific COP*_REGS classes,
2264 instead of ALL_COP_AND_GR_REGS.
2265 (mips_ira_cover_classes): New function.
2266 (mips_secondary_reload_class): Remove MTLO and MTHI workarounds.
2267 (TARGET_IRA_COVER_CLASSES): Define.
2269 2008-10-14 Douglas Gregor <doug.gregor@gmail.com>
2272 * tree.c (build_type_attribute_qual_variant): Hash on the
2273 unqualified type, and don't overwrite an existing
2274 (type_hash_eq): Make the TYPE_NAME of the types significant, to
2275 allow distinguishing between wchar_t and its underlying type. This
2276 also means that we'll retain a little more typedef information.
2278 2008-10-14 Andrey Belevantsev <abel@ispras.ru>
2279 Dmitry Melnik <dm@ispras.ru>
2280 Dmitry Zhurikhin <zhur@ispras.ru>
2281 Alexander Monakov <amonakov@ispras.ru>
2282 Maxim Kuvyrkov <maxim@codesourcery.com>
2284 * target.h (struct gcc_target): Update prototypes of needs_block_p
2286 * haifa-sched.c (create_check_block_twin): Update calls to the above.
2287 * sel-sched.c (create_speculation_check): Likewise.
2288 * doc/tm.texi: Provide documentation for new target hooks.
2290 * config/ia64/ia64.c: Include sel-sched.h. Rewrite speculation hooks.
2291 (ia64_gen_spec_insn): Removed.
2292 (get_spec_check_gen_function, insn_can_be_in_speculative_p,
2293 ia64_gen_spec_check): New static functions.
2294 (ia64_alloc_sched_context, ia64_init_sched_context,
2295 ia64_set_sched_context, ia64_clear_sched_context,
2296 ia64_free_sched_context, ia64_get_insn_spec_ds,
2297 ia64_get_insn_checked_ds, ia64_skip_rtx_p): Declare functions.
2298 (ia64_needs_block_p): Change prototype.
2299 (ia64_gen_check): Rename to ia64_gen_spec_check.
2300 (ia64_adjust_cost): Rename to ia64_adjust_cost_2. Add new parameter
2301 into declaration, add special memory dependencies handling.
2302 (TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
2303 TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2304 TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_SPEC_DS,
2305 TARGET_SCHED_GET_INSN_CHECKED_DS, TARGET_SCHED_SKIP_RTX_P):
2306 Define new target hooks.
2307 (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
2308 (ia64_optimization_options): Turn on selective scheduling with -O3,
2309 disable -fauto-inc-dec. Set mflag_sched_control_spec to true by
2310 default with selective scheduling.
2311 (ia64_override_options): Initialize align_loops and align_functions
2312 to 32 and 64, respectively. Set global selective scheduling flags
2313 according to target-dependent flags.
2314 (rtx_needs_barrier): Support UNSPEC_LDS_A.
2315 (group_barrier_needed): Use new mstop-bit-before-check flag.
2317 (dfa_state_size): Make global.
2318 (spec_check_no, max_uid): Remove.
2319 (mem_ops_in_group, current_cycle): New variables.
2320 (ia64_sched_init): Disable checks for !SCHED_GROUP_P after reload.
2321 Initialize new variables.
2322 (is_load_p, record_memory_reference): New functions.
2323 (ia64_dfa_sched_reorder): Lower priority of loads when limit is
2325 (ia64_variable_issue): Change use of current_sched_info to
2326 sched_deps_info. Update comment. Note if a load or a store is issued.
2327 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Require a cycle
2328 advance if maximal number of loads or stores was issued on current
2330 (scheduled_good_insn): New static helper function.
2331 (ia64_dfa_new_cycle): Assert that last_scheduled_insn is set when
2332 a group barrier is needed. Fix vertical spacing. Guard the code
2333 doing state transition with last_scheduled_insn check.
2334 Mark that a stop bit should be before current insn if there was a
2335 cycle advance. Update current_cycle and mem_ops_in_group.
2336 (ia64_h_i_d_extended): Change use of current_sched_info to
2337 sched_deps_info. Reallocate stops_p by larger chunks.
2338 (struct _ia64_sched_context): New structure.
2339 (ia64_sched_context_t): New typedef.
2340 (ia64_alloc_sched_context, ia64_init_sched_context,
2341 ia64_set_sched_context, ia64_clear_sched_context,
2342 ia64_free_sched_context): New static functions.
2343 (gen_func_t): New typedef.
2344 (get_spec_load_gen_function): New function.
2345 (SPEC_GEN_EXTEND_OFFSET): Declare.
2346 (ia64_set_sched_flags): Check common_sched_info instead of *flags.
2347 (get_mode_no_for_insn): Change the condition that prevents use of
2348 special hardware registers so it can now handle pseudos.
2349 (get_spec_unspec_code): New function.
2350 (ia64_skip_rtx_p, get_insn_spec_code, ia64_get_insn_spec_ds,
2351 ia64_get_insn_checked_ds, ia64_gen_spec_load): New static functions.
2352 (ia64_speculate_insn, ia64_needs_block_p): Support branchy checks
2353 during selective scheduling.
2354 (ia64_speculate_insn): Use ds_get_speculation_types when
2355 determining whether we need to change the pattern.
2356 (SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET): Declare.
2357 (ia64_spec_check_src_p): Support new speculation/check codes.
2358 (struct bundle_state): New field.
2359 (issue_nops_and_insn): Initialize it.
2360 (insert_bundle_state): Minimize mid-bundle stop bits.
2361 (important_for_bundling_p): New function.
2362 (get_next_important_insn): Use important_for_bundling_p.
2363 (bundling): When shifting TImode from unimportant insns, ignore
2364 also group barriers. Assert that best state is found before
2365 the backward bundling pass. Print number of mid-bundle stop bits.
2366 Minimize mid-bundle stop bits. Check correct calculation of
2367 mid-bundle stop bits.
2368 (ia64_sched_finish, final_emit_insn_group_barriers): Fix formatting.
2369 (final_emit_insn_group_barriers): Emit stop bits before insns starting
2371 (sel2_run): New variable.
2372 (ia64_reorg): When flag_selective_scheduling2 is set, run the
2373 selective scheduling pass instead of schedule_ebbs.
2375 * config/ia64/ia64.md (speculable1, speculable2): New attributes.
2376 (UNSPEC_LDS_A): New UNSPEC.
2377 (movqi_internal, movhi_internal, movsi_internal, movdi_internal,
2378 movti_internal, movsf_internal, movdf_internal,
2379 movxf_internal): Make visible. Add speculable* attributes.
2380 (output_c_nc): New mode attribute.
2381 (mov<mode>_speculative_a, zero_extend<mode>di2_speculative_a,
2382 mov<mode>_nc, zero_extend<mode>di2_nc,
2383 advanced_load_check_nc_<mode>): New insns.
2384 (zero_extend*): Add speculable* attributes.
2386 * config/ia64/ia64.opt (msched_fp_mem_deps_zero_cost): New option.
2387 (msched-stop-bits-after-every-cycle): Likewise.
2388 (msched-max-memory-insns, msched-max-memory-insns-hard-limit):
2390 (msched-spec-verbose): Remove.
2391 (msched-prefer-non-data-spec-insns,
2392 msched-prefer-non-control-spec-insns,
2393 msched-count-spec-in-critical-path,
2394 msel-sched-dont-check-control-spec): Use Target Report Var
2395 instead of Common Report Var.
2397 * config/ia64/itanium2.md: Remove incorrect bypass.
2399 * config/ia64/t-ia64 (ia64.o): Add dependency on sel-sched.h.
2401 2008-10-14 Jakub Jelinek <jakub@redhat.com>
2404 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
2405 and -fhelp=separate.
2407 2008-10-14 Ben Elliston <bje@au.ibm.com>
2409 * config/rs6000/rs6000.md (cell_micro): Fix formatting.
2411 2008-10-13 Joseph Myers <joseph@codesourcery.com>
2413 * combine.c (simplify_set): Avoid calling LOAD_EXTEND_OP on
2416 2008-10-13 Matthias Klose <doko@ubuntu.com>
2418 * config/pa/linux-atomic.c: Work around missing header file
2419 for hppa64-linux-gnu targets.
2421 2008-10-13 Andrew Pinski <andrew_pinski@playstation.sony.com>
2422 Kaushal Kantawala <Kaushal_Kantawala@playstation.sony.com>
2423 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
2424 Grace Cao <grace_cao@playstation.sony.com>
2426 * doc/invoke.texi (-mgen-cell-microcode): Document.
2427 (-mwarn-cell-microcode): Document.
2428 * cfglayout.c (locator_location): Export.
2429 * rtl.h (locator_location): Define prototype.
2430 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand):
2432 * rs6000/rs6000-protos.h (rs6000_final_prescan_insn): Define prototype.
2433 * config/rs6000/rs6000.opt (mgen-cell-microcode): New option.
2434 (mwarn-cell-microcode): New option.
2435 * rs6000/rs6000.c (rs6000_cell_dont_microcode): Delete unused variable.
2436 (rs6000_override_options): Set rs6000_gen_cell_microcode if tuning for
2437 cell and not already set.
2438 Turn off string instructions if not generating cell microcode.
2439 (rs6000_final_prescan_insn): New function that warns about microcoded
2441 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Define.
2442 * config/rs6000/rs6000.md
2443 Replace cc_reg_not_cr0_operand with cc_reg_not_micro_cr0_operand if
2444 the instruction would have been microcoded on the Cell. Set
2445 cell_micro to always on unnamed patterns for the string instructions.
2446 (cell_micro): Update definition, remove load/store conditional
2448 (sign_extend:DI): Define new pattern for non microcoded version.
2449 (sign_extend:SI): Likewise.
2450 (compare (div:P)): Set cell_micro to not.
2451 (andsi3): Define as an expand.
2452 (andsi3_mc): New pattern.
2453 (andsi3_nomc): New pattern.
2454 (andsi3_internal0_nomc): New pattern.
2455 (andsi3_internal2): Rename to ...
2456 (andsi3_internal2_mc): this and enable iff generating microcode.
2457 (andsi3_internal3): Rename to ...
2458 (andsi3_internal3_mc): this and enable iff generating microcode.
2459 (andsi3_internal4): Enable iif generating microcode.
2460 (andsi3_internal5): Rename to ..
2461 (andsi3_internal5_mc): this and enable iff generating microcode.
2462 (andsi3_internal5_nomc): New pattern.
2463 (extzvdi_internal1): Enable iff generating microcode.
2464 (extzvdi_internal2): Likewise.
2465 (rotlsi3_internal7): Set cell_micro to always if non immediate form.
2466 (anddi3): Change to expand.
2467 (anddi3_mc): Rename from anddi3.
2468 (anddi3_no_mc): New pattern.
2469 (anddi3_internal2): Rename to ..
2470 (anddi3_internal2_mc): this and enable iff generating microcode.
2471 (anddi3_internal2_nomc): New pattern.
2472 (anddi3_internal3): Rename to ..
2473 (anddi3_internal3_mc): this and enable iff generating microcode.
2474 (anddi3_internal3_nomc): New pattern.
2475 (movti_string): Set cell_micro to always if TARGET_STRING.
2476 (stmsi8): Set cell_micro to always.
2482 (stmsi8_power): Likewise.
2483 (stmsi7_power): Likewise.
2484 (stmsi6_power): Likewise.
2485 (stmsi5_power): Likewise.
2486 (stmsi4_power): Likewise.
2487 (stmsi3_power): Likewise.
2488 (movsi_update2): Enable iff generating microcode.
2489 (movhi_update3): Likewise.
2490 (lmw): Set cell_micro to always.
2492 2008-10-13 Richard Sandiford <rdsandiford@googlemail.com>
2494 * config/s390/s390.md (UNSPEC_POOL_OFFSET): New constant.
2495 * config/s390/s390.c (machine_function): Remove
2496 decomposed_literal_pool_addresses_ok_p.
2497 (s390_decompose_address): Check for UNSPEC_POOL_OFFSET instead of
2498 the difference of two labels.
2499 (s390_output_addr_const_extra): Handle UNSPEC_POOL_OFFSET.
2500 (s390_pool_offset): New function.
2501 (s390_find_constant, s390_find_execute, s390_dump_pool): Use it.
2502 (s390_reorg): Don't set decomposed_literal_pool_addresses_ok_p.
2504 2008-10-13 Nathan Froyd <froydnj@codesourcery.com>
2506 * doc/install.texi (powerpc-*-*): Require binutils 2.15.
2507 (powerpc*-*-linux-gnu*): Describe.
2508 * config/rs6000/ppc-asm.h (HIDDEN_FUNC): New macro.
2509 * config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2510 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2511 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2512 config/rs6000/e500crtres32gpr.asm,
2513 config/rs6000/e500crtres64gpr.asm,
2514 config/rs6000/e500crtres64gprctr.asm,
2515 config/rs6000/e500crtrest32gpr.asm,
2516 config/rs6000/e500crtrest64gpr.asm,
2517 config/rs6000/e500crtresx32gpr.asm,
2518 config/rs6000/e500crtresx64gpr.asm,
2519 config/rs6000/e500crtsav32gpr.asm,
2520 config/rs6000/e500crtsav64gpr.asm,
2521 config/rs6000/e500crtsav64gprctr.asm,
2522 config/rs6000/e500crtsavg32gpr.asm,
2523 config/rs6000/e500crtsavg64gpr.asm,
2524 config/rs6000/e500crtsavg64gprctr.asm: Use it.
2525 * config/rs6000/crtsavres.asm: Really remove.
2527 2008-10-13 Kai Tietz <kai.tietz@onevision.com>
2530 * c-format.c (convert_format_name_to_system_name): Use
2531 TARGET_OVERRIDES_FORMAT_INIT.
2532 * config.gcc (extra_options): Add for mingw targets mingw.opt.
2533 * config/i386/mingw.opt: New.
2534 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_INIT): New.
2535 * config/i386/msformat-c.c (TARGET_OVERRIDES_FORMAT_INIT): New.
2536 (ms_printf_length_specs): Removed const specifier.
2537 * doc/tm.texi (TARGET_OVERRIDES_FORMAT_INIT): New.
2538 * doc/invoke.texi (Wno-pedantic-ms-format): New.
2540 2008-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2542 * builtins.c: Remove MPFR_VERSION_NUM(2,3,0) conditionals.
2543 * doc/install.texi: Bump recommended MPFR to 2.3.2.
2545 2008-10-12 Kenneth Zadeck <zadeck@naturalbridge.com>
2548 * df-scan.c (df_ref_change_reg_with_loc_1): Added test to make
2549 sure that ref has valid bb.
2551 2008-10-12 Richard Henderson <rth@redhat.com>
2554 * Makefile.in (reload1.o): Depend on EMIT_RTL_H.
2555 * alias.c (value_addr_p, stack_addr_p): Remove.
2556 (nonoverlapping_memrefs_p): Remove IRA special case.
2557 * emit-rtl.c (get_spill_slot_decl, set_mem_attrs_for_spill): New.
2558 * emit-rtl.h (set_mem_attrs_for_spill): Declare.
2559 * reload1.c (alter_reg): Use it.
2561 2008-10-12 Uros Bizjak <ubizjak@gmail.com>
2563 * config/i386/driver-i386.c (detect_caches_cpuid2): Use array
2564 of registers instead of eax, ebx, ecx and edx. Use for loop
2565 and check register for non-zero value before the call
2566 to decode_caches_intel.
2568 2008-10-11 Kenneth Zadeck <zadeck@naturalbridge.com>
2570 PR rtl-optimization/37448
2571 * df.h: (df_ref_class): New enum.
2572 (DF_REF_TYPE_NAMES, df_ref_extract): Removed.
2573 (struct df_ref): Replaced with union df_ref_d.
2574 (df_base_ref, df_artificial_ref, df_regular_ref, df_extract_ref):
2575 New members of df_ref_d union.
2576 (DF_REF_REAL_REG, DF_REF_REGNO, DF_REF_REAL_LOC, DF_REF_REG,
2577 DF_REF_LOC, DF_REF_BB, DF_REF_INSN_INFO, DF_REF_INSN,
2578 DF_REF_CLASS, DF_REF_TYPE, DF_REF_CHAIN, DF_REF_ID, DF_REF_FLAGS,
2579 DF_REF_ORDER, DF_REF_IS_ARTIFICIAL, DF_REF_NEXT_REG,
2580 DF_REF_PREV_REG, DF_REF_EXTRACT_WIDTH, DF_REF_EXTRACT_OFFSET,
2581 DF_REF_EXTRACT_MODE): Replaced definition to access union df_ref_d.
2582 (DF_MWS_REG_DEF_P, DF_MWS_REG_USE_P, DF_MWS_TYPE): New macros.
2583 (df_scan_bb_info, df_bb_regno_first_def_find,
2584 df_bb_regno_last_def_find, df_find_def, df_find_use,
2585 df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
2586 debug_df_ref, df_chain_create, df_chain_unlink, df_chain_copy,
2587 df_ref_create, df_ref_remove, df_compute_accessed_bytes,
2588 df_get_artificial_defs, df_get_artificial_uses, union_defs)
2589 Replaced struct df_ref * with df_ref.
2590 * df-scan.c (df_collection_rec, df_null_ref_rec,
2591 df_ref_chain_delete_du_chain, df_ref_chain_delete, df_install_ref,
2592 df_grow_ref_info, df_ref_create, df_reg_chain_unlink,
2593 df_ref_compress_rec, df_ref_remove, df_ref_chain_delete_du_chain,
2594 df_ref_chain_delete, df_free_collection_rec, df_insn_rescan,
2595 df_reorganize_refs_by_reg_by_reg,
2596 df_reorganize_refs_by_reg_by_insn, df_reorganize_refs_by_reg,
2597 df_ref_change_reg_with_loc_1, df_notes_rescan, df_swap_refs,
2598 df_sort_and_compress_refs, df_install_ref, df_install_refs,
2599 df_ref_record, df_get_conditional_uses, df_get_call_refs,
2600 df_bb_refs_record, df_exit_block_uses_collect,
2601 df_record_exit_block_uses, df_reg_chain_mark,
2602 df_reg_chain_verify_unmarked, df_refs_verify): Replaced struct
2603 df_ref * with df_ref.
2604 (df_ref_record, df_uses_record, df_ref_create_structure): Added
2605 df_ref_class parameter.
2606 (df_scan_problem_data): Added new pools for different types of refs.
2607 (df_scan_free_internal, df_scan_alloc, df_free_ref,
2608 df_ref_create_structure): Processed new ref pools.
2609 (df_scan_start_dump): Added counts of refs and insns.
2610 (df_ref_create, df_notes_rescan, df_def_record_1, df_uses_record,
2611 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
2612 df_entry_block_defs_collect, df_exit_block_uses_collect): Added
2613 code to pass df_ref_class down to ref creation functions.
2614 (df_reg_chain_unlink, df_ref_remove, df_ref_change_reg_with_loc_1,
2615 df_reg_chain_mark): Use macros to hide references to df_refs.
2616 (df_ref_chain_change_bb): Removed.
2617 (df_insn_change_bb): Remove calls to df_ref_insn_change_bb.
2618 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
2619 Enhanced to understand df_ref union structure.
2620 * fwprop.c (local_ref_killed_between_p, use_killed_between,
2621 all_uses_available_at, update_df, try_fwprop_subst,
2622 forward_propagate_subreg, forward_propagate_and_simplify,
2623 forward_propagate_into, fwprop, fwprop_addr): Replaced struct
2624 df_ref * with df_ref.
2625 (use_killed_between, all_uses_available_at): Use macros to hide
2626 references to df_refs.
2627 * regstat.c (regstat_bb_compute_ri,
2628 regstat_bb_compute_calls_crossed): Replaced struct df_ref * with
2630 * see.c (see_handle_relevant_defs, see_handle_relevant_uses,
2631 see_handle_relevant_refs, see_analyze_one_def,
2632 see_update_relevancy, see_propagate_extensions_to_uses): Replaced
2633 struct df_ref * with df_ref.
2634 * ra-conflict.c (record_one_conflict, clear_reg_in_live,
2635 global_conflicts): Replaced struct df_ref * with df_ref.
2636 * ddg.c (create_ddg_dep_from_intra_loop_link,
2637 add_cross_iteration_register_deps, build_inter_loop_deps):
2638 Replaced struct df_ref * with df_ref.
2639 (create_ddg_dep_from_intra_loop_link,
2640 add_cross_iteration_register_deps): Use macros to hide references
2642 * auto-inc-dec.c (find_inc, merge_in_block): Replaced struct
2643 df_ref * with df_ref.
2644 * df-core.c (df_bb_regno_first_def_find,
2645 df_bb_regno_last_def_find, df_find_def, df_find_use,
2646 df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
2647 debug_df_ref): Replaced struct df_ref * with df_ref.
2648 (df_mws_dump, df_ref_debug): Use macros to hide references to df_refs.
2649 * cse.c (cse_extended_basic_block): Replaced struct df_ref * with
2651 * web.c (union_defs, entry_register, replace_ref, web_main):
2652 Replaced struct df_ref * with df_ref.
2653 (union_defs, replace_ref): Use macros to hide references to df_refs.
2654 * global.c (compute_regs_asm_clobbered, build_insn_chain):
2655 Replaced struct df_ref * with df_ref.
2656 * ifcvt.c (dead_or_predicable): Replaced struct df_ref * with df_ref.
2657 * sel-sched-ir.c (maybe_downgrade_id_to_use, setup_id_reg_sets, ):
2658 Replaced struct df_ref * with df_ref.
2659 * ira-lives.c (mark_ref_live, def_conflicts_with_inputs_p,
2660 mark_ref_dead, process_bb_node_lives): Replaced struct df_ref *
2662 * local-alloc.c (block_alloc): Replaced struct df_ref * with df_ref.
2663 * df-byte-scan.c (df_compute_accessed_bytes_extract,
2664 df_compute_accessed_bytes_strict_low_part,
2665 df_compute_accessed_bytes_subreg, df_compute_accessed_bytes):
2666 Replaced struct df_ref * with df_ref.
2667 (df_compute_accessed_bytes): Use macros to hide references to df_refs.
2668 * init-regs.c (initialize_uninitialized_regs): Replaced struct
2669 df_ref * with df_ref.
2670 * loop-invariant.c (invariant_for_use, hash_invariant_expr_1,
2671 check_dependency, check_dependencies, record_uses): Replaced
2672 struct df_ref * with df_ref.
2673 (invariant_for_use, check_dependency): Use macros to hide
2674 references to df_refs.
2675 * loop-iv.c (iv_analysis_loop_init, iv_get_reaching_def,
2676 get_biv_step_1, get_biv_step, record_iv, iv_analyze_def,
2677 iv_analyze, biv_p): Replaced struct df_ref * with df_ref.
2678 (iv_analysis_loop_init, iv_get_reaching_def): Use macros to hide
2679 references to df_refs.
2680 * ira.c (compute_regs_asm_clobbered): Replaced struct df_ref *
2682 * combine.c (create_log_links): Replaced struct df_ref * with df_ref.
2683 * df-problems.c (df_rd_bb_local_compute_process_def,
2684 df_lr_bb_local_compute, df_live_bb_local_compute, df_chain_create,
2685 df_chain_unlink_1, df_chain_unlink, df_chain_copy,
2686 df_chain_remove_problem, df_chain_create_bb_process_use,
2687 df_chain_create_bb, df_chain_top_dump, df_chain_bottom_dump,
2688 df_byte_lr_check_regs, df_byte_lr_bb_local_compute,
2689 df_byte_lr_simulate_defs, df_byte_lr_simulate_uses,
2690 df_byte_lr_simulate_artificial_refs_at_top,
2691 df_byte_lr_simulate_artificial_refs_at_end, df_create_unused_note,
2692 df_note_bb_compute, df_note_add_problem, df_simulate_defs,
2693 df_simulate_uses, df_simulate_artificial_refs_at_end,
2694 df_simulate_artificial_refs_at_top): Replaced struct df_ref * with
2696 (df_chain_dump): Use macros to hide references to df_refs.
2697 * config/mips/mips.c (r10k_simplify_address): Replaced struct
2698 df_ref * with df_ref.
2699 * dce.c (mark_nonreg_stores, delete_corresponding_reg_eq_notes,
2700 mark_artificial_uses, mark_reg_dependencies,
2701 byte_dce_process_block): Replaced struct df_ref * with df_ref.
2703 2008-10-11 Eric Botcazou <ebotcazou@adacore.com>
2705 * tree.h (contains_packed_reference): Mention ARRAY_RANGE_REF in
2707 (array_ref_element_size): Likewise.
2708 (array_ref_low_bound): Likewise.
2709 (array_ref_up_bound): Likewise.
2710 * expr.c (contains_packed_reference): Likewise.
2711 (array_ref_element_size): Likewise.
2712 (array_ref_low_bound): Likewise.
2713 (array_ref_up_bound): Likewise.
2714 * tree-ssa-loop-ivopts.c (idx_contains_abnormal_ssa_name_p): Deal
2715 with ARRAY_RANGE_REF.
2716 (idx_find_step): Likewise.
2717 (idx_record_use): Likewise.
2718 (strip_offset_1): Likewise.
2719 (idx_remove_ssa_names): Likewise.
2721 2008-10-11 Uros Bizjak <ubizjak@gmail.com>
2722 Andi Kleen <ak@linux.intel.com>
2724 * config/i386/cpuid.h (__cpuid_count): New defines.
2725 * config/i386/driver-i386.c (struct cache_desc): New structure.
2726 (describe_cache): Use struct cache_desc to pass cache descriptions.
2727 (detect_l2_cache): Ditto. Rename from decode_l2_cache.
2728 (detect_caches_amd): Use struct cache_desc to describe caches.
2729 (decode_caches_intel): Use struct cache_desc to pass cache
2730 descriptions. Update descriptions to match latest (rev -032,
2731 December 2007) CPUID documentation. Do not check valid bit here.
2732 Check for Xeon MP value 0x49 problems.
2733 (detect_caches_cpuid2): New function, split from detect_caches_intel.
2734 Check valid bit before calling decode_caches_intel. Detect number
2735 of times to repeat CPUID instruction.
2736 (detect_caches_cpuid4): New function.
2737 (detect_caches_intel): Depending on max_level, call
2738 detect_caches_cpuid2 or detect_caches_cpuid4. Call detect_l2_cache
2739 only when other methods fail to provide valid L2 cache description.
2741 2008-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2744 * pa.md (call, call_value): Generate an rtx for register r4 and pass
2745 it to PIC call patterns.
2746 (call_symref_pic): Revise pattern to expose PIC register save. Remove
2747 code generation and attributes from pattern. Change peephole2 to
2748 split for noreturn case. Revise split pattern for non noreturn case.
2749 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
2750 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
2751 * pa.c (attr_length_call): Simplify extraction of call rtx. Add some
2754 2008-10-11 David Edelsohn <edelsohn@gnu.org>
2756 * config/rs6000/rs6000.md (aux_truncdfsf2): Remove TARGET_SINGLE_FLOAT.
2757 (addsf3, subsf3, mulsf3 ! TARGET_POWERPC): Remove TARGET_SINGLE_FLOAT
2759 (divdf3): Reformat long line.
2761 2008-10-11 Michael J. Eager <eager@eagercon.com>
2763 * config/rs6000/rs6000.c (rs6000_parse_fpu_option): Interpret
2765 (rs6000_handle_option): Process -mfpu options.
2766 * config/rs6000/rs6000.h: (TARGET_XILINX_FPU): New.
2767 (enum fpu_type_t): New.
2768 * config/rs6000/rs6000.md (attr fp_type): New. Include xfpu.md.
2769 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3, trunctfdf2): Set
2771 (floatsisf2): Remove TARGET_SINGLE_FPU condition.
2772 (floatdidf2): Add TARGET_SINGLE_FPU condition.
2773 * config/rs6000/rs6000.opt (-mfpu): New.
2774 (-mxilinx-fpu): New.
2775 * config/rs6000/sysv4.h: (DRIVER_SELF_SPECS): New.
2776 * config/rs6000/xfpu.h: New. Define TARGET_XILINX_FPU.
2777 * config/rs6000/xfpu.md: New. Define Xilinx pipeline.
2778 * gcc/config.gcc: powerpc-xilinx-eabi target: New.
2779 * gcc/doc/invoke.texi (RS/6000 and PowerPC Options): Add -mfpu option.
2781 2008-10-11 Jakub Jelinek <jakub@redhat.com>
2784 * config/rs6000/rs6000.c (rs6000_legitimize_address): Only create
2785 LO_SUM on Darwin if mode has just one unit.
2787 2008-10-10 H.J. Lu <hongjiu.lu@intel.com>
2790 * dwarf2out.c (mem_loc_descriptor): Use DRAP for vDRAP which
2791 has been optimized out.
2793 2008-10-10 Richard Sandiford <rdsandiford@googlemail.com>
2795 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Test PIC_ADDR_P
2796 instead of PIC_DIRECT_ADDR_P.
2797 (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
2798 (IS_LITERAL_OR_SYMBOLIC_S16_P, IS_LITERAL_OR_SYMBOLIC_U16_P): Delete.
2799 (IS_NON_EXPLICIT_CONSTANT_P): Don't test PIC_OFFSET_P.
2800 (PIC_OFFSET_P): Rename to...
2801 (PCREL_SYMOFF_P): ...this.
2802 (PIC_DIRECT_ADDR_P): Delete.
2803 (MOVI_SHORI_BASE_OPERAND_P): Check PCREL_SYMOFF_P instead of
2805 (OUTPUT_ADDR_CONST_EXTRA): Don't require unspecs to have a
2806 single argument. Handle UNSPEC_EXTRACT_S16, UNSPEC_EXTRACT_U16,
2807 UNSPEC_SYMOFF and UNSPEC_PCREL_SYMOFF.
2808 * config/sh/sh.c (print_operand): Remove CONST handling.
2809 (unspec_caller_rtx_p): Rewrite to use split_const and check
2810 the operands of UNSPEC bases.
2811 (fixup_mova): Replace (unspec [(minus A B)] UNSPEC_PIC)
2812 with (unspec [A B] UNSPEC_SYMOFF).
2813 (nonpic_symbol_mentioned_p): Check for UNSPEC_SYMOFF and
2814 UNSPEC_PCREL_SYMOFF.
2815 (sh_secondary_reload): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
2816 * config/sh/sh.md (UNSPEC_EXTRACT_S16): New unspec.
2817 (UNSPEC_EXTRACT_U16): Likewise.
2818 (UNSPEC_SYMOFF): Likewise.
2819 (UNSPEC_PCREL_SYMOFF): Likewise.
2820 (movsi_const): Use UNSPEC_EXTRACT_*16s to extract 16-bit portions
2822 (movsi_const_16bit): Likewise.
2823 (movdi_const, movdi_const_32bit, movdi_const_16bit): Likewise.
2824 (GOTaddr2picreg): Replace (unspec [(minus A (minus B pc))] UNSPEC_PIC)
2825 with (unspec [A B] UNSPEC_PCREL_SYMOFF).
2826 (sym_label2reg): Replace (minus (const (unspec [A] UNSPEC_PIC)) B)
2827 with (unspec [A B] UNSPEC_SYMOFF).
2828 (symPLT_label2reg): Replace (minus A (minus B pc)) with
2829 (unspec [A B] PCREL_UNSPEC_SYMOFF).
2830 * config/sh/constraints.md (Css): Check for an UNSPEC_EXTRACT_S16.
2831 (Csu): Likewise UNSPEC_EXTRACT_U16.
2832 (Csy): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
2833 (Cpg): Update after changes to IS_NON_EXPLICIT_CONSTANT_P.
2835 2008-10-10 Stepan Kasal <skasal@redhat.com>
2837 * gcc/doc/invoke.texi (Optimize Options): Fix typo in examples
2838 for loop strip mining and loop blocking.
2840 2008-10-10 Alexandre Oliva <aoliva@redhat.com>
2842 * fortran/trans-types.c (gfc_get_nodesc_array_type): Don't
2843 vary types depending on debug info.
2845 2008-10-10 Alexandre Oliva <aoliva@redhat.com>
2847 * c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME
2848 before ensuring it's already computed.
2850 2008-10-09 Jakub Jelinek <jakub@redhat.com>
2852 * rtl.h (locator_eq): New decl.
2853 * cfglayout.c (locator_scope): New function.
2854 (insn_scope): Use it.
2855 (locator_eq): New function.
2856 (fixup_reorder_chain): Search for last insn in src bb
2857 that has locator set or first insn in dest bb. Use
2858 locator_eq instead of == to compare locators.
2859 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
2860 * cfgcleanup.c (try_forward_edges): Use locator_eq instead of
2861 == to compare locators.
2863 * tree-ssa-live.c (remove_unused_locals): Mark all edge's goto_block
2865 * gimple-low.c (lower_function_body, lower_gimple_return,
2866 lower_builtin_setjmp): Set gimple_block on the newly created stmts.
2867 * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Only set
2868 goto_block on edges if goto_locus is known.
2871 * tree.h (get_object_alignment): Declare.
2872 * emit-rtl.c (set_mem_attributes_minus_bitpos): Call
2873 get_object_alignment if needed.
2874 * builtins.c (get_pointer_alignment): Move ADDR_EXPR operand
2876 (get_object_alignment): ... here. New function. Try harder to
2877 determine alignment from get_inner_reference returned offset.
2879 2008-10-08 Jakub Jelinek <jakub@redhat.com>
2881 * graphite.c (gloog): Don't call find_unreachable_blocks
2882 before delte_unreachable_blocks.
2884 * cfgexpand.c (expand_gimple_cond): Convert also goto_block and
2885 goto_locus of true_edge into RTL locator.
2887 2008-10-08 Uros Bizjak <ubizjak@gmail.com>
2889 * config/i386/i386.md (*jcc_btdi_rex64): Clobber FLAGS_REG.
2890 (*jcc_btdi_mask_rex64): Ditto.
2892 (*jcc_btsi_mask): Ditto.
2893 (*jcc_btsi_1): Ditto.
2894 (*jcc_btsi_mask_1): Ditto.
2896 2008-10-08 Paul Brook <paul@codesourcery.com>
2898 * config/arm/bpabi.h (ARM_FUNCTION_PROFILER): Define new EABI
2899 compatible profiler (__gnu_mcount_nc).
2900 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
2902 2008-10-08 H.J. Lu <hongjiu.lu@intel.com>
2904 * config/i386/i386.c (initial_ix86_tune_features): Add
2905 X86_TUNE_USE_VECTOR_FP_CONVERTS.
2906 * config/i386/i386.h (ix86_tune_indices): Likewise.
2907 (TARGET_USE_VECTOR_FP_CONVERTS): New.
2909 * config/i386/i386.md: Check TARGET_USE_VECTOR_FP_CONVERTS
2910 instead of (TARGET_USE_VECTOR_CONVERTS || TARGET_GENERIC)
2911 for FP to FP splitters.
2913 2008-10-08 H.J. Lu <hongjiu.lu@intel.com>
2915 * config/i386/i386.md: Add missing gen_sse2_cvtdq2p to convert
2918 2008-10-08 Jakub Jelinek <jakub@redhat.com>
2922 PR rtl-optimization/37341
2923 * cse.c (cse_cc_succs): Add ORIG_BB argument, don't follow edges
2924 to ORIG_BB, pass through ORIG_BB recursively.
2925 (cse_condition_code_reg): Adjust caller.
2927 2008-10-08 Kai Tietz <kai.tietz@onevision.com>
2929 * sdbout.c (sdbout_one_type): Treat the value type
2930 CONST_DECL for enumerals.
2932 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
2934 * config/i386/i386.md: Remove trailing white spaces.
2936 2008-10-07 Kenneth Zadeck <zadeck@naturalbridge.com>
2938 PR rtl-optimization/37448
2939 * alloc-pool.c (struct alloc_pool_descriptor) [elt_size]: New field.
2940 (stuct alloc_pool_descriptor) [created, allocated, current, peak]:
2942 (struct output_info) [count]: Renamed total_created and made
2944 (struct output_info) [size]: Renamed total_allocated and made
2946 (create_alloc_pool, empty_alloc_pool, pool_alloc, pool_free):
2947 Properly keep track of desc->size.
2948 (print_statistics, dump_alloc_pool_statistics): Enhance the
2949 printing of statistics to print the number of elements and to use
2952 2008-10-07 Jakub Jelinek <jakub@redhat.com>
2955 * opts.h (CL_SAVE): Move up to flags range.
2956 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET,
2957 CL_COMMON): Renumber.
2958 (CL_MIN_OPTION_CLASS): Set to CL_PARAMS.
2959 * opts.c (common_handle_option): Revert last change.
2961 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
2963 * config/i386/i386-protos.h (ix86_schedule): New.
2965 * config/i386/i386.c (ix86_schedule): New.
2966 (override_options): Add schedule to processor_alias_table. Set
2967 ix86_schedule from the schedule field in processor_alias_table.
2968 (ix86_function_specific_save): Save ix86_schedule.
2969 (ix86_function_specific_restore): Restore ix86_schedule.
2971 * config/i386/i386.md (cpu): Map to ix86_schedule instead of
2972 ix86_tune. Add none and remove i386, i486, pentium4, nocona
2975 * config/i386/i386.opt: Add schedule.
2977 * config/i386/ppro.md: Remove generic32.
2979 2008-10-07 Simon Martin <simartin@users.sourceforge.net>
2982 * expr.c (count_type_elements): Handle ERROR_MARK.
2984 2008-10-07 Jakub Jelinek <jakub@redhat.com>
2989 * basic-block.h (struct edge_def): Add goto_block field.
2990 * cfglayout.c (fixup_reorder_chain): Ensure that there is at least
2991 one insn with locus corresponding to edge's goto_locus if !optimize.
2992 * profile.c (branch_prob): Copy edge's goto_block.
2993 * cfgrtl.c (force_nonfallthru_and_redirect): Use goto_locus for
2995 (cfg_layout_merge_blocks): Emit a nop with edge's goto_locus
2996 locator in between the merged basic blocks if !optimize and needed.
2997 * cfgexpand.c (expand_gimple_cond): Convert goto_block and
2998 goto_locus into RTL locator. For unconditional jump use that
2999 locator for the jump insn.
3000 (expand_gimple_cond): Convert goto_block and goto_locus into
3001 RTL locator for all remaining edges. For unconditional jump
3002 use that locator for the jump insn.
3003 * cfgcleanup.c (try_forward_edges): Avoid the optimization if
3004 there is more than one edge or insn locator along the forwarding
3005 edges and !optimize. If there is just one, set e->goto_locus.
3006 * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Set also
3008 (move_block_to_fn): Adjust edge's goto_block.
3010 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
3013 * expmed.c (expand_mult): Properly check DImode constant in
3016 2008-10-07 Jakub Jelinek <jakub@redhat.com>
3019 * dwarf2out.c (common_block_die_table): New variable.
3020 (common_block_die_table_hash, common_block_die_table_eq): New
3022 (gen_variable_die): Look up a DW_TAG_common_block die for a particular
3023 COMMON block in the current scope rather than globally. Optimize
3024 DW_OP_addr SYMBOL_REF DW_OP_plus_uconst off into
3025 DW_OP_addr SYMBOL_REF+off.
3027 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
3029 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
3030 Return true for non-addressable GIMPLE operands.
3032 2008-10-07 H.J. Lu <hongjiu.lu@intel.com>
3035 * config/i386/i386.c (initial_ix86_tune_features): Remove
3036 X86_TUNE_USE_BIT_TEST.
3037 * config/i386/i386.h (ix86_tune_indices): Likewise.
3038 (TARGET_USE_BIT_TEST): Removed.
3040 2008-10-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3042 * config.gcc (arm*-*-*): Add aapcs-linux to supported ABIs.
3044 2008-10-06 Adam Nemet <anemet@caviumnetworks.com>
3046 * config/mips/mips.md (mulsi3_mul3, muldi3_mul3): Merge these ...
3047 (mul<mode>3_mul3): ... into this new template.
3049 2008-10-06 Aldy Hernandez <aldyh@redhat.com>
3051 * gimplify.c (gimplify_arg): Add location argument. Use it.
3052 (gimplify_call_expr): Pass location to gimplify_arg.
3053 (gimplify_modify_expr_to_memcpy): Same.
3054 (gimplify_modify_expr_to_memset): Same.
3056 2008-10-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
3058 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3059 Update calls to build_unary_op and build_indirect_ref for location
3062 2008-10-06 Aldy Hernandez <aldyh@redhat.com>
3065 * c-decl.c (finish_decl): Pass input_location to build_unary_op.
3066 * c-typeck.c (array_to_pointer_conversion): Pass location to
3068 (function_to_pointer_conversion): Use error_at and warning_at.
3069 (build_indirect_ref): Same.
3070 (build_array_ref): Pass location to build_binary_op.
3071 (parser_build_unary_op): Do not set location after calling
3073 (build_unary_op): Add location argument. Use it throughout. Set
3074 EXPR_LOCATION before returning new tree.
3075 (build_modify_expr): Same.
3076 (build_binary_op): Use location throughout. Set EXPR_LOCATION before
3078 * c-omp.c (c_finish_omp_atomic): Pass location to build_unary_op,
3079 build_indirect_ref, build_modify_expr.
3080 (c_finish_omp_for): Same. Use error_at instead of error.
3081 * c-common.c (c_common_truthvalue_conversion): Pass location to
3083 (warn_for_div_by_zero): Add location argument.
3084 * c-common.h: Add argument to build_modify_expr, build_indirect_ref,
3085 build_unary_op, warn_for_div_by_zero.
3086 * c-parser.c (c_parser_typeof_specifier): Use
3087 protected_set_expr_location.
3088 (c_parser_statement_after_labels): Same.
3089 (c_parser_condition): Same.
3090 (c_parser_expr_no_commas): Pass correct location to build_modify_expr.
3091 (c_parser_conditional_expression): Use protected_set_expr_location.
3092 (c_parser_unary_expression): Pass location to build_indirect_ref.
3093 (c_parser_postfix_expression_after_primary): Pass location to
3094 build_indirect_ref, build_unary_op.
3095 (c_parser_omp_for_loop): Set the increment expression's EXPR_LOCATION.
3097 2008-10-06 Joshua Kinard <kumba@gentoo.org>
3099 * doc/invoke.texi: List r1x000 family under the -march MIPS option.
3100 * config/mips/mips.h (PROCESSOR_R10000): New processor_type.
3101 * config/mips/mips.c (mips_cpu_info_table): Add r10000, r12000,
3103 (mips_rtx_cost_data): Add a PROCESSOR_R10000 entry.
3104 (mips_issue_rate): Handle PROCESSOR_R10000.
3105 * config/mips/mips.md (cpu): Add r10000.
3107 * config/mips/10000.md: New file.
3109 2008-10-06 Richard Sandiford <rdsandiford@googlemail.com>
3111 * config/rs6000/rs6000-protos.h (rs6000_find_base_term): Declare.
3112 * config/rs6000/rs6000.h (FIND_BASE_TERM): New macro.
3113 * config/rs6000/rs6000.c (rs6000_find_base_term): New function.
3115 2008-10-06 Richard Sandiford <rdsandiford@googlemail.com>
3117 * config/darwin-protos.h (machopic_function_base_name): Delete.
3118 (machopic_function_base_sym): Likewise.
3119 (machopic_gen_offset): Declare.
3120 * config/darwin.h (MACHOPIC_FUNCTION_BASE_NAME): New macro.
3121 (ASM_OUTPUT_LABELREF): Use it instead of a hard-coded string constant.
3122 * config/darwin.c (machopic_function_base_name): Delete.
3123 (machopic_function_base_sym): Likewise.
3124 (gen_pic_offset): Rename to...
3125 (machopic_gen_offset): ...this and remove the pic_base argument.
3126 Instead use MACHO_DYNAMIC_NO_PIC_P to decide whether a PIC offset
3127 is needed. Create an UNSPEC_MACHOPIC_OFFSET if so, and set
3128 crtl->uses_pic_offset_table.
3129 (machopic_indirect_data_reference): Use new machopic_gen_offset
3131 (machopic_legitimize_pic_address): Likewise.
3132 (machopic_operand_p): Check for UNSPEC_MACHOPIC_OFFSET.
3134 * config/i386/darwin.h (GOT_SYMBOL_NAME): Use
3135 MACHOPIC_FUNCTION_BASE_NAME instead of machopic_function_base_name.
3136 * config/i386/i386.c (output_set_got): Likewise.
3137 (darwin_local_data_pic): Check for an UNSPEC_MACHOPIC_OFFSET
3139 (legitimate_pic_operand_p): Handle UNSPEC_MACHOPIC_OFFSET.
3140 (legitimate_address_p): Likewise.
3141 (output_pic_addr_const): Likewise.
3142 (output_addr_const_extra): Likewise.
3143 (ix86_delegitimize_address): Expect darwin_local_data_pic to
3144 match an UNSPEC rather than a MINUS.
3145 * config/i386/i386.md (UNSPEC_MACHOPIC_OFFSET): Define.
3146 (builtin_setjmp_receiver): Use machopic_gen_offset.
3147 * config/i386/predicates.md (pic_symbolic_operand): Handle
3148 UNSPEC_MACHOPIC_OFFSET.
3150 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
3151 Use machopic_gen_offset and machopic_operand_p.
3152 (rs6000_output_addr_const_extra): Handle UNSPEC_MACHOPIC_OFFSET.
3153 (rs6000_emit_prologue): Use MACHOPIC_FUNCTION_BASE_NAME.
3154 * config/rs6000/rs6000.md (UNSPEC_MACHOPIC_OFFSET): Define.
3155 (builtin_setjmp_receiver): Use MACHOPIC_FUNCTION_BASE_NAME.
3156 Set crtl->uses_pic_offset_table.
3158 2008-10-06 Richard Sandiford <rdsandiford@googlemail.com>
3160 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
3162 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): New macro.
3163 * config/rs6000/rs6000.md (UNSPEC_TOCREL): New constant.
3164 * config/rs6000/rs6000.c (constant_pool_expr_1): Delete.
3165 (constant_pool_expr_p): Use split_const and check the base.
3166 (toc_relative_expr_p): Likewise, checking for an UNSPEC_TOCREL
3168 (legitimate_constant_pool_address_p): Check toc_relative_p
3169 instead of constant_pool_expr_p.
3170 (print_operand_address): Always use output_addr_const for
3171 constant pool addresses.
3172 (rs6000_output_addr_const_extra): New function.
3173 (create_TOC_reference): Create an UNSPEC_TOCREL instead of a MINUS.
3175 2008-10-06 Vladimir Makarov <vmakarov@redhat.com>
3179 * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
3180 (mark_ref_live, mark_ref_dead): Use them.
3181 (def_conflicts_with_inputs_p): Remove.
3182 (mark_early_clobbers): New function.
3183 (process_bb_node_lives): Call preprocess_constraints and
3184 mark_early_clobbers.
3186 * doc/rtx.texi (clobber): Change how RA deals with clobbers.
3188 2008-10-06 Danny Smith <dannysmith@users.sourceforge.net>
3190 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Add thread cleanup
3191 lib with -mthread switch.
3193 2008-10-05 Dodji Seketeli <dodji@redhat.com>
3196 * dwarf2out.c (dwarf2out_imported_module_or_decl): Split this
3197 function in two, making it call a new and reusable
3198 dwarf2out_imported_module_or_decl() that takes the containing
3199 BLOCK of the declaration in argument.
3200 (dwarf2out_imported_module_or_decl_real): New function.
3201 (decls_for_scope, gen_decl_die, dwarf2out_decl): Take
3202 IMPORTED_DECL in account.
3203 * tree.def: Added IMPORTED_DECL node type.
3204 * tree.h: Added accessors for IMPORTED_DECL nodes.
3205 * tree.c (init_ttree): Initialise IMPORTED_DECL node type.
3207 2008-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3209 * doc/gimple.texi: Fix some typos, wrap some long lines,
3210 fix some broken wraps with continuations.
3211 * tree-ssa-reassoc.c: Fix comment typos.
3213 2000-10-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3216 * pa.c (legitimize_pic_address): Force function labels to memory in
3219 2008-10-04 Anton Blanchard <anton@samba.org>
3221 * config/rs6000/rs6000.c (rs6000_emit_sync): Use gen_lwsync().
3222 (rs6000_split_atomic_op): Same.
3223 (rs6000_split_compare_and_swap): Same.
3224 (rs6000_split_compare_and_swapqhi): Same.
3226 2008-10-04 Richard Guenther <rguenther@suse.de>
3228 * tree-ssa-sccvn.c (vn_reference_op_eq): Use types_compatible_p
3229 instead of pointer equality.
3230 (vn_nary_op_eq): Likewise.
3232 2008-10-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
3234 * config/rs6000/rs6000.md (fseldfsf4): Add TARGET_SINGLE_FLOAT
3236 (fselsfdf4): Make condition on "TARGET_HARD_FLOAT && TARGET_FPRS &&
3237 TARGET_DOUBLE_FLOAT && TARGET_SINGLE_FLOAT".
3239 2008-10-03 Danny Smith <dannysmith@users.sourceforge.net>
3241 * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
3242 Revert previous change.
3244 2008-10-03 Tom Tromey <tromey@redhat.com>
3246 * stringpool.c (ggc_alloc_string): Terminate string.
3248 2008-10-03 Jakub Jelinek <jakub@redhat.com>
3250 * gimplify.c (gimplify_function_tree): For -finstrument-functions
3251 use gimple_bind_{,set_}block instead of gimple_{,set_}block.
3252 * gimple.h (gimple_bind_set_block): Allow second argument to be NULL.
3255 * gimplify.c (declare_vars): Use gimple_bind_block instead of
3258 2008-10-03 Pascal Obry <obry@adacore.com>
3260 * gcov.c (create_file_names): Properly handle UNIX and DOS
3261 directory separators.
3262 (make_gcov_file_name): Likewise + convert the ':' DOS drive
3263 separator to '~' to ensure clean filenames on Windows.
3265 2008-10-02 Danny Smith <dannysmith@users.sourceforge.net>
3267 * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
3268 Add a null terminator to the stripped name.
3270 2008-10-02 David Edelsohn <edelsohn@gnu.org>
3272 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Revert
3273 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3274 (function_arg_advance): Condition on TARGET_DOUBLE_FLOAT,
3275 TARGET_SINGLE_FLOAT. Revert SCALAR_FLOAT_MODE_P condition.
3276 (function_arg): Condition on TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3277 (rs6000_function_value): Revert TARGET_DOUBLE_FLOAT,
3278 TARGET_SINGLE_FLOAT.
3280 2008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3282 * builtins.c (fold_builtin_pow): Check for 0 ** NEGATIVE.
3284 2008-10-02 Richard Guenther <rguenther@suse.de>
3287 * tree-ssa.c (useless_type_conversion_p_1): For COMPLEX_TYPE
3288 and VECTOR_TYPE recurse with useless_type_conversion_p which
3289 properly handles void pointer conversion.
3291 2008-10-02 Danny Smith <dannysmith@users.sourceforge.net>
3294 * config/i386/mingw32.h (LIBGCC_SPEC) : Replace with ..
3295 (REAL_LIBGCC_SPEC): New. Always include -lgcc.
3297 2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
3299 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3300 Handle ALTIVEC_BUILTIN_VEC_SPLATS, ALTIVEC_BUILTIN_VEC_PROMOTE,
3301 ALTIVEC_BUILTIN_VEC_EXTRACT, and ALTIVEC_BUILTIN_VEC_INSERT specially,
3302 they translate to non builtins.
3303 * config/rs6000/rs6000.c (altivec_init_builtins): Add new variable
3304 opaque_ftype_opaque. Define builtins __builtin_vec_splats,
3305 __builtin_vec_promote, __builtin_vec_extract, and
3306 __builtin_vec_insert.
3307 * config/rs6000/rs6000.h (enum rs6000_builtins): Add
3308 ALTIVEC_BUILTIN_VEC_EXTRACT, ALTIVEC_BUILTIN_VEC_PROMOTE,
3309 ALTIVEC_BUILTIN_VEC_INSERT, and ALTIVEC_BUILTIN_VEC_SPLATS.
3310 * config/rs6000/altivec.h (vec_extract): Define
3311 (vec_insert): Define.
3312 (vec_splats): Define.
3313 (vec_promote): Define.
3315 2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
3316 Yukishige Shibata <shibata@rd.scei.sony.co.jp>
3317 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
3319 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add Cell
3321 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Delete
3322 prototype. Add new parameter, blk.
3323 Use BLKmode for the MEM if blk is true.
3324 (altivec_expand_builtin): Handle ALTIVEC_BUILTIN_STVLX,
3325 ALTIVEC_BUILTIN_STVLXL, ALTIVEC_BUILTIN_STVRX, and
3326 ALTIVEC_BUILTIN_STVRXL.
3327 Update usage of altivec_expand_lv_builtin.
3328 Handle ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL,
3329 ALTIVEC_BUILTIN_LVRX, and ALTIVEC_BUILTIN_LVRXL.
3330 (altivec_init_builtins): If compiling for the Cell, also define the
3332 * config/rs6000/rs6000.h (rs6000_builtins): Define
3333 ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL, ALTIVEC_BUILTIN_LVRX,
3334 ALTIVEC_BUILTIN_LVRXL, ALTIVEC_BUILTIN_STVLX, ALTIVEC_BUILTIN_STVLXL,
3335 ALTIVEC_BUILTIN_STVRX, ALTIVEC_BUILTIN_STVRXL,
3336 ALTIVEC_BUILTIN_VEC_LVLX, ALTIVEC_BUILTIN_VEC_LVLXL,
3337 ALTIVEC_BUILTIN_VEC_LVRX, ALTIVEC_BUILTIN_VEC_LVRXL,
3338 ALTIVEC_BUILTIN_VEC_STVLX, ALTIVEC_BUILTIN_VEC_STVLXL,
3339 ALTIVEC_BUILTIN_VEC_STVRX, and ALTIVEC_BUILTIN_VEC_STVRXL.
3340 * config/rs6000/altivec.md (define_constants): Define UNSPEC_LVLX,
3341 UNSPEC_LVLXL, UNSPEC_LVRX, UNSPEC_LVRXL, UNSPEC_STVLX, UNSPEC_STVLXL,
3342 UNSPEC_STVRX, and UNSPEC_STVRXL.
3343 (altivec_lvlx): New pattern.
3344 (altivec_lvlxl): New pattern.
3345 (altivec_lvrx): New pattern.
3346 (altivec_lvrxl): New pattern.
3347 (altivec_stvlx): New pattern.
3348 (altivec_stvlxl): New pattern.
3349 (altivec_stvrx): New pattern.
3350 (altivec_stvrxl): New pattern.
3351 * config/rs6000/altivec.h (vec_lvlx): Define if PPU is defined.
3352 (vec_lvlxl): Likewise.
3353 (vec_lvrx): Define if PPU is defined.
3354 (vec_lvrxl): Likewise.
3355 (vec_stvlx): Define if PPU is defined.
3356 (vec_stvlxl): Likewise.
3357 (vec_stvrx): Define if PPU is defined.
3358 (vec_stvrxl): Likewise.
3360 2008-10-01 Geert Bosch <bosch@adacore.com>
3362 * tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR.
3364 2008-10-01 Richard Guenther <rguenther@suse.de>
3366 PR tree-optimization/37617
3367 * tree-ssa-pre.c (create_expression_by_pieces): During FRE
3368 do not add to the NEW_SETS.
3370 2008-10-01 Richard Guenther <rguenther@suse.de>
3373 * tree-vrp.c (execute_vrp): If we optimized away the default
3374 case make sure to promote the label that got in place of it
3375 to a default case label.
3377 2008-10-01 Richard Henderson <rth@redhat.com>
3380 * tree-complex.c (set_component_ssa_name): Don't optimize
3381 is_gimple_min_invariant values with ssa_names in abnormal phis.
3383 2008-09-30 Paolo Bonzini <bonzini@gnu.org>
3385 PR tree-optimization/37662
3386 * tree-ssa-ccp.c (fold_gimple_assign): Invert the operands of a
3387 commutative binary operation if they are in the wrong order and
3388 fold_build2 produces non-GIMPLE.
3390 2008-09-30 Jakub Jelinek <jakub@redhat.com>
3392 PR tree-optimization/37662
3393 PR tree-optimization/37663
3394 * tree-vrp.c (simplify_truth_ops_using_ranges): Don't call
3395 get_value_range with non-SSA_NAME. Don't assert operands have been
3396 folded, instead just bail out.
3398 2008-09-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
3400 * config/rs6000/rs6000.md (fnmadds combiner): Revert typo.
3402 2008-09-30 Richard Guenther <rguenther@suse.de>
3405 * tree-vect-transform.c (vect_create_data_ref_ptr): Properly
3406 build restrict-qualified pointers.
3407 (vectorizable_store): Move alias check later.
3408 (vectorizable_load): Likewise.
3410 2008-09-30 Paolo Bonzini <bonzini@gnu.org>
3412 * c-common.c (empty_if_body_warning): Remove.
3413 * c-common.h (empty_if_body_warning): Remove.
3414 * c-parser.c (c_parser_if_body, c_parser_else_body): Implement
3415 here the -Wempty-body warning for `if' and `else' statements.
3416 * c-typeck.c (c_finish_if_stmt): Do not call empty_body_warning.
3418 2008-09-29 H.J. Lu <hongjiu.lu@intel.com>
3420 * config/i386/i386.opt: Add msse2avx.
3422 * config/i386/linux.h (ASM_SPEC): New. Support -msse2avx.
3423 * config/i386/linux64.h (ASM_SPEC): Likewise.
3425 * doc/invoke.texi: Document -msse2avx.
3427 2008-09-29 Eric Botcazou <ebotcazou@adacore.com>
3429 * dwarf2out.c (constant_size): Use HOST_WIDE_INT in parameter type.
3431 2008-09-29 Joseph Myers <joseph@codesourcery.com>
3433 * ifcvt.c (noce_emit_store_flag): If using condition from original
3434 jump, reverse it if if_info->cond was reversed.
3436 2008-09-29 Eric Botcazou <ebotcazou@adacore.com>
3438 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
3439 non-constant memory if it cannot be forced to constant memory.
3440 Overhaul surrounding code and factor out common condition.
3442 2008-09-29 Jeff Law <law@redhat.com>
3444 * reload1.c (alter_reg): Add missing curly braces.
3446 2008-09-29 Michael J. Eager <eager@eagercon.com>
3448 * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
3450 * config/rs6000/rs6000.c (rs6000_override_options): Move
3451 rs6000_init_hard_regno_mode_ok after all options changed.
3452 Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
3453 (rs6000_handle_option): Process -msingle-float, -mdouble-float,
3454 -msimple-fpu flags. Add warning messages if single FP not configured.
3455 (rs6000_file_start): Output gnu_attribute for single-float.
3456 (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
3457 (rs6000_legitimize_address): Likewise.
3458 (rs6000_legitimize_reload_address): Likewise.
3459 (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
3460 TARGET_SINGLE_FLOAT.
3461 (function_arg_advance): Likewise (partial conversion).
3462 (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
3463 (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
3464 TARGET_SINGLE_FLOAT.
3465 (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
3466 (rs6000_emit_prologue): Likewise.
3467 (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
3468 TARGET_SINGLE_FLOAT.
3469 (rs6000_libcall_value): Likewise.
3470 * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
3471 (TARGET_DOUBLE_FLOAT): New default to 1
3472 (TARGET_SIMPLE_FPU): New default to 0
3473 (TARGET_SINGLE_FPU): New default to 0
3474 (TARGET_SINGLE_FLOAT_MODE): New.
3475 (TARGET_DOUBLE_FLOAT_MODE): New.
3476 * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
3477 TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
3479 * config/rs6000/rs6000.md (define_mode_iterator): Condition on
3480 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3481 (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
3482 copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
3483 nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
3484 muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
3485 movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
3486 floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
3487 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
3488 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
3489 rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
3490 floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
3491 movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
3492 extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
3493 abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
3494 cmptf_internal1, *cmptf_internal2): Condition on
3495 TARGET_DOUBLE_FLOAT.
3496 (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
3497 mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
3498 *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
3499 btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
3500 floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
3501 *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
3502 TARGET_SINGLE_FLOAT.
3503 (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
3504 * config/rs6000/rs6000.opt (-msingle-float): New.
3505 (-mdouble-float): New.
3506 (-msimple-fpu): New.
3507 * doc/invoke.texi (RS/6000 and PowerPC Options): Add
3508 -msingle-float, -mdouble-float, -msimple-fpu options.
3509 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
3510 _SOFT_DOUBLE for -msingle-float.
3511 * config.gcc: New config for target=powerpc-xilinx-eabi.
3513 2008-09-29 Tobias Grosser <grosser@fim.uni-passau.de>
3515 * graphite.c (dot_all_scops_1): Remove unused checks. SCoPs always
3516 have exit and entry.
3517 (new_scop): Take entry and exit edge to define new SCoP.
3518 (sd_region_p): New structure used during SCoP detection.
3519 (move_scops): Delete.
3520 (move_sd_regions): New.
3521 (scopdet_info): Change the definition from edges back to basic_blocks.
3522 (scopdet_edge_info): Work on basic_blocks and rename to
3523 scopdet_basic_block_info.
3524 (split_difficult_bb): At the moment removed. We should later
3525 add it at another place.
3526 (build_scops_1): Work on basic_blocks.
3527 (bb_in_sd_region): New.
3528 (find_single_entry_edge): New.
3529 (find_single_exit_edge): New.
3530 (create_single_entry_edge): New.
3531 (sd_region_without_exit): New.
3532 (create_single_exit_edge): New.
3533 (unmark_exit_edges): New.
3534 (mark_exit_edges): New.
3535 (create_sese_edges): New.
3536 (build_graphite_scops): New.
3537 (build_scops): Make SCoPs SESE.
3538 (limit_scops): Use the new functions.
3540 2008-09-29 Hans-Peter Nilsson <hp@axis.com>
3542 * config/cris/cris.h (IRA_COVER_CLASSES): Define.
3544 2008-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
3547 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Force
3548 address to a register before taking the lower part.
3550 2008-09-28 Kaz Kojima <kkojima@gcc.gnu.org>
3552 * config/sh/sh.h (OVERRIDE_OPTIONS): Unset flag_dwarf2_cfi_asm
3555 2008-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
3556 Kaushal Kantawala <kaushal_kantawala@playstation.sony.com>
3559 * tree-ssa-loop-im.c (rewrite_reciprocal): Set DECL_GIMPLE_REG_P on
3560 the newly created variable.
3561 Create a VECTOR_CST of all 1s for vector types.
3563 2008-09-28 Eric Botcazou <ebotcazou@adacore.com>
3566 * fold-const.c (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
3568 2008-09-28 Eric Botcazou <ebotcazou@adacore.com>
3570 * expmed.c (store_fixed_bit_field): Always use convert_to_mode in
3571 order to convert between modes.
3572 (extract_bit_field_1): Test TRULY_NOOP_TRUNCATION on the right mode.
3574 2008-09-27 Kaz Kojima <kkojima@gcc.gnu.org>
3576 * config/sh/sh.c (sh_gimplify_va_arg_expr): Use VIEW_CONVERT_EXPR
3579 2008-09-26 Vladimir Makarov <vmakarov@redhat.com>
3582 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
3586 2008-09-26 Adam Nemet <anemet@caviumnetworks.com>
3588 * config/mips/mips.h (ISA_HAS_DMUL3, ISA_HAS_BADDU, ISA_HAS_BBIT,
3589 ISA_HAS_CINS, ISA_HAS_EXTS, ISA_HAS_SEQ_SNE, ISA_HAS_POP): Change
3590 them to yield false with MIPS16.
3592 2008-09-26 Jakub Jelinek <jakub@redhat.com>
3595 * dwarf2out.c (tls_mem_loc_descriptor): New function.
3596 (mem_loc_descriptor): Use it for MEM. For PLUS fail if second
3597 mem_loc_descriptor failed. Accept UNSPEC.
3598 (loc_descriptor): Use tls_mem_loc_descriptor for MEM. For PARALLEL
3599 fail if one of the loc_descriptor calls for pieces failed.
3600 (loc_descriptor_from_tree_1): Handle even DECL_EXTERNAL __thread vars,
3601 as long as they bind locally. For COMPONENT_REF, ARRAY_REF etc. fail
3602 if loc_descriptor_from_tree_1 on offset failed.
3605 * opts.c (common_handle_option): Don't call print_specific_help with
3606 CL_SAVE as first argument.
3608 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
3609 Steve Ellcey <sje@cup.hp.com>
3611 * configure: Regenerate for new libtool.
3612 * aclocal.m4: Ditto.
3614 2008-09-26 Pat Haugen <pthaugen@us.ibm.com>
3616 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Use correct
3617 alias set on MEM when saving stack pointer.
3618 * config/rs6000/rs6000.md (allocate_stack): Likewise
3620 2008-09-26 Dorit Nuzman <dorit@il.ibm.com>
3622 PR tree-optimization/37574
3623 * tree-vectorizer.c (vect_is_simple_use): Fix indentation.
3624 * tree-vect-transform.c (vect_get_constant_vectors): Use vectype
3625 instead of vector_type for constants. Take computation out of loop.
3626 (vect_get_vec_def_for_operand): Use only vectype for constant case,
3627 and use only vector_type for invariant case.
3628 (get_initial_def_for_reduction): Use vectype instead of vector_type.
3630 2008-09-25 Jakub Jelinek <jakub@redhat.com>
3633 * c-common.c (handle_weakref_attribute): Ignore the attribute unless
3634 the decl is a VAR_DECL or FUNCTION_DECL.
3636 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
3639 * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
3640 (mark_ref_live, mark_ref_dead): Use them.
3641 (def_conflicts_with_inputs_p): Remove.
3642 (mark_early_clobbers): New function.
3643 (process_bb_node_lives): Call preprocess_constraints and
3644 mark_early_clobbers.
3646 * doc/rtl.texi (clobber): Change how RA deals with clobbers.
3648 2008-09-25 Vladimir Makarov <vmakarov@redhat.com>
3651 * ira-int.h (IRA_ALLOCNO_TEMP): Rename to ALLOCNO_TEMP.
3652 (ira_compress_allocno_live_ranges): New prototype.
3654 * ira-color.c: Rename IRA_ALLOCNO_TEMP to ALLOCNO_TEMP.
3655 (coalesced_allocnos_living_at_program_points): New.
3656 (coalesced_allocnos_live_at_points_p,
3657 set_coalesced_allocnos_live_points): New functions.
3658 (coalesce_spill_slots): Rewrite.
3660 * ira-lives.c (remove_some_program_points_and_update_live_ranges,
3661 ira_compress_allocno_live_ranges): New functions.
3663 * ira-build.c (ira_flattening): Call
3664 ira_compress_allocno_live_ranges.
3667 2008-09-25 H.J. Lu <hongjiu.lu@intel.com>
3669 * config/i386/i386.md: Check cmp/branch fuse for cmp peephole
3672 2008-09-25 Richard Sandiford <rdsandiford@googlemail.com>
3674 * combine.c (make_compound_operation): Handle the 'E' format.
3675 (count_rtxs): Likewise.
3676 (update_table_tick): Likewise.
3677 (get_last_value_validate): Likewise.
3679 2008-09-25 Eric Botcazou <ebotcazou@adacore.com>
3681 * dbxout.c (dbxout_parms): Fetch the inner REG inside a PARALLEL.
3683 2008-09-25 Sergei Dyshel <sergeid@il.ibm.com>
3685 * matrix-reorg.c (transform_allocation_sites): Initializers
3686 added to avoid the warning.
3688 2008-09-25 Martin Jambor <mjambor@suse.cz>
3690 * cgraph.c (free_nodes): New variable.
3691 (NEXT_FREE_NODE): New macro.
3692 (cgraph_create_node): Reuse nodes from the free list. Do not
3693 update uid if doing so.
3694 (cgraph_remove_node): Add the node to the free list.
3696 2008-09-25 Gerald Pfeifer <gerald@pfeifer.com>
3698 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3700 2008-09-24 Richard Henderson <rth@redhat.com>
3702 * dwarf2.h (DW_OP_GNU_encoded_addr): New.
3703 * unwind-dw2.c (execute_stack_op): Handle it.
3705 2008-09-24 David Edelsohn <edelsohn@gnu.org>
3708 2008-09-24 Michael J. Eager <eager@eagercon.com>
3710 2008-09-24 Aldy Hernandez <aldyh@redhat.com>
3712 * c-common.c (fname_decl): New location argument.
3713 * c-common.h (fname_decl): Same.
3714 * c-parser.c (c_lex_one_token): Use {warning,error}_at instead of
3716 (c_parser_typeof_specifier): Same.
3717 (c_parser_parms_list_declarator): Same.
3718 (c_parser_asm_string_literal): Same.
3719 (c_parser_compound_statement_nostart): Same.
3720 (c_parser_label): Same.
3721 (c_parser_do_statement): Same.
3722 (c_parser_asm_statement): Same.
3723 (c_parser_unary_expression): Same.
3724 (c_parser_sizeof_expression): Same.
3725 (c_parser_postfix_expression): Same.
3726 (c_parser_pragma): Same.
3727 (c_parser_omp_clause_collapse): Same.
3728 (c_parser_omp_clause_num_threads): Same.
3729 (c_parser_omp_clause_schedule): Same.
3730 (c_parser_omp_all_clauses): Same.
3731 (c_parser_omp_sections_scope): Same.
3732 (c_parser_omp_for_loop): Same. Pass condition's location to
3733 c_objc_common_truthvalue_conversion.
3734 (c_parser_enum_specifier): Remove comment.
3736 2008-09-24 Michael J. Eager <eager@eagercon.com>
3738 * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
3740 * config/rs6000/rs6000.c (rs6000_override_options): Move
3741 rs6000_init_hard_regno_mode_ok after all options changed.
3742 Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
3743 (rs6000_handle_option): Process -msingle-float, -mdouble-float,
3744 -msimple-fpu flags. Add warning messages if single FP not configured.
3745 (rs6000_file_start): Output gnu_attribute for single-float.
3746 (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
3747 (rs6000_legitimize_address): Likewise.
3748 (rs6000_legitimize_reload_address): Likewise.
3749 (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
3750 TARGET_SINGLE_FLOAT.
3751 (function_arg_advance): Likewise.
3752 (function_arg): Likewise.
3753 (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
3754 (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
3755 TARGET_SINGLE_FLOAT.
3756 (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
3757 (rs6000_emit_prologue): Likewise.
3758 (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
3759 TARGET_SINGLE_FLOAT.
3760 (rs6000_libcall_value): Likewise.
3761 * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
3762 (TARGET_DOUBLE_FLOAT): New default to 1
3763 (TARGET_SIMPLE_FPU): New default to 0
3764 (TARGET_SINGLE_FPU): New default to 0
3765 (TARGET_SINGLE_FLOAT_MODE): New.
3766 (TARGET_DOUBLE_FLOAT_MODE): New.
3767 * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
3768 TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
3770 * config/rs6000/rs6000.md (define_mode_iterator): Condition on
3771 TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
3772 (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
3773 copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
3774 nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
3775 muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
3776 movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
3777 floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
3778 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
3779 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
3780 rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
3781 floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
3782 movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
3783 extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
3784 abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
3785 cmptf_internal1, *cmptf_internal2): Condition on
3786 TARGET_DOUBLE_FLOAT.
3787 (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
3788 mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
3789 *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
3790 btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
3791 floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
3792 *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
3793 TARGET_SINGLE_FLOAT.
3794 (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
3795 * config/rs6000/rs6000.opt (-msingle-float): New.
3796 (-mdouble-float): New.
3797 (-msimple-fpu): New.
3798 * doc/invoke.texi (RS/6000 and PowerPC Options): Add
3799 -msingle-float, -mdouble-float, -msimple-fpu options.
3800 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
3801 _SOFT_DOUBLE for -msingle-float.
3802 * config.gcc: New config for target=powerpc-xilinx-eabi.
3804 2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
3806 * config/sparc/constraints.md: New file.
3807 * config/sparc/sparc.md: Include it.
3808 * config/sparc/sparc-protos.h (memory_ok_for_ldd): Declare.
3809 (sparc_extra_constraint_check): Delete.
3810 * config/sparc/sparc.c (register_ok_for_ldd): Minor tweaks.
3811 (memory_ok_for_ldd): New predicate.
3812 (sparc_extra_constraint_check): Delete.
3813 * config/sparc/sparc.h (REG_CLASS_FROM_LETTER): Likewise.
3814 (CONST_OK_FOR_LETTER_P): Likewise.
3815 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
3816 (EXTRA_CONSTRAINT): Likewise.
3818 2008-08-23 Steve Ellcey <sje@cup.hp.com>
3820 * regrename.c (do_replace): Copy REG_POINTER value to new reg.
3822 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
3824 * alias.c (find_base_value): Use FIND_BASE_TERM.
3825 * doc/tm.texi (FIND_BASE_TERM): Update documentation.
3827 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
3829 * config/i386/i386.c: Include cselib.h.
3830 (ix86_pic_register_p): New function.
3831 (ix86_delegitimize_address): Use it to check for the PIC register.
3833 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
3835 * doc/tm.texi (FIND_BASE_TERM): Expand documentation.
3836 * config/i386/i386.c (ix86_find_base_term): Don't check for
3837 SYMBOL_REF and LABEL_REF.
3839 2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
3841 * config/i386/i386.c (ix86_delegitimize_address): Wrap the
3842 constant PLUS in a CONST.
3844 2008-09-23 Kai Tietz <kai.tietz@onevision.com>
3846 * config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
3847 check for sibcall support for w64.
3849 2008-09-23 Eric Botcazou <ebotcazou@adacore.com>
3851 * c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
3853 2008-09-23 Aldy Hernandez <aldyh@redhat.com>
3855 * c-tree.h: Add argument to c_objc_common_truthvalue_conversion,
3856 parser_build_binary_op.
3857 * c-decl.c (build_enumerator): Pass location to build_binary_op.
3858 * c-typeck.c (build_array_ref): Same.
3859 (parser_build_unary_op): New location argument.
3860 (pointer_diff): Pass location to build_binary_op,
3861 c_objc_common_truthvalue_conversion.
3862 (build_modify_expr): Same.
3863 (build_unary_op): New location argument.
3864 (build_binary_op): New location argument.
3865 (c_objc_common_truthvalue_conversion): Pass location to
3866 c_*common_truthvalue_conversion.
3867 * c-convert.c (convert): Same.
3868 * c-common.c (binary_op_error): New location argument.
3869 (pointer_int_sum): Pass location to build_binary_op.
3870 (c_common_truthvalue_conversion): New location argument.
3871 (warn_for_sign_compare): Same.
3872 * c-common.h: Add location argument to c_common_truthvalue_conversion,
3873 binary_op_error, build_binary_op, warn_for_sign_compare.
3874 * c-parser.c (c_parser_condition): Pass location to
3875 c_*common_truthvalue_conversion.
3876 (c_parser_conditional_expression): Save condition's location and pass
3878 (c_parser_binary_expression): Same, but for the binary operator's
3880 (c_parser_omp_for_loop): Pass location to
3881 c_objc_common_truthvalue_conversion.
3883 2008-09-23 Martin Jambor <mjambor@suse.cz>
3885 * cgraph.c (cgraph_free_edge): Use sizeof(*e).
3886 (cgraph_node_remove_callees): New temporary f. Hold the next item
3888 (cgraph_node_remove_callers): Likewise.
3890 * ipa-prop.c (ipa_edge_removal_hook): Use ATTRIBUTE_UNUSED.
3891 (ipa_node_removal_hook): Likewise.
3893 * doc/gimple.texi (gimple_copy_call_skip_args): Changed to
3894 gimple_call_copy_skip_args and moved to the gimple_call section.
3895 * gimple.c (gimple_copy_call_skip_args): Renamed to
3896 gimple_call_copy_skip_args. Changed al users.
3898 2008-09-22 Vladimir Makarov <vmakarov@redhat.com>
3900 * ira-color.c (start_allocno_priorities): Rename to
3901 setup_allocno_priorities. Use costs and
3902 ALLOCNO_EXCESS_PRESSURE_POINTS_NUM instead of frequencies and
3903 range lengths. Get rid off doubles.
3904 (ira_fast_allocations): Call start_allocno_priorities.
3906 2008-09-22 David Daney <ddaney@avtrex.com>
3909 * config/mips/mips.h (FUNCTION_PROFILER): Call _mcount via a
3910 register if TARGET_LONG_CALLS.
3912 2008-09-22 Richard Guenther <rguenther@suse.de>
3914 PR tree-optimization/37145
3915 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Re-enable
3916 value-numbering union accesses with their offset and size only.
3917 (visit_reference_op_load): Fix simplification of inserted conversions.
3918 * tree-ssa-pre.c (find_or_generate_expression): Do not
3919 recursively generate expressions if running FRE.
3921 2008-09-22 Adam Nemet <anemet@caviumnetworks.com>
3923 * config/mips/mips.h (ISA_HAS_BADDU): New macro.
3924 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el, *baddu_di<mode>):
3927 2008-09-22 Richard Guenther <rguenther@suse.de>
3929 PR tree-optimization/37145
3930 * tree-ssa-pre.c (fully_constant_expression): Simplify builtin calls.
3931 (phi_translate_1): Constant fold references.
3933 2008-09-22 Ira Rosen <irar@il.ibm.com>
3935 PR tree-optimization/37482
3936 * tree-vectorizer.h (struct _slp_instance): Add new field.
3937 (SLP_INSTANCE_FIRST_LOAD_STMT): New.
3938 (get_earlier_stmt): New function.
3939 * tree-vect-analyze.c (vect_find_first_load_in_slp_instance): New
3941 (vect_analyze_slp_instance): Set SLP_INSTANCE_FIRST_LOAD_STMT.
3942 * tree-vect-transform.c (vect_finish_stmt_generation): Remove the
3943 asserts that GSI points to the scalar statement being vectorized.
3944 Set new statement location according to GSI.
3945 (vect_schedule_slp_instance): Use GSI of
3946 SLP_INSTANCE_FIRST_LOAD_STMT when vectorizing loads.
3948 2008-09-21 Jan Hubicka <jh@suse.cz>
3950 * ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
3951 (ipcp_insert_stage): Update dead_nodes bitmap.
3953 2008-09-22 Danny Smith <dannysmith@users.sourceforge.net>
3956 * config/i386/t-cygming (SHLIB_LC): Remove.
3957 (SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
3958 * config/i386/t-cygwin (SHLIB_LC): Specify all required libraries.
3960 2008-09-22 Hans-Peter Nilsson <hp@axis.com>
3964 * final.c (mark_symbol_ref_as_used): New helper function.
3965 (output_operand): Instead of just looking inside MEMs for
3966 SYMBOL_REFs, use new helper function and for_each_rtx.
3967 * varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
3968 to after weak-handling. Don't mark decls with TREE_STATIC as weak.
3969 Make head comment more general.
3970 * config/darwin.c (machopic_output_indirection): Handle weak
3971 references here, like in assemble_external.
3973 2008-09-21 Eric Botcazou <ebotcazou@adacore.com>
3975 * config/sparc/sparc-protos.h (gen_compare_operator): Declare.
3976 (sparc_emit_float_lib_cmp): Change return type.
3977 * config/sparc/sparc.c (gen_compare_reg): Add comment about TFmode.
3978 (gen_compare_operator): New function.
3979 (sparc_emit_float_lib_cmp): Return the new operator to be used in
3980 the comparison sequence. Minor tweaks.
3981 * config/sparc/sparc.md (seq, sne, sgt, slt, sge, sle): Assert
3982 that the final operator and the result of sparc_emit_float_lib_cmp
3983 match for software TFmode; use emit_insn in lieu of emit_jump_insn.
3984 (beq, bne, bgt, blt, bge, ble, bunordered, bordered, bungt, bunlt,
3985 buneq, bunge, bunle, bltgt): Assert that the final operator and the
3986 result of sparc_emit_float_lib_cmp match for software TFmode.
3987 (movqicc, movhicc, movsicc, movdicc): Merge into...
3988 (mov<I:mode>cc): ...this.
3989 (movsfcc, movdfcc, movtfcc): Merge into...
3990 (mov<F:mode>cc): ...this.
3991 (movqi_cc_sp64, movhi_cc_sp64, movsi_cc_sp64, movdi_cc_sp64): Merge
3993 (mov<I:mode>_cc_v9): ...this.
3994 (movdi_cc_sp64_trunc): Delete.
3995 (movqi_cc_reg_sp64, movhi_cc_reg_sp64, movsi_cc_reg_sp64,
3996 movdi_cc_reg_sp64): Merge into...
3997 (mov<I:mode>_cc_reg_sp64): ...this.
3998 (movsf_cc_sp64): Rename into...
3999 (movsf_cc_v9): ...this.
4000 (movdf_cc_sp64): Rename into...
4001 (movdf_cc_v9): ...this.
4002 (movtf_cc_hq_sp64): Rename into...
4003 (movtf_cc_hq_v9): ...this.
4004 (movtf_cc_sp64): Rename into...
4005 (movtf_cc_v9): ...this. Adjust for renaming of movdf_cc_sp64.
4007 2008-09-21 Diego Novillo <dnovillo@google.com>
4009 * doc/gccint.texi: Include generic.texi and gimple.texi.
4011 * doc/tree-ssa.texi (GENERIC): Move to generic.texi.
4012 (GIMPLE): Move to gimple.texi.
4013 (Annotations): Remove references to to stmt_ann_t and
4015 (SSA Operands): Rename from 'Statement Operands'.
4016 * doc/generic.texi: New.
4017 * doc/gimple.texi: New.
4018 * Makefile.in (TEXI_GCCINT_FILES): Add generic.texi and gimple.texi.
4019 * Makefile.in (TEXI_GCCINT_FILES):
4020 * gimple.c (gimple_copy_call_skip_args): Rename from
4021 giple_copy_call_skip_args. Update all users.
4022 * doc/gimple.texi (gimple_copy_call_skip_args): Document.
4024 2008-09-21 Ira Rosen <irar@il.ibm.com>
4026 PR tree-optimization/37539
4027 * tree-vect-transform.c (vect_transform_strided_load): Save vector
4028 statement in related statement field only for the first load of the
4029 group of loads with the same data reference.
4031 2008-09-20 Adam Nemet <anemet@caviumnetworks.com>
4033 * config/mips/mips.h (TUNE_OCTEON): New macro.
4034 * config/mips/mips.c (mips_issue_rate): Return 2 for Octeon.
4035 (mips_multipass_dfa_lookahead): Return 2 for Octeon.
4036 * config/mips/octeon.md: New file.
4037 * config/mips/mips.md: Include octeon.md. Restore
4038 semi-alphabetical order of include files.
4040 2008-09-20 H.J. Lu <hongjiu.lu@intel.com>
4043 * config/i386/i386.md (*jcc_fused_1): Removed.
4044 (*jcc_fused_2): Likewise.
4045 (*jcc_fused_3): Likewise.
4046 (*jcc_fused_4): Likewise.
4048 2008-09-20 Richard Sandiford <rdsandiford@googlemail.com>
4050 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define.
4051 (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES.
4052 * target.h (gcc_target): Add ira_cover_classes.
4053 * ira.c: Remove IRA_COVER_CLASSES guards.
4054 (setup_cover_and_important_classes): Use targetm.ira_cover_classes
4055 instead of IRA_COVER_CLASSES.
4056 (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard.
4057 (setup_class_translate): Likewise.
4058 (setup_reg_class_intersect_union): Likewise.
4059 (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a
4060 test of targetm.ira_cover_classes.
4061 * opts.c (decode_options): Use targetm.ira_cover_classes instead
4062 of IRA_COVER_CLASSES.
4063 * target-def.h (TARGET_IRA_COVER_CLASSES): Define.
4064 (TARGET_INITIALIZER): Include it.
4065 * targhooks.h (default_ira_cover_classes): Declare.
4066 * targhooks.c (default_ira_cover_classes): New function.
4068 2008-09-19 Bob Wilson <bob.wilson@acm.org>
4070 * config/xtensa/xtensa.md (reload<mode>_literal): Handle MEM operands.
4072 2008-09-19 Ian Lance Taylor <iant@google.com>
4074 * varasm.c (narrowing_initializer_constant_valid_p): Return
4075 NULL_TREE if ENDTYPE is not an integer.
4077 2008-09-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
4080 * tree-ssa.c (execute_update_addresses_taken): Also update
4081 DECL_GIMPLE_REG_P for vector and complex types.
4083 2008-09-19 Andrew MacLeod <amacleod@redhat.com>
4084 Jan Hubicka <jh@suse.cz>
4087 * tree-ssa-ter.c (free_temp_expr_table): Make sure fields are actually
4088 empty before freeing them.
4089 (find_replaceable_exprs): Move asserts to free_temp_expr_table.
4091 2008-09-18 Bob Wilson <bob.wilson@acm.org>
4093 * configure.ac: Add HAVE_AS_TLS check for Xtensa.
4094 * config/xtensa/predicates.md (tls_symbol_operand): New.
4095 * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Define.
4096 (TARGET_CANNOT_FORCE_MEM): Define.
4097 (xtensa_tls_symbol_p): New.
4098 (xtensa_emit_move_sequence): Check for and legitimize TLS addresses.
4099 (xtensa_legitimate_address_p): Disallow constant pool TLS references.
4100 (xtensa_tls_module_base): New.
4101 (xtensa_call_tls_desc): New.
4102 (xtensa_legitimize_tls_address): New.
4103 (xtensa_legitimize_address): Handle TLS symbols.
4104 (xtensa_tls_referenced_p_1): New.
4105 (xtensa_tls_referenced_p): New.
4106 (xtensa_output_addr_const_extra): Handle UNSPEC_TPOFF and
4108 (XTENSA_BUILTIN_THREAD_POINTER): New.
4109 (XTENSA_BUILTIN_SET_THREAD_POINTER): New.
4110 (xtensa_init_builtins): Set NOTHROW and READONLY for umulsidi3
4111 builtin. Add declarations for __builtin_thread_pointer and
4112 __builtin_set_thread_pointer.
4113 (xtensa_fold_builtin): Recognize new builtins.
4114 (xtensa_expand_builtin): Expand new builtins.
4115 * config/xtensa/xtensa.h (XCHAL_HAVE_THREADPTR): Define default value.
4116 (TARGET_THREADPTR): Define.
4117 (HAVE_AS_TLS): Define default value.
4118 (LEGITIMATE_CONSTANT_P): Disallow TLS references.
4119 * config/xtensa/xtensa.md (UNSPEC_TPOFF, UNSPEC_DTPOFF): New.
4120 (UNSPEC_TLS_FUNC, UNSPEC_TLS_ARG, UNSPEC_TLS_CALL, UNSPEC_TP): New.
4121 (UNSPECV_SET_TP): New.
4122 (sym_TPOFF, sym_DTPOFF): New.
4123 (load_tp, set_tp, tls_func, tls_arg, tls_call): New.
4124 * config/xtensa/xtensa-protos.h (xtensa_tls_referenced_p): Declare.
4125 * configure: Regenerated.
4127 2008-09-18 H.J. Lu <hongjiu.lu@intel.com>
4130 * config/ia64/ia64.c (ia64_optimization_options): Move
4131 checking and setting flag_schedule_insns_after_reload and
4132 ia64_flag_schedule_insns2 back to ...
4133 (ia64_override_options): Here.
4135 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
4138 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
4139 zero extend count after the correction to it is done.
4140 (doloop_optimize): Update call to doloop_modify, don't zero extend
4143 2008-09-18 Martin Jambor <mjambor@suse.cz>
4145 * ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false.
4147 * ipa-prop.c: Correct comments.
4148 * ipa-prop.h: Likewise.
4150 2008-09-18 Jan Hubicka <jh@suse.cz>
4153 * ipa-reference.c (ipa_reference_local_vars_info_d,
4154 ipa_reference_global_vars_info_d,
4155 ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
4156 ipa_reference_vars_info_t): Move here from ipa-reference.h
4157 (node_duplication_hook_holder, node_removal_hook_holder): New.
4158 (get_reference_vars_info_from_cgraph): Rename to ...
4159 (get_reference_vars_info): ... this one, use cgraph uids.
4160 (get_local_reference_vars_info, get_global_reference_vars_info):
4161 Use cgraph instead of decl.
4162 (ipa_reference_get_read_local, ipa_reference_get_written_local):
4164 (ipa_reference_get_read_global, ipa_reference_get_not_read_global
4165 ipa_reference_get_written_global,
4166 ipa_reference_get_not_written_global): Use cgraph argument.
4167 (check_call): Simplify avail check.
4168 (scan_stmt_for_static_refs): Update.
4169 (propagate_bits): Update.
4170 (merge_callee_local_info): Remove.
4171 (init_function_info): Use cgraph nodes.
4172 (clean_function_local_data): Break out from ...
4173 (clean_function): ... here.
4174 (copy_local_bitmap, copy_global_bitmap): New functions.
4175 (duplicate_node_data, remove_node_data): New functions.
4176 (generate_summary): Register hooks; use visibility instead of
4178 (propafate): Use cgraph nodes; copy bitmap to each node in cycle.
4179 * ipa-reference.h (ipa_reference_local_vars_info_d,
4180 ipa_reference_global_vars_info_d,
4181 ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
4182 ipa_reference_vars_info_t): Move to ipa-reference.c
4183 (ipa_reference_get_read_local, ipa_reference_get_written_local):
4185 (ipa_reference_get_read_global, ipa_reference_get_written_global,
4186 ipa_reference_get_not_read_global,
4187 ipa_reference_get_not_written_global): Update prototype.
4188 * ipa-pure-const.c (funct_state_vec): Turn into VECtor.
4189 (init_state): Remove.
4190 (node_duplication_hook_holder, node_removal_hook_holder): New.
4191 (get_function_state, set_function_state): Use VECtor.
4192 (analyze_function): Check body availability.
4193 (add_new_function): Likewise.
4194 (duplicate_node_data, remove_node_data): New.
4195 (generate_summary): Register hooks; do not care about clones.
4196 (propafate): Do not care about clones; recursive functions are
4198 * ipa-utils.c (searchc, ipa_utils_reduced_inorder): Do not skip clones.
4199 * ipa-prop.c (edge_removal_hook_holder, node_removal_hook_holder,
4200 * edge_duplication_hook_holder, node_duplication_hook_holder): Make
4202 * tree-flow.h (function_ann_d): Remove reference_vars_info.
4203 * tree-ssa-opreands.c (add_call_clobber_ops, add_call_read_ops):
4204 Update call of ipa-reference accesors.
4206 2008-09-18 Simon Baldwin <simonb@google.com>
4208 * c-opts.c (c_common_handle_option): Add handling for
4209 -Wbuiltin-macro-redefined command line option.
4210 * c.opt: Added builtin-macro-redefined option.
4211 * doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
4214 2008-09-18 Richard Guenther <rguenther@suse.de>
4216 PR tree-optimization/37258
4217 * tree-ssa-sccvn.c (vn_phi_compute_hash): Include the precision
4218 and signedness for integral types.
4219 (vn_phi_eq): Require compatible types.
4221 2008-09-18 Jakub Jelinek <jakub@redhat.com>
4224 * gimplify.c (gimplify_type_sizes): When not optimizing, ensure
4225 TYPE_MIN_VALUE and TYPE_MAX_VALUE is not is not DECL_IGNORED_P
4227 * cfgexpand.c (expand_used_vars): Keep DECL_ARTIFICIAL
4228 !DECL_IGNORED_P vars in local_decls list for instantiate_decls,
4229 ggc_free other TREE_LIST nodes from that chain.
4230 * function.c (instantiate_decls): Instantiate also DECL_RTL
4231 of vars in cfun->local_decls, free that list afterwards.
4233 2008-09-18 Eric Botcazou <ebotcazou@adacore.com>
4235 * config/sparc/sol2.h (WIDEST_HARDWARE_FP_SIZE): Move to...
4236 * config/sparc/sparc.h (WIDEST_HARDWARE_FP_SIZE): ...here.
4238 2008-09-18 Andrew MacLeod <amacleod@redhat.com>
4240 * tree-outof-ssa.c (eliminate_useless_phis): Fix formatting.
4241 * tree-flow-.h (struct immediate_use_iterator_d): Fix comment.
4243 2008-09-18 Andrew MacLeod <amacleod@redhat.com>
4245 PR tree-optimization/37102
4246 * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args
4247 from a node. Check to see if another PHI is dead.
4248 (eliminate_useless_phis): Rename from eliminate_virtual_phis and
4249 remove real PHIs which have no uses.
4250 (rewrite_out_of_ssa): Call eliminate_useless_phis.
4252 2008-09-18 Richard Guenther <rguenther@suse.de>
4255 * tree-cfg.c (remove_useless_stmts_1): Remove
4256 GIMPLE_CHANGE_DYNAMIC_TYPE if not optimizing.
4258 2008-09-18 Nick Clifton <nickc@redhat.com>
4260 * config/frv/frv.h (IRA_COVER_CLASSES): Define.
4261 (SECONDARY_INPUT_RELOAD_CLASS): Omit unused argument in call
4262 to frv_secondary_reload_class.
4263 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
4264 * config/frv/frv.c (TARGET_SECONDARY_RELOAD): Define.
4265 (frv_secondary_reload_class): Omit unused parameter.
4266 (frv_secondary_reload): New function. Handle the case when
4267 secondary_reload_class() is called before the reload_(in|out)
4268 _optabs have been initialised.
4269 * config/frv/frv-protos.h (frv_secondary_reload_class): Omit
4271 * config/frv/frv.md: Define an exclusion set between fr550_m0
4274 2008-09-18 Richard Guenther <rguenther@suse.de>
4276 PR tree-optimization/37456
4277 * tree-ssa-reassoc.c (build_and_add_sum): If the stmt we
4278 want to insert after ends a BB insert on the single fallthru
4281 2008-09-18 Andreas Krebbel <krebbel1@de.ibm.com>
4283 * doc/invoke.texi: Document -mhard-dfp, -mno-hard-dfp.
4284 Mention -march=z9-109, z9-ec and z10.
4286 2008-09-18 Uros Bizjak <ubizjak@gmail.com>
4288 PR rtl-optimization/37544
4289 * regrename.c (maybe_mode_change): Exit early when copy_mode
4290 is narrower than orig_mode and narrower than new_mode.
4292 2008-09-18 Alexander Monakov <amonakov@ispras.ru>
4295 * sched-int.h (struct _haifa_insn_data): Remove unused field ref_count.
4297 * sched-rgn.c (ref_counts): Remove.
4298 (insn_referenced): New static variable.
4299 (INSN_REF_COUNT): Remove.
4300 (sched_run_compute_dependencies): Use insn_referenced instead of
4302 (add_branch_dependences): Likewise. Delete dead assignment.
4304 2008-09-17 Adam Nemet <anemet@caviumnetworks.com>
4306 * haifa-sched.c (dep_cost_1): Recognize the producer even if the
4307 consumer is an asm. Add comment why this is important.
4308 (choose_ready): Add comment to the "INSN_CODE (insn) >= 0 ||
4309 recog_memoized (insn) < 0" assert. Put ENABLE_CHECKING around it.
4311 2008-09-17 Joseph Myers <joseph@codesourcery.com>
4313 * expr.c (emit_group_store): Do not shift before moving via a
4316 2008-09-17 Eric Botcazou <ebotcazou@adacore.com>
4318 * varasm.c (initializer_constant_valid_p): Forbid view-conversions
4319 from aggregate to non-aggregate type if the bit pattern is not fully
4320 preserved afterwards.
4322 2008-09-17 Richard Guenther <rguenther@suse.de>
4324 * tree-cfg.c (verify_types_in_gimple_assign): Rename to ...
4325 (verify_gimple_assign): ... this. Split into ...
4326 (verify_gimple_assign_unary): ... this,
4327 (verify_gimple_assign_binary): ... that,
4328 (verify_gimple_assign_single): ... and this.
4329 (verify_types_in_gimple_stmt): Call verify_gimple_assign.
4330 Fix GIMPLE_CHANGE_DYNAMIC_TYPE handling.
4331 (verify_types_in_gimple_min_lval): Handle TARGET_MEM_REF.
4332 (verify_types_in_gimple_reference): Be forgiving with
4334 (verify_gimple_phi): Deal with virtual operands.
4336 * tree.def (PREDICT_EXPR): Change to tcc_expression.
4338 2008-09-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
4340 * tree.c (get_callee_fndecl): Don't call the language hook.
4341 * langhooks.h (lang_hooks): Remove lang_get_callee_fndecl.
4342 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): Kill.
4343 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_GET_CALLEE_FNDECL.
4345 2008-09-17 Jakub Jelinek <jakub@redhat.com>
4347 * tree.c (protected_set_expr_location): Don't unnecessarily
4348 check for error_mark_node.
4350 2008-09-17 Art Haas <ahaas@impactweather.com>
4352 * ipa-reference.c (analyze_function): Declare step only if
4353 ENABLE_CHECKING is defined.
4355 2008-09-17 Jan Hubicka <jh@suse.cz>
4358 * tree.h (DECL_INLINE): remove.
4359 (DECL_DECLARED_INLINE_P): Update docs.
4360 (DECL_NO_INLINE_WARNING_P): new.
4361 (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
4362 * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
4364 2008-09-17 Jakub Jelinek <jakub@redhat.com>
4365 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4368 * dwarf2out.c (dwarf2out_do_cfi_asm) [MIPS_DEBUGGING_INFO]: Return
4371 2008-09-17 Jan Hubicka <jh@suse.cz>
4373 * ipa-reference.c (ipa_obstack): Remove.
4374 (local_info_obstack, global_info_obstack): New.
4375 (add_static_var): We now handle variables only.
4376 (mark_address_taken, mark_load, mark_store): New functions based on ...
4377 (check_operand): ... remove.
4378 (get_asm_stmt_operands): Rename to ...
4379 (check_asm_memory_clobber): ... this. Look only for memory clobber.
4380 (scan_stmt_for_static_refs): Rewrite.
4381 (scan_op_for_static_refs): Rename to ...
4382 (scan_initializer_for_static_refs): do not look for VAR_DECL
4383 initializers; stop recursion on types and decls.
4384 (ipa_init): Use proper obstacks.
4385 (analyze_variable): Use scan_initializer_for_static_refs.
4386 (init_function_info): Use local obstack.
4387 (analyze_function): Simplify.
4388 (add_new_function): We don't need visited_nodes obstack.
4389 (generate_summary): Use proper obstacks; cleanup after propagation.
4391 2008-09-17 Richard Guenther <rguenther@suse.de>
4394 PR tree-optimization/37491
4395 * alias.c (get_alias_set): Use the canonical type.
4396 * tree-vect-transform.c (vectorizable_store): Use the type of
4397 the lhs for the vector type. Adjust checking.
4398 (vectorizable_load): Adjust checking.
4400 2008-09-16 Jakub Jelinek <jakub@redhat.com>
4401 Adam Nemet <anemet@caviumnetworks.com>
4403 PR rtl-optimization/37483
4404 * ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
4405 if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
4406 Rearrange code to better match the original comment. Check
4407 t_unconditional first. Improve comment.
4409 2008-09-16 Jakub Jelinek <jakub@redhat.com>
4412 * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
4413 GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
4416 * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
4417 GIMPLE_TRY if cleanup sequence is empty.
4419 2008-09-16 Andrew Pinski <andrew_pinski@playstation.sony.com>
4422 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
4423 eliminate IV if the cost are the same.
4425 2008-09-16 Richard Guenther <rguenther@suse.de>
4428 * tree-sra.c (sra_build_assignment): Do not call the gimplifier
4431 2008-09-16 Richard Guenther <rguenther@suse.de>
4433 PR tree-optimization/37508
4434 * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
4436 2008-09-15 Kaz Kojima <kkojima@gcc.gnu.org>
4438 * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
4440 2008-09-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
4442 * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
4443 use gen_floatdidf2 directly.
4444 (floatunssidf2): Likewise.
4445 (floatsidf_ppc64_mfpgpr): Remove.
4446 (floatsidf_ppc64): Remove.
4447 (floatunssidf_ppc64): Remove.
4449 2008-09-15 Jakub Jelinek <jakub@redhat.com>
4451 * ira-color.c (finish_cost_update): Free update_cost_queue_elems
4452 rather than update_cost_queue.
4454 * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
4455 in every call starting with the second one, instead of only when
4456 alias_bitmap_obstack.elements != NULL.
4458 * tree-predcom.c (filter_suitable_components): Free all refs in
4459 act->refs vector before calling release_component.
4460 (add_ref_to_chain): Free ref if not adding it to chain->refs.
4462 * tree-data-ref.c (free_subscripts): Free all subscript objects.
4464 * tree-loop-linear.c (linear_transform_loops): Initialize
4465 lambda_obstack only after calling perfect_loop_nest_depth.
4466 Goto free_and_continue instead of just continue for later failures.
4469 * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
4472 * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
4474 2008-09-14 Andreas Schwab <schwab@suse.de>
4476 * tree-call-cdce.c (check_target_format): Accept Motorola formats.
4478 2008-09-14 Jan Hubicka <jh@suse.cz>
4480 * invoke.texi (-fconserve-stack): Document.
4481 * opts.c (decode_options): Handle conserve_stack.
4482 * common.opt (fconvserve_stack): New.
4484 2008-09-14 David Edelsohn <edelsohn@gnu.org>
4486 * config.host: Add x-aix to host_xmake_file.
4487 * config/rs6000/t-aix52: Do not override LDFLAGS.
4488 * config/rs6000/x-aix: New file.
4490 2008-09-14 Andy Hutchinson <hutchinsonandy@aim.com>
4496 * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
4497 is not recognized as a valid register usage. Allow REG_X to be used
4499 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
4500 forces a reload when using a base register.
4502 2008-09-14 Danny Smith <dannysmith@users.sourceforge.net>
4504 * config/i386/cygming-crtend.c (register_frame_ctor): If
4505 DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
4506 directly with atexit.
4507 (deregister_frame_ctor): Rename to ...
4508 (deregister_frame_dtor): Use to call __gcc_deregister_frame
4509 if !DEFAULT_USE_CXA_ATEXIT.
4511 2008-09-13 Jan Hubicka <jh@suse.cz>
4513 * cgraph.c: Include value-prof.h
4514 * Makefile.in (cgraph.o): Add value-prof.h dependency.
4516 2008-09-13 Jan Hubicka <jh@suse.cz>
4519 * tree-profile.c (add_abnormal_goto_call_edges): New function.
4520 (tree_gen_interval_profiler, tree_gen_pow2_profiler,
4521 tree_gen_one_value_profiler, tree_gen_average_profiler,
4522 tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
4524 2008-09-13 Jan Hubicka <jh@suse.cz>
4526 * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing
4527 too many bytes on misalligned blocks.
4529 2008-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4531 * doc/cfg.texi: Fix some typos.
4532 * doc/extend.texi: Likewise.
4533 * doc/install.texi: Likewise.
4534 * doc/invoke.texi: Likewise.
4535 * doc/rtl.texi: Likewise.
4536 * doc/tree-ssa.texi: Likewise.
4538 2008-09-13 Richard Guenther <rguenther@suse.de>
4541 * tree-nested.c (finalize_nesting_tree_1): Generate valid
4542 gimple stores for memory rhs.
4544 2008-09-13 H.J. Lu <hongjiu.lu@intel.com>
4546 PR rtl-optimization/37489
4547 * cse.c (fold_rtx): Don't return const_true_rtx for float
4548 compare if FLOAT_STORE_FLAG_VALUE is undefined.
4550 2008-09-13 Jan Hubicka <jh@suse.cz>
4552 PR tree-optimization/37392
4553 * tree-inline.c (remap_gimple_stmt): Do not remap return value.
4555 2008-09-13 Martin Jambor <mjambor@suse.cz>
4556 Jan Hubicka <jh@suse.cz>
4558 * cgraph.c (free_edges): New variable.
4559 (NEXT_FREE_EDGE): New macro.
4560 (cgraph_free_edge): New function.
4561 (cgraph_remove_edge): Call cgraph_remove_edge_1.
4562 (cgraph_node_remove_callees): Likewise.
4563 (cgraph_node_remove_callers): Likewise.
4564 (cgraph_create_edge): Reuse edges from the free list. Do not
4565 update uid if doing so.
4566 (cgraph_remove_*_hook): Add free call.
4568 2008-09-13 Richard Sandiford <rdsandiford@googlemail.com>
4570 * ira-color.c (conflict_allocno_vec): Delete.
4571 (update_cost_queue_elem): New structure.
4572 (update_cost_queue): New variable.
4573 (update_cost_queue_tail): Likewise.
4574 (update_cost_queue_elems): Likewise.
4575 (allocno_update_cost_check): Delete.
4576 (initiate_cost_update): Allocate update_cost_queue_elems
4577 instead of allocno_update_cost_check.
4578 (finish_cost_update): Update the free()s accordingly.
4579 (start_update_cost): New function.
4580 (queue_update_cost): Likewise.
4581 (get_next_update_cost): Likewise.
4582 (update_copy_costs_1): Inline into...
4583 (update_copy_costs): ...here. Use a queue instead of recursive calls.
4584 Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
4585 once we've established they are equal. Don't allocate update
4586 costs if there is nothing to add to them.
4587 (update_conflict_hard_regno_costs): Remove ALLOCNO and
4588 DIVISOR arguments. Use a queue instead of recursive calls;
4589 process all the allocnos in the initial queue, rather than
4591 (assign_hard_reg): Use queue_update_cost instead of
4592 conflict_allocno_vec. Queue coalesced allocnos instead
4593 of calling update_conflict_hard_regno_costs for each one.
4594 Just call update_conflict_hard_regno_costs once for the
4596 (ira_color): Remove conflict_allocno_vec handling.
4598 2008-09-12 Sebastian Pop <sebastian.pop@amd.com>
4600 PR tree-optimization/37484
4601 * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
4602 (save_var_name): Same.
4603 (initialize_cloog_names): Same.
4604 (initialize_cloog_names): Same.
4606 2008-09-12 Sebastian Pop <sebastian.pop@amd.com>
4608 * tree-scalar-evolution.c (set_instantiated_value): Set
4611 2008-09-12 Vladimir Makarov <vmakarov@redhat.com>
4615 * ira-build.c (common_loop_tree_node_dominator): Remove.
4616 (copy_live_ranges_to_removed_store_destinations): New function.
4617 (regno_top_level_allocno_map): Move to top level from ...
4618 (ira_flattening): ... here. Use
4619 copy_live_ranges_to_removed_store_destinations.
4621 * ira-emit.c (generate_edge_moves): Fix a comment.
4623 2008-09-12 Anatoly Sokolov <aesok@post.ru>
4626 * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
4627 scratch register after 'set' pattern.
4629 2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4631 * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
4632 information passed to mark_reg_pointer.
4633 * explow.c (force_reg): Likewise.
4635 2008-09-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4637 * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
4638 when building for the celledp architecture.
4640 2008-09-12 Richard Guenther <rguenther@suse.de>
4642 * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
4644 2008-09-12 Eric Botcazou <ebotcazou@adacore.com>
4646 PR rtl-optimization/37424
4647 * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
4648 the regnos instead of the addresses.
4650 2008-09-11 Janis Johnson <janis187@us.ibm.com>
4652 * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
4654 2008-09-11 Richard Guenther <rguenther@suse.de>
4656 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
4657 entering the weaker equivalence recording.
4659 * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
4661 2008-09-11 Jeff Law <law@redhat.com>
4663 * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
4664 by assign_stack_local on the IRA path for stack slot sharing
4665 as well as the non-IRA path.
4667 2008-09-11 Uros Bizjak <ubizjak@gmail.com>
4669 * config/i386/i386.h: Fix whitespace issues.
4671 2008-09-11 Martin Jambor <mjambor@suse.cz>
4673 * ipa-prop.h (struct ipa_param_flags): Removed.
4674 (struct ipa_param_descriptor): New structure.
4675 (struct ipa_node_params): ipcp_lattices, param_decls and
4676 param_flags moved to ipa_param_description.
4677 (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
4678 descriptors. Renamed all users.
4679 (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
4680 changed to access descriptors. Renamed all users.
4681 (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
4682 to access descriptors. Renamed all users.
4683 * ipa-cp.c (ipcp_init_cloned_node): Call
4684 ipa_initialize_node_params instead of ipa_count_formal_params and
4685 ipa_create_param_decls_array.
4686 (ipcp_analyze_node): Likewise.
4687 (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
4688 descriptors. Renamed all users.
4689 (ipcp_initialize_node_lattices): Remove allocation.
4690 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
4691 ipa_initialize_node_params instead of ipa_count_formal_params and
4692 ipa_create_param_decls_array.
4693 * ipa-prop.c (ipa_create_param_decls_array): Renamed to
4694 ipa_populate_param_decls, made static, added parameter info,
4695 renamed mt to node, removed allocation, changed to use
4697 (ipa_count_formal_params): Made static, added parameter info,
4699 (ipa_initialize_node_params): New function.
4700 (ipa_check_stmt_modifications): Changed to use descriptors.
4701 (ipa_detect_param_modifications): Removed allocation, changed to
4703 (ipa_note_param_call): Changed to use descriptors.
4704 (ipa_analyze_params_uses): Removed allocation.
4705 (ipa_free_node_params_substructures): Changed to use descriptors.
4706 (ipa_edge_duplication_hook): Use the unused attribute.
4707 (ipa_node_duplication_hook): Use the unused attribute, changed to
4708 use descriptors, changed to duplicate descriptors.
4710 * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
4711 changed all callers. Call ipa_propagate_indirect_call_infos if doing
4712 indirect inlining. Made static.
4713 (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
4714 functions called only once.
4715 (cgraph_decide_recursive_inlining): Don't call
4716 ipa_propagate_indirect_call_infos, pass new_edges to
4717 cgraph_mark_inline_edge instead.
4718 (cgraph_decide_inlining_of_small_functions): Don't call
4719 ipa_propagate_indirect_call_infos, pass new_edges to
4720 cgraph_mark_inline_edge instead.
4721 (cgraph_decide_inlining): Don't call
4722 ipa_propagate_indirect_call_infos.
4723 * ipa-prop.c: Check that vectors are allocated.
4725 * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
4726 iff a new cgraph edges have been created.
4727 (cgraph_decide_inlining): New variable redo_always_inline.
4728 Flattening and always_inlining loop until callgraph stabilizes.
4729 * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
4730 true iff new cgraph edges have been created.
4731 (propagate_info_to_inlined_callees): Likewise.
4732 (ipa_propagate_indirect_call_infos): Likewise.
4734 2008-09-11 Richard Guenther <rguenther@suse.de>
4736 * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
4737 (set_prologue_iterations): Likewise.
4738 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
4740 (vect_update_init_of_dr): Likewise.
4741 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
4743 * fold-const.c (fold_unary): Do not generate calculations
4746 2008-09-11 Paolo Bonzini <bonzini@gnu.org>
4748 * dojump.c (do_jump) [BIT_AND_EXPR]: Move below. Fall through to
4749 TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
4750 (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
4752 * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return
4754 * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
4755 VRP's simplify_stmt_using_ranges. Do simplify_stmt_using_ranges
4756 before finalizing the changes.
4757 * tree-vrp.c (extract_range_from_binary_expr): Add limited support
4759 (simplify_truth_ops_using_ranges): New.
4760 (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
4761 simplify_cond_using_ranges, simplify_switch_using_ranges): Return
4762 whether a simplification was made.
4763 (simplify_stmt_using_ranges): Ditto, and accept a GSI. For GS_ASSIGN,
4764 use a switch statement and also call simplify_truth_ops_using_ranges.
4766 2008-09-11 Jan Hubicka <jh@suse.cz>
4768 * ggc-common.c (loc_array): Make static.
4769 * dce.c (rest_of_handle_ud_dce): Free worklist.
4771 2008-09-11 Jan Hubicka <jh@suse.cz>
4773 * cgraph.c (cgraph_release_function_body): Plug memory leak on
4774 ipa_transforms_to_apply and CFG; ggc_free gimple df and struct
4775 function so we are sure we do not dangle it forever.
4776 * function.c (outer_function_chain, find_function_data): Remove.
4777 (function_context_stack): New.
4778 (push_function_context, pop_function_context): Update.
4779 * function.h (struct function): Remove pointer outer.
4780 (outer_function_chain, find_function_data): Remove.
4781 * stmt.c (force_label_rtx): Remove dead call of find_function_data.
4783 2008-09-11 Jan Hubicka <jh@suse.cz>
4786 * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
4788 2008-09-11 Jan Hubicka <jh@suse.cz>
4790 * tree-ssa-pre.c (phi_translate_1): Fix memory leak
4792 2008-09-11 Jan Hubicka <jh@suse.cz>
4794 * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
4795 (free_var_map_entry): New function.
4796 (redirect_edge_var_map_destroy): Use it.
4798 2008-09-11 Jan Hubicka <jh@suse.cz>
4801 * tree-inline.c (add_lexical_block): Replace with ...
4802 (prepend_lexical_block): ... prepend at begginig.
4803 (remap_blocks): Use it and reverse later.
4804 (expand_call_inline): Use prepend_lexical_block.
4806 2008-09-11 Jan Hubicka <jh@suse.cz>
4808 * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
4810 2008-09-11 Jan Hubicka <jh@suse.cz>
4812 * function.c (free_after_compilation): Call insn_locators_free.
4813 * cfglayout.c (insn_locators_free): New function.
4814 * rtl.h (insn_locators_free): Declare.
4816 2008-09-11 Jan Hubicka <jh@suse.cz>
4818 * ifcvt.c (check_cond_move_block): Make regs argument pointer to
4820 (cond_move_process_if_block): Update call.
4822 2008-09-11 Jan Hubicka <jh@suse.cz>
4824 * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
4825 * vec.c: Include hashtab.h
4826 (vec_descriptor, ptr_hash_entry): New structures.
4827 (vec_desc_hash, vec_ptr_map): New static variables.
4828 (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
4829 register_overhead, free_overhead, vec_heap_free): New functions.
4830 (vec_gc_o_reserve_1): ggc_free when resizing to 0.
4831 (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
4832 (cmp_statistic, add_statistics, dump_vec_loc_statistics):
4835 2008-09-11 Ira Rosen <irar@il.ibm.com>
4837 PR tree-optimization/37474
4838 * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
4839 length of load permutation.
4841 2008-09-11 Andreas Schwab <schwab@suse.de>
4843 * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
4845 2008-09-11 Jakub Jelinek <jakub@redhat.com>
4848 * expmed.c (extract_low_bits): Avoid creating invalid subregs.
4849 * dse.c (find_shift_sequence): Use extract_low_bits instead of
4850 simplify_gen_subreg.
4852 2008-09-11 Ira Rosen <irar@il.ibm.com>
4854 * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
4857 2008-09-10 Jakub Jelinek <jakub@redhat.com>
4860 * gimplify.c (gimplify_body): Call default_rtl_profile.
4863 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
4864 instead of tok->val.node if not expanding to something else. Handle
4865 intervening CPP_PADDING tokens.
4866 (altivec_categorize_keyword): Remove unneeded comparisons.
4868 2008-09-10 Richard Guenther <rguenther@suse.de>
4870 * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
4872 2008-09-10 Richard Guenther <rguenther@suse.de>
4875 * tree-inline.c (insert_init_stmt): Make sure to not
4876 insert invalid gimple stores.
4878 2008-09-10 Sebastian Pop <sebastian.pop@amd.com>
4880 PR tree-optimization/37388
4881 * toplev.c (process_options): Fail and warn when graphite
4882 flags are used, but the compiler has not been configured
4883 with graphite libraries.
4884 * graphite.c (graphite_transform_loops): Remove printfs
4885 to dump_file for the case when graphite is not available.
4887 2008-09-10 H.J. Lu <hongjiu.lu@intel.com>
4890 * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
4891 the even element into register.
4892 (ix86_expand_vector_init_general): Don't use
4893 ix86_expand_vector_init_interleave on V16QImode and V8HImode
4894 if we can't move from GPR to SSE register directly.
4896 2008-09-10 Bernd Schmidt <bernd.schmidt@analog.com>
4898 * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
4899 not lose track of the number of NOPs needed. Number of NOPs needed
4900 for sync vs. loads workaround was switched; corrected. Run second
4901 pass for all workarounds. No NOPs needed after call insns. Change
4902 second pass to use find_next_insn_start and find_load helpers in order
4903 to properly detect parallel insns.
4904 * config/bfin/bfin.md (cbranch_with_nops): Increase length.
4906 2008-09-10 Jan Hubicka <jh@suse.cz>
4908 * value-prof.c (gimple_ic): Fix tuplification bug.
4909 * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
4912 2008-09-10 Jakub Jelinek <jakub@redhat.com>
4914 PR tree-optimization/37353
4915 * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
4916 (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
4917 calls instead of cond_dead_built_in_calls.
4918 (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
4919 initalize the vector only before adding first entry. Use VEC_safe_push
4920 instead of VEC_quick_push. Pass cond_dead_built_in_calls to
4921 shrink_wrap_conditional_dead_built_in_calls call.
4923 2008-09-10 Ira Rosen <irar@il.ibm.com>
4925 PR tree-optimization/37385
4926 * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new
4927 argument, and use it as a vector type if not NULL.
4928 (vectorizable_store): Call vect_create_data_ref_ptr with the type of
4930 (vect_setup_realignment): Call vect_create_data_ref_ptr with
4931 additional argument.
4932 (vectorizable_load): Likewise.
4934 2008-09-10 Jakub Jelinek <jakub@redhat.com>
4936 * config/i386/i386.md (SWI32): New mode iterator.
4937 (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
4940 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
4942 PR rtl-optimization/37435
4943 * caller-save.c (insert_restore, insert_save): Check the mode by
4946 2008-09-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4949 * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
4951 (dw2_output_indirect_constant_1): Use unstripped name in symbol
4954 2008-09-09 Sandra Loosemore <sandra@codesourcery.com>
4956 * doc/invoke.texi (ARM Options): Correct errors in discussion
4957 of -mfloat-abi, -mhard-float, and -msoft-float.
4959 2008-09-09 Jakub Jelinek <jakub@redhat.com>
4960 Jan Hubicka <jh@suse.cz>
4963 * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
4964 calling gimple_regimplify_operands on it. Iterate over all newly
4965 added statements, not just the last one.
4966 (insert_init_stmt): Insert stmt into seq first, then call
4967 gimple_regimplify_operands on it. Don't create new gimplification
4968 context, nor find referenced vars.
4970 2008-09-09 Jakub Jelinek <jakub@redhat.com>
4973 * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
4974 to pointer to vector pointer.
4975 * ipa-prop.c (ipa_propagate_indirect_call_infos,
4976 propagate_info_to_inlined_callees): Likewise.
4977 (update_call_notes_after_inlining): Likewise. Push new indirect edge
4978 to *new_edges instead of new_edges. Reread IPA_EDGE_REF after
4979 ipa_check_create_edge_args.
4980 * ipa-inline.c (cgraph_decide_recursive_inlining): Change last
4981 argument to pointer to vector pointer.
4982 (cgraph_decide_inlining_of_small_function): Adjust
4983 cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
4987 * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when
4988 optimizing for size, not speed.
4990 PR rtl-optimization/37408
4991 * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
4992 if parm is promoted.
4994 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
4996 PR tree-optimization/37375
4997 * tree-scalar-evolution.c (scev_info_str): Add field
4999 (new_scev_info_str, eq_scev_info, find_var_scev_info,
5000 set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
5001 set_instantiated_value): Pass instantiated_below.
5002 (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls
5004 (instantiate_scev_1, instantiate_scev): Pass a basic block above which
5005 the definitions are not instantiated.
5007 * tree-scalar-evolution.h (instantiate_scev): Update declaration.
5008 (block_before_loop): New.
5009 * tree-data-ref.c (dr_analyze_indices): Update uses of
5011 * graphite.c (block_before_scop): New.
5012 (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
5013 basic block, not a loop for determining the parameters.
5014 (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
5016 (idx_record_params, find_params_in_bb, find_scop_parameters,
5017 build_loop_iteration_domains, add_conditions_to_domain): Update calls
5018 to instantiate_scev.
5020 * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
5022 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
5026 * ira-build.c (ira_create_allocno): Setup frequency to 0.
5028 * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
5029 Check zero freq and increase if necessary.
5031 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
5033 * ira-conflicts.c (process_regs_for_copy): Check that the hard
5034 regno is in the right range. Add comments.
5036 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5038 * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
5040 * mips-tfile.c (copy_object): Cast alloca result to int *.
5041 * mips-tdump.c (print_symbol): Cast xmalloc return values to
5043 Rename class to sclass.
5044 (read_tfile): Cast read_seek return values to proper types.
5045 Cast xcalloc return value to proper type.
5047 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5049 * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
5050 * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
5051 * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
5053 2008-09-09 Jan Hubicka <jh@suse.cz>
5055 * profile.c (is_edge_inconsistent): Add debug output; ignore
5056 negative count on fake edges.
5057 (is_inconsistent): Add debug output.
5059 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
5061 * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
5063 (choose_ready): When first insn is chosen from the ready list, also
5066 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
5068 PR rtl-optimization/37360
5069 * haifa-sched.c (max_issue): Do not assert that we never issue more
5070 insns than issue_rate. Add comment.
5072 2008-09-09 Richard Guenther <rguenther@suse.de>
5074 * tree-cfg.c (verify_types_in_gimple_op): Remove.
5075 (verify_types_in_gimple_call): Rename to ...
5076 (verify_gimple_call): ... this. Enhance.
5077 (verify_types_in_gimple_cond): Remove.
5078 (verify_gimple_comparison): New function ...
5079 (verify_types_in_gimple_assign): ... split out from here.
5080 (verify_types_in_gimple_return): Rename to ...
5081 (verify_gimple_return): ... this. Enhance.
5082 (verify_types_in_gimple_switch): Rename to ...
5083 (verify_gimple_switch): ... this. Enhance.
5084 (verify_gimple_goto): New function.
5085 (verify_types_in_gimple_phi): Rename to ...
5086 (verify_gimple_phi): ... this. Enhance.
5087 (verify_types_in_gimple_stmt): Adjust calls to helper functions.
5088 Fold in single-statement cases from verify_types_in_gimple_seq_2.
5089 (verify_types_in_gimple_seq_2): Remove cases handled in
5090 verify_types_in_gimple_stmt.
5092 2008-09-09 Bernd Schmidt <bernd.schmidt@analog.com>
5094 * config/bfin/bfin.c (n_regs_to_save): New static variable.
5095 (push_multiple_operation, pop_multiple_operation): Set it.
5096 (workaround_rts_anomaly): New function.
5097 (workaround_speculation): New function, broken out of bfin_reorg.
5098 (bfin_reorg): Call the new functions.
5100 2008-09-09 Richard Guenther <rguenther@suse.de>
5104 * gimplify.c (gimplify_conversion): Change conversions of
5105 non-register type to VIEW_CONVERT_EXPRs.
5106 (gimplify_addr_expr): If we need to make the operand
5107 addressable make sure to use a properly initialized
5108 temporary for that so it gets a valid gimple store.
5110 2008-09-09 Aldy Hernandez <aldyh@redhat.com>
5112 * function.h (struct function): Add function_start_locus.
5113 * cfgexpand.c (gimple_expand_cfg): Use it.
5114 * c-parser.c (c_parser_declaration_or_fndef): Set it.
5116 2008-09-09 Richard Guenther <rguenther@suse.de>
5118 PR tree-optimization/37433
5119 * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
5122 2008-09-09 Richard Guenther <rguenther@suse.de>
5124 PR tree-optimization/37387
5125 * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
5126 and bits to a common type.
5128 2008-09-09 Nick Clifton <nickc@redhat.com>
5130 * config/v850/v850.md (return): Restore frame size restriction.
5132 2008-09-09 Paolo Bonzini <bonzini@gnu.org>
5134 * c-common.c (c_expand_decl): Remove.
5135 * c-common.h (anon_aggr_type_p): Remove prototype.
5136 (DECL_ANON_UNION_ELEMS): Remove.
5137 * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
5138 * c-decl.c (anon_aggr_type_p): Remove.
5139 * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
5140 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
5141 * langhooks.h (struct lang_hooks): Remove expand_decl.
5142 * langhooks.c (lhd_expand_decl): Remove.
5143 * stmt.c (expand_anon_union_decl): Remove.
5144 * tree.h (expand_anon_union_decl): Remove prototype.
5146 2008-08-09 Andy Hutchinson <hutchinsonandy@aim.com>
5149 * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
5151 * config/avr/avr.md (QISI) : Define mode iterator.
5152 (negated_tst<mode>) : Redefine as split using mode macro.
5153 (reversed_tstqi): Define insn as reversed compare with zero.
5154 (reversed_tsthi): Ditto.
5155 (reversed_tstsi): Ditto.
5157 2008-09-08 Jakub Jelinek <jakub@redhat.com>
5160 * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
5161 call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
5164 * predict.c (optimize_function_for_size_p): Don't segfault if
5166 * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
5167 tree_swap_operands_p): Don't test cfun != NULL before calling
5168 optimize_function_for_s*_p.
5170 2008-09-08 Eric Botcazou <ebotcazou@adacore.com>
5172 * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
5175 2008-09-08 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
5177 * crx/crx.h (IRA_COVER_CLASSES): Define.
5179 2008-09-08 Jakub Jelinek <jakub@redhat.com>
5182 * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
5183 even when a stmt has been gimple_modified_p, but after fold_stmt is
5184 not any longer. Remove unneeded may_have_exposed_new_symbols
5187 2008-09-08 Richard Guenther <rguenther@suse.de>
5189 PR tree-optimization/37421
5190 * tree-ssa-sccvn.c (visit_copy): Make sure to fully
5193 2008-09-08 Jakub Jelinek <jakub@redhat.com>
5196 * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
5198 2008-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5201 * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
5202 * pa-hpux10.h (LINK_SPEC): Likewise.
5203 * pa-hpux11.h (LINK_SPEC): Likewise.
5205 2008-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5207 * pa32-regs.h (IRA_COVER_CLASSES): Define.
5208 * pa64-regs.h (IRA_COVER_CLASSES): Define.
5210 2008-09-07 Helge Deller <deller@gmx.de>
5212 * pa/linux-atomic.c: New file.
5213 * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
5214 * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
5216 2008-09-07 Richard Guenther <rguenther@suse.de>
5217 Ira Rosen <irar@il.ibm.com>
5219 PR tree-optimization/36630
5220 * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
5221 Call STRIP_NOPS before calling evolution_part_in_loop_num.
5223 2008-09-07 Dorit Nuzman <dorit@il.ibm.com>
5224 Ira Rosen <irar@il.ibm.com>
5226 PR tree-optimization/35642
5227 * config/rs6000/altivec.md (mulv8hi3): Implement.
5229 2008-09-06 Jeff Law <law@redhat.com>
5231 * h8300/h8300.h (IRA_COVER_CLASSES): Define.
5233 2008-09-06 Jan Hubicka <jh@suse.cz>
5235 PR tree-optimization/14703
5236 * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
5238 * passes.c (init_optimization_passes): Recompute inline parameters.
5240 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
5242 * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
5245 2008-09-06 Richard Sandiford <rdsandiford@goolemail.com>
5246 Peter Fuerst <post@pfrst.de>
5248 * doc/invoke.texi: Document -mr10k-cache-barrier=.
5249 * doc/extend.texi: Document __builtin_mips_cache.
5250 * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
5251 * config/mips/mips.opt (mr10k-cache-barrier=): New option.
5252 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
5253 __GCC_HAVE_BUILTIN_MIPS_CACHE.
5254 (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
5255 * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
5256 (set_push_mips_isas): New variable.
5257 (mips_r10k_cache_barrier): New variable.
5258 (cache): New availability predicate.
5259 (mips_builtins): Add an entry for __builtin_mips_cache.
5260 (mips_build_cvpointer_type): New function.
5261 (MIPS_ATYPE_CVPOINTER): New macro.
5262 (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
5264 (r10k_simplified_address_p, r10k_simplify_address)
5265 (r10k_uncached_address_p, r10k_safe_address_p)
5266 (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
5267 (r10k_needs_protection_p_call, r10k_needs_protection_p)
5268 (r10k_insert_cache_barriers): New functions.
5269 (mips_reorg_process_insns): Delete cache barriers after a
5270 branch-likely instruction.
5271 (mips_reorg): Call r10k_insert_cache_barriers.
5272 (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
5273 * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
5274 (UNSPEC_R10K_CACHE_BARRIER): Likewise.
5275 (mips_cache, r10k_cache_barrier): New define_insns.
5277 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
5279 * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
5280 * ira-color.c (setup_allocno_left_conflicts_num): Use
5281 hard_reg_set_equal_p instead of a comparison with
5282 ira_zero_hard_reg_set.
5283 * ira.c (setup_reg_subclasses): Likewise.
5284 (setup_cover_and_important_classes): Likewise.
5285 (setup_class_translate): Likewise.
5286 (setup_reg_class_intersect_union): Likewise.
5287 (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
5288 (ira_init_once): Don't initialize them.
5290 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
5292 * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
5294 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
5296 * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
5298 2008-09-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
5300 Improved branch hints, safe hints, and scheduling.
5302 * haifa-sched.c (sched_emit_insn) : Define.
5303 * sched-int.h (sched_emit_insn) : Add prototype.
5304 * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
5305 -mhint-max-distance -msafe-hints) : Document.
5306 * config/spu/spu.c (spu_flag_var_tracking): New.
5307 (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
5308 TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
5309 TARGET_ASM_FILE_START): Define.
5310 (TARGET_SCHED_ADJUST_PRIORITY): Remove.
5311 (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
5312 (spu_emit_branch_hint): Add blocks argument.
5313 (insert_branch_hints, insert_nops): Remove.
5314 (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
5315 uses_ls_unit, spu_sched_init_global, spu_sched_init,
5316 spu_sched_reorder, asm_file_start): New functions.
5317 (clock_var, spu_sched_length, pipe0_clock,
5318 pipe1_clock, prev_clock_var, prev_priority,
5319 spu_ls_first, prev_ls_clock): New static variables.
5320 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
5321 * config/spu.md (iprefetch): Add operand, make it clobber MEM.
5322 (nopn_nv): Add a non-volatile version of nop.
5323 * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
5324 -mhint-max-distance, -msafe-hints): New options.
5326 2008-09-05 Janis Johnson <janis187@us.ibm.com>
5327 Samuel Tardieu <sam@rfc1149.net>
5329 * opts.c (decode_options): Combine nested if statements.
5332 * opts.c (decode_options): Handle more relationships among
5333 unit-at-a-time, toplevel-reorder, and section-anchors.
5335 2008-09-05 David Daney <ddaney@avtrex.com>
5337 * doc/install.texi (--enable-reduced-reflection): Document new option.
5339 2008-09-05 Bob Wilson <bob.wilson@acm.org>
5341 * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
5343 (constantpool_operand): New.
5344 (move_operand): Disallow sub-word modes for the constant pool.
5345 * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
5346 (xtensa_secondary_reload_class): Replace with....
5347 (xtensa_secondary_reload): this function. Remove SIGN_EXTEND check.
5348 Set icode for sub-word reloads from the constant pool.
5349 * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
5350 (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
5351 * config/xtensa/xtensa.md (reload<mode>_literal): New.
5352 * config/xtensa/xtensa-protos.h: Update prototypes.
5354 2008-09-05 Joseph Myers <joseph@codesourcery.com>
5356 * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
5357 (REG_CLASS_NAMES): Update.
5358 (REG_CLASS_CONTENTS): Update.
5359 * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
5360 of ALL_REGS for regs 77 and 78.
5361 * function.c (instantiate_virtual_regs_in_insn): Assert that
5362 return value of simplify_gen_subreg is not NULL.
5364 2008-09-05 Paolo Bonzini <bonzini@gnu.org>
5366 * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
5367 (gen_rtvec_v): Fix coding standards.
5369 2008-09-04 Jan Hubicka <jh@suse.cz>
5371 * i386.c (decide_alg): Be more conservative about optimizing for size.
5373 2008-09-04 Ian Lance Taylor <iant@google.com>
5375 * varasm.c (narrowing_initializer_constant_valid_p): New
5377 (initializer_constant_valid_p): Call it.
5379 2008-09-04 Jeff Law <law@redhat.com>
5381 * fold-const.c (native_encode_real): Fix computation of WORDS.
5382 (native_interpret_real): Likewise.
5384 2008-09-04 Janis Johnson <janis187@us.ibm.com>
5386 * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
5388 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
5390 * ira-conflicts.c (process_regs_for_copy): Check insn to check
5391 that the cost is already taken into account in ira-costs.c
5393 * ira-int.h (ira_debug_copy, ira_debug_copies): New.
5395 * ira-build.c (print_copy, print_copies, ira_debug_copy,
5396 ira_debug_copies): New.
5397 (ira_bulid): Call print_copies.
5399 * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
5401 2008-09-04 Samuel Tardieu <sam@rfc1149.net>
5404 * config/rs6000/rs6000.c (optimization_options): Remove check of
5405 flag_toplevel_order.
5407 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
5409 * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
5410 * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
5411 second operand is a reg_imm10_operand.
5412 * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
5413 *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
5414 (*seq_<GPR:mode><GPR2:mode>): Rename to
5415 *seq_zero_<GPR:mode><GPR2:mode>. Don't match if
5417 (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
5418 *seq_zero_<GPR:mode><GPR2:mode>_mip16. Don't match if
5420 (*sne_<GPR:mode><GPR2:mode>): Rename to
5421 *sne_zero_<GPR:mode><GPR2:mode>. Don't match if
5424 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
5426 * config/mips/mips.h (ISA_HAS_EXTS): New macro.
5427 * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
5428 combining an arithmetic right shift by more than 31 and a
5429 trunction. Don't match for out-of-range shift amounts. Set
5430 attribute mode to <MODE>.
5431 (*lshr32_trunc<mode>): Name the pattern combining a logical right
5432 shift by 32 and and a truncation. Set attribute mode to <MODE>.
5433 (*<optab>_trunc<mode>_exts): New pattern for truncated right
5434 shifts by less than 32.
5435 (extv): Change predicate on first operand to accept registers.
5436 Change predicate of the other operands from immediate_operand to
5437 const_int_operand. Expand exts when source is a register.
5438 (extzv): Change predicate of the constant operands from
5439 immediate_operand to const_int_operand.
5440 (extzv<mode>): Change predicate of the constant operands from
5441 immediate_operand to const_int_operand and no constraint. Also
5443 (*extzv_trunc<mode>_exts): New pattern.
5445 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
5447 * config/mips/mips.h (ISA_HAS_CINS): New macro.
5448 * config/mips/mips-protos.h (mask_low_and_shift_p,
5449 mask_low_and_shift_len): Declare.
5450 * config/mips/mips.c (mask_low_and_shift_p,
5451 mask_low_and_shift_len): New functions.
5452 (mips_print_operand): Handle new operand prefix "m".
5453 * config/mips/mips.md (*cins<mode>): New pattern.
5455 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
5457 * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
5458 optimizing for size.
5460 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
5462 * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
5463 regardless of epilogue_completed.
5465 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
5468 * ira-lives.c (process_bb_node_lives): Check setjmp.
5470 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
5473 * ira-build.c (form_loop_tree): Reverse BB walk.
5474 (create_bb_allocnos): Likewise.
5475 * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
5476 (mark_reg_store): Rename to...
5477 (mark_ref_live): ...this and take a df_ref argument instead of
5478 note_stores arguments. Assert that we have a register.
5479 (mark_reg_clobber): Delete.
5480 (def_conflicts_with_inputs_p): New function.
5481 (mark_reg_conflicts): Delete.
5482 (mark_reg_death): Rename to...
5483 (mark_ref_dead): ...this and take a df_ref argument instead of
5484 a register. Assert that we have a register.
5485 (process_bb_node_lives): Hoist frequency calculation out of
5486 instruction walk. Convert from a forwards scan to a backwards scan.
5487 Use DF_REF_USES and DF_REF_DEFS instead of register notes and
5488 note_stores. Remove EH_RETURN_DATA_REGNO and regs_set handling.
5489 (create_allocno_live_ranges): Don't create regs_set.
5491 2008-09-04 Ian Lance Taylor <iant@google.com>
5493 * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
5494 or REG_LABEL_TARGET.
5495 * calls.c (emit_library_call_value_1): Use MEM_P rather than
5496 comparing MODE with MEM.
5497 * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
5498 comparing with GF_PREDICT_TAKEN.
5499 (gimple_get_lhs): Change code to enum gimple_code.
5500 (gimple_set_lhs): Likewise.
5501 * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
5502 * omp-low.c (find_omp_clause): Change kind parameter to enum
5504 * tree-flow.h (find_omp_clause): Update declaration.
5505 * regrename.c (clear_dead_regs): Change kind parameter to enum
5507 * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
5509 * see.c (see_get_extension_data): Change return type to enum
5510 entry_type. Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
5511 SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
5512 (see_gen_normalized_extension): Change extension_code parameter to
5514 (see_seek_pre_extension_expr): Change extension_code to enum
5516 (see_merge_one_def_extension): Likewise.
5517 (see_handle_relevant_defs): Likewise.
5518 (see_handle_relevant_uses): Likewise.
5519 (see_analyze_one_def): Likewise.
5520 * tree-cfg.c (need_fake_edge_p): Compare gimple code with
5521 GIMPLE_ASM rather than ASM_EXPR.
5522 * tree-ssa-alias.c (is_escape_site): Compare gimple code with
5523 GIMPLE_RETURN rather than RETURN_EXPR.
5524 * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
5525 (evaluate_stmt): Likewise.
5526 * tree-vect-analyze.c (vect_analyze_operations): Change relevance
5527 to enum vect_relevant.
5528 (vect_mark_stmts_to_be_vectorized): Change assertion to not
5529 compare gimple codes with tree codes.
5531 2008-09-04 Paul Brook <paul@codesourcery.com>
5533 * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
5535 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
5537 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
5538 pointer check lost in the recent no-unit-at-a-time patch.
5540 2008-09-04 Jan Hubicka <jh@suse.cz>
5543 * tree-switch-conversion.c (check_final_bb): Accept only IP
5546 2008-09-04 Jan Hubicka <jh@suse.cz>
5548 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
5550 (vrp_evaluate_conditional_warnv_with_ops): ... this one. Add
5551 using_ranges argument.
5552 (vrp_evaluate_conditional): Avoid bogus warning for type range.
5553 (vrp_visit_cond_stmt): Update call of
5554 vrp_evaluate_conditional_warnv_with_ops
5556 2008-09-04 Jan Hubicka <jh@suse.cz>
5558 PR tree-optimization/37345
5559 PR tree-optimization/37358
5560 PR tree-optimization/37357
5561 * tree.c (build_function_type_skip_args): Build distinct type copy;
5563 (build_function_decl_skip_args): Set type of new decl not orig decl;
5564 clear DECL_VINDEX for methods turned into functions.
5566 2008-09-04 Nick Clifton <nickc@redhat.com>
5568 * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
5569 * configure: Regenerate.
5570 * config.in: Regenerate.
5571 * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
5572 alignment field, if it is supported.
5574 2008-09-04 Kai Tietz <kai.tietz@onevision.com>
5576 * config/i386/t-mingw32 (SHLIB_LC): Change order of import
5579 2008-09-03 David Edelsohn <edelsohn@gnu.org>
5581 * config/rs6000/rs6000.c (processor_target_table): Do not
5582 enable VMX for POWER6.
5584 2008-09-03 Anton Blanchard <anton@samba.org>
5586 * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
5587 emit memory barrier before operation.
5589 2008-09-03 John David Anglin <dave.anglin@nrc.cnrc.gc.ca>
5592 * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
5593 default_elf_asm_output_external.
5595 2008-09-03 Jeff Law <law@redhat.com>
5597 * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
5599 2008-09-03 Richard Henderson <rth@redhat.com>
5601 * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
5602 memory barrier to below the test-and-set.
5603 (alpha_split_lock_test_and_set_12): Likewise.
5605 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
5609 * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
5612 * ira-color.c (print_loop_title): Use all_allocnos.
5613 (color_pass): Ditto. Don't add border_allocnos. Check that
5614 subloop allocno in the correspdoning bitmap all_allocnos.
5616 * ira-emit.c (change_loop): Use all_allocnos.
5618 * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node): Ditto.
5619 (ira_create_allocno): Set up all_allocnos bit for the created allocno.
5620 (create_cap_allocno): Remove setting mentioned_allocnos.
5621 (create_insn_allocnos): Ditto.
5622 (remove_unnecessary_allocnos): Use all_allocnos.
5623 (check_allocno_creation): Check that allocnos are in the
5624 corresponding bitmap all_allocnos.
5626 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
5630 * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
5631 (process_regs_for_copy): Process subregs. Refine check when cost
5632 is taken into account in ira-costs.c.
5633 (process_reg_shuffles): Use REG_SUBREG_P.
5634 (add_insn_allocno_copies): Ditto. Ignore modes.
5636 * ira-color.c (conflict_allocno_vec): New.
5637 (COST_HOP_DIVISOR): New macro.
5638 (update_copy_costs_1): Use it.
5639 (update_conflict_hard_regno_costs): New function.
5640 (assign_hard_reg): Use it.
5641 (ira_color): Allocate and free conflict_allocno_vec.
5643 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
5647 * ira-int.h (ira_sort_insn_chain): Remove.
5649 * ira.c (basic_block_order_nums, chain_insn_order,
5650 chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
5651 (ira): Don't call ira_sort_insn_chain.
5653 * reload1.c (reload): Don't call ira_sort_insn_chain.
5655 2008-09-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
5658 * cgraphunit.c (update_call_expr): Remove eh regions from statements
5659 which become non throw.
5660 (cgraph_function_versioning): Also clear DECL_WEAK. Call
5661 update_call_expr after updating the flags on the decl.
5663 2008-09-03 Jan Hubicka <jh@suse.cz>
5665 PR tree-optimization/37315
5666 * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
5667 * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
5668 (cgraph_analyze_functions): Use node->analyzed
5669 (cgraph_mark_functions_to_output): Likewise.
5670 (cgraph_expand_function): All functions can be released after
5672 (cgraph_optimize): Use gimple_has_body_p.
5673 * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
5674 (cgraph_decide_inlining_incrementally): Likewise.
5675 (inline_transform): Inline transform.
5676 * tree-inline.c (initialize_cfun): Do now shallow copy structure;
5678 (inlinable_function_p): Drop gimple_body check.
5679 (expand_call_inline): Use gimple_has_body_p.
5680 * gimple.c (gimple_has_body_p): New.
5681 * gimple.h (gimple_has_body_p): Add prototype.
5682 * tree-cfg.c (execute_build_cfg): Remove gimple_body.
5683 (dump_function_to_file): Use gimple_has_body_p check.
5685 2008-09-03 Jakub Jelinek <jakub@redhat.com>
5688 * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
5690 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
5692 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
5694 From Michael Frysinger <michael.frysinger@analog.com>
5695 * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
5696 bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549. Add 0.2
5699 2008-09-03 Hari Sandanagobalane <hariharan@picochip.com>
5702 * doc/extend.texi: Document picoChip builtin functions.
5703 * doc/invoke.texi: Document picoChip options.
5704 * doc/contrib.texi: Add picoChip contribution.
5705 * doc/md.texi: Document picoChip constraints.
5706 * config.gcc: Add picochip-*-*.
5707 * config/picochip/: Add new port.
5709 2008-09-03 Richard Guenther <rguenther@suse.de>
5711 PR tree-optimization/37328
5712 * tree-sra.c (sra_build_assignment): Gimplify properly.
5713 (generate_copy_inout): Take the correct stmt as definition,
5714 remove bogus assert.
5716 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
5718 * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
5721 From Michael Frysinger <michael.frysinger@analog.com>
5722 * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
5724 2008-09-03 Danny Smith <dannysmith@usrs.sourceforge.net>
5726 * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
5727 (__gthread_setspecific): Revert 2008-08-31 change to
5728 __GTHREAD_HIDE_W32API case. Apply it to !__GTHREAD_HIDE_W32API case.
5730 2008-09-02 Aldy Hernandez <aldyh@redhat.com>
5732 * diagnostic.c (error_at): New.
5733 * toplev.h (error_at): New prototype.
5734 * c-typeck.c (build_array_ref): Call error_at instead of error.
5735 Pass location to pedwarn.
5737 2008-09-02 Adam Nemet <anemet@caviumnetworks.com>
5739 * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
5741 2008-09-02 Jakub Jelinek <jakub@redhat.com>
5743 * dwarf2out.c (tree_add_const_value_attribute): Only handle
5744 VAR_DECL and CONST_DECL.
5746 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
5747 Jakub Jelinek <jakub@redhat.com>
5749 * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
5750 (setup_incoming_varargs_64): Assume cum != NULL. Set/check
5751 ix86_varargs_gpr_size and ix86_varargs_fpr_size. Use
5752 ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
5753 Don't set ix86_save_varrargs_registers.
5754 (ix86_setup_incoming_varargs): Assume cum != NULL.
5755 (ix86_va_start): Check ix86_varargs_gpr_size and
5756 ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
5757 cfun->va_list_fpr_size, respectively. Subtract 8*X86_64_REGPARM_MAX
5758 from frame pointer if ix86_varargs_gpr_size == 0.
5759 (ix86_compute_frame_layout): Updated.
5760 * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
5761 (ix86_varargs_gpr_size): Define.
5762 (ix86_varargs_fpr_size): Likewise.
5763 (machine_function): Remove save_varrargs_registers.
5764 Add varargs_gpr_size and varargs_fpr_size.
5766 2008-09-02 Jakub Jelinek <jakub@redhat.com>
5768 * config/alpha/alpha.c (va_list_skip_additions,
5769 alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
5770 (alpha_gimplify_va_arg): Call unshare_expr on second use of
5773 PR tree-optimization/36766
5774 * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
5775 for already removed basic blocks.
5778 * real.c (real_maxval): Clear a lower bit to make real_maxval
5779 match get_max_float for IBM long double format.
5781 2008-09-02 Andreas Schwab <schwab@suse.de>
5783 * configure.ac: Use m4_quote to quote the expansion of m4_do.
5784 * configure: Regenerate.
5786 2008-09-02 Richard Sandiford <rdsandiford@googlemail.com>
5788 * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
5789 SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
5790 checking for a non-VOID CONSTANT_P.
5792 2008-09-02 Jan Hubicka <jh@suse.cz>
5794 * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
5795 * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
5798 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
5800 * expr.c (emit_group_store): Don't assert stack temp mode size.
5802 2008-09-02 Sebastian Pop <sebastian.pop@amd.com>
5803 Tobias Grosser <grosser@fim.uni-passau.de>
5804 Jan Sjodin <jan.sjodin@amd.com>
5805 Harsha Jagasia <harsha.jagasia@amd.com>
5806 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5807 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5808 Adrien Eliche <aeliche@isty.uvsq.fr>
5810 Merge from graphite branch.
5813 * tree-loop-linear.c (perfect_loop_nest_depth): Export.
5814 * doc/invoke.texi (-floop-block, -floop-interchange,
5815 -floop-strip-mine): Document new flags.
5816 * tree-into-ssa.c (gimple_vec): Moved...
5817 * tree-loop-distribution.c (rdg_component): Moved...
5818 * cfgloopmanip.c: Include tree-flow.h.
5819 (update_dominators_in_loop): New.
5820 (create_empty_if_region_on_edge): New.
5821 (create_empty_loop_on_edge): New.
5822 (loopify): Use update_dominators_in_loop.
5823 * tree-pass.h (pass_graphite_transforms): Declared.
5824 * configure: Regenerate.
5825 * tree-phinodes.c (make_phi_node): Export.
5826 (add_phi_node_to_bb): New, split from create_phi_node.
5827 * tree-chrec.c (for_each_scev_op): New.
5828 * tree-chrec.h (for_each_scev_op): Declared.
5829 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
5830 (remove_statement): Call get_phi_with_result.
5831 * config.in (HAVE_cloog): Undef.
5832 * gdbinit.in (pgg): New.
5833 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
5834 * tree-ssa-loop.c (graphite_transforms): New.
5835 (gate_graphite_transforms): New.
5836 (pass_graphite_transforms): New.
5837 * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
5838 HAVE_cloog): Defined.
5839 * tree-vectorizer.c (rename_variables_in_bb): Export.
5840 * tree-data-ref.c (dr_may_alias_p): Export.
5841 (stmt_simple_memref_p): New.
5842 (find_data_references_in_stmt): Export.
5843 (find_data_references_in_loop): Export.
5844 (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
5845 (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
5846 (create_rdg_vertices): Export.
5847 (build_empty_rdg): New.
5848 (build_rdg): Call build_empty_rdg. Free dependence_relations.
5849 * tree-data-ref.h (rdg_component): ... here.
5851 (struct data_reference): Add a field scop.
5853 (find_data_references_in_loop): Declared.
5854 (find_data_references_in_stmt): Declared.
5855 (create_rdg_vertices): Declared.
5856 (dr_may_alias_p): Declared.
5857 (stmt_simple_memref_p): Declared.
5858 (struct rdg_edge): Add a field ddr_p relation.
5859 (build_empty_rdg): Declared.
5860 * lambda.h (lambda_matrix): Declare a VEC of.
5861 (find_induction_var_from_exit_cond): Declared.
5862 (lambda_vector_compare): New.
5863 * common.opt (fgraphite, floop-strip-mine,
5864 floop-interchange, floop-block): New flags.
5865 * lambda-code.c (find_induction_var_from_exit_cond): Export.
5866 * cfgloop.c (is_loop_exit): New.
5867 * cfgloop.h (is_loop_exit): Declared.
5868 (create_empty_if_region_on_edge): Declared.
5869 (create_empty_loop_on_edge): Declared.
5870 * tree-flow.h (add_phi_node_to_bb): Declared.
5871 (make_phi_node): Declared.
5872 (rename_variables_in_bb): Declared.
5873 (perfect_loop_nest_depth): Declared.
5874 (graphite_transform_loops): Declared.
5875 * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
5876 (graphite.o-warn): Add -Wno-error.
5877 (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
5878 (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
5879 (INCLUDES): Add PPLINC, CLOOGINC.
5880 (OBJS-common): Add graphite.o.
5881 (graphite.o): Add rule.
5882 * gimple.h (gimple_vec): ... here.
5883 * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
5884 * passes.c (init_optimization_passes): Schedule
5885 pass_graphite_transforms.
5887 2008-09-02 Samuel Tardieu <sam@rfc1149.net>
5890 * opts.c (decode_options): Move processing of -fno-unit-at-a-time
5891 and -fno-toplevel-reorder after handle_options.
5893 2008-09-02 Paul Brook <paul@codesourcery.com>
5895 * config/arm/arm.c (arm_tune_cortex_a9): Define.
5896 (arm_override_options): Set arm_tune_cortex_a9.
5897 (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
5898 (arm_issue_rate): Handle cortexa9.
5899 * config/arm/arm.h (arm_tune_cortex_a9): Declare.
5900 * config/arm/arm-cores.def: Add cortex-a9.
5901 * config/arm/arm-tune.md: Regenerate.
5902 * config/arm/arm.md: Include cortex-a9.md.
5903 (generic_sched, generic_vfp): Add cortexa9.
5904 * config/arm/cortex-a9.md: New file.
5906 2008-09-02 Richard Guenther <rguenther@suse.de>
5908 PR tree-optimization/37327
5909 * tree-vrp.c (register_new_assert_for): Make sure to not have
5910 TREE_OVERFLOW set on the bound.
5912 2008-09-02 Alexander Monakov <amonakov@ispras.ru>
5914 Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
5916 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
5917 * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
5920 2008-09-02 Victor Kaplansky <victork@il.ibm.com>
5922 * gcc/config/spu/spu.md (divdf3): Removed.
5924 2008-09-02 Jakub Jelinek <jakub@redhat.com>
5926 PR tree-optimization/37095
5927 * cgraph.c (cgraph_node): When creating new cgraph node after
5928 assembler_name_hash has been populated, record it in the hash
5931 2008-09-01 Paul Brook <paul@codesourcery.com>
5933 * doc/invoke.texi: Document -mword-relocations.
5934 * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
5935 * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
5936 * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
5937 * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
5938 (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
5939 (arm_emit_movpair): New function.
5940 (arm_print_operand <c>): Handle sybolic addresses.
5941 * config/arm/arm.h (TARGET_USE_MOVT): Define.
5942 (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
5943 * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
5944 * config/arm/arm.opt: Add -mword-relocations.
5945 * config/arm/arm.md (movsi): Use arm_emit_movpair.
5946 (arm_movt, arm_movw): New.
5948 2008-09-01 Paul Brook <paul@codesourcery.com>
5950 * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
5951 Allow Interworking on ARMv4 EABI based targets.
5952 * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
5953 (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
5955 2008-09-01 Paul Brook <paul@codesourcery.com>
5957 * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
5958 optimized LT0 test. Remove optimization for GT.
5960 2008-09-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5962 * pa64-hpux.h (LIB_SPEC): Link against librt when building static
5963 openmp applications.
5964 * pa-hpux11.h (LIB_SPEC): Likewise.
5966 * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS
5969 2008-09-01 Jan Hubicka <jh@suse.cz>
5971 * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
5972 present, use only counts; when guessed use only frequencies.
5973 (estimate_bb_frequencies): Use function_frequency.
5974 * profile.c (compute_branch_probabilities): Exit early when
5975 profile reading failed. Set profile_status.
5976 (branch_prob): Do not set profile_status.
5978 2008-09-01 Aldy Hernandez <aldyh@redhat.com>
5980 * tree.c (protected_set_expr_location): New.
5981 * tree.h (protected_set_expr_location): New prototype.
5982 * c-tree.h (build_array_ref): Add argument.
5983 (parser_build_unary_op): Same.
5984 * c-typeck.c (build_indirect_ref): Handle new location argument.
5985 (build_array_ref): Same.
5986 (parser_build_unary_op): Same.
5987 * gimplify.c (gimplify_asm_expr): Set input_location before calling
5989 * c-omp.c (c_finish_omp_atomic): Pass location when calling
5991 * c-common.c (finish_label_address_expr): Handle new location argument.
5992 * c-common.h (build_indirect_ref): Add argument.
5993 (finish_label_address_expr): Same.
5994 * c-parser.c (c_parser_unary_expression): Pass location to build
5996 (c_parser_postfix_expression): Same.
5998 2008-09-01 Paul Brook <paul@codesourcery.com>
6000 * config/arm/arm.md: Include cortex-r4f.md.
6001 (attr fpu): Update type list.
6002 (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
6003 fconstd, fcmps and fcmpd.
6004 (attr tune_cortexr4): Define.
6005 (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
6006 * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
6007 fconsts, fconstd, fcmps and fcmpd. Use them in insn patterns.
6008 * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
6009 * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
6010 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
6011 cortex_a8_vfp_farith: Ditto.
6012 * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
6013 * config/arm/cortex-r4.md: Use tune_cortexr4.
6014 * config/arm/cortex-r4f.md: New file.
6016 2008-09-01 Richard Guenther <rguenther@suse.de>
6018 PR tree-optimization/37305
6019 * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
6020 the result of constant conversions.
6021 (fold_gimple_assign): Likewise.
6023 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
6025 * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
6026 #ifdef ENABLE_CHECKING.
6028 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
6030 * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
6031 * sched-int.h (print_insn, print_pattern, print_value): Declare also
6032 when !INSN_SCHEDULING.
6034 2008-09-01 Andreas Schwab <schwab@suse.de>
6036 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
6038 2008-09-01 Paul Brook <paul@codesourcery.com>
6040 * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
6042 2008-09-01 Jan Hubicka <jh@suse.cz>
6044 * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
6046 * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
6048 * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
6049 * gimplify.c (gimplify_init_constructor): Add speed operand.
6050 * tree-sra.c (decide_block_copy): Likewise.
6051 * tree-inline.c (estimate_move_cost): Likewise.
6052 * config/alpha/alpha.h (MOVE_RATIO): Update.
6053 * config/frv/frv.c (MOVE_RATIO): Update.
6054 * config/spu/spu.h (MOVE_RATIO): Update.
6055 * config/sparc/sparc.h (MOVE_RATIO): Update.
6056 * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
6057 * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
6058 * config/cris/cris.h (MOVE_RATIO): Update.
6059 * config/mn10300/mn10300.h (MOVE_RATIO): Update.
6060 * config/arm/arm.h (MOVE_RATIO): Update.
6061 * config/pa/pa.md: Update uses of MOVE_RATIO
6062 * config/pa/pa.h (MOVE_RATIO): Update.
6063 * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
6064 CLEAR_RATIO, SET_RATIO): Update.
6065 * config/h8300/h8300.h (MOVE_RATIO): Update.
6066 * config/v850/v850.h (MOVE_RATIO): Update.
6067 * config/bfin/bfin.h (MOVE_RATIO): Update.
6069 2008-08-31 Andrey Belevantsev <abel@ispras.ru>
6070 Dmitry Melnik <dm@ispras.ru>
6071 Dmitry Zhurikhin <zhur@ispras.ru>
6072 Alexander Monakov <amonakov@ispras.ru>
6073 Maxim Kuvyrkov <maxim@codesourcery.com>
6075 * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
6076 sel-sched-dump.c, sel-sched-ir.c: New files.
6077 * Makefile.in (OBJS-common): Add selective scheduling object files.
6078 (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
6079 (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
6080 (sched-vis.o): Add dependency on $(INSN_ATTR_H).
6081 * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
6082 * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
6083 (make_forwarder_block): Update loop latch if we have redirected
6084 the loop latch edge.
6085 * cfgloop.c (get_loop_body_in_custom_order): New function.
6086 * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
6087 (CP_FALLTHRU_PREHEADERS): Likewise.
6088 (get_loop_body_in_custom_order): Declare.
6089 * cfgloopmanip.c (has_preds_from_loop): New.
6090 (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
6091 Assert that the preheader edge will be fall thru when it is set.
6092 * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
6093 fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
6094 fsel-sched-substitution, fselective-scheduling): New flags.
6095 * cse.c (hash_rtx_cb): New.
6097 * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
6098 sel_sched_insn_cnt): New counters.
6099 * final.c (compute_alignments): Export. Free dominance
6100 info after loop_optimizer_finalize.
6101 * genattr.c (main): Output maximal_insn_latency prototype.
6102 * genautomata.c (output_default_latencies): New.
6103 Factor its code from ...
6104 (output_internal_insn_latency_func): ... here.
6105 (output_internal_maximal_insn_latency_func): New.
6106 (output_maximal_insn_latency_func): New.
6107 * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
6108 (struct hard_reg_set_iterator): New.
6109 (hard_reg_set_iter_init, hard_reg_set_iter_set,
6110 hard_reg_set_iter_next): New functions.
6111 (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
6112 * lists.c (remove_free_INSN_LIST_node,
6113 remove_free_EXPR_LIST_node): New functions.
6114 * loop-init.c (loop_optimizer_init): When
6115 LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
6116 calling create_preheaders.
6117 (loop_optimizer_finalize): Do not verify flow info after reload.
6118 * recog.c (validate_replace_rtx_1): New parameter simplify.
6119 Default it to true. Update all uses. Factor out simplifying
6121 (simplify_while_replacing): ... this new function.
6122 (validate_replace_rtx_part,
6123 validate_replace_rtx_part_nosimplify): New.
6124 * recog.h (validate_replace_rtx_part,
6125 validate_replace_rtx_part_nosimplify): Declare.
6126 * rtl.c (rtx_equal_p_cb): New.
6127 (rtx_equal_p): Use it.
6128 * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
6129 (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
6130 debug_bb_n_slim, debug_bb_slim, print_rtl_slim): Likewise.
6131 * vecprim.h: Add a vector type for unsigned int.
6132 * haifa-sched.c: Include vecprim.h and cfgloop.h.
6133 (issue_rate, sched_verbose_param, note_list, dfa_state_size,
6134 ready_try, cycle_issued_insns, spec_info): Make global.
6135 (readyp): Initialize.
6136 (dfa_lookahead): New global variable.
6137 (old_max_uid, old_last_basic_block): Remove.
6138 (h_i_d): Make it a vector.
6139 (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
6141 (after_recovery, adding_bb_to_current_region_p):
6142 New variables to handle correct insertion of the recovery code.
6143 (struct ready_list): Move declaration to sched-int.h.
6144 (rgn_n_insns): Removed.
6145 (rtx_vec_t): Move to sched-int.h.
6146 (find_insn_reg_weight): Remove.
6147 (find_insn_reg_weight1): Rename to find_insn_reg_weight.
6148 (haifa_init_h_i_d, haifa_finish_h_i_d):
6149 New functions to initialize / finalize haifa instruction data.
6150 (extend_h_i_d, init_h_i_d): Rewrite.
6151 (unlink_other_notes): Move logic to add_to_note_list. Handle
6152 selective scheduler.
6153 (ready_lastpos, ready_element, ready_sort, reemit_notes,
6154 find_fallthru_edge): Make global, remove static prototypes.
6155 (max_issue): Make global. Add privileged_n and state parameters. Use
6157 (extend_global, extend_all): Removed.
6158 (init_before_recovery): Add new param. Fix the handling of the case
6159 when we insert a recovery code before the EXIT which has a predecessor
6160 with a fallthrough edge to it.
6161 (create_recovery_block): Make global. Rename to
6162 sched_create_recovery_block. Update.
6163 (change_pattern): Rename to sched_change_pattern. Make global.
6164 (speculate_insn): Rename to sched_speculate_insn. Make global.
6165 Split haifa-specific functionality into ...
6166 (haifa_change_pattern): New static function.
6167 (sched_extend_bb): New static function.
6168 (sched_init_bbs): New function.
6169 (current_sched_info): Change type to struct haifa_sched_info.
6170 (insn_cost): Adjust for selective scheduling.
6171 (dep_cost_1): New function. Move logic from ...
6172 (dep_cost): ... here.
6173 (dep_cost): Use dep_cost_1.
6174 (contributes_to_priority_p): Use sched_deps_info instead of
6176 (priority): Adjust to work with selective scheduling. Process the
6177 corner case when all dependencies don't contribute to priority.
6178 (rank_for_schedule): Use ds_weak instead of dep_weak.
6179 (advance_state): New function. Move logic from ...
6180 (advance_one_cycle): ... here.
6181 (add_to_note_list, concat_note_lists): New functions.
6182 (rm_other_notes): Make static. Adjust for selective scheduling.
6183 (remove_notes, restore_other_notes): New functions.
6184 (move_insn): Add two arguments. Update assert. Don't call
6186 (choose_ready): Remove lookahead variable, use dfa_lookahead.
6187 Remove more_issue, max_points. Move the code to initialize
6188 max_lookahead_tries to max_issue.
6189 (schedule_block): Remove rgn_n_insns1 parameter. Don't allocate
6190 ready. Adjust use of move_insn. Call restore_other_notes.
6192 (sched_init, sched_finish): Move Haifa-specific initialization/
6194 (haifa_sched_init, haifa_sched_finish): ... respectively.
6196 (setup_sched_dump): New function.
6197 (haifa_init_only_bb): New static function.
6198 (haifa_speculate_insn): New static function.
6199 (try_ready): Use haifa_* instead of speculate_insn and change_pattern.
6200 (extend_ready, extend_all): Remove.
6201 (sched_extend_ready_list, sched_finish_ready_list): New functions.
6202 (create_check_block_twin, add_to_speculative_block): Use
6203 haifa_insns_init instead of extend_global. Update to use new
6204 initialization functions. Change parameter. Factor out code from
6205 create_check_block_twin to ...
6206 (sched_create_recovery_edges) ... this new function.
6207 (add_block): Remove.
6208 (sched_scan_info): New.
6209 (extend_bb): Use sched_scan_info.
6210 (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
6211 static functions for walking through scheduling region.
6212 (sched_luids): New vector variable to replace uid_to_luid.
6213 (luids_extend_insn): New function.
6214 (sched_max_luid): New variable.
6215 (luids_init_insn): New function.
6216 (sched_init_luids, sched_finish_luids): New functions.
6217 (insn_luid): New debug function.
6218 (sched_extend_target): New function.
6219 (haifa_init_insn): New static function.
6220 (sched_init_only_bb): New hook.
6221 (sched_split_block): New hook.
6222 (sched_split_block_1): New function.
6223 (sched_create_empty_bb): New hook.
6224 (sched_create_empty_bb_1): New function.
6225 (common_sched_info, ready): New global variables.
6226 (current_sched_info_var): Remove.
6227 (move_block_after_check): Use common_sched_info.
6228 (haifa_luid_for_non_insn): New static function.
6229 (init_before_recovery): Use haifa_init_only_bb instead of add_block.
6230 (increase_insn_priority): New.
6231 * modulo-sched.c: (issue_rate): Remove static declaration.
6232 (sms_sched_info): Change type to haifa_sched_info.
6233 (sms_sched_deps_info, sms_common_sched_info): New variables.
6234 (setup_sched_infos): New.
6235 (sms_schedule): Initialize them. Call haifa_sched_init/finish.
6236 Do not call regstat_free_calls_crossed.
6237 (sms_print_insn): Use const_rtx.
6238 * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
6239 PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
6240 PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
6241 PARAM_SCHED_MEM_TRUE_DEP_COST): New.
6242 * sched-deps.c (sched_deps_info): New. Update all relevant uses of
6243 current_sched_info to use it.
6244 (enum reg_pending_barrier_mode): Move to sched-int.h.
6245 (h_d_i_d): New variable. Initialize to NULL.
6246 ({true, output, anti, spec, forward}_dependency_cache): Initialize
6248 (estimate_dep_weak): Remove static declaration.
6249 (sched_has_condition_p): New function. Adjust users of
6250 sched_get_condition to use it instead.
6251 (conditions_mutex_p): Add arguments indicating which conditions are
6253 (sched_get_condition_with_rev): Rename from sched_get_condition. Add
6254 argument to indicate whether returned condition is reversed. Do not
6255 generate new rtx when condition should be reversed; indicate it by
6256 setting new argument instead.
6257 (add_dependence_list_and_free): Add deps parameter.
6258 Update all users. Do not free dependence list when
6259 deps context is readonly.
6260 (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
6262 (remove_from_dependence_list, remove_from_both_dependence_lists): New.
6263 (remove_from_deps): New. Use the above functions.
6264 (cur_insn, can_start_lhs_rhs_p): New static variables.
6265 (add_or_update_back_dep_1): Initialize present_dep_type.
6266 (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
6267 haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
6268 haifa_note_dep): New functions implementing dependence hooks for
6269 the Haifa scheduler.
6270 (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
6271 note_dep): New functions.
6272 (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
6274 (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
6275 (free_deps): Initialize deps->reg_last.
6276 (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
6277 sched_analyze_insn): Update to use dependency hooks infrastructure
6278 and readonly contexts.
6279 (deps_analyze_insn): New function. Move part of logic from ...
6280 (sched_analyze): ... here. Also move some logic to ...
6281 (deps_start_bb): ... here. New function.
6282 (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
6284 (sched_deps_init): New function. Move code from ...
6285 (init_dependency_caches): ... here. Remove.
6286 (init_deps_data_vector): New.
6287 (sched_deps_finish): New function. Move code from ...
6288 (free_dependency_caches): ... here. Remove.
6289 (init_deps_global, finish_deps_global): Adjust for use with
6290 selective scheduling.
6291 (get_dep_weak): Move logic to ...
6292 (get_dep_weak_1): New function.
6293 (ds_merge): Move logic to ...
6294 (ds_merge_1): New static function.
6295 (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
6296 (ds_get_max_dep_weak): New function.
6297 * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
6298 (n_insns): Rename to rgn_n_insns.
6299 (debug_ebb_dependencies): New function.
6300 (init_ready_list): Use it.
6301 (begin_schedule_ready): Use sched_init_only_bb.
6302 (ebb_print_insn): Indicate when an insn starts a new cycle.
6303 (contributes_to_priority, compute_jump_reg_dependencies,
6304 add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
6305 (add_block1): Remove to ebb_add_block.
6306 (ebb_sched_deps_info, ebb_common_sched_info): New variables.
6307 (schedule_ebb): Initialize them. Use remove_notes instead of
6308 rm_other_notes. Use haifa_local_init/finish.
6309 (schedule_ebbs): Use haifa_sched_init/finish.
6310 * sched-int.h: Include vecprim.h, remove rtl.h.
6311 (struct ready_list): Delete declaration.
6312 (sched_verbose_param, enum sched_pass_id_t,
6313 bb_vec_t, insn_vec_t, rtx_vec_t): New.
6314 (struct sched_scan_info_def): New structure.
6315 (sched_scan_info, sched_scan, sched_init_bbs,
6316 sched_init_luids, sched_finish_luids, sched_extend_target,
6317 haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
6318 (struct common_sched_info_def): New.
6319 (common_sched_info, haifa_common_sched_info,
6320 sched_emulate_haifa_p): Declare.
6322 (sched_luids): Declare.
6323 (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
6324 (sched_max_luid, insn_luid): Declare.
6325 (note_list, remove_notes, restore_other_notes, bb_note): Declare.
6326 (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
6327 print_insn, print_pattern, print_value, haifa_classify_insn,
6328 sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
6329 setup_sched_dump, sched_init, sched_finish,
6330 sel_insn_is_speculation_check): Export.
6331 (struct ready_list): Move from haifa-sched.c.
6332 (ready_try, ready, max_issue): Export.
6333 (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
6334 sched_init_only_bb, sched_split_block, sched_split_block_1,
6335 sched_create_empty_bb, sched_create_empty_bb_1,
6336 sched_create_recovery_block, sched_create_recovery_edges): Export.
6337 (enum reg_pending_barrier_mode): Export.
6338 (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
6340 (struct sched_info): Rename to haifa_sched_info. Use const_rtx for
6341 print_insn field. Move add_block and fix_recovery_cfg to
6342 common_sched_info_def. Move compute_jump_reg_dependencies,
6344 (struct sched_deps_info_def): ... this new structure.
6345 (sched_deps_info): Declare.
6346 (struct spec_info_def): Remove weakness_cutoff, add
6347 data_weakness_cutoff and control_weakness_cutoff.
6348 (spec_info): Declare.
6349 (struct _haifa_deps_insn_data): Split from haifa_insn_data. Add
6351 (struct haifa_insn_data): Rename to struct _haifa_insn_data.
6352 (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
6353 (current_sched_info): Change type to struct haifa_sched_info.
6354 (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
6355 (h_d_i_d): New variable.
6356 (HDID): New accessor macro.
6357 (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
6358 (HID): New accessor macro. Rewrite h_i_d accessor macros through HID
6360 (IS_SPECULATION_CHECK_P): Update for selective scheduler.
6361 (enum SCHED_FLAGS): Update for selective scheduler.
6362 (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
6363 (init_dependency_caches, free_dependency_caches): Delete declarations.
6364 (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
6365 estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
6366 ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
6367 sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
6368 haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
6370 (rm_other_notes): Delete declaration.
6371 (schedule_block): Remove one argument.
6372 (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
6373 ready_element, ready_lastpos, sched_extend_ready_list,
6374 sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
6375 concat_note_lists): Export.
6376 (struct region): Move from sched-rgn.h.
6377 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
6378 RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
6379 BLOCK_TO_BB, CONTAINING_RGN): Export.
6380 (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
6381 (current_nr_blocks, current_blocks, target_bb): Likewise.
6382 (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
6383 sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
6384 sched_rgn_local_init, extend_regions,
6385 rgn_make_new_region_out_of_new_block, compute_priorities,
6386 debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
6387 extend_rgns, deps_join rgn_setup_common_sched_info,
6388 rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
6389 dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
6390 (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
6391 increase_insn_priority): Likewise.
6392 * sched-rgn.c: Include sel-sched.h.
6393 (ref_counts): New static variable. Use it ...
6394 (INSN_REF_COUNT): ... here. Rewrite and move closer to uses.
6395 (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
6396 (sched_is_disabled_for_current_region_p): Delete static declaration.
6397 (struct region): Move to sched-int.h.
6398 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
6399 ebb_head): Define and initialize.
6400 (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
6401 BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
6402 BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
6404 (find_single_block_region): Add new argument to indicate that EBB
6405 regions should be constructed.
6406 (debug_live): Delete declaration.
6407 (current_nr_blocks, current_blocks, target_bb):
6408 Remove static qualifiers.
6409 (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
6411 (init_regions): Delete declaration.
6412 (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
6413 rgn_estimate_number_of_insns): New.
6414 (too_large): Use estimate_number_of_insns.
6415 (haifa_find_rgns): New. Move the code from ...
6416 (find_rgns): ... here. Call either sel_find_rgns or haifa_find_rgns.
6417 (free_trg_info): New.
6418 (compute_trg_info): Allocate candidate tables here instead of ...
6419 (init_ready_list): ... here.
6420 (rgn_print_insn): Use const_rtx.
6421 (contributes_to_priority, extend_regions): Delete static declaration.
6422 (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
6423 (add_block1): Rename to rgn_add_block.
6424 (debug_rgn_dependencies): Delete static qualifier.
6425 (new_ready): Use sched_deps_info. Simplify.
6426 (rgn_common_sched_info, rgn_const_sched_deps_info,
6427 rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
6429 (region_sched_info): Rename to rgn_const_sched_info.
6430 (deps_join): New, extracted from ...
6431 (propagate_deps): ... here.
6432 (compute_block_dependences, debug_dependencies): Update for selective
6434 (free_rgn_deps, compute_priorities): New functions.
6435 (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
6436 sched_rgn_compute_dependencies): New functions.
6437 (schedule_region): Use them.
6438 (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
6439 rgn_setup_common_sched_info, rgn_setup_sched_infos):
6441 (schedule_insns): Call new functions that were split out.
6442 (rgn_make_new_region_out_of_new_block): New.
6443 (get_rgn_sched_max_insns_priority): New.
6444 (rest_of_handle_sched, rest_of_handle_sched2): Call selective
6445 scheduling when appropriate.
6446 * sched-vis.c: Include insn-attr.h.
6447 (print_value, print_pattern): Make global.
6448 (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
6449 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
6450 TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
6451 TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
6452 TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
6453 TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
6454 hooks. Initialize them to 0.
6455 (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
6456 * target.h (struct gcc_target): Add them. Rename gen_check field to
6458 * flags.h (sel_sched_switch_set): Declare.
6459 * opts.c (sel_sched_switch_set): New variable.
6460 (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
6461 pipelining is disabled from command line.
6462 (common_handle_option): Record whether selective scheduling is
6463 requested from command line.
6464 * doc/invoke.texi: Document new flags and parameters.
6465 * doc/tm.texi: Document new target hooks.
6466 * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
6468 (dfa_state_size): Do not declare locally.
6469 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
6470 * config/rs6000/rs6000.c (rs6000_init_sched_context,
6471 rs6000_alloc_sched_context, rs6000_set_sched_context,
6472 rs6000_free_sched_context): New functions.
6473 (struct _rs6000_sched_context): New.
6474 (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
6476 (rs6000_sched_finish): Do not run for selective scheduling.
6478 2008-08-31 Jan Hubicka <jh@suse.cz>
6480 * frv.c (frv_rtx_costs): Update forward declaration.
6481 * spu.c (spu_rtx_costs): Likewise.
6482 * pdp11.c: Include df.h
6483 (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
6484 * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
6485 (m68hc11_rtx_costs_1): Fix call of rtx_cost.
6486 * iq2000.c (iq2000_address_cost): Add speed argument.
6487 (iq2000_rtx_costs): Likewise.
6488 * mn10300.c (mn10300_address_cost_1): Remove speed argument;
6489 update call of mn10300_address_cost.
6490 * mcore.c: Include df.h
6491 (mcore_rtx_costs): Update prototype.
6492 * score3.c: Include df.h
6493 (score3_rtx_costs): Remove speed argument.
6494 * score7.c: Include df.h
6495 (score7_address_cost): Remove speed argument.
6496 * score-protos.h (score_address_cost): Update prototype.
6497 * score.c: Include df.h
6498 (score_rtx_costs): Update call of costs functions.
6499 * v850.c (v850_rtx_costs): Add bool argument.
6501 2008-08-31 Hans-Peter Nilsson <hp@axis.com>
6503 * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
6505 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6507 * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
6508 * config/i386/gthr-win32.c (__gthread_setspecific): Same.
6510 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6512 * mkmap-flat.awk: Add option pe_dll.
6513 * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
6514 * config/i386/t-cygwin (SHLIB_LC): Add.
6515 * config/i386/t-mingw32 (SHLIB_LC): Add.
6516 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
6517 (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
6518 (LINK_SPEC): Support libgcc_s.
6519 (LIBGCC_SPEC): Support libgcc_s.
6520 (LIBGCC_SONAME): New.
6522 2008-08-31 Jan Hubicka <jh@suse.cz>
6524 * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
6525 mistakely had old version of patch.
6527 * ipa-cp.c (ipcp_need_original_clone_p): Remove.
6528 (ipcp_estimate_growth): New.
6529 (ipcp_insert_stage): Use ipcp_estimate_growth.
6530 * profile.c (branch_prob): When reading failed, do not consider
6533 2008-08-31 Jan Hubicka <jh@suse.cz>
6535 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
6536 loop is optimized for speed.
6538 2008-08-31 Richard Guenther <rguenther@suse.de>
6541 * fold-const.c (fold_binary): Retain conversions in folding
6544 2008-08-31 Jan Hubicka <jh@suse.cz>
6546 * postreload-gcse.c (eliminate_partially_redundant_loads):
6547 Use optimize_bb_for_size_p.
6548 * predict.c (maybe_hot_frequency_p): Make inline.
6549 (maybe_hot_count_p): Break out from ...
6550 (maybe_hot_bb_p): ... this one.
6551 (maybe_hot_edge_p): Simplify.
6552 * basic-block.h (probably_cold_bb_p): Remove.
6554 2008-08-31 Jakub Jelinek <jakub@redhat.com>
6557 * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
6559 * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
6560 * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
6561 Also split V4SFmode.
6562 * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
6565 2008-08-31 Jan Hubicka <jh@suse.cz>
6567 * predict.c (PROB_VERY_LIKELY): Make small enough so things
6569 * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
6571 2008-08-31 Jakub Jelinek <jakub@redhat.com>
6574 * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
6577 * dwarf2out.c (native_encode_initializer): Subtract min_index for
6578 non-range array index. Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
6580 2008-08-31 Jan Hubicka <jh@suse.cz>
6582 * sparc.h (BRANCH_COST): Fix macro definition.
6583 * avr.c (avr_operand_rtx_cost): Add speed argument.
6584 (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
6586 2008-08-31 Richard Guenther <rguenther@suse.de>
6588 * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
6589 types instead of operands. Re-instantiate verifying of
6590 binary expression operands.
6592 2008-08-30 Jan Hubicka <jh@suse.cz>
6594 * fwprop.c (should_replace_address): Add speed attribute.
6595 (PR_OPTIMIZE_FOR_SPEED): New flag.
6596 (propagate_rtx_1): Use it.
6597 (propagate_rtx): Set it.
6598 (try_fwprop_subst): Update call of rtx_costs.
6599 (forward_propagate_and_simplify): LIkewise.
6600 * hooks.c (hook_int_rtx_bool_0): New
6601 (hook_bool_rtx_int_int_intp_false): Replace by ...
6602 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
6603 * hooks.h (hook_int_rtx_bool_0): New
6604 (hook_bool_rtx_int_int_intp_false): Replace by ...
6605 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
6606 * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
6607 (prepare_cmp_insn): UPdate call of rtx_cost.
6608 * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
6609 (reload_cse_simplify_operands): Update call of rtx_cost.
6610 (reload_cse_move2add): call of rtx_cost.
6611 * target.h (struct gcc_target): Update rtx_costs and address_costs.
6612 * rtlanal.c (rtx_cost): Add speed argument.
6613 (address_cost): Add speed argument
6614 (default_address_cost): Likewise.
6615 (insn_rtx_cost): Likewise.
6616 * cfgloopanal.c (seq_cost): Add speed argument.
6617 (target_reg_cost, target_spill_cost): Turn to array.
6618 (init_set_costs): Update for speed.
6619 (estimate_reg_pressure_cost): Add speed argument.
6620 * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
6621 * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
6622 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
6623 (seq_cost): Add speed argument.
6624 (computation_cost): Add speed arugment.
6625 (add_cost, multiply_by_const, get_address_cost): add speed argument.
6626 (force_expr_to_var_cost): Update for profile info.
6627 (force_var_cost): Likewise.
6628 (split_address_cost): Likewise.
6629 (ptr_difference_cost): Likewise.
6630 (difference_cost): Likewise.
6631 (get_computation_cost_at): Likewise.
6632 (determine_iv_cost): Likewise.
6633 (ivopts_global_cost_for_size): Likewise.
6634 (rewrite_use_address): Likewise.
6635 (tree_ssa_iv_optimize_loop): Initialize speed field.
6636 * cse.c (optimize_this_for_speed_p): New static var.
6637 (notreg_cost): Update call of rtx_cost.
6638 (cse_extended_basic_block): set optimize_this_for_speed_p.
6639 * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
6640 (noce_try_cmove_arith): Likewise.
6641 (noce_try_sign_mask): LIkewise.
6642 * expr.c (compress_float_constant): Update rtx_cost calls.
6643 * tree-ssa-address.c (most_expensive_mult_to_index): Add speed
6645 (addr_to_parts): Likewise.
6646 (create_mem_ref): Likewise.
6647 * dse.c (find_shift_sequence): Add speed argument.
6648 (replace_read): Update call.
6649 * calls.c (precompute_register_parameters): Update call of rtx_cost.
6650 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
6651 * neg_cost, shift_cost, shiftadd_cost,
6652 shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
6653 mul_highpart_cost): Increase dimension.
6654 (init_expmed): Initialize for both size and speed.
6655 (expand_shift): Use profile.
6656 (synth_mult): Use profile.
6657 (choose_mult_variant): Use profile.
6658 (expand_mult): Use profile.
6659 (expand_mult_highpart_optab): Use profile.
6660 (expand_mult_highpart): Use profile.
6661 (expand_smod_pow2): Use profile.
6662 (expand_divmod): Use profile.
6663 * simplify-rtx.c (simplify_binary_operation_1): Update call of
6665 * loop-invariant.c (create_new_invariant): Use profile.
6666 (gain_for_invariant): Add speed parameter.
6667 (best_gain_for_invariant): Likewise.
6668 (find_invariants_to_move): Likewise.
6669 (move_single_loop_invariants): Set it.
6670 * target-def.h (TARGET_RTX_COSTS): Use hook.
6671 * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
6672 (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
6673 * output.h (default_address_cost): Update prototype.
6674 * combine.c (optimize_this_for_speed_p): New static var.
6675 (combine_validate_cost): Update call of rtx_cost.
6676 (combine_instructions): Set optimize_this_for_speed_p.
6677 (expand_compound_operation): Update call of rtx_cost.
6678 (make_extraction):Update call of rtx_cost.
6679 (force_to_mode):Update call of rtx_cost.
6680 (distribute_and_simplify_rtx):Update call of rtx_cost.
6681 * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
6682 (estimate_reg_pressure_cost): Update prototype.
6683 * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
6684 * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
6686 * config/alpha/alpha.c (alpha_rtx_costs): Update.
6687 (alpha_rtx_costs): Update.
6688 * config/frv/frv.c (frv_rtx_costs): Update.
6689 * config/s390/s390.c (s390_rtx_costs): Update.
6690 * config/m32c/m32c.c (m32c_memory_move_cost): Update.
6691 (m32c_rtx_costs): Update.
6692 * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
6693 (spu_rtx_costs): Update.
6694 * config/sparc/sparc.c (sparc_rtx_costs): Update.
6695 * config/m32r/m32r.c (m32r_rtx_costs): Update.
6696 * config/i386/i386.c (:ix86_address_cost): Update.
6697 (ix86_rtx_costs): Update.
6698 * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
6699 * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
6700 * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
6701 * config/crx/crx.c (crx_address_cost): Update.
6702 * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
6703 * config/stormy16/stormy16.c
6704 (xstormy16_address_cost, xstormy16_rtx_costs): Update.
6705 * config/m68hc11/m68hc11.c
6706 (m68hc11_address_cost, m68hc11_rtx_costs): Update.
6707 * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
6708 * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
6710 * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
6712 * config/ia64/ia64.c (ia64_rtx_costs): Update.
6713 * config/m68k/m68k.c (m68k_rtx_costs): Update.
6714 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
6715 * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
6716 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
6717 (mcore_rtx_costs): update.
6718 * config/score/score3.c (score3_rtx_costs): Update.
6719 * config/score/score7.c (score7_rtx_costs): Update.
6720 * config/score/score3.h (score3_rtx_costs):Update.
6721 * config/score/score7.h (score7_rtx_costs): Update.
6722 * config/score/score.c (score_rtx_costs): Update.
6723 * config/arm/arm.c (arm_address_cost): Update.
6724 (arm_rtx_costs_1): Update.
6725 (arm_rtx_costs_1): Update.
6726 (arm_size_rtx_costs): Update.
6727 (arm_size_rtx_costs): Update.
6728 (arm_size_rtx_costs): Update.
6729 (arm_xscale_rtx_costs): Update.
6730 (arm_thumb_address_cost): Update.
6731 * config/pa/pa.c (hppa_address_cost): Update.
6732 * config/mips/mips.c (mips_rtx_costs): Update.
6733 * config/vax/vax.c (vax_address_cost): Update.
6734 * config/h8300/h8300.c (h8300_shift_costs): Update.
6735 (h8300_rtx_costs): Update.
6736 * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
6737 (v850_rtx_costs): Update.
6738 * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
6739 * config/bfin/bfin.c
6740 (bfin_address_cost): Update.
6741 (bfin_rtx_costs): Update.
6742 * stmt.c (lshift_cheap_p): Update.
6744 2008-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
6747 * expmed.c (extract_bit_field_1): Check the mode size to make
6748 sure the vector modes have the same size.
6750 2008-08-29 Michael Meissner <gnu@the-meissners.org>
6752 * dojump.c (top level): Include basic-block.h to declare
6753 optimize_insn_for_speed_p
6755 * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
6757 * opts.h (CL_SAVE): New option class for marking options that are
6758 target specific options usable in the target attribute.
6759 (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
6761 * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
6762 can easily find the target specific options that are safe to use
6763 in the attribute or pragma.
6765 * attribs.c (decl_attributes): Change #pragma GCC option to
6766 #pragma GCC target, and attribute((option(...))) to
6767 attribute((target(...))).
6769 * doc/extend.texi (target attribute): Change from option
6770 attribute. Delete push/pop/reset.
6771 (#pragma GCC target): Change from #pragma GCC option. Delete
6773 (#pragma GCC push_options): Document new pragma.
6774 (#pragma GCC pop_options): Document new pragma.
6775 (#pragma GCC reset_options): Document new pragma.
6777 * targhooks.c (default_target_option_valid_attribute_p): Add
6778 warning about port not supporting target attributes.
6779 (default_target_option_pragma_parse): New function, warn about
6780 #pragma GCC target not being supported.
6782 * targhooks.h (default_target_option_pragma_parse): Add
6785 * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
6786 TI_CURRENT_OPTION_PRAGMA.
6787 (current_target_pragma): Rename from current_option_pragma.
6789 * target.h: (struct target_option): Delete booleans for changing
6790 the optimization level on hot/cold functions. Change signature of
6791 pragma_parse hook to take a second tree.
6793 * c-tree.h (c_builtin_function_ext_scope): Add declaration.
6795 * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
6796 that the declaration is done at global scope.
6798 * langhooks.c (add_builtin_function_common): Move most of the code
6799 from add_builtin_function here, calling the hook passed in.
6800 (add_builtin_function): Call add_builtin_function_common with
6801 standard builtin hook.
6802 (add_builtin_function_ext_scope): New function to add builtins to
6805 * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
6807 (add_builtin_function_ext_scope): Add declaration.
6809 * c-pragma.c (handle_pragma_target): Rename from
6810 handle_pragma_option, #pragma GCC option is now #pragma GCC
6811 target. Move warning about port not supporting target options to
6812 default pragma parse hook. Remove push/pop/reset from this
6814 (handle_pragma_optimize): Remove push/pop/reset from this pragma.
6815 (option_stack): Delete static variable.
6816 (optimize_stack): Ditto.
6817 (optons_stack): New stack of saved target and optimization
6819 (handle_pragma_push_options): New function to handle pushing both
6820 target and optimization options.
6821 (handle_pragma_pop_options): New function to handle popping both
6822 target and optimization options.
6823 (handle_pragma_reset_options): New function to handle resetting
6824 both target and optimization options to their initial state.
6825 (init_pragma): Rename handle_pragma_option to
6826 handle_pragma_target. Add support for push_options, pop_options,
6827 and reset_options pragmas.
6829 * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
6830 default_target_option_pragma_parse.
6831 (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
6832 default_target_option_valid_attribute_p.
6833 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
6834 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
6835 (TARGET_OPTION_HOOKS): Delete the fields for whether to change
6836 optimization level on hot/cold functions.
6838 * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
6839 if the caller and callee have different optimization levels.
6841 * c-common.c (handle_target_attribute): Rename from
6842 handle_option_attribute, attribute((option(...))) is now
6843 attribute((target(...))). Move warning if the port does not
6844 support target attributes to the default hook.
6845 (handle_hot_attribute): Delete code to change the optimization
6846 level of hot functions.
6847 (handle_cold_attribute): Ditto.
6849 * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
6850 argument that is the binary tree options to use if there are no
6851 arguments. Call ix86_valid_target_attribute_tree instead of
6852 ix86_valid_option_attribute_tree.
6853 (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
6854 (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
6855 ix86_pragma_option_parse.
6857 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
6858 Rename from ix86_valid_option_attribute_tree.
6860 * config/i386/i386.c (ix86_add_new_builtins): New function to add
6861 new builtins when the ISA changes.
6862 (ix86_valid_target_attribute_tree): Rename from
6863 ix86_valid_option_attribute_tree. Change callers. If the
6864 function specified optimization options, use those as the starting
6865 point before setting up the target attributes. If the
6866 optimization options were changed in the course of setting the
6867 target attributes, record the new optimization options.
6868 (ix86_valid_target_attribute_tree_inner_p): Rename from
6869 ix86_valid_option_attribute_tree_inner_p. Change callers. Call
6870 ix86_add_new_builtins if the ISA changed.
6871 (ix86_valid_target_attribute_p): Rename from
6872 ix86_valid_option_attribute_p. Change callers.
6873 (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
6874 __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
6875 as delayed builtin functions.
6876 (struct builtin_isa): New structure to record builtin functions
6877 that should be delayed until the ISA for that function is used.
6878 (ix86_builtins_isa): Change from int to struct to track builtin
6879 functions we want to declare at some point.
6880 (def_builtin): If the front end can delay defining the builtin
6881 functions, don't create builtins for ISAs not part of the default
6883 (def_builtin_const): Ditto.
6884 (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
6885 __builtin_ia32_pcmov_v2di to be different builtin functions.
6886 (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
6887 a structure instead of an int.
6888 (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
6889 ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
6890 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
6891 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
6893 * config/ia64/ia64.h
6894 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
6895 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
6897 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
6898 hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
6899 (LANG_HOOKS_INITIALIZER): Add
6900 LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
6902 2008-08-30 Kaz Kojima <kkojima@gcc.gnu.org>
6905 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
6906 the reload address with the index register for SFmode
6907 access with a displacement.
6909 2008-08-30 Jan Hubicka <jh@suse.cz>
6911 * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
6912 * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
6913 * dojump.c (do_jump): Likewise.
6914 * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
6915 (note-if_info): Add BRANCH_COST.
6916 (noce_try_store_flag_constants, noce_try_addcc,
6917 noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
6918 noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
6919 find_if_case_2): Use computed branch cost.
6920 * expr.h (BRANCH_COST): Update default.
6921 * predict.c (predictable_edge_p): New function.
6922 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
6923 Update BRANCH_COST call.
6924 * basic-block.h (predictable_edge_p): Declare.
6925 * config/alpha/alpha.h (BRANCH_COST): Update.
6926 * config/frv/frv.h (BRANCH_COST): Update.
6927 * config/s390/s390.h (BRANCH_COST): Update.
6928 * config/spu/spu.h (BRANCH_COST): Update.
6929 * config/sparc/sparc.h (BRANCH_COST): Update.
6930 * config/m32r/m32r.h (BRANCH_COST): Update.
6931 * config/i386/i386.h (BRANCH_COST): Update.
6932 * config/i386/i386.c (ix86_expand_int_movcc): Update use of
6934 * config/sh/sh.h (BRANCH_COST): Update.
6935 * config/pdp11/pdp11.h (BRANCH_COST): Update.
6936 * config/avr/avr.h (BRANCH_COST): Update.
6937 * config/crx/crx.h (BRANCH_COST): Update.
6938 * config/xtensa/xtensa.h (BRANCH_COST): Update.
6939 * config/stormy16/stormy16.h (BRANCH_COST): Update.
6940 * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
6941 * config/iq2000/iq2000.h (BRANCH_COST): Update.
6942 * config/ia64/ia64.h (BRANCH_COST): Update.
6943 * config/rs6000/rs6000.h (BRANCH_COST): Update.
6944 * config/arc/arc.h (BRANCH_COST): Update.
6945 * config/score/score.h (BRANCH_COST): Update.
6946 * config/arm/arm.h (BRANCH_COST): Update.
6947 * config/pa/pa.h (BRANCH_COST): Update.
6948 * config/mips/mips.h (BRANCH_COST): Update.
6949 * config/vax/vax.h (BRANCH_COST): Update.
6950 * config/h8300/h8300.h (BRANCH_COST): Update.
6951 * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
6952 * doc/invoke.texi (predictable-branch-cost-outcome): Document.
6953 * doc/tm.texi (BRANCH_COST): Update.
6955 2008-08-30 Samuel Tardieu <sam@rfc1149.net>
6958 * config/arm/arm.c (arm_optimization_options): Set
6959 flag_section_anchors to 2 instead of 1 to distinguish it from
6960 -fsection-anchors given explicitely on the command line.
6962 2008-08-30 Richard Sandiford <rdsandiford@googlemail.com>
6964 * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
6965 final insn of a split.
6967 2008-08-30 Jan Hubicka <jh@suse.cz>
6969 * postreload-gcse.c (gate_handle_gcse2): Disable for functions
6970 optimized for speed.
6971 * final.c (compute_alignments): Use optimize_bb_for_size_p.
6972 * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
6973 * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
6974 flag_gcse_after_reload_set): New static vars.
6975 (common_handle_option): Enable those flags for profile-use.
6976 (decode_options): Remove optimize_size flags that are handled
6977 on higher granuality.
6978 * tree-vectorizer.c (vectorize_loops): Use
6979 optimize_loop_nest_for_speed_p.
6980 * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
6981 * tree-predcom.c (tree_predictive_commoning): Use
6982 optimize_loop_for_speed_p.
6983 * varasm.c (assemble_start_function): Use
6984 optimize_function_for_speed_p.
6985 * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
6986 * predict.c (optimize_loop_for_speed_p): Fix walk.
6988 2008-08-30 Jan Hubicka <jh@suse.cz>
6990 * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
6992 (cgraph_decide_inlining_of_small_function): Use edge->count to detect
6993 profile presence locally.
6995 2008-08-29 Joseph Myers <joseph@codesourcery.com>
6998 * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
6999 versions before 4.0.
7001 2008-08-29 Jan Hubicka <jh@suse.cz>
7003 * tree-inline.c (insert_init_stmt): Insert sequence even when
7006 2008-08-29 Jeff Law <law@redhat.com>
7008 * mn10300.c (mn10300_secondary_reload_class): We need secondary
7009 reloads for AM33-2 if IN is a pseudo with an equivalent memory
7010 location and class is an FP register.
7012 2008-08-29 Jan Hubicka <jh@suse.cz>
7014 * see.c (see_merge_one_def_extension): Silence used uninitialized
7016 * matrix-reorg.c (check_allocation_function): Likewise.
7017 * config/i386/driver-i386.c (detect_caches_amd): Likewise.
7019 2008-08-29 Jakub Jelinek <jakub@redhat.com>
7022 * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
7023 compute new & and | in type rather than TREE_TYPE (arg0).
7025 * dwarf2out.c (fortran_common): Update comment.
7026 (gen_variable_die): Swap com_die and var_die variables in Fortran
7027 COMMON block handling code.
7029 * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
7031 * dwarf2out.c (gen_const_die): New function.
7032 (size_of_die, value_format, output_die): Output larger
7033 dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
7034 (native_encode_initializer): New function.
7035 (tree_add_const_value_attribute): Call it.
7036 (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
7038 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
7039 DECL_BY_REFERENCE decls don't pass TREE_READONLY and
7040 TREE_THIS_VOLATILE to add_type_attribute.
7042 * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
7044 (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
7047 * dwarf2out.c (loc_by_reference): New function.
7048 (add_location_or_const_value_attribute): Use it.
7051 * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
7052 as DW_TAG_variable children of DW_TAG_common_block rather than
7053 DW_TAG_member children. Put DW_AT_external to individual
7054 DW_TAG_variable DIEs, not to DW_TAG_common_block.
7056 * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
7057 loc_descriptor_from_tree_1.
7061 * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
7062 arguments to imported_module_or_decl.
7063 (debug_nothing_tree_tree): Removed.
7064 (debug_nothing_tree_tree_tree_bool): New prototype.
7065 * debug.c (do_nothing_debug_hooks): Adjust.
7066 (debug_nothing_tree_tree): Removed.
7067 (debug_nothing_tree_tree_tree_bool): New function.
7068 * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
7069 (gen_variable_die): Put all common vars for the
7070 same COMMON block under one DW_TAG_common_block.
7071 (declare_in_namespace): Return new context_die, for Fortran
7072 return the module DIE instead of adding extra declarations into
7074 (gen_type_die_with_usage): Adjust declare_in_namespace caller.
7075 (gen_namespace_die): If is_fortran (), generate DW_TAG_module
7076 instead of DW_TAG_namespace. If DECL_EXTERNAL is set, add
7078 (dwarf2out_global_decl): Don't skip Fortran global vars.
7079 (gen_decl_die): Likewise. Adjust declare_in_namespace callers.
7080 (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
7081 If NAME is non-NULL, add DW_AT_name. If CHILD is non-NULL, put
7082 DW_TAG_imported_declaration as child of previous
7083 DW_TAG_imported_module.
7084 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
7085 * sdbout.c (sdb_debug_hooks): Likewise.
7086 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7088 2008-08-29 Jan Hubicka <jh@suse.cz>
7090 * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
7092 * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
7093 * ipa-cp.c (n_cloning_candidates): New static variable.
7094 (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
7095 (ipcp_print_all_lattices): Improve debug output.
7096 (ipcp_cloning_candidate_p): New function.
7097 (ipcp_initialize_node_lattices): Use it.
7098 (ipcp_init_stage): Do only analyzis here; prettier debug output.
7099 (ipcp_propagate_stage): Prettier debug output.
7100 (ipcp_iterate_stage): Initialize latices here; prettier debug output.
7101 (ipcp_print_all_structures): Remove.
7102 (ipcp_need_redirect_p): Test !n_cloning_candidates.
7103 (ipcp_insert_stage): Prettier debug output; call
7104 cgraph_remove_unreachable_nodes before propagating.
7105 (pass_ipa_cp): Schedule function removal pass.
7106 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
7108 (cgraph_maybe_hot_edge_p): Move to ...
7109 * predict.c (cgraph_maybe_hot_edge_p) ... here.
7110 * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
7111 (common_handle_option): Set them; enable ipa-cp when profiling.
7112 * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
7113 (ipa_print_all_jump_functions): Likewise.
7114 (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
7115 (ipa_print_node_params, ipa_print_all_params): New.
7116 * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
7117 ipa_print_all_param_flags): Remove.
7118 (ipa_print_node_params, ipa_print_all_params): New.
7120 2008-08-29 Bob Wilson <bob.wilson@acm.org>
7122 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
7123 change from 2008-04-03.
7124 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
7126 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
7129 * ira-color.c (push_allocnos_to_stack): Truncate
7130 removed_splay_allocno_vec.
7132 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
7135 * ira-color (ira_fast_allocation): Don't assign hard registers to
7138 2008-08-29 Jan Hubicka <jh@suse.cz>
7141 * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
7142 for cold internal loops.
7144 2008-08-29 Richard Guenther <rguenther@suse.de>
7146 * tree-ssa-structalias.c (create_variable_info_for): Do not
7147 create fields for heap vars or vars with a noalias state.
7148 For NO_ALIAS_ANYTHING variables add a self-constraint, not one
7151 2008-08-29 Richard Guenther <rguenther@suse.de>
7153 * common.opt (ftree-store-ccp): Mark as preserved for
7154 backward compatibility.
7155 * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
7156 * tree-pass.h (pass_store_ccp): Remove.
7157 * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
7158 (first_vdef): Remove declaration.
7159 (get_value_loaded_by): Likewise.
7160 * tree-ssa-ccp.c (do_store_ccp): Remove.
7161 (get_default_value): Simplify as do_store_ccp is always false
7162 now. Do not initialize mem_ref.
7163 (set_value_varying): Likewise.
7164 (canonicalize_float_value): Likewise.
7165 (set_lattice_value): Likewise.
7166 (likely_value): Likewise.
7167 (surely_varying_stmt_p): Likewise.
7168 (ccp_initialize): Likewise.
7169 (ccp_lattice_meet): Likewise.
7170 (ccp_visit_phi_node): Likewise.
7171 (ccp_fold): Likewise.
7172 (evaluate_stmt): Likewise.
7173 (visit_assignment): Likewise.
7174 (ccp_visit_stmt): Likewise.
7175 (execute_ssa_ccp): Fold into ...
7176 (do_ssa_ccp): ... this.
7177 (do_ssa_store_ccp): Remove.
7178 (gate_store_ccp): Likewise.
7179 (pass_store_ccp): Likewise.
7180 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
7182 * tree-ssa-propagate.c (first_vdef): Remove.
7183 (get_value_loaded_by): Likewise.
7184 (replace_vuses_in): Likewise.
7185 (substitute_and_fold): Do not call replace_vuses_in.
7186 * opts.c (decode_options): Do not set flag_tree_store_ccp.
7188 2008-08-29 Richard Guenther <rguenther@suse.de>
7191 * tree-ssa-structalias.c (intra_create_variable_infos): Mark
7192 PARAM_NOALIAS tags with is_heapvar.
7193 * tree-ssa-operands.c (access_can_touch_variable): Offset
7194 based tests do not apply for heapvars. Fix offset test.
7196 2008-08-29 Jan Hubicka <jh@suse.cz>
7198 * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
7199 (-fipa-cp-clone): Enabled by default at -O3.
7200 * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
7201 make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
7203 2008-08-29 Jan Hubicka <jh@suse.cz>
7205 * tree.c (build_function_type_skip_args,
7206 build_function_decl_skip_args): New functions.
7207 * tree.h (build_function_type_skip_args,
7208 build_function_decl_skip_args): Declare.
7209 * gimple.c (giple_copy_call_skip_args): New function.
7210 (giple_copy_call_skip_args): Declare.
7212 * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
7213 * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
7214 (ipcp_node_modifiable_p): ... this one; use
7215 tree_versionable_function_p.
7216 (ipcp_create_replace_map): Improve debug output.
7217 (ipcp_need_redirect_p): Return false when not clonning.
7218 (ipcp_update_callgraph): Skip args.
7219 (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
7221 * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
7222 (save_inline_function_body): Update call of tree_function_versioning.
7223 * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
7224 * tree-inline.c (copy_arguments_for_versioning): Add skip_args
7226 (tree_function_versioning): Likewise.
7227 * tree-inline.h (tree_function_versioning): Update prototype.
7229 2008-08-29 Jan Hubicka <jh@suse.cz>
7231 * loop-unswitch.c (unswitch_single_loop): Use
7232 optimize_loop_for_speed_p.
7233 * tree-ssa-threadupdate.c (mark_threaded_blocks):
7234 Use optimize_function_for_size_p.
7235 * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
7236 * postreload-gcse.c (eliminate_partially_redundant_load):
7237 Use optimize_bb_for_size_p.
7238 * value-prof.c (gimple_divmod_fixed_value_transform,
7239 gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
7240 gimple_stringops_transform): Use optimize_bb_for_size_p.
7241 * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
7242 * final.c (compute_alignments): Use optimize_function_for_size_p.
7243 * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
7244 (fold_builtin_strcpy, fold_builtin_fputs): Use
7245 optimize_function_for_size_p.
7246 * fold-const.c (tree_swap_operands_p): Use
7247 optimize_function_for_size_p.
7248 * recog.c (relax_delay_slots): Likewise.
7249 * tree-ssa-math-opts.c (replace_reciprocal):
7250 Use optimize_bb_for_speed_p.
7251 (execute_cse_reciprocals): Use optimize_bb_for_size_p.
7252 * ipa-inline.c (cgraph_decide_recursive_inlining): Use
7253 optimize_function_for_size_p.
7254 (cgraph_decide_inlining_of_small_function): Use
7255 optimize_function_for_size_p.
7256 * global.c (find_reg): Use optimize_function_for_size_p.
7257 * opts.c (decode_options): Do not clear flag_tree_ch,
7258 flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
7259 flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
7260 work it out from profile.
7261 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
7262 optimize_loop_for_speed_p.
7263 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
7265 (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
7266 * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
7267 * tree-eh.c (decide_copy_try_finally): Use
7268 optimize_function_for_size_p.
7269 * local-alloc.c (block_alloc): Pass BB pointer.
7270 (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
7271 * gcse.c (gcse_main): Use optimize_function_for_size_p.
7272 * loop-unroll.c (decide_unrolling_and_peeling):
7273 Use optimize_loop_for_size_p.
7274 (decide_peel_completely): Likewise.
7275 * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
7276 optimize_loop_for_size_p.
7277 (vect_enhance_data_refs_alignment): Likewise.
7278 * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
7279 (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
7281 * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
7282 (try_crossjump_bb): Use optimize_bb_for_size_p.
7283 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
7284 optimize_loop_for_speed_p.
7285 * bb-reorder.c (find_traces_1_round): Likewise.
7286 (copy_bb): Use optimize_bb_for_speed_p.
7287 (duplicate_computed_gotos): Likewise.
7288 * basic-block.h (optimize_loop_nest_for_size_p,
7289 optimize_loop_nest_for_speed_p): New.
7290 * stmt.c (expand_case): Use optimize_insn_for_size_p.
7292 2008-08-29 Tristan Gingold <gingold@adacore.com>
7294 * gcov.c (main): Call expandargv.
7296 2008-08-29 Jan Hubicka <jh@suse.cz>
7298 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
7300 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
7302 (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
7303 * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
7305 (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
7307 2008-08-29 Jan Hubicka <jh@suse.cz>
7309 * tree-pass.h (pass_strip_predict_hints): Declare.
7310 * predict.c (strip_builtin_expect): Rename to ...
7311 (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
7312 (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
7313 (tree_estimate_probability): Do not strip builtin_expect.
7314 (pass_strip_predict_hints): New pass.
7315 * tree-inline.c (expand_call_inline): When inlining cold function,
7316 predict it as unlikely.
7317 * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
7319 2008-08-29 Richard Guenther <rguenther@suse.de>
7321 PR tree-optimization/37207
7322 * tree-vrp.c (extract_range_from_binary_expr): Also try
7323 to constant fold if only one of the operands is a constant.
7325 2008-08-29 Nick Clifton <nickc@redhat.com>
7327 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
7328 the same way as SYMBOL_REFs.
7330 2008-08-28 Bob Wilson <bob.wilson@acm.org>
7332 * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
7334 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
7336 * config/mips/mips.h (ISA_HAS_BBIT): New macro.
7337 * config/mips/mips.md (branch_likely): Remove const. Fix
7339 (define_delay for type "branch"): Change to only apply for branch
7340 with likely variant.
7341 (define_delay for type "branch" and "branch_likely" no). New delay
7343 (equality_op): New code iterator.
7344 (bbv, bbinv): New code attributes.
7345 (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
7348 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7349 Andrew Pinski <pinskia@gcc.gnu.org>
7352 * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
7354 2008-08-28 Paolo Carlini <paolo.carlini@oracle.com>
7356 * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
7357 rule that a symbolic constant must be defined and >= 0 for the
7358 corresponding facility to be present at compile-time.
7359 * gthr-posix.c: Likewise.
7361 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
7363 * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
7364 * config/mips/mips.md (D): New mode attribute.
7365 (mulsi3, muldi3): Merge it into ...
7366 (mul<mode>3): ... new template. Use _mul3 ending for 3-op patterns.
7367 (muldi3_mul3): New pattern.
7368 (mulsi3_mult3): Rename to mulsi3_mul3.
7370 2008-08-28 Jan Hubicka <jh@suse.cz>
7372 * expmed.c (store_bit_field_1): Be prepared for movstrict expander
7374 * predict.c (always_optimize_for_size_p): Rename to ...
7375 (optimize_function_for_size): ... this one; make extern.
7376 (optimize_function_for_speed_p): New.
7377 (optimize_bb_for_size_p, optimize_bb_for_size_p,
7378 optimize_edge_for_size_p,optimize_edge_for_size_p,
7379 optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
7380 * basic-block.h (optimize_function_for_size_p,
7381 optimize_function_for_speed_p): Declare.
7382 * i386.md (optimize_size checks): Replace them by appropriate
7384 (standard_80387_constant_p, ix86_compute_frame_layout,
7385 ix86_expand_epilogue, ix86_decompose_address,
7386 print_operand, emit_i387_cw_initialization,
7387 inline_memory_move_cost, ix86_pad_returns,
7388 ix86_reorg): Replace optimize_size checks.
7390 2008-08-28 Richard Sandiford <rdsandiford@googlemail.com>
7392 * rtl.h (simplify_subreg_regno): Declare.
7393 * rtlanal.c (simplify_subreg_regno): New function, split out from...
7394 * simplify-rtx.c (simplify_subreg): ...here.
7395 * reload.c (find_reloads): Use simplify_subreg_regno instead of
7396 subreg_offset_representable_p.
7398 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7401 * c-typeck.c (convert_for_assignment): Give a note describing what
7402 was passed and what was expected.
7404 2008-08-28 Joey Ye <joey.ye@intel.com>
7406 * doc/extend.texi: Document AVX built-in functions.
7407 * doc/invoke.texi: Document -mavx.
7409 2008-08-28 H.J. Lu <hongjiu.lu@intel.com>
7410 Joey Ye <joey.ye@intel.com>
7411 Xuepeng Guo <xuepeng.guo@intel.com>
7413 * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
7415 * config/i386/cpuid.h (bit_FMA): New.
7416 (bit_XSAVE): Likewise.
7417 (bit_OSXSAVE): Likewise.
7418 (bit_AVX): Likewise.
7420 * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
7421 define. Use ASM_OUTPUT_AVX_PREFIX.
7423 * config/i386/gmmintrin.h: New.
7425 * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
7426 (OPTION_MASK_ISA_AVX_SET): New.
7427 (OPTION_MASK_ISA_FMA_SET): Likewise.
7428 (OPTION_MASK_ISA_AVX_UNSET): Likewise.
7429 (OPTION_MASK_ISA_FMA_SET): Likewise.
7430 (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
7431 (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
7432 (pta_flags): Add PTA_AVX and PTA_FMA.
7433 (override_options): Handle PTA_AVX and PTA_FMA.
7434 (init_cumulative_args): Handle warn_avx.
7435 (classify_argument): Return 0 for COImode and OImode. Return
7436 1 and X86_64_AVX_CLASS for 256bit vector types.
7437 (examine_argument): Handle X86_64_AVX_CLASS.
7438 (construct_container): Likewise.
7439 (function_arg_advance_32): Pass OImode and 256bit vector types
7441 (function_arg_advance_64): Take a new argument to indicate if a
7442 parameter is named. Handle 256bit vector types. Return
7443 immediately for unnamed 256bit vector mode parameters.
7444 (function_arg_advance): Updated.
7445 (function_arg_32): Add comments for TImode. Handle OImode
7446 and 256bit vector types.
7447 (function_arg_64): Take a new argument to indicate if a
7448 parameter is named. Handle 256bit vector types. Return NULL
7449 for unnamed 256bit vector mode parameters.
7450 (function_arg): Updated.
7451 (setup_incoming_varargs_64): Support
7452 AVX encoding for *sse_prologue_save_insn.
7453 (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
7454 (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
7455 enabled. For all 1s in 256bit vector modes, return 3 if AVX is
7456 enabled, otherwise return -3.
7457 (standard_sse_constant_opcode): Handle AVX and 256bit vector
7459 (print_reg): Support AVX registers. Handle 'x' and 't'.
7460 Handle 'd' to duplicate the operand.
7461 (print_operand): Likewise. Also support AVX vector compare
7463 (output_387_binary_op): Support AVX.
7464 (output_fp_compare): Likewise.
7465 (ix86_expand_vector_move_misalign): Likewise.
7466 (ix86_attr_length_vex_default): New.
7467 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
7468 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
7469 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
7470 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
7471 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
7472 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
7473 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
7474 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
7475 IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
7476 IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
7477 IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
7478 IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
7479 IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
7480 IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
7481 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
7482 IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
7483 IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
7484 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
7485 IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
7486 IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
7487 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
7488 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
7489 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
7490 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
7491 IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
7492 IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
7493 IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
7494 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
7495 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
7496 IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
7497 IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
7498 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
7499 IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
7500 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
7501 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
7502 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
7503 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
7504 IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
7505 IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
7506 IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
7507 IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
7508 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
7509 IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
7510 IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
7511 IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
7512 IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
7513 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
7514 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
7515 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
7516 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
7517 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
7518 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
7519 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
7520 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
7521 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
7522 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
7523 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
7524 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
7525 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
7526 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
7527 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
7528 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
7529 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
7530 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
7531 and IX86_BUILTIN_MOVMSKPS256,
7532 (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
7533 V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
7534 V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
7535 V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
7536 V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
7537 VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
7538 VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
7539 VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
7540 (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
7541 INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
7542 INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
7543 INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
7544 V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
7545 V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
7546 V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
7547 V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
7548 V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
7549 V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
7550 V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
7551 V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
7552 V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
7553 V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
7554 V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
7555 V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
7556 V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
7557 V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
7558 (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
7559 IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
7560 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
7561 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
7562 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
7563 IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
7564 IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
7565 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
7566 IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
7567 IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
7568 IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
7569 IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
7570 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
7571 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
7572 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
7573 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
7574 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
7575 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
7576 IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
7577 IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
7578 IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
7579 IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
7580 IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
7581 IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
7582 IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
7583 IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
7584 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
7585 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
7586 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
7587 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
7588 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
7589 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
7591 IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
7592 IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
7593 IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
7594 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
7595 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
7596 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
7597 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
7598 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
7599 IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
7600 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
7601 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
7602 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
7603 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
7604 IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
7605 IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
7606 IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
7607 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
7608 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
7609 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
7610 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
7611 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
7612 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
7613 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
7614 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
7615 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
7616 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
7617 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
7618 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
7619 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
7620 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
7621 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
7622 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
7623 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
7624 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
7625 IX86_BUILTIN_MOVMSKPS256.
7626 (ix86_init_mmx_sse_builtins): Support AVX builtins.
7627 (ix86_expand_args_builtin): Likewise.
7628 (ix86_expand_special_args_builtin): Likewise.
7629 (ix86_hard_regno_mode_ok): Handle AVX modes.
7630 (ix86_expand_vector_init_duplicate): Likewise.
7631 (ix86_expand_vector_init_one_nonzero): Likewise.
7632 (ix86_expand_vector_init_one_var): Likewise.
7633 (ix86_expand_vector_init_concat): Likewise.
7634 (ix86_expand_vector_init_general): Likewise.
7635 (ix86_expand_vector_set): Likewise.
7636 (ix86_vector_mode_supported_p): Likewise.
7637 (x86_extended_reg_mentioned_p): Check INSN_P before using
7640 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7641 OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
7643 * config/i386/i386.h (TARGET_AVX): New.
7644 (TARGET_FMA): Likewise.
7645 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
7646 (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
7647 (VALID_AVX256_REG_MODE): New.
7648 (AVX256_VEC_FLOAT_MODE_P): Likewise.
7649 (AVX_FLOAT_MODE_P): Likewise.
7650 (AVX128_VEC_FLOAT_MODE_P): Likewise.
7651 (AVX256_VEC_FLOAT_MODE_P): Likewise.
7652 (AVX_VEC_FLOAT_MODE_P): Likewise.
7653 (ASM_OUTPUT_AVX_PREFIX): Likewise.
7654 (ASM_OUTPUT_OPCODE): Likewise.
7655 (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
7657 (SSE_REG_MODE_P): Allow 256bit vector modes.
7658 (ix86_args): Add a warn_avx field.
7660 * config/i386/i386.md (UNSPEC_PCMP): New.
7661 (UNSPEC_VPERMIL): Likewise.
7662 (UNSPEC_VPERMIL2): Likewise.
7663 (UNSPEC_VPERMIL2F128): Likewise.
7664 (UNSPEC_MASKLOAD): Likewise.
7665 (UNSPEC_MASKSTORE): Likewise.
7666 (UNSPEC_CAST): Likewise.
7667 (UNSPEC_VTESTP): Likewise.
7668 (UNSPECV_VZEROALL): Likewise.
7669 (UNSPECV_VZEROUPPER): Likewise.
7670 (XMM0_REG): Likewise.
7671 (XMM1_REG): Likewise.
7672 (XMM2_REG): Likewise.
7673 (XMM3_REG): Likewise.
7674 (XMM4_REG): Likewise.
7675 (XMM5_REG): Likewise.
7676 (XMM6_REG): Likewise.
7677 (XMM8_REG): Likewise.
7678 (XMM9_REG): Likewise.
7679 (XMM10_REG): Likewise.
7680 (XMM11_REG): Likewise.
7681 (XMM12_REG): Likewise.
7682 (XMM13_REG): Likewise.
7683 (XMM14_REG): Likewise.
7684 (XMM15_REG): Likewise.
7686 (prefix_vex_imm8): Likewise.
7687 (prefix_vex_w): Likewise.
7688 (length_vex): Likewise.
7691 (*avx_ashlti3): Likewise.
7692 (*avx_lshrti3): Likewise.
7693 (*avx_setcc<mode>): Likewise.
7694 (*fop_<mode>_comm_mixed_avx): Likewise.
7695 (*fop_<mode>_comm_avx): Likewise.
7696 (*fop_<mode>_1_mixed_avx): Likewise.
7697 (*fop_<mode>_1_avx): Likewise.
7698 (*avx_<code><mode>3): Likewise.
7699 (*avx_ieee_smin<mode>3): Likewise.
7700 (*avx_ieee_smax<mode>3): Likewise.
7701 (mode): Add OI, V8SF and V4DF.
7702 (length): Support VEX prefix.
7703 (*cmpfp_i_mixed): Set prefix attribute.
7704 (*cmpfp_i_sse): Likewise.
7705 (*cmpfp_iu_mixed): Likewise.
7706 (*cmpfp_iu_sse): Likewise.
7707 (*movsi_1): Support AVX.
7708 (*movdi_2): Likewise.
7709 (*movdi_1_rex64): Likewise.
7710 (*movti_internal): Likewise.
7711 (*movti_rex64): Likewise.
7712 (*movsf_1): Likewise.
7713 (*movdf_nointeger): Likewise.
7714 (*movdf_integer_rex64): Likewise.
7715 (*movtf_internal): Likewise.
7716 (zero_extendsidi2_32): Likewise.
7717 (zero_extendsidi2_rex64): Likewise.
7718 (*extendsfdf2_mixed): Likewise.
7719 (*extendsfdf2_sse): Likewise.
7720 (*truncdfsf_fast_mixed): Likewise.
7721 (*truncdfsf_fast_sse): Likewise.
7722 (*truncdfsf_mixed): Likewise.
7723 (fix_trunc<mode>di_sse): Likewise.
7724 (fix_trunc<mode>si_sse): Likewise.
7725 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
7726 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
7727 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
7728 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
7729 (*rcpsf2_sse): Likewise.
7730 (*rsqrtsf2_sse): Likewise.
7731 (*sqrt<mode>2_sse): Likewise.
7732 (sse4_1_round<mode>2): Likewise.
7733 (*sse_prologue_save_insn): Disallow REX prefix for AVX.
7734 Support AVX. Set length attribute properly for AVX.
7736 * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
7737 (VECTOR_MODES (FLOAT, 32)): Likewise.
7738 (VECTOR_MODE (INT, DI, 8)): Likewise.
7739 (VECTOR_MODE (INT, HI, 32)): Likewise.
7740 (VECTOR_MODE (INT, QI, 64)): Likewise.
7741 (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
7742 (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
7743 (VECTOR_MODE (INT, DI, 4)): Removed.
7744 (VECTOR_MODE (INT, SI, 8)): Likewise.
7745 (VECTOR_MODE (INT, HI, 16)): Likewise.
7746 (VECTOR_MODE (INT, QI, 32)): Likewise.
7747 (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
7748 (INT_MODE (OI, 32)): Likewise.
7750 * config/i386/i386.opt (mavx): New.
7753 * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
7755 * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
7756 (*mov<mode>_internal_avx): New.
7757 (*movv2sf_internal_rex64_avx): Likewise.
7758 (*movv2sf_internal_avx): Likewise.
7760 * config/i386/predicates.md (const_4_to_5_operand): New.
7761 (const_6_to_7_operand): Likewise.
7762 (const_8_to_11_operand): Likewise.
7763 (const_12_to_15_operand): Likewise.
7764 (avx_comparison_float_operator): Likewise.
7766 * config/i386/sse.md (AVX256MODEI): New.
7767 (AVX256MODE): Likewise.
7768 (AVXMODEQI): Likewise.
7769 (AVXMODE): Likewise.
7770 (AVX256MODEF2P): Likewise.
7771 (AVX256MODE2P): Likewise.
7772 (AVX256MODE4P): Likewise.
7773 (AVX256MODE8P): Likewise.
7774 (AVXMODEF2P): Likewise.
7775 (AVXMODEF4P): Likewise.
7776 (AVXMODEDCVTDQ2PS): Likewise.
7777 (AVXMODEDCVTPS2DQ): Likewise.
7778 (avxvecmode): Likewise.
7779 (avxvecpsmode): Likewise.
7780 (avxhalfvecmode): Likewise.
7781 (avxscalarmode): Likewise.
7782 (avxcvtvecmode): Likewise.
7783 (avxpermvecmode): Likewise.
7784 (avxmodesuffixf2c): Likewise.
7785 (avxmodesuffixp): Likewise.
7786 (avxmodesuffixs): Likewise.
7787 (avxmodesuffix): Likewise.
7788 (vpermilbits): Likewise.
7789 (pinsrbits): Likewise.
7790 (mov<mode>): Likewise.
7791 (*mov<mode>_internal): Likewise.
7792 (push<mode>1): Likewise.
7793 (movmisalign<mode>): Likewise.
7794 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7795 (avx_movdqu<avxmodesuffix>): Likewise.
7796 (avx_lddqu<avxmodesuffix>): Likewise.
7797 (<plusminus_insn><mode>3): Likewise.
7798 (*avx_<plusminus_insn><mode>3): Likewise.
7799 (*avx_vm<plusminus_insn><mode>3): Likewise.
7800 (mul<mode>3): Likewise.
7801 (*avx_mul<mode>3): Likewise.
7802 (*avx_vmmul<mode>3): Likewise.
7803 (divv8sf3): Likewise.
7804 (divv4df3): Likewise.
7805 (avx_div<mode>3): Likewise.
7806 (*avx_div<mode>3): Likewise.
7807 (*avx_vmdiv<mode>3): Likewise.
7808 (avx_rcpv8sf2): Likewise.
7809 (*avx_vmrcpv4sf2): Likewise.
7810 (sqrtv8sf2): Likewise.
7811 (avx_sqrtv8sf2): Likewise.
7812 (*avx_vmsqrt<mode>2): Likewise.
7813 (rsqrtv8sf2): Likewise.
7814 (avx_rsqrtv8sf2): Likewise.
7815 (*avx_vmrsqrtv4sf2): Likewise.
7816 (<code><mode>3): Likewise.
7817 (*avx_<code><mode>3_finite): Likewise.
7818 (*avx_<code><mode>3): Likewise.
7819 (*avx_vm<code><mode>3): Likewise.
7820 (*avx_ieee_smin<mode>3): Likewise.
7821 (*avx_ieee_smax<mode>3): Likewise.
7822 (avx_addsubv8sf3): Likewise.
7823 (avx_addsubv4df3): Likewise.
7824 (*avx_addsubv4sf3): Likewise.
7825 (*avx_addsubv2df3): Likewise.
7826 (avx_h<plusminus_insn>v4df3): Likewise.
7827 (avx_h<plusminus_insn>v8sf3): Likewise.
7828 (*avx_h<plusminus_insn>v4sf3): Likewise.
7829 (*avx_h<plusminus_insn>v2df3): Likewise.
7830 (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
7831 (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
7832 (*avx_maskcmp<mode>3): Likewise.
7833 (avx_nand<mode>3): Likewise.
7834 (*avx_<code><mode>3): Likewise.
7835 (*avx_nand<mode>3): Likewise.
7836 (*avx_<code><mode>3): Likewise.
7837 (*avx_cvtsi2ss): Likewise.
7838 (*avx_cvtsi2ssq): Likewise.
7839 (*avx_cvtsi2sd): Likewise.
7840 (*avx_cvtsi2sdq): Likewise.
7841 (*avx_cvtsd2ss): Likewise.
7842 (avx_cvtss2sd): Likewise.
7843 (avx_cvtdq2ps<avxmodesuffix>): Likewise.
7844 (avx_cvtps2dq<avxmodesuffix>): Likewise.
7845 (avx_cvttps2dq<avxmodesuffix>): Likewise.
7846 (*avx_cvtsi2sd): Likewise.
7847 (*avx_cvtsi2sdq): Likewise.
7848 (avx_cvtdq2pd256): Likewise.
7849 (avx_cvtpd2dq256): Likewise.
7850 (avx_cvttpd2dq256): Likewise.
7851 (*avx_cvtsd2ss): Likewise.
7852 (*avx_cvtss2sd): Likewise.
7853 (avx_cvtpd2ps256): Likewise.
7854 (avx_cvtps2pd256): Likewise.
7855 (*avx_movhlps): Likewise.
7856 (*avx_movlhps): Likewise.
7857 (avx_unpckhps256): Likewise.
7858 (*avx_unpckhps): Likewise.
7859 (avx_unpcklps256): Likewise.
7860 (*avx_unpcklps): Likewise.
7861 (avx_movshdup256): Likewise.
7862 (avx_movsldup256): Likewise.
7863 (avx_shufps256): Likewise.
7864 (avx_shufps256_1): Likewise.
7865 (*avx_shufps_<mode>): Likewise.
7866 (*avx_loadhps): Likewise.
7867 (*avx_storelps): Likewise.
7868 (*avx_loadlps): Likewise.
7869 (*avx_movss): Likewise.
7870 (*vec_dupv4sf_avx): Likewise.
7871 (*vec_concatv2sf_avx): Likewise.
7872 (*vec_concatv4sf_avx): Likewise.
7873 (*vec_setv4sf_0_avx): Likewise.
7874 (*vec_setv4sf_avx): Likewise.
7875 (*avx_insertps): Likewise.
7876 (avx_vextractf128<mode>): Likewise.
7877 (vec_extract_lo_<mode>): Likewise.
7878 (vec_extract_hi_<mode>): Likewise.
7879 (vec_extract_lo_<mode>): Likewise.
7880 (vec_extract_hi_<mode>): Likewise.
7881 (vec_extract_lo_v16hi): Likewise.
7882 (vec_extract_hi_v16hi): Likewise.
7883 (vec_extract_lo_v32qi): Likewise.
7884 (vec_extract_hi_v32qi): Likewise.
7885 (avx_unpckhpd256): Likewise.
7886 (*avx_unpckhpd): Likewise.
7887 (avx_movddup256): Likewise.
7888 (*avx_movddup): Likewise.
7889 (avx_unpcklpd256): Likewise.
7890 (*avx_unpcklpd): Likewise.
7891 (avx_shufpd256): Likewise.
7892 (avx_shufpd256_1): Likewise.
7893 (*avx_punpckhqdq): Likewise.
7894 (*avx_punpcklqdq): Likewise.
7895 (*avx_shufpd_<mode>): Likewise.
7896 (*avx_storehpd): Likewise.
7897 (*avx_loadhpd): Likewise.
7898 (*avx_loadlpd): Likewise.
7899 (*avx_movsd): Likewise.
7900 (*vec_concatv2df_avx): Likewise.
7901 (*avx_<plusminus_insn><mode>3): Likewise.
7902 (*avx_<plusminus_insn><mode>3): Likewise.
7903 (*avx_mulv8hi3): Likewise.
7904 (*avxv8hi3_highpart): Likewise.
7905 (*avx_umulv8hi3_highpart): Likewise.
7906 (*avx_umulv2siv2di3): Likewise.
7907 (*avx_mulv2siv2di3): Likewise.
7908 (*avx_pmaddwd): Likewise.
7909 (*avx_mulv4si3): Likewise.
7910 (*avx_ashr<mode>3): Likewise.
7911 (*avx_lshr<mode>3): Likewise.
7912 (*avx_ashl<mode>3): Likewise.
7913 (*avx_<code><mode>3): Likewise.
7914 (*avx_eq<mode>3): Likewise.
7915 (*avx_gt<mode>3): Likewise.
7916 (*avx_nand<mode>3): Likewise.
7917 (*avx_nand<mode>3): Likewise.
7918 (*avx_<code><mode>3): Likewise.
7919 (*avx_<code><mode>3): Likewise.
7920 (*avx_packsswb): Likewise.
7921 (*avx_packssdw): Likewise.
7922 (*avx_packuswb): Likewise.
7923 (*avx_punpckhbw): Likewise.
7924 (*avx_punpcklbw): Likewise.
7925 (*avx_punpckhwd): Likewise.
7926 (*avx_punpcklwd): Likewise.
7927 (*avx_punpckhdq): Likewise.
7928 (*avx_punpckldq): Likewise.
7929 (*avx_pinsr<avxmodesuffixs>): Likewise.
7930 (*avx_pinsrq): Likewise.
7931 (*avx_loadld): Likewise.
7932 (*vec_extractv2di_1_rex64_avx): Likewise.
7933 (*vec_extractv2di_1_avx): Likewise.
7934 (*vec_dupv2di_avx): Likewise.
7935 (*vec_concatv2si_avx): Likewise.
7936 (*vec_concatv4si_1_avx): Likewise.
7937 (*vec_concatv2di_avx): Likewise.
7938 (*vec_concatv2di_rex64_avx): Likewise.
7939 (*avx_uavgv16qi3): Likewise.
7940 (*avx_uavgv8hi3): Likewise.
7941 (*avx_psadbw): Likewise.
7942 (avx_movmskp<avxmodesuffixf2c>256): Likewise.
7943 (*avx_phaddwv8hi3): Likewise.
7944 (*avx_phadddv4si3): Likewise.
7945 (*avx_phaddswv8hi3): Likewise.
7946 (*avx_phsubwv8hi3): Likewise.
7947 (*avx_phsubdv4si3): Likewise.
7948 (*avx_phsubswv8hi3): Likewise.
7949 (*avx_pmaddubsw128): Likewise.
7950 (*avx_pmulhrswv8hi3): Likewise.
7951 (*avx_pshufbv16qi3): Likewise.
7952 (*avx_psign<mode>3): Likewise.
7953 (*avx_palignrti): Likewise.
7954 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7955 (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7956 (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7957 (*avx_mpsadbw): Likewise.
7958 (*avx_packusdw): Likewise.
7959 (*avx_pblendvb): Likewise.
7960 (*avx_pblendw): Likewise.
7961 (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7962 (avx_ptest256): Likewise.
7963 (avx_roundp<avxmodesuffixf2c>256): Likewise.
7964 (*avx_rounds<ssemodesuffixf2c>): Likewise.
7965 (*avx_aesenc): Likewise.
7966 (*avx_aesenclast): Likewise.
7967 (*avx_aesdec): Likewise.
7968 (*avx_aesdeclast): Likewise.
7969 (avx_vzeroupper): Likewise.
7970 (avx_vzeroupper_rex64): Likewise.
7971 (avx_vpermil<mode>): Likewise.
7972 (avx_vpermilvar<mode>3): Likewise.
7973 (avx_vpermil2<mode>3): Likewise.
7974 (avx_vperm2f128<mode>3): Likewise.
7975 (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7976 (avx_vbroadcastss256): Likewise.
7977 (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
7978 (avx_vinsertf128<mode>): Likewise.
7979 (vec_set_lo_<mode>): Likewise.
7980 (vec_set_hi_<mode>): Likewise.
7981 (vec_set_lo_<mode>): Likewise.
7982 (vec_set_hi_<mode>): Likewise.
7983 (vec_set_lo_v16hi): Likewise.
7984 (vec_set_hi_v16hi): Likewise.
7985 (vec_set_lo_v32qi): Likewise.
7986 (vec_set_hi_v32qi): Likewise.
7987 (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7988 (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
7989 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
7990 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
7991 (vec_init<mode>): Likewise.
7992 (*vec_concat<mode>_avx): Likewise.
7993 (blendbits): Support V8SF and V4DF.
7994 (sse2_movq128): Support AVX.
7995 (<sse>_movnt<mode>): Likewise.
7996 (sse2_movntv2di): Likewise.
7997 (sse_rcpv4sf2): Likewise.
7998 (sse_sqrtv4sf2): Likewise.
7999 (sse_rsqrtv4sf2): Likewise.
8000 (<sse>_comi): Likewise.
8001 (<sse>_ucomi): Likewise.
8002 (sse_cvtss2si): Likewise.
8003 (sse_cvtss2si_2): Likewise.
8004 (sse_cvtss2siq): Likewise.
8005 (sse_cvtss2siq_2): Likewise.
8006 (sse_cvttss2si): Likewise.
8007 (sse_cvttss2siq): Likewise.
8008 (sse2_cvtsd2si): Likewise.
8009 (sse2_cvtsd2si_2): Likewise.
8010 (sse2_cvtsd2siq): Likewise.
8011 (sse2_cvtsd2siq_2): Likewise.
8012 (sse2_cvttsd2si): Likewise.
8013 (sse2_cvttsd2siq): Likewise.
8014 (sse2_cvtdq2pd): Likewise.
8015 (*sse2_cvtpd2dq): Likewise.
8016 (*sse2_cvttpd2dq): Likewise.
8017 (*sse2_cvtpd2ps): Likewise.
8018 (sse2_cvtps2pd): Likewise.
8019 (sse3_movshdup): Likewise.
8020 (sse3_movsldup): Likewise.
8021 (sse_storehps): Likewise.
8022 (*sse4_1_extractps): Likewise.
8023 (sse2_storelpd): Likewise.
8024 (vec_dupv2df_sse3): Likewise.
8025 (*vec_concatv2df_sse3): Likewise.
8026 (*sse4_1_pextrb): Likewise.
8027 (*sse4_1_pextrb_memory): Likewise.
8028 (*sse2_pextrw): Likewise.
8029 (*sse4_1_pextrw_memory): Likewise.
8030 (*sse4_1_pextrd): Likewise.
8031 (*sse4_1_pextrq): Likewise.
8032 (sse2_pshufd_1): Likewise.
8033 (sse2_pshuflw_1): Likewise.
8034 (sse2_pshufhw_1): Likewise.
8035 (*sse2_storeq_rex64): Likewise.
8036 (*vec_dupv4si): Likewise.
8037 (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
8038 (sse2_pmovmskb): Likewise.
8039 (*sse2_maskmovdqu): Likewise.
8040 (*sse2_maskmovdqu_rex64): Likewise.
8041 (sse_ldmxcsr): Likewise.
8042 (sse_stmxcsr): Likewise.
8043 (abs<mode>2): Likewise.
8044 (sse4_1_movntdqa): Likewise.
8045 (sse4_1_phminposuw): Likewise.
8046 (sse4_1_extendv8qiv8hi2): Likewise.
8047 (*sse4_1_extendv8qiv8hi2): Likewise.
8048 (sse4_1_extendv4qiv4si2): Likewise.
8049 (*sse4_1_extendv4qiv4si2): Likewise.
8050 (sse4_1_extendv2qiv2di2): Likewise.
8051 (*sse4_1_extendv2qiv2di2): Likewise.
8052 (sse4_1_extendv4hiv4si2): Likewise.
8053 (*sse4_1_extendv4hiv4si2): Likewise.
8054 (sse4_1_extendv2hiv2di2): Likewise.
8055 (*sse4_1_extendv2hiv2di2): Likewise.
8056 (sse4_1_extendv2siv2di2): Likewise.
8057 (*sse4_1_extendv2siv2di2): Likewise.
8058 (sse4_1_zero_extendv8qiv8hi2): Likewise.
8059 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
8060 (sse4_1_zero_extendv4qiv4si2): Likewise.
8061 (*sse4_1_zero_extendv4qiv4si2): Likewise.
8062 (sse4_1_zero_extendv2qiv2di2): Likewise.
8063 (*sse4_1_zero_extendv2qiv2di2): Likewise.
8064 (sse4_1_zero_extendv4hiv4si2): Likewise.
8065 (*sse4_1_zero_extendv4hiv4si2): Likewise.
8066 (sse4_1_zero_extendv2hiv2di2): Likewise.
8067 (*sse4_1_zero_extendv2hiv2di2): Likewise.
8068 (sse4_1_zero_extendv2siv2di2): Likewise.
8069 (*sse4_1_zero_extendv2siv2di2): Likewise.
8070 (sse4_1_ptest): Likewise.
8071 (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
8072 (sse4_2_pcmpestri): Likewise.
8073 (sse4_2_pcmpestrm): Likewise.
8074 (sse4_2_pcmpistri): Likewise.
8075 (sse4_2_pcmpistrm): Likewise.
8077 (aeskeygenassist): Likewise.
8079 2008-08-28 Uros Bizjak <ubizjak@gmail.com>
8081 * config/i386/predicates.md (vzeroall_operation): New.
8083 * config/i386/sse.md (avx_vzeroall): New.
8084 (*avx_vzeroall): Likewise.
8086 2008-08-28 Paul Brook <paul@codesourcery.com>
8087 Mark Shinwell <shinwell@codesourcery.com>
8088 Richard Earnshaw <richard.earnshaw@arm.com>
8090 * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
8091 (TARGET_MIN_ANCHOR_OFFSET): New.
8092 (arm_override_options): Set correct anchor ranges for Thumb-1
8093 and Thumb-2 if required.
8094 (legitimize_pic_address): Handle case involving a TLS symbol
8095 reference with an addend.
8096 (arm_optimization_options): Enable section anchors at -O1 and
8098 * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
8099 * config/arm/arm-protos.h (arm_optimization_options): New.
8101 2008-08-28 Nick Clifton <nickc@redhat.com>
8103 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
8104 * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
8107 * config/v850/v850.h (IRA_COVER_CLASSES): Define.
8108 * config/v850/v850.md (return): Remove frame size restriction.
8110 * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
8112 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
8114 * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
8116 * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
8118 2008-08-28 Paul Brook <paul@codesourcery.com>
8120 * config/arm/vfp11.md: Update license notice.
8121 * config/arm/cortex-r4.md: Ditto.
8123 2008-08-28 Richard Guenther <rguenther@suse.de>
8125 PR tree-optimization/37207
8126 * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
8129 2008-08-28 Dodji Seketeli <dodji@redhat.com>
8132 * tree.c (int_fits_type_p): Don't forget unsigned integers
8133 of type sizetype which higher end word equals -1.
8135 2008-08-28 Ira Rosen <irar@il.ibm.com>
8137 * target.h (struct vectorize): Add new target builtin.
8138 * tree-vectorizer.c (destroy_loop_vec_info): Call
8139 vect_free_slp_instance instead of vect_free_slp_node.
8140 * tree-vectorizer.h (enum slp_load_perm_type): New.
8141 (struct _slp_instance): Add new fields.
8142 (SLP_INSTANCE_LOAD_PERMUTATION): New.
8143 (SLP_INSTANCE_LOADS): New.
8144 (vect_free_slp_tree): Remove.
8145 (vect_free_slp_instance): Declare.
8146 (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
8147 (vectorizable_load): Add argument.
8148 (vect_transform_slp_perm_load): New.
8149 * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
8151 (vect_get_place_in_interleaving_chain): New function.
8152 (vect_free_slp_tree): Make static.
8153 (vect_free_slp_instance): New function.
8154 (vect_build_slp_tree): Add new arguments. Allow load permutations and
8155 collect the load location in the interleaving chain.
8156 (vect_supported_slp_permutation_p): New function.
8157 (vect_supported_load_permutation_p): Likewise.
8158 (vect_analyze_slp_instance): In case of loads permutation, call
8159 vect_supported_load_permutation_p to check that the permutation is
8161 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
8162 * tree-vect-transform.c (vect_transform_stmt): Add new argument.
8163 (vect_create_mask_and_perm): New function.
8164 (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
8165 (vectorizable_load): Add an argument. Don't keep the created vectors
8166 statements in the node if permutation is required. Call
8167 vect_transform_slp_perm_load to generate the permutation.
8168 (vect_transform_stmt): Add new argument. Call vectorizable_load with
8169 additional argument.
8170 (vect_schedule_slp_instance): In case of loads permutation, allocate
8171 vectorized statements structure for all the related SLP nodes. Call
8172 vect_transform_stmt with addditional argument.
8173 (vect_transform_loop): Call vect_transform_stmt with correct arguments.
8174 * config/spu/spu.c (spu_builtin_vec_perm): New.
8175 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
8176 * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
8177 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
8178 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
8180 2008-08-28 Chris Fairles <chris.fairles@gmail.com>
8182 * gthr-posix.h (__gthread_create, __gthread_join, __gthread_detach,
8183 __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
8184 __gthread_cond_signal, __gthread_cond_timedwait,
8185 __gthread_cond_timedwait_recursive): New functions.
8186 * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
8188 * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
8191 2008-08-28 Richard Guenther <rguenther@suse.de>
8194 * fold-const.c (maybe_canonicalize_comparison_1): Require
8195 undefined overflow only for canonicalizing A +- CST cmp CST.
8196 Make sure to not generate new constants that are not inside
8197 their TYPE_MIN/MAX_VALUE range.
8198 (maybe_canonicalize_comparison): Remove undefined overflow
8200 (fold_binary): Remove now duplicate folding.
8202 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
8204 * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
8205 use not updated in the last change.
8207 2008-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
8209 * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
8210 (IRA_COVER_CLASSES): Add FPUL_REGS.
8212 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8215 * c-common.c (conversion_warning): Check for null operands.
8217 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8220 * c-decl.c (check_for_loop_decls): Improve error message. Give
8223 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8226 * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
8227 (convert_for_assignment): Pass corrent OPT_W* parameter to
8228 WARN_FOR_ASSIGNMENT.
8230 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
8233 * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
8235 2008-08-27 Paul Brook <paul@codesourcery.com>
8237 * config.gcc: Loosen checks for arm uclinux eabi targets.
8239 2008-08-27 Paul Brook <paul@codesourcery.com>
8241 * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
8243 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
8245 2008-08-26 Douglas Gregor <doug.gregor@gmail.com>
8247 * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
8248 the enumerators of an ENUMERAL_TYPE.
8249 * dbxout.c (dbxout_type): Ditto.
8251 2008-08-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
8254 * fwprop.c (fwprop): Check that the loop_father is the outer loop.
8255 (fwprop_addr): Check that the loop_father is not the outer loop.
8257 2008-08-26 Paul Brook <paul@codesourcery.com>
8259 * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
8260 Remove documentation entry for fmul type.
8261 Use fmuls to annotate single-precision multiplication patterns,
8262 fmuld to annotate double-precision multiplication patterns,
8263 fmacs to annotate single-precision multiply-accumulate patterns
8264 and fmacd to annotate double-precision multiply-accumulate patterns.
8265 * config/arm/vfp11.md: Update reservations accordingly.
8266 * config/arm/arm.md: Note that certain values of the "type"
8267 attribute are documented in vfp.md.
8268 * config/arm/arm1020e.md: Remove out of date duplicate comment.
8269 (v10_cvt): Use new fmul types.
8271 2008-08-26 Paul Brook <paul@codesourcery.com>
8273 * config/arm/vfp.md: Move pipeline description for VFP11 to...
8274 * config/arm/vfp11.md: ...here. New.
8275 * config/arm/arm.md: Include vfp11.md.
8277 2008-08-26 Hans-Peter Nilsson <hp@axis.com>
8279 * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
8280 parameter to inform call.
8282 2008-08-26 Jeff Law <law@redhat.com>
8284 * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
8285 avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
8286 preferred class when copying a constant into a partial word register.
8288 2008-08-26 Ben Elliston <bje@au.ibm.com>
8290 * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
8291 * cp/typeck.c: Likewise.
8292 * cp/tree.c: Likewise.
8293 * gimple-low.c: Likewise.
8296 2008-08-26 Vladimir Makarov <vmakarov@redhat.com>
8298 * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
8299 ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
8301 * doc/passes.texi: Describe IRA.
8303 * doc/tm.texi (IRA_COVER_CLASSES,
8304 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
8306 * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
8307 (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
8308 -fira-propagate-cost, -fno-ira-share-save-slots,
8309 -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
8311 * flags.h (ira_algorithm): New enumeration.
8312 (flag_ira_algorithm, flag_ira_verbose): New external variable
8315 * postreload.c (gate_handle_postreload): Don't do post reload
8316 optimizations unless the reload is completed.
8318 * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
8321 * tree-pass.h (pass_ira): New external variable declaration.
8323 * reload.h: Add 2008 to the Copyright.
8325 * cfgloopanal.c: Include params.h.
8326 (estimate_reg_pressure_cost): Decrease cost for IRA optimization
8329 * params.h (IRA_MAX_LOOPS_NUM): New macro.
8331 * toplev.c (ira.h): New include.
8332 (flag_ira_algorithm, flag_ira_verbose): New external variables.
8333 (backend_init_target): Call ira_init.
8334 (backend_init): Call ira_init_once.
8335 (finalize): Call finish_ira_once.
8337 * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
8338 flag_ira_share_save_slots, flag_ira_share_spill_slots): New
8341 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
8342 may_move_out_cost): New external variable declarations.
8343 (move_table): New typedef.
8345 * caller-save.c: Include headers output.h and ira.h.
8346 (no_caller_save_reg_set): New global variable.
8347 (save_slots_num, save_slots): New variables.
8348 (reg_save_code, reg_restore_code, add_stored_regs): Add
8350 (init_caller_save): Set up no_caller_save_reg_set.
8351 (init_save_areas): Reset save_slots_num.
8352 (saved_hard_reg): New structure.
8353 (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
8354 (initiate_saved_hard_regs, new_saved_hard_reg,
8355 finish_saved_hard_regs, saved_hard_reg_compare_func): New
8357 (setup_save_areas): Add code for sharing stack slots.
8358 (all_blocks): New variable.
8359 (save_call_clobbered_regs): Process pseudo-register too.
8360 (mark_set_regs): Process pseudo-register too.
8361 (insert_one_insn): Put the insn after bb note in a empty basic
8362 block. Add insn check.
8364 * global.c (eliminable_regset): Make it external.
8365 (mark_elimination): Use DF_LR_IN for IRA.
8366 (pseudo_for_reload_consideration_p): New.
8367 (build_insn_chain): Make it external. Don't ignore spilled
8368 pseudos for IRA. Use pseudo_for_reload_consideration_p.
8369 (gate_handle_global_alloc): New function.
8370 (pass_global_alloc): Add the gate function.
8372 * opts.c (decode_options): Set up flag_ira. Print the warning for
8374 (common_handle_option): Process -fira-algorithm and -fira-verbose.
8376 * timevar.def (TV_IRA, TV_RELOAD): New passes.
8378 * regmove.c (regmove_optimize): Don't do replacement of output for
8381 * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
8382 New external variable declarations.
8384 * local-alloc.c (update_equiv_regs): Make it external. Return
8385 true if jump label rebuilding should be done. Rescan new_insn for
8387 (gate_handle_local_alloc): New function.
8388 (pass_local_alloc): Add the gate function.
8390 * alias.c (value_addr_p, stack_addr_p): New functions.
8391 (nonoverlapping_memrefs_p): Use them for IRA.
8393 * common.opt (fira, fira-algorithm, fira-coalesce,
8394 fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
8395 fira-verbose): New options.
8397 * regclass.c (reg_class_subclasses, contains_reg_of_mode,
8398 move_cost, may_move_in_cost, may_move_out_cost): Make the
8400 (move_table): Remove typedef.
8401 (init_move_cost): Make it external.
8402 (allocate_reg_info, resize_reg_info, setup_reg_classes): New
8405 * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
8406 setup_reg_classes): New function prototypes.
8407 (eliminable_regset): New external variable declaration.
8408 (build_insn_chain, update_equiv_regs): New function prototypes.
8410 * Makefile.in (IRA_INT_H): New definition.
8411 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
8412 ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
8413 (reload1.o, toplev.o): Add dependence on ira.h.
8414 (cfgloopanal.o): Add PARAMS_H.
8415 (caller-save.o): Add dependence on output.h and ira.h.
8416 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
8417 ira-emit.o, ira-lives.o): New entries.
8419 * passes.c (pass_ira): New pass.
8421 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
8423 * reload1.c (ira.h): Include the header.
8424 (changed_allocation_pseudos): New bitmap.
8425 (init_reload): Initiate the bitmap.
8426 (compute_use_by_pseudos): Permits spilled registers in FROM.
8427 (temp_pseudo_reg_arr): New variable.
8428 (reload): Allocate and free temp_pseudo_reg_arr. Sort pseudos for
8429 IRA. Call alter_reg with the additional parameter. Don't clear
8430 spilled_pseudos for IRA. Restore original insn chain for IRA.
8431 Clear changed_allocation_pseudos at the end of reload.
8432 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
8433 (hard_regno_to_pseudo_regno): New variable.
8434 (count_pseudo): Check spilled pseudos. Set up
8435 hard_regno_to_pseudo_regno.
8436 (count_spilled_pseudo): Check spilled pseudos. Update
8437 hard_regno_to_pseudo_regno.
8438 (find_reg): Use better_spill_reload_regno_p. Check
8439 hard_regno_to_pseudo_regno.
8440 (alter_reg): Set up spilled_pseudos. Add a new parameter. Add
8442 (eliminate_regs_1): Use additional parameter for alter_reg.
8443 (finish_spills): Set up pseudo_previous_regs only for spilled
8444 pseudos. Call reassign_pseudos once for all spilled pseudos, pass
8445 more arguments. Don't clear live_throughout and dead_or_set for
8446 spilled pseudos. Use additional parameter for alter_reg. Call
8447 mark_allocation_change. Set up changed_allocation_pseudos.
8448 Remove sanity check.
8449 (emit_input_reload_insns, delete_output_reload): Use additional
8450 parameter for alter_reg. Call mark_allocation_change.
8451 (substitute, gen_reload_chain_without_interm_reg_p): New
8453 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
8455 * testsuite/gcc.dg/20080410-1.c: New file.
8457 * config/s390/s390.h (IRA_COVER_CLASSES,
8458 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
8460 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
8462 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
8464 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8466 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
8468 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8470 * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
8472 2008-08-24 Jeff Law <law@redhat.com>
8473 * ira.c (setup_reg_class_intersect_union): Prefer smallest class
8474 when ignoring unavailable registers.
8476 2008-08-24 Jeff Law <law@redhat.com>
8477 * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
8478 FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
8479 * ira.c (setup_eliminable_regset): Check stack_realign_needed.
8480 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
8482 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
8483 * ira-build.c (allocno_range_compare_func): Stabilize sort.
8485 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
8486 * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
8487 * reload1.c (find_reg): Process registers in register allocation order.
8489 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
8490 * toplev.c (backend_init_target): Move ira_init call from
8492 (lang_dependent_init_target): ...to here.
8494 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
8495 * ira.c (setup_class_subset_and_memory_move_costs): Don't
8496 calculate memory move costs for NO_REGS.
8498 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
8499 * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
8500 STACK_REGS is defined.
8502 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
8503 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
8505 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
8506 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
8508 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
8509 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
8510 * config/sh/sh.md (movsicc_true+3): Check if emit returns a
8513 2008-08-26 Victor Kaplansky <victork@il.ibm.com>
8514 Dorit Nuzman <dorit@il.ibm.com>
8516 * gcc/config/spu/spu.md (vec_extract_evenv4si,
8517 vec_extract_evenv4sf, vec_extract_evenv8hi,
8518 vec_extract_evenv16qi, vec_extract_oddv4si,
8519 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
8520 vec_interleave_highv4sf, vec_interleave_lowv4sf,
8521 vec_interleave_highv4si, vec_interleave_lowv4si,
8522 vec_interleave_highv8hi, vec_interleave_lowv8hi,
8523 vec_interleave_highv16qi, vec_interleave_lowv16qi,
8524 vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
8526 2008-08-25 Janis Johnson <janis187@us.ibm.com>
8529 * config/rs6000/rs6000.c (optimization_options): Don't default to
8530 section anchors without toplevel reorder.
8532 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8534 * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
8535 (mfc_end_critical_section): Likewise.
8537 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8539 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
8540 all type qualifiers from element type to vector type.
8542 2008-08-25 David Daney <ddaney@avtrex.com>
8544 * config/mips/mips.md (immediate_insn): Move up in file, fix
8545 comment typo, reformat.
8546 (fetchop_bit, atomic_hiqi_op memory_barrier,
8547 sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
8548 sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
8549 sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
8550 sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
8551 sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
8552 sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
8553 sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
8554 sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
8555 sync_old_nand<mode>, sync_new_nand<mode>,
8556 sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
8557 test_and_set_12): Moved to sync.md.
8559 * config/mips/sync.md: New file.
8561 2008-08-25 Richard Henderson <rth@redhat.com>
8563 * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
8564 (regsave): Likewise.
8565 (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
8566 (output_cfi_directive): Likewise.
8567 (div_data_align): New.
8568 (output_cfi): Use it.
8570 2008-08-24 Adam Nemet <anemet@caviumnetworks.com>
8572 * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
8573 * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
8574 (TARGET_OCTEON): New macro.
8575 (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
8576 (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
8577 (ISA_HAS_POP): New macro.
8578 * config/mips/driver-native.c (host_detect_local_cpu): Handle
8580 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
8582 * config/mips/mips.md (cpu): Add octeon.
8583 (type): Add pop attribute value.
8584 (popcount<mode>2): New pattern.
8585 * doc/invoke.texi (-march=@var{arch}): Add octeon.
8587 2008-08-24 Jan Hubicka <jh@suse.cz>
8589 * doc/invoke.texi (-fipa-cp-clone): New option.
8590 (-fipa-cp): Update docs.
8591 (--param ipcp-unit-growth):New.
8592 * ipa-cp.c: Include fibheap.h, params.h
8593 (ipcp_initialize_node_lattices): When not cloning, all externally
8594 visible functions are bottom.
8595 (ipcp_need_redirect_p): Accept clones.
8596 (ipcp_insert_stage): Use cost driven heuristics.
8597 (max_count, dead_nodes): New static vars.
8598 (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
8599 ipcp_const_param_count): New functions.
8600 * common.opt (ipa-cp-clone): New command line option.
8601 * params.def (ipcp-unit-growth): New.
8603 2008-08-24 Jan Hubicka <jh@suse.cz>
8605 * tree-inline.c (tree_function_versioning): Look harder
8606 for referenced vars.
8608 2008-08-24 Razya Ladelsky <razya@il.ibm.com>
8610 PR tree-optimization/37185
8611 * matrix-reorg.c (transform_access_sites): Update changed stmt.
8613 2008-08-23 Jan Hubicka <jh@suse.cz>
8615 * ipa-cp.c (ipcp_analyze_node): New function.
8616 (ipcp_update_cloned_node): Use it.
8617 (ipcp_init_stage): Likewise.
8618 * ipa-inline.c (function_insertion_hook_holder): New static var.
8619 (analyze_function): Break out from ....
8620 (inline_generate_summary): Here; register insertion hook.
8621 (cgraph_decide_inlining): Remove hook.
8622 (add_new_function): New function.
8624 2008-08-23 Jan Hubicka <jh@suse.cz>
8626 * opts.c (decode_options): Revert accidental change enabling ipa-cp.
8628 2008-08-23 Jan Hubicka <jh@suse.cz>
8630 * ipa-cp.c (constant_val_insert): Remove.
8631 (ipcp_propagate_one_const): Remove.
8632 (ipcp_create_replace_map): Always insert replacements to the map.
8633 (ipcp_insert_stage): Do not try to insert statements by hand.
8634 * tree-inline.c (insert_init_stmt): Break out from ...
8635 (setup_one_parameter): ... here; allow NULL BB pointer.
8636 (tree_function_versioning): Use setup_one_parameter to process
8639 2008-08-23 Jan Hubicka <jh@suse.cz>
8641 * tree.c (decl_address_ip_invariant_p): New function.
8642 * tree.h (decl_address_ip_invariant_p): Declare.
8643 * gimple.c (strip_invariant_refs): Break out from ...
8644 (is_gimple_invariant_address): ... here
8645 (is_gimple_ip_invariant_address): New function.
8646 (is_gimple_ip_invariant): New function.
8647 * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
8650 * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
8651 (ipcp_lat_is_insertable): All constants are insertable.
8652 (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
8653 IPA_CONST_VALUE_REF.
8654 (ipcp_initialize_node_lattices): Propagate all types of operands.
8655 (build_const_val): Do not handle IPA_CONST_VALUE_REF.
8656 (ipcp_create_replace_map): Reformat.
8657 (ipcp_need_redirect_p): Simplify.
8658 (ipcp_insert_stage): Check that argument is used before clonning.
8659 * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
8661 (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
8662 (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
8663 (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
8664 * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
8665 (jump_func_type): Remove IPA_CONST_VALUE_REF.
8666 * tree-inline.c (tree_function_versioning): Add variables referenced
8669 2008-08-23 Jan Hubicka <jh@suse.cz>
8672 * i386.c (standard_80387_constant_p): Use optimize_size.
8674 2008-08-23 Ira Rosen <irar@il.ibm.com>
8676 PR tree-optimization/37161
8677 * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
8678 * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
8679 (vect_determine_vectorization_factor): Move the scalar type
8680 retrieval to vect_get_smallest_scalar_type.
8681 (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
8682 scalar type. Remove redundant computation.
8683 * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
8684 (vect_get_slp_defs): Take the type of RHS into account if
8685 necessary by calling vect_get_smallest_scalar_type. Call
8686 vect_get_constant_vectors with additional argument.
8688 2008-08-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8691 * doc/invoke.texi (Wwrite-strings): Clarify description.
8693 2008-08-23 Ira Rosen <irar@il.ibm.com>
8695 PR tree-optimization/37174
8696 * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
8697 def stmt is a part of the loop before accessing its stmt_vec_info.
8699 2008-08-22 Anatoly Sokolov <aesok@post.ru>
8702 * config/avr/avr.md (UNSPEC_SWAP): New constants.
8703 (*swap): New insn pattern.
8704 (*ashlqi3): Rename from ashlqi3 insn pattern.
8705 (ashlqi3): New expanders.
8706 (*lshrqi3): Rename from lshrqi3 insn pattern.
8707 (lshrqi3): New expanders.
8708 (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
8709 lshrqi3_const5, lshrqi3_const6): New splitters.
8710 (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
8711 lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
8714 2008-08-22 Richard Guenther <rguenther@suse.de>
8716 PR tree-optimization/37078
8717 * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
8718 [+INF, +INF] ranges.
8720 2008-08-22 Richard Guenther <rguenther@suse.de>
8722 PR tree-optimization/37143
8723 * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
8724 a conversion statement instead of a copy.
8726 2008-08-22 Uros Bizjak <ubizjak@gmail.com>
8729 * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
8730 CCCmode, CCOmode and CCSmode destination modes.
8733 * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
8734 from different units in a single alternative.
8735 (*vec_extractv2sf_1): Ditto.
8736 (*vec_extractv2si_0): Ditto.
8737 (*vec_extractv2si_1): Ditto.
8738 * config/i386/sse.md (sse2_storehpd): Ditto.
8739 (sse2_storelpd): Ditto.
8740 (sse2_loadhpd): Ditto.
8741 (sse2_loadlpd): Ditto.
8744 * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
8745 (popcountsi2): Ditto.
8746 (clzdi2_abm): Ditto.
8747 (popcountdi2): Ditto.
8748 (clzhi2_abm): Ditto.
8749 (popcounthi2): Ditto.
8751 2008-08-22 Richard Guenther <rguenther@suse.de>
8755 * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
8756 if the multiplication does not overflow.
8758 2008-08-21 Nathan Sidwell <nathan@codesourcery.com>
8760 * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
8762 2008-08-21 Richard Henderson <rth@redhat.com>
8764 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
8765 spurrious comma from test.
8766 * configure: Rebuild.
8768 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8771 * builtins.c (fold_builtin_next_arg): Add warning about undefined
8774 2008-08-21 Aldy Hernandez <aldyh@redhat.com>
8776 * c-tree.h (grokfield): New argument.
8777 * c-decl.c (grokfield): Handle new location argument.
8778 * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
8780 2008-08-21 Richard Guenther <rguenther@suse.de>
8782 * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
8784 2008-08-21 Jan Hubicka <jh@suse.cz>
8786 * cgraph.c (first_cgraph_function_insertion_hook): New variable.
8787 (cgraph_add_function_insertion_hook,
8788 cgraph_remove_function_insertion_hook,
8789 cgraph_call_function_insertion_hooks): New functions.
8790 * cgraph.h (cgraph_add_function_insertion_hook,
8791 cgraph_remove_function_insertion_hook,
8792 cgraph_call_function_insertion_hooks): Declare.
8793 * ipa-reference.c (function_insertion_hook_holder): New variable.
8794 (check_operand, look_for_address_of): When checking late, do not care
8795 about module bitmaps.
8796 (add_new_function): New function.
8797 (generate_summary): Register hooks; zero module bitmaps.
8798 (propagate): Unregister hooks.
8799 * ipa-pure-const.c (function_insertion_hook_holder): New variable.
8800 (add_new_function): New function.
8801 (generate_summary): Register hook.
8802 (propagate): Remove hook.
8804 * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
8806 * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
8807 * ipa-cp.c (ipcp_update_cloned_node): New function.
8808 (build_const_val): Handle functions correctly; bring type logic
8809 into sync with tree-inline.c
8810 (ipcp_init_stage): Take care of computing stuff needed by
8811 indirect inlining; update clones.
8812 (ipcp_generate_summary): Break out of ipcp_driver.
8813 (ipcp_driver): Do only execution and transformation.
8814 (pass_ipa_cp): Make IPA_PASS.
8815 * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
8817 * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
8818 ipcp, some info is already available.
8819 * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
8820 * tree-inline.c (remap_ssa_name): Unshare expression.
8822 2008-08-21 Richard Guenther <rguenther@suse.de>
8824 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
8825 a PHI ask VN if it is already available.
8826 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
8827 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
8829 2008-08-21 Richard Guenther <rguenther@suse.de>
8832 * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
8833 makes sure to produce a result of the correct type.
8835 2008-08-21 Jan Hubicka <jh@suse.cz>
8836 Backport from LTO branch:
8838 2008-05-05 Kenneth Zadeck <zadeck@naturalbridge.com>
8839 Jan Hubicka <jh@suse.cz>
8842 (init_state, finish_state, set_function_state, generate_summary):
8844 (scan_stmt): Renamed from scan_function. Changed to keep state in
8845 local static vars rather than cgraph aux field.
8846 (propagate): Renamed from static_execute. Changed to keep state in
8847 local static vars rather than cgraph aux field.
8848 (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
8849 * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
8851 2008-07-15 Kenneth Zadeck <zadeck@naturalbridge.com>
8853 * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
8854 * ipa-reference.c (init_function_info, generate_summary,
8855 propagate): New functions.
8856 (analyze_function): Call init_function_info.
8857 (static_execute): Stripped into generate_summary and propagate.
8858 (pass_ipa_reference): Made into ipa_opt_pass.
8860 2008-08-21 Richard Guenther <rguenther@suse.de>
8862 PR tree-optimization/37181
8863 * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
8865 (extract_range_from_unary_expr): Likewise.
8867 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8869 * diagnostic.c (pedwarn_at): Rename as pedwarn.
8871 * toplev.h (pedwarn_at): Likewise.
8872 * builtins.c: Update all calls to pedwarn.
8873 * c-lex.c: Likewise.
8874 * toplev.c: Likewise.
8875 * c-tree.h: Likewise.
8876 * c-decl.c: Likewise.
8877 * c-errors.c: Likewise.
8878 * c-typeck.c: Likewise.
8879 * c-common.c: Likewise.
8880 * c-parser.c: Likewise.
8882 2008-08-20 Joseph Myers <joseph@codesourcery.com>
8885 * config/sparc/sparc.c (function_arg_slotno): Handle structure
8886 with MODE_VECTOR_INT mode.
8888 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8891 * tree-ssa.c (warn_uninit): Do not warn for variables that can be
8892 initialized outside the current module.
8893 (warn_uninitialized_var): Ignore left-hand side when walking the
8894 trees. Ignore address expressions. Examine VUSE operands in gimple
8895 statements with a variable declaration on the right-hand side.
8897 2008-08-20 Richard Sandiford <rdsandiford@googlemail.com>
8900 * rtlanal.c (subreg_offset_representable_p): Revert last change.
8902 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8905 * c-common.c (conversion_warning): Do not warn if applying bit-and
8906 operator to unsigned constant that fits in the target type.
8908 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8911 * c-common.c (conversion_warning): Do not warn for artificial
8914 2008-08-20 Richard Guenther <rguenther@suse.de>
8916 * tree-vrp.c (op_with_constant_singleton_value_range): New function.
8917 (extract_range_from_binary_expr): Fall back to constant propagation.
8918 (extract_range_from_unary_expr): Likewise.
8920 2008-08-20 Richard Guenther <rguenther@suse.de>
8922 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
8923 with TREE_THIS_VOLATILE on shared nodes.
8924 (fold_stmt_r): Likewise.
8926 2008-08-20 Jakub Jelinek <jakub@redhat.com>
8929 * c-parser.c (c_parser_attributes): For keywords use canonical
8930 spelling for attr_name.
8932 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8934 * value-prof.c (check_counter): Revert wrong call to error.
8936 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8938 * profile.c: Update calls to inform.
8939 * value-prof.c: Update calls to inform.
8941 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8943 * diagnostic.c (inform): Add an explicit location_t parameter.
8944 * toplev.h (inform): Update declaration.
8945 * builtins.c: Update all calls to inform.
8946 * c-common.c: Likewise.
8947 * c-decl.c: Likewise.
8948 * c-opts.c: Likewise.
8949 * c-pch.c: Likewise.
8950 * c-pragma.c: Likewise.
8951 * c-typeck.c: Likewise.
8952 * coverage.c: Likewise.
8954 * toplev.c: Likewise.
8955 * tree-cfg.c: Likewise.
8956 * tree-ssa.c: Likewise.
8958 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
8961 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
8962 V2DI mode, for SSE4.1, use movq instead of vector set if the
8963 second element is zero and inter-unit moves are OK.
8965 2008-08-20 Richard Guenther <rguenther@suse.de>
8967 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
8968 properly handle conversion/copy chains after tuplification.
8970 2008-08-20 Richard Guenther <rguenther@suse.de>
8972 * passes.c (init_optimization_passes): Move the second
8973 forwprop pass before alias computation. Remove the second
8974 DCE pass. Remove the first dominator and phi copy/const
8977 2008-08-20 Nick Clifton <nickc@redhat.com>
8979 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
8980 support of this feature. Do not assume that a sufficiently new
8981 assembler will support the feature regardless of the target type.
8982 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
8983 * configure: Regenerate.
8985 2008-08-20 Richard Guenther <rguenther@suse.de>
8987 * tree-vrp.c (found_in_subgraph): Remove.
8988 (live): New global static.
8989 (live_on_edge): New function.
8990 (blocks_visited): Remove.
8991 (register_edge_assert_for_2): Use live_on_edge.
8992 (find_conditional_asserts): Remove code dealing with
8993 found_in_subgraph. Do not walk the CFG.
8994 (find_switch_asserts): Likewise.
8995 (find_assert_locations_1): Renamed from find_assert_locations.
8996 Move finding assert locations for conditional and switch
8997 statements first. Update live bitmap. Do not walk the CFG.
8998 (find_assert_locations): New function.
8999 (insert_range_assertions): Remove entry of CFG walk.
9000 Adjust call to find_assert_locations.
9001 * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
9002 that only can appear because of fake exit edges but assert we
9003 never try to insert on those.
9004 (fini_pre): Do not remove fake exit edges here...
9005 (execute_pre): ...but here, before committing edge inserts.
9007 2008-08-19 Richard Guenther <rguenther@suse.de>
9009 * passes.c (init_optimization_passes): Exchange store-ccp
9012 2008-08-19 Rafael Espíndola <espindola@google.com>
9014 * varasm.c (weak_decls): Move earlier in the file.
9015 (assemble_external): Add weak decls to the weak_decls list.
9016 (declare_weak): Don't add decls to the weak_decls list.
9018 2008-08-19 H.J. Lu <hongjiu.lu@intel.com>
9021 * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
9022 before (sse2_shufpd_<mode>).
9024 2008-08-19 Jakub Jelinek <jakub@redhat.com>
9027 * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
9028 * tree.c (block_nonartificial_location): Likewise.
9030 2008-08-19 Richard Guenther <rguenther@suse.de>
9032 PR tree-optimization/35972
9033 PR tree-optimization/23094
9034 * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
9036 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
9037 handle MISALIGNED_INDIRECT_REF.
9038 (get_ref_from_reference_ops): New helper.
9039 (vn_reference_lookup_pieces): Walk the use-def chain using the
9040 alias-oracle if requested.
9041 * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
9042 walking the use-def chain.
9043 (compute_avail): But not here.
9044 (create_component_ref_by_pieces_1): Properly handle
9045 MISALIGNED_INDIRECT_REF.
9046 (do_regular_insertion): Handle fully redundant
9047 expressions after PHI-translation also for SSA_NAME values, not
9048 only constants. Correctly use edoubleprime for that.
9050 2008-08-19 Ira Rosen <irar@il.ibm.com>
9052 * tree-vectorizer.c (supportable_widening_operation): Support
9053 multi-step conversion, return the number of steps in such conversion
9054 and the required intermediate types.
9055 (supportable_narrowing_operation): Likewise.
9056 * tree-vectorizer.h (vect_pow2): New function.
9057 (supportable_widening_operation): Change argument types.
9058 (supportable_narrowing_operation): Likewise.
9059 (vectorizable_type_promotion): Add an argument.
9060 (vectorizable_type_demotion): Likewise.
9061 * tree-vect-analyze.c (vect_analyze_operations): Call
9062 vectorizable_type_promotion and vectorizable_type_demotion with
9063 additional argument.
9064 (vect_get_and_check_slp_defs): Detect patterns.
9065 (vect_build_slp_tree): Add an argument, don't fail in case of multiple
9067 (vect_analyze_slp_instance): Don't fail in case of multiple types.
9068 Call vect_build_slp_tree with correct arguments. Calculate unrolling
9069 factor according to the smallest type in the loop.
9070 (vect_detect_hybrid_slp_stmts): Include statements from patterns.
9071 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
9072 supportable_widening_operation with correct arguments.
9073 * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
9074 operands lists according to the number of vector statements in left
9075 or right node, if exists.
9076 (vect_gen_widened_results_half): Remove unused argument.
9077 (vectorizable_conversion): Call supportable_widening_operation,
9078 supportable_narrowing_operation, and vect_gen_widened_results_half
9079 with correct arguments.
9080 (vectorizable_assignment): Change documentation, support multiple
9082 (vectorizable_operation): Likewise.
9083 (vect_get_loop_based_defs): New function.
9084 (vect_create_vectorized_demotion_stmts): Likewise.
9085 (vectorizable_type_demotion): Support loop-aware SLP and general
9086 multi-step conversion. Call vect_get_loop_based_defs and
9087 vect_create_vectorized_demotion_stmts for transformation.
9088 (vect_create_vectorized_promotion_stmts): New function.
9089 (vectorizable_type_promotion): Support loop-aware SLP and general
9090 multi-step conversion. Call vect_create_vectorized_promotion_stmts
9092 (vectorizable_store): Change documentation, support multiple
9094 (vectorizable_load): Likewise.
9095 (vect_transform_stmt): Pass SLP_NODE to
9096 vectorizable_type_promotion and vectorizable_type_demotion.
9097 (vect_schedule_slp_instance): Move here the calculation of number
9098 of vectorized statements for each node from...
9099 (vect_schedule_slp): ... here.
9100 (vect_transform_loop): Call vect_schedule_slp without the last
9103 2008-08-19 Dorit Nuzman <dorit@il.ibm.com>
9106 * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
9107 to == in assert statement.
9108 (vectorizable_reduction): Fix typo.
9110 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
9113 * value-prof.c (check_counter): Dereference pointer to overall
9114 count when printing it.
9116 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
9118 * profile.h: Really add it.
9120 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
9122 * mcf.c: Really add it.
9124 2008-08-18 Paul Yuan <yingbo.com@gmail.com>
9125 Vinodha Ramasamy <vinodha@google.com>
9127 * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
9129 * value-prof.c (check_counter): Fix the counter if
9130 flag_profile_correction is true.
9131 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
9132 tree_mod_subtract_transform):
9133 Follow check_counter parameter change.
9134 * common.opt (fprofile-correction): New option.
9136 * profile.h: Likewise.
9137 * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
9138 (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
9139 is_inconsistent, set_bb_counts, read_profile_edge_counts): New
9141 (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
9142 flag_profile_correction is set.
9144 2008-08-18 Richard Sandiford <rdsandiford@googlemail.com>
9146 * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
9148 2008-08-18 Tomas Bily <tbily@suse.cz>
9150 * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
9151 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
9153 * tree-data-ref.c (split_constant_offset_1): Likewise.
9154 * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
9155 * tree-sra.c (sra_walk_expr): Likewise.
9156 * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
9157 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
9158 * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
9159 * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
9161 * gimple.c (gimple_assign_unary_nop_p): Likewise.
9162 * tree-vect-transform.c (vectorizable_type_demotion)
9163 (vectorizable_type_promotion): Likewise.
9164 * tree-inline.c (expand_call_inline):
9165 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
9166 (forward_propagate_addr_expr_1, forward_propagate_comparison)
9167 (tree_ssa_forward_propagate_single_use_vars): Likewise.
9168 * expr.c (expand_expr_real_1): Likewise.
9169 * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
9170 (gimple_assign_unary_useless_conversion_p): Likewise.
9171 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9172 * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
9173 * fold-const.c (fold_unary): Likewise.
9174 * tree.h (CONVERT_EXPR_P): Likewise.
9175 * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
9176 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
9178 (register_edge_assert_for_2, extract_range_from_unary_expr)
9179 (register_edge_assert_for_1): Likewise.
9181 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9183 * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
9184 dconst_third_ptr, dconst_sqrt2_ptr): Declare.
9185 (enum real_value_const): Delete.
9186 (get_real_const): Delete.
9187 * real.c (get_real_const): Delete.
9188 (dconst_e_ptr): Define.
9189 (dconst_third_ptr): Define.
9190 (dconst_sqrt2_ptr): Define.
9191 * builtins.c: Update all callers.
9193 2008-08-18 Richard Guenther <rguenther@suse.de>
9195 * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
9196 statement iterator after statement removal.
9198 2008-08-18 Andreas Tobler <a.tobler@schweiz.org>
9200 * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
9201 (detect_processor_freebsd): Likewise.
9202 (host_detect_local_cpu): Call newly added functions for FreeBSD.
9204 2008-08-18 Richard Guenther <rguenther@suse.de>
9206 * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
9207 and loads have the correct types.
9209 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9212 * c-opts.c (cpp_opts): Remove static.
9213 * c-parser.c (cpp_opts): Declare it extern.
9214 (disable_extension_diagnostics): Handle cpp options.
9215 (enable_extension_diagnostics): Likewise.
9217 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9219 * diagnostics.c (permerror_at): Rename as permerror.
9220 (permerror): Delete.
9221 * toplev.h: Likewise.
9223 2008-08-18 Richard Guenther <rguenther@suse.de>
9225 * passes.c (init_optimization_passes): Remove cleanup_cfg1,
9226 sdse1 and addressables2 passes. Replace dce1 with cddce1.
9227 Move call_cdce before build_alias. Move copyrename2,
9228 cunrolli and ccp2 beafore build_alias. Re-add addressable2
9229 right after final inlining.
9230 * tree-cfg.c (build_gimple_cfg): Do not dump function here.
9231 (pass_build_cfg): But instead via TODO_dump_func.
9233 2008-08-18 Richard Guenther <rguenther@suse.de>
9235 * tree-sra.c (generate_element_init_1): Deal with NULL constructor
9237 (scalarize_init): If we failed to generate some initializers
9238 do not generate zeros for not instantiated members. Instead
9239 rely on the copy out.
9240 * tree-ssa-operands.c (get_addr_dereference_operands): Warn
9241 about missing flow-sensitive alias info only if we have
9244 2008-08-17 Nick Clifton <nickc@redhat.com>
9246 * doc/extend.texi (Function Attributes): Fix typo in description
9247 if hot function attribute.
9249 2008-08-17 Daniel Jacobowitz <dan@codesourcery.com>
9250 Richard Sandiford <rdsandiford@googlemail.com>
9252 * doc/install.texi (--with-mips-plt): Document.
9253 * doc/invoke.texi (-mplt, -mno-plt): Document.
9254 * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
9255 and handle ${with_mips_plt}.
9256 * config/mips/mips.opt (mplt): New option.
9257 * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
9258 (TARGET_ABICALLS_PIC2): Likewise.
9259 (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
9260 (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
9261 (ASM_SPEC): Use !mabi=* instead of !mabi*.
9262 (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
9263 to decide whether to output ".option picX" directives.
9264 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
9265 Pass -call_nonpic rather than -KPIC for -mplt.
9266 (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
9267 on the command line. Also remove it when -mabi=64 is used without
9269 * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
9270 * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
9271 TARGET_ABICALLS_PIC0.
9272 (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
9274 (mips16_build_function_stub): Only output ".option pic" directives
9275 and PIC stubs if TARGET_ABICALLS_PIC2. Call through $25 instead of $1.
9276 (mips16_build_call_stub): Fix comment and remove redundant
9277 ".set at"/"set .noat" directives.
9278 (mips_function_rodata_section): Use the default behaviour for
9279 TARGET_ABSOLUTE_ABICALLS.
9280 (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
9281 (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
9282 (mips_restore_gp): Do nothing if the current function doesn't use
9284 (mips_expand_prologue): Only save $gp if the current function uses it.
9285 Use a normal move for TARGET_ABICALLS_PIC0.
9286 (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
9288 2008-08-17 Richard Sandiford <rdsandiford@googlemail.com>
9290 * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
9291 of function when handling GLOBAL_POINTER_REGNUM.
9293 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
9296 * common.opt (-fstack-check): Do not declare the variable here.
9297 (-fstack-check=): New option variant.
9298 * doc/invoke.texi (Code Gen Options): Document it.
9299 * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
9300 (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
9301 (STACK_CHECK_STATIC_BUILTIN): New macro.
9302 * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
9303 * opts.c: Include expr.h.
9304 (common_handle_option) <OPT_fold_stack_check_>: New case.
9305 <OPT_fstack_check>: Likewise.
9306 * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
9307 consistently in the test for variable-sized types. Adjust for
9308 new behaviour of flag_stack_check.
9309 * explow.c: Include except.h.
9310 (allocate_dynamic_stack_space): Do not take into account
9311 STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
9312 * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
9313 for variable-sized parameters. Treat all parameters whose size is
9314 greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
9315 stack checking is enabled.
9316 * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
9317 size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
9318 if generic stack checking is enabled.
9319 (expand_function_end): Adjust for new behaviour of flag_stack_check.
9320 * reload1.c (reload): Likewise.
9321 * stmt.c (expand_decl): Assert that all automatic variables have
9322 fixed size at this point and remove dead code.
9323 * flags.h (stack_check_type): New enumeration type.
9324 (flag_stack_check): Declare.
9325 * toplev.c (flag_stack_check): New global variable.
9326 * Makefile.in (opts.o): Add dependency on EXPR_H.
9327 (explow.o): Add dependency on except.h.
9329 2008-08-16 Andy Hutchinson <hutchinsonandy@aim.com>
9331 * config/avr/avr.c (avr_override_options): Reduce value of
9332 PARAM_INLINE_CALL_COST.
9334 2008-08-15 Eric Botcazou <ebotcazou@adacore.com>
9336 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
9337 to BLKmode, try to fetch an inner memory reference. Use 'mode' in
9338 lieu of TYPE_MODE (type) throughout.
9340 2008-08-15 Joseph Myers <joseph@codesourcery.com>
9342 * config/arm/arm.c (add_minipool_backward_ref): Check for
9343 8-byte-aligned entries in second case of forcing insertion after a
9344 particular entry. Change third case to avoid inserting
9345 non-8-byte-aligned entries before 8-byte-aligned ones.
9347 2008-08-15 Richard Guenther <rguenther@suse.de>
9349 * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
9350 strip components for unknown size accesses.
9352 2008-08-15 Wolfgang Gellerich <gellerich@de.ibm.com>
9354 * config/s390/2097.md New file.
9355 * config/s390/s390.md ("z10prop" attribute): Define none,
9356 z10_super, z10_super_E1, z10_super_A1, z10_super_c,
9357 z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
9358 z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
9359 possible values and apply them to insns as appropriate.
9360 ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
9361 ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
9362 fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
9363 fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
9364 ("bfp" mode attribute): Removed. Every occurence replaced
9366 * config/s390/s390.c (struct "z10_cost"): Updated entries.
9367 * config/s390/2084.md (insn_reservation "x_itof"): Updated
9370 2008-08-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9373 * c-parser.c (c_lex_one_token): Do not store the canonical spelling
9376 2008-08-14 Dorit Nuzman <dorit@il.ibm.com>
9378 * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
9379 additional argument. Support reduction when duplication is needed due
9380 to data-types of different sizes in the loop.
9381 (get_initial_def_for_induction): Fix printout.
9382 (vect_get_vec_def_for_stmt_copy): Support case where the
9383 vec_stmt_for_operand is a phi node.
9384 (vectorizable_reduction): Support reduction when duplication is needed
9385 due to data-types of different sizes in the loop.
9386 (vectorizable_call): Remove restriction to not vectorize in case we
9387 have data-types of different sizes in the loop.
9388 (vectorizable_conversion): Likewise.
9389 (vectorizable_operation): Likewise.
9390 (vectorizable_type_demotion): Likewise.
9391 (vectorizable_type_promotion): Likewise.
9392 (vectorizable_induction): Add restriction to not vectorize in case
9393 we have data-types of different sizes in the loop.
9395 2008-08-14 Christophe Saout <christophe@saout.de>
9396 Uros Bizjak <ubizjak@gmail.com>
9399 * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
9400 (*vec_concatv2di_rex64_sse4_1): Ditto.
9401 (*vec_concatv2di_rex64_sse): Ditto.
9403 2008-08-14 Jakub Jelinek <jakub@redhat.com>
9406 * fold-const.c (fold_widened_comparison): Do not allow
9407 sign changes that change the result even if shorter type
9408 is wider than arg1_unw's type.
9410 2008-08-13 Kazu Hirata <kazu@codesourcery.com>
9412 * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
9413 Skip if the multilib testing specifies -march that does not
9414 agree with the one specified in the testcase.
9416 2008-08-13 Joseph Myers <joseph@codesourcery.com>
9418 * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
9419 zero extend SImode values being converted to TFmode before passing
9422 2008-08-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9424 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
9425 __PPU__ when targeting the Cell/B.E. PPU processor.
9427 2008-08-13 Eric Botcazou <ebotcazou@adacore.com>
9429 * gimple.h (gimple_call_set_chain): Accept SSA variables.
9430 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
9431 Rematerialize the static chain, if any.
9432 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
9435 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
9437 * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
9438 (new_loc_descr): Likewise.
9439 (add_loc_descr): Likewise.
9440 (size_of_loc_descr): Likewise.
9441 (size_of_locs): Likewise.
9442 (output_loc_operands): Likewise.
9443 (output_loc_sequence): Likewise.
9444 (new_reg_loc_descr): New.
9445 (build_cfa_loc): Use it.
9446 (build_cfa_aligned_loc): Likewise.
9447 (one_reg_loc_descriptor): Likewise.
9448 (based_loc_descr): Likewise.
9450 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9453 * doc/invoke.texi (Wmain): Update.
9454 * c-decl.c (start_decl): warn_main is only 0 or 1.
9455 (start_function): Likewise. Fix formatting.
9456 (finish_function): Delete redundant warning.
9457 * c.opt (Wmain): Add Var(warn_main) and Init(-1).
9458 * c-opts (c_common_handle_option): -Wall only has effect if
9459 warn_main is uninitialized. OPT_Wmain is automatically
9460 handled. -pedantic also enables Wmain.
9461 (c_common_post_options): Handle all logic for Wmain here.
9462 * c-common.c (warn_main): Delete.
9463 (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
9464 * c-common.h (warn_main): Delete.
9466 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
9469 * expr.c (emit_group_store): Allocate stack temp with the
9470 largest alignment when copying from register to stack.
9472 2008-08-13 Richard Guenther <rguenther@suse.de>
9474 * tree.h (maybe_fold_offset_to_address): Declare.
9475 * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
9476 (ccp_fold): Handle pointer conversions the same as fold_stmt.
9477 Likewise for POINTER_PLUS_EXPR.
9478 (maybe_fold_offset_to_reference): Enable disabled code.
9479 (maybe_fold_offset_to_address): New function.
9480 (fold_stmt_r): Use it.
9481 (fold_gimple_assign): Likewise.
9482 * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
9483 (gimplify_expr): Likewise.
9485 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9487 * toplev.h (pedwarn_at): Fix declaration.
9489 2008-08-13 Joseph Myers <joseph@codesourcery.com>
9491 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9492 LINK_SPEC): Use %R in -Y P argument.
9494 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9497 * diagnostic.c (pedwarn_at): New.
9498 * toplev.h (pedwarn_at): Declare.
9499 * c-tree.h (build_enumerator): Update declaration.
9500 * c-decl.c (finish_enum): Update comment.
9501 (build_enumerator): Take a location parameter. Give a pedwarn but do
9502 not perform any conversion.
9503 * c-parser.c (c_parser_enum_specifier): Set correct location for
9506 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9509 * c-common.c (conversion_warning): Use a switch. Ignore boolean
9510 expressions except for conversions to signed:1 bitfields. Handle
9511 COND_EXPR with constant operands.
9513 2008-08-13 Richard Guenther <rguenther@suse.de>
9515 PR tree-optimization/15255
9516 * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
9517 (struct oecount_s): New struct and VEC types.
9519 (oecount_hash): New function.
9520 (oecount_eq): Likewise.
9521 (oecount_cmp): Likewise.
9522 (zero_one_operation): New function.
9523 (build_and_add_sum): Likewise.
9524 (undistribute_ops_list): Perform un-distribution of multiplication
9525 and division on the chain of summands.
9526 (should_break_up_subtract): Also break up subtracts for factors.
9527 (reassociate_bb): Delete dead visited statements.
9528 Call undistribute_ops_list. Re-sort and optimize if it did something.
9529 * passes.c (init_optimization_passes): Move DSE before
9531 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
9534 2008-08-12 Janis Johnson <janis187@us.ibm.com>
9536 * doc/invoke.texi (-fipa-pta): Say the option is experimental.
9538 * doc/invoke.texi: Revert unintended checkin.
9540 2008-08-12 Nathan Froyd <froydnj@codesourcery.com>
9543 * gcc.c (include_spec_function): Tweak call to find_a_file.
9545 2008-08-12 Jakub Jelinek <jakub@redhat.com>
9548 * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
9549 and TRUTH_ORIF_EXPR.
9550 * dojump.c (do_jump): Likewise.
9552 PR tree-optimization/37084
9553 * tree-inline.c (copy_bb): Call gimple_regimplify_operands
9554 if id->regimplify, don't assume stmt is a cast assignment.
9556 2008-08-12 Anatoly Sokolov <aesok@post.ru>
9558 * final.c (final_scan_insn): Use app_enable/app_disable functions.
9560 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9563 * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
9566 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9568 * defaults.h (TARGET_FLOAT_FORMAT): Remove.
9569 (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
9571 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
9572 * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
9573 * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
9574 * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
9575 * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
9577 * doc/tm.texi (Storage Layout): Remove documentation for
9578 TARGET_FLOAT_FORMAT.
9580 * simplify-rtx.c (simplify_binary_operation_1): Replace
9581 TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
9583 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9585 * real.h (struct real_format): New member has_sign_dependent_rounding.
9586 * real.c (ieee_single_format, mips_single_format, motorola_single_format,
9587 spu_single_format, ieee_double_format, mips_double_format,
9588 motorola_double_format, ieee_extended_motorola_format,
9589 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
9590 ieee_extended_intel_96_round_53_format, ibm_extended_format,
9591 mips_extended_format, ieee_quad_format, mips_quad_format,
9592 vax_f_format, vax_d_format, vax_g_format): Initialize it.
9593 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
9595 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
9596 MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
9597 * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
9598 MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
9599 (ROUND_TOWARDS_ZERO): Likewise.
9601 * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
9602 (FLOAT_MODE_FORMAT): New macro.
9603 (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
9604 (MODE_COMPOSITE_P): ... this new macro.
9605 (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
9606 MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
9607 * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
9609 * flags.h: Include "real.h".
9611 * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
9612 REAL_MODE_FORMAT_COMPOSITE_P.
9613 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
9615 * doc/tm.texi (Storage Layout): Remove documentation of
9616 MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
9617 MODE_HAS_SIGN_DEPENDENT_ROUNDING. Update documentation of
9618 ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
9619 they only apply to libgcc2.a.
9621 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9623 * config/spu/float_disf.c: New file.
9624 * config/spu/float_unsdisf.c: New file.
9625 * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
9626 (LIB2FUNCS_EXCLUDE): Define.
9628 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9629 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
9631 * real.h (struct real_format): New member round_towards_zero.
9632 * real.c (round_for_format): Respect fmt->round_towards_zero.
9633 (ieee_single_format, mips_single_format, motorola_single_format,
9634 spu_single_format, ieee_double_format, mips_double_format,
9635 motorola_double_format, ieee_extended_motorola_format,
9636 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
9637 ieee_extended_intel_96_round_53_format, ibm_extended_format,
9638 mips_extended_format, ieee_quad_format, mips_quad_format,
9639 vax_f_format, vax_d_format, vax_g_format): Initialize it.
9640 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
9642 * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
9643 real_format to choose rounding mode when calling MPFR functions.
9644 (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
9645 (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
9647 * real.h (real_to_decimal_for_mode): Add prototype.
9648 * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
9649 Respect target rounding mode when generating decimal representation.
9650 (real_to_decimal): New stub for backwards compatibility.
9651 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
9652 real_to_decimal_for_mode instead of real_to_decimal.
9654 * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
9656 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9657 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
9659 * real.c (spu_single_format): New variable.
9660 * real.h (spu_single_format): Declare.
9662 * config/spu/spu.c (spu_override_options): Install SFmode format.
9663 (spu_split_immediate): Use integer mode to operate on pieces of
9664 floating-point values in all cases.
9666 * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
9667 ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
9668 ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
9670 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9672 * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
9674 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9676 * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
9678 2008-08-12 Jakub Jelinek <jakub@redhat.com>
9681 * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
9682 on the VAR_DECL instead of TYPE_READONLY on its type.
9684 2008-08-12 Ira Rosen <irar@il.ibm.com>
9686 * tree-vectorizer.c: Depend on langhooks.h.
9687 (supportable_widening_operation): Add two arguments. Support double
9689 (supportable_narrowing_operation): Likewise.
9690 * tree-vectorizer.h (supportable_widening_operation): Add two
9692 (supportable_narrowing_operation): Likewise.
9693 * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
9694 supportable_widening_operation with correct arguments.
9695 * tree-vect-transform.c (vectorizable_conversion): Likewise.
9696 (vectorizable_type_demotion): Support double type conversions.
9697 (vectorizable_type_promotion): Likewise.
9698 * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
9700 2008-08-11 Michael Matz <matz@suse.de>
9702 * i386/i386.c (override_options): Move initialisation from
9703 flag_schedule_insns_after_reload to here from ...
9704 (optimization_options): ... here.
9706 2008-08-11 Jakub Jelinek <jakub@redhat.com>
9708 PR rtl-optimization/36998
9709 * dwarf2out.c (compute_barrier_args_size_1,
9710 compute_barrier_args_size): Temporarily remove assertions.
9712 2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9715 * tree-ssa.c (struct walk_data): Add new flag
9716 warn_possibly_uninitialized.
9717 (warn_uninitialized_var): Use it.
9718 (warn_uninitialized_vars): New.
9719 (execute_early_warn_uninitialized): Call it.
9720 (execute_late_warn_uninitialized): Likewise.
9722 2008-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
9725 * reload1.c (gen_reload): Guard calls to get_secondary_mem
9728 2008-08-09 Jan Hubicka <jh@suse.cz>
9731 * optabs.c (maybe_emit_unop_insn): Remove produced code if
9733 (expand_fix): Be prepared for expansion to fail.
9734 (expand_sfix_optab): Remove instructions if expansion failed.
9736 2008-08-09 Anatoly Sokolov <aesok@post.ru>
9738 * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
9740 * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
9741 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9743 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9745 * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
9746 mips/t-libgcc-mips16 to tmake_file.
9747 * config/mips/mips-protos.h (mips_call_type): New enum.
9748 (mips_pic_base_register, mips_got_load): Declare.
9749 (mips_restore_gp): Take an rtx argument.
9750 (mips_use_pic_fn_addr_reg_p): Declare.
9751 (mips_expand_call): Replace the sibcall_p argument with
9752 a mips_call_type argument. Add a lazy_p parameter.
9753 (mips_split_call): Declare.
9754 * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
9755 (MIPS16_PIC_TEMP): Likewise.
9756 (reg_class): Delete M16_NA_REGS.
9757 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
9758 (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
9759 (mips_split_hi_p): Declare.
9760 * config/mips/mips.c (mips_split_hi_p): New array.
9761 (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
9762 (mips_got_symbol_type_p): New function.
9763 (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
9764 (mips16_stub_function_p): New function.
9765 (mips16_local_function_p): Likewise.
9766 (mips_use_pic_fn_addr_reg_p): Likewise.
9767 (mips_cannot_force_const_mem): Return false for HIGHs.
9768 Extend CONST_INT and symbolic handling to MIPS16, using
9769 mips_symbol_insns to check that the base symbol type is a
9770 legitimate constant. Reject GOT-based constants if
9771 TARGET_MIPS16_PCREL_LOADS.
9772 (mips_const_insns): Check targetm.cannot_force_const_mem when
9773 decomposing a symbolic base and a large offset.
9774 (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
9775 When calling a function that needs $25 from MIPS16 code,
9776 move the target address into $25 separately and add a USE
9778 (mips16_gp_pseudo_reg): Insert the initializer immediately
9779 before the first real insn.
9780 (mips_pic_base_register, mips_got_load): New functions.
9781 (mips_split_symbol): Generalize the name of the LO_SUM_OUT
9782 parameter to LOW_OUT. Say that it can be any valid SET_SRC
9783 when splitting a load-address operation. Split SYMBOL_GOT_DISP
9784 constants and highs of SYMBOL_GOT_PAGE_OFST constants.
9785 (mips_call_tls_get_addr): Update the call to mips_expand_call,
9786 also passing NULL_RTX rather than const0_rtx as the aux argument.
9787 (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
9788 instead of TARGET_EXPLICIT_RELOCS.
9789 (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
9790 (mips_load_call_address): Replace the sibcall_p argument with
9791 a mips_call_type argument. Use mips_got_load.
9792 (mips16_local_alias): New structure.
9793 (mips16_local_aliases): New variable.
9794 (mips16_local_aliases_hash): New function.
9795 (mips16_local_aliases_eq): Likewise.
9796 (mips16_local_alias): Likewise.
9797 (mips16_stub_function): Likewise.
9798 (mips16_build_function_stub): Create a local alias for the target
9799 function. Handle TARGET_ABICALLS. For PIC abicalls, emit a
9800 .cpload directive and an R_MIPS_NONE relocation for the target
9801 function, then load the alias rather than the function itself.
9802 Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
9803 (mips16_copy_fpr_return_value): Use mips16_stub_function and
9804 mips_expand_call. Set SYMBOL_REF_BIND_NOW on the symbol.
9805 (mips16_build_call_stub): Replace the FN parameter with an
9806 FN_PTR parameter. Force the address into a register if it
9807 isn't a call_insn_operand; don't rely on the caller to do this.
9808 If a call to a locally-defined and locally-binding MIPS16
9809 function must be made indirectly, redirect the call to the
9810 function's local alias. Use mips16_stub_function_p,
9811 mips16_stub_function, mips_expand_call and use_reg.
9812 Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
9813 Use explicit %hi and %lo accesses where possible.
9814 Use MIPS_CALL to generate the correct code form of a
9815 jal instruction. Add clobbers of $18 instead of uses.
9816 Update the call to mips_emit_call_insn.
9817 (mips_expand_call): Replace the SIBCALL_P argument with a
9818 mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
9819 Take a LAZY_P parameter. Call mips16_build_call_stub first,
9820 allowing it to modify the call address. Update the calls to
9821 mips_load_call_address and mips_emit_call_insn.
9822 (mips_split_call): New function.
9823 (mips_init_relocs): Clear mips_split_hi_p. Only use %gp_rel if
9824 !TARGET_MIPS16. Split SYMBOL_GOT_DISP, and the high parts of
9825 SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
9826 (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
9827 (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
9829 (mips_cprestore_slot): New function.
9830 (mips_restore_gp): Take a TEMP parameter. Handle TARGET_MIPS16
9831 and use mips_cprestore_slot.
9832 (mips_output_function_prologue): Handle TARGET_MIPS16 for
9834 (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
9835 then use a copygp_mips16 instruction to set up $28.
9836 (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
9837 (mips16_lay_out_constants): Call split_all_insns_noflow.
9838 (mips_reorg_process_insns): Explicitly set all_noreorder_p to
9839 false if TARGET_MIPS16.
9840 (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
9841 (mips_output_mi_thunk): Use mips_got_symbol_type_p. Use the
9842 mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
9843 (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
9844 MIPS16 code. Allow MIPS16 o32 PIC.
9845 (mips_override_options): Allow MIPS16 o32 PIC.
9846 * config/mips/mips.md: Lower CONST_GP_P moves into register moves
9847 after reload if TARGET_USE_GOT.
9848 (UNSPEC_COPYGP): New constant.
9849 (length): Use a default length of 8 for MIPS16 GOT loads.
9850 (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
9851 (*got_page<mode>): Check mips_split_hi_p.
9852 (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
9853 (unspec_got<mode>, unspec_call<mode>): New expanders.
9854 (load_got<mode>, load_call<mode>): Remove the length attributes.
9855 Use a got attribute instead of a type attribute.
9856 (copygp_mips16): New insn.
9857 (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
9858 (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
9859 (sibcall, sibcall_value, call, call_value): Update the calls
9860 to mips_expand_call.
9861 (call_internal, call_value_internal): Use mips_split_call.
9862 (call_value_multiple_internal): Likewise.
9863 (call_split): Move after call_internal (the insn it is split from).
9864 (call_internal_direct, call_value_internal_direct): Turn into
9865 define_insn_and_splits. Split if TARGET_SPLIT_CALLS.
9866 (call_direct_split, call_value_direct_split): New patterns.
9867 * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
9868 and use M16_REGS instead of M16_NA_REGS.
9869 * config/mips/predicates.md (const_call_insn_operand): Replace
9870 the TARGET_ABSOLUTE_ABICALLS-based check with a more general
9871 mips_use_pic_fn_addr_reg_p check.
9872 (move_operand): Reject HIGHs if mips_split_hi_p.
9873 * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
9874 (__mips16_floatunsisf): Inline __mips16_floatsisf.
9875 (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
9876 * config/mips/libgcc-mips16.ver: New file.
9877 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
9878 $(srcdir)/config/mips/libgcc-mips16.ver.
9880 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9882 * config/mips/mips.c (mips_unspec_address_offset): Move earlier
9884 (mips_unspec_address, mips_unspec_offset_high): Likewise.
9885 (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
9886 (mips16_cfun_returns_in_fpr_p): Likewise.
9888 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9890 * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
9891 * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
9892 rather than 4 to PC.
9894 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9896 * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
9897 (FUNCTION_PROFILER): Save the static chain pointer into $2
9898 beforehand and restore it aftewards.
9899 (TRAMPOLINE_TEMPLATE): Adjust accordingly. Load the target
9900 address directly into $25 and call the function through $25;
9901 do not clobber $3. Pad the DImode version to cover the space
9902 left by the deleted $25 <- $3 move.
9903 (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
9904 the removal of the $25 <- $3 move.
9905 (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
9906 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
9908 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
9909 Daniel Jacobowitz <dan@codesourcery.com>
9911 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
9912 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
9913 (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
9914 * config/mips/mips.c (mips_start_function_definition): New function.
9915 (mips_end_function_definition): Likewise.
9916 (mips_output_function_prologue): Use mips_start_function_definition.
9917 (mips_output_function_epilogue): Use mips_end_function_definition.
9918 (build_mips16_function_stub): Use mips_start_function_definition
9919 and mips_end_function_definition.
9920 (build_mips16_call_stub): Likewise.
9922 2008-08-09 Richard Guenther <rguenther@suse.de>
9924 * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
9925 * gimple.h (gimple_call_fn): Adjust comment.
9926 (gimple_call_set_fndecl): New function.
9927 (gimple_call_fndecl): Adjust for GIMPLE_CALL no
9928 longer having bare FUNCTION_DECL operand.
9929 (gimple_call_return_type): Likewise.
9930 * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
9932 * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
9933 (gimple_mod_pow2): Likewise.
9934 (gimple_mod_subtract): Likewise.
9935 (gimple_ic): Likewise.
9936 (gimple_stringop_fixed_value): Likewise.
9937 (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
9938 longer having bare FUNCTION_DECL operand.
9939 * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
9940 * omp-low.c (optimize_omp_library_calls): Likewise.
9941 * cgraphunit.c (update_call_expr): Likewise.
9942 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
9943 (execute_convert_to_rsqrt): Likewise.
9944 * cfgexpand.c (gimple_to_tree): Simplify.
9945 (release_stmt_tree): Fix for GIMPLE_CALL no longer having
9946 bare FUNCTION_DECL operand.
9947 * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
9948 (convert_gimple_call): Use gimple_call_fndecl.
9949 * c-common.c (c_warn_unused_result): Likewise.
9951 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9954 * c-typeck.c (digest_init): Call verify_sequence_points from here.
9955 (c_finish_return): Likewise.
9956 (c_start_case): Likewise.
9957 * c-common.c (warn_for_collisions_1): Use explicit location in warning.
9958 * c-parser.c (c_parser_condition): New. Call
9959 verify_sequence_points.
9960 (c_parser_paren_condition): Call c_parser_condition.
9961 (c_parser_for_statement): Call c_parser_condition.
9963 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9966 * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
9967 * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
9968 Moved from diagnostic.h
9969 (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
9971 (emit_diagnostic): New.
9972 (warning0, pedwarn0): Delete.
9973 (warning, warning_at, pedwarn, permerror): Return bool.
9974 * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
9975 Moved to diagnostic.c.
9976 (struct diagnostic_context): Use correct type for
9977 classify_diagnostic.
9978 (diagnostic_report_diagnostic): Update declaration.
9979 (emit_diagnostic): Declare.
9980 * errors.c (warning): Return bool.
9981 * errors.h (warning): Update declaration.
9982 * toplev.h (warning0, pedwarn0): Delete.
9983 (warning, warning_at, pedwarn, permerror): Return bool.
9984 * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
9985 * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
9986 inform. Update all calls.
9987 (diagnose_mismatched_decls): Check return value of warning/pedwarn
9988 before giving informative note.
9989 (implicit_decl_warning): Likewise.
9990 * c-typeck.c (build_function_call): Likewise.
9991 * tree-sssa.c (warn_uninit): Likewise.
9992 * builtins.c (gimplify_va_arg_expr): Likewise.
9994 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9997 * doc/invoke.texi (-Wextra): Move warning from here...
9998 (-Wuninitialized): ... to here.
10000 2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10003 * flags.h (set_Wunused): Delete
10004 * toplev.c (process_options): Handle Wunused flags here.
10005 * opts.c (maybe_warn_unused_parameter): Delete.
10006 (common_handle_option): Replace set_Wunused by warn_unused.
10007 (set_Wextra): Do not handle Wunused-parameter here.
10008 (set_Wunused): Delete.
10009 * c-opts.c (c_common_handle_option): Replace set_Wunused by
10011 * common.opt (Wunused): Add Var and Init.
10012 (Wunused-function): Likewise.
10013 (Wunused-label): Likewise.
10014 (Wunused-parameter): Likewise.
10015 (Wunused-value): Likewise.
10016 (Wunused-variable): Likewise.
10018 2008-08-08 Peter Bergner <bergner@vnet.ibm.com>
10020 * doc/invoke.texi: Add cpu_type power7.
10021 * config.in (HAVE_AS_VSX): New.
10022 * config.gcc: Add cpu_type power7.
10023 * configure.ac (HAVE_AS_VSX): Check for assembler support of the
10025 * configure: Regenerate.
10026 * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
10028 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
10029 (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
10030 (EXTRA_SPECS): Add asm_cpu_power7 spec string.
10032 2008-08-08 Dorit Nuzman <dorit@il.ibm.com>
10034 * tree-vect-transform.c (vectorizable_conversion): Pass the integral
10035 type to vectorize.builtin_conversion.
10036 (vectorizable_conversion): Likewise.
10037 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
10038 integral type as input.
10039 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
10041 (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
10042 and ALTIVEC_BUILTIN_VCTSXS.
10043 (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
10046 2008-08-08 Richard Guenther <rguenther@suse.de>
10048 * tree-ssa-ccp.c (likely_value): Calls are not all varying.
10049 (surely_varying_stmt_p): Calls are varying only if they are
10050 non-builtin and not indirect or have no result.
10051 (ccp_fold): Re-instantiate code before the tuples merge.
10053 2008-08-08 Richard Guenther <rguenther@suse.de>
10055 PR tree-optimization/37056
10056 * gimple.h (gimple_assign_rhs_class): New helper function.
10057 * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
10058 unary operations properly.
10060 2008-08-07 Jan Hubicka <jh@suse.cz>
10062 * i386.h (ix86_size_cost): Declare.
10063 (ix86_cur_cost): New function macro.
10064 * i386.md (peepholes expanding size and splitters): Predicate by
10065 optimize_insn_for_speed_p.
10066 (peepholes reduce size and splitters): Predicate by
10067 optimize_insn_for_size_p.
10068 * i386.c (ix86_size_cost): Rename from ...
10069 (size_cost): This one.
10070 (override_options): Update.
10071 (decide_alg): Likewise.
10072 (ix86_expand_clear): Use RTL profile.
10073 (ix86_pad_returns): Use RTL profile.
10075 2008-08-07 Jan Hubicka <jh@suse.cz>
10077 * recog.c (split_all_insns): Set RTL profile
10078 (peephole2_optimize): Likewise.
10079 * function.c (thread_prologue_and_epilogue_insns): Likewise.
10080 * combine.c (combine_instructions): Likewise.
10082 2008-08-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10084 * c-common.c (c_common_reswords): Also warn about keyword "bool".
10086 2008-08-07 Bob Wilson <bob.wilson@acm.org>
10088 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
10089 value in a6 after the set_frame_ptr insn.
10091 2008-08-07 Richard Henderson <rth@redhat.com>
10094 * gcc.c (cpp_options): Pass along -g*.
10096 2008-08-07 Joseph Myers <joseph@codesourcery.com>
10098 * config/arm/arm.c (output_move_neon): Update comment describing
10099 big-endian vector layout.
10100 (arm_assemble_integer): Do not handle big-endian NEON vectors
10102 * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
10103 neon_vget_lane<mode>_sext_internal,
10104 neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
10105 element indices for big-endian.
10107 2008-08-07 Richard Henderson <rth@redhat.com>
10109 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
10110 * configure, config.in: Rebuild.
10111 * debug.h (dwarf2out_do_cfi_asm): Declare.
10112 * c-cppbuiltin.c (c_cpp_builtins): Use it.
10113 * dwarf2out.c (dwarf2out_do_cfi_asm): New.
10114 (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
10115 dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
10117 2008-08-07 Joseph Myers <joseph@codesourcery.com>
10119 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
10120 movv2si_internal): Combine into mov<mode>_internal.
10121 (movv2si_internal_2): Remove.
10123 2008-08-07 Jan Hubicka <jh@suse.cz>
10126 * i386.md (single stringop patterns): Enable unconditionally.
10128 2008-08-07 H.J. Lu <hongjiu.lu@intel.com>
10131 * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
10133 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
10134 (bdesc_args): Add IX86_BUILTIN_MOVQ128.
10136 * config/i386/sse.md (sse2_movq128): New.
10138 * doc/extend.texi: Document __builtin_ia32_movq128.
10140 2008-08-07 Richard Guenther <rguenther@suse.de>
10142 PR middle-end/37042
10143 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
10144 pointers can access anything.
10146 2008-08-06 Jan Hubicka <jh@suse.cz>
10148 * optabs.c (emit_unop_insn): Break out to ...
10149 (maybe_emit_unop_insn): ... this one.
10150 (expand_sfix_optab): Use maybe variant.
10151 * optabs.h (maybe_emit_unop_insn): Declare.
10153 * i386.md (mov0 patterns): Enable by default.
10154 (FP conversion expanders): Disable expansion of code expanding
10155 sequences when instruction should be optimized for size.
10156 (single strinop patterns): Enable when optimizing for size.
10157 (string expanders): Disable expanding of code expanding sequences
10158 when optimizning instruction for size.
10159 * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
10161 (ix86_fp_comparison_sahf_cost): Likewise.
10162 (ix86_expand_branch): Likewise.
10163 (ix86_expand_ashl_const): Likewise.
10164 (ix86_split_ashl): Likewise.
10165 (ix86_expand_strlen): Likewise.
10166 (ix86_emit_fp_unordered_jump): Likewie.
10168 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10170 * c-common.c: Fix typo.
10171 (c_common_reswords): Activate more C++ keyword warnings.
10173 * matrix-reorg.c (compute_offset): Avoid C++ keywords.
10175 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10178 * diagnostic.c (permerror_at): New.
10179 * toplev.h (permerror_at): Declare.
10181 2008-08-06 Victor Kaplansky <victork@il.ibm.com>
10182 Ira Rosen <irar@il.ibm.com>
10184 * tree-vect-transform.c (vect_model_simple_cost): Return
10185 immediately if stmt is pure SLP.
10186 (vect_model_store_cost): Ditto.
10187 (vect_model_load_cost): Ditto.
10188 (vectorizable_store): Remove PURE_SLP check before call
10189 to vect_model_store_cost.
10190 (vect_model_store_cost): When checking whether stmt describe
10191 strided access, add a check that it is not slp_node.
10193 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10196 * c-common.c (warn_for_sign_compare): New. Handle separately the
10197 case that 'constant' is zero.
10198 * c-typeck.c (build_binary_op): Move code to c-common.c
10200 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10202 * config/alpha/alpha.c (alpha_preferred_reload_class,
10203 alpha_secondary_reload, alpha_emit_set_const_1, function_value,
10204 alpha_output_mi_thunk_osf): Avoid C++ keywords.
10205 * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
10206 * config/arm/arm.md: Likewise.
10207 * config/avr/avr-protos.h (preferred_reload_class,
10208 test_hard_reg_class, avr_simplify_comparison_p,
10209 out_shift_with_cnt, class_max_nregs): Likewise.
10210 * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
10211 output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
10212 preferred_reload_class, test_hard_reg_class): Likewise.
10213 * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
10214 bfin_memory_move_cost, bfin_secondary_reload,
10215 bfin_output_mi_thunk): Likewise.
10216 * config/crx/crx.c (crx_secondary_reload_class,
10217 crx_memory_move_cost): Likewise.
10218 * config/frv/frv-protos.h (frv_secondary_reload_class,
10219 frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
10220 * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
10221 frv_secondary_reload_class, frv_class_likely_spilled_p,
10222 frv_class_max_nregs): Likewise.
10223 * config/h8300/h8300.c (h8300_classify_operand,
10224 h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
10226 * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
10227 * config/ia64/ia64.c (ia64_preferred_reload_class,
10228 ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
10229 * config/iq2000/iq2000.c (gen_int_relational): Likewise.
10230 * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
10232 * config/m68hc11/m68hc11.c (preferred_reload_class,
10233 m68hc11_memory_move_cost): Likewise.
10234 * config/mcore/mcore.c (mcore_secondary_reload_class,
10235 mcore_reload_class): Likewise.
10236 * config/mips/mips.c (mips_hard_regno_mode_ok_p,
10237 mips_class_max_nregs, mips_cannot_change_mode_class,
10238 mips_preferred_reload_class, mips_secondary_reload_class,
10239 mips_output_mi_thunk): Likewise.
10240 * config/mmix/mmix.c (mmix_preferred_reload_class,
10241 mmix_preferred_output_reload_class, mmix_secondary_reload_class):
10243 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10245 * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
10246 pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
10247 * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
10248 * config/rs6000/rs6000.c (paired_expand_vector_init,
10249 rs6000_secondary_reload_class, rs6000_output_mi_thunk,
10250 compare_section_name, rs6000_memory_move_cost): Likewise.
10251 * config/s390/s390.c (s390_emit_compare_and_swap,
10252 s390_preferred_reload_class, s390_secondary_reload,
10253 legitimize_pic_address, legitimize_tls_address,
10254 legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
10255 s390_class_max_nregs): Likewise.
10256 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
10257 * config/s390/s390.md: Likewise.
10258 * config/score/score-protos.h (score_secondary_reload_class,
10259 score_preferred_reload_class): Likewise.
10260 * config/score/score.c (score_preferred_reload_class,
10261 score_secondary_reload_class): Likewise.
10262 * config/score/score3.c (score3_output_mi_thunk,
10263 score3_preferred_reload_class, score3_secondary_reload_class,
10264 score3_hard_regno_mode_ok): Likewise.
10265 * config/score/score3.h (score3_preferred_reload_class,
10266 score3_secondary_reload_class): Likewise.
10267 * config/score/score7.c (score7_output_mi_thunk,
10268 score7_preferred_reload_class, score7_secondary_reload_class,
10269 score7_hard_regno_mode_ok): Likewise.
10270 * config/score/score7.h (score7_preferred_reload_class,
10271 score7_secondary_reload_class): Likewise.
10272 * config/sh/sh.c (prepare_move_operands, output_far_jump,
10273 output_branchy_insn, add_constant, gen_block_redirect,
10274 sh_insn_length_adjustment, sh_cannot_change_mode_class,
10275 sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
10276 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10277 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
10278 xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
10279 xstormy16_preferred_reload_class): Likewise.
10280 * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
10281 xtensa_expand_atomic, override_options,
10282 xtensa_preferred_reload_class, xtensa_secondary_reload_class):
10284 * reorg.c (try_merge_delay_insns): Likewise.
10285 * tree.c (merge_dllimport_decl_attributes): Likewise.
10287 * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
10289 2008-08-06 Michael Matz <matz@suse.de>
10291 * Makefile.in (write_entries_to_file): Quote words.
10292 * gengtype.c: (read_input_line): Skip over leading white-space.
10294 2008-08-06 Marc Gauthier <marc@tensilica.com>
10296 * config.gcc: Match more processor names for Xtensa.
10297 * configure.ac: Likewise.
10298 * doc/install.texi (Specific): Likewise.
10299 * configure: Regenerate.
10301 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10303 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
10304 * calls.c (avoid_likely_spilled_reg): Likewise.
10305 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
10306 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
10307 * config/i386/i386.c (ix86_expand_special_args_builtin,
10308 ix86_secondary_reload): Likewise.
10309 * except.c (struct eh_region, gen_eh_region_catch,
10310 remove_unreachable_regions, duplicate_eh_regions,
10311 assign_filter_values, build_post_landing_pads,
10312 sjlj_find_directly_reachable_regions, remove_eh_handler,
10313 reachable_next_level, foreach_reachable_handler,
10314 can_throw_internal_1, can_throw_external_1,
10315 collect_one_action_chain): Likewise.
10316 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
10317 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
10318 * function.c (update_temp_slot_address, instantiate_new_reg,
10319 instantiate_virtual_regs_in_rtx,
10320 instantiate_virtual_regs_in_insn): Likewise.
10321 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
10322 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
10323 gimplify_cleanup_point_expr): Likewise.
10324 * ipa-cp.c (ipcp_lattice_changed): Likewise.
10325 * passes.c (next_pass_1): Likewise.
10326 * print-tree.c (print_node_brief, print_node): Likewise.
10327 * profile.c (branch_prob): Likewise.
10328 * tree-dump.c (dump_register): Likewise.
10329 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
10331 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
10332 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
10333 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
10334 copy_arguments_for_versioning, copy_static_chain): Likewise.
10335 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
10336 add_new_name_mapping, register_new_name_mapping): Likewise.
10337 * tree-mudflap.c (mf_xform_derefs): Likewise.
10338 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
10339 get_init_expr, combine_chains): Likewise.
10340 * tree-pretty-print.c (dump_generic_node): Likewise.
10341 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
10342 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
10343 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
10344 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
10346 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
10348 PR middle-end/37010
10349 * calls.c (expand_call): Use the biggest preferred stack
10352 2008-08-06 Michael Matz <matz@suse.de>
10355 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
10356 for reused reload, instead of overwriting them.
10358 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
10360 PR middle-end/37009
10361 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
10362 for incoming stack boundary.
10364 * function.c (assign_parm_find_entry_rtl): Update
10365 parm_stack_boundary.
10367 * function.h (rtl_data): Add parm_stack_boundary.
10369 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
10370 parm_stack_boundary for incoming stack boundary.
10372 2008-08-06 Joseph Myers <joseph@codesourcery.com>
10374 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
10375 for unrepresentable subregs or treat them as equal to other regs
10376 or subregs with the same register number.
10378 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
10380 PR middle-end/35432
10381 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
10384 2008-08-06 Jan Hubicka <jh@suse.cz>
10386 * predict.c (maybe_hot_frequency_p): When profile is absent, all
10387 frequencies might be hot.
10389 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
10391 * reload.c (find_reloads): Force constants into literal pool
10392 also if they are wrapped in a SUBREG.
10394 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10397 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
10398 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
10399 Don't allow predicated instructions for data speculation.
10400 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
10403 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10405 * haifa-sched.c (extend_global): Split to extend_global_data and
10406 extend_region_data. Update all uses.
10407 (extend_all): Rename to extend_block_data.
10409 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10411 * sched-rgn.c (new_ready): Check if instruction can be
10412 speculatively scheduled before attempting speculation.
10413 (debug_rgn_dependencies): Remove wrongful assert.
10415 2008-08-05 Bob Wilson <bob.wilson@acm.org>
10417 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
10419 2008-08-05 Bob Wilson <bob.wilson@acm.org>
10421 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
10422 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
10423 va_size, and type_size.
10425 2008-08-04 Jason Merrill <jason@redhat.com>
10428 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
10429 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
10431 2008-08-05 Richard Henderson <rth@redhat.com>
10433 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
10434 * configure: Rebuild.
10436 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
10439 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
10440 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
10443 2008-08-05 Richard Henderson <rth@redhat.com>
10445 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
10446 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
10447 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
10448 * common.opt (fdwarf2-cfi-asm): New.
10449 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
10450 * config.in, configure: Rebuild.
10451 * dwarf2asm.c (dw2_asm_output_data_raw): New.
10452 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw):
10454 (dw2_force_const_mem): Externalize.
10455 * dwarf2asm.h: Update.
10456 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
10457 generate a real label.
10458 (output_cfi_directive): New.
10459 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
10460 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
10461 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
10463 (dwarf2out_end_epilogue): Emit .cfi_endproc.
10464 (output_loc_operands_raw, output_loc_sequence_raw): New.
10465 (output_cfa_loc_raw): New.
10467 2008-08-05 Paul Brook <paul@codesourcery.com>
10469 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
10470 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
10471 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
10472 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
10473 * config/arm/arm.h (TARGET_VFPD32): Define.
10474 (TARGET_VFP3): Use TARGET_VFPD32.
10475 (fputype): Add FPUTYPE_VFP3D16.
10476 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
10477 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
10478 * config/arm/arm-cores.def: Add cortex-r4f.
10479 * config/arm/arm-tune.md: Regenerate.
10481 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10483 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
10484 Reword some comments throughout the file.
10486 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
10487 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
10488 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of
10489 MFC_MIN_DMA_LIST_ELEMENTS.
10490 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of
10491 MFC_MAX_DMA_LIST_ELEMENTS.
10493 (MFC_START_ENABLE): Remove PPU-only define.
10494 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
10495 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
10497 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
10498 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
10499 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
10500 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
10501 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
10502 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
10503 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
10505 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
10506 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
10507 (mfc_sdcrt, mfc_sdcrtst): Likewise.
10508 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
10510 (spu_read_machine_status): Fix typo.
10512 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10514 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
10515 SUBREG of multi-word hard register.
10516 * config/spu/spu.c (valid_subreg): Likewise.
10517 (adjust_operand): Handle SUBREGs of multi-word hard registers.
10519 2008-08-04 Richard Guenther <rguenther@suse.de>
10521 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
10522 the candidate with the stripped base if that base is different
10523 from the original base even for offset zero.
10525 2008-08-04 Richard Guenther <rguenther@suse.de>
10527 PR middle-end/36691
10528 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
10529 check for no_overflow.
10531 2008-08-04 Richard Guenther <rguenther@suse.de>
10533 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
10535 2008-08-04 Paul Brook <paul@codesourcery.com>
10537 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
10538 (arm_order_regs_for_local_alloc): New function.
10539 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
10541 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
10543 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
10546 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
10547 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
10548 (ix86_expand_epilogue): Likewise.
10550 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
10552 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
10555 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
10557 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
10558 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
10559 (*movv2sf_internal_rex64): Ditto.
10561 2008-08-03 Jan Hubicka <jh@suse.cz>
10563 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
10564 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
10565 * expmed.c (expand_smod_pow2): Likewise.
10567 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
10570 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
10571 alternative 0 of operand 1.
10572 (*vec_concatv2di_rex64_sse): Ditto.
10573 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
10575 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
10576 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
10577 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
10578 (*movv2sf_internal_rex64): Ditto.
10580 2008-08-02 Richard Guenther <rguenther@suse.de>
10583 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
10584 (ssedoublesizemode): New mode attribute.
10585 (sse_shufps): Call gen_sse_shufps_v4sf.
10586 (sse_shufps_1): Macroize.
10587 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
10588 (sse2_shufpd_1): Macroize.
10589 (vec_extract_odd, vec_extract_even): New expanders.
10590 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
10591 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
10592 * i386.c (ix86_expand_vector_init_one_nonzero): Call
10593 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
10594 (ix86_expand_vector_set): Likewise.
10595 (ix86_expand_reduc_v4sf): Likewise.
10597 2008-08-01 Doug Kwan <dougkwan@google.com>
10599 * matrix-reorg.c: Re-enable all code.
10600 (struct malloc_call_data): Change CALL_STMT to gimple type.
10601 (collect_data_for_malloc_call): Tuplify.
10602 (struct access_site_info): Change STMT to gimple type.
10603 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
10604 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
10605 (struct free_info): Change STMT to gimple type.
10606 (struct matrix_access_phi_node): Change PHI to gimple type.
10607 (get_inner_of_cast_expr): Remove.
10608 (may_flatten_matrices_1): Tuplify.
10609 (may_flatten_matrices): Ditto.
10610 (mark_min_matrix_escape_level): Ditto.
10611 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
10612 (ssa_accessed_in_call_rhs): New
10613 (ssa_accessed_in_assign_rhs): New
10614 (record_access_alloc_site_info): Tuplify.
10615 (add_allocation_site): Ditto.
10616 (analyze_matrix_allocation_site): Ditto.
10617 (analyze_transpose): Ditto.
10618 (get_index_from_offset): Ditto.
10619 (update_type_size): Ditto.
10620 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
10621 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
10622 (analyze_accesses_for_phi_node): Tuplify.
10623 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
10624 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
10625 (analyze_matrix_accesses): Tuplify.
10626 (check_var_data): New call-back type for check_var_notmodified_p.
10627 (check_var_notmodified_p): Tuplify and use call-back struct to
10628 return statement found.
10629 (can_calculate_expr_before_stmt): Factor out statement related code
10631 (can_calculate_stmt_before_stmt): New.
10632 (check_allocation_function): Tuplify.
10633 (find_sites_in_func): Ditto.
10634 (record_all_accesses_in_func): Ditto.
10635 (transform_access_sites): Ditto.
10636 (transform_allocation_sites): Ditto.
10637 (matrix_reorg): Re-enable.
10638 (gate_matrix_reorg): Re-enable.
10640 2008-08-01 Jakub Jelinek <jakub@redhat.com>
10642 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
10643 for labels for which it hasn't been set yet. If it has been set,
10644 stop walking insns and continue with next worklist item.
10645 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
10646 if the only BARRIER is at the very end of a function.
10648 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
10650 * cfgexpand.c (expand_stack_alignment): Assert that
10651 stack_realign_drap and drap_rtx must match.
10653 * function.c (instantiate_new_reg): If DRAP is used to realign
10654 stack, replace virtual_incoming_args_rtx with internal arg
10657 2008-08-01 Richard Guenther <rguenther@suse.de>
10659 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
10660 loop information only if we initialized it.
10661 (execute_pre): Call fini_pre with in_fre.
10662 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
10663 if we do not unroll because we hit max-completely-peeled-insns.
10664 Use our estimation for consistency, do allow shrinking.
10666 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
10668 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
10669 with MIN_STACK_BOUNDARY.
10670 (ix86_update_stack_boundary): Likewise.
10671 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
10674 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
10675 (MIN_STACK_BOUNDARY): This.
10677 2008-08-01 Richard Guenther <rguenther@suse.de>
10679 PR middle-end/36997
10680 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
10682 2008-08-01 Richard Guenther <rguenther@suse.de>
10684 PR tree-optimization/36988
10685 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
10686 do not matter if that doesn't change volatile qualification.
10688 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
10690 * configure.ac: Do not generate libada-mk. Do not subst
10691 host_cc_for_libada.
10692 * libada-mk.in: Remove.
10693 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
10694 * configure: Regenerate.
10696 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
10698 * tree-pass.h: Added comment about not dumping passes with name
10699 starting with star in struct opt_pass.
10700 * passes.c (register_dump_files_1): Don't do dump for a pass with
10701 name starting with star.
10702 * doc/passes.texi (Pass manager): Mention pass names and special
10703 meaning of star prefix to avoid dump.
10705 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
10707 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
10709 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
10710 (ISA_MIPS64R2): New macro.
10711 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
10712 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
10713 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
10714 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
10715 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
10716 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
10717 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
10718 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
10719 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
10720 Move up to keep list alphabetically sorted.
10721 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
10722 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
10724 * doc/invoke.texi (MIPS Options): Add -mips64r2.
10725 (-march=@var{arch}): Add mips64r2.
10727 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
10729 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
10731 2008-07-31 Steve Ellcey <sje@cup.hp.com>
10733 * expr.c (expand_assignment): Check for complete type.
10735 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
10738 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
10740 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
10741 for stack alignment.
10743 * function.h (rtl_data): Add stack_realign_tried. Update comments.
10745 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
10747 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
10748 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
10750 2008-07-31 Jakub Jelinek <jakub@redhat.com>
10752 PR rtl-optimization/36419
10753 * dwarf2out.c (barrier_args_size): New variable.
10754 (compute_barrier_args_size, compute_barrier_args_size_1): New
10756 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
10757 if not called yet in the current function, use barrier_args_size
10758 array to find the new args_size value.
10759 (dwarf2out_frame_debug): Free and clear barrier_args_size.
10761 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
10764 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
10767 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
10770 * dwarf2out.c (dwarf2out_args_size_adjust): New.
10771 (dwarf2out_stack_adjust): Use it.
10772 (dwarf2out_frame_debug_expr): Likewise.
10774 2008-07-31 Richard Guenther <rguenther@suse.de>
10776 PR tree-optimization/36978
10777 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
10778 the generated condition.
10780 2008-07-31 Richard Guenther <rguenther@suse.de>
10782 * passes.c (init_optimization_passes): Always call
10783 pass_early_warn_uninitialized.
10784 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
10785 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
10786 * doc/passes.texi (Warn for uninitialized variables): Adjust.
10788 2008-07-31 Jakub Jelinek <jakub@redhat.com>
10791 * builtins.c (maybe_emit_free_warning): New function.
10792 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
10793 maybe_emit_free_warning for BUILT_IN_FREE.
10796 * dwarf2out.c (get_context_die): New function.
10797 (force_decl_die, force_type_die): Use it.
10798 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
10799 returns NULL, force generation of DW_TAG_typedef and put that into
10802 PR preprocessor/36649
10803 * c-pch.c (c_common_read_pch): Save and restore
10804 line_table->trace_includes across PCH restore.
10806 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
10809 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
10811 2008-07-30 Rafael Ávila de Espíndola <espindola@google.com>
10814 * final.c (call_from_call_insn): Handle COND_EXEC.
10816 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
10818 * builtins.c (std_gimplify_va_arg_expr): Replace
10819 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
10820 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
10822 2008-07-30 Joey Ye <joey.ye@intel.com>
10823 H.J. Lu <hongjiu.lu@intel.com>
10825 * builtins.c (expand_builtin_setjmp_receiver): Replace
10826 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
10827 (expand_builtin_apply_args_1): Likewise.
10828 (expand_builtin_longjmp): Need DRAP for stack alignment.
10829 (expand_builtin_apply): Likewise.
10831 * caller-save.c (setup_save_areas): Call assign_stack_local_1
10832 instead of assign_stack_local to allow alignment reduction.
10834 * calls.c (emit_call_1): Need DRAP for stack alignment if
10836 (expand_call): Replace virtual_incoming_args_rtx with
10837 crtl->args.internal_arg_pointer.
10838 * stmt.c (expand_nl_goto_receiver): Likewise.
10840 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
10841 alignment and store to stack_alignment_estimated and
10842 max_used_stack_slot_alignment.
10843 (expand_one_var): Likewise.
10844 (expand_stack_alignment): New function.
10845 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
10846 and stack_alignment_estimated fields in rtl_data. Call
10847 expand_stack_alignment at end.
10849 * defaults.h (INCOMING_STACK_BOUNDARY): New.
10850 (MAX_STACK_ALIGNMENT): Likewise.
10851 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
10852 (SUPPORTS_STACK_ALIGNMENT): Likewise.
10854 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
10855 stack alignment when generating virtual registers.
10857 * function.c (assign_stack_local): Renamed to ...
10858 (assign_stack_local_1): This. Add a parameter to indicate
10859 if it is OK to reduce alignment.
10860 (assign_stack_local): Use it.
10861 (instantiate_new_reg): Instantiate virtual incoming args rtx
10862 to vDRAP if stack realignment and DRAP is needed.
10863 (assign_parms): Collect parameter/return type alignment and
10864 contribute to stack_alignment_estimated.
10865 (locate_and_pad_parm): Likewise.
10866 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
10867 with crtl->args.internal_arg_pointer.
10869 * function.h (rtl_data): Add new field drap_reg,
10870 max_used_stack_slot_alignment, stack_alignment_estimated,
10871 stack_realign_needed, need_drap, stack_realign_processed and
10872 stack_realign_finalized.
10873 (stack_realign_fp): New macro.
10874 (stack_realign_drap): Likewise.
10876 * global.c (compute_regsets): Frame pointer is needed when
10877 stack is realigned. Can eliminate frame pointer when stack is
10878 realigned and dynamic realigned argument pointer isn't used.
10880 * reload1.c (update_eliminables): Frame pointer is needed
10881 when stack is realigned.
10882 (init_elim_table): Can eliminate frame pointer when stack is
10883 realigned and dynamic realigned argument pointer isn't used.
10885 * rtl.h (assign_stack_local_1): Declare new funtion.
10887 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
10888 (TARGET_GET_DRAP_RTX): Likewise.
10889 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
10890 TARGET_GET_DRAP_RTX.
10892 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
10894 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
10895 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
10897 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
10898 H.J. Lu <hongjiu.lu@intel.com>
10900 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
10901 vdrap_reg, stack_realign and drap_reg_saved.
10902 (add_cfi): Don't allow redefining CFA when DRAP is used.
10903 (reg_save): Handle stack alignment.
10904 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
10905 alignment. Don't generate DWARF information for (set fp sp)
10907 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
10909 (int_loc_descriptor): Move prototype forward. Also define if
10910 DWARF2_UNWIND_INFO is true.
10911 (output_cfa_loc): Handle DW_CFA_expression.
10912 (build_cfa_aligned_loc): New.
10913 (based_loc_descr): Update assert for stack realign. For local
10914 variables, use sp+offset when stack is aligned without drap and
10915 fp+offset when stack is aligned with drap. For arguments, use
10916 cfa+offset when drap is used to align stack.
10918 2008-07-30 Joey Ye <joey.ye@intel.com>
10919 H.J. Lu <hongjiu.lu@intel.com>
10921 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
10923 (ix86_gen_andsp): New.
10924 (ix86_user_incoming_stack_boundary): Likewise.
10925 (ix86_default_incoming_stack_boundary): Likewise.
10926 (ix86_incoming_stack_boundary): Likewise.
10927 (ix86_can_eliminate): Likewise.
10928 (find_drap_reg): Likewise.
10929 (ix86_update_stack_boundary): Likewise.
10930 (ix86_get_drap_rtx): Likewise.
10931 (ix86_finalize_stack_realign_flags): Likewise.
10932 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
10933 (TARGET_GET_DRAP_RTX): Likewise.
10934 (override_options): Overide option value for new options.
10935 (ix86_function_ok_for_sibcall): Remove check for
10936 force_align_arg_pointer.
10937 (ix86_handle_cconv_attribute): Likewise.
10938 (ix86_function_regparm): Likewise.
10939 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
10940 (ix86_va_start): Replace virtual_incoming_args_rtx with
10941 crtl->args.internal_arg_pointer.
10942 (ix86_select_alt_pic_regnum): Check DRAP register.
10943 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
10944 (ix86_compute_frame_layout): Compute frame layout wrt stack
10946 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
10947 (ix86_expand_prologue): Decide if stack realignment is needed
10948 and generate prologue code accordingly.
10949 (ix86_expand_epilogue): Generate epilogue code wrt stack
10950 realignment is really needed or not.
10952 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
10953 (ABI_STACK_BOUNDARY): Likewise.
10954 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
10955 (STACK_REALIGN_DEFAULT): Likewise.
10956 (INCOMING_STACK_BOUNDARY): Likewise.
10957 (MAX_STACK_ALIGNMENT): Likewise.
10958 (ix86_incoming_stack_boundary): Likewise.
10959 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
10960 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
10961 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
10962 (machine_function): Remove force_align_arg_pointer.
10964 * config/i386/i386.md (BX_REG): New.
10965 (R13_REG): Likewise.
10967 * config/i386/i386.opt (mforce_drap): New.
10968 (mincoming-stack-boundary): Likewise.
10969 (mstackrealign): Add Init(-1).
10971 * config/i386/i386-protos.h (ix86_can_eliminate): New
10973 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
10975 * doc/extend.texi: Update force_align_arg_pointer.
10977 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
10980 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
10981 (INCOMING_STACK_BOUNDARY): Likewise.
10982 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
10983 (TARGET_GET_DRAP_RTX): Likewise.
10985 2008-07-30 Andreas Schwab <schwab@suse.de>
10987 PR rtl-optimization/36929
10988 * dse.c (replace_inc_dec): Use emit_insn_before instead of
10989 add_insn_before and fix argument order.
10990 (replace_inc_dec_mem): Handle NULL rtx.
10992 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
10994 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
10996 (arm_compute_initial_elimination_offset): Use it.
10997 (arm_compute_save_reg_mask): Include static chain save slot when
10998 calculating alignment.
10999 (arm_get_frame_offsets): Ditto.
11000 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
11001 that we can use to decrement the stack when the stack decrement
11002 could be too big for an immediate value in a single insn.
11003 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
11005 2008-07-30 Richard Guenther <rguenther@suse.de>
11007 PR tree-optimization/36967
11008 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
11009 Release defs of statements we remove.
11011 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
11013 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
11014 instead of NULL_RTVEC.
11016 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
11020 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
11023 2008-07-30 Rafael Ávila de Espíndola <espindola@google.com>
11025 * final.c (call_from_call_insn): New.
11026 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
11028 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
11030 * configure.ac: Substitute ADA_CFLAGS.
11031 * configure: Regenerate.
11032 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
11033 * Makefile.in: Remove mention of X_* variables.
11034 * config/pa/x-ada-hpux10: Remove.
11035 * config/pa/x-ada: Remove.
11037 * doc/fragments.texi: Update.
11039 2008-07-30 Olivier Hainque <hainque@adacore.com>
11041 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
11042 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
11043 __dso_handle explicitly here.
11045 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11048 * c-typeck.c (build_binary_op): Encapsulate code into...
11049 * c-common.c (shorten_binary_op): ...this new function.
11050 (conversion_warning): Use the new function. Handle non-negative
11051 constant in bitwise-and.
11052 * c-common.h (shorten_binary_op): Declare.
11054 2008-07-30 Olivier Hainque <hainque@adacore.com>
11056 * scan.c (make_sstring_space): Add explicit conversions of
11057 allocator's return value.
11058 * fix-header.c (recognized_function): Likewise.
11060 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11062 * doc/cpp.texi: Update to GFDL 1.2.
11063 * doc/gcc.texi: Do not list GPL as Invariant Section.
11064 * doc/gccint.texi: Likewise. Update copyright years.
11065 * doc/install.texi: Update copyright years.
11067 2008-07-30 Alan Modra <amodra@bigpond.net.au>
11070 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
11071 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
11073 2008-07-29 Jan Hubicka <jh@suse.cz>
11075 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
11076 (grokdeclarator): Likewise.
11077 * langhooks.c (lhd_warn_unused_global_decl): Use
11078 DECL_DECLARED_INLINE_P.
11079 * print-tree.c (print_node): Remove DECL_INLINE check.
11081 2008-07-29 Richard Guenther <rguenther@suse.de>
11083 PR tree-optimization/36945
11084 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
11085 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
11086 Record invariant addresses un-decomposed.
11087 (copy_reference_ops_from_call): Record reference call
11088 arguments properly. Simplify.
11089 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
11090 helper split out from ...
11091 (create_component_ref_by_pieces): ... here. Simplify.
11092 Prepare for recursive invocation for call arguments.
11093 (create_expression_by_pieces): Adjust call to
11094 create_component_ref_by_pieces.
11095 (compute_avail): Process operand 2 of reference ops.
11097 2008-07-29 Richard Guenther <rguenther@suse.de>
11099 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
11101 2008-07-29 Jakub Jelinek <jakub@redhat.com>
11103 * c-format.c (check_format_types): Revert unwanted checkin.
11105 2008-07-29 Jan Hubicka <jh@suse.cz>
11107 * flags.h (flag_really_no_inline): Remove.
11108 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
11109 * toplev.c (flag_really_no_inline): Remove.
11110 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
11111 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
11112 (cgraph_decide_inlining_incrementally): Likewise.
11113 (compute_inline_parameters): Likewise.
11114 * opts.c (decode_options): Simplify.
11115 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
11116 * common.opt (finline): Initialize to 1.
11117 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
11119 2008-07-29 Jan Hubicka <jh@suse.cz>
11121 * predict.c (always_optimize_for_size_p): New function.
11122 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
11123 optimize_edge_for_size_p, optimize_edge_for_speed_p,
11124 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
11126 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
11127 * function.c (prepare_function_start): Set default profile.
11128 * function.h (rtl_data): Add maybe_hot_insn_p.
11129 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
11130 (construct_exit_block): Likewise.
11131 (tree_expand_cfg): Likewise.
11133 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
11134 optimize_edge_for_size_p, optimize_edge_for_speed_p,
11135 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
11136 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
11139 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11142 * c-decl.c (merge_decls): Merge USED flags.
11144 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
11146 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
11147 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
11148 next_stack, lab_false and lab_over trees.
11150 2008-07-28 Richard Guenther <rguenther@suse.de>
11152 PR tree-optimization/36957
11153 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
11154 (useless_type_conversion_p): Remove.
11155 (types_compatible_p): Remove.
11156 * gimple.h (tree_ssa_useless_type_conversion): Declare.
11157 (useless_type_conversion_p): Declare.
11158 (types_compatible_p): Declare.
11159 (gimple_expr_type): Return the base type only if it is
11160 trivially convertible to the subtype.
11162 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
11164 * configure.ac: Use the m4_do macro to concatenate the warnings into
11165 one string in ACX_PROG_CC_WARNING_OPTS,
11166 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
11167 ACX_PROG_CC_WARNINGS_ARE_ERRORS.
11168 * configure: Regenerate.
11170 2008-07-28 Richard Guenther <rguenther@suse.de>
11172 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
11173 (insert_fake_stores): Remove.
11174 (realify_fake_stores): Likewise.
11175 (execute_pre): Remove dead code.
11176 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
11177 (find_func_aliases): Deal with it here instead.
11178 Re-enable gcc_unreachable call.
11180 2008-07-28 Richard Guenther <rguenther@suse.de>
11182 Merge from gimple-tuples-branch.
11184 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
11185 * gimple.def: New file.
11186 * gsstruct.def: Likewise.
11187 * gimple-iterator.c: Likewise.
11188 * gimple-pretty-print.c: Likewise.
11189 * tree-gimple.c: Removed. Merged into ...
11190 * gimple.c: ... here. New file.
11191 * tree-gimple.h: Removed. Merged into ...
11192 * gimple.h: ... here. New file.
11194 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
11195 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
11196 --enable-checking=gimple flag.
11197 * config.in: Likewise.
11198 * configure: Regenerated.
11200 * tree-ssa-operands.h: Tuplified.
11201 * tree-vrp.c: Likewise.
11202 * tree-loop-linear.c: Likewise.
11203 * tree-into-ssa.c: Likewise.
11204 * tree-ssa-loop-im.c: Likewise.
11205 * tree-dump.c: Likewise.
11206 * tree-complex.c: Likewise.
11207 * cgraphbuild.c: Likewise.
11208 * tree-ssa-threadupdate.c: Likewise.
11209 * tree-ssa-loop-niter.c: Likewise.
11210 * tree-pretty-print.c: Likewise.
11211 * tracer.c: Likewise.
11212 * gengtype.c: Likewise.
11213 * tree-loop-distribution.c: Likewise.
11214 * tree-ssa-loop-unswitch.c: Likewise.
11215 * cgraph.c: Likewise.
11216 * cgraph.h: Likewise.
11217 * tree-ssa-loop-manip.c: Likewise.
11218 * value-prof.c: Likewise.
11219 * tree-ssa-loop-ch.c: Likewise.
11220 * tree-tailcall.c: Likewise.
11221 * value-prof.h: Likewise.
11222 * tree.c: Likewise.
11223 * tree.h: Likewise.
11224 * tree-pass.h: Likewise.
11225 * ipa-cp.c: Likewise.
11226 * tree-scalar-evolution.c: Likewise.
11227 * tree-scalar-evolution.h: Likewise.
11228 * target.h: Likewise.
11229 * lambda-mat.c: Likewise.
11230 * tree-phinodes.c: Likewise.
11231 * diagnostic.h: Likewise.
11232 * builtins.c: Likewise.
11233 * tree-ssa-alias-warnings.c: Likewise.
11234 * cfghooks.c: Likewise.
11235 * fold-const.c: Likewise.
11236 * cfghooks.h: Likewise.
11237 * omp-low.c: Likewise.
11238 * tree-ssa-dse.c: Likewise.
11239 * ipa-reference.c: Likewise.
11240 * tree-ssa-uncprop.c: Likewise.
11241 * toplev.c: Likewise.
11242 * tree-gimple.c: Likewise.
11243 * tree-gimple.h: Likewise.
11244 * tree-chrec.c: Likewise.
11245 * tree-chrec.h: Likewise.
11246 * tree-ssa-sccvn.c: Likewise.
11247 * tree-ssa-sccvn.h: Likewise.
11248 * cgraphunit.c: Likewise.
11249 * tree-ssa-copyrename.c: Likewise.
11250 * tree-ssa-ccp.c: Likewise.
11251 * tree-ssa-loop-ivopts.c: Likewise.
11252 * tree-nomudflap.c: Likewise.
11253 * tree-call-cdce.c: Likewise.
11254 * ipa-pure-const.c: Likewise.
11255 * c-format.c: Likewise.
11256 * tree-stdarg.c: Likewise.
11257 * tree-ssa-math-opts.c: Likewise.
11258 * tree-ssa-dom.c: Likewise.
11259 * tree-nrv.c: Likewise.
11260 * tree-ssa-propagate.c: Likewise.
11261 * ipa-utils.c: Likewise.
11262 * tree-ssa-propagate.h: Likewise.
11263 * tree-ssa-alias.c: Likewise.
11264 * gimple-low.c: Likewise.
11265 * tree-ssa-sink.c: Likewise.
11266 * ipa-inline.c: Likewise.
11267 * c-semantics.c: Likewise.
11268 * dwarf2out.c: Likewise.
11269 * expr.c: Likewise.
11270 * tree-ssa-loop-ivcanon.c: Likewise.
11271 * predict.c: Likewise.
11272 * tree-ssa-loop.c: Likewise.
11273 * tree-parloops.c: Likewise.
11274 * tree-ssa-address.c: Likewise.
11275 * tree-ssa-ifcombine.c: Likewise.
11276 * matrix-reorg.c: Likewise.
11277 * c-decl.c: Likewise.
11278 * tree-eh.c: Likewise.
11279 * c-pretty-print.c: Likewise.
11280 * lambda-trans.c: Likewise.
11281 * function.c: Likewise.
11282 * langhooks.c: Likewise.
11283 * ebitmap.h: Likewise.
11284 * tree-vectorizer.c: Likewise.
11285 * function.h: Likewise.
11286 * langhooks.h: Likewise.
11287 * tree-vectorizer.h: Likewise.
11288 * ipa-type-escape.c: Likewise.
11289 * ipa-type-escape.h: Likewise.
11290 * domwalk.c: Likewise.
11291 * tree-if-conv.c: Likewise.
11292 * profile.c: Likewise.
11293 * domwalk.h: Likewise.
11294 * tree-data-ref.c: Likewise.
11295 * tree-data-ref.h: Likewise.
11296 * tree-flow-inline.h: Likewise.
11297 * tree-affine.c: Likewise.
11298 * tree-vect-analyze.c: Likewise.
11299 * c-typeck.c: Likewise.
11300 * gimplify.c: Likewise.
11301 * coretypes.h: Likewise.
11302 * tree-ssa-phiopt.c: Likewise.
11303 * calls.c: Likewise.
11304 * tree-ssa-coalesce.c: Likewise.
11305 * tree.def: Likewise.
11306 * tree-dfa.c: Likewise.
11307 * except.c: Likewise.
11308 * except.h: Likewise.
11309 * cfgexpand.c: Likewise.
11310 * tree-cfgcleanup.c: Likewise.
11311 * tree-ssa-pre.c: Likewise.
11312 * tree-ssa-live.c: Likewise.
11313 * tree-sra.c: Likewise.
11314 * tree-ssa-live.h: Likewise.
11315 * tree-predcom.c: Likewise.
11316 * lambda.h: Likewise.
11317 * tree-mudflap.c: Likewise.
11318 * ipa-prop.c: Likewise.
11319 * print-tree.c: Likewise.
11320 * tree-ssa-copy.c: Likewise.
11321 * ipa-prop.h: Likewise.
11322 * tree-ssa-forwprop.c: Likewise.
11323 * ggc-page.c: Likewise.
11324 * c-omp.c: Likewise.
11325 * tree-ssa-dce.c: Likewise.
11326 * tree-vect-patterns.c: Likewise.
11327 * tree-ssa-ter.c: Likewise.
11328 * tree-nested.c: Likewise.
11329 * tree-ssa.c: Likewise.
11330 * lambda-code.c: Likewise.
11331 * tree-ssa-loop-prefetch.c: Likewise.
11332 * tree-inline.c: Likewise.
11333 * tree-inline.h: Likewise.
11334 * tree-iterator.c: Likewise.
11335 * tree-optimize.c: Likewise.
11336 * tree-ssa-phiprop.c: Likewise.
11337 * tree-vect-transform.c: Likewise.
11338 * tree-object-size.c: Likewise.
11339 * tree-outof-ssa.c: Likewise.
11340 * cfgloop.c: Likewise.
11341 * system.h: Likewise.
11342 * tree-profile.c: Likewise.
11343 * cfgloop.h: Likewise.
11344 * c-gimplify.c: Likewise.
11345 * c-common.c: Likewise.
11346 * tree-vect-generic.c: Likewise.
11347 * tree-flow.h: Likewise.
11348 * c-common.h: Likewise.
11349 * basic-block.h: Likewise.
11350 * tree-ssa-structalias.c: Likewise.
11351 * tree-switch-conversion.c: Likewise.
11352 * tree-ssa-structalias.h: Likewise.
11353 * tree-cfg.c: Likewise.
11354 * passes.c: Likewise.
11355 * ipa-struct-reorg.c: Likewise.
11356 * ipa-struct-reorg.h: Likewise.
11357 * tree-ssa-reassoc.c: Likewise.
11358 * cfgrtl.c: Likewise.
11359 * varpool.c: Likewise.
11360 * stmt.c: Likewise.
11361 * tree-ssanames.c: Likewise.
11362 * tree-ssa-threadedge.c: Likewise.
11363 * langhooks-def.h: Likewise.
11364 * tree-ssa-operands.c: Likewise.
11365 * config/alpha/alpha.c: Likewise.
11366 * config/frv/frv.c: Likewise.
11367 * config/s390/s390.c: Likewise.
11368 * config/m32c/m32c.c: Likewise.
11369 * config/m32c/m32c-protos.h: Likewise.
11370 * config/spu/spu.c: Likewise.
11371 * config/sparc/sparc.c: Likewise.
11372 * config/i386/i386.c: Likewise.
11373 * config/sh/sh.c: Likewise.
11374 * config/xtensa/xtensa.c: Likewise.
11375 * config/stormy16/stormy16.c: Likewise.
11376 * config/ia64/ia64.c: Likewise.
11377 * config/rs6000/rs6000.c: Likewise.
11378 * config/pa/pa.c: Likewise.
11379 * config/mips/mips.c: Likewise.
11381 2008-07-28 Simon Baldwin <simonb@google.com>
11383 * c-pragma.c (handle_pragma_message): New function.
11384 (init_pragma): Register handle_pragma_message.
11385 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
11388 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
11390 PR tree-optimization/35252
11391 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
11392 REALPART_EXPR to be considered as same load operation.
11394 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
11396 PR tree-optimization/36830
11397 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
11398 (expressions_equal_p): Return false if only one operand is null.
11400 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
11402 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
11403 version requirements.
11405 2008-07-26 Olivier Hainque <hainque@adacore.com>
11407 * collect2.c (symkind): New enum. Symbol kinds we care about.
11408 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
11409 code and head comment accordingly.
11410 (scan_prog_file): Use symkind names instead of bare integers.
11412 2008-07-25 Jan Hubicka <jh@suse.cz>
11414 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
11416 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
11417 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
11418 * dojump.c (clear_pending_stack_adjust): Likewise.
11419 * print-tree.c (print_node): Ignore DECL_INLINE.
11420 * tree-inline.c (inlinable_function_p): Likewise.
11422 2008-07-25 Michael Meissner <gnu@the-meissners.org>
11424 * doc/extend.texi (hot attribute): Document that the hot attribute
11425 turns on -O3 for some ports.
11426 (cold attribute): Document that the cold attribute turns on -Os
11429 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
11430 reflect function specific option support.
11432 * target.h (struct target_option_hooks): Add fields to say whether
11433 the cold attribute implies -Os and the hot attribute implies -O3.
11435 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
11436 By default, do not turn on -Os for cold functions.
11437 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
11438 not turn on -O3 for hot functions.
11440 * c-common.c (handle_hot_attribute): Use target hook to determine
11441 if hot functions should enable -O3.
11442 (handle_cold_attribute): Use target hook to determine if cold
11443 functions should enable -Os.
11445 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
11446 (override_options): Move disable scheduling to
11447 optimization_options.
11448 (optimization_options): Disable scheduling here, not
11450 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
11451 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
11453 * config/ia64/ia64.c (ia64_override_options): Move setting
11454 scheduling flags to ia64_optimization_options.
11455 (ia64_optimization_options): Disable scheduling options here, and
11456 not in ia64_override_options.
11457 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
11458 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
11460 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
11463 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
11465 2008-07-25 Martin Jambor <mjambor@suse.cz>
11467 PR tree-optimization/36926
11468 * ipa-prop.c (ipa_analyze_call_uses): Call
11469 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
11471 2008-07-25 Joseph Myers <joseph@codesourcery.com>
11473 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
11474 movv2si_internal): Add mem = reg alternative.
11476 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
11479 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
11480 DEFAULT_PCC_STRUCT_RETURN to 127.
11482 2008-07-24 Jan Hubicka <jh@suse.cz>
11484 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
11485 (build_cgraph_edges): Likewise.
11486 * cgraph.c (cgraph_node): Do not update assembler hash.
11487 (cgraph_remove_node): Drop non-unit-at-a-time code.
11488 * tree-pass.h (pass_O0_always_inline): Remove.
11489 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
11490 * toplev.c (process_options): Flag unit-at-a-time does not imply
11491 no section anchors.
11492 * cgraphunit.c: Update comments.
11493 (decide_is_function_needed): Drop non-unit-at-a-time mode.
11494 (cgraph_assemble_pending_functions): Remove.
11495 (cgraph_reset_node): Drop non-unit-at-a-time code.
11496 (cgraph_finalize_function): Likewise.
11497 (cgraph_analyze_function): Likewise.
11498 (cgraph_finalize_compilation_unit): Likewise.
11499 (cgraph_expand_function): Likewise.
11500 (cgraph_optimize): Likesise.
11501 (save_inline_function_body): Likewise.
11502 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
11503 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
11504 * ipa-inline.c: Update comments.
11505 (enum inlining_mode): remove INLINE_SPEED.
11506 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
11507 (cgraph_mark_inline_edge): Likewise.
11508 (try_inline): Likewise.
11509 (cgraph_decide_inlining_incrementally): Likewise.
11510 (cgraph_gate_inlining): Remove.
11511 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
11512 (cgraph_gate_early_inlining): Likewise.
11513 (gate_inline_passes): Remove.
11514 (pass_inline_parameters, pass_ipa_inline): Remove gates.
11515 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
11516 pass_O0_always_inline): Remove.
11517 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
11518 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
11519 * opts.c (no_unit_at_a_time_default): Remove.
11520 (decode_options): Remove flag_unit_at_a_time reset and warning.
11521 * opts.h (no_unit_at_a_time_default): Remove.
11522 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
11523 early in GNU dialect.
11524 (merge_decls): Update comment; drop unit-at-a-time check.
11525 (finish_decl): Likewise.
11526 (grok_declaration): Remove flag_inline_trees code.
11527 (finish_functions): Return on function returning non-void on all
11529 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
11530 * cfgexpand.c (expand_one_static_var): Remove.
11531 (expand_one_var): Remove expand_one_static_var call.
11532 (expand_used_vars_for_block): Remove flag_unit_a_time check.
11533 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
11534 and flag_unit_at_a-time compatibility checks.
11535 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
11536 * tree-inline.c (flag_inline_trees): Remove.
11537 (inlinable_function_p): Don't check it.
11538 (expand_call_inline): Remove non-unit-at-a-time code.
11539 * tree-inline.h (flag_inline_trees): Remove.
11540 * tree-optimize.c (execute_early_local_optimizations): Remove
11541 unit-at-a-time checks.
11542 (tree_rest_of_compilation): Likewise.
11543 * combine.c (setup_incoming_promotions): Likewise.
11544 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
11545 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
11546 * passes.c (pass_inline_parameters): Update comments; remove
11547 O0_alwaysinline pass.
11548 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
11549 (execute_one_pass): Likewise.
11550 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
11551 (ix86_function_sseregparm): Likewise.
11552 * arm.c (arm_function_in_section_p): Likewise.
11553 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
11554 * varpool.c: Update comments.
11555 (decide_is_variable_needed): Remove unit-at-a-time checks.
11556 (varpool_finalize_decl): Likewise.
11558 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
11560 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
11561 to 2 instead of -1.
11562 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
11564 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
11566 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
11567 imp symbol extension.
11569 2008-07-23 Ian Lance Taylor <iant@google.com>
11571 * tree-vrp.c (infer_value_range): Ignore asm statements when
11572 looking for memory accesses for -fdelete-null-pointer-checks.
11574 2008-07-24 Ben Elliston <bje@au.ibm.com>
11576 * config/spu/spu-c.c (__vector_keyword): New variable.
11577 (vector_keyword): Likewise.
11578 (spu_categorize_keyword): New function.
11579 (spu_macro_to_expand): Likewise.
11580 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
11581 compiling an ISO C dialect.
11583 2008-07-24 Ben Elliston <bje@au.ibm.com>
11585 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
11586 conventional usage.
11588 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
11590 * configure: Regenerate.
11591 * configure.ac: Require texinfo 4.7.
11592 * doc/install.texi: Document texinfo 4.7 requirement.
11594 2008-07-23 Martin Jambor <mjambor@suse.cz>
11596 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
11597 rather than for DECL_SAVED_TREE.
11598 * ipa-prop.c: Include diagnostic.h.
11599 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
11601 (ipa_detect_param_modifications): Function rewritten from scratch.
11602 (ipa_compute_jump_functions): Changed accesses to modification flags.
11603 (ipa_free_node_params_substructures): Update flags destruction.
11604 (ipa_node_duplication_hook): Update flags duplication.
11605 (ipa_print_all_params_modified): Updated flag access.
11606 * ipa-prop.h (struct ipa_param_flags): New structure.
11607 (struct ipa_node_params): New field modification_analysis_done,
11608 modified_flags changed into param_flags.
11609 (ipa_is_ith_param_modified): Changed to use new flags.
11610 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
11612 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
11613 ipa-cp.c and split into two functions.
11614 (ipa_print_node_jump_functions): New function.
11615 (compute_scalar_jump_functions): New function.
11616 (type_like_member_ptr_p): New function.
11617 (compute_pass_through_member_ptrs): New function.
11618 (fill_member_ptr_cst_jump_function): New function.
11619 (determine_cst_member_ptr): New function.
11620 (compute_cst_member_ptr_arguments): New function.
11621 (ipa_compute_jump_functions): Complete rewrite.
11622 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
11623 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
11624 (struct ipa_member_ptr_cst): New structure.
11625 (union jump_func_value): New field member_cst.
11626 * ipa-cp.c (ipcp_lat_is_insertable): New function.
11627 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
11628 jump function types.
11629 (ipcp_print_all_lattices): Slight fprintf rearrangement.
11630 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
11631 instead of ipcp_print_all_jump_functions.
11632 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
11633 only for replacable scalars.
11635 * doc/invoke.texi (Optimize options): Add description of
11636 -findirect-inlining.
11637 * common.opt (flag_indirect_inlining): New flag.
11638 * opts.c (decode_options): Set flag_indirect_inlining when
11641 * ipa-inline.c: Include ipa-prop.h.
11642 (inline_indirect_intraprocedural_analysis): New function.
11643 (inline_generate_summary): Allocate parameter and argument info
11644 structures, call inline_indirect_intraprocedural_analysis on each
11645 node when doing indirect inlining and deallocate indirect inlining
11646 data structures in the end.
11647 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
11648 (free_all_ipa_structures_after_iinln): New function.
11649 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
11651 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
11653 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
11654 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
11655 of computing the frequency separately.
11656 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
11657 of computing the frequency separately.
11658 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
11659 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
11660 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
11661 (ipa_get_stmt_member_ptr_load_param): New function.
11662 (ipa_is_ssa_with_stmt_def): New function.
11663 (ipa_note_param_call): New function.
11664 (ipa_analyze_call_uses): New function.
11665 (ipa_analyze_stmt_uses): New function.
11666 (ipa_analyze_params_uses): New function.
11667 (ipa_free_node_params_substructures): Also free the param_calls linked
11669 (ipa_node_duplication_hook): Also duplicate the param_calls
11671 (ipa_print_node_param_flags): New function.
11672 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
11673 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
11674 * ipa-prop.h (struct ipa_param_flags): New field called.
11675 (struct ipa_param_call_note): New structure.
11676 (struct ipa_node_params): New fields param_calls and
11677 uses_analysis_done.
11678 (ipa_is_ith_param_called): New function.
11679 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11680 ipa_analyze_params_uses and dump parameter flags.
11682 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
11683 ipa_propagate_indirect_call_infos if performing indirect inlining,
11684 pass a new parameter new_edges to it.
11685 (add_new_edges_to_heap): New fucntion.
11686 (cgraph_decide_inlining_of_small_functions): New vector
11687 new_indirect_edges for newly found indirect edges , call
11688 ipa_propagate_indirect_call_infos after inlining.
11689 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
11690 inlining if performing indirect inlining. Call
11691 free_all_ipa_structures_after_iinln when doing so too.
11692 (inline_generate_summary): Do not call
11693 free_all_ipa_structures_after_iinln here.
11694 * ipa-prop.c (update_jump_functions_after_inlining): New function.
11695 (print_edge_addition_message): New function.
11696 (update_call_notes_after_inlining): New function.
11697 (propagate_info_to_inlined_callees): New function.
11698 (ipa_propagate_indirect_call_infos): New function.
11699 * ipa-prop.h: Include cgraph.h
11700 (struct ipa_param_call_note): Fields reordered, new field processed.
11701 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
11702 flag indirect_call.
11703 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
11704 rediscovered call statements.
11705 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
11706 (dump_cgraph_node): Dump also the indirect_call flag.
11707 (cgraph_clone_edge): Copy also the indirect_call flag.
11708 * tree-inline.c (copy_bb): Do not check for fndecls from call
11709 expressions, check for edge availability when moving clones.
11710 (get_indirect_callee_fndecl): New function.
11711 (expand_call_inline): If callee declaration is not apprent from
11712 the statement, try calling get_indirect_callee_fndecl. Do not
11713 issue warnings or call sorry when not inlinings an indirect edge.
11714 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
11716 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
11717 bit more frandly to matching.
11718 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
11719 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
11720 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
11722 2008-07-23 Michael Meissner <gnu@the-meissners.org>
11725 * opth-gen.awk: Suppress function specific features when building
11727 * optc-gen.awk: Ditto.
11729 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11732 * diagnostic.c (pedwarn): Add opt parameter.
11734 * c-tree.h (pedwarn_init): Add opt parameter.
11735 (pedwarn_c90): Likewise.
11736 (pedwarn_c99): Likewise.
11737 * c-errors.c (pedwarn_c99): Likewise.
11738 (pedwarn_c90): Likewise.
11739 * toplev.h (pedwarn): Update declaration.
11740 (pedwarn0): Declare.
11741 * c-lex.c: All calls to pedwarn changed.
11742 * builtins.c: All calls to pedwarn changed.
11743 * toplev.c: All calls to pedwarn changed.
11744 * c-decl.c: All calls to pedwarn changed.
11745 * c-typeck.c: All calls to pedwarn changed.
11746 * c-common.c: All calls to pedwarn changed.
11747 * c-parser.c: All calls to pedwarn changed.
11749 2008-07-23 Michael Meissner <gnu@the-meissners.org>
11750 Karthik Kumar <karthikkumar@gmail.com>
11752 * attribs.c (file scope): Include c-common.h.
11753 (decl_attributes): Add support for #pragma GCC optimize and
11754 #pragma GCC option.
11756 * targhooks.c (default_can_inline_p): New function that is the
11757 default for the TARGET_CAN_INLINE_P target hook.
11759 * targhooks.h (default_can_inline_p): Add declaration.
11761 * tree.c (cl_optimization_node): New static tree for building
11762 OPTIMIZATION_NODE tree.
11763 (cl_target_option_node): New static tree for building
11764 TARGET_OPTION_NODE tree.
11765 (cl_option_hash_table): New hash table for hashing
11766 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
11767 (cl_option_hash_hash): New function to provide the hash value for
11768 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
11769 (cl_option_hash_eq): New function to provide an equality test for
11770 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
11771 (tree_code_size): Add support for OPTIMIZATION_NODE and
11772 TARGET_OPTION_NODE trees.
11773 (tree_code_structure): Add support for OPTIMIZATION_NODE and
11774 TARGET_OPTION_NODE trees.
11775 (build_optimization_node): Build a tree that has all of the
11776 current optimization options.
11777 (build_target_option_node): Build a tree that has the target
11778 options that might be changed on a per function basis.
11780 * tree.h (file scope): Include options.h.
11781 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
11782 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
11783 (TREE_OPTIMIZATION): Ditto.
11784 (TREE_TARGET_SPECIFIC): Ditto.
11785 (struct tree_function_decl): Add fields for remembering the
11786 current optimization options and target specific options.
11787 (struct tree_optimization_option): New tree variant that remembers
11788 the optimization options.
11789 (struct tree_target_option): New tree variant that remembers the
11790 target specific flags that might change for compiling a particular
11792 (union tree_node): Include tree_optimization_option and
11793 tree_target_option fields.
11794 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
11795 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
11796 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
11797 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
11798 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
11799 optimization and target options.
11800 (optimization_default_node): New macro to refer to global_trees
11802 (optimization_current_node): Ditto.
11803 (optimization_cold_node): Ditto.
11804 (optimization_hot_node): Ditto.
11805 (target_option_default_node): Ditto.
11806 (target_option_current_node): Ditto.
11807 (current_option_pragma): Ditto.
11808 (current_optimize_pragma): Ditto.
11810 * target.h (struct gcc_target): Add valid_option_attribute_p,
11811 target_option_save, target_option_restore, target_option_print,
11812 target_option_pragma_parse, and can_inline_p hooks.
11814 * toplev.h (parse_optimize_options): Add declaration.
11815 (fast_math_flags_struct_set_p): Ditto.
11817 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
11818 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
11821 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
11822 tree_can_inline_p hook to see if one function can inline another.
11823 (cgraph_decide_inlining): Ditto.
11824 (cgraph_decide_inlining_incrementally): Ditto.
11826 * opts.c (decode_options): Add support for running multiple times
11827 to allow functions with different target or optimization options
11828 than was specified on the command line.
11829 (fast_math_flags_struct_set_p): New function that is similar to
11830 fast_math_flags_set_p, except it uses the values in the
11831 cl_optimization structure instead of global variables.
11833 * optc-gen.awk: Add support for TargetSave to allow a back end to
11834 declare new fields that need to be saved when using function
11835 specific options. Include flags.h and target.h in the options.c
11836 source. Add support for Save to indicate which options can be set
11837 for individual functions. Generate cl_optimize_save,
11838 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
11839 cl_target_option_restore, cl_target_option_print functions to
11840 allow functions to use different optimization or target options.
11842 * opt-functions.awk (var_type_struct): Return the type used for
11843 storing the field in a structure.
11845 * opth-gen.awk: Add support for TargetSave to allow a back end to
11846 declare new fields that need to be saved when using function
11847 specific options. Add support for Save to indicate which options
11848 can be set for individual functions. Only generate one extern for
11849 Mask fields. Generate cl_optimization and cl_target_option
11850 structures to remember optimization and target options.
11852 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
11853 collecting new tree nodes.
11854 (TS_TARGET_OPTION): Ditto.
11856 * c-decl.c (merge_decls): Merge function specific target and
11857 optimization options.
11859 * function.c (invoke_set_current_function_hook): If the function
11860 uses different optimization options, change the global variables
11863 * coretypes.h (struct cl_optimization): Add forward reference.
11864 (struct cl_target_option): Ditto.
11866 * c-pragma.c (option_stack): New static vector to remember the
11867 current #pragma GCC option stack.
11868 (handle_pragma_option): New function to support #pragma GCC option
11869 to change target options.
11870 (optimize_stack): New static vector to remember the current
11871 #pragma GCC optimize stack.
11872 (handle_pragma_optimize): New function to support #pragma GCC
11873 optimize to change optimization options.
11874 (init_pragma): Add support for #pragma GCC optimize and #pragma
11877 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
11878 optimization options.
11879 (TARGET_OPTION_NODE): New tree code for remembering certain target
11882 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
11883 TARGET_OPTION_NODE trees.
11885 * common.opt (-O): Add Optimization flag.
11887 (-fmath-errno): Ditto.
11888 (-falign-functions): Add UInteger flag to make sure flag gets full
11889 int in cl_optimization structure.
11890 (-falign-jumps): Ditto.
11891 (-falign-labels): Ditto.
11892 (-falign-loops): Ditto.
11893 (-fsched-stalled-insns): Ditto.
11894 (-fsched-stalled-insns-dep): Ditto.
11896 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
11898 (TARGET_OPTION_SAVE): Ditto.
11899 (TARGET_OPTION_RESTORE): Ditto.
11900 (TARGET_OPTION_PRINT): Ditto.
11901 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
11902 (TARGET_CAN_INLINE_P): Ditto.
11903 (TARGET_INITIALIZER): Add new hooks.
11905 * tree-inline.c (tree_can_inline_p): New function to determine
11906 whether one function can inline another. Check if the functions
11907 use compatible optimization options, and also call the backend
11910 * tree-inline.h (tree_can_inline_p): Add declaration.
11912 * c-common.c (c_common_attribute): Add support for option and
11913 optimize attributes.
11914 (handle_option_attribute): Add support for the option attribute to
11915 allow the user to specify different target options for compiling a
11917 (handle_optimize_attribute): Add support for the optimize
11918 attribute to allow the user to specify different optimization
11919 options for compiling a specific function.
11920 (handle_hot_attribute): Turn on -O3 optimization for this one
11921 function if it isn't the default optimization level.
11922 (handle_cold_attribute): Turn on -Os optimization for this one
11923 function if it insn't the default optimization.
11924 (const_char_p): New const char * typedef.
11925 (optimize_args): New static vector to remember the optimization
11927 (parse_optimize_options): New function to set up the optimization
11928 arguments from either the optimize attribute or #pragma GCC optimize.
11930 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
11931 (builtin_define_std): Ditto.
11933 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
11934 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
11935 (x86_64-*-*): Ditto.
11937 * Makefile.in (TREE_H): Add options.h.
11938 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
11940 * doc/extend.texi (option attribute): Document new attribute.
11941 (optimize attribute): Ditto.
11942 (hot attribute): Document hot attribute sets -O3.
11943 (cold attribute): Document cold attribute sets -Os.
11944 (#pragma GCC option): Document new pragma.
11945 (#pragma GCC optimize): Ditto.
11947 * doc/options.texi (TargetSave): Document TargetSave syntax.
11948 (UInteger): Document UInteger must be used for certain flags.
11949 (Save): Document Save option to create target specific options
11950 that can be saved/restored on a function specific context.
11952 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
11953 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
11955 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
11956 (TARGET_OPTION_SAVE): Ditto.
11957 (TARGET_OPTION_RESTORE): Ditto.
11958 (TARGET_OPTION_PRINT): Ditto.
11959 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
11960 (TARGET_CAN_INLINE_P): Ditto.
11962 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
11964 (-mfpmath=both): Ditto.
11966 2008-07-23 Michael Meissner <gnu@the-meissners.org>
11967 Karthik Kumar <karthikkumar@gmail.com>
11969 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
11970 (TARGET_POPCNT): Ditto.
11971 (TARGET_SAHF): Ditto.
11972 (TARGET_AES): Ditto.
11973 (TARGET_PCLMUL): Ditto.
11974 (TARGET_CMPXCHG16B): Ditto.
11975 (TARGET_RECIP): Move switch into target_flags.
11976 (TARGET_FUSED_MADD): Ditto.
11977 (ix86_arch_features): Make an unsigned char type.
11978 (ix86_tune_features): Ditto.
11979 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
11980 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
11981 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
11983 * config/i386/i386.opt (arch): New TargetSave field to define
11984 fields that need to be saved for function specific option support.
11987 (branch_cost): Ditto.
11988 (ix86_isa_flags_explicit): Ditto.
11989 (tune_defaulted): Ditto.
11990 (arch_specified): Ditto.
11991 (-m128-long-double): Add Save flag to save option for target
11992 specific option support.
11994 (-maccumulate-outgoing-args): Ditto.
11995 (-malign-double): Ditto.
11996 (-malign-stringops): Ditto.
11997 (-mfancy-math-387): Ditto.
11998 (-mhard-float): Ditto.
11999 (-mieee-fp): Ditto.
12000 (-minline-all-stringops): Ditto.
12001 (-minline-stringops-dynamically): Ditto.
12002 (-mms-bitfields): Ditto.
12003 (-mno-align-stringops): Ditto.
12004 (-mno-fancy-math-387): Ditto.
12005 (-mno-push-args): Ditto.
12006 (-mno-red-zone): Ditto.
12007 (-mpush-args): Ditto.
12008 (-mred-zone): Ditto.
12010 (-msseregparm): Ditto.
12011 (-mstack-arg-probe): Ditto.
12023 (-mno-sse4): Ditto.
12026 (-mrecip): Move flag into target_flags.
12028 (-mno-fused-madd): Ditto.
12029 (-mfused-madd): Ditto.
12030 (-mabm): Move flag into ix86_isa_flags.
12037 * config/i386/i386-c.c: New file for #pragma support.
12038 (ix86_target_macros_internal): New function to #define or #undef
12039 target macros based when the user uses the #pragma GCC option to
12040 change target options.
12041 (ix86_pragma_option_parse): New function to add #pragma GCC option
12043 (ix86_target_macros): Move defining the target macros here from
12044 TARGET_CPU_CPP_BUILTINS in i386.h.
12045 (ix86_register_pragmas): Register the #pragma GCC option hook. If
12046 defined, initialize any subtarget #pragmas.
12048 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
12049 REGISTER_TARGET_PRAGMAS.
12051 * config/i386/t-i386: New file for x86 dependencies.
12052 (i386.o): Make dependencies mirror the include files used.
12053 (i386-c.o): New file, add dependencies.
12055 * config/i386/i386-protos.h (override_options): Add bool argument.
12056 (ix86_valid_option_attribute_tree): Add declaration.
12057 (ix86_target_macros): Ditto.
12058 (ix86_register_macros): Ditto.
12060 * config/i386/i386.c (ix86_tune_features): Move initialization of
12061 the target masks to initial_ix86_tune_features to allow functions
12062 to have different target options. Make type unsigned char,
12063 instead of unsigned int.
12064 (initial_ix86_tune_features): New static vector to hold processor
12065 masks for the tune variables.
12066 (ix86_arch_features): Move initialization of the target masks to
12067 initial_ix86_arch_features to allow functions to have different
12068 target options. Make type unsigned char, instead of unsigned int.
12069 (initial_ix86_arch_features): New static vector to hold processor
12070 masks for the arch variables.
12071 (enum ix86_function_specific_strings): New enum to describe the
12072 string options used for attribute((option(...))).
12073 (ix86_target_string): New function to return a string that
12074 describes the target options.
12075 (ix86_debug_options): New function to print the current options in
12077 (ix86_function_specific_save): New function hook to save the
12078 function specific global variables in the cl_target_option structure.
12079 (ix86_function_specific_restore): New function hook to restore the
12080 function specific variables from the cl_target_option structure to
12081 the global variables.
12082 (ix86_function_specific_print): New function hook to print the
12083 target specific options in the cl_target_option structure.
12084 (ix86_valid_option_attribute_p): New function hook to validate
12085 attribute((option(...))) arguments.
12086 (ix86_valid_option_attribute_tree): New function that is common
12087 code between attribute((option(...))) and #pragma GCC option
12088 support that parses the options and returns a tree holding the options.
12089 (ix86_valid_option_attribute_inner_p): New helper function for
12090 ix86_valid_option_attribute_tree.
12091 (ix86_can_inline_p): New function hook to decide if one function
12092 can inline another on a target specific basis.
12093 (ix86_set_current_function); New function hook to switch target
12094 options if the user used attribute((option(...))) or #pragma GCC
12096 (ix86_tune_defaulted): Move to static file scope from
12098 (ix86_arch_specified): Ditto.
12099 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
12101 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
12102 (OPTION_MASK_ISA_ABM_SET): Ditto.
12103 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
12104 (OPTION_MASK_ISA_CX16_SET): Ditto.
12105 (OPTION_MASK_ISA_SAHF_SET): Ditto.
12106 (OPTION_MASK_ISA_AES_UNSET): Ditto.
12107 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
12108 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
12109 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
12110 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
12111 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
12112 (struct ptt): Move to static file scope from override_options.
12113 (processor_target_table): Ditto.
12114 (cpu_names): Ditto.
12115 (ix86_handle_option): Add support for options that are now isa options.
12116 (override_options): Add support for declaring functions that
12117 support different target options than were specified on the
12118 command line. Move struct ptt, processor_target_table, cpu_names,
12119 ix86_tune_defaulted, ix86_arch_specified to static file scope.
12120 Add bool argument. Fix up error messages so the appropriate error
12121 is given for either command line or attribute.
12122 (ix86_previous_fndecl): New static to remember previous function
12123 declaration to see if we need to change target options.
12124 (ix86_builtins_isa): New array to record the ISA of each builtin
12126 (def_builtin): Always create the builtin function, even if the
12127 current ISA doesn't support it.
12128 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
12129 tests for those builtins.
12130 (ix86_init_builtins): Remove TARGET_MMX test for calling
12131 ix86_init_mmx_sse_builtins.
12132 (ix86_expand_builtin): If the current ISA doesn't support a given
12133 builtin, signal an error.
12134 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
12135 (TARGET_SET_CURRENT_FUNCTION): Ditto.
12136 (TARGET_OPTION_SAVE): Ditto.
12137 (TARGET_OPTION_RESTORE): Ditto.
12138 (TARGET_OPTION_PRINT): Ditto.
12139 (TARGET_CAN_INLINE_P): Ditto.
12141 2008-07-22 Rafael Ávila de Espíndola <espindola@google.com>
12143 * c-typeck.c (build_external_ref): Don't call assemble_external.
12144 * final.c (output_operand): Call assemble_external.
12146 2008-07-21 DJ Delorie <dj@redhat.com>
12148 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
12149 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
12151 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12153 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
12154 original insn and splitter contents into ...
12155 ("*div<mode>3_fast"): ... this new pattern. Enable only if
12156 flag_unsafe_math_optimizations. Add dummy scratch register.
12157 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
12158 !flag_unsafe_math_optimizations. Returns number with next
12159 highest magnitude if this is still less or equal to the true
12160 quotient in magnitude.
12162 2008-07-21 Rafael Ávila de Espíndola <espindola@google.com>
12164 * Makefile.in: Replace toplev.h with TOPLEV_H.
12165 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
12166 * c-lex.c (fe_file_change): Don't set in_system_header.
12167 * c-parser.c (c_token): Remove in_system_header.
12168 (c_lex_one_token): Don't set in_system_header.
12169 (c_parser_set_source_position_from_token): Don't set in_system_header.
12170 * diagnostic.c (diagnostic_report_diagnostic): Use location from
12173 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
12174 * flags.h (in_system_header): Remove.
12175 * function.c (saved_in_system_header): Remove.
12176 (push_cfun): Don't set in_system_header.
12177 (pop_cfun): Don't set in_system_header.
12178 (push_struct_function): Don't set in_system_header.
12179 * input.h (expanded_location): Add sysp.
12180 (in_system_header_at): New.
12181 (in_system_header): New.
12182 * toplev.c (in_system_header): Remove.
12183 * toplev.h: Include input.h
12185 * tree-cfg.c (execute_warn_function_return): Call warning_at.
12186 * tree-ssa.c (warn_uninit): Call warning_at.
12187 (warn_uninitialized_var): Update calls to warn_uninit.
12188 (warn_uninitialized_phi): Update calls to warn_uninit.
12189 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
12190 (expand_location): Initialize xloc.sysp.
12191 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
12192 (tree_decl_with_vis): Remove in_system_header_flag.
12194 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
12197 * recog.c (asm_operand_ok): Change the order of the extra
12198 memory constraint checks.
12200 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
12203 * tree-switch-conversion.c (build_one_array): Call
12204 varpool_mark_needed_node and varpool_finalize_decl
12205 instead of assemble_variable.
12207 2008-07-19 Jan Hubicka <jh@suse.cz>
12209 * cgraph.c (cgraph_add_new_function): Do early local passes.
12210 * tree-nrv.c (gate_pass_return_slot): New gate.
12211 (pass_nrv): Add the gate.
12212 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
12214 (coalesce_ssa_name): Coalesce SSA names.
12215 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
12216 not optimizing so unused user vars remains visible.
12217 * common.opt (flag_tree_ter): Always enable by default.
12218 * tree-ssa-ter.c: Include flags.h
12219 (is_replaceable_p): Check that locations match; when aliasing
12220 is missing be conservative about loads.
12221 * tree-optimize.c (gate_init_datastructures): Remove.
12222 (pass_init_datastructures): New.
12223 * passes.c: Reorder passes so we always go into SSA.
12225 2008-07-19 Jan Hubicka <jh@suse.cz>
12227 * doc/extend.texi (flatten attribute): Remove note about
12229 * doc/invoke.texi (--combine): Likewise.
12230 (-finline-functions-called-once): Update levels when enabled.
12231 (-funit-at-a-time): Document new behaviour.
12232 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
12233 -fno-section-anchors when disabled explicitly.
12234 (inline params): They are not ignored now.
12235 (precompiled headers): Remove unit-at-a-time as being incompatible.
12236 * opts.c (decode_options): Handle unit-at-a-time as alias;
12237 imply -fno-section-anchors when toplevel reorder is disabled
12239 * common.opt (ftoplevel-reorder): Set default value to 2.
12240 (funit-at-a-time): Set default value to 1.
12241 * config/rs6000/rs6000.c (optimization_options): Set section anchors
12244 2008-07-19 Jan Hubicka <jh@suse.cz>
12246 * builtins.c (expand_builtin_int_roundingfn,
12247 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
12250 2008-07-19 Richard Guenther <rguenther@suse.de>
12253 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
12254 * tree-ssa-sccvn.c (get_constant_value_id): New function.
12255 * tree-ssa-pre.c (get_expr_value_id): For newly created
12256 constant value-ids make sure to add the expression to its
12259 2008-07-19 Jakub Jelinek <jakub@redhat.com>
12261 PR middle-end/36877
12262 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
12263 return value of the builtin is ignored.
12265 2008-07-19 Olivier Hainque <hainque@adacore.com>
12267 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
12268 bits, a C conformant malloc implementation has to provide.
12269 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
12271 2008-07-19 Joseph Myers <joseph@codesourcery.com>
12275 * reload.c (find_reloads_subreg_address): Only reload address if
12276 reloaded == 0, not for reloaded != 1.
12279 2008-07-16 Joseph Myers <joseph@codesourcery.com>
12280 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
12281 (m32c_legitimate_address_p): Handle "++rii" addresses created by
12282 m32c_legitimize_reload_address.
12284 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
12285 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
12286 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
12288 2008-07-19 Olivier Hainque <hainque@adacore.com>
12290 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
12291 argument, saying whether nested array are to be collapsed
12292 into a single array type DIE with multiple subscripts.
12293 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
12294 issues, centralize the nested array types collapsing control and
12295 disable the transformation for Ada.
12297 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
12300 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
12302 (x86_64_shift_adj_2): New expander.
12303 (x86_64_shift_adj_3): Ditto.
12304 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
12305 to split TImode operands.
12306 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
12307 (ix86_split_lshr): Ditto.
12309 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
12311 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
12312 and __CHAR32_TYPE__.
12313 * c-typeck.c (digest_init): Support char16_t and char32_t.
12314 (set_nonincremental_init_from_string): Idem.
12316 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
12318 PR middle-end/36859
12319 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
12320 PREFERRED_STACK_BOUNDARY.
12321 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
12323 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
12325 PR middle-end/36858
12326 * function.c (locate_and_pad_parm): Cap boundary earlier.
12328 2008-07-17 Julian Brown <julian@codesourcery.com>
12330 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
12331 no-op for targets which don't use DLLs.
12333 2008-07-17 Martin Jambor <mjambor@suse.cz>
12335 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
12336 that nodes are relevant by examining the node->analyzed flag.
12337 (ipcp_init_stage): Check which nodes are relevant, assert that the
12338 relevant ones are also required.
12339 (ipcp_propagate_stage): Check on the side arrays are properly
12341 (ipcp_print_all_jump_functions): Make sure not to touch any node
12342 that is not analyzed or an edge that does not have a corresponding
12343 entry in the on-the-side vectors.
12344 (ipcp_function_scale_print): Likewise.
12345 (ipcp_update_callgraph): Check that the node is relevant.
12346 (ipcp_insert_stage): Check that the node is relevant. Check there is
12347 an info for every node and edge.
12348 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
12349 (ipa_print_all_tree_maps): Likewise and a new variable info.
12350 (ipa_print_all_params_modified): Likewise.
12351 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
12353 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
12356 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
12358 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
12360 PR rtl-optimization/36753
12361 * fwprop.c (use_killed_between): Don't shortcut
12362 single-definition global registers.
12364 2008-07-16 Jan Hubicka <jh@suse.cz>
12366 * cgraph.h (varpool_empty_needed_queue): Declare.
12367 * cgraphunit.c (output_in_order): Mark all variables as needed;
12369 * varpool.c (varpool_assemble_node): Update debug queue.
12370 (varpool_assemble_pending_decls): Don't do it here.
12371 (varpool_empty_needed_queue): New function.
12373 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12375 * recog.c (peephole2_optimize): Fix formatting.
12377 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12379 * c-pch.c (get_ident): Avoid C++ keywords.
12380 * combine-stack-adj.c (single_set_for_csa): Likewise.
12381 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
12382 output_asm_insn): Likewise.
12383 * reload.c (push_secondary_reload, find_reusable_reload,
12384 push_reload, combine_reloads, find_reloads,
12385 debug_reload_to_stream): Likewise.
12386 * reload.h (struct reload): Likewise.
12387 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
12388 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
12389 emit_output_reload_insns): Likewise.
12390 * targhooks.c (default_secondary_reload): Likewise.
12391 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
12393 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12395 * recog.c (validate_change_1, validate_change,
12396 validate_unshare_change, validate_replace_rtx_1, struct
12397 funny_match, constrain_operands, peephole2_optimize): Avoid C++
12399 * reload.c (push_secondary_reload, secondary_reload_class,
12400 scratch_reload_class, find_valid_class, find_reusable_reload,
12401 push_reload, find_dummy_reload, find_reloads_address_1,
12402 find_reloads_address_part, find_equiv_reg): Likewise.
12403 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
12404 choose_reload_regs): Likewise.
12405 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
12407 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
12408 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
12409 * sched-rgn.c (concat_INSN_LIST): Likewise.
12410 * stor-layout.c (mode_for_size, mode_for_size_tree,
12411 smallest_mode_for_size): Likewise.
12413 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12415 * cfg.c (dump_reg_info): Avoid C++ keywords.
12416 * dwarf2asm.c (dw2_force_const_mem,
12417 dw2_asm_output_encoded_addr_rtx): Likewise.
12418 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
12419 * expmed.c (expand_shift): Likewise.
12420 * global.c (find_reg): Likewise.
12421 * graph.c (draw_edge): Likewise.
12422 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
12423 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
12424 widen_clz, widen_bswap, expand_parity, expand_unop,
12425 emit_cmp_and_jump_insn_1): Likewise.
12426 * postreload.c (reload_cse_simplify_operands): Likewise.
12427 * ra.h (add_neighbor): Likewise.
12428 * reg-stack.c (remove_regno_note, change_stack): Likewise.
12429 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
12430 record_reg_classes, copy_cost, record_address_regs,
12431 invalid_mode_change_p): Likewise.
12432 * regrename.c (regrename_optimize, scan_rtx_reg,
12433 dump_def_use_chain, find_oldest_value_reg,
12434 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
12436 2008-07-16 David Edelsohn <edelsohn@gnu.org>
12438 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
12439 MASK_POWERPC64 for power4 in previous commit.
12441 2008-07-16 Olivier Hainque <hainque@adacore.com>
12443 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
12444 instead of bare conversion to cast const-ness away.
12446 2008-07-16 Anatoly Sokolov <aesok@post.ru>
12448 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
12449 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
12450 * config/xtensa/xtensa.c (xtensa_function_value): New function.
12451 (TARGET_FUNCTION_VALUE): Define.
12453 2008-07-16 David Edelsohn <edelsohn@gnu.org>
12455 * config/rs6000/rs6000.c (processor_target_table): Add
12456 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
12458 2008-07-16 Joseph Myers <joseph@codesourcery.com>
12461 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
12462 (m32c_legitimate_address_p): Handle "++rii" addresses created by
12463 m32c_legitimize_reload_address.
12465 2007-07-16 Rafael Ávila de Espíndola <espindola@google.com>
12467 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
12468 DECL_IN_SYSTEM_HEADER in sync.
12470 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
12472 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
12473 * tree-ssa-pre.c (pre_expr_eq): Ditto
12474 (get_constant_for_value_id): Take a type as an argument.
12475 (fully_constant_expression): Pass in type.
12476 (find_or_generate_expression): Short circuit constant case.
12477 (create_expression_by_pieces): Remove special casing of
12479 (do_regular_insertion): Short circuit constant case.
12480 (do_partial_partial_insertion): Ditto.
12482 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
12485 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
12487 2008-07-15 Bob Wilson <bob.wilson@acm.org>
12489 * config/xtensa/libgcc-xtensa.ver: New file.
12490 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
12492 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12494 * df-problems.c (df_set_note): Avoid C++ keywords.
12495 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
12496 * dse.c (record_store, remove_useless_values): Likewise.
12497 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
12498 gen_reg_rtx_offset, operand_subword, change_address_1,
12499 change_address, adjust_address_1, offset_address,
12500 widen_memory_access, emit_copy_of_insn_after): Likewise.
12501 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
12502 * fwprop.c (should_replace_address, propagate_rtx_1,
12503 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
12505 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
12506 gcse_emit_move_after, update_ld_motion_stores): Likewise.
12507 * lcm.c (compute_insert_delete, pre_edge_lcm,
12508 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
12509 * lower-subreg.c (resolve_reg_notes): Likewise.
12510 * mode-switching.c (optimize_mode_switching): Likewise.
12512 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12514 * bt-load.c (add_btr_def, migrate_btr_def,
12515 branch_target_load_optimize): Avoid C++ keywords.
12516 * caller-save.c (insert_restore, insert_save, insert_one_insn):
12518 * combine.c (subst, simplify_set, make_extraction,
12519 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
12520 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
12521 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
12523 2008-07-15 Richard Guenther <rguenther@suse.de>
12525 PR middle-end/36369
12526 * c-common.c (strict_aliasing_warning): Do not warn for
12527 TYPE_REF_CAN_ALIAS_ALL pointers.
12528 (c_common_get_alias_set): may_alias types are not special.
12529 * tree.c (build_pointer_type_for_mode): Look up the may_alias
12530 attribute and set can_ref_all accordingly.
12531 (build_reference_type_for_mode): Likewise.
12532 * doc/extend.texi (may_alias): Clarify.
12534 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
12537 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
12538 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
12540 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
12543 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
12544 gcc_assert, instead call output_operand_lossage.
12546 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
12548 * builtins.c (std_canonical_va_list): Treat structure based
12551 2008-07-15 Ben Elliston <bje@au.ibm.com>
12553 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
12555 2007-07-14 Rafael Ávila de Espíndola <espindola@google.com>
12557 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
12560 2008-07-14 Jan Hubicka <jh@suse.cz>
12562 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
12563 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
12564 fix predicates and constraints.
12565 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
12566 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
12568 2008-07-14 Doug Kwan <dougkwan@google.com>
12570 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
12571 additional option file arm/eabi.opt.
12572 * config/arm/eabi.h (File): New configuration file for EABI targets.
12573 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
12574 SUBSUBTARGET_EXTRA_SPECS.
12575 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
12576 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
12577 from STARTFILE_SPEC so that it can be referenced in an override.
12578 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
12579 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
12580 can be referenced in an override.
12581 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
12582 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
12583 so that it can be referenced in an override.
12584 (LINK_SPEC): Use BPABI_LINK_SPEC.
12585 * config/arm/eabi.opt (File): New.
12587 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12589 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
12590 (FIXED_VALUE_H): New variable.
12591 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
12592 input.h, fixed-value.h.
12593 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
12594 (BASIC_BLOCK_H): Use $(BITMAP_H).
12595 (FUNCTION_H): Add varray.h.
12596 (IPA_REFERENCE_H): Use $(BITMAP_H).
12597 (CGRAPH_H): Add $(BASIC_BLOCK_H).
12598 (DF_H): Use $(BITMAP_H).
12599 (GGC_H): Add statistics.h.
12600 (INSN_ADDR_H): New.
12601 (INSN_ATTR_H): Use it.
12602 (SYSTEM_H): Add safe-ctype.h, filenames.h.
12604 (SYMTAB_H): Add $(OBSTACK_H).
12605 (CPP_INTERNAL_H): New.
12606 (TREE_DUMP_H): Add tree-pass.h.
12607 (TREE_FLOW_H): Use $(BITMAP_H)
12608 (PRETTY_PRINT_H): Use $(INPUT_H).
12609 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
12612 (many object files): Fix lots of header dependencies throughout.
12614 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12616 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
12618 (s-gtyp-input): Use them to write tmp-gi.list.
12619 (echo_to_gi.list): Remove.
12621 2008-07-14 Richard Guenther <rguenther@suse.de>
12623 * tree-ssa-sccvn.c (pre_info): Remove.
12624 (switch_to_PRE_table): Likewise.
12625 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
12626 (set_hashtable_value_ids): Do not create value-ids for the
12628 (run_scc_vn): Remove double test. Remove bogus special-case
12629 in value-number printing.
12630 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
12631 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
12633 * tree-flow-inline.h (get_value_handle): Remove.
12634 * tree-flow.h (get_value_handle): Remove.
12636 2008-07-14 Martin Jambor <mjambor@suse.cz>
12638 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
12639 in which we generate arithmetics is not a subrange.
12641 2008-07-14 Martin Jambor <mjambor@suse.cz>
12643 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
12645 2008-07-14 Richard Guenther <rguenther@suse.de>
12647 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
12649 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
12652 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
12653 reload for symbol refs moved to r0 with -fPIC.
12654 (legitimize_pic_address): Use the target register as temporary
12656 (emit_symbolic_move): Adjust comment.
12657 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
12660 2008-07-14 Ben Elliston <bje@au.ibm.com>
12662 * c-common.h (C_CPP_HASHNODE): New macro.
12663 * coretypes.h (struct cpp_token): Forward declare.
12664 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12665 the context-sensitive keyword method.
12666 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
12667 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
12668 expand_bool_pixel): New.
12669 (altivec_categorize_keyword): New function.
12670 (init_vector_keywords): New function.
12671 (rs6000_macro_to_expand): Likewise.
12672 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
12673 compiling an ISO C dialect.
12675 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
12677 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
12678 (create_expression_by_pieces): Fix typo.
12679 (do_regular_insertion): Use debug counter here too.
12681 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
12684 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
12685 CONST_OK_FOR_LETTER_P. All port-local users changed.
12686 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
12687 implement Kp matching power-of-two.
12688 (CONSTRAINT_LEN): Define to match.
12689 * config/cris/cris.md: Replace all use of constraint K with Kc.
12690 ("*btst*): Use Kp for operand 0 of last alternative.
12692 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12695 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
12698 2008-07-13 Jan Hubicka <jh@suse.cz>
12700 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
12703 2008-07-13 Richard Guenther <rguenther@suse.de>
12705 PR middle-end/36811
12706 * langhooks.c (lhd_print_error_function): Deal with recursive
12709 2008-07-12 Jan Hubicka <jh@suse.cz>
12711 * cgraph.c (assembler_name_hash): New static var.
12712 (hash_node_by_assembler_name, eq_assembler_name): New.
12713 (cgraph_node_for_asm): Use hashtable.
12714 (cgraph_remove_node): Maintain hashtable.
12715 (change_decl_assembler_name): Sanity check that names are not changing
12716 after aliasing was processed.
12717 * cgraph.h (varpoon_node): Add next GGC marker.
12718 * tree.c (decl_assembler_name_equal): Constify.
12719 (decl_assembler_name_hash): New.
12720 * tree.h (decl_assembler_name_equal): Constify.
12721 (decl_assembler_name_hash): Update.
12723 2008-07-12 David Daney <ddaney@avtrex.com>
12725 * config/mips/driver-native.c (host_detect_local_cpu): Handle
12726 sb1 and r5000 cpus.
12728 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
12730 * doc/md.texi: Document the MIPS "v" constraint.
12731 * config/mips/mips.h (reg_class): Revert last change.
12732 (REG_CLASS_NAMES): Likewise.
12733 (REG_CLASS_CONTENTS): Likewise.
12734 * config/mips/mips.c (mips_regno_to_class): Likewise.
12735 * config/mips/constraints.md (v): Likewise, but add documentation.
12736 Add a comment to say that this constraint should not be used in
12739 2008-07-11 DJ Delorie <dj@redhat.com>
12741 * config/h8300/h8300.md (length): Fix branch offset limit.
12743 2008-07-11 Anatoly Sokolov <aesok@post.ru>
12745 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
12746 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
12747 (avr_hard_regno_scratch_ok): New function.
12748 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
12749 * config/avr/avr.md (all peepholes that request a scratch register):
12750 Remove avr_peep2_scratch_safe use.
12752 2008-07-11 Tom Tromey <tromey@redhat.com>
12753 Ian Lance Taylor <iant@google.com>
12755 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
12756 (struct c_common_resword): Define.
12757 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
12758 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
12759 (c_common_reswords, num_c_common_reswords): Declare.
12760 * c-common.c (c_common_reswords): New global const array.
12761 (num_c_common_reswords): New const int.
12762 * c-parser.c (struct resword, reswords): Don't define.
12763 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
12764 (c_parse_init): Clarify mask code. Use c_common_reswords rather
12765 than reswords. If warning about C++ keywords, give them a special
12767 (c_lex_one_token): Warn about C++ keywords. Call
12768 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
12769 (c_parser_external_declaration): Look for RID_xxx rather than
12770 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
12771 (c_parser_statement_after_labels): Likewise.
12772 (c_parser_objc_class_instance_variables): Likewise.
12773 (c_parser_objc_class_declaration): Likewise.
12774 (c_parser_objc_try_catch_statement): Likewise.
12775 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
12776 (declspecs_add_type): Likewise.
12778 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
12780 * ggc-page.c (alloc_page):
12781 Substituting xmalloc, xcalloc with
12782 XNEWVEC and XCNEWVAR macros which add the
12785 2008-07-11 Richard Guenther <rguenther@suse.de>
12787 PR tree-optimization/36765
12788 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
12789 aliases from HEAP vars to SMTs.
12791 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12793 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
12794 * configure.ac (loose_warn): Move -Wc++-compat from here...
12795 (strict_warn): ...to here.
12796 * configure: Regenerate.
12798 2008-07-10 Joseph Myers <joseph@codesourcery.com>
12800 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
12801 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
12802 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
12803 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
12804 excluding more specific h8300-*-* and sh-*-* targets.
12806 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
12808 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
12809 (eliminate): Ditto.
12810 (execute_pre): Call loop_optimizer_finalize in early exit.
12812 2008-07-10 Jakub Jelinek <jakub@redhat.com>
12814 PR middle-end/36790
12815 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
12816 uids in the bitmap, not just VAR_DECL uids.
12818 PR rtl-optimization/36419
12819 * combine-stack-adj.c (adjust_frame_related_expr): New function.
12820 (combine_stack_adjustments_for_block): Call it if needed. Delete
12822 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
12823 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
12824 prologue sp adjustment.
12826 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
12829 * opts.c (print_ignored_options): Report postponed diagnostics for
12830 unknown -Wno-* options as warnings, not errors.
12831 (postpone_unknown_option_error): Renamed to...
12832 (postpone_unknown_option_warning): ... this.
12834 2008-07-09 Doug Kwan <dougkwan@google.com>
12837 2008-07-08 Doug Kwan <dougkwan@google.com>
12839 * config/arm/arm.opt (mandroid): New option.
12840 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
12841 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
12843 (CC1PLUS_SPEC): Same.
12845 (STARTFILE_SPEC): Same.
12846 (ENDFILE_SPEC): Same.
12847 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
12850 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
12853 * config/mips/mips.h (reg_class): Remove V1_REG.
12854 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
12855 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
12856 instead of V1_REGS.
12857 (mips_get_tp): New function.
12858 (mips_legitimize_tls_address): Use it.
12859 * config/mips/constraints.md (v): Delete.
12860 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
12861 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
12862 After reload, split into a move and ...
12863 (*tls_get_tp_<mode>_split): ...this new instruction.
12865 2008-07-09 David Daney <ddaney@avtrex.com>
12867 * config/mips/driver-native.c: Include coretypes.h and tm.h.
12869 2008-07-09 Jakub Jelinek <jakub@redhat.com>
12871 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
12872 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
12874 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
12875 htab_delete should be called. Don't free c.
12876 (lookup_tmp_var): Create temp_htab lazily.
12877 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
12878 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
12880 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
12881 lower_omp_ordered, lower_omp_critical, lower_omp_for,
12882 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
12883 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
12884 * tree-sra.c (generate_element_init): Likewise.
12885 * tree-mudflap.c (execute_mudflap_function_ops,
12886 execute_mudflap_function_decls): Likewise.
12887 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
12888 * tree-gimple.h (struct gimplify_ctx): New type.
12889 (push_gimplify_context): Adjust prototype.
12891 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
12893 * tree-ssa-pre.c (phi_translate_1): Update placement of
12894 add_to_value calls.
12896 2008-07-09 Anatoly Sokolov <aesok@post.ru>
12898 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
12899 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
12900 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
12901 * targhooks.c (default_hard_regno_scratch_ok): New function.
12902 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
12903 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
12904 * recog.c: Include "target.h".
12905 (peep2_find_free_register): Add check for global regs. Add target
12907 * Makefile.in (recog.o): Depend on target.h.
12909 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
12911 * config/sh/sh.c (sh_canonical_va_list_type): New.
12912 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
12914 2008-07-09 Raksit Ashok <raksit@google.com>
12916 * doc/invoke.texi (Option Summary): Mention new option
12917 -Wdisallowed-function-list=...
12918 (Warning Options): Document -Wdisallowed-function-list=...
12919 * common.opt (Wdisallowed-function-list=): New flag.
12920 * flags.h (warn_disallowed_functions): External definition of new
12921 boolean warning flag.
12922 (warn_if_disallowed_function_p): Declare new function.
12923 * opts.c (warning_disallowed_functions): New static variable.
12924 (warn_disallowed_functions): New boolean warning flag.
12925 (warn_if_disallowed_function_p): New function.
12926 (add_comma_separated_to_vector): Rename
12927 add_instrument_functions_exclude_list to this.
12928 (common_handle_option): Handle new option. Rename calls to
12929 add_instrument_functions_exclude_list into calls to
12930 add_comma_separated_to_vector.
12931 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
12932 based on flag warn_disallowed_functions.
12934 2008-07-09 Christian Bruel <christian.bruel@st.com>
12936 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
12937 instead of get_attr_length.
12939 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12941 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
12943 * genemit.c (gen_insn): Likewise.
12944 * gengtype.c (note_def_vec): Likewise.
12945 * gengtype.h (note_def_vec): Likewise.
12946 * genoutput.c (struct data, output_insn_data, process_template,
12947 gen_expand, gen_split, note_constraint): Likewise.
12948 * genrecog.c (new_decision, add_to_sequence, factor_tests,
12949 make_insn_sequence): Likewise.
12950 * gensupport.c (record_insn_name): Likewise.
12952 2008-07-08 Doug Kwan <dougkwan@google.com>
12954 * config/arm/arm.opt (mandroid): New option.
12955 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
12956 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
12958 (CC1PLUS_SPEC): Same.
12960 (STARTFILE_SPEC): Same.
12961 (ENDFILE_SPEC): Same.
12962 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
12965 2008-07-08 Raksit Ashok <raksit@google.com>
12967 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
12968 (set_storage_via_setmem): Fix expected_align parameter.
12969 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
12970 missing from the list.
12971 * doc/md.texi (movmem): Explicitly state that expected alignment is
12972 to be expressed in bytes.
12973 (setmem): Explicitly state that expected alignment is to be expressed
12976 2008-07-08 Joseph Myers <joseph@codesourcery.com>
12978 * reload.c (find_reloads_subreg_address): Do not require validity
12979 of address in original mode before reloading address.
12981 2008-07-07 Tianwei Sheng <tianweis@google.com>
12983 * df-core.c (df_remove_problem): Adjust the access to avoid out of
12984 bounds array access.
12986 2008-07-08 Jakub Jelinek <jakub@redhat.com>
12988 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
12990 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
12992 Fix PR tree-optimization/23455
12993 Fix PR tree-optimization/35286
12994 Fix PR tree-optimization/35287
12995 * Makefile.in (OBJS-common): Remove tree-vn.o.
12996 (tree-vn.o): Remove.
12997 * dbgcnt.def: Add treepre_insert debug counter.
12998 * gcc/tree-flow.h (add_to_value): Updated for other changes.
12999 (debug_value_expressions): Ditto.
13000 (print_value_expressions): Ditto.
13001 * tree-pretty-print.c (dump_generic_node): Updated for
13002 VALUE_HANDLE removal.
13003 * tree-ssa-dom.c (record_equality): Ditto.
13004 (cprop_operand): Ditto.
13005 (lookup_avail_expr): Ditto.
13006 * tree-ssa-threadedge.c
13007 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
13008 (simplify_control_stmt_condition): Ditto.
13009 * tree.c (tree_code_size): Ditto.
13010 (tree_node_structure): Ditto.
13011 (iterative_hash_expr): Ditto.
13013 * tree.h (VALUE_HANDLE_ID): Ditto.
13014 (VALUE_HANDLE_EXPR_SET): Ditto.
13015 (struct tree_value_handle): Ditto.
13016 (union tree_node): Ditto.
13017 * treestruct.def: Ditto.
13018 * tree-vn.c: Removed.
13019 * tree-ssa-pre.c: Rewritten entirely.
13020 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
13021 (constant_value_ids): Ditto.
13022 (vn_nary_op_t): Moved to header.
13024 (vn_reference_op_t): Ditto
13025 (vn_reference_t): Ditto.
13026 (next_value_id): New variable.
13027 (VN_INFO): Add an assert.
13028 (vn_constant_eq): New function.
13029 (vn_constant_hash): Ditto.
13030 (get_or_alloc_constant_value_id): Ditto.
13031 (value_id_constant_p): Ditto.
13032 (vn_reference_compute_hash): De-staticify.
13033 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
13034 Disable some code with a FIXME. Remove VALUE_HANDLE use.
13035 (valueize_refs): Update opcode if it changes from ssa name to constant.
13036 (vn_reference_lookup_1): Add new argument.
13037 (vn_reference_lookup): Ditto.
13038 (vn_reference_lookup_pieces): New function.
13039 (vn_reference_insert): Add return type. Modify to deal with value ids.
13040 (vn_reference_insert_pieces): New function.
13041 (vn_nary_op_compute_hash): De-staticify.
13042 (vn_nary_op_eq): Ditto.
13043 (vn_nary_op_lookup_pieces): New function.
13044 (vn_nary_op_lookup): Add new argument.
13045 (vn_nary_op_insert_pieces): New function.
13046 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
13047 (vn_phi_insert): Ditto.
13048 (visit_unary_op): Update for callee changes.
13049 (visit_binary_op): Ditto.
13050 (visit_reference_op_load): Ditto.
13051 (visit_reference_op_store): Ditto.
13052 (init_scc_vn): Init next_value_id, constant_to_value_id and
13053 constant_value_ids.
13054 (free_scc_vn): Free them.
13055 (set_hashtable_value_ids): New function.
13056 (run_scc_vn): Use it.
13057 (get_max_value_id): New function.
13058 (get_next_value_id): Ditto.
13059 (expressions_equal_p): Moved from tree-vn.c
13060 (sort_vuses): Ditto.
13061 (sort_vuses_heap): Ditto.
13062 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
13064 * tree.c (iterative_hash_hashval_t): Made non-static
13065 * tree.h (iterative_hash_hashval_t): Declare it.
13067 2008-07-08 Martin Jambor <mjambor@suse.cz>
13069 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
13070 instead of ipa_create_node_params.
13071 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
13072 ipa_check_create_edge_args, free them with
13073 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
13075 * ipa-prop.c: Include flags.h and tree-inline.h.
13076 (ipa_node_params_vector): New variable.
13077 (ipa_edge_args_vector): New variable.
13078 (edge_removal_hook_holder): New variable.
13079 (node_removal_hook_holder): New variable.
13080 (edge_duplication_hook_holder): New variable.
13081 (node_duplication_hook_holder): New variable.
13082 (ipa_detect_param_modifications): Check for presence of modified flags.
13083 (ipa_compute_jump_functions): Check for presence of jump functions.
13084 (ipa_free_edge_args_substructures): New function.
13085 (ipa_create_node_params): Removed.
13086 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
13087 (ipa_free_node_params_substructures): New function.
13088 (ipa_free_all_node_params): Changed to deallocate the on-the-side
13090 (ipa_edge_removal_hook): New function.
13091 (ipa_node_removal_hook): New function.
13092 (duplicate_array): New function.
13093 (ipa_edge_duplication_hook): New function.
13094 (ipa_node_duplication_hook): New function.
13095 (ipa_register_cgraph_hooks): New function.
13096 (ipa_unregister_cgraph_hooks): New function.
13097 (free_all_ipa_structures_after_ipa_cp): New function.
13099 * ipa-prop.h: Include vec.h.
13100 (ipa_node_params_t): New typedef with vector types for it.
13101 (ipa_edge_args_t): New typedef with vector types for it.
13102 (IPA_NODE_REF): Changed to access an on-the-side vector.
13103 (IPA_EDGE_REF): Changed to access an on-the-side vector.
13104 (ipa_check_create_node_params): New function.
13105 (ipa_check_create_edge_args): New function.
13107 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
13110 2008-07-07 Tom Tromey <tromey@redhat.com>
13112 * configure, config.in: Rebuilt.
13113 * configure.ac: Don't check for scandir or alphasort.
13115 2008-07-07 Joseph Myers <joseph@codesourcery.com>
13117 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
13118 types immediately after creating them.
13120 2008-07-07 Joseph Myers <joseph@codesourcery.com>
13122 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
13124 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
13126 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
13127 dump_constraint_graph.
13128 (dump_constraint_edge): New function.
13129 (dump_constraint_graph): New function.
13130 (debug_constraint_graph): New function.
13131 (dump_constraint): Removed useless comparison.
13132 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
13133 (dump_constraint_graph): Declare.
13134 (debug_constraint_graph): Declare.
13135 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
13137 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
13139 * config/i386/i386.c (is_va_list_char_pointer): New.
13140 (ix86_va_start): Replace compare with ms_va_list_type_node
13141 by is_va_list_char_pointer.
13142 (ix86_gimplify_va_arg): Likewise.
13144 2008-07-07 Martin Jambor <mjambor@suse.cz>
13146 * cgraph.c (cgraph_edge_max_uid): New variable.
13147 (struct cgraph_edge_hook_list): New type.
13148 (struct cgraph_node_hook_list): New type.
13149 (struct cgraph_2edge_hook_list): New type.
13150 (struct cgraph_2node_hook_list): New type.
13151 (first_cgraph_edge_removal_hook): New variable.
13152 (first_cgraph_node_removal_hook): New variable.
13153 (first_cgraph_edge_duplicated_hook): New variable.
13154 (first_cgraph_node_duplicated_hook): New variable.
13155 (cgraph_add_edge_removal_hook): New function.
13156 (cgraph_remove_edge_removal_hook): New function.
13157 (cgraph_call_edge_removal_hooks): New function.
13158 (cgraph_add_node_removal_hook): New function.
13159 (cgraph_remove_node_removal_hook): New function.
13160 (cgraph_call_node_removal_hooks): New function.
13161 (cgraph_add_edge_duplication_hook): New function.
13162 (cgraph_remove_edge_duplication_hook): New function.
13163 (cgraph_call_edge_duplication_hooks): New function.
13164 (cgraph_add_node_duplication_hook): New function.
13165 (cgraph_remove_node_duplication_hook): New function.
13166 (cgraph_call_node_duplication_hooks): New function.
13167 (cgraph_create_edge): Assign to edge uid.
13168 (cgraph_remove_edge): Call edge removal hooks.
13169 (cgraph_node_remove_callees): Call edge removal hooks.
13170 (cgraph_node_remove_callers): Call edge removal hooks.
13171 (cgraph_remove_node): Call node removal hooks.
13172 (cgraph_clone_edge): Call edge duplication hooks.
13173 (cgraph_clone_node): Call node duplication hooks.
13175 * cgraph.h (cgraph_edge): New field uid.
13176 (cgraph_edge_hook): New type.
13177 (cgraph_node_hook): New type.
13178 (cgraph_2edge_hook): New type.
13179 (cgraph_2node_hook): New type.
13181 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
13183 * config.in: Regenerate.
13185 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
13187 * gcc.c (print_sysroot): New.
13188 (option_map, display_help, process_command): Handle the
13189 -print-sysroot option.
13190 (main): Print the sysroot if requested.
13191 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
13193 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13196 * unwind-pe.h (size_of_encoded_value): add attribute unused.
13198 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
13200 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
13201 (assign_parm_setup_block_p): Also check mode of entry_parm.
13203 2008-07-07 Richard Guenther <rguenther@suse.de>
13205 * tree-ssa-structalias.h (set_used_smts): Remove.
13206 * tree-ssa-structalias.c (used_smts): Likewise.
13207 (set_used_smts): Likewise.
13208 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
13209 call to set_used_smts.
13211 2008-07-07 Richard Guenther <rguenther@suse.de>
13213 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
13214 (new_var_info): Set it to false.
13215 (solution_set_add): Correctly handle pointers outside a var and
13217 (type_safe): Treat variables with is_full_var properly.
13218 (do_sd_constraint): Likewise.
13219 (do_ds_constraint): Likewise.
13220 (process_constraint): Remove zeroing offset for !use_field_sensitive.
13221 (get_constraint_for_ptr_offset): New function.
13222 (get_constraint_for_component_ref): For addresses at least include
13223 the last field of the variable. Handle is_full_vars properly.
13224 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
13225 (handle_ptr_arith): Remove.
13226 (find_func_aliases): Simplify assignment handling.
13227 (create_function_info_for): For parameter and result varinfos set
13229 (create_variable_info_for): Set is_full_var flag whenever we
13230 just created a single varinfo for a decl.
13231 (init_alias_vars): Initialize use_field_sensitive from
13232 max-fields-for-field-sensitive parameter.
13234 2008-07-07 Richard Guenther <rguenther@suse.de>
13236 PR tree-optimization/36713
13237 * tree-flow-inline.h (is_call_used): New function.
13238 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
13239 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13240 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
13242 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
13244 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
13246 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
13248 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
13250 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
13251 Nathan Sidwell <nathan@codesourcery.com>
13253 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
13254 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
13256 * config/m68k/t-linux: New.
13257 * doc/install.texi: Document m68k-*-linux is now multilibbed by
13260 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
13262 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
13263 * config/m68k/m68k-devices.def: Remove multilibs that only differ
13266 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13268 * gcc.c (execute): Fix -Wc++-compat warning.
13270 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
13273 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
13274 constant for little endian.
13276 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
13278 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
13279 mips_base_mips16 instead of TARGET_MIPS16.
13280 (mips_base_mips16): Declare.
13281 * config/mips/mips.c (mips_base_mips16): Make global.
13282 (was_mips16_p): Remove GTY marker.
13283 (was_mips16_pch_p): New variable.
13284 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
13285 (mips_override_options): Force to non-MIPS16 mode initially.
13286 Do not complain about MIPS16 PIC incompatibilities here.
13287 Only allow -mgpopt if -mexplicit-relocs is in force for
13290 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
13292 * configure.ac: Check for caddr_t, define to char * if not defined.
13293 * configure: Regenerate.
13294 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
13295 (mmap_gt_pch_use_address): Likewise.
13296 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
13298 2008-07-06 Richard Guenther <rguenther@suse.de>
13300 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
13301 (new_var_info): Deal with it.
13302 (solution_set_add): Likewise.
13303 (bitpos_of_field): Make signed, fix.
13304 (struct fieldoff): Remove type and decl fields. Make size field
13305 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
13307 (fieldoff_compare): Deal with it.
13308 (push_fields_onto_fieldstack): Remove has_union argument, glob
13309 adjacent non-pointer fields together.
13310 (create_function_info_for): Do not set has_union.
13311 (create_variable_info_for): Simplify.
13313 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
13315 * config.gcc (extra_headers): Add cross-stdarg.h for target
13316 x86_64-*-* and i?86-*-*.
13317 * config/i386/cross-stdarg.h: New.
13318 * builtins.c (std_fn_abi_va_list): New.
13319 (std_canonical_va_list_type): New.
13320 (stabilize_va_list): Replace va_list_type_node use by
13321 mtarget.canonical_va_list_type.
13322 (gimplify_va_arg_expr): Likewise.
13323 (expand_builtin_va_copy): Replace va_list_type_node use by
13324 mtarget.fn_abi_va_list.
13325 * tree-sra.c (is_va_list_type): New helper.
13326 (decl_can_be_decomposed_p): Replace
13327 va_list_type_node use by is_va_list_type.
13328 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
13329 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13330 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
13331 * config/i386/i386-protos.h (ix86_get_valist_type): New.
13332 (ix86_enum_va_list): New.
13333 * config/i386/i386.c (sysv_va_list_type_node): New.
13334 (ms_va_list_type_node): New.
13335 (ix86_function_type_abi): Remove sorry.
13336 (ix86_build_builtin_va_list_abi): New.
13337 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
13338 for 64-bit targets.
13339 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
13340 (ix86_init_builtins_va_builtins_abi): New.
13341 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
13342 for 64-bit targets.
13343 (ix86_handle_abi_attribute): New.
13344 (attribute_spec): Add sysv_abi and ms_abi.
13345 (ix86_fn_abi_va_list): New.
13346 (ix86_canonical_va_list_type): New.
13347 (ix86_enum_va_list): New.
13348 (TARGET_FN_ABI_VA_LIST): New.
13349 (TARGET_CANONICAL_VA_LIST_TYPE): New.
13350 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
13351 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
13352 (TARGET_CANONICAL_VA_LIST_TYPE): New.
13353 (TARGET_ENUM_VA_LIST): New.
13354 * expr.h (std_fn_abi_va_list): New.
13355 (std_canonical_va_list_type): New.
13356 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
13357 (TARGET_CANONICAL_VA_LIST_TYPE): New.
13358 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
13359 TARGET_CANONICAL_VA_LIST_TYPE.
13360 * target.h (struct gcc_target): Add fn_abi_va_list hook
13361 and canonical_va_list_type hook.
13363 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
13365 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
13366 integral and pointer types.
13368 2008-07-04 Roger Sayle <roger@eyesopen.com>
13370 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
13371 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
13373 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
13376 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
13378 2008-07-04 Jakub Jelinek <jakub@redhat.com>
13380 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
13381 build_gimple_modify_stmt.
13382 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
13383 gimple operand. Use fold_build* instead of build*.
13385 2008-07-04 Richard Guenther <rguenther@suse.de>
13387 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
13388 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
13389 properly to compute the reachability set if we do field-sensitive PTA.
13390 * invoke.texi (max-fields-for-field-sensitive): Document default.
13391 * opts.c (decode_options): Set max-fields-for-field-sensitive to
13392 100 for optimize >= 2.
13394 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13396 * ggc-zone.c (lookup_page_table_if_allocated,
13397 set_page_table_entry, zone_find_object_size, alloc_small_page,
13398 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
13399 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
13400 -Wc++-compat and/or -Wcast-qual warnings.
13402 2008-07-04 Alan Modra <amodra@bigpond.net.au>
13405 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
13406 pic_offset_table_rtx to be marked as used here.
13407 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
13408 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
13409 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
13410 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
13411 !TARGET_SECURE_PLT.
13413 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13415 * alloc-pool.c (hash_descriptor, eq_descriptor,
13416 alloc_pool_descriptor): Fix -Wc++-compat warnings.
13417 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
13419 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
13420 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
13421 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
13422 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
13425 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
13427 * tree-flow.h (loop_only_exit_p): Declare.
13428 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
13429 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
13430 the number of iterations if it is constant. Otherwise, if this is the
13431 only possible exit of the loop, use the conservative estimate on the
13432 number of iterations of the entire loop if available.
13434 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
13436 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
13437 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
13438 Add synchronization functions.
13439 * config/sync.c: New file.
13440 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
13441 (LIBGCC_SYNC_CFLAGS): Likewise.
13443 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
13446 * config/i386/i386.md (mode): Add TF to "mode" attribute.
13447 (*pushtf_sse): New insn pattern.
13448 (pushtf splitters): New splitters.
13450 2008-07-03 Michael Meissner <gnu@the-meissners.org>
13452 PR middle-end/35736
13453 * predict.c (build_predict_expr): Use void_type_node for the tree
13454 type, instead of NULL_TREE.
13456 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
13458 * config/i386/i386.c (contains_aligned_value_p): Return true
13460 (ix86_data_alignment): Align TCmode to 128bits.
13461 (ix86_local_alignment): Likewise.
13463 2008-07-03 Andrew Haley <aph@redhat.com>
13466 * vec.h (VEC_TA): New.
13467 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
13468 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
13469 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
13470 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
13471 (C_COMMON_FIXED_TYPES): Remove first arg.
13472 (C_COMMON_FIXED_MODE_TYPES): Likewise.
13473 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
13474 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
13475 not to use empty macro arguments.
13477 2008-07-02 Joseph Myers <joseph@codesourcery.com>
13479 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
13480 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
13481 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
13482 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
13483 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
13484 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
13485 config/ia64/crtn.asm, config/m68hc11/larith.asm,
13486 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
13487 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
13488 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
13489 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
13490 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
13491 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
13492 config/rs6000/e500crtres64gpr.asm,
13493 config/rs6000/e500crtres64gprctr.asm,
13494 config/rs6000/e500crtrest32gpr.asm,
13495 config/rs6000/e500crtrest64gpr.asm,
13496 config/rs6000/e500crtresx32gpr.asm,
13497 config/rs6000/e500crtresx64gpr.asm,
13498 config/rs6000/e500crtsav32gpr.asm,
13499 config/rs6000/e500crtsav64gpr.asm,
13500 config/rs6000/e500crtsav64gprctr.asm,
13501 config/rs6000/e500crtsavg32gpr.asm,
13502 config/rs6000/e500crtsavg64gpr.asm,
13503 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
13504 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
13505 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
13506 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
13507 config/sparc/sol2-cn.asm: Remove .file directives.
13509 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
13511 * resource.c (mark_referenced_resources): Look inside
13512 UNSPEC_VOLATILEs and ASM_INPUTs.
13514 2008-07-02 Ian Lance Taylor <iant@google.com>
13516 * rtlanal.c (add_reg_note): New function.
13517 * rtl.h (add_reg_note): Declare.
13518 * auto-inc-dec.c (attempt_change): Use add_reg_note.
13519 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
13520 * builtins.c (expand_builtin_longjmp): Likewise.
13521 (expand_builtin_nonlocal_goto): Likewise.
13522 * calls.c (emit_call_1, expand_call): Likewise.
13523 * cfgexpand.c (add_reg_br_prob_note): Likewise.
13524 * cfglayout.c (fixup_reorder_chain): Likewise.
13525 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13526 (commit_one_edge_insertion): Likewise.
13527 * combine.c (move_deaths, distribute_notes): Likewise.
13528 * df-problems.c (df_set_note): Likewise.
13529 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
13530 (set_unique_reg_note): Likewise.
13531 (emit_copy_of_insn_after): Likewise.
13532 * expr.c (expand_expr_real): Likewise.
13533 * gcse.c (add_label_notes): Likewise.
13534 * haifa-sched.c (create_check_block_twin): Likewise.
13535 * jump.c (mark_jump_label_1): Likewise.
13536 * loop-doloop.c (add_test, doloop_modify): Likewise.
13537 * loop-unswitch.c (compare_and_jump_seq): Likewise.
13538 * lower-subreg.c (move_eh_region_note): Likewise.
13539 * optabs.c (emit_libcall_block): Likewise.
13540 * predict.c (predict_insn): Likewise.
13541 (combine_predictions_for_insn): Likewise.
13542 * recog.c (peephole2_optimize): Likewise.
13543 * regmove.c (try_auto_increment): Likewise.
13544 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
13545 * reload.c (find_reloads): Likewise.
13546 * reload1.c (fixup_eh_region_note): Likewise.
13547 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
13548 * reorg.c (delete_prior_computation): Likewise.
13549 (delete_computation, dbr_schedule): Likewise.
13550 * config/pa/pa.c (legitimize_pic_address): Likewise.
13551 * config/sh/sh.c (sh_reorg): Likewise.
13553 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
13556 * config/libgcc-glibc.ver: Add %exclude.
13557 * config/m32r/libgcc-glibc.ver: Likwise.
13558 * config/s390/libgcc-glibc.ver: Likwise.
13559 * config/sh/libgcc-glibc.ver: Likwise.
13560 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
13562 * config/i386/libgcc-glibc.ver: New.
13564 * config/i386/libgcc-x86_64-glibc.ver: Removed.
13566 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
13568 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
13569 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
13570 i[34567]86-*-linux*, x86_64-*-linux*. Add
13571 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
13572 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
13573 x86_64-*-linux*. Add i386/t-linux to tmake_file for
13574 i[34567]86-*-linux*, x86_64-*-linux*.
13576 * libgcc-std.ver: Add empty GCC_4.4.0.
13578 * mkmap-symver.awk: Support multiple versions per symbol.
13580 * config/i386/i386.c (ix86_init_builtins): Always define
13581 __builtin_fabsq and __builtin_copysignq with fallbacks.
13582 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
13583 and __builtin_copysignq if SSE2 isn't available.
13585 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
13586 (LIBGCC2_TF_CEXT): Likwise.
13587 (TF_SIZE): Likwise.
13589 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
13591 * config/i386/sfp-machine.h: Moved to libgcc.
13593 * config/i386/sfp-machine.h: New.
13594 * config/i386/t-linux: Likwise.
13596 * config/i386/t-darwin: Remove softfp_wrap_start and
13598 * config/i386/t-darwin64: Likewise.
13600 * config/i386/t-fprules-softfp64: Renamed to ...
13601 * config/i386/t-fprules-softfp: This.
13603 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
13604 and softfp_wrap_end.
13606 2008-07-02 Jason Merrill <jason@redhat.com>
13608 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
13610 * tree.c (ctor_to_list): New fn.
13611 * tree.h: Declare it.
13612 (CONSTRUCTOR_ELT): New macro.
13613 (CONSTRUCTOR_NELTS): New macro.
13615 2008-07-02 Richard Guenther <rguenther@suse.de>
13617 * tree-ssa-structalias.c (struct variable_info): Reorder
13618 to fill padding on 64bit hosts. Make collapsed_to an int.
13619 (get_varinfo_fc): Deal with that.
13620 (new_var_info): Likewise.
13621 (collapse_rest_of_var): Likewise.
13623 2008-07-02 Joshua Sumali <jsumali@redhat.com>
13625 * doc/install.texi (--enable-java-home): Document.
13626 (--enable-aot-compile-rpm): Likewise.
13627 (--with-arch-directory): Likewise.
13628 (--with-os-directory): Likewise.
13629 (--with-origin-name): Likewise.
13630 (--with-arch-suffix): Likewise.
13631 (--with-jvm-root-dir): Likewise.
13632 (--with-jvm-jar-dir): Likewise.
13633 (--with-python-dir): Likewise.
13635 2008-07-02 Richard Guenther <rguenther@suse.de>
13637 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
13638 from decls explicitly. Merge operand checking from tuples.
13640 2008-07-02 Martin Jambor <mjambor@suse.cz>
13642 * tree-switch-conversion.c: Included timevar.h which I forgot before.
13644 2008-07-02 Martin Jambor <mjambor@suse.cz>
13646 * tree-switch-conversion.c: Included timevar.h
13647 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
13649 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
13651 2008-07-02 Martin Jambor <mjambor@suse.cz>
13653 * tree-switch-conversion.c: Corrected various comments and
13655 (build_constructors): Fixed minor formatting mistakes.
13657 * invoke.texi (Optimize Options): Corrected the
13658 switch-conversion-max-branch-ratio parameter.
13660 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
13662 * final.c (asm_insn_count): Return zero for an empty asm body.
13664 2008-07-02 Richard Guenther <rguenther@suse.de>
13666 * bitmap.h (bitmap_set_bit): Return bool.
13667 (bitmap_clear_bit): Likewise.
13668 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
13669 write to the bitmap if it would.
13670 (bitmap_clear_bit): Likewise.
13671 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
13672 bitmap_set_bit return value.
13673 (add_pred_graph_edge): Likewise.
13674 (add_graph_edge): Likewise.
13675 (do_sd_constraint): Likewise.
13676 (do_ds_constraint): Likewise.
13678 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13680 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
13681 Fix -Wc++-compat and/or -Wcast-qual warnings.
13682 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
13683 gen_regparm_prefix): Likewise.
13684 * vmsdbgout.c (write_modbeg, lookup_filename,
13685 vmsdbgout_source_line, vmsdbgout_init): Likewise.
13687 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
13689 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
13690 defaults.h definition apply.
13692 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
13694 * function.c (assign_parm_remove_parallels): New.
13695 (assign_parm_setup_block_p): Do not return true for non-BLKmode
13697 (assign_parm_setup_block): Do not handle them.
13698 (assign_parm_setup_reg, assign_parm_setup_stack): Call
13699 assign_parm_remove_parallels.
13701 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
13703 * c-typeck.c (convert_for_assignment): Use
13704 vector_targets_convertible_p.
13705 * c-common.c (vector_targets_convertible_p): New.
13706 * c-common.h (vector_targets_convertible_p): New prototype.
13707 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
13708 opaque_p_V2SI_type_node.
13710 2008-07-01 Steve Ellcey <sje@cup.hp.com>
13712 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
13715 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
13717 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
13718 TFmode constants via two element DImode vector for hosts with
13719 HOST_BITS_PER_WIDE_INT < 64.
13720 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
13721 also for HOST_BITS_PER_WIDE_INT < 64.
13723 2008-07-01 Richard Guenther <rguenther@suse.de>
13725 PR tree-optimization/36666
13726 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
13727 (get_constraint_exp_from_ssa_var): Split into ...
13728 (get_constraint_exp_for_temp): ... this ...
13729 (get_constraint_for_ssa_var): ... and that.
13730 Return constraint expressions for all touched sub-fields
13731 if the results address is not taken.
13732 (process_constraint): Remove assertion that aggregate
13733 assignments do not happen at this place.
13734 (get_constraint_for_component_ref): Add address_p argument.
13735 Return constraint expressions for all touched sub-fields
13736 if the results address is not taken.
13737 (do_deref): Use get_constraint_exp_for_temp.
13738 (get_constraint_for_1): Rename from ...
13739 (get_constraint_for): ... this. Add the old function as wrapper.
13740 (do_structure_copy): Use get_constraint_for_1.
13742 2008-07-01 Martin Jambor <mjambor@suse.cz>
13744 * Makefile.in (tree-switch-conversion.o): Add.
13745 (OBJS-common): Add tree-swtch-conversion.o.
13746 * passes.c (init_optimization_passes): Add pass_convert_switch.
13747 * tree-pass.h: (pass_convert_switch): Add.
13748 * tree-switch-conversion.c: New file.
13749 * gcc.dg/tree-ssa/cswtch.c: New testcase.
13750 * common.opt (ftree-cswtch): New option.
13751 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
13752 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
13753 * opts.c (decode_options): Set flag_tree_switch_conversion when
13754 optimization level is >= 2.
13755 * doc/invoke.texi (Optimize Options): Added description of
13756 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
13758 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13760 * config/darwin-driver.c (darwin_default_min_version): Fix
13761 -Wc++-compat warnings.
13763 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
13765 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
13768 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
13770 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
13772 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
13774 PR rtl-optimization/34744
13775 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
13776 (df_scan_free_internal): Free data structures not
13777 allocated in storage pools.
13778 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
13779 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
13780 df_scan_free_mws_vec.
13781 * dse.c (dse_step6): Free offset_map_p and offset_map_n
13784 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
13786 * config/i386/i386.c (contains_aligned_value_p): Return true
13788 (ix86_function_arg_boundary): Return its natural boundary
13790 (return_in_memory_32): Don't check TDmode.
13791 (ix86_split_to_parts): Support splitting into 4 parts and
13792 support TFmode for 32bit target.
13793 (ix86_split_long_move): Support splitting into 4 parts.
13794 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
13796 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
13797 (ix86_init_builtins): Here.
13798 (ix86_scalar_mode_supported_p): Always return true for TFmode.
13799 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
13800 'q' and 'w', respectively.
13802 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
13804 (movtf_internal): Likewise.
13805 (<code>tf2): Likewise.
13806 (*absnegtf2_sse): Likewise.
13807 (copysign<mode>3): Likewise.
13808 (copysign<mode>3_const): Likewise.
13809 (copysign<mode>3_var): Likewise.
13810 (define_split UNSPEC_COPYSIGN): Likewise.
13811 * config/i386/sse.md (*nandtf3): Likewise.
13812 (<code>tf3): Likewise.
13813 (*<code>tf3): Likewise.
13815 2008-06-30 Joey Ye <joey.ye@intel.com>
13816 H.J. Lu <hongjiu.lu@intel.com>
13818 * global.c (compute_regsets): Set frame_pointer_needed here.
13819 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
13821 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
13823 * doc/install.texi (specific): Expand Windows build notes.
13825 2008-06-30 Ira Rosen <irar@il.ibm.com>
13827 PR tree-optimization/36648
13828 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
13829 number of prolog iterations by step. Fix the comment.
13831 2008-06-30 Richard Guenther <rguenther@suse.de>
13833 PR middle-end/36671
13834 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
13835 handle calls from ECF_MALLOC functions.
13836 (handle_pure_call): ECF_MALLOC functions do not return
13838 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
13840 2008-06-29 Andreas Schwab <schwab@suse.de>
13842 * config/m68k/m68k.c (print_operand): Always print a float
13844 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
13845 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
13848 * config/rs6000/x-linux64: Remove never used file.
13850 2008-06-29 Richard Guenther <rguenther@suse.de>
13852 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
13854 (struct alias_info): Move ...
13855 * tree-ssa-alias.c: ... here.
13856 (update_alias_info): Declare.
13857 (compute_may_aliases): Call it.
13858 (update_alias_info): New function.
13859 * tree-ssa-structalias.c (update_alias_info): Move ...
13860 * tree-ssa-alias.c (update_alias_info_1): ... here.
13861 * tree-ssa-structalias.c (process_constraint_1): Remove
13862 unused from_call argument. Rename to ...
13863 (process_constraint): ... this. Delete old wrapper.
13864 (make_constraint_to): Adjust callers.
13865 (handle_const_call): Likewise.
13866 (handle_pure_call): Likewise.
13867 (init_base_vars): Likewise.
13868 (handle_lhs_call): Likewise. Remove unnecessary constraint.
13869 (find_func_aliases): We don't need structure copies for
13871 (make_constraint_from_anything): Remove.
13872 (create_variable_info_for): For globals make constraints
13873 from escaped, not from anything.
13874 (compute_points_to_sets): Do not call update_alias_info.
13875 (ipa_pta_execute): Use make_constraint_from.
13877 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13879 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
13880 (bitmap.o-warn, dominance.o-warn): New.
13881 * configure.ac (cxx_compat_warn): Delete.
13882 (loose_warn): Add -Wcast-qual and -Wc++-compat.
13883 * system.h: Remove #pragma diagnostic for -Wcast-qual and
13885 * configure: Regenerate.
13887 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
13890 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13892 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
13893 * df-scan.c (df_notes_rescan): Likewise.
13894 * ggc-page.c (set_page_table_entry): Likewise.
13895 * intl.c (gcc_gettext_width): Likewise.
13896 * varasm.c (get_unnamed_section, get_noswitch_section,
13897 get_section): Likewise.
13899 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
13901 * regrename.c (build_def_use): Don't copy RTX.
13903 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
13905 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
13906 (Type Attributes): Fix nesting of @table and @subsection. Adjust
13907 punctuation. Use @ref instead of @xref.
13908 (Function Names): Remove stray @display/@end display.
13909 (C++ Attributes): Use @ref instead of @xref.
13910 (Deprecated Features): Fix punctuation around @xref.
13911 (Backwards Compatibility): Likewise.
13912 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
13914 2008-06-28 Joseph Myers <joseph@codesourcery.com>
13916 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
13917 constants for E500 double.
13919 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13921 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
13922 element type of const_vector.
13924 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
13926 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
13927 Remove FLAGS_REG clobber from expander pattern.
13928 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
13929 (anddi3, andsi3, andhi3, andqi3): Ditto.
13930 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
13931 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
13932 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
13933 (ashlsi3, ashlhi3, ashlqi3): Ditto.
13934 (ashrsi3, ashrhi3, ashrqi3): Ditto.
13935 (lshrsi3, lshrhi3, lshrqi3): Ditto.
13936 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
13937 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
13939 2008-06-28 Richard Guenther <rguenther@suse.de>
13941 * tree-ssa-structalias.c (callused_id, var_callused,
13942 callused_tree): Add.
13943 (handle_pure_call): New function.
13944 (find_func_aliases): Call it.
13945 (find_what_p_points_to): Handle the call-used set.
13946 (clobber_what_escaped): Likewise.
13947 (compute_call_used_vars): New function.
13948 (init_base_vars): Init the call-used variable.
13949 (do_sd_constraint): Do not propagate the solution from CALLUSED
13950 but use CALLUSED as a placeholder.
13951 (solve_graph): Likewise.
13952 * tree-flow-inline.h (gimple_call_used_vars): New function.
13953 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
13954 (compute_call_used_vars): Declare.
13955 * tree-ssa-alias.c (set_initial_properties): Call
13956 compute_call_used_vars.
13957 (reset_alias_info): Clear call-used variables.
13958 (add_call_clobber_ops): Assert we are not called for const/pure
13959 functions. Remove handling of them.
13960 (add_call_read_ops): Handle pure functions by adding the
13961 call-used set of variables as VUSEs.
13962 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
13963 (delete_tree_ssa): Free it.
13964 * tree-dfa.c (remove_referenced_var): Clear the var from the
13967 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
13969 * tree.c (build_varargs_function_type_list): New.
13970 (build_function_type_list_1): New.
13971 (build_function_type_list): Use build_function_type_list_1.
13972 * tree.h (build_varargs_function_type_list): New.
13974 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13977 * config/spu/spu.c (spu_builtin_splats): Do not generate
13978 invalid CONST_VECTOR expressions.
13979 (spu_expand_vector_init): Likewise.
13981 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
13983 * optabs.c (libfunc_decls): New variable.
13984 (libfunc_decl_hash, libfunc_decl_eq): New functions.
13985 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
13986 for the same function twice.
13988 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
13990 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
13991 ix86_expand_binary_operator directly.
13992 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
13994 (*ashrti3_1): Ditto.
13995 (*lshrti3_1): Ditto.
13996 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
13997 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
13998 using only one splitter. Conditionaly execute splitter before or
13999 after peephole2 pass.
14000 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
14001 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
14002 Use only one alternative in asm template.
14003 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
14005 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
14006 "J" operand constraint for operand 2.
14007 (*ashldi3_cconly_rex64): Ditto.
14008 (*ashrdi3_cmp_rex64): Ditto.
14009 (*ashrdi3_cconly_rex64): Ditto.
14010 (*lshrdi3_cmp_rex64): Ditto.
14011 (*lshrdi3_cconly_rex64): Ditto.
14012 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
14013 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
14014 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
14017 2008-06-27 Jakub Jelinek <jakub@redhat.com>
14019 * gimplify.c (omp_is_private): Don't return true if decl is not
14020 already private on #pragma omp for or #pragma omp parallel for.
14023 * tree-cfg.c (struct move_stmt_d): Replace block field with
14024 orig_block and new_block fields.
14025 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
14026 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
14027 (move_block_to_fn): Replace vars_map and new_label_map arguments
14028 with struct move_stmt_d pointer.
14029 (replace_block_vars_by_duplicates): New function.
14030 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
14031 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
14032 all subblocks of ORIG_BLOCK to the new function. Call
14033 replace_block_vars_by_duplicates.
14034 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
14035 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
14036 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
14037 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
14038 (expand_omp): Temporarily set input_location to the location of
14039 region's controlling stmt.
14040 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
14041 BIND_EXPR, push ctx->block_vars and gimplification vars into
14042 the BIND_EXPR and its block's BLOCK_VARS instead of directly
14043 into dest function.
14044 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
14045 there are any BLOCK_VARS.
14046 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
14047 OMP_PARALLEL or OMP_TASK stmt.
14048 (lower_omp): Save and restore input_location around the lower_omp_1
14051 2008-06-27 Richard Guenther <rguenther@suse.de>
14053 PR tree-optimization/36400
14054 PR tree-optimization/36373
14055 PR tree-optimization/36344
14056 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
14057 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
14058 (update_alias_info): Remove call clobbering code.
14059 (make_constraint_to): New helper function.
14060 (make_escape_constraint): Likewise.
14061 (handle_rhs_call): Use it on all pointer containing arguments.
14062 Also mark the static chain escaped.
14063 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
14064 instead of ANYTHING.
14065 (make_constraint_from): New helper split out from ...
14066 (make_constraint_from_anything): ... here.
14067 (find_func_aliases): Add constraints for escape sites.
14068 (intra_create_variable_infos): Make constraints from NONLOCAL
14070 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
14072 (clobber_what_p_points_to): Remove.
14073 (clobber_what_escaped): New function.
14074 (init_base_vars): Init NONLOCAL and ESCAPED.
14075 (do_sd_constraint): Do not propagate the solution from ESCAPED
14076 but use ESCAPED as a placeholder.
14077 (solve_graph): Likewise.
14078 * tree-flow.h (clobber_what_p_points_to): Remove.
14079 (clobber_what_escaped): Declare.
14080 * tree-ssa-alias.c (set_initial_properties): Call it.
14081 Remove code clobbering escaped pointers.
14083 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
14085 * function.c (allocate_struct_function): Only allocate a unique
14086 funcdef_no if the decl is nonzero.
14088 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
14090 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
14091 * config/mips/mips.c (mips_split_const_insns): New function.
14092 * config/mips/mips.md (move_type): New attribute.
14093 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
14094 (dword_mode): New attribute.
14095 (type): Avoid long line. Map "move_type"s to "type"s,
14096 choosing "multi" for doubleword moves if appropriate.
14097 Swap MTC/MFC comments to match their declaration order.
14098 (extended_mips16): Default to "yes" if "move_type" is "sll0",
14099 "type" is "branch" or "jal" is "direct".
14100 (length): Handle "extended_mips16" first. Make the default
14101 "0" for "ghost" instructions. Set the length from "move_type".
14102 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
14103 of "type", with "sll0" for the register alternative. Remove the
14104 "extended_mips16" attribute.
14105 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
14106 of "type", with "shift_shift" for the register alternative.
14107 Remove the "length" attribute.
14108 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
14109 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
14110 of "type", with "andi" for the register alternative.
14111 (*zero_extendqihi2): Likewise.
14112 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
14113 of "andi" instead of a "type" of "arith".
14114 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
14116 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
14117 (mov_<store>r, *mov<mode>_ra): Likewise.
14118 (extendsidi2): Use "move_type" instead of "type", with "move"
14119 for the register alternative.
14120 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
14121 of "type", with "signext" for the register alternative.
14122 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
14123 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
14124 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
14125 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
14126 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
14127 (unnamed branch insn): Likewise.
14128 (*movdi_gp32_fp64): Fold into...
14129 (*movdi_32bit): ...here.
14130 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
14131 (*movdf_hardfloat): ...this new pattern.
14132 (*movdf_softfloat): Remove redundant FPR alternatives.
14133 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
14134 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
14135 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
14136 the "move" attribute.
14137 (*movdi_32bit): Use "move_type" instead of "type" and remove the
14138 "length" attribute. Use "fpload" and "fpstore" instead of "load"
14139 and "store" for COP loads and stores.
14140 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
14141 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
14142 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
14143 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
14144 (*movtf_mips16, *movv2sf): Likewise.
14145 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
14146 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
14147 (mfhc1<mode>): Use "move_type" instead of "move".
14148 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
14149 (loadgp_blockage): Remove the "length" attribute.
14150 (blockage, set_got_version, update_got_version): Likewise.
14151 (call_internal): Remove the "extended_mips16" attribute.
14152 (call_value_internal, call_value_multiple_internal): Likewise.
14153 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
14155 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
14156 the "length" attribute.
14158 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14160 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
14161 -Wcast-qual warnings.
14162 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
14163 handle_pragma_pop_macro): Likewise.
14164 * collect2.c (resolve_lib_name): Likewise.
14165 * config/arc/arc.c (arc_init): Likewise.
14166 * config/arm/arm.c (neon_builtin_compare,
14167 locate_neon_builtin_icode): Likewise.
14168 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
14169 * config/bfin/bfin.c (bfin_init_machine_status,
14170 bfin_optimize_loop): Likewise.
14171 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
14172 * config/cris/cris.c (cris_init_expanders): Likewise.
14173 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
14174 * config/darwin.c (machopic_indirection_eq,
14175 machopic_indirection_name, machopic_output_indirection): Likewise.
14176 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
14177 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
14178 frv_optimize_membar): Likewise.
14179 * config/i386/cygwin.h (mingw_scan,
14180 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
14181 * config/i386/cygwin1.c (mingw_scan): Likewise.
14182 * config/i386/i386.c (machopic_output_stub): Likewise.
14183 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
14184 i386_pe_unique_section): Likewise.
14185 * config/ia64/ia64.c (ia64_init_machine_status,
14186 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
14188 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
14189 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
14190 * config/m68k/m68k.c (m68k_handle_option,
14191 m68k_sched_md_init_global): Likewise.
14192 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
14193 mcore_unique_section): Likewise.
14194 * config/mips/mips.c (mips_block_move_straight,
14195 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
14197 * config/mmix/mmix.c (mmix_init_machine_status,
14198 mmix_encode_section_info): Likewise.
14199 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
14200 * config/rs6000/rs6000.c (rs6000_init_machine_status,
14201 print_operand_address, output_toc, redefine_groups,
14202 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
14203 * config/s390/s390.c (s390_init_machine_status): Likewise.
14204 * config/score/score.c (score_block_move_straight,
14205 score_block_move_loop_body): Likewise.
14206 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
14207 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
14208 * emit-rtl.c (find_auto_inc): Likewise.
14209 * gcc.c (translate_options, process_command): Likewise.
14210 * reorg.c (dbr_schedule): Likewise.
14211 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
14212 * xcoffout.c (xcoffout_declare_function): Likewise.
14214 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
14216 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
14217 ipa-pta working again.
14219 2008-06-27 David Edelsohn <edelsohn@gnu.org>
14221 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
14224 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
14226 * config.gcc (powerpc*-*-*): Add new core e500mc.
14227 * config/rs6000/e500mc.md: New file.
14228 * config/rs6000/rs6000.c (processor_costs): Add new costs for
14230 (rs6000_override_options): Add e500mc case to
14231 processor_target_table. Altivec and Spe options not allowed
14232 with e500mc. Add isel instruction to e500mc by
14233 default. Initialize rs6000_cost for e500mc.
14234 (rs6000_issue_rate): Set issue rate for e500mc.
14235 * config/rs6000/rs6000.h (processor_type): Add
14236 PROCESSOR_PPCE500MC.
14237 (ASM_CPU_SPEC): Add e500mc.
14238 Set TARGET_ISEL to rs6000_isel.
14239 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
14240 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
14241 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
14243 * doc/invoke.texi: Add e500mc to list of cpus.
14245 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14248 * c-lex.c (lex_charconst): Initialize unsignedp.
14250 2008-06-27 Olivier Hainque <hainque@adacore.com>
14252 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
14253 documented assumptions.
14255 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
14257 * dwarf2out.c: Remove trailing white spaces. Break long line
14260 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
14262 * libfuncs.h (LTI_synchronize): New libfunc_index.
14263 (synchronize_libfunc): Declare.
14264 * builtins.c (expand_builtin_synchronize): Consider using
14265 synchronize_libfunc before falling back on an asm blockage.
14266 * config/mips/mips.c: Include libfuncs.h
14267 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
14269 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
14271 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
14272 parameter. Copy stack_reg to r11 where appropriate.
14273 (no_global_regs_above): Add gpr parameter.
14274 (rs6000_stack_info): Only add padding for SPE save area if we
14275 are saving SPE GPRs and CR.
14276 (saveres_routine_syms): New variable.
14277 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
14279 (rs6000_savres_routine_sym): New function.
14280 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
14282 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
14283 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
14284 Tweak FPR out-of-line saving.
14285 (rs6000_make_savres_rtx): New function.
14286 (rs6000_use_multiple_p): New function.
14287 (rs6000_savres_strategy): New function.
14288 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
14289 out-of-line if appropriate.
14290 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
14291 if we are optimizing for size.
14292 (GP_SAVE_INLINE): Define.
14293 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
14294 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
14295 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
14296 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
14297 (*save_fpregs_<mode>): Add use of r11.
14298 (*restore_gpregs_<mode>): New insn.
14299 (*return_and_restore_gpregs_<mode>): New insn.
14300 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
14302 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
14303 (*restore_gpregs_spe): New insn.
14304 (*return_and_restore_gpregs_spe): New insn.
14305 * config/rs6000/predicates.md (save_world_operation): Fix check.
14307 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
14309 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
14310 this point, so assert that.
14312 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
14314 * cfganal.c: Include vec.h and vecprim.h.
14315 (compute_idf): Import from...
14316 * tree-into-ssa (compute_idf): ...here.
14317 * basic-block.h (compute_idf): Export.
14319 2008-06-26 Joseph Myers <joseph@codesourcery.com>
14321 * c-decl.c (merge_decls): Use !current_function_decl to check for
14322 extern declaration of C99 inline function being at file scope.
14324 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
14326 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
14328 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14330 * alias.c (record_alias_subset, init_alias_analysis): Fix
14331 -Wc++-compat and/or -Wcast-qual warnings.
14332 * attribs.c (lookup_attribute_spec): Likewise.
14333 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
14334 copy_bb, connect_traces,
14335 find_rarely_executed_basic_blocks_and_cr): Likewise.
14336 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
14337 note_btr_set, migrate_btr_defs): Likewise.
14338 * builtins.c (result_vector, expand_builtin_memcpy,
14339 expand_builtin_mempcpy_args, expand_builtin_strncpy,
14340 builtin_memset_read_str, expand_builtin_printf,
14341 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
14343 * caller-save.c (mark_set_regs): Likewise.
14344 * calls.c (expand_call, emit_library_call_value_1): Likewise.
14345 * cgraph.c (cgraph_edge): Likewise.
14346 * combine.c (likely_spilled_retval_1): Likewise.
14347 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
14348 htab_counts_entry_del, get_coverage_counts): Likewise.
14349 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
14350 new_cselib_val): Likewise.
14351 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
14352 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
14354 * df-core.c (df_compact_blocks): Likewise.
14355 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
14356 * df-scan.c (df_grow_reg_info, df_ref_create,
14357 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
14358 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
14359 df_record_entry_block_defs, df_record_exit_block_uses,
14360 df_bb_verify): Likewise.
14361 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
14362 DF_REF_EXTRACT_MODE_CONST): New.
14363 * dominance.c (get_immediate_dominator, get_dominated_by,
14364 nearest_common_dominator, root_of_dom_tree,
14365 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
14366 -Wc++-compat and/or -Wcast-qual warnings.
14367 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
14368 record_store, replace_read, check_mem_read_rtx, scan_insn,
14369 dse_step1, dse_record_singleton_alias_set): Likewise.
14370 * dwarf2asm.c (dw2_force_const_mem): Likewise.
14372 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14374 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
14375 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
14376 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
14377 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
14378 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
14379 add_ranges_num, add_ranges_by_labels, file_info_cmp,
14380 file_name_acquire, output_file_names, add_const_value_attribute,
14381 premark_used_types_helper, file_table_eq, file_table_hash,
14382 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
14383 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
14384 -Wcast-qual warnings.
14385 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
14386 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
14387 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
14388 gen_reg_rtx, start_sequence, init_emit): Likewise.
14389 * et-forest.c (et_new_occ, et_new_tree): Likewise.
14390 * except.c (init_eh_for_function, gen_eh_region,
14391 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
14392 arh_to_landing_pad, arh_to_label, add_action_record,
14393 add_call_site, switch_to_exception_section): Likewise.
14394 * expmed.c (synth_mult): Likewise.
14395 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
14396 store_expr): Likewise.
14397 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
14399 * function.c (assign_stack_temp_for_type,
14400 allocate_struct_function, match_asm_constraints_1): Likewise.
14401 * gcov-io.c (gcov_allocate): Likewise.
14402 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
14403 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
14404 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
14405 record_one_set, insert_expr_in_table, insert_set_in_table,
14406 dump_hash_table, compute_hash_table_work, alloc_hash_table,
14407 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
14408 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
14409 -Wcast-qual warnings.
14411 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14413 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
14414 -Wcast-qual warnings.
14415 * gcc.c (process_command): Likewise.
14416 * genattrtab.c (oballoc): Use XOBNEW.
14417 (oballocvec): Define.
14418 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
14419 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
14420 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
14421 -Wc++-compat and/or -Wcast-qual warnings.
14422 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
14423 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
14424 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
14425 gen_presence_absence_set, gen_automaton, gen_regexp_el,
14426 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
14427 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
14428 add_excls, process_presence_absence_names,
14429 process_presence_absence_patterns, add_presence_absence,
14430 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
14431 get_free_state, add_arc, get_free_automata_list_el,
14432 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
14433 transform_3, cache_presence, create_ainsns, create_automata,
14434 create_state_ainsn_table, dfa_insn_code_enlarge,
14435 output_trans_func, output_min_issue_delay_func,
14436 output_dead_lock_func, output_reset_func,
14437 output_get_cpu_unit_code_func, output_dfa_start_func,
14438 expand_automata): Likewise.
14439 * genextract.c (gen_insn): Likewise.
14440 * gengtype-lex.l: Likewise.
14441 * gengtype.c (read_input_list, adjust_field_type,
14442 process_gc_options): Likewise.
14443 * genoutput.c (note_constraint): Likewise.
14444 * genpreds.c (mangle, add_constraint): Likewise.
14445 * genrecog.c (process_define_predicate, new_decision,
14446 add_to_sequence): Likewise.
14447 * gensupport.c (record_insn_name): Likewise.
14449 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14451 * config/i386/driver-i386.c (detect_caches_amd,
14452 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
14453 and/or -Wcast-qual warnings.
14454 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
14455 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
14456 gt_pch_save): Likewise.
14457 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
14458 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
14459 * global.c (compute_regsets): Likewise.
14460 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
14461 finish_graph_dump_file): Likewise.
14462 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
14463 unlink_bb_notes): Likewise.
14464 * integrate.c (get_hard_reg_initial_val): Likewise.
14465 * ipa-prop.c (ipa_push_func_to_list): Likewise.
14466 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
14467 * local-alloc.c (update_equiv_regs): Likewise.
14468 * loop-invariant.c (check_invariant_table_size,
14469 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
14471 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
14472 altered_reg_used, mark_altered): Likewise.
14473 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
14474 insert_var_expansion_initialization,
14475 combine_var_copies_in_loop_exit, apply_opt_in_copies,
14476 release_var_copies): Likewise.
14477 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
14478 analyze_matrix_decl, add_allocation_site, analyze_transpose,
14479 analyze_accesses_for_phi_node, check_var_notmodified_p,
14480 check_allocation_function, find_sites_in_func,
14481 record_all_accesses_in_func, transform_access_sites,
14482 transform_allocation_sites): Likewise.
14483 * omp-low.c (new_omp_region, create_omp_child_function_name,
14484 check_omp_nesting_restrictions, check_combined_parallel,
14485 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
14486 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
14487 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
14488 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
14490 * opts-common.c (prune_options): Likewise.
14491 * opts.c (add_input_filename, print_filtered_help,
14492 get_option_state): Likewise.
14493 * params.c (add_params): Likewise.
14494 * passes.c (set_pass_for_id, next_pass_1,
14495 do_per_function_toporder, pass_fini_dump_file): Likewise.
14496 * postreload.c (reload_cse_simplify_operands): Likewise.
14497 * predict.c (tree_predicted_by_p, tree_predict_edge,
14498 clear_bb_predictions, combine_predictions_for_bb): Likewise.
14500 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14502 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
14504 * recog.c (check_asm_operands, validate_change_1): Likewise.
14505 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
14506 subst_asm_stack_regs): Likewise.
14507 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
14508 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
14509 * regmove.c (reg_is_remote_constant_p): Likewise.
14510 * regrename.c (regrename_optimize, scan_rtx_reg,
14511 kill_clobbered_value, kill_set_value, kill_autoinc_value):
14513 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
14514 regstat_compute_calls_crossed): Likewise.
14515 * reload1.c (init_reload, new_insn_chain,
14516 has_nonexceptional_receiver, reload, copy_reloads,
14517 calculate_needs_all_insns, init_elim_table): Likewise.
14518 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
14519 * rtl.c (shallow_copy_rtx_stat): Likewise.
14520 * rtlanal.c (parms_set): Likewise.
14521 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
14522 sbitmap_resize, sbitmap_vector_alloc): Likewise.
14523 * sched-ebb.c (earliest_block_with_similiar_load,
14524 add_deps_for_risky_insns): Likewise.
14525 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
14526 schedule_region): Likewise.
14527 * see.c (eq_descriptor_pre_extension,
14528 hash_descriptor_pre_extension, hash_del_pre_extension,
14529 eq_descriptor_properties, hash_descriptor_properties,
14530 hash_del_properties, see_seek_pre_extension_expr,
14531 see_initialize_data_structures, see_print_register_properties,
14532 see_print_pre_extension_expr, see_delete_merged_def_extension,
14533 see_delete_unmerged_def_extension, see_emit_use_extension,
14534 see_pre_delete_extension, see_map_extension, see_commit_changes,
14535 see_analyze_merged_def_local_prop,
14536 see_analyze_merged_def_local_prop,
14537 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
14538 see_set_prop_merged_def, see_set_prop_unmerged_def,
14539 see_set_prop_unmerged_use, see_print_one_extension,
14540 see_merge_one_use_extension, see_merge_one_def_extension,
14541 see_store_reference_and_extension, see_update_uses_relevancy,
14542 see_update_defs_relevancy): Likewise.
14543 * statistics.c (hash_statistics_hash, hash_statistics_eq,
14544 hash_statistics_free, curr_statistics_hash): Likewise.
14545 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
14546 expand_asm_operands, expand_return, case_bit_test_cmp,
14547 expand_case): Likewise.
14548 * stor-layout.c (start_record_layout): Likewise.
14549 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
14550 gt_pch_save_stringpool): Likewise.
14551 * tree-data-ref.c (hash_stmt_vertex_info,
14552 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
14553 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
14555 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
14558 * config/i386/i386.md : Change constraints of HImode and QImode
14559 immediate operands from "i" to "n". Change SImode "ni" constraint to
14560 "i" and SImode "rmi" constraint to "g". Remove all constraints
14561 from const0_operand and const1_operand predicated operands.
14562 (i): Change QImode and HImode attribute from "i" to "n".
14563 (*subqi_2): Change HImode operands to QImode.
14566 2008-06-25 Olivier Hainque <hainque@adacore.com>
14568 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
14571 2008-06-25 Richard Guenther <rguenther@suse.de>
14573 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
14574 not overflow the result type.
14576 2008-06-25 Richard Guenther <rguenther@suse.de>
14578 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
14579 (vn_lookup): Likewise.
14581 2008-06-25 Richard Guenther <rguenther@suse.de>
14583 PR tree-optimization/35518
14584 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
14585 * tree-sra.c (instantiate_element): Use fold_build3 to build
14587 (try_instantiate_multiple_fields): Likewise.
14589 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
14591 * config/rs6000/rs6000.md: Change all string instruction's clobber to
14594 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
14596 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
14597 use_backchain_to_restore_sp to true
14598 if the offset of the link register save area would go over the 32k - 1
14599 offset limit of the load
14602 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
14604 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
14605 anchor for the type-punning blurb. Cross-reference "Structures
14606 unions enumerations and bit-fields implementation". Provide a
14607 cast-through-pointer example. Make final sentence self-contained.
14608 * doc/implement-c.texi (Structures unions enumerations and
14609 bit-fields implementation): Cross-reference the type-punning blurb
14610 in the -fstrict-aliasing documentation.
14612 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
14614 PR middle-end/36594
14615 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
14616 the memory instead of the memory itself for the save area.
14618 2008-06-24 Olivier Hainque <hainque@adacore.com>
14619 Nicolas Roche <roche@adacore.com>
14621 * gengtype.c (srcdir_len): size_t instead of int.
14622 (get_file_realbasename): New function. For F a filename, the real
14623 basename of F, with all the path components stripped.
14624 (get_file_srcdir_relative_path): New function. For F a filename, the
14625 relative path to F from $(srcdir).
14626 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
14627 get_file_realbasename. Adjust the head comment.
14628 (get_prefix_langdir_index): New function. For F a filename, return the
14629 lang_dir_names[] relative index of the language directory that is
14631 (get_file_langdir): For F a filename, return the name of the language
14632 directory where F is located.
14633 (get_file_gtfilename): New function. The gt- output file name for an
14635 (get_output_file_with_visibility): Replace in-line computations with
14636 uses of get_file_gtfilename and get_prefix_langdir_index.
14637 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
14639 2008-06-24 Jakub Jelinek <jakub@redhat.com>
14641 PR tree-optimization/36504
14642 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
14643 references without base address.
14645 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
14647 PR middle-end/36584
14648 * calls.c (expand_call): Increase alignment for recursive functions.
14650 2008-06-23 Anatoly Sokolov <aesok@post.ru>
14652 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
14653 (TARGET_FUNCTION_VALUE): New define.
14654 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
14655 * config/avr/avr.h (FUNCTION_VALUE): Remove.
14657 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
14659 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
14660 (fmod<mode>3): Ditto.
14661 (remainderxf3): Ditto.
14662 (remainder<mode>3): Ditto.
14664 2008-06-23 Jakub Jelinek <jakub@redhat.com>
14667 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
14668 REG is a hard register.
14670 PR tree-optimization/36508
14671 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
14672 499, don't check it at all in release compilers.
14674 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
14676 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
14677 together with SSE_TARGET_MATH to disable insn pattern.
14678 (*fop_<MODEF:mode>_2_i387): Ditto.
14679 (*fop_<MODEF:mode>_3_i387): Ditto.
14681 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
14683 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
14685 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14687 PR middle-end/34906
14688 * gimplify.c (gimplify_asm_expr): Check the return code of
14689 parse_output_constraint call, set function return and is_inout
14690 value if it failed.
14692 2008-06-22 Ian Lance Taylor <iant@google.com>
14694 * c-lex.c (narrowest_unsigned_type): Change itk to int.
14695 (narrowest_signed_type): Likewise.
14696 * c-typeck.c (c_common_type): Change local variable mclass to enum
14698 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
14699 tcc_comparison, not the tree code itself.
14700 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
14701 (c_expand_expr): Cast modifier to enum expand_modifier.
14702 * c-common.h (C_RID_CODE): Add casts.
14703 (C_SET_RID_CODE): Define.
14704 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
14705 (c_lex_one_token): Add cast to avoid warning.
14706 (c_parser_objc_type_name): Rename local typename to type_name.
14707 (check_no_duplicate_clause): Change code parameter to enum
14709 (c_parser_omp_var_list_parens): Change kind parameter to enum
14711 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
14712 c_parser_omp_list_var_parens.
14713 (c_parser_omp_threadprivate): Likewise.
14714 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
14715 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
14716 * c-format.c (NO_FMT): Define.
14717 (printf_length_specs): Use NO_FMT.
14718 (asm_fprintf_length_specs): Likewise.
14719 (gcc_diag_length_specs): Likewise.
14720 (scanf_length_specs): Likewise.
14721 (strfmon_length_specs): Likewise.
14722 (gcc_gfc_length_specs): Likewise.
14723 (printf_flag_specs): Change 0 to STD_C89.
14724 (asm_fprintf_flag_specs): Likewise.
14725 (gcc_diag_flag_specs): Likewise.
14726 (gcc_cxxdiag_flag_specs): Likewise.
14727 (scanf_flag_specs): Likewise.
14728 (strftime_flag_specs): Likewise.
14729 (strfmon_flag_specs): Likewise.
14730 (print_char_table): Likewise.
14731 (asm_fprintf_char_table): Likewise.
14732 (gcc_diag_char_table): Likewise.
14733 (gcc_tdiag_char_table): Likewise.
14734 (gcc_cdiag_char_table): Likewise.
14735 (gcc_cxxdiag_char_table): Likewise.
14736 (gcc_gfc_char_table): Likewise.
14737 (scan_char_table): Likewise.
14738 (time_char_table): Likewis.
14739 (monetary_char_table): Likewise.
14740 * c-format.h (BADLEN): Likewise.
14742 2008-06-21 Ian Lance Taylor <iant@google.com>
14744 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
14745 Define END_OF_BASE_TREE_CODES around inclusion.
14746 * tree.c (tree_code_type): New global array.
14747 (tree_code_length, tree_code_name): Likewise.
14748 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
14749 $(lang_tree_files).
14750 (all-tree.def, s-alltree): New targets.
14751 (gencheck.h, s-gencheck): Remove.
14752 (tree.o): Depend upon all-tree.def.
14753 (build/gencheck.o): Remove gencheck.h dependency.
14754 (mostlyclean): Don't remove gencheck.h.
14755 * c-common.h (enum c_tree_code): Remove.
14756 * c-lang.c (tree_code_type): Remove.
14757 (tree_code_length, tree_code_name): Remove.
14758 * gencheck.c (tree_codes): Include all-tree.def, rather than
14759 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
14761 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
14763 * cp/cp-tree.h (enum cplus_tree_code): Remove.
14764 (operator_name_info): Size to MAX_TREE_CODES.
14765 (assignment_operator_name_info): Likewise.
14766 * cp/cp-lang.c (tree_code_type): Remove.
14767 (tree_code_length, tree_code_name): Remove.
14768 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
14769 (assignment_operator_name_info): Likewise.
14770 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
14772 * cp/mangle.c (write_expression): Likewise.
14773 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
14774 * fortran/f95-lang.c (tree_code_type): Remove.
14775 (tree_code_length, tree_code_name): Remove.
14776 * java/java-tree.h (enum java_tree_code): Remove.
14777 * java/lang.c (tree_code_type): Remove.
14778 (tree_code_length, tree_code_name): Remove.
14779 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
14780 * objc/objc-act.h (enum objc_tree_code): Remove.
14781 * objc/objc-lang.c (tree_code_type): Remove.
14782 (tree_code_length, tree_code_name): Remove.
14783 * objcp/objcp-lang.c (tree_code_type): Remove.
14784 (tree_code_length, tree_code_name): Remove.
14785 * ada/ada-tree.h (enum gnat_tree_code): Remove.
14786 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
14787 * ada/misc.c (tree_code_type): Remove.
14788 (tree_code_length, tree_code_name): Remove.
14790 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
14792 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
14793 the grand_bitmap_obstack.
14795 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14797 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
14798 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
14799 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
14800 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
14801 move_stmt_r, new_label_mapper): Likewise.
14802 * tree-complex.c (cvc_lookup): Likewise.
14803 * tree-dfa.c (create_function_ann): Likewise.
14804 * tree-dump.c (dump_register): Likewise.
14805 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
14806 find_phi_replacement_condition): Likewise.
14807 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
14808 tree_function_versioning): Likewise.
14809 * tree-into-ssa.c (cmp_dfsnum): Likewise.
14810 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
14811 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
14812 get_nonlocal_debug_decl, convert_nonlocal_reference,
14813 convert_nonlocal_omp_clauses, get_local_debug_decl,
14814 convert_local_reference, convert_local_omp_clauses,
14815 convert_nl_goto_reference, convert_nl_goto_receiver,
14816 convert_tramp_reference, convert_call_expr): Likewise.
14817 * tree-outof-ssa.c (contains_tree_r): Likewise.
14818 * tree-parloops.c (reduction_phi, initialize_reductions,
14819 eliminate_local_variables_1, add_field_for_reduction,
14820 add_field_for_name, create_phi_for_local_result,
14821 create_call_for_reduction_1, create_loads_for_reductions,
14822 create_stores_for_reduction, create_loads_and_stores_for_name):
14824 * tree-phinodes.c (allocate_phi_node): Likewise.
14825 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
14826 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
14827 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
14828 * tree-ssa-coalesce.c (compare_pairs): Likewise.
14829 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
14830 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
14831 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
14832 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
14833 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
14834 vn_nary_op_insert): Likewise.
14835 * tree-ssa.c (redirect_edge_var_map_add,
14836 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
14837 * tree-vectorizer.c (vectorize_loops): Likewise.
14838 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
14839 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
14840 tree_cons_stat, build1_stat, build_variant_type_copy,
14841 decl_init_priority_lookup, decl_fini_priority_lookup,
14842 decl_priority_info, decl_restrict_base_lookup,
14843 decl_restrict_base_insert, decl_debug_expr_lookup,
14844 decl_debug_expr_insert, decl_value_expr_lookup,
14845 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
14846 type_hash_add, get_file_function_name, tree_check_failed,
14847 tree_not_check_failed, tree_range_check_failed,
14848 omp_clause_range_check_failed, build_omp_clause,
14849 build_vl_exp_stat): Likewise.
14850 * value-prof.c (gimple_histogram_value,
14851 gimple_duplicate_stmt_histograms): Likewise.
14852 * var-tracking.c (attrs_list_insert, attrs_list_copy,
14853 unshare_variable, variable_union_info_cmp_pos, variable_union,
14854 dataflow_set_different_1, dataflow_set_different_2,
14855 vt_find_locations, variable_was_changed, set_variable_part,
14856 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
14857 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
14858 section_entry_hash, object_block_entry_eq,
14859 object_block_entry_hash, create_block_symbol,
14860 initialize_cold_section_name, default_function_rodata_section,
14861 strip_reg_name, set_user_assembler_name, const_desc_eq,
14862 build_constant_desc, output_constant_def, lookup_constant_def,
14863 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
14864 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
14865 default_internal_label): Likewise.
14866 * varray.c (varray_init, varray_grow): Likewise.
14867 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
14869 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
14871 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
14872 operators for "test" insn. Macroize insn using SWI mode macro.
14873 (*jcc_fused_2): Ditto.
14874 (*jcc_fused_3): Macroize insn using SWI mode macro.
14875 (*jcc_fused_4): Ditto.
14877 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
14879 * tree-ssa-pre.c: Fix typo in comment.
14880 (init_antic, fini_antic): Add explicit funtions for
14881 initializing and deinitializing ANTIC and AVAIL sets.
14882 (create_expression_by_pieces): Fix typo in comment.
14883 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
14884 (execute_pre): Eventually dump details about ANTIC_IN.
14886 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14888 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
14889 * gcc.c (translate_options, init_spec, store_arg, read_specs,
14890 add_to_obstack, file_at_path, find_a_file, execute,
14891 add_preprocessor_option, add_assembler_option, add_linker_option,
14892 process_command, insert_wrapper, do_option_spec, do_self_spec,
14893 spec_path, do_spec_1, is_directory, main, used_arg,
14894 getenv_spec_function): Likewise.
14895 * tlink.c (symbol_hash_lookup, file_hash_lookup,
14896 demangled_hash_lookup, symbol_push, file_push, frob_extension):
14899 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
14901 * doc/rtl.texi: Updated subreg section.
14903 2008-06-19 Jakub Jelinek <jakub@redhat.com>
14906 * cgraphunit.c (cgraph_process_new_functions): Don't clear
14907 node->needed and node->reachable.
14908 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
14909 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
14910 (expand_task_call): Don't call expand_task_copyfn.
14911 (expand_task_copyfn): Renamed to...
14912 (finalize_task_copyfn): ... this.
14914 2008-06-19 Jan Hubicka <jh@suse.cz>
14916 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
14917 clobbering framepointer.
14919 2008-06-19 Jan Hubicka <jh@suse.cz>
14921 * tree-optimize.c (execute_early_local_optimizations): Set
14922 cgraph_state only at first invocation.
14924 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14926 * system.h (-Wc++-compat): Activate as a warning, no an error.
14928 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
14930 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
14931 instead of "#" in insn asm template.
14932 (*jcc_fused_2): Ditto.
14934 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
14936 * config/i386/i386.h (ix86_tune_indices)
14937 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
14938 (TARGET_FUSE_CMP_AND_BRANCH): New define.
14939 * config/i386/i386.md (*jcc_fused_1): New insn pattern
14940 (*jcc_fused_2): Ditto.
14941 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
14942 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
14943 (print operand): Handle 'E' and 'e' code.
14945 2008-06-19 Anatoly Sokolov <aesok@post.ru>
14947 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
14948 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
14949 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
14951 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
14953 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
14955 (cgraph_expand_function): Use local copy of decl.
14956 (cgraph_expand_all_functions): Remove redundant initialization of
14958 (cgraph_optimize): Reword internal_error message.
14960 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
14962 * arm-protos.h (arm_return_in_memory): Remove public
14963 arm_return_in_memory() prototype.
14964 * arm.c (arm_return_in_memory): Add static prototype, add target
14965 hook macro, change definition and comments.
14966 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
14968 2008-06-19 Ben Elliston <bje@au.ibm.com>
14970 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
14971 real.c: Remove references to IEEE 754R.
14972 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
14973 * doc/libgcc.texi (Decimal float library routines): Likewise.
14975 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14977 * targhooks.h (struct gcc_target): New member unwind_word_mode.
14978 (default_unwind_word_mode): Add prototype.
14979 * targhooks.c (default_unwind_word_mode): New function.
14980 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
14981 instead of word_mode.
14982 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
14983 (TARGET_INITIALIZER): Use it.
14985 * c-common.c (handle_mode_attribute): Support "unwind_word"
14987 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
14989 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
14990 word_mode to access SjLj_Function_Context member "data".
14991 (sjlj_emit_dispatch_table): Likewise. Also, perform type
14992 conversion from targetm.eh_return_filter_mode () to
14993 targetm.unwind_word_mode () if they differ.
14995 * builtin-types.def (BT_UNWINDWORD): New primitive type.
14996 (BT_FN_UNWINDWORD_PTR): New function type.
14997 (BT_FN_WORD_PTR): Remove.
14998 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
14999 * except.c (expand_builtin_extend_pointer): Convert pointer to
15000 targetm.unwind_word_mode () instead of word_mode.
15002 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
15003 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
15004 (spu_unwind_word_mode): New function.
15005 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
15006 (TARGET_UNWIND_WORD_MODE): Define.
15007 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
15009 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15011 * config/spu/spu.c (reg_align): Remove.
15012 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
15013 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
15014 (spu_split_store): Likewise.
15016 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
15018 * gcc/tree-vn.c: Fix typo in comment.
15020 2008-06-18 Jan Hubicka <jh@suse.cz>
15022 * cgraphunit.c (cgraph_optimize): Output debug info when doing
15023 toplevel reorder too.
15025 2008-06-18 Jan Hubicka <jh@suse.cz>
15027 * c-opts.c (c_common_post_options): PCH is not compatible with
15029 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
15030 -fno-toplevel-reorder by default now.
15032 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15034 PR documentation/30739
15035 * doc/install.texi (Prerequisites): Document dependency on awk.
15037 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
15038 Ian Lance Taylor <iant@google.com>
15040 PR rtl-optimization/35604
15041 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
15042 only want to change jump destinations, not eventual label comparisons.
15044 2008-06-16 Jan Hubicka <jh@suse.cz>
15046 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
15048 (cgraph_analyze_function): Likewise.
15050 2008-06-16 Jan Hubicka <jh@suse.cz>
15052 * cgraph.h (cgraph_mark_if_needed): New function.
15053 * cgraphunit.c (cgraph_mark_if_needed): New function.
15054 * c-decl.c (duplicate_decl): Use it.
15056 2008-06-16 Jan Hubicka <jh@suse.cz>
15058 * cgraph.c (cgraph_add_new_function): When in expansion state, do
15061 2008-06-16 Jan Hubicka <jh@suse.cz>
15063 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
15065 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
15066 Kazu Hirata <kazu@codesourcery.com>
15067 Maxim Kuvyrkov <maxim@codesourcery.com
15069 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
15070 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
15071 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
15072 EXTRA_SPEC_FUNCTIONS.
15073 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
15074 (DRIVER_SELF_SPECS): Adjust.
15075 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
15076 * config/mips/st.h, config/mips/t-st: New.
15077 * config/mips/driver-native.c, config/mips/x-native: New.
15078 * doc/invoke.texi (MIPS): Document 'native' value for -march and
15081 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
15083 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
15085 (ISA_HAS_FP_CONDMOVE): New macro.
15086 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
15087 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
15088 (ISA_HAS_NMADD3_NMSUB3): New macro.
15089 * config/mips/mips.c (mips_rtx_costs): Update.
15090 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
15091 compiling for ST Loongson 2E/2F.
15092 (madd<mode>): Rename to madd4<mode>. Update.
15093 (madd3<mode>): New pattern.
15094 (msub<mode>): Rename to msub4<mode>. Update.
15095 (msub3<mode>): New pattern.
15096 (nmadd<mode>): Rename to nmadd4<mode>. Update.
15097 (nmadd3<mode>): New pattern.
15098 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
15099 (nmadd3<mode>_fastmath): New pattern.
15100 (nmsub<mode>): Rename to nmsub4<mode>. Update.
15101 (nmsub3<mode>): New pattern.
15102 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
15103 (nmsub3<mode>_fastmath): New pattern.
15104 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
15106 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
15108 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
15109 (DF_REF_INSN_INFO): New.
15110 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
15111 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
15112 with a NULL DF_REF_INSN_INFO.
15113 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
15115 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
15116 DF_INSN_INFO_EQ_USES): New.
15117 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
15118 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
15119 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
15120 * df-core.c: Update comment for above changes.
15121 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
15122 DF_INSN_UID_* macros.
15123 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
15124 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
15125 insn rtx. Update all callers.
15126 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
15127 df_ref_create_structure, df_insn_refs_collect): Likewise.
15128 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
15129 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
15130 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
15131 macros to access the insn refs.
15132 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
15133 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
15134 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
15135 for accessing the refs.
15136 (try_fwprop_subst): Likewise.
15137 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
15138 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
15139 for accessing the refs.
15140 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
15141 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
15142 to look at the insn refs.
15143 (record_uses): Likewise.
15144 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
15146 (mark_artificial_uses): Don't mark_insn for artificial refs.
15147 (mark_reg_rependencies): Likewise.
15149 * doc/rtl.texi: Remove documentation of ADDRESSOF.
15151 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15153 * configure: Regenerate.
15155 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
15157 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
15158 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15159 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15161 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
15163 * config/avr/avr.c (avr_mcu_t): Add attiny167.
15164 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15165 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15167 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
15169 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
15170 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15171 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15173 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
15175 * tree-ssa-sccvn.c: Fix format of comments.
15177 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
15179 * cgraph.c: Remove unneeded forward declarations of eq_node()
15182 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
15184 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
15186 (see_update_relevancy): Likewise.
15187 * fwprop.c (try_fwprop_subst): Likewise.
15188 * rtlanal.c (noop_move_p): Likewise.
15189 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
15190 notes to non-existing libcall blocks.
15191 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
15193 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
15194 (dead_libcall_p): Remove.
15195 (delete_trivially_dead_insns): Don't use it.
15196 * web.c (union_defs): Remove comment about keeping nops.
15197 * gcse.c (hash_scan_insn): Don't take libcall pointers.
15198 (compute_hash_table_work): Don't track libcall notes.
15199 (do_local_cprop): Don't take libcall pointers. Don't update
15201 (adjust_libcall_notes): Deleted.
15202 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
15203 ever have existed in the first place).
15204 (replace_store_insn): Don't try to remove libcall notes.
15205 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
15206 (resolve_reg_notes): Don't call them.
15207 (resolve_simple_move): Likewise.
15208 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
15209 Don't remove REG_RETVAL notes.
15210 * emit-rtl.c (try_split): Don't update libcall notes.
15211 (emit_copy_of_insn_after): Dito.
15212 * cselib.c (cselib_current_insn_in_libcall): Remove.
15213 (cselib_process_insn): Don't set/clear it.
15214 (new_elt_loc_list): Don't record it.
15215 (cselib_init): Don't initialize it.
15216 * cselib.c (struct elt_loc_list): Remove in_libcall field.
15217 * loop-invariant.c (find_invariant_insn): Don't look for libcall
15219 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
15220 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
15221 (init_deps): Don't initialize it.
15222 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
15223 * combine.c (delete_noop_moves): Don't update libcall notes.
15224 (can_combine_p): Remove now pointless #if 0 block.
15225 (try_combine): Remove another obsolete #if 0 block.
15226 (distribute_notes): Don't distribute libcall notes.
15227 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
15228 * dce.c (libcall_dead_p): Remove.
15229 (delete_unmarked_insns): Don't handle libcall blocks.
15230 (preserve_libcall_for_dce): Remove.
15231 (prescan_insns_for_dce): Don't special-case libcall block insns.
15232 * reload1 (reload): Don't handle libcall notes.
15233 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
15236 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
15238 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
15239 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15240 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15242 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
15244 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
15245 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15246 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15248 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15250 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
15252 2008-06-16 Ira Rosen <irar@il.ibm.com>
15254 PR tree-optimization/36493
15255 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
15256 the arguments list. Use VECTYPE to create vector pointer.
15257 (vectorizable_store): Fail if accesses through a pointer to vectype
15258 do not alias the original memory reference operands.
15259 Call vect_create_data_ref_ptr without the removed argument.
15260 (vectorizable_load): Likewise.
15261 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
15264 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
15267 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
15268 reg_equiv_constant.
15270 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
15272 * config/mips/loongson2ef.md: New file.
15273 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
15274 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
15275 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
15276 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
15277 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
15279 (loongson2ef.md): New include.
15280 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
15281 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
15282 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
15283 (loongson_gt_<mode>, loongson_extract_halfword)
15284 (loongson_insert_halfword_0, loongson_insert_halfword_2)
15285 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
15286 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
15287 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
15288 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
15289 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
15290 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
15291 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
15292 (vec_interleave_low<mode>): Define type attribute.
15293 * config/mips/mips.c (mips_ls2): New static variable.
15294 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
15295 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
15296 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
15297 Implement target scheduling hooks.
15298 (mips_multipass_dfa_lookahead): Update to handle tuning for
15300 (mips_sched_init): Initialize data for Loongson scheduling.
15301 (mips_ls2_variable_issue): New static function.
15302 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
15304 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
15305 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
15306 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
15307 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
15308 Handle ST Loongson 2E/2F cores.
15309 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
15311 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15313 * omp-low.c (extract_omp_for_data): Fix comment typo.
15316 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15318 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
15319 FIXME note about gcc/config.guess.
15320 * doc/options.texi (Option file format): Remove non-ASCII bytes.
15321 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
15322 * doc/cppopts.texi: Likewise.
15323 * doc/extend.texi: Likewise.
15324 * doc/gcc.texi: Likewise.
15325 * doc/gccint.texi: Likewise.
15326 * doc/gcov.texi: Likewise.
15327 * doc/gty.texi: Likewise.
15328 * doc/hostconfig.texi: Likewise.
15329 * doc/install.texi: Likewise.
15330 * doc/invoke.texi: Likewise.
15331 * doc/loop.texi: Likewise.
15332 * doc/makefile.texi: Likewise.
15333 * doc/md.texi: Likewise.
15334 * doc/passes.texi: Likewise.
15335 * doc/tm.texi: Likewise.
15336 * doc/tree-ssa.texi: Likewise.
15337 * doc/trouble.texi: Likewise.
15339 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
15340 Nathan Sidwell <nathan@codesourcery.com>
15341 Maxim Kuvyrkov <maxim@codesourcery.com>
15342 Richard Sandiford <rdsandiford@googlemail.com>
15344 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
15345 * config/mips/mips-protos.h (mips_expand_vector_init): New.
15346 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
15348 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
15349 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
15350 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
15352 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
15353 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
15354 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
15355 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
15356 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
15357 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
15358 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
15359 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
15360 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
15361 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
15362 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
15363 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
15364 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
15365 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
15366 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
15367 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
15368 (mips_builtins): Add Loongson builtins.
15369 (mips_loongson_2ef_bdesc): New.
15370 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
15371 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
15372 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
15373 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
15375 (mips_expand_vector_init): New.
15376 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
15377 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
15379 * config/mips/mips.md: Add unspec numbers for Loongson
15380 builtins. Include loongson.md.
15381 (MOVE64): Include Loongson vector modes.
15382 (SPLITF): Include Loongson vector modes.
15383 (HALFMODE): Handle Loongson vector modes.
15384 * config/mips/loongson.md: New.
15385 * config/mips/loongson.h: New.
15386 * config.gcc: Add loongson.h header for mips*-*-* targets.
15387 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
15389 2008-06-14 Joseph Myers <joseph@codesourcery.com>
15391 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
15392 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
15393 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
15394 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
15395 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
15396 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
15397 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
15398 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
15399 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
15400 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
15401 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
15402 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
15403 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
15404 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
15405 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
15406 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
15407 Remove use_fixproto=yes.
15408 (ia64*-*-hpux*): Remove comment about using fixproto.
15409 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
15411 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15413 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
15415 * configure: Regenerate.
15417 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
15419 PR middle-end/36520
15420 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
15421 before evaluating it.
15423 2008-06-13 Jakub Jelinek <jakub@redhat.com>
15426 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
15427 nested inline functions.
15428 (start_decl, start_function): Don't invert DECL_EXTERNAL
15429 for nested inline functions.
15431 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
15433 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
15434 splits that must be made for correctness.
15436 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
15438 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
15439 (AVAIL_NON_MIPS16): Likewise.
15440 (mips_builtin_description): Replace target_flags with a predicate.
15441 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
15442 (dspr2_32): New availability predicates.
15443 (MIPS_BUILTIN): New macro.
15444 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
15445 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
15446 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
15447 Replace the TARGET_FLAGS parameters with AVAIL parameters.
15448 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
15449 (mips_dsp_32only_bdesc): Merge into...
15450 (mips_builtins): ...this new array.
15451 (mips_bdesc_map, mips_bdesc_arrays): Delete.
15452 (mips_init_builtins): Update after above changes.
15453 (mips_expand_builtin_1): Merge into...
15454 (mips_expand_builtin): ...here and update after above changes.
15456 2008-06-12 Paul Brook <paul@codesourcery.com>
15458 * longlong.h (__arm__): Define count_leading_zeros.
15459 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
15460 (clzsi2, clzdi2): New functions.
15461 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
15462 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
15463 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
15464 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
15465 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
15466 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
15467 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
15468 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
15469 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
15470 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
15472 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
15474 * config/m68k/m68k.c (m68k_tune_flags): New.
15475 (override_options): Compute m68k_tune_flags.
15476 (MULL_COST, MULW_COST): Update for various variants of CFV2.
15477 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
15479 2008-06-12 Jakub Jelinek <jakub@redhat.com>
15481 PR middle-end/36506
15482 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
15484 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
15486 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
15487 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
15489 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
15491 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
15492 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
15494 2008-06-12 Jakub Jelinek <jakub@redhat.com>
15496 PR middle-end/36506
15497 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
15500 2008-06-12 Richard Guenther <rguenther@suse.de>
15502 PR tree-optimization/36345
15503 * tree-flow.h (struct ptr_info_def): Align escape_mask,
15504 add memory_tag_needed flag.
15505 (may_alias_p): Declare.
15506 * tree-ssa-alias.c (may_alias_p): Export.
15507 (set_initial_properties): Use memory_tag_needed flag.
15508 (update_reference_counts): Likewise.
15509 (reset_alias_info): Reset memory_tag_needed flag.
15510 (create_name_tags): Check memory_tag_needed flag.
15511 (dump_points_to_info_for): Dump it.
15512 * tree-ssa-structalias.c (struct variable_info): Remove
15513 directly_dereferenced flag.
15514 (new_var_info): Do not initialize it.
15515 (process_constraint_1): Do not set it.
15516 (update_alias_info): Set is_dereferenced flag.
15517 (set_uids_in_ptset): Use may_alias_p.
15518 (set_used_smts): Check memory_tag_needed flag.
15519 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
15520 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
15521 memory_tag_needed flag.
15522 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
15523 from broken design.
15525 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
15527 * config/i386/i386.c (ix86_compute_frame_layout): Disable
15528 red zone for w64 abi.
15529 (ix86_expand_prologue): Likewise.
15530 (ix86_force_to_memory): Likewise.
15531 (ix86_free_from_memory): Likewise.
15533 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
15536 * config/rs6000/rs6000.c (rs6000_override_options): Set
15537 rs6000_isel conditionally to the absence of comand line override.
15538 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
15539 Remove duplicate rs6000_isel setting.
15540 * config/rs6000/eabispe.h: Ditto.
15542 2008-06-11 Richard Guenther <rguenther@suse.de>
15544 * alias.c (get_alias_set): Use the element alias-set for arrays.
15545 (record_component_aliases): For arrays and vectors do nothing.
15546 * c-common.c (strict_aliasing_warning): Handle the cases
15547 of alias set zero explicitly.
15548 * Makefile.in (dfp.o-warn): Add -Wno-error.
15550 2008-06-11 Joseph Myers <joseph@codesourcery.com>
15552 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
15554 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
15555 tune_32 tune_64 to supported_defaults. Allow values not
15556 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
15557 x86_64. Do not override cpu_32 or cpu_64 values from target name.
15558 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
15559 with_cpu_64 to generic for 64-bit-supporting configurations, not
15560 with_cpu. Remove FIXMEs.
15561 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
15562 --with-arch-64, --with-tune-32, --with-tune-64): Document.
15563 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
15564 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
15565 arch_32 and arch_64.
15567 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
15568 Olivier Hainque <hainque@adacore.com>
15570 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
15571 Use DECL_SIZE_UNIT to retrieve the size of the field.
15573 2008-06-11 Joseph Myers <joseph@codesourcery.com>
15575 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
15576 with function calls after declarations. Lay out
15577 neon_float_type_node before further use.
15579 2008-06-11 Richard Guenther <rguenther@suse.de>
15581 * tree-flow.h (may_point_to_global_var): Declare.
15582 * tree-ssa-alias.c (may_point_to_global_var): New function.
15583 * tree-ssa-sink.c (is_hidden_global_store): Use it.
15585 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
15587 * configure.ac: Teach that fido supports .debug_line.
15588 * configure: Regenerate.
15590 2008-06-10 Tom Tromey <tromey@redhat.com>
15592 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
15595 2008-06-10 Joseph Myers <joseph@codesourcery.com>
15597 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
15598 (encode_decimal64, decode_decimal64, encode_decimal128,
15599 decode_decimal128): Reverse order of 32-bit parts of value if host
15600 and target endianness differ.
15602 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
15604 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
15605 Avoid division by 0.
15606 (tree_mod_pow2_value_transform): Likewise.
15607 (tree_ic_transform): Likewise.
15608 (tree_stringops_transform): Likewise.
15609 (tree_mod_subtract_transform): Likewise.
15610 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
15611 (copy_edges_for_bb): Likewise.
15612 (initialize_cfun): Likewise.
15614 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
15616 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
15617 nonmemory_operand. Add "N" operand constraint.
15619 (*jcc_btdi_mask_rex64): New instruction and split pattern.
15620 (*jcc_btsi_mask): Ditto.
15621 (*jcc_btsi_mask_1): Ditto.
15623 2008-06-10 Joseph Myers <joseph@codesourcery.com>
15625 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
15626 TYPE_CANONICAL for copied element type.
15628 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
15631 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
15632 Add m_CORE2 and m_GENERIC.
15633 * config/i386/predicates.md (bt_comparison_operator): New predicate.
15634 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
15636 (*jcc_btdi_rex64): New instruction and split pattern.
15637 (*jcc_btsi): Ditto.
15638 (*jcc_btsi_1): Ditto.
15639 (*btsq): Fix Intel asm dialect operand order.
15643 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
15645 PR middle-end/36447
15646 * simplify-rtx.c (simplify_subreg): Add check for shift count
15649 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
15651 * doc/md.texi: Synchronize with later constraints.md change.
15652 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
15653 with a C implementation.
15654 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
15656 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
15657 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
15658 when moving to and from MD_REGNUM.
15659 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
15660 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
15661 Handle byte and halfword moves.
15662 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
15664 * config/mips/constraints.md (h): Turn into NO_REGS.
15665 (l, x): Update documentation.
15666 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
15667 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
15668 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
15669 (HILO): New mode iterator.
15671 (any_div): New code iterator.
15672 (u): Extend code attribute to div and udiv.
15673 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
15674 d_operand in the splitters. Remove redundant CONST_INT checks.
15675 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
15676 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
15677 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
15678 accordingly, using normal moves instead of unspecs to move LO into
15679 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
15680 (<u>mulsidi3): Handle expansion in C code.
15681 (<u>mulsidi3_32bit_internal): Rename to...
15682 (<u>mulsidi3_32bit): ...this.
15683 (<u>mulsidi3_32bit_r4000): Fix insn separator.
15684 (*<u>mulsidi3_64bit): Rename to...
15685 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
15686 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
15687 to set LO and HI to the multiplication result. Use a normal move
15688 for MFLO and an unspec for MFHI.
15689 (*<u>mulsidi3_64bit_parts): Replace with...
15690 (<u>mulsidi3_64bit_hilo): ...this new instruction.
15691 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
15692 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
15693 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
15694 instead of HI. Split the instruction into a separate multiplication
15695 and MFHI if !TARGET_FIX_R4000.
15696 (<su>muldi3_highpart): Likewise.
15697 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
15698 and the "=h" clobber.
15699 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
15700 (<u>mulditi3): New expander.
15701 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
15702 (madsi): Remove "=h" clobber.
15703 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
15704 Force the modulus result to be a GPR and split the instruction into
15705 a division followed by an MFHI after reload.
15706 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
15707 (*lea_high64): Use d_operand in the define_peephole2. Likewise
15708 the MIPS16 HIGH define_split.
15709 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
15710 of acc<->gpr moves to "multi".
15711 (*movdi_64bit): Replace the single "x" alternative with
15712 alternatives for moving into and out of "a".
15713 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
15714 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
15715 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
15716 Use d_operand in the splitters. Remove redundant CONST_INT checks.
15717 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
15718 (movti): New expander.
15719 (*movti, *movti_mips16): New insns.
15720 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
15721 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
15722 (mthi<GPR:mode>_<HILO:mode>): Likewise.
15723 * config/mips/predicates.md (fpr_operand): Delete.
15724 (d_operand): New predicate.
15726 2008-06-09 Michael Meissner <michael.meissner@amd.com>
15728 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
15729 failure on some Bourne shells.
15730 (x86_64-*-*): Ditto.
15732 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
15734 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
15736 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
15738 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
15739 (sparc-sun-solaris2*): Likewise.
15741 2008-06-09 Arnaud Charlet <charlet@adacore.com
15743 * doc/install.texi: Update requirements to build the Ada compiler.
15745 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
15747 * df-scan.c (struct df_scan_problem_data): Remove the
15748 mw_link_pool alloc pool.
15749 (df_scan_free_internal): Don't free it.
15750 (df_scan_alloc): Don't allocate it.
15751 * df.h (struct df_link): Update comment.
15753 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
15755 * except.h: Correct checks for when SJLJ exceptions must be used.
15757 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15759 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
15762 2008-06-08 Joseph Myers <joseph@codesourcery.com>
15764 PR tree-optimization/36218
15765 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
15766 configure for the build system.
15767 (BUILD_LDFLAGS): Define.
15768 * configure: Regenerate.
15769 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
15771 2008-07-08 Anatoly Sokolov <aesok@post.ru>
15774 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
15775 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
15776 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
15778 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
15780 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
15782 2008-06-07 Joseph Myers <joseph@codesourcery.com>
15784 * config.gcc (Obsolete configurations): Remove list of
15786 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
15787 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
15788 targets matched by those patterns.
15789 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
15790 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
15791 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
15792 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
15793 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15794 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
15795 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
15796 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
15797 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
15798 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
15799 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
15800 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
15801 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
15802 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
15803 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
15804 Make code for Solaris 7 and greater unconditional for Solaris.
15805 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
15806 Remove --with-* handling.
15807 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
15808 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
15809 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
15810 LINK_OS_WINDISS_SPEC): Remove.
15811 * config/rs6000/sysv4.opt (mwindiss): Remove.
15812 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
15813 * configure: Regenerate.
15814 * doc/cpp.texi: Don't mention BeOS.
15815 * doc/extend.texi (interrupt): Don't mention MS1.
15816 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
15817 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
15818 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
15819 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
15820 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
15822 * doc/invoke.texi (MT Options): Remove.
15823 (-mwindiss): Remove.
15824 (CRIS Options): Remove cris-axis-aout references.
15825 (HPPA Options): Don't mention hppa1.1-*-pro.
15826 * doc/md.texi: (MorphoTech family): Remove.
15827 * libgcc2.c: Don't handle UWIN.
15828 * config/alpha/t-unicosmk: Remove.
15829 * config/alpha/unicosmk.h: Remove.
15830 * config/arm/kaos-arm.h: Remove.
15831 * config/arm/kaos-strongarm.h: Remove.
15832 * config/arm/strongarm-coff.h: Remove.
15833 * config/arm/strongarm-elf.h: Remove.
15834 * config/arm/strongarm-pe.h: Remove.
15835 * config/arm/t-strongarm-pe: Remove.
15836 * config/arm/t-xscale-coff: Remove.
15837 * config/arm/t-xscale-elf: Remove.
15838 * config/arm/xscale-coff.h: Remove.
15839 * config/arm/xscale-elf.h: Remove.
15840 * config/chorus.h: Remove.
15841 * config/cris/aout.h: Remove.
15842 * config/cris/aout.opt: Remove.
15843 * config/cris/t-aout: Remove.
15844 * config/i386/beos-elf.h: Remove.
15845 * config/i386/kaos-i386.h: Remove.
15846 * config/i386/ptx4-i.h: Remove.
15847 * config/i386/sco5.h: Remove.
15848 * config/i386/sco5.opt: Remove.
15849 * config/i386/sysv4-cpp.h: Remove.
15850 * config/i386/sysv5.h: Remove.
15851 * config/i386/t-beos: Remove.
15852 * config/i386/t-sco5: Remove.
15853 * config/i386/t-uwin: Remove.
15854 * config/i386/uwin.asm: Remove.
15855 * config/i386/uwin.h: Remove.
15856 * config/kaos.h: Remove.
15857 * config/mips/windiss.h: Remove.
15858 * config/mt: Remove directory.
15859 * config/pa/pa-osf.h: Remove.
15860 * config/pa/pa-pro-end.h: Remove.
15861 * config/pa/t-pro: Remove.
15862 * config/ptx4.h: Remove.
15863 * config/rs6000/beos.h: Remove.
15864 * config/rs6000/kaos-ppc.h: Remove.
15865 * config/rs6000/t-beos: Remove.
15866 * config/rs6000/windiss.h: Remove.
15867 * config/sh/kaos-sh.h: Remove.
15868 * config/sol2-6.h: Remove.
15869 * config/sparc/sol26-sld.h: Remove.
15870 * config/sparc/sysv4-only.h: Remove.
15871 * config/vax/bsd.h: Remove.
15872 * config/vax/t-memfuncs: Remove.
15873 * config/vax/ultrix.h: Remove.
15874 * config/vax/vaxv.h: Remove.
15875 * config/windiss.h: Remove.
15877 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
15879 PR rtl-optimization/36438
15880 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
15881 for vector shifts with constant scalar shift operands.
15883 2008-06-06 Sandip Matte <sandip@rmicorp.com>
15885 * doc/invoke.texi: Document -march=xlr.
15886 * config/mips/xlr.md: New file.
15887 * config/mips/mips.md: Include it.
15889 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
15890 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
15891 (mips_rtx_cost_data): Likewise.
15893 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
15895 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
15896 PRE_INC and PRE_DEC cases.
15898 2008-06-06 Jakub Jelinek <jakub@redhat.com>
15900 PR rtl-optimization/36419
15901 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
15902 the emitting jump insn.
15905 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
15906 is not bool, boolify the whole *expr_p and convert to the desired type.
15908 2008-06-06 Jakub Jelinek <jakub@redhat.com>
15910 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
15911 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
15912 Add omp_private_outer_ref hook, add another argument to
15913 omp_clause_default_ctor hook.
15914 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
15915 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
15916 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
15917 hook_tree_tree_tree_tree_null.
15918 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
15919 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
15920 * hooks.c (hook_tree_tree_tree_tree_null): New function.
15921 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
15922 * tree.def (OMP_TASK): New tree code.
15923 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
15924 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
15925 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
15926 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
15927 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
15928 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
15929 OMP_CLAUSE_COLLAPSE_EXPR): Define.
15930 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
15931 (OMP_DIRECTIVE_P): Add OMP_TASK.
15932 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
15933 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
15934 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
15935 and OMP_CLAUSE_UNTIED entries.
15936 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
15938 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
15939 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
15940 * tree-pretty-print.c (dump_omp_clause): Handle
15941 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
15942 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
15943 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
15944 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
15945 warning about unsigned iterators. Change decl/init/cond/incr
15946 arguments to TREE_VECs, check arguments for all collapsed loops.
15947 (c_finish_omp_taskwait): New function.
15948 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
15950 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
15951 default_function_array_conversion on init. Add par_clauses argument.
15952 If decl is present in parallel's lastprivate clause, change it to
15953 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
15954 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
15955 collapse count in clauses.
15956 (c_parser_omp_for, c_parser_omp_parallel): Adjust
15957 c_parser_omp_for_loop callers.
15958 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
15959 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
15960 (c_parser_omp_clause_name): Handle collapse and untied clauses.
15961 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
15963 (c_parser_omp_clause_schedule): Handle schedule(auto).
15964 Include correct location in the error message.
15965 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
15966 and PRAGMA_OMP_CLAUSE_UNTIED.
15967 (OMP_TASK_CLAUSE_MASK): Define.
15968 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
15969 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
15970 * tree-nested.c (convert_nonlocal_omp_clauses,
15971 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
15972 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
15973 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
15974 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
15976 (conver_nonlocal_reference, convert_local_reference,
15977 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
15978 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
15979 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
15980 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
15981 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
15982 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
15983 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
15984 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
15985 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
15987 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
15988 * c-common.h (c_finish_omp_taskwait): New prototype.
15989 * gimple-low.c (lower_stmt): Handle OMP_TASK.
15990 * tree-parloops.c (create_parallel_loop): Create 1 entry
15991 vectors for OMP_FOR_{INIT,COND,INCR}.
15992 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
15993 (make_edges): Handle OMP_TASK.
15994 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
15995 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
15996 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
15997 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
15998 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
15999 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
16000 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
16001 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
16002 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
16003 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
16004 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
16005 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
16006 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
16007 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
16008 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
16009 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
16010 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
16011 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
16012 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
16013 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
16014 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
16015 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
16016 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
16017 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
16018 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
16019 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
16020 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
16021 original iterator is present in lastprivate clause or if
16022 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
16023 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
16024 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
16025 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
16026 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
16027 if it is set, lookup var in outer contexts too. Handle
16028 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
16029 to be implicitly determined firstprivate for task regions.
16030 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
16031 if it is set, lookup var in outer contexts too. Set
16032 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
16033 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
16034 OMP_CLAUSE_UNTIED. Take region_type as last argument
16035 instead of in_parallel and in_combined_parallel.
16036 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
16038 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
16039 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
16040 (new_omp_context): Set default_kind to
16041 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
16042 (omp_region_type): New enum.
16043 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
16044 fields, add region_type.
16045 (new_omp_context): Take region_type as argument instead of is_parallel
16046 and is_combined_parallel.
16047 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
16048 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
16049 ctx->is_combined_parallel checks.
16050 (gimplify_omp_task): New function.
16051 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
16053 * omp-low.c (extract_omp_for_data): Use schedule(static)
16054 for schedule(auto). Handle pointer and unsigned iterators.
16055 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
16056 Add loops argument. Extract data for collapsed OMP_FOR loops.
16057 (expand_parallel_call): Assert sched_kind isn't auto,
16058 map runtime schedule to index 3.
16059 (struct omp_for_data_loop): New type.
16060 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
16061 Add loop, loops, collapse and iter_type fields.
16062 (workshare_safe_to_combine_p): Disallow combined for if
16063 iter_type is unsigned long long. Don't combine collapse > 1 loops
16064 unless all bounds and steps are constant. Adjust extract_omp_for_data
16066 (expand_omp_for_generic): Handle pointer, unsigned and long long
16067 iterators. Handle collapsed OMP_FOR loops. Adjust
16068 for struct omp_for_data changes. If libgomp function doesn't return
16069 boolean_type_node, add comparison of the return value with 0.
16070 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
16071 pointer, unsigned and long long iterators. Adjust for struct
16072 omp_for_data changes.
16073 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
16074 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
16075 unsigned long long. Allocate loops array, pass it to
16076 extract_omp_for_data. For collapse > 1 loops use always
16077 expand_omp_for_generic.
16078 (omp_context): Add sfield_map and srecord_type fields.
16079 (is_task_ctx, lookup_sfield): New functions.
16080 (use_pointer_for_field): Use is_task_ctx helper. Change first
16081 argument's type from const_tree to tree. Clarify comment.
16082 In OMP_TASK disallow copy-in/out sharing.
16083 (build_sender_ref): Call lookup_sfield instead of lookup_field.
16084 (install_var_field): Add mask argument. Populate both record_type
16085 and srecord_type if needed.
16086 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
16088 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
16089 and DECL_FIELD_OFFSET.
16090 (scan_sharing_clauses): Adjust install_var_field callers. For
16091 firstprivate clauses on explicit tasks allocate the var by value in
16092 record_type unconditionally, rather than by reference.
16093 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
16094 Use is_taskreg_ctx instead of is_parallel_ctx.
16095 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
16096 (create_omp_child_function_name): Add task_copy argument, use
16097 *_omp_cpyfn* names if it is true.
16098 (create_omp_child_function): Add task_copy argument, if true create
16099 *_omp_cpyfn* helper function.
16100 (scan_omp_parallel): Adjust create_omp_child_function callers.
16101 Rename parallel_nesting_level to taskreg_nesting_level.
16102 (scan_omp_task): New function.
16103 (lower_rec_input_clauses): Don't run constructors for firstprivate
16104 explicit task vars which are initialized by *_omp_cpyfn*.
16105 Pass outer var ref to omp_clause_default_ctor hook if
16106 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
16107 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
16108 OMP_CLAUSE_REDUCTION_INIT.
16109 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
16110 avoid duplicate setting of fields. Handle
16111 OMP_CLAUSE_PRIVATE_OUTER_REF.
16112 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
16113 copy-out if TREE_READONLY, only copy-in.
16114 (expand_task_copyfn): New function.
16115 (expand_task_call): New function.
16116 (struct omp_taskcopy_context): New type.
16117 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
16119 (lower_omp_parallel): Rename to...
16120 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
16121 Call create_task_copyfn if srecord_type is needed. Adjust
16123 (task_shared_vars): New variable.
16124 (check_omp_nesting_restrictions): Warn if work-sharing,
16125 barrier, master or ordered region is closely nested inside OMP_TASK.
16126 Add warnings for barrier if closely nested inside of work-sharing,
16127 ordered, or master region.
16128 (scan_omp_1): Call check_omp_nesting_restrictions even for
16129 GOMP_barrier calls. Rename parallel_nesting_level to
16130 taskreg_nesting_level. Handle OMP_TASK.
16131 (lower_lastprivate_clauses): Even if some lastprivate is found on a
16132 work-sharing construct, continue looking for them on parent parallel
16134 (lower_omp_for_lastprivate): Add lastprivate clauses
16135 to the beginning of dlist rather than end. Adjust for struct
16136 omp_for_data changes.
16137 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
16138 not after it. Handle collapsed OMP_FOR loops, adjust for
16139 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
16140 (get_ws_args_for): Adjust extract_omp_for_data caller.
16141 (scan_omp_for): Handle collapsed OMP_FOR
16142 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
16143 (lower_omp_single_simple): If libgomp function doesn't return
16144 boolean_type_node, add comparison of the return value with 0.
16145 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
16146 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
16147 (parallel_nesting_level): Rename to...
16148 (taskreg_nesting_level): ... this.
16149 (is_taskreg_ctx): New function.
16150 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
16151 of is_parallel_ctx.
16152 (execute_lower_omp): Rename parallel_nesting_level to
16153 taskreg_nesting_level.
16154 (expand_omp_parallel): Rename to...
16155 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
16156 Call omp_task_call for OMP_TASK regions.
16157 (expand_omp): Adjust caller, handle OMP_TASK.
16158 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
16160 * bitmap.c (bitmap_default_obstack_depth): New variable.
16161 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
16162 if argument is NULL and bitmap_default_obstack is already initialized.
16163 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
16165 * matrix-reorg.c (matrix_reorg): Likewise.
16167 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
16169 * config/i386/i386.md (*indirect_jump): Macroize using P
16170 mode iterator. Remove !TARGET_64BIT from insn constraints.
16171 (*tablejump_1): Ditto.
16172 (*indirect_jump_rex64): Remove insn pattern.
16173 (*tablejump_1_rex64): Ditto.
16174 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
16175 and eh_return_si insn patterns.
16177 2008-06-06 Richard Guenther <rguenther@suse.de>
16179 * tree-ssa-structalias.c (merge_smts_into): Remove.
16180 (find_what_p_points_to): Do not bother to compute the
16181 points-to set for pt_anything pointers.
16182 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
16183 for pt_anything pointers is ok.
16185 2008-06-06 Jan Hubicka <jh@suse.cz>
16187 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
16189 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16191 * cgraph.c: Fix typos in comments.
16192 (cgraph_availability_names): Fix string typo.
16193 * fold-const.c: Fix typos in comments.
16194 (fold_binary): Fix typo in warning.
16195 * genautomata.c: Fix typos in comments.
16196 (check_presence_pattern_sets): Fix typo in local variable.
16197 (output_description): Fix typo in output.
16198 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
16199 * hwint.h: Likewise.
16200 * matrix-reorg.c (check_allocation_function): Likewise.
16201 * omega.c (smooth_weird_equations): Likewise.
16202 * auto-inc-dec.c: Fix typos in comments.
16203 * bb-reorder.c: Likewise.
16204 * builtins.c: Likewise.
16205 * c-common.c: Likewise.
16206 * c-cppbuiltin.c: Likewise.
16207 * c-parser.c: Likewise.
16208 * c-pretty-print.c: Likewise.
16209 * cfgcleanup.c: Likewise.
16210 * cfgexpand.c: Likewise.
16211 * cfghooks.c: Likewise.
16212 * cfglayout.c: Likewise.
16213 * cfgloopmanip.c: Likewise.
16214 * cgraphunit.c: Likewise.
16215 * coverage.c: Likewise.
16216 * dbxout.c: Likewise.
16217 * df-byte-scan.c: Likewise.
16218 * df-core.c: Likewise.
16219 * df-problems.c: Likewise.
16220 * df-scan.c: Likewise.
16222 * dominance.c: Likewise.
16223 * domwalk.c: Likewise.
16225 * dwarf2out.c: Likewise.
16226 * emit-rtl.c: Likewise.
16227 * et-forest.c: Likewise.
16228 * function.c: Likewise.
16229 * function.h: Likewise.
16231 * gcov-io.c: Likewise.
16232 * gcov.c: Likewise.
16233 * gcse.c: Likewise.
16234 * genattrtab.c: Likewise.
16235 * ggc-page.c: Likewise.
16236 * gimplify.c: Likewise.
16237 * gthr-lynx.h: Likewise.
16238 * haifa-sched.c: Likewise.
16239 * ipa-cp.c: Likewise.
16240 * ipa-inline.c: Likewise.
16241 * ipa-prop.h: Likewise.
16242 * ipa-pure-const.c: Likewise.
16243 * ipa-struct-reorg.c: Likewise.
16244 * ipa-struct-reorg.h: Likewise.
16245 * ipa-type-escape.c: Likewise.
16247 * loop-doloop.c: Likewise.
16248 * mips-tfile.c: Likewise.
16249 * mkmap-flat.awk: Likewise.
16250 * mkmap-symver.awk: Likewise.
16251 * modulo-sched.c: Likewise.
16252 * omp-low.c: Likewise.
16253 * optabs.c: Likewise.
16254 * optabs.h: Likewise.
16255 * opts.c: Likewise.
16256 * passes.c: Likewise.
16257 * postreload-gcse.c: Likewise.
16258 * postreload.c: Likewise.
16259 * predict.c: Likewise.
16260 * pretty-print.h: Likewise.
16261 * profile.c: Likewise.
16262 * protoize.c: Likewise.
16263 * ra-conflict.c: Likewise.
16264 * real.c: Likewise.
16265 * recog.c: Likewise.
16266 * regclass.c: Likewise.
16267 * regs.h: Likewise.
16268 * reload.c: Likewise.
16269 * rtl-error.c: Likewise.
16270 * rtlanal.c: Likewise.
16271 * scan.h: Likewise.
16272 * sched-rgn.c: Likewise.
16274 * stmt.c: Likewise.
16275 * target.h: Likewise.
16276 * tree-dfa.c: Likewise.
16277 * tree-eh.c: Likewise.
16278 * tree-flow-inline.h: Likewise.
16279 * tree-inline.c: Likewise.
16280 * tree-into-ssa.c: Likewise.
16281 * tree-loop-distribution.c: Likewise.
16282 * tree-nested.c: Likewise.
16283 * tree-parloops.c: Likewise.
16284 * tree-pass.h: Likewise.
16285 * tree-pretty-print.c: Likewise.
16286 * tree-profile.c: Likewise.
16287 * tree-scalar-evolution.c: Likewise.
16288 * tree-sra.c: Likewise.
16289 * tree-ssa-alias-warnings.c: Likewise.
16290 * tree-ssa-ccp.c: Likewise.
16291 * tree-ssa-coalesce.c: Likewise.
16292 * tree-ssa-dom.c: Likewise.
16293 * tree-ssa-dse.c: Likewise.
16294 * tree-ssa-forwprop.c: Likewise.
16295 * tree-ssa-live.c: Likewise.
16296 * tree-ssa-live.h: Likewise.
16297 * tree-ssa-loop-im.c: Likewise.
16298 * tree-ssa-loop-ivopts.c: Likewise.
16299 * tree-ssa-loop-niter.c: Likewise.
16300 * tree-ssa-loop-prefetch.c: Likewise.
16301 * tree-ssa-phiopt.c: Likewise.
16302 * tree-ssa-phiprop.c: Likewise.
16303 * tree-ssa-sccvn.c: Likewise.
16304 * tree-ssa-ter.c: Likewise.
16305 * tree-ssa-threadupdate.c: Likewise.
16306 * tree-ssa.c: Likewise.
16307 * tree-vect-analyze.c: Likewise.
16308 * tree-vect-transform.c: Likewise.
16309 * tree-vectorizer.c: Likewise.
16310 * tree-vn.c: Likewise.
16311 * tree-vrp.c: Likewise.
16312 * tree.c: Likewise.
16313 * tree.def: Likewise.
16314 * tree.h: Likewise.
16315 * unwind-dw2-fde.c: Likewise.
16316 * unwind.inc: Likewise.
16317 * value-prof.c: Likewise.
16318 * vmsdbgout.c: Likewise.
16320 2008-06-05 David Edelsohn <edelsohn@gnu.org>
16322 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
16323 always place FP constants in the TOC for TARGET_POWERPC64.
16324 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
16326 2008-06-05 Joseph Myers <joseph@codesourcery.com>
16328 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
16329 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
16330 enable for TARGET_E500_DOUBLE.
16331 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
16332 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
16333 floating-point modes like integer modes for E500 double.
16334 (rs6000_legitimate_offset_address_p): Likewise.
16335 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
16336 addressing for DDmode for E500 double.
16337 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
16338 modes as using 64-bits of registers for E500 double.
16339 (spe_build_register_parallel): Do not handle DDmode or TDmode.
16340 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
16341 specially for E500 double.
16342 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
16343 TDmode for E500 double.
16344 (rs6000_gimplify_va_arg): Only handle SDmode in registers
16345 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
16346 (rs6000_split_multireg_move): Do not handle TDmode specially for
16348 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
16349 using 64-bit registers for E500 double.
16350 (emit_frame_save): Do not handle DDmode specially for E500 double.
16351 (gen_frame_mem_offset): Likewise.
16352 (rs6000_function_value): Do not call spe_build_register_parallel
16353 for DDmode or TDmode.
16354 (rs6000_libcall_value): Likewise.
16355 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
16356 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
16359 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
16361 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
16364 2008-06-04 Junjie Gu <jgu@tensilica.com>
16366 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
16367 comparison for frame pointers.
16369 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
16372 * config/avr/avr.h (PUSH_ROUNDING): Remove.
16374 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
16377 * builtins.c (expand_builtin_signbit): Don't take lowpart when
16378 register is already smaller or equal to required mode.
16380 2008-06-04 Xinliang David Li <davidxl@google.com>
16382 * tree-call-cdce.c: New file.
16383 (cond_dead_built_in_calls): New static variable.
16384 (input_domain): New struct.
16385 (check_pow): New function.
16386 (check_builtin_call): Ditto.
16387 (check_target_format): Ditto.
16388 (is_call_dce_candidate): Ditto.
16389 (gen_one_condition): Ditto.
16390 (gen_conditions_for_domain): Ditto.
16391 (get_domain): Ditto.
16392 (gen_conditions_for_pow_cst_base): Ditto.
16393 (gen_conditions_for_pow_int_base): Ditto.
16394 (gen_conditions_for_pow): Ditto.
16395 (get_no_error_domain): Ditto.
16396 (gen_shrink_wrap_conditions): Ditto.
16397 (shrink_wrap_one_built_in_call): Ditto.
16398 (shink_wrap_conditional_dead_built_in_calls): Ditto.
16399 (tree_call_cdce): Ditto.
16400 (gate_call_cdce): Ditto.
16401 (pass_call_cdce): New gimple pass.
16402 * passes.c: (init_optimization_passes): New pass.
16403 * tree-pass.h: New pass declaration.
16404 * opts.c (decode_options): New flag setting.
16405 * common.opt: Add -ftree-builtin-call-dce flag.
16406 * Makefile.in: Add new source file.
16407 * tempvar.def: New tv_id.
16408 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
16410 2008-06-04 Richard Guenther <rguenther@suse.de>
16412 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
16413 (is_call_clobbered): Always check var_ann->call_clobbered.
16414 (mark_call_clobbered): Always set var_ann->call_clobbered.
16415 (clear_call_clobbered): Always clear var_ann->call_clobbered.
16416 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
16417 (reset_alias_info): Clear call clobbering info on MTAGs and
16419 (set_pt_anything): Set pt_global_mem.
16420 (create_tag_raw): Adjust comment.
16421 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
16423 2008-06-04 Joseph Myers <joseph@codesourcery.com>
16424 Maxim Kuvyrkov <maxim@codesourcery.com>
16426 * config/m68k/m68k.opt (mxgot): New option.
16427 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
16428 (m68k_output_addr_const_extra): New.
16429 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
16430 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
16431 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
16432 * doc/invoke.texi (M680x0 Options): Document -mxgot.
16434 2008-06-04 Richard Guenther <rguenther@suse.de>
16436 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
16437 negative or non-representable offsets.
16439 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
16441 * config/i386/i386.c (ix86_gen_leave): New.
16442 (ix86_gen_pop1): Likewise.
16443 (ix86_gen_add3): Likewise.
16444 (ix86_gen_sub3): Likewise.
16445 (ix86_gen_sub3_carry): Likewise.
16446 (ix86_gen_one_cmpl2): Likewise.
16447 (ix86_gen_monitor): Likewise.
16448 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
16449 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
16450 ix86_gen_one_cmpl2 and ix86_gen_monitor.
16451 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
16452 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
16453 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
16454 (ix86_expand_epilogue): Updated.
16455 (print_operand): Handle integer register operand for 'z'.
16456 (ix86_expand_strlensi_unroll_1): Likewise.
16457 (ix86_expand_strlen): Likewise.
16458 (ix86_expand_builtin): Likewise.
16459 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
16460 mov{q}/mov{l} and add{q}/add{l}.
16462 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
16464 * config/i386/i386.md (P): New mode iterator.
16465 (SFmode push_operand splitter): Macroize DImode and SImode pushes
16466 using P mode iterator.
16467 (DFmode push_operand splitter): Ditto.
16468 (XFmode push_operand splitter): Ditto.
16469 (DFmode float_extend SFmode push_operand splitter): Ditto.
16470 (XFmode float_extend SFmode push_operand splitter): Do not generate
16471 SImode pushes for 64bit target. Macroize Dimode and SImode
16472 pushes using P mode iterator.
16473 (XFmode float_extend DFmode push_operand splitter): Ditto.
16475 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
16477 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
16478 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
16479 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
16480 return type to int.
16481 (ix86_call_abi_override): Remove check for call_used_regs.
16483 2008-06-03 Richard Guenther <rguenther@suse.de>
16485 * tree-ssa-structalias.c (find_func_aliases): Add constraints
16486 for the lhs of calls if the return type contains pointers.
16488 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
16490 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
16491 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
16492 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
16493 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
16494 of cfun and DEFAULT_ABI to deceide abi mode.
16495 (DEFAULT_ABI): New.
16496 (REG_PARM_STACK_SPACE): Removed.
16497 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
16498 (STACK_BOUNDARY): Use default target to deceide stack boundary.
16499 * config/i386/i386-protos.h (ix86_cfun_abi): New.
16500 (ix86_function_abi): Likewise.
16501 (ix86_function_type_abi): Likewise.
16502 (ix86_call_abi_override): Likewise.
16503 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
16504 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
16505 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
16506 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
16508 (X86_64_REGPARM_MAX): New.
16509 (X86_64_SSE_REGPARM_MAX): New.
16510 (X64_REGPARM_MAX): New.
16511 (X64_SSE_REGPARM_MAX): New.
16512 (X86_32_REGPARM_MAX): New.
16513 (X86_32_SSE_REGPARM_MAX): New.
16514 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
16515 (ix86_function_regparm): Handle user calling abi.
16516 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
16517 by DEFAULT_ABI versus SYSV_ABI check.
16518 (ix86_reg_parm_stack_space): New.
16519 (ix86_function_type_abi): New.
16520 (ix86_call_abi_override): New.
16521 (ix86_function_abi): New.
16522 (ix86_cfun_abi): New.
16523 (init_cumulative_args): Call abi specific initialization.
16524 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
16525 (function_arg_64): Extend SSE_REGPARM_MAX check.
16526 (function_arg (): Remove TARGET_64BIT_MS_ABI.
16527 (ix86_pass_by_reference): Likewise.
16528 (ix86_function_value_regno_p): Likewise.
16529 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
16530 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
16531 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
16532 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
16533 (setup_incoming_varargs_64): Adjust regparm for call abi.
16534 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
16535 (ix86_va_start): Likewise.
16536 (ix86_gimplify_va_arg): Likewise.
16537 (ix86_expand_prologue): Likewise.
16538 (output_pic_addr_const): Likewise.
16539 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
16540 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
16541 (x86_output_mi_thunk): Likewise.
16542 (x86_function_profiler): Likewise.
16543 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
16544 (SYSV_ABI, MS_ABI): New constants.
16545 (DEFAULT_ABI): New.
16546 (init_regs): Add prototype of function in regclass.c file.
16547 (OVERRIDE_ABI_FORMAT): New.
16548 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
16549 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
16550 (OUTGOING_REG_PARM_STACK_SPACE): New.
16551 (ix86_reg_parm_stack_space): New prototype.
16552 (CUMULATIVE_ARGS): Add call_abi member.
16553 (machine_function): Add call_abi member.
16554 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
16555 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
16557 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
16560 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
16561 (avr_builtin_setjmp_frame_value): New function.
16562 * config/avr/avr.md (nonlocal_goto_receiver): Define.
16563 (nonlocal_goto): Define.
16565 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
16567 * config/mips/mips.c (mips_emit_loadgp): Return early if
16568 there is nothing do to, otherwise emit a blockage if
16569 !TARGET_EXPLICIT_RELOCS || crtl->profile.
16570 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
16572 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16574 * configure.ac: Drop unneeded backslash ending up in config.in.
16575 * acinclude.m4: Likewise.
16576 * config.in: Regenerate.
16578 2008-05-26 Jan Hubicka <jh@suse.cz>
16580 * predict.c (maybe_hot_frequency_p): Break out of...
16581 (maybe_hot_bb_p): ... here.
16582 (maybe_hot_edge_p): New.
16583 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
16584 * basic-block.h (maybe_hot_edge_p): Declare.
16586 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
16588 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
16589 (*cmpfp_<mode>_cc): Ditto.
16590 (*fp_jcc_8<mode>_387): Ditto.
16591 (*fop_<MODEF:mode>_2_i387): Ditto.
16592 (*fop_<MODEF:mode>_3_i387): Ditto.
16593 (*fop_xf_2_i387): Ditto.
16594 (*fop_xf_3_i387): Ditto.
16596 2008-06-02 Tomas Bily <tbily@suse.cz>
16598 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
16600 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
16602 * config/mips/mips.c (mips_valid_offset_p): New function.
16603 (mips_valid_lo_sum_p): Likewise.
16604 (mips_classify_address): Use them.
16605 (mips_force_address): New function.
16606 (mips_legitimize_address): Use it.
16607 * config/mips/mips.md (MOVE128): New mode iterator.
16608 (movtf): Require TARGET_64BIT. Remove empty strings.
16609 (*movtf_internal): Rename to...
16610 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
16611 of "R" and use {,fp}{load,store} attributes instead of "multi".
16612 Use a separate define_split.
16613 (*movtf_mips16): New pattern.
16615 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
16617 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
16618 * config/mips/mips.c (mips_expand_before_return): New function.
16619 (mips_expand_epilogue): Call it.
16620 * config/mips/mips.md (return): Turn into a define_expand.
16621 (*return): New insn.
16623 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
16625 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
16626 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
16627 functions. Do not emit uses and clobbers of CONCATs; individually
16628 use and clobber their operands.
16629 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
16630 gen_clobber, emit_use and gen_use.
16631 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
16632 (expand_builtin_return): Likewise.
16633 * cfgbuild.c (count_basic_blocks): Likewise.
16634 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
16635 * explow.c (emit_stack_restore): Likewise.
16636 * expmed.c (extract_bit_field_1): Likewise.
16637 * expr.c (convert_move, emit_move_complex_parts): Likewise.
16638 (emit_move_multi_word, store_constructor): Likewise.
16639 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
16640 (thread_prologue_and_epilogue_insns): Likewise.
16641 * lower-subreg.c (resolve_simple_move): Likewise.
16642 * optabs.c (widen_operand, expand_binop): Likewise.
16643 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
16644 * reload.c (find_reloads): Likewise.
16645 * reload1.c (eliminate_regs_in_insn): Likewise.
16646 * stmt.c (expand_nl_goto_receiver): Likewise.
16647 * config/alpha/alpha.md (builtin_longjmp): Likewise.
16648 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
16649 * config/arm/arm.c (arm_load_pic_register): Likewise.
16650 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
16651 * config/arm/arm.md (untyped_return): Likewise.
16652 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
16653 * config/avr/avr.c (expand_prologue): Likewise.
16654 * config/bfin/bfin.c (do_unlink): Likewise.
16655 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
16656 * config/cris/cris.c (cris_expand_prologue): Likewise.
16657 * config/darwin.c (machopic_indirect_data_reference): Likewise.
16658 (machopic_legitimize_pic_address): Likewise.
16659 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
16660 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
16661 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
16662 (ix86_expand_convert_uns_didf_sse): Likewise.
16663 (ix86_expand_vector_init_general): Likewise.
16664 * config/ia64/ia64.md (eh_epilogue): Likewise.
16665 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
16666 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
16667 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
16668 (config/iq2000/iq2000.c): Likewise.
16669 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
16670 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
16671 (builtin_longjmp): Likewise.
16672 * config/mn10300/mn10300.md (call, call_value): Likewise.
16673 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
16674 * config/pdp11/pdp11.md (abshi2): Likewise.
16675 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
16676 * config/s390/s390.c (s390_emit_prologue): Likewise.
16677 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
16678 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
16679 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
16680 * config/sh/sh.c (prepare_move_operands): Likewise.
16681 (output_stack_adjust, sh_expand_epilogue): Likewise.
16682 (sh_set_return_address, sh_expand_t_scc): Likewise.
16683 * config/sparc/sparc.c (load_pic_register): Likewise.
16684 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
16685 * config/spu/spu.c (spu_expand_epilogue): Likewise.
16686 * config/v850/v850.c (expand_epilogue): Likewise.
16688 2008-05-31 Anatoly Sokolov <aesok@post.ru>
16690 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
16691 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
16692 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
16693 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
16694 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
16695 stack pointer register.
16696 (output_movhi): Remove code for interrupt specific writing to the
16697 stack pointer register.
16699 2008-05-31 Richard Guenther <rguenther@suse.de>
16701 PR tree-optimization/34244
16702 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
16703 (tree_expr_nonzero_warnv_p): Likewise.
16704 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
16705 ssa_name_nonnegative_p.
16706 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
16707 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
16708 not tree_expr_nonzero_warnv_p.
16710 PR tree-optimization/36262
16712 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
16714 PR tree-optimization/34244
16715 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
16716 (record_numbers_of_iterations): New function.
16717 (execute_vrp): Cache the numbers of iterations of loops.
16718 * tree-scalar-evolution.c (scev_reset_except_niters):
16720 (scev_reset): Use scev_reset_except_niters.
16721 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
16723 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
16725 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16726 __WORKAROUND_RETS when appropriate.
16728 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
16730 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
16731 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
16733 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
16734 *fop_df_comm_sse insn patterns using MODEF mode iterator.
16735 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
16736 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
16737 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
16738 *fop_df_1_mixed insn patterns using MODEF mode iterator.
16739 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
16740 *fop_df_1_sse insn patterns using MODEF mode iterator.
16741 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
16742 *fop_df_1_i387 insn patterns using MODEF mode iterator.
16743 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
16744 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
16745 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
16746 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
16747 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
16748 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
16749 (*fop_xf_4_i387): Use <MODE> for mode attribute.
16750 (*fop_xf_5_i387): Ditto.
16751 (*fop_xf_6_i387): Ditto.
16753 2008-05-30 Richard Guenther <rguenther@suse.de>
16755 * builtins.c (build_string_literal): Avoid generating
16756 a non-gimple_val result.
16758 2008-05-30 DJ Delorie <dj@redhat.com>
16760 * exec-tool.in: Use an environment variable (private) instead of a
16761 file (shared) as a semaphore, so as to not break parallel builds.
16763 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
16765 * optabs.c (maybe_encapsulate_block): Remove.
16766 (emit_libcall_block): Adjust accordingly.
16767 * optabs.h (maybe_encapsulate_block): Remove prototype.
16769 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
16770 Don't use maybe_encapsulate_block.
16772 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
16774 * config/rs6000/rs6000.c (rs6000_legitimize_address,
16775 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
16776 rtx is a SYMBOL_REF before calling get_pool_constant.
16778 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
16780 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
16782 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
16784 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
16785 rather than OS names to choose INO_T_EQ definition.
16786 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
16787 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
16789 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
16792 * config/darwin-f.c: New.
16793 * config/t-darwin: Added rule to build darwin-f.o.
16794 * config.gcc: Defined new variable, fortran_target_objs.
16795 (*-*-darwin*): Set fortran_target_objs.
16796 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
16797 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
16798 * configure: Regenerated.
16800 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
16803 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
16804 canonical type if needed.
16806 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
16808 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
16810 2008-05-29 Richard Guenther <rguenther@suse.de>
16812 PR tree-optimization/36343
16813 PR tree-optimization/36346
16814 PR tree-optimization/36347
16815 * tree-flow.h (clobber_what_p_points_to): Declare.
16816 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
16817 pointed-to variable is dereferenced is irrelevant to whether
16818 the pointer can access the pointed-to variable.
16819 (clobber_what_p_points_to): New function.
16820 * tree-ssa-alias.c (set_initial_properties): Use it.
16821 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
16822 call clobber check for NMTs.
16824 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
16826 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
16827 for printing gcov_type.
16829 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
16831 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
16832 and the eh region information.
16833 * value-prof.c (gimple_move_stmt_histograms): New function.
16834 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
16836 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
16838 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
16840 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
16842 * value-prof.c (tree_ic_transform): Print counts.
16843 * tree-profile.c (tree_gen_ic_func_profiler):
16844 Clear __gcov_indreict_call_callee variable to avoid misattribution
16847 2008-05-28 Rafael Espíndola <espindola@google.com>
16849 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
16852 2008-05-28 Richard Guenther <rguenther@suse.de>
16854 PR tree-optimization/36339
16855 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
16856 and clobbering code out of the loop.
16858 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
16860 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
16863 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
16864 s390_contiguous_bitmask_p, s390_symref_operand_p,
16865 s390_check_symref_alignment, s390_reload_larl_operand,
16866 s390_reload_symref_address): New functions.
16867 (s390_branch_condition_mnemonic): Support compare and branch
16869 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
16870 and 'W' constraints.
16871 (s390_secondary_reload): Add secondary reloads for unaligned
16872 symbol refs or symbol refs to floating point or QI/TI mode
16874 (legitimate_address_p): Accept symbol references as addresses.
16875 (s390_expand_insv): Use rotate and insert selected bits
16876 instruction for insv when building for z10.
16877 (print_operand_address): Handle symbol ref addresses.
16878 (print_operand): Output modifier 'c' added for signed byte values.
16879 (s390_encode_section_info): Mark symbol refs with
16880 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
16882 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
16883 (length attribute): RRF, RRR have 4 byte length.
16884 (FPALL, INTALL): New mode iterators added.
16885 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
16886 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
16887 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
16888 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
16889 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
16890 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
16891 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
16892 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
16894 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
16895 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
16896 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
16897 reload<INTALL:mode><P:mode>_toreg_z10,
16898 reload<FPALL:mode><P:mode>_tomem_z10,
16899 reload<FPALL:mode><P:mode>_toreg_z10,
16900 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
16901 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
16902 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
16903 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
16905 (movmem, clrmem, cmpmem): New splitters added.
16907 * config/s390/predicates.md (larl_operand): Use
16908 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
16909 SYMBOL_REF_ALIGN1_P.
16910 (s390_signed_integer_comparison,
16911 s390_unsigned_integer_comparison): New predicates.
16913 * config/s390/s390-protos.h (s390_check_symref_alignment,
16914 s390_contiguous_bitmask_p, s390_reload_larl_operand,
16915 s390_reload_symref_address,
16916 s390_compare_and_branch_condition_mask): Prototypes added.
16918 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
16919 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
16920 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
16922 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
16924 * config/s390/s390.c (z10_cost): New cost function for z10.
16925 (s390_handle_arch_option, override_options): Support -march=z10 switch.
16926 (s390_issue_rate): Adjust issue rate for z10.
16927 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
16928 (processor_flags): Add PF_Z10.
16929 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
16930 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
16931 * gcc/config.gcc: Add z10.
16933 2008-05-28 Richard Guenther <rguenther@suse.de>
16935 PR tree-optimization/36291
16936 * tree-flow. h (struct gimple_df): Remove var_anns member.
16937 * tree-flow-inline.h (gimple_var_anns): Remove.
16938 (var_ann): Simplify.
16939 * tree-dfa.c (create_var_ann): Simplify.
16940 (remove_referenced_var): Clear alias info from var_anns of globals.
16941 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
16942 (delete_tree_ssa): Clear alias info from var_anns of globals.
16943 Do not free var_anns.
16944 (var_ann_eq): Remove.
16945 (var_ann_hash): Likewise.
16947 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
16949 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
16950 and loongson2f entries.
16951 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
16952 * config/mips/mips.h (processor_type): Add Loongson-2E
16953 and Loongson-2F entries.
16954 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
16955 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
16956 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
16957 * doc/invoke.texi (MIPS Options): Document loongson2e
16958 and loongson2f processor names.
16960 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
16964 * config/i386/i386.c (ix86_function_arg_boundary): Use
16965 alignment of canonical type.
16966 (ix86_expand_vector_move): Check unaligned memory access for
16969 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
16971 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
16972 Moved to the front of file.
16974 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
16975 H.J. Lu <hongjiu.lu@intel.com>
16977 * dwarf2out.c (current_fde): New.
16979 (lookup_cfa:): Likewise.
16980 (dwarf2out_end_epilogue): Likewise.
16981 (dwarf2out_note_section_used): Likewise.
16983 2008-05-27 Michael Matz <matz@suse.de>
16986 * c.opt (Wenum-compare): New warning option.
16987 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
16989 2008-05-27 Michael Matz <matz@suse.de>
16991 PR middle-end/36326
16992 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
16994 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
16995 into memory as tail calls.
16997 2008-05-27 Richard Guenther <rguenther@suse.de>
16999 PR tree-optimization/36339
17000 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
17001 pointers cause all addressable variables to be call clobbered.
17003 2008-05-27 Richard Guenther <rguenther@suse.de>
17005 PR tree-optimization/36245
17006 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
17008 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
17010 * config/s390/s390.md: Replace all occurences of the 'm'
17011 constraint with 'RT'.
17013 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
17015 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
17017 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
17019 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
17020 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
17021 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
17023 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
17025 * reload.c: (find_reloads): Skip alternatives according to the
17026 "enabled" attribute. Constify the constraint variable.
17027 * recog.c (get_attr_enabled): Add default implementation.
17028 (extract_insn): Set the alternative_enabled_p array
17029 in the recog_data struct.
17030 (preprocess_constraints, constrain_operands): Skip
17031 alternatives according to the "enabled" attribute
17032 * recog.h (struct recog_data): New field alternative_enabled_p.
17033 (skip_alternative): New inline function.
17034 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
17035 (record_reg_classes): Skip alternative according to the
17036 "enabled" attribute.
17038 * doc/md.texi: Add documention for the "enabled" attribute.
17040 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
17042 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
17043 * postreload.c (reload_cse_simplify_operands): Replace 'm'
17044 constraint with TARGET_MEM_CONSTRAINT.
17045 * recog.c (asm_operand_ok, preprocess_constraints,
17046 constrain_operands): Likewise.
17047 * regclass.c (record_reg_classes): Likewise.
17048 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
17049 * reload1.c (maybe_fix_stack_asms): Likewise.
17050 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
17051 * recog.h: Adjust comment.
17052 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
17053 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
17054 * doc/md.texi: Add a note to description of 'm' constraint.
17055 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
17057 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
17059 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
17060 that the bitfield is of integral type before testing its precision.
17062 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
17063 Sa Liu <saliu@de.ibm.com>
17065 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
17066 __modti3, __udivti3, __umodti3 and __udivmodti4.
17067 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
17068 that implement TImode mul and div functions.
17069 * config/spu/multi3.c: New. Implement __multi3.
17070 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
17071 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
17074 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
17076 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
17077 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
17078 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
17079 tls_sysv_suffix): New mode and mode attribute iterators.
17080 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
17081 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
17082 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
17083 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
17084 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
17087 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
17089 PR tree-optimization/36329
17090 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
17091 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
17092 * cgraphbuild.c (initialize_inline_failed): Use the latter
17093 macro in lieu of the former.
17094 * ipa-inline.c (cgraph_mark_inline): Likewise.
17095 (cgraph_decide_inlining_of_small_function): Likewise.
17096 (cgraph_decide_inlining): Likewise.
17097 (cgraph_decide_inlining_incrementally): Likewise.
17099 2008-05-26 Tristan Gingold <gingold@adacore.com>
17100 Anatoly Sokolov <aesok@post.ru>
17102 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
17103 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
17104 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
17105 optimization for 'avr6' architecture.
17107 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
17110 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
17112 2008-05-26 Richard Guenther <rguenther@suse.de>
17114 * tree-ssa-sccvn.c (expr_has_constants): Declare.
17115 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
17117 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
17119 PR middle-end/36253
17120 * caller-save.c (insert_restore): Verify alignment of spill space.
17121 (insert_save): Likewise.
17122 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
17123 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
17124 (STACK_SLOT_ALIGNMENT): Likewise.
17125 * function.c (LOCAL_ALIGNMENT): Removed.
17126 (get_stack_local_alignment): New.
17127 (assign_stack_local): Use it. Set alignment on stack slot.
17128 (assign_stack_temp_for_type): Use get_stack_local_alignment.
17129 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
17130 (STACK_SLOT_ALIGNMENT): New.
17131 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
17132 stack slot in XFmode.
17134 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
17136 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
17139 * config/i386/i386.md (allocate_stack_worker_64): Make sure
17140 argument operand in rax isn't removed.
17142 2008-05-26 Richard Guenther <rguenther@suse.de>
17144 PR middle-end/36300
17145 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
17146 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
17148 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
17151 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
17153 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
17155 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
17156 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
17158 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
17160 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
17161 build a trampoline if we don't want one.
17162 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
17163 return zero for nested functions if we don't want a trampoline.
17165 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
17167 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
17169 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
17172 * c.opt: Removed undocumented option '-lang-fortran'.
17173 * c-common.h: Removed global variable 'lang_fortran'.
17174 * c-opts.c (c_common_handle_option): Removed code to handle
17175 option '-lang-fortran'. Updated includes.
17176 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
17177 definition of '__GFORTRAN__'.
17178 (define__GNUC__): Reimplemented to use BASEVER and
17179 cpp_define_formatted.
17180 (builtin_define_with_value_n): Removed.
17181 * c-incpath.h: Renamed to ...
17182 * incpath.h: ... this.
17183 * c-incpath.c: Renamed to ...
17184 * incpath.c: ... this. Updated includes.
17185 * fix-header.c: Updated includes.
17186 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
17187 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
17188 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
17190 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
17192 * tree.h: Update the table of flags used on tree nodes.
17193 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
17194 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
17195 (FORCED_LABEL): Add access check.
17196 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
17197 (ASM_INPUT_P): Likewise.
17198 (ASM_VOLATILE_P): Likewise.
17199 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
17200 (OMP_SECTION_LAST): Access private_flag directly.
17201 (OMP_RETURN_NOWAIT): Likewise.
17202 (OMP_PARALLEL_COMBINED): Likewise.
17203 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
17204 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
17205 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
17206 deprecated_flag directly.
17208 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
17210 * final.c (frame_pointer_needed): Removed.
17211 * flags.h (frame_pointer_needed): Likewise.
17213 * function.h (rtl_data): Add frame_pointer_needed.
17214 (frame_pointer_needed): New.
17216 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
17218 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
17220 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
17222 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
17225 2008-05-25 Alan Modra <amodra@bigpond.net.au>
17227 * c-common.c (strip_array_types): Move function to..
17229 (get_inner_array_type): Delete.
17230 * c-common.h (strip_array_types): Move declaration to..
17232 (get_inner_array_type): Delete.
17233 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
17234 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
17235 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17236 * config/pa/pa.c (emit_move_sequence): Likewise.
17238 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
17240 * config/i386/i386.md (*sse_prologue_save_insn): Set length
17243 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
17245 * function.c: Include target hook for nonlocal_goto frame value.
17247 2008-05-24 Richard Guenther <rguenther@suse.de>
17249 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
17250 variable can be only accessed through a pointer or a union.
17252 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17254 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
17255 * doc/extend.texi: Likewise.
17257 2008-05-23 DJ Delorie <dj@redhat.com>
17259 * config/m32c/jump.md (untyped_call): Add.
17261 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
17262 for A24 to PSImode.
17263 (m32c_address_cost): Detail costs for indirect offsets.
17265 2008-05-23 Rafael Espíndola <espindola@google.com>
17267 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
17268 if a node is a SUBREG.
17269 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
17272 2008-05-23 Paul Brook <paul@codesourcery.com>
17273 Carlos O'Donell <carlos@codesourcery.com>
17275 * doc/extend.texi: Clarify use of __attribute__((naked)).
17276 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
17277 * target.h (gcc_target): Add allocate_stack_slots_for_args.
17278 * function.c (use_register_for_decl): Use
17279 targetm.calls.allocate_stack_slots_for_args.
17280 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
17281 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
17282 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
17284 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
17286 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
17288 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
17290 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
17291 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
17292 is only rounded once.
17294 2008-05-23 Richard Guenther <rguenther@suse.de>
17296 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
17298 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
17299 Jakub Jelinek <jakub@redhat.com>
17302 * configure.ac: Handle --enable-cld.
17303 * configure: Regenerated.
17304 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
17305 * config/i386/i386.h (struct machine_function): Add needs_cld field.
17306 (ix86_current_function_needs_cld): New define.
17307 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
17308 (cld): New isns pattern.
17309 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
17310 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
17311 * config/i386/i386.opt (mcld): New option.
17312 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
17313 TARGET_CLD and ix86_current_function_needs_cld.
17314 (override_options): Use -mcld by default for 32-bit code if
17317 * doc/install.texi (Options specification): Document --enable-cld.
17318 * doc/invoke.texi (Machine Dependent Options)
17319 [i386 and x86-64 Options]: Add -mcld option.
17320 (Intel 386 and AMD x86-64 Options): Document -mcld option.
17322 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
17323 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
17324 (return_in_memory_64): Likewise.
17325 (return_in_memory_ms_64): Likewise.
17327 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17329 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
17330 * builtins.c (fold_builtin_fpclassify): New.
17331 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
17332 * builtins.def (BUILT_IN_FPCLASSIFY): New.
17333 * c-common.c (handle_type_generic_attribute): Adjust to accept
17334 fixed arguments before an elipsis.
17335 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
17336 * doc/extend.texi: Document __builtin_fpclassify.
17338 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
17340 * omp-low.c (gate_expand_omp_ssa): Remove.
17341 (pass_expand_omp_ssa): Remove.
17342 (gate_expand_omp): Do not check for flag_openmp_ssa.
17343 * common.opt (-fopenmp-ssa): Remove.
17344 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
17346 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
17348 * config/sh/sh.opt (mfixed-range): New option.
17349 * config/sh/sh-protos.h (sh_fix_range): Declare.
17350 * config/sh/sh.c (sh_fix_range): New function.
17351 * config/sh/sh.h (sh_fixed_range_str): Declare.
17352 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
17354 * doc/invoke.texi (SH Options): Document -mfixed-range.
17356 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
17358 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
17359 it before the redeclaration.
17361 2008-05-22 Anatoly Sokolov <aesok@post.ru>
17363 * config/avr/avr.c (get_sequence_length): Add new function.
17364 (expand_prologue, expand_epilogue): Remove duplicate code.
17366 2008-05-22 Rafael Espíndola <espindola@google.com>
17368 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
17371 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
17373 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
17374 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
17376 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
17377 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
17378 (vect_update_misalignment_for_peel): Likewise.
17379 (vector_alignment_reachable_p): Likewise.
17380 * tree-vect-transform.c (vectorizable_load): Likewise.
17381 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
17382 (get_vectype_for_scalar_type): Pass mode of scalar_type
17383 to UNITS_PER_SIMD_WORD.
17385 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
17386 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
17387 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
17388 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
17389 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
17391 2008-05-22 Ira Rosen <irar@il.ibm.com>
17393 PR tree-optimization/36293
17394 * tree-vect-transform.c (vect_transform_strided_load): Don't check
17395 if the first load must be skipped because of a gap.
17397 2008-05-22 Richard Guenther <rguenther@suse.de>
17399 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
17400 more cases of offset disambiguation that is possible if
17401 strict-aliasing rules apply.
17402 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
17403 for basic offset and type-based disambiguation.
17405 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
17407 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
17408 ix86_expand_vector_set on V16QImode for SSE4.1.
17410 2008-05-21 Tom Tromey <tromey@redhat.com>
17412 * c.opt (Wimport): Mark as undocumented.
17413 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
17415 (Warning Options): Likewise.
17416 * doc/cppopts.texi: Don't mention -Wimport.
17418 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
17420 PR tree-optimization/36287
17421 PR tree-optimization/36286
17422 * lambda-code.c (build_access_matrix): Do not use the loop->num
17423 for computing the number of induction variables: use the loop depth
17426 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
17429 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
17430 option -f(no-)leading-underscore.
17432 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
17434 * config/i386/i386.c (ix86_expand_vector_init_general): Use
17435 GET_MODE_NUNITS (mode).
17437 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
17439 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
17440 (-mmulhw): Add 464 to description.
17441 (-mdlmzb): Likewise.
17442 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
17443 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
17445 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
17446 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
17447 * config/rs6000/rs6000.md: Update comments for 464.
17449 2008-05-21 Janis Johnson <janis187@us.ibm.com>
17451 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
17453 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
17455 * config/i386/sse.md (vec_extractv4sf): Removed.
17456 (vec_extractv2df): Likewise.
17457 (vec_extractv2di): Likewise.
17458 (vec_extractv4si): Likewise.
17459 (vec_extractv8hi): Likewise.
17460 (vec_extractv16qi): Likewise.
17461 (vec_extract<mode>): New.
17463 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
17465 * config/i386/sse.md (vec_setv4sf): Removed.
17466 (vec_setv2df): Likewise.
17467 (vec_setv2di): Likewise.
17468 (vec_setv4si): Likewise.
17469 (vec_setv8hi): Likewise.
17470 (vec_setv16qi): Likewise.
17471 (vec_set<mode>): New.
17473 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
17475 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
17476 goto for vec_concat and vec_interleave.
17478 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
17480 * config/i386/sse.md (vec_initv4sf): Removed.
17481 (vec_initv2df): Likewise.
17482 (vec_initv2di): Likewise.
17483 (vec_initv4si): Likewise.
17484 (vec_initv8hi): Likewise.
17485 (vec_initv16qi): Likewise.
17486 (vec_init<mode>): New.
17488 2008-05-21 Joseph Myers <joseph@codesourcery.com>
17490 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
17492 2008-05-21 Tom Tromey <tromey@redhat.com>
17494 * ggc-zone.c (lookup_page_table_if_allocated): New function.
17495 (zone_find_object_offset): Likewise.
17496 (gt_ggc_m_S): Likewise.
17497 (highest_bit): Likewise.
17498 * ggc-page.c (gt_ggc_m_S): New function.
17499 * stringpool.c (string_stack): Remove.
17500 (init_stringpool): Update.
17501 (ggc_alloc_string): Use ggc_alloc.
17502 (maybe_delete_ident): New function.
17503 (ggc_purge_stringpool): Likewise.
17504 (gt_ggc_m_S): Remove.
17505 * ggc-common.c (ggc_protect_identifiers): New global.
17506 (ggc_mark_roots): Call ggc_purge_stringpool. Use
17507 ggc_protect_identifiers.
17508 * ggc.h (ggc_protect_identifiers): Declare.
17509 (gt_ggc_m_S): Update.
17510 (ggc_purge_stringpool): Declare.
17511 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
17512 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
17514 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
17516 2008-05-21 David S. Miller <davem@davemloft.net>
17518 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
17521 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
17523 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
17526 2008-05-20 David Daney <ddaney@avtrex.com>
17528 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
17529 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
17530 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
17531 UNSPEC_UPDATE_GOT_VERSION): Renumber.
17532 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
17533 (atomic_hiqi_op): New define_code_iterator.
17534 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
17535 mips_expand_compare_and_swap_12.
17536 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
17537 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
17538 (sync_<optab><mode>, sync_old_<optab><mode>,
17539 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
17540 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
17541 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
17542 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
17543 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
17544 (test_and_set_12): New insn.
17545 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
17546 sync_new_<optab><mode>, sync_old_nand<mode>,
17547 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
17548 clobber to operand 0 for SI and DI mode insns.
17549 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
17550 mips_gen_fn_4): New typedefs.
17551 (mips_gen_fn_ptrs): Define new union type.
17552 (mips_expand_compare_and_swap_12): Remove declaration.
17553 (mips_expand_atomic_qihi): Declare function.
17554 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
17555 (mips_expand_atomic_qihi): ... this. Use new generator function
17557 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
17558 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
17559 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
17560 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
17561 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
17562 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
17563 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
17564 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
17565 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
17566 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
17569 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
17571 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
17574 2008-05-20 Anatoly Sokolov <aesok@post.ru>
17576 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
17577 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
17578 (avr_attribute_table): Add 'OS_main' function attribute.
17579 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
17580 functions with 'OS_main' attribute.
17582 2008-05-20 Richard Guenther <rguenther@suse.de>
17584 PR tree-optimization/35204
17585 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
17586 helper, split out from ...
17587 (DFS): ... here. Make the DFS walk non-recursive.
17589 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
17590 Jan Sjodin <jan.sjodin@amd.com>
17592 PR tree-optimization/36181
17593 * tree-parloops.c (loop_has_vector_phi_nodes): New.
17594 (parallelize_loops): Don't parallelize when the loop has vector
17597 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
17598 Sebastian Pop <sebastian.pop@amd.com>
17600 * tree-loop-linear.c (gather_interchange_stats): Look in the access
17601 matrix, and never look at the tree representation of the memory
17603 (linear_transform_loops): Computes parameters and access matrices.
17604 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
17606 (access_matrix_get_index_for_parameter): New.
17607 * tree-data-ref.h (struct access_matrix): New.
17608 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
17609 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
17610 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
17611 am_vector_index_for_loop): New.
17612 (struct data_reference): Add field access_matrix.
17613 (DR_ACCESS_MATRIX): New.
17614 (compute_data_dependences_for_loop): Update declaration.
17615 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
17616 * lambda.h (lambda_vector_vec_p): Declared.
17617 * lambda-code.c: Depend on pointer-set.h.
17618 (lambda_collect_parameters_from_af, lambda_collect_parameters,
17619 av_for_af_base, av_for_af, build_access_matrix,
17620 lambda_compute_access_matrices): New.
17621 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
17623 2008-05-20 Joseph Myers <joseph@codesourcery.com>
17625 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
17626 $SOURCEDIR/include.
17628 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
17629 Sebastian Pop <sebastian.pop@amd.com>
17631 PR tree-optimization/36206
17632 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
17634 (instantiate_scev_1): Rename flags to fold_conversions.
17635 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
17636 outeside instantiation_loop.
17637 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
17638 (evolution_function_is_affine_or_constant_p): Removed.
17639 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
17641 (analyze_siv_subscript): Pass in the loop nest number.
17642 Call evolution_function_is_affine_in_loop instead of
17643 evolution_function_is_affine_p.
17644 (analyze_overlapping_iterations): Pass in the loop nest number.
17646 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
17647 Sebastian Pop <sebastian.pop@amd.com>
17649 PR tree-optimization/36206
17650 * tree-chrec.h (chrec_fold_op): New.
17651 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
17654 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
17656 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
17658 (remove_duplicates): Do not set inode on non-inode systems.
17661 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
17663 * config.gcc (tm_file): Update comments about relative pathnames.
17665 2008-05-20 Richard Guenther <rguenther@suse.de>
17667 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
17668 * tree-ssa-sccvn.c (process_scc): Likewise.
17669 * tree-ssa-sink.c (execute_sink_code): Likewise.
17670 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17671 * tree-vrp.c (process_assert_insertions): Likewise.
17672 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
17673 (perform_tree_ssa_dce): Likewise.
17674 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
17675 (dump_dominator_optimization_stats): Likewise.
17676 * tree-vectorizer.c (vectorize_loops): Likewise.
17678 2008-05-20 Richard Guenther <rguenther@suse.de>
17680 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
17682 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
17684 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
17685 (ix86_i386elf_return_in_memory): Likewise.
17686 (ix86_i386interix_return_in_memory): Likewise.
17687 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
17688 (SUBTARGET_RETURN_IN_MEMORY): New.
17689 * config/i386/i386elf.h: Likewise.
17690 * config/i386/ptx4-i.h: Likewise.
17691 * config/i386/sol2-10.h: Likewise.
17692 * config/i386/sysv4.h: Likewise.
17693 * config/i386/vx-common.h: Likewise.
17694 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
17695 * config/i386/i386.c (ix86_return_in_memory): Made static and
17696 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
17697 (ix86_i386elf_return_in_memory): Removed.
17698 (ix86_i386interix_return_in_memory): Removed.
17699 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
17700 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
17702 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
17704 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
17706 2008-05-19 Xinliang David Li <davidxl@google.com>
17708 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
17710 * common.opt: Ditto.
17711 * doc/invoke.texi: Ditto.
17713 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
17715 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
17716 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
17718 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
17720 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
17721 sizes of operand array from 8/4 to 4/2.
17722 (ix86_expand_vector_init_general): Change size of operand array
17723 from 32 to 16. Remove op0, op1 and half_mode.
17725 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
17727 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
17728 (ix86_expand_vector_init_interleave): Likewise.
17729 (ix86_expand_vector_init_general): Use them. Assert
17730 word_mode == SImode when n_words == 4.
17732 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
17734 * config/i386/i386.c (ix86_secondary_reload): New static function.
17735 (TARGET_SECONDARY_RELOAD): New define.
17736 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
17737 * config/i386/i386.md (reload_outqi): Remove.
17739 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17741 PR middle-end/35509
17742 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
17743 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
17744 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
17745 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
17746 (fold_builtin_1): Likewise.
17747 * builtins.def (BUILT_IN_ISINF_SIGN): New.
17748 c-common.c (check_builtin_function_arguments): Handle
17749 BUILT_IN_ISINF_SIGN.
17750 * doc/extend.texi: Document __builtin_isinf_sign.
17751 * fold-const.c (operand_equal_p): Handle COND_EXPR.
17753 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
17755 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
17756 EH cleanup at the end of the pass, search for those that have been
17757 turned into forwarder blocks and do the cleanup on their successor.
17759 2008-05-18 Richard Guenther <rguenther@suse.de>
17761 * tree-cfg.c (verify_gimple_expr): Allow conversions from
17762 pointers to sizetype and vice versa.
17764 2008-05-18 Xinliang David Li <davidxl@google.com>
17766 * gcc/tree-ssa-dce.c: Coding style fix.
17767 (check_pow): Documentation comment.
17768 (check_log): Documenation comment. Coding style fix.
17769 (is_unnecessary_except_errno_call): Ditto.
17770 (gen_conditions_for_pow): Ditto.
17771 (gen_conditions_for_log): Ditto.
17772 (gen_shrink_wrap_conditions): Ditto.
17773 (shrink_wrap_one_built_in_calls): Ditto.
17774 * gcc/doc/invoke.texi: Better documentation string.
17775 * ChangeLog: Fix wrong change log entries from
17776 May 17 checkin on function call DCE.
17778 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
17780 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
17782 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
17784 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
17785 * df-problems.c (simulation routines): Fixed block comment to
17786 properly say how to add forwards scanning functions.
17788 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
17790 * tree-inline.c (setup_one_parameter): Remove dead code.
17792 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
17794 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
17795 a BIT_AND_EXPR only for an INTEGER_TYPE.
17797 2008-05-17 Xinliang David Li <davidxl@google.com>
17799 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
17800 (check_pow, check_log, is_unnecessary_except_errno_call): New
17801 functions to check for eliminating math functions that are pure
17802 except for setting errno.
17803 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
17804 general condition expressions for shrink-wrapping pow/log calls.
17805 (gen_shrink_wrap_conditions): Ditto.
17806 (shrink_wrap_one_built_in_call): Ditto.
17807 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
17808 (mark_operand_necessary): If debugging, output if OP is necessary.
17809 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
17811 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
17813 * gcc/common.opt: New user flag -ftree-builtin-dce.
17814 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
17816 2008-05-16 David S. Miller <davem@davemloft.net>
17818 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
17819 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
17821 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
17824 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
17826 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
17828 * ifcvt.c (dead_or_predicable): Rename
17829 df_simulate_one_insn_backwards to df_simulate_one_insn.
17830 * recog.c (peephole2_optimize): Ditto.
17831 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
17833 * df.h: Rename df_simulate_one_insn_backwards to
17834 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
17835 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
17836 scanning of defs and uses.
17837 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
17838 (df_simulate_one_insn_forwards): Removed.
17840 2008-05-16 Doug Kwan <dougkwan@google.com>
17842 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
17844 (real_from_string): Handle NaNs and Inf as approriate.
17846 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
17848 * doc/gty.texi (Source Files Containing Type Information): Note
17849 that headers should appear first in the gtfiles list.
17851 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
17853 * tree.def (COND_EXEC): Properly documented this code.
17855 2008-05-16 Diego Novillo <dnovillo@google.com>
17857 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
17858 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
17861 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
17863 * tree-ssa-dse (max_stmt_uid): Removed.
17864 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
17865 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
17866 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
17867 * function.h (cfun.last_stmt_uid): New field.
17868 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
17869 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
17871 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
17872 (create_stmt_ann): Initialize the ann->uid field.
17873 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
17875 * tree-flow.h (renumber_gimple_stmt_uids): New function.
17877 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
17879 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
17880 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
17881 (init_empty_tree_cfg): Call it.
17883 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
17885 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
17888 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
17890 * doc/invoke.text (-fdump-tree-*-verbose): New option.
17891 * tree-dump.c (dump_options): New verbose option.
17892 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
17894 * tree-pass.h (TDF_VERBOSE): New dump flag.
17895 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
17896 (tree-flow.h): Added include.
17897 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
17899 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
17901 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
17903 From Jie Zhang <jie.zhang@analog.com>
17904 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
17905 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
17906 mcpu=bf561-none and mcpu=bf561-0.2.
17907 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
17908 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
17909 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
17910 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
17911 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
17912 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
17913 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
17915 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
17916 (cputype_selected): Remove.
17917 (bfin_handle_option): Don't use cputype_selected.
17918 (override_options): When no mcpu option, enable all workarounds.
17919 Don't use bfin_workarounds.
17920 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
17922 (DEFAULT_CPU_TYPE): Don't define.
17924 2008-05-16 Richard Guenther <rguenther@suse.de>
17926 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
17927 on deletion of the last stmt.
17929 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
17931 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
17932 V8HImode for SSE2 and V16QImode for SSE4.1.
17934 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
17936 * cgraph.h (compute_inline_parameters): Made public.
17937 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
17938 variable_generate_summary, function_write_summary,
17939 variable_write_summary, variable_read_summary. Added generate_summary,
17940 write_summary, read_summary.
17941 * cgraphunit.c (cgraph_process_new_functions): Changed call from
17942 pass_ipa_inline.function_generate_summary, to
17943 compute_inline_parameters.
17944 * ipa-inline.c (compute_inline_parameters): Made public and added
17946 (compute_inline_parameters_for_current): New function.
17947 (pass_inline_param): Now calls compute_inline_parameters_for_current.
17948 (inline_generate_summary): Removed parameter and made to loop over
17950 (pass_ipa_inline): Updated for new IPA_PASS structure.
17951 * passes.c (execute_ipa_summary_passes): Now is called once per
17952 pass rather than once per node*pass.
17954 2008-05-15 Anatoly Sokolov <aesok@post.ru>
17956 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
17957 avr_have_mul_p, avr_asm_only_p): Remove variables.
17958 (avr_override_options): Remove initialization of removed variables.
17959 (avr_file_start): Convert removed variables to fields of
17960 'struct base_arch_s *avr_current_arch'.
17961 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
17962 (AVR_HAVE_MUL): (Ditto.).
17963 (AVR_HAVE_MOVW): (Ditto.).
17964 (AVR_HAVE_LPMX): (Ditto.).
17965 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
17966 avr_asm_only_p): Remove declaration.
17968 2008-05-15 Diego Novillo <dnovillo@google.com>
17970 * config/arm/arm.c (arm_return_in_memory): Fix return type.
17971 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
17973 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
17975 PR middle-end/36194
17976 * combine.c (check_conversion): Rename back to check_promoted_subreg.
17977 Don't call record_truncated_value from here.
17978 (record_truncated_value): Turn it into a for_each_rtx callback.
17979 (record_truncated_values): New function.
17980 (combine_instructions): Call note_uses with record_truncated_values.
17981 Change name of check_conversion to check_promoted_subreg.
17983 2008-05-15 Janis Johnson <janis187@us.ibm.com>
17985 * doc/sourcebuild.texi: Document support for torture tests.
17987 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
17989 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
17990 to alternative 4 of operand 2.
17992 2008-05-15 Richard Guenther <rguenther@suse.de>
17994 * tree-pass.h (current_pass): Declare.
17995 (get_pass_for_id): Likewise.
17996 * passes.c (passes_by_id, passes_by_id_size): New globals.
17997 (set_pass_for_id): New function.
17998 (get_pass_for_id): Likewise.
17999 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
18000 (execute_function_todo): Flush per function statistics.
18001 * toplev.c (compile_file): Init statistics.
18002 (general_init): Do early statistics initialization.
18003 (finalize): Finish statistics.
18004 * statistics.h (statistics_early_init): Declare.
18005 (statistics_init): Likewise.
18006 (statistics_fini): Likewise.
18007 (statistics_fini_pass): Likewise.
18008 (statistics_counter_event): Likewise.
18009 (statistics_histogram_event): Likewise.
18010 * statistics.c: New file.
18011 * Makefile.in (OBJS-common): Add statistics.o.
18012 (statistics.o): Add dependencies.
18013 * doc/invoke.texi (-fdump-statistics): Document.
18015 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
18016 (insert): Likewise.
18017 (execute_pre): Use statistics_counter_event.
18018 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
18019 (substitute_and_fold): Increment it. Use statistics_counter_event.
18021 2008-05-15 Diego Novillo <dnovillo@google.com>
18023 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
18025 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
18026 * tree-ssa-alias.c (new_type_alias): Remove references to
18027 sub-variables from comment.
18028 * tree-ssa-operands.c (swap_tree_operands): Likewise.
18030 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
18032 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
18033 attribute to 1 only for insertps alternative.
18035 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
18037 * config/bfin/bfin.md (loadbytes): New pattern.
18038 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
18039 (bfin_init_builtins): Initialize it.
18040 (bdesc_1arg): Add it.
18042 2008-05-15 Sa Liu <saliu@de.ibm.com>
18044 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
18045 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
18046 * testsuite/lib/target-supports.exp: Add
18047 check_effective_target_fortran_integer_16.
18049 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
18051 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
18052 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
18053 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
18054 (TARGET_RETURN_IN_MEMORY): Define.
18056 2008-05-15 Richard Guenther <rguenther@suse.de>
18058 PR middle-end/36244
18059 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
18060 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
18061 represent unmodifiable vars.
18063 2008-05-15 Richard Guenther <rguenther@suse.de>
18065 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
18066 INDIRECT_REF and TARGET_MEM_REF.
18067 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
18070 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
18071 H.J. Lu <hongjiu.lu@intel.com>
18073 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
18074 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
18075 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
18076 insn alternatives. Add missing alternatives.
18077 (*vec_concatv2di_rex64_sse4_1): Likewise.
18078 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
18079 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
18080 Require TARGET_SSE.
18082 2008-05-15 Richard Guenther <rguenther@suse.de>
18084 PR tree-optimization/36009
18085 PR tree-optimization/36204
18086 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
18087 (determine_invariantness_stmt): Record the loop a store is
18088 always executed in.
18089 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
18092 2008-05-15 Richard Guenther <rguenther@suse.de>
18094 PR tree-optimization/34330
18095 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
18096 through the pointer will alias the SMT.
18098 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
18100 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
18102 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
18104 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
18106 2008-05-14 Michael Meissner <michael.meissner@amd.com>
18107 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
18109 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
18110 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
18111 (vashl_optab): New optab for vector/vector shifts.
18112 (vashr_optab): Ditto.
18113 (vlshr_optab): Ditto.
18114 (vrotl_optab): Ditto.
18115 (vrotr_optab): Ditto.
18116 (optab_subtype): New enum for optab_for_tree_code call.
18117 (optab_for_tree_code): Add enum optab_subtype argument.
18119 * optabs.c (optab_for_tree_code): Take an additional argument to
18120 distinguish between a vector shift by a scalar and vector shift by
18121 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
18122 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
18123 vector shift by a vector.
18124 (expand_widen_pattern_expr): Pass additional argument to
18125 optab_for_tree_code.
18127 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
18128 vrotl_optab, vrotr_optab.
18130 * expr.c (expand_expr_real_1): Update calls to
18131 optab_for_tree_code to distinguish between vector shifted by a
18132 scalar and vector shifted by a vector.
18133 * tree-vectorizer.c (supportable_widening_operation): Ditto.
18134 (supportable_narrowing_operation): Ditto.
18135 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
18136 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
18137 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
18138 (vect_create_epilog_for_reduction): Ditto.
18139 (vectorizable_reduction): Ditto.
18140 (vectorizable_operation): Ditto.
18141 (vect_strided_store_supported): Ditto.
18142 (vect_strided_load_supported): Ditto.
18143 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
18144 * expmed.c (expand_shift): Ditto.
18146 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
18148 (ashr@var{m}3): Ditto.
18149 (vashl@var{m}3): Document new vector/vector shift standard name.
18150 (vashr@var{m}3): Ditto.
18151 (vlshr@var{m}3): Ditto.
18152 (vrotl@var{m}3): Ditto.
18153 (vrotr@var{m}3): Ditto.
18155 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
18156 (PPERM_INVERT): Ditto.
18157 (PPERM_REVERSE): Ditto.
18158 (PPERM_REV_INV): Ditto.
18159 (PPERM_ZERO): Ditto.
18160 (PPERM_ONES): Ditto.
18161 (PPERM_SIGN): Ditto.
18162 (PPERM_INV_SIGN): Ditto.
18163 (PPERM_SRC1): Ditto.
18164 (PPERM_SRC2): Ditto.
18166 * config/i386/sse.md (mulv2di3): Add SSE5 support.
18167 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
18168 allows a memory operand to be the value being added, and split it
18169 to improve vectorization.
18170 (sse5_pmacsdqh_mem): Ditto.
18171 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
18172 (sse5_mulv2div2di3_high): Ditto.
18173 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
18174 (vec_pack_trunc_v4si): Ditto.
18175 (vec_pack_trunc_v2di): Ditto.
18176 (sse5_pcmov_<mode>): Remove code that tried to use use
18177 andps/andnps instead of pcmov.
18178 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
18179 pmacsdqh instructions.
18180 (vec_widen_smult_lo_v4si): Ditto.
18182 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
18183 (PPERM_INVERT): Ditto.
18184 (PPERM_REVERSE): Ditto.
18185 (PPERM_REV_INV): Ditto.
18186 (PPERM_ZERO): Ditto.
18187 (PPERM_ONES): Ditto.
18188 (PPERM_SIGN): Ditto.
18189 (PPERM_INV_SIGN): Ditto.
18190 (PPERM_SRC1): Ditto.
18191 (PPERM_SRC2): Ditto.
18192 (ix86_expand_sse_movcc): Move the SSE5 test after the if
18194 (ix86_expand_int_vcond): If SSE5 generate all possible integer
18196 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
18197 says ignore whether the last reference is a memory operand.
18199 2008-05-14 Michael Meissner <michael.meissner@amd.com>
18200 Paolo Bonzini <bonzini at gnu dot org>
18202 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
18205 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
18206 (vlshr<mode>3): Rename from vlshr<mode>3.
18207 (vashr<mode>3): Rename from vashr<mode>3.
18208 (mulv4sf3): Change the names of vector shift patterns.
18212 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
18215 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
18240 * config/spu/spu.md (v): New iterator macro to add v for vector types.
18241 (floatunssidf2_internal): Change vector/vector shift names.
18242 (floatunsdidf2_internal): Ditto.
18249 (vashl<mode>3): Rename from ashl<mode>3.
18250 (vashr<mode>3): Rename from ashr<mode>3.
18251 (vlshr<mode>3): Rename from lshr<mode>3.
18252 (vrotl<mode>3): Rename from rotl<mode>3.
18254 2008-05-14 Michael Meissner <michael.meissner@amd.com>
18257 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
18258 multiply gives the wrong value when doing widening multiplies.
18259 (vec_widen_smult_lo_v4si): Ditto.
18261 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
18263 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
18264 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
18265 emit_library_call_value.
18266 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
18267 * tree.h (ECF_LIBCALL_BLOCK): Removed.
18268 * calls.c (initialize_argument_information, precompute_arguments,
18269 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
18270 (precompute_arguments): Removed flags parameter.
18271 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
18273 2008-05-14 Richard Guenther <rguenther@suse.de>
18275 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
18276 Make sure to register the store if the use is a PHI_NODE.
18278 2008-05-14 Olivier Hainque <hainque@adacore.com>
18280 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
18281 memory if the component is to be referenced in BLKmode according
18282 to get_inner_reference.
18284 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
18286 * calls.c (emit_library_call_value_1): Restore code clearing
18287 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
18289 2008-05-14 Olivier Hainque <hainque@adacore.com>
18290 Nicolas Roche <roche@adacore.com>
18292 * configure.ac: Add support for a "gcc_subdir" variable in
18293 config-lang.in, to denote a subdirectory where the language/GCC
18294 integration files are to be found.
18295 * configure: Regenerate.
18297 2008-05-14 Ira Rosen <irar@il.ibm.com>
18299 PR tree-optimization/36098
18300 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
18301 value for the first load in the group in case of a gap.
18302 (vect_build_slp_tree): Check that there are no gaps in loads.
18304 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
18306 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
18307 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
18308 expand_copysign_bit, ): Change call to emit_no_conflict_block to
18309 emit_insn and remove unneeded code to construct extra args.
18310 (emit_no_conflict_block): Removed.
18311 * optabls.h: (emit_no_conflict_block): Removed.
18312 * cse.c (cse_extended_basic_block): Remove search for
18313 REG_NO_CONFLICT note.
18314 * global.c: Removed incorrect comment added in revision 117.
18315 * expr.c (convert_move): Change call to emit_no_conflict_block to
18317 * recog.c: Change comments so that they do not mention
18319 * local_alloc.c (combine_regs): Removed last parameter.
18320 (no_conflict_p): Removed.
18321 (block_alloc): Removed note, no_conflict_combined_regno and set
18322 local vars. Removed all code to process REG_NO_CONFLICT blocks.
18323 (combine_regs): Removed already_dead and code to look for
18324 REG_NO_CONFLICT notes.
18325 * lower_subreg (remove_retval_note): Removed code to look for
18326 REG_NO_CONFLICT block.
18327 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
18328 (resolve_clobber): Remove code to process libcalls that have
18329 REG_NO_CONFLICT notes.
18330 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
18332 * combine.c (can_combine_p, distribute_notes): Removed
18333 REG_NO_CONFLICT case.
18334 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
18336 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
18337 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
18339 * reg-notes.def (NO_CONFLICT): Removed.
18341 2008-05-14 David S. Miller <davem@davemloft.net>
18343 * config/sparc/sparc.c (sparc_profile_hook): If
18344 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
18345 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
18346 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
18348 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
18350 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
18352 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
18355 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
18356 and op1 expansion before vector concat to have less live pseudos.
18358 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
18360 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
18361 ix86_expand_vector_set if supported.
18363 2008-05-13 Diego Novillo <dnovillo@google.com>
18364 Kenneth Zadeck <zadeck@naturalbridge.com>
18366 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
18368 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
18369 phinodes_print_statistics, init_ssanames, fini_ssanames,
18370 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
18371 release_ssa_name, release_defs, replace_ssa_name_symbol,
18372 ssanames_print_statistics): Move ...
18373 * tree-flow.h: ... here.
18374 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
18375 Use FN instead of cfun.
18376 (make_ssa_name_fn): Rename from make_ssa_name.
18377 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
18378 * tree-flow-inline.h (make_ssa_name): Move from
18379 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
18380 * omp-low.c (expand_omp_parallel):
18381 * tree-flow-inline.h (redirect_edge_var_map_result):
18382 * tree-ssa.c (init_tree_ssa): Add argument FN.
18383 Use it instead of cfun. Update all users.
18385 2008-05-13 Tom Tromey <tromey@redhat.com>
18387 PR preprocessor/22168:
18388 * doc/cpp.texi (Top): Update menu.
18389 (Alternatives to Wrapper #ifndef): New node.
18390 (Other Directives): Document deprecation.
18391 (Obsolete Features): Remove menu.
18392 (Assertions): Merge node into Obsolete Features.
18393 (Obsolete once-only headers): Move earlier; rename to Alternatives
18394 to Wrapper #ifndef.
18395 * doc/cppopts.texi: Update.
18396 * c.opt (Wdeprecated): Enable for C and ObjC.
18397 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
18398 (C++ Dialect Options): Move -Wno-deprecated from here to...
18399 (Warning Options): ... here.
18401 2008-05-13 Richard Guenther <rguenther@suse.de>
18403 PR middle-end/36227
18404 * fold-const.c (fold_sign_changed_comparison): Do not allow
18405 changes in pointer-ness.
18407 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
18410 * config/sh/sh.c (sh_expand_prologue): Don't clear
18411 RTX_FRAME_RELATED_P for push insns.
18413 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
18415 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
18417 2008-05-12 Anatoly Sokolov <aesok@post.ru>
18419 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
18420 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
18421 Use 'machine->is_leaf' instead of 'leaf_func_p'.
18423 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
18425 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
18426 (*vec_concatv4sf_sse): This.
18427 (*sse2_concatv2si): Renamed to ...
18428 (*vec_concatv2si_sse2): This.
18429 (*sse1_concatv2si): Renamed to ...
18430 (*vec_concatv2si_sse): This.
18431 (*vec_concatv2di_rex): Renamed to ...
18432 (*vec_concatv2di_rex64): This.
18433 (*vec_concatv2si_sse4_1): New.
18434 (*vec_concatv2di_rex64_sse4_1): Likewise.
18436 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
18438 PR rtl-optimization/36111
18439 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
18440 that was created for swappable operands.
18442 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
18445 * Makefile.in: Substitute GNATMAKE and GNATBIND.
18446 * configure.ac: Add call to ACX_PROG_GNAT.
18448 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
18450 * optc-gen.awk: Fix comment typo.
18452 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18454 * pretty-print.c (pp_integer_with_precision): Use
18455 HOST_LONG_LONG_FORMAT.
18457 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
18459 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
18461 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
18463 * config/i386/i386.c (bdesc_ptest): Removed.
18464 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
18465 (bdesc_args): Add __builtin_ia32_ptestz128,
18466 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
18467 (ix86_init_mmx_sse_builtins): Updated.
18468 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
18469 (ix86_expand_builtin): Updated.
18471 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
18473 * tree-cfg.c (valid_fixed_convert_types_p): New function.
18474 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
18476 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
18478 * value-prof.c (interesting_stringop_to_profile): Do not
18479 return early for BUILT_IN_MEMPCPY.
18481 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
18483 * calls.c (expand_call): Don't use callgraph to increase
18484 preferred_stack_boundary.
18486 * cgraph.h (cgraph_rtl_info): Use unsigned on
18487 preferred_incoming_stack_boundary.
18489 * final.c (rest_of_clean_state): Use unsigned on
18490 preferred_stack_boundary.
18492 2008-05-09 Tom Tromey <tromey@redhat.com>
18494 PR preprocessor/22231:
18495 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
18498 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
18500 PR tree-optimization/36129
18501 * tree-ssa-ccp.c: Include value-prof.h.
18502 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
18503 built-in function was folded to a constant.
18504 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
18506 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
18507 Sebastian Pop <sebastian.pop@amd.com>
18509 * tree-scalar-evolution.c: Document instantiate_scev.
18510 (instantiate_parameters_1): Renamed instantiate_scev_1.
18511 Don't use the same loop for instantiation_loop and evolution_loop.
18512 (instantiate_scev): New.
18513 (instantiate_parameters): Moved...
18514 (resolve_mixers): Update call to instantiate_scev_1 to pass the
18515 same loop twice. Maintains the semantics for this function.
18516 * tree-scalar-evolution.h (instantiate_scev): Declare.
18517 (instantiate_parameters): ...here. Now static inline.
18518 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
18519 instead of resolve_mixers.
18521 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
18523 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
18525 2008-05-09 Tomas Bily <tbily@suse.cz>
18527 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
18528 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
18529 * tree-ssa-structalias.c (get_constraint_for): Likewise.
18530 * c-common.c (c_common_truthvalue_conversion): Likewise.
18531 * tree-object-size.c (compute_object_offset): Likewise.
18532 * tree-inline.c (estimate_num_insns_1): Likewise.
18533 * varasm.c (const_hash_1, compare_constant, copy_constant)
18534 (compute_reloc_for_constant, output_addressed_constants)
18535 (initializer_constant_valid_p): Likewise.
18536 * c-omp.c (check_omp_for_incr_expr): Likewise.
18537 * gimplify.c (gimplify_expr): Likewise.
18538 * c-typeck.c (c_finish_return): Likewise.
18539 * tree-vectorizer.c (supportable_widening_operation)
18540 (supportable_narrowing_operation): Likewise.
18541 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
18542 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
18543 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
18544 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
18545 (descr_info_loc): Likewise.
18546 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
18547 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
18548 (fold_unary): Likewise.
18549 * builtins.c (get_pointer_alignment): Likewise.
18550 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
18551 (instantiate_parameters_1): Likewise.
18552 * tree.c (expr_align, stabilize_reference): Likewise.
18553 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
18554 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
18555 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
18556 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
18557 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
18558 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
18560 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
18561 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
18562 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
18563 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
18564 (forward_propagate_comparison)
18565 (tree_ssa_forward_propagate_single_use_vars): Likewise.
18566 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
18567 * emit-rtl.c (component_ref_for_mem_expr)
18568 (set_mem_attributes_minus_bitpos): Likewise.
18569 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
18570 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
18572 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
18573 (build_function_call, pointer_diff, build_compound_expr)
18574 (c_finish_return): Likewise.
18575 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
18576 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
18578 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
18579 * expr.c (is_aligning_offset): Likewise.
18580 * tree-ssa-alias.c (is_escape_site): Likewise.
18581 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
18582 (check_all_va_list_escapes): Likewise.
18583 * tree-ssa-loop-ivopts.c (determine_base_object)
18584 (determine_common_wider_type): Likewise.
18585 * dojump.c (do_jump): Likewise.
18586 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
18587 * tree-gimple.c (is_gimple_cast): Likewise.
18588 * fold-const.c (decode_field_reference, )
18589 (fold_sign_changed_comparison, fold_unary, fold_comparison)
18590 (fold_binary): Likewise.
18591 * tree-ssa-alias-warnings.c (find_alias_site_helper)
18592 (already_warned_in_frontend_p): Likewise.
18593 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
18594 * tree.c (really_constant_p, get_unwidened): Likewise.
18595 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
18596 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
18597 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
18599 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
18601 (CONVERT_EXPR_P): Define.
18602 (CASE_CONVERT): Define.
18604 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
18606 PR middle-end/36117
18607 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
18608 (delete_unmarked_insns): When deleting a call, call
18609 delete_unreachable_blocks.
18610 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
18611 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
18613 2008-05-08 Richard Guenther <rguenther@suse.de>
18615 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
18616 (-ftree-salias): Likewise.
18617 (salias-max-implicit-fields): Remove param documentation.
18618 (salias-max-array-elements): Likewise.
18619 * tree-pass.h (pass_create_structure_vars): Remove.
18620 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
18621 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
18622 * tree-ssa-alias.c (create_structure_vars): Remove.
18623 (gate_structure_vars): Likewise.
18624 (pass_create_structure_vars): Likewise.
18625 (gate_build_alias): Likewise.
18626 (pass_build_alias): Adjust to run always and dump the function.
18627 * common.opt (ftree-salias): Hide.
18628 * passes.c (init_optimization_passes): Remove
18629 pass_create_structure_vars, adjust comment.
18630 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
18631 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
18632 * opts.c (decode_options): Do not set flag_tree_salias.
18633 (common_handle_option): Add OPT_ftree_salias to the backward
18634 compatibility section.
18636 2008-05-08 Richard Guenther <rguenther@suse.de>
18638 * tree-flow-inline.h (var_can_have_subvars): Move ...
18639 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
18640 * tree-flow.h (var_can_have_subvars): Remove.
18641 (push_fields_onto_fieldstack): Remove.
18642 (sort_fieldstack): Likewise.
18643 (struct fieldoff): Move ...
18644 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
18645 alias_set and base_for_components fields.
18646 (sort_fieldstack): Make static.
18647 (push_fields_onto_fieldstack): Likewise. Remove code that
18648 handles anything but RECORD_TYPEs. Remove alias_set and
18649 base_for_components handling.
18650 (create_variable_info_for): Adjust.
18652 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
18654 * common.opt (Wframe-larger-than=): Shorten the help message
18656 * doc/invoke.texi (Wframe-larger-than=): Add more description.
18658 2008-05-08 Rafael Espíndola <espindola@google.com>
18660 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
18662 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
18663 trap and that both operands are gimple values.
18664 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
18665 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
18668 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
18670 * read-rtl.c (join_c_conditions): Return the first string if the
18671 two strings are equal.
18673 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
18675 * gensupport.h (pred_data): Add a "num_codes" field.
18676 (add_predicate_code): Declare.
18677 * gensupport.c (add_predicate_code): New function.
18678 (std_pred_table): Add an "allows_const_p" field.
18679 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
18680 Remove the (incomplete) list of such codes from the codes field.
18681 (init_predicate_table): Use add_predicate_code. Add all
18682 RTX_CONST_OBJs if allows_const_p is true.
18683 * genrecog.c (process_define_predicate): Use add_predicate_code.
18685 2008-05-08 David Daney <ddaney@avtrex.com>
18686 Richard Sandiford <rsandifo@nildram.co.uk>
18688 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
18689 special case of constant zero operands.
18690 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
18691 old and new values. Special case constant zero values.
18692 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
18694 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
18695 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
18697 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
18700 * simplify-rtx.c (simplify_plus_minus): Create CONST of
18701 similar RTX_CONST_OBJ before CONST_INT.
18703 2008-05-08 Steve Ellcey <sje@cup.hp.com>
18705 * stmt.c (expand_stack_restore): Change sa mode if needed.
18707 2008-05-08 Richard Guenther <rguenther@suse.de>
18709 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
18710 return type to bool.
18711 (ix86_sol10_return_in_memory): Likewise.
18712 (ix86_i386elf_return_in_memory): Likewise.
18713 (ix86_i386interix_return_in_memory): Likewise.
18714 * config/i386/i386.c (ix86_return_in_memory): Likewise.
18715 (ix86_sol10_return_in_memory): Likewise.
18716 (ix86_i386elf_return_in_memory): Likewise.
18717 (ix86_i386interix_return_in_memory): Likewise.
18719 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
18722 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
18724 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
18725 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
18728 2008-05-08 Richard Guenther <rguenther@suse.de>
18730 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
18731 * tree-data-ref.h (struct dr_alias): Remove subvars field.
18732 (DR_SUBVARS): Remove.
18733 * tree-dfa.c (dump_subvars_for): Remove.
18734 (debug_subvars_for): Likewise.
18735 (dump_variable): Do not dump subvars.
18736 (remove_referenced_var): Do not remove subvars.
18737 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
18738 (lookup_subvars_for_var): Remove.
18739 (get_subvars_for_var): Likewise.
18740 (get_subvars_at): Likewise.
18741 (get_first_overlapping_subvar): Likewise.
18742 (overlap_subvar): Likewise.
18743 * tree-flow.h (subvar_t): Remove.
18744 (struct var_ann_d): Remove subvars field.
18745 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
18746 argument. Remove special handling of SFTs.
18747 (compute_tag_properties): Likewise.
18748 (set_initial_properties): Likewise.
18749 (compute_call_clobbered): Likewise.
18750 (count_mem_refs): Likewise.
18751 (compute_memory_partitions): Likewise.
18752 (compute_flow_insensitive_aliasing): Likewise.
18753 (setup_pointers_and_addressables): Likewise.
18754 (new_type_alias): Likewise.
18755 (struct used_part): Remove.
18756 (used_portions): Likewise.
18757 (struct used_part_map): Likewise.
18758 (used_part_map_eq): Likewise.
18759 (used_part_map_hash): Likewise.
18760 (free_used_part_map): Likewise.
18761 (up_lookup): Likewise.
18762 (up_insert): Likewise.
18763 (get_or_create_used_part_for): Likewise.
18764 (create_sft): Likewise.
18765 (create_overlap_variables_for): Likewise.
18766 (find_used_portions): Likewise.
18767 (create_structure_vars): Likewise.
18768 * tree.def (STRUCT_FIELD_TAG): Remove.
18769 * tree.h (MTAG_P): Adjust.
18770 (struct tree_memory_tag): Remove base_for_components and
18771 unpartitionable flags.
18772 (struct tree_struct_field_tag): Remove.
18773 (SFT_PARENT_VAR): Likewise.
18774 (SFT_OFFSET): Likewise.
18775 (SFT_SIZE): Likewise.
18776 (SFT_NONADDRESSABLE_P): Likewise.
18777 (SFT_ALIAS_SET): Likewise.
18778 (SFT_UNPARTITIONABLE_P): Likewise.
18779 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
18780 (union tree_node): Remove sft field.
18781 * alias.c (get_alias_set): Remove special handling of SFTs.
18782 * print-tree.c (print_node): Remove handling of SFTs.
18783 * tree-dump.c (dequeue_and_dump): Likewise.
18784 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
18785 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
18786 * tree-predcom.c (set_alias_info): Do not set subvars.
18787 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
18788 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
18789 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
18790 (add_vars_for_offset): Remove.
18791 (add_virtual_operand): Remove special handling of SFTs.
18792 (add_call_clobber_ops): Likewise.
18793 (add_call_read_ops): Likewise.
18794 (get_asm_expr_operands): Likewise.
18795 (get_modify_stmt_operands): Likewise.
18796 (get_expr_operands): Likewise.
18797 (add_to_addressable_set): Likewise.
18798 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
18799 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
18800 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
18801 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
18802 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
18803 (tree_node_structure): Likewise.
18804 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
18806 (find_what_p_points_to): Likewise.
18808 2008-05-08 Sa Liu <saliu@de.ibm.com>
18810 * config/spu/spu.md: Fixed subti3 pattern.
18812 2008-05-08 Richard Guenther <rguenther@suse.de>
18814 PR middle-end/36154
18815 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
18816 sure to create a representative for trailing arrays for PTA.
18818 2008-05-08 Richard Guenther <rguenther@suse.de>
18820 PR middle-end/36172
18821 * fold-const.c (operand_equal_p): Two objects which types
18822 differ in pointerness are not equal.
18824 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
18826 * calls.c (compute_argument_block_size): Add argument tree fndecl.
18827 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
18828 (emit_library_call_value_1): Add new variable fndecl initialized by
18829 NULL_TREE. It should be the decl type of orgfun, but this information
18830 seems not to be available here, so it uses the default calling abi.
18831 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
18832 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
18833 by TARGET_RETURN_IN_MEMORY.
18834 * config/i386/i386-interix.h: Likewise.
18835 * config/i386/i386.h: Likewise.
18836 * config/i386/i386elf.h: Likewise.
18837 * config/i386/ptx4-i.h: Likewise.
18838 * config/i386/sol2-10.h: Likewise.
18839 * config/i386/sysv4.h: Likewise.
18840 * config/i386/vx-common.h: Likewise.
18841 * config/cris/cris.h: Removed #if 0 clause.
18842 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
18843 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
18845 (ix86_sol10_return_in_memory): Likewise.
18846 (ix86_i386elf_return_in_memory): New.
18847 (ix86_i386interix_return_in_memory): New.
18848 * config/mt/mt-protos.h (mt_return_in_memory): New.
18849 * config/mt/mt.c: Likewise.
18850 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
18851 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
18852 * config/bfin/bfin.h: Likewise.
18853 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
18855 * config/bfin/bfin.c: Likewise.
18856 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
18857 * config/alpha/unicosmk.h: Likewise.
18858 * config/i386/cygming.h: Likewise.
18859 * config/iq2000/iq2000.h: Likewise.
18860 * config/mips/mips.h: Likewise.
18861 * config/mn10300/mn10300.h: Likewise.
18862 * config/rs6000/rs6000.h: Likewise.
18863 * config/score/score.h: Likewise.
18864 * config/spu/spu.h: Likewise.
18865 * config/v850/v850.h: Likewise.
18866 * defaults.h: Likewise.
18867 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
18868 * expr.c (emit_block_move): Adjust use of
18869 OUTGOING_REG_PARM_STACK_SPACE.
18870 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
18871 OUTGOING_REG_PARM_STACK_SPACE.
18872 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
18874 2008-05-08 Jakub Jelinek <jakub@redhat.com>
18876 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
18877 on OMP_RETURN for OMP_FOR.
18880 * dwarf2out.c (dw_expand_expr, common_check): Removed.
18881 (fortran_common): New function.
18882 (gen_variable_die): Call fortran_common instead of common_check,
18883 adjust for it returning tree instead of rtx. Formatting.
18885 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
18889 * see.c (see_copy_insn): Copy new pure const attributes for new call.
18890 * c-decl.c (merge_decls): Ditto.
18891 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
18892 to RTL_CONST_OR_PURE_CALL_P.
18893 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
18894 Initialized DECL_LOOPING_CONST_PURE.
18895 (process_call_operands): Set tree_side_effects properly.
18896 * tree.h (TREE_READONLY_DECL_P): Removed.
18897 (DECL_IS_PURE): Renamed to DECL_PURE_P.
18898 (DECL_LOOPING_OR_CONST_P): New macro.
18899 (struct tree_function_decl): Added looping_const_or_pure_p.
18900 (ECF_*) Renumbered.
18901 (ECF_LOOPING_OR_CONST_P): New macro.
18902 * rtlanal.c (pure_const_p): Removed.
18903 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
18904 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
18905 to RTL_CONST_CALL_P.
18906 * ipa-pure-const.c (pure_const_state_e): Added looping field.
18907 (check_decl, check_tree, check_call, scan_function): Initialize
18909 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
18910 (static_execute): Set looping true for recursive functions.
18911 Undo setting state to IPA_NEITHER for recursive functions.
18912 * cse.c (cse_insn):
18913 * ifcvt.c (noce_can_store_speculate_p): Changed
18914 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
18915 RTL_CONST_OR_PURE_CALL_P.
18916 * dse.c (scan_insn): Ditto.
18917 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
18918 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
18919 RTL_CONST_OR_PURE_CALL_P.
18920 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
18921 pure_call_p to RTL_CONST_CALL_P.
18922 * gimplify.c (gimplify_call_expr): Clear side effects for
18923 non-looping pure and constant calls.
18924 * calls.c (emit_call_1): Set rtl flags from ecf flags.
18925 (flags_from_decl_or_type): Set ecf flags from decl flags.
18926 (initialize_argument_information): Turn off
18927 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
18928 Change const to pure if callee_copies is true rather than just
18930 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
18931 way of marking pure calls.
18932 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
18933 Remove hack that was supposed to fix pr7335 and remove old
18934 way of marking pure calls.
18935 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
18936 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
18937 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
18938 RTL_CONST_OR_PURE_CALL_P.
18939 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
18940 * loop-invariant.c (find_exits, find_invariant_bb): Changed
18941 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
18942 * sched-deps.c (schedule_analyze): Ditto.
18943 * rtl.h (struct rtx_def): Use call field, unchanging field, and
18944 return_val field of calls to represent pure and const function info.
18945 (CONST_OR_PURE_CALL_P): Deleted macro.
18946 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
18947 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
18948 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
18950 * tree-optimize.c (execute_fixup_cfg): Added test for
18951 ECF_LOOPING_CONST_OR_PURE.
18952 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
18954 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
18955 effects for looping pure or const calls.
18956 (verify_gimple_expr): Added verification code.
18957 * config/alpha/alpha.c (alpha_legitimize_address,
18958 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
18960 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
18961 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
18962 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
18963 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
18964 RTL_CONST_OR_PURE_CALL_P.
18965 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
18966 and const calls to be deleted.
18968 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
18971 * config/i386/mmx.md (mmx_subv2sf3): New expander.
18972 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
18973 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
18974 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
18975 to handle nonimmediate operands.
18976 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
18977 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
18978 to handle nonimmediate operands.
18979 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
18980 (mmx_pmulhrwv4hi3): New expander. Use
18981 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18982 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
18983 (sse2_umulv1siv1di3): New expander. Use
18984 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18985 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
18986 (mmx_eq<mode>3): New expander. Use
18987 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18988 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
18989 (mmx_uavgv8qi3): New expander. Use
18990 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18991 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
18992 (mmx_uavgv4hi3): New expander. Use
18993 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
18995 * config/i386/sse.md
18996 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
18997 to handle nonimmediate operands.
18998 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
18999 to handle nonimmediate operands.
19000 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
19001 to handle nonimmediate operands.
19002 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
19003 to handle nonimmediate operands.
19004 (sse2_unpckhpd_exp): New expander. Use
19005 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19006 (sse2_unpcklpd_exp): New expander. Use
19007 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19008 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
19009 to handle nonimmediate operands.
19010 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
19011 to handle nonimmediate operands.
19012 (*sse2_<plusminus_insn><mode>3): Rename from
19013 sse2_<plusminus_insn><mode>3 insn pattern.
19014 (sse2_<plusminus_insn><mode>3): New expander. Use
19015 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19016 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
19017 (sse2_umulv2siv2di3): New expander. Use
19018 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19019 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
19020 (sse4_1_mulv2siv2di3): New expander. Use
19021 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19022 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
19023 (sse2_pmaddwd): New expander. Use
19024 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19025 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
19026 (sse2_eq<mode>3): New expander. Use
19027 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19028 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
19029 (sse4_1_eqv2di3): New expander. Use
19030 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19031 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
19032 (sse2_uavgv16qi3): New expander. Use
19033 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19034 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
19035 (sse2_uavgv16qi3): New expander. Use
19036 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19037 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
19038 (sse2_uavgv8hi3): New expander. Use
19039 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19040 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
19041 (ssse3_pmulhrswv8hi3): New expander. Use
19042 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19043 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
19044 (ssse3_pmulhrswv4hi3): New expander. Use
19045 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19047 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
19048 (<sse>_vmmul<mode>3): Ditto.
19049 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
19051 (ssse3_pmaddubsw128): Use register_operand for operand 1.
19052 (ssse3_pmaddubsw): Ditto.
19054 * config/i386/i386.c (struct_builtin_description)
19055 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
19056 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
19057 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
19058 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
19059 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
19060 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
19061 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
19062 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
19063 (ix86_fixup_binary_operands): Assert that src1
19064 and src2 must have the same mode when swapped.
19065 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
19066 and ix86_binary_operator_ok. Do not force operands in registers
19069 2008-05-07 Jan Hubicka <jh@suse.cz>
19071 * cgraph.c (dump_cgraph_node): Update.
19072 * cgraph.h (cgraph_local_info): Break out inline summary.
19073 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
19075 * ipa-inline (inline_summary): New accestor function.
19076 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
19077 cgraph_decide_inlining, compute_inline_parameters): Update.
19078 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
19080 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
19082 Cleanup ColdFire scheduling support and add V4 pipeline model.
19084 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
19085 (define_attr cpu): Add cfv4 value.
19086 (define_attr type, define_attr type1): Merge into a single 'type'
19087 attribute. Update all uses.
19088 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
19089 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
19091 (define_attr opx_mem, define_attr opy_mem): Remove.
19092 (define_attr op_mem): Clean up, update comment.
19093 (define_attr size): Use specific values instead of general int.
19094 (define_attr guess, define_attr split): Remove. Update all uses.
19095 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
19096 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
19097 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
19098 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
19099 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
19100 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
19101 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
19102 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
19103 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
19104 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
19105 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
19106 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
19107 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
19108 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
19109 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
19110 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
19111 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
19112 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
19113 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
19114 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
19115 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
19116 Update or set attributes.
19117 (stack_tie): New fake instruction.
19119 * config/m68k/m68k.h (TUNE_CFV4): New macro.
19120 (m68k_sched_attr_size): Update declaration.
19121 (m68k_sched_attr_type2): Remove.
19122 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
19123 Declare new bypass predicates.
19125 * config/m68k/m68k.c (m68k_sched_issue_rate,
19126 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
19128 (TARGET_SCHED_ISSUE_RATE,
19129 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
19130 (override_options): Handle scheduling for ColdFire V4 core.
19131 (m68k_expand_prologue): Emit stack_tie.
19132 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
19133 'OP_TYPE_FPN'. Update all uses.
19134 (sched_guess_p): Remove.
19135 (sched_address_type): Handle symbolic addresses.
19136 (sched_get_operand): New static function.
19137 (sched_operand_type): Merge into sched_attr_op_type.
19138 (sched_attr_op_type): Handle FP registers, handle quick constants,
19140 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
19141 (m68k_sched_attr_size): Update. Move logic to ...
19142 (sched_get_attr_size_int): New static function.
19143 (sched_get_opxy_mem_type): New static function.
19144 (m68k_sched_attr_op_mem): Update.
19145 (m68k_sched_attr_type2): Remove.
19146 (sched_cfv4_bypass_data): New static variable.
19147 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
19148 (m68k_sched_issue_rate): Implement scheduler hook.
19149 (struct _sched_ib: enabled_p): New field.
19150 (m68k_sched_variable_issue): Update. Handle V4.
19151 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
19152 sched_dump_class_func_t, sched_dump_split_class,
19153 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
19154 sched_dump_dfa_class, m68k_sched_dump): Remove.
19155 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
19157 (m68k_sched_init_global): Remove statisctics dumping, introduce
19158 sanity check that all instructions have pipeline reservations. Handle
19160 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
19161 Handle ColdFire V4 core.
19162 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
19163 New static functions.
19164 (m68k_sched_address_bypass_p): New bypass predicate.
19165 (sched_get_indexed_address_scale): New static function.
19166 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
19168 * cf.md: Update comments.
19169 (define_attr type2): Remove. Use 'type' attribute instead.
19171 (cf_ib): Rename to cfv123_ib. Update all uses.
19172 (cf_oep): Rename to cfv123_oep. Update all uses.
19173 (cf_chr): Rename to cfv123_chr. Update all uses.
19174 (cf_mem): Rename to cfv123_mem. Update all uses.
19175 (cf_mac): Move to more appropriate place.
19176 (cfv123_guess): New automaton and cpu_unit.
19177 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
19178 Update uses of 'size' attribute. Handle before reload scheduling.
19179 (cfv123_guess): New dummy reservation for unhandled instructions.
19180 (cfv4_*): Pipeline description of ColdFire V4 core.
19181 (ignore): New reservation to handle 'ignore' type.
19183 2008-05-07 Ian Lance Taylor <iant@google.com>
19185 PR middle-end/36013
19186 * gimplify.c (find_single_pointer_decl_1): Don't look through
19188 (find_single_pointer_decl): Adjust comments.
19190 2008-05-07 Jakub Jelinek <jakub@redhat.com>
19192 PR middle-end/36137
19193 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
19194 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
19196 PR middle-end/36106
19197 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
19198 integral type rather than floating point, then VIEW_CONVERT_EXPR
19199 to the floating point type.
19201 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
19203 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
19204 TFmode op0 to register.
19206 2008-05-07 Alan Modra <amodra@bigpond.net.au>
19208 * c-decl.c (grokdeclarator): Comment typo.
19210 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
19212 * tree-flow.h: Remove prototype for computed_goto_p.
19213 * tree-cfg.c (computed_goto_p): Make static.
19215 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
19218 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
19219 (contains_aligned_value_p): This. Handle _Decimal128.
19220 (ix86_function_arg_boundary): Only align _Decimal128 to its
19221 natural boundary and handle it properly.
19223 2008-05-06 Martin Jambor <mjambor@suse.cz>
19225 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
19226 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
19227 (ipcp_method_set_orig_node): Removed.
19228 (ipcp_cval_get_cvalue_type): Removed.
19229 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
19230 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
19231 (ipcp_cval_set_cvalue_type): Removed.
19232 (ipcp_cval_get_cvalue): Removed.
19233 (ipcp_cval_set_cvalue): Removed.
19234 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
19235 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
19236 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
19237 (ipcp_cval_meet): Renamed to ipa_lattice_meet
19238 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
19239 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
19240 (ipcp_get_ith_lattice): Changed parameters.
19241 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
19242 (ipcp_lattice_from_jfunc): Changed parameters.
19243 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
19244 (ipcp_method_cval_print): Added temporary variable info.
19245 (ipcp_redirect): Removed already unused local variable caller.
19246 (ipcp_redirect): New temporary variable orig_callee_info
19247 (ipcp_redirect): Removed newly unused local variable callee.
19248 (ipcp_redirect): Removed (a bit confusing) local variable type.
19249 (ipcp_insert_stage): Added local variable info.
19250 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
19252 (ipcp_formal_create): Removed.
19253 (ipcp_method_cval_set): Removed.
19254 (ipcp_propagate_stage): Renamed lattice variables.
19255 (ipcp_method_cval_set_cvalue_type): Removed.
19256 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
19257 (ipcp_print_all_lattices): Changed printed strings to refer to
19258 lattices rather than cvals.
19259 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
19260 (ipcp_propagate_const): Changed formal parameters.
19261 (build_const_val): Changed formal parameters.
19262 (ipcp_insert_stage): Removed useless variable cvalue
19263 (build_const_val): Changed formal parameters.
19264 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
19265 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
19266 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
19267 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
19268 (ipcp_print_func_profile_counts): Changed string from "method" to
19270 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
19271 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
19272 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
19273 (ipcp_structures_print): Renamed to ipcp_print_all_structures
19274 (ipcp_profile_print): Renamed to ipcp_print_profile_data
19275 (ipcp_lat_is_const): Changed parameters and made inline.
19276 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
19277 (ipcp_redirect): Renamed to ipcp_need_redirect_p
19278 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
19279 the predicate condition directly
19280 (ipcp_propagate_stage): Added local variable args. Removed local
19281 variable callee. (Both are mere code simplifications.)
19282 (ipcp_method_dont_insert_const): Renamed to
19283 ipcp_node_not_modifiable_p.
19284 (ipcp_node_not_modifiable_p): Made inline.
19285 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
19286 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
19287 (ipcp_print_all_lattices): Removed variable cvalue
19288 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
19291 2008-05-06 Olivier Hainque <hainque@adacore.com>
19293 * tree-sra.c (try_instantiate_multiple_fields): Early return
19294 if field has POINTER_TYPE.
19296 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
19298 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
19299 by using 'q' specifier for instruction.
19300 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
19302 2008-05-06 Anatoly Sokolov <aesok@post.ru>
19304 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
19305 Change mode of zero_extract from QImode to HImode.
19306 (sign bit tests peepholes): (Ditto.).
19308 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
19310 * config/i386/mmx.md: Remove double backslashes from asm templates.
19311 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
19312 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
19313 to handle nonimmediate operands.
19314 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
19315 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
19316 to handle nonimmediate operands.
19317 (*mmx_<code>v2sf3_finite): New insn pattern.
19318 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
19319 (mmx_<code>v2sf3): New expander. Use
19320 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19321 (mmx_<plusminus_insn><mode>3): New expander. Use
19322 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19323 (*mmx_<plusminus_insn><mode>3): New insn pattern.
19324 (mmx_add<mode>3): Removed.
19325 (mmx_ssadd<mode>3): Ditto.
19326 (mmx_usadd<mode>3): Ditto.
19327 (mmx_sub<mode>3): Ditto.
19328 (mmx_sssub<mode>3): Ditto.
19329 (mmx_ussub<mode>3): Ditto.
19330 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
19331 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
19332 to handle nonimmediate operands.
19333 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
19335 (mmx_smulv4hi3_highpart): New expander. Use
19336 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19337 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
19339 (mmx_umulv4hi3_highpart): New expander. Use
19340 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19341 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
19342 (mmx_<code>v4hi3): New expander. Use
19343 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19344 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
19345 (mmx_<code>v8qi3): New expander. Use
19346 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19347 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
19348 (mmx_<code><mode>3): New expander. Use
19349 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
19351 2008-05-05 Jan Hubicka <jh@suse.cz>
19353 PR tree-optimization/36118
19354 * passes.c (pass_init_dump_file): Fix dump header.
19356 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
19358 PR middle-end/36141
19359 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
19360 VCE for function decls.
19362 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
19364 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
19366 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
19368 * config/i386/i386.md (sat_plusminus): New.
19369 (plusminus_insn): Likewise.
19370 (plusminus_mnemonic): Likewise.
19372 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
19373 (*<addsub><mode>3_cc_overflow): Renamed to ...
19374 (*<plusminus_insn><mode>3_cc_overflow): This.
19375 (*<addsub>si3_zext_cc_overflow): Renamed to ...
19376 (*<plusminus_insn>si3_zext_cc_overflow): This.
19378 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
19379 (<plusminus_insn><mode>3): This.
19380 (*<addsub><mode>3): Renamed to ...
19381 (*<plusminus_insn><mode>3): This.
19382 (<sse>_vm<addsub><mode>3): Renamed to ...
19383 (<sse>_vm<plusminus_insn><mode>3): This.
19384 (sse3_h<addsub>v4sf3): Renamed to ...
19385 (sse3_h<plusminus_insn>v4sf3): This.
19386 (sse3_h<addsub>v2df3): Renamed to ...
19387 (sse3_h<plusminus_insn>v2df3): This.
19388 (<plusminus_insn><mode>3): New.
19389 (*<plusminus_insn><mode>3): Likewise.
19390 (sse2_<plusminus_insn><mode>3): Likewise.
19391 (add<mode>): Removed.
19392 (*add<mode>3): Likewise.
19393 (sse2_ssadd<mode>3): Likewise.
19394 (sse2_usadd<mode>3): Likewise.
19395 (sub<mode>3): Likewise.
19396 (*sub<mode>3): Likewise.
19397 (sse2_sssub<mode>3): Likewise.
19398 (sse2_ussub<mode>3): Likewise.
19400 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
19402 * gthr-single.h: Add in required interface elements as per gthr.h.
19403 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
19404 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
19405 Generalize UNUSED macro.
19406 (__gthread_once): Add.
19407 (__gthread_key_create): Add.
19408 (__gthread_key_delete): Add.
19409 (__gthread_getspecific): Add.
19410 (__gthread_setspecific): Add.
19412 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
19414 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
19415 the same size types for the indirect reference on the rhs, then
19418 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
19420 * config/i386/i386.md
19421 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
19422 one insn template instead of template series.
19423 (*xordi_1_rex64): Ditto.
19424 (*xordi_2_rex64): Ditto.
19426 2008-05-05 Ira Rosen <irar@il.ibm.com>
19428 PR tree-optimization/36119
19429 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
19432 2008-06-04 Jan Hubicka <jh@suse.cz>
19434 tree-optimization/36100
19435 * tree-pass.h (pass_O0_always_inline): Declare.
19436 * ipa-inline.c (inline_transform): Remove dead code.
19437 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
19438 pass_O0_always_inline): New.
19439 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
19441 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
19443 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
19444 mnemonic in this_param move for TARGET_64BIT.
19446 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
19448 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
19449 (*strmovsi_rex_1): Ditto.
19450 (*strsetsi_1): Ditto.
19451 (*strsetsi_rex_1): Ditto.
19453 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
19454 adddicc expanders using SWI mode iterator.
19456 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
19459 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
19462 2008-05-04 David S. Miller <davem@davemloft.net>
19464 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
19465 (sparc*-*-linux*): Use linux.h in tm_file.
19466 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
19467 compiler defaulting to 32-bit.
19468 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
19470 * config/sparc/linux.h: Remove definitions now obtained
19471 properly from linux.h
19472 * config/sparc/linux64.h: Likewise.
19473 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
19474 don't want this setting for 32-bit builds in a biarch compiler.
19475 * doc/install.texi: Add sparc-linux to list of targets
19476 supporting --enable-targets=all.
19478 2008-05-03 Andrew Pinski <pinskia@gmail.com>
19480 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
19482 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
19484 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
19485 after V4SI_FTYPE_V8HI.
19486 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
19487 case V4SI_FTYPE_V2DF.
19489 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
19491 * doc/invoke.texi (max-flow-memory-locations): Removed.
19492 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
19494 2008-05-03 Richard Guenther <rguenther@suse.de>
19496 PR middle-end/34973
19497 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
19499 2008-05-02 David S. Miller <davem@davemloft.net>
19501 * config.gcc (need_64bit_hwint): Document libcpp dependency.
19503 2008-05-02 Simon Baldwin <simonb@google.com>
19506 * c-common.h (warn_array_subscript_range): Removed.
19507 * c-common.c (warn_array_subscript_range): Ditto.
19508 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
19509 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
19511 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
19513 * config/i386/i386.c (ix86_special_builtin_type): New.
19514 (bdesc_special_args): Likewise.
19515 (ix86_expand_special_args_builtin): Likewise.
19516 (ix86_init_mmx_sse_builtins): Updated.
19517 (ix86_expand_builtin): Updated.
19518 (ix86_expand_store_builtin): Removed.
19519 (ix86_expand_unop_builtin): Likewise.
19521 * config/i386/mm3dnow.h (__v2sf): Moved to ...
19522 * config/i386/mmintrin.h (__v2sf): Here.
19524 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
19526 (_mm_loadl_pi): Likewise.
19527 (_mm_storeh_pi): Replace __v2si with __v2sf.
19528 (_mm_storel_pi): Likewise.
19530 * doc/extend.texi: Correct __builtin_ia32_loadhps,
19531 __builtin_ia32_loadlps, __builtin_ia32_storehps,
19532 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
19533 __builtin_ia32_loadlpd.
19535 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
19537 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
19538 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
19539 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
19540 (ix86_init_mmx_sse_builtins): Updated.
19541 (ix86_expand_args_builtin): Likewise.
19542 (ix86_expand_builtin): Likewise.
19543 (ix86_expand_unop1_builtin): Renamed to ...
19544 (ix86_expand_unop_vec_merge_builtin): This.
19546 2008-05-01 Jan Hubicka <jh@suse.cz>
19549 * ipa-inline.c (inline_generate_summary): Make static.
19550 (inline_transform): Do not call inlining at -O0; make static.
19551 * passes.c (execute_todo): Add sanity check.
19552 (execute_one_ipa_transform_pass): Execute proper flags.
19554 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
19556 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
19557 (DECL_NONADDRESSABLE_P): Likewise.
19558 * alias.c (record_component_aliases): Fix comment.
19560 2008-05-01 Simon Baldwin <simonb@google.com>
19562 * c-common.h (warn_array_subscript_range): New function.
19563 * c-common.c (warn_array_subscript_range): Ditto.
19564 * tree-vrp.c (check_array_ref): Corrected code to agree with
19565 comment, ignoring only arrays of size 0 or size 1.
19566 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
19568 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
19570 * config/i386/i386.c (ix86_builtin_type): Replace
19571 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
19572 (bdesc_args): Updated.
19573 (ix86_init_mmx_sse_builtins): Likewise.
19574 (ix86_expand_args_builtin): Likewise.
19576 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
19579 * doc/extend.texi: Correct __builtin_ia32_palignr.
19581 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
19584 * config/i386/i386.c (bdesc_crc32): Removed.
19585 (ix86_expand_crc32): Likewise.
19586 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
19587 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
19588 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
19589 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
19590 UINT_FTYPE_UINT_UCHAR.
19591 (bdesc_args): Updated. Add crc32 builtins.
19592 (ix86_init_mmx_sse_builtins): Updated.
19593 (ix86_expand_args_builtin): Updated to support subreg.
19595 * doc/extend.texi: Correct __builtin_ia32_crc32di.
19597 2008-05-01 Jan Hubicka <jh@suse.cz>
19599 * tree-pass.h (opt_pass): Add IPA_PASS.
19600 (varpool_node, cgraph_node): Forward declare.
19601 (ipa_opt_pass): Define.
19602 (pass_ipa_inline): Turn into ipa_opt_pass.
19603 (pass_apply_inline): Remove.
19604 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
19605 (apply_inline): Turn into ....
19606 (inline_transform): ... this one.
19607 (inline_generate_summary): New function.
19608 (pass_apply_inline): Remove.
19609 * function.h (ipa_opt_pass): Forward declare structure; typedef;
19611 (struct function): Add ipa_transforms_to_apply.
19612 * passes.c (register_one_dump_file): Work on IPA_PASS.
19613 (init_optimization_passes): Remove pass_inline_parameters and
19615 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
19616 (execute_one_pass) ... here; apply transforms when possible.
19617 (add_ipa_transform_pass, execute_ipa_summary_asses,
19618 execute_one_ipa_transform_pass): New.
19619 (execute_ipa_pass_list): Update for IPA_PASS type.
19621 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
19623 * config/i386/i386.c (ix86_builtin_type): Add
19624 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
19625 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
19626 (bdesc_args): Add SSE4a builtins.
19627 (ix86_init_mmx_sse_builtins): Updated.
19628 (ix86_expand_args_builtin): Likewise.
19629 (ix86_expand_builtin): Likewise.
19631 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
19633 * config/i386/i386.c (ix86_builtin_type): Add
19634 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
19635 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
19636 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
19637 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
19638 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
19639 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
19640 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
19641 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
19642 and DI_FTYPE_DI_DI_INT.
19643 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
19644 (ix86_init_mmx_sse_builtins): Updated.
19645 (ix86_expand_args_builtin): Likewise.
19646 (ix86_expand_builtin): Likewise.
19647 (ix86_expand_binop_imm_builtin): Removed.
19649 * doc/extend.texi: Correct __builtin_ia32_palignr128.
19651 2008-04-30 Richard Guenther <rguenther@suse.de>
19653 PR tree-optimization/32921
19654 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
19656 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
19658 * config/arm/arm.c (arm_unwind_emit): Use
19659 crtl->all_throwers_are_sibcalls instead of
19660 cfun->all_throwers_are_sibcalls.
19661 (arm_output_fn_unwind): Likewise.
19662 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
19663 instead of cfun->uses_pic_offset_table.
19664 (frv_expand_prologue): Likewise.
19665 (frv_frame_pointer_required): Likewise.
19666 (frv_expand_fdpic_call): Likewise.
19667 (frv_emit_movsi): Likewise.
19668 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
19669 cfun->returns_pcc_struct instead of
19670 current_function_returns_pcc_struct.
19671 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
19672 instead of cfun->calls_eh_return.
19673 (m32c_pushm_popm): Likewise.
19674 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
19675 "extern" declaration.
19677 2008-04-30 Richard Guenther <rguenther@suse.de>
19679 PR tree-optimization/21636
19680 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
19682 (evaluate_stmt): Print the likely value.
19683 (ccp_visit_stmt): Avoid excessive vertical spacing.
19685 2008-04-30 Rafael Espíndola <espindola@google.com>
19687 * builtins.c (fold_call_expr): Return realret.
19688 * tree-ssa-threadedge.c
19689 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
19690 __builtin_object_size.
19692 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
19694 * gcc.c (wrapper_string): New variable.
19695 (insert_wrapper): New function.
19696 (execute): New option -wrapper.
19697 * doc/invoke.texi (Overall Options): New driver option -wrapper.
19699 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
19701 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
19702 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
19703 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
19705 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
19706 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
19707 config/rs6000/e500crtres64gprctr.asm,
19708 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
19709 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
19710 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
19711 config/rs6000/e500crtsav64gprctr.asm,
19712 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
19713 config/rs6000/e500crtsavg64gprctr.asm: New files.
19714 * config/rs6000/t-ppccomm: Add build rules for new files.
19715 (LIB2FUNCS_STATIC_EXTRA): Add new files.
19716 * config/rs6000/t-netbsd: Add build rules for new files.
19717 (LIB2FUNCS_STATIC_EXTRA): New variable.
19718 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
19719 (CRTSAVRES_DEFAULT_SPEC): Likewise.
19720 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
19722 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
19724 * config/i386/i386.c (ix86_builtin_type): Add
19725 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
19726 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
19727 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
19728 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
19729 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
19730 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
19731 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
19732 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
19733 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
19734 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
19735 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
19736 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
19737 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
19738 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
19739 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
19740 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
19741 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
19742 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
19743 V1DI_FTYPE_V2SI_V2SI.
19744 (bdesc_2arg): Moved to ...
19745 (bdesc_args): Here.
19746 (ix86_init_mmx_sse_builtins): Updated.
19747 (ix86_expand_args_builtin): Updated. Take a pointer
19748 to const struct builtin_description. Handle comparison
19750 (ix86_expand_sse_compare): Take a new argument for swapping operands.
19751 (ix86_expand_builtin): Updated.
19753 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
19754 (ssse3_pmaddubsw128): This.
19755 (ssse3_pmaddubswv4hi3): Renamed to ...
19756 (ssse3_pmaddubsw): This.
19758 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
19759 (__builtin_ia32_packssdw128): Likewise.
19760 (__builtin_ia32_packuswb128): Likewise.
19761 (__builtin_ia32_pmaddubsw): Likewise.
19762 (__builtin_ia32_pmaddubsw128): Likewise.
19764 2008-04-30 Richard Guenther <rguenther@suse.de>
19766 PR tree-optimization/14847
19767 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
19768 (recognize_bits_test): Use it.
19769 (recognize_single_bit_test): Likewise.
19771 2008-04-30 Martin Jambor <mjambor@suse.cz>
19773 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
19774 instead of setting number of formal parameters to zero.
19775 (ipcp_init_stage): Do not set the number of actual parameters to zero
19777 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
19778 which are called with variable number of arguments.
19779 (ipcp_insert_stage): Explicitely skipping all nodes which are
19780 called with variable number of arguments.
19781 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
19782 number of parameters.
19784 * ipa-prop.h (struct ipa_node_params): Added flag
19785 called_with_var_arguments
19786 (ipa_set_param_count): Added. Changed sole setter to use it.
19787 (ipa_get_param_count): Added. All readers of param_count
19788 converted to use it instead.
19789 (ipa_set_called_with_variable_arg): Added.
19790 (ipa_is_called_with_var_arguments): Added.
19791 (ipa_get_ith_param): Added. All readers of param_decls converted
19793 (ipa_set_cs_argument_count): Added, sole writer to argument_count
19795 (ipa_get_cs_argument_count): Added, all readers of argument_count
19797 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
19800 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
19801 (struct ipcp_lattice): Renamed cval_type to type
19802 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
19804 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
19805 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
19806 (ipcp_insert_stage): Changed the type of variable cvalue to tree
19807 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
19808 (build_const_val): Changed the type of parameter cvalue to tree
19809 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
19810 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
19812 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
19815 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
19816 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
19817 (ipa_add_method): Renamed to ipa_push_func_to_list
19818 (ipa_remove_method): Renamed to ipa_pop_func_from_list
19819 (ipa_callsite_param_count): Removed.
19820 (ipa_callsite_param_count_set): Removed.
19821 (ipa_callsite_param): Removed.
19822 (ipa_callsite_callee): Removed.
19823 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
19824 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
19825 (ipa_method_formal_count): Removed.
19826 (ipa_method_formal_count_set): Removed.
19827 (ipa_method_get_tree): Removed.
19828 (ipa_method_tree_map_create): Removed.
19829 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
19830 (ipa_create_param_decls_array): Creates the array itself
19831 (ipa_create_param_decls_array): Temporary variable info instead of
19832 a few dereferences.
19833 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
19834 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
19835 (get_type): Removed.
19836 (ipa_jf_get_info_type): Removed.
19837 (ipa_node_create): Renamed to ipa_create_node_params
19838 (ipa_free): Renamed to ipa_free_all_node_params
19839 (ipa_nodes_create): Renamed to ipa_create_all_node_params
19840 (ipa_edges_create): Renamed to ipa_create_all_edge_args
19841 (ipa_edges_free): Renamed to ipa_free_all_edge_args
19842 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
19843 (ipa_free_all_node_params): Deallocation to jump_functions moved to
19844 ipa_free_all_edge_args
19845 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
19846 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
19847 (ipa_create_methodlist_node): Removed.
19848 (ipa_methodlist_method): Removed.
19849 (ipa_methodlist_method_set): Removed.
19850 (ipa_methodlist_next_method): Removed.
19851 (ipa_methodlist_next_method_set): Removed.
19852 (ipa_method_is_modified): Removed.
19853 (ipa_method_modify_create): Removed.
19854 (ipa_method_modify_init): Temporary variable info instead of a few
19856 (ipa_detect_param_modifications): Temporary variable info instead of
19857 a few dereferences.
19858 (ipa_compute_jump_functions): Temporary variable info instead of
19859 a few dereferences.
19860 (ipa_method_modify_set): Removed.
19861 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
19862 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
19863 than craph_node as the first parameter.
19864 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
19865 (ipa_method_modify_init): Removed.
19866 (ipa_compute_jump_functions): Added a temp variable instead of
19867 repeatadly dereferencing the cgraph_edge.aux pointer
19868 (ipa_callsite_param_set_type): Removed.
19869 (ipa_compute_jump_functions): i renamed to index and moved to
19871 (ipa_callsite_param_set_info_type_formal): Removed.
19872 (ipa_callsite_param_set_info_type): Removed.
19873 (ipa_callsite_param_map_create): Removed.
19874 (ipa_callsite_tree): Removed.
19875 (ipa_callsite_caller): Removed.
19876 (ipa_pop_func_from_list): return_method removed to return_func
19878 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
19879 prefixed all values with IPA_. Changed all users.
19880 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
19881 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
19882 and FORMAL_IPATYPE IPA_PASS_THROUGH.
19883 (union parameter_info): Renamed to jump_func_value.
19884 (union jump_func_value): Renamed value to constant
19885 (struct ipa_jump_func): Renamed info_type to value
19886 (struct ipa_node): Renamed to ipa_node_params
19887 (struct ipa_node_params): Renamed ipa_arg_num to param_count
19888 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
19889 (struct ipa_node_params): Renamed ipa_mod to modified_flags
19890 (struct ipa_edge): Renamed to ipa_edge_args
19891 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
19892 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
19893 (struct ipa_methodlist): Renamed to ipa_func_list
19894 (struct ipa_func_list): method_p renamed to node, next_method
19896 (ipa_methodlist_p): Removed, switched all users to struct pointer
19897 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
19899 2008-04-30 Alan Modra <amodra@bigpond.net.au>
19901 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
19902 (rs6000_emit_epilogue): Use backchain to restore only when we
19903 have a large frame. Make use of frame pointer to restore if we
19904 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
19906 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
19908 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
19909 Add mode to zero_extract.
19910 (sign bit tests peepholes): (Ditto.).
19912 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
19914 * config/i386/i386.c (ix86_builtins): Replace Prescott New
19915 Instructions in comments with SSE3.
19916 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
19917 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
19918 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
19919 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
19920 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
19921 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
19922 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
19923 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
19924 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
19925 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
19926 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
19927 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
19928 (bdesc_sse_args): Renamed to ...
19929 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
19930 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
19931 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
19932 IX86_BUILTIN_FABSQ.
19933 (bdesc_1arg): Moved to ...
19934 (bdesc_args): Here.
19935 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
19936 Instructions in comments with SSE3.
19937 (ix86_expand_sse_operands_builtin): Renamed to ...
19938 (ix86_expand_args_builtin): This. Updated.
19939 (ix86_expand_unop1_builtin): Update comments.
19940 (ix86_expand_builtin): Updated.
19942 2008-04-29 Richard Guenther <rguenther@suse.de>
19944 PR tree-optimization/36078
19945 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
19946 Update virtual SSA form after cleaning up the CFG.
19948 2008-04-29 Richard Guenther <rguenther@suse.de>
19950 PR middle-end/15255
19951 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
19953 2008-04-29 Richard Guenther <rguenther@suse.de>
19955 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
19956 (compute_may_aliases): Do not call finalize_ref_all_pointers.
19957 (compute_flow_insensitive_aliasing): Do not treat
19958 PTR_IS_REF_ALL pointers special.
19959 (get_smt_for): Likewise.
19960 (may_alias_p): Re-structure.
19961 (is_escape_site): A ref-all pointer conversion is not an escape site.
19962 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
19963 PTR_IS_REF_ALL pointers special.
19964 * tree-ssa-structalias.h (struct alias_info): Remove
19965 ref_all_symbol_mem_tag field.
19966 (PTR_IS_REF_ALL): Remove.
19968 2008-04-29 Richard Guenther <rguenther@suse.de>
19970 PR middle-end/36077
19971 * fold-const.c (extract_muldiv_1): In combining division constants
19972 make sure to never overflow.
19974 2008-04-29 Nick Clifton <nickc@redhat.com>
19976 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
19978 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19981 * optc-gen.awk: Work around HP-UX/IA awk bug.
19983 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
19985 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
19988 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
19991 * config/i386/i386.md
19992 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
19993 Change operand 1 predicate to nonimmediate_operand.
19995 2008-04-28 Jakub Jelinek <jakub@redhat.com>
19998 * dwarf2out.c (struct die_struct): Mark as chain_circular through
20000 * gengtype.c (walk_type, write_func_for_structure): Handle
20002 * doc/gty.texi: Document chain_circular.
20004 2008-04-28 Richard Guenther <rguenther@suse.de>
20006 PR tree-optimization/36066
20007 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
20010 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
20013 * config/i386/i386.md
20014 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
20015 Use match_scratch instead of match_operand for operands 3 and 4.
20017 2008-04-27 Richard Guenther <rguenther@suse.de>
20019 PR tree-optimization/18754
20020 PR tree-optimization/34223
20021 * tree-pass.h (pass_complete_unrolli): Declare.
20022 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
20023 loop size before and after unconditionally of UL_NO_GROWTH in effect.
20024 Rewrite loop into loop closed SSA form if it is not already.
20025 (tree_unroll_loops_completely): Re-structure to iterate over
20026 innermost loops with intermediate CFG cleanups.
20027 Unroll outermost loops only if requested or the code does not grow
20029 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
20030 loops are available.
20031 (tree_vectorize): Instead do so here.
20032 (tree_complete_unroll): Also unroll outermost loops.
20033 (tree_complete_unroll_inner): New function.
20034 (gate_tree_complete_unroll_inner): Likewise.
20035 (pass_complete_unrolli): New pass.
20036 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
20037 uses outside of the loop.
20038 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
20039 form if it is available.
20040 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
20041 * passes.c (init_optimization_passes): Schedule complete inner
20042 loop unrolling pass before the first CCP pass after final inlining.
20044 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
20046 * targhooks.h (default_emutls_var_fields,
20047 default_emutls_var_init): Declare.
20048 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
20049 * target.h (struct gcc_target): Add struct emutls member.
20050 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
20051 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
20052 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
20053 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
20054 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
20055 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
20056 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
20057 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
20058 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
20059 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
20060 emit debug information.
20061 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
20062 * varasm.c: Include targhooks.h.
20063 (emutls_object_section, emutls_tmpl_section): New.
20064 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
20065 (EMUTLS_SEPARATOR): New.
20066 (prefix_name): New.
20067 (get_emutls_object_name): New.
20068 (default_emutls_var_fields): New, broken out of ...
20069 (get_emutls_object_type): ... here. Adjust to use target hooks.
20070 (get_emutls_init_templ_addr): Adjust to use target hooks.
20071 (emutls_decl): Adjust to use target hooks.
20072 (emutls_finish): Likewise.
20073 (default_emutls_var_init): New, broken out of ...
20074 (assemble_variable): ... here. Adjust to use target hooks.
20075 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
20076 SECCAT_EMUTLS_TMPL.
20077 * c-common.c (handle_section_attribute): Prevent overriding
20078 sections for emulated tls with special sections.
20079 * config/i386/i386.c (x86_64_elf_select_section): Add
20080 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
20081 (x86_64_elf_unique_section): Likewise.
20082 * config/vxworks.c: Include tree.h.
20083 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
20084 (vxworks_override_options): Set TLS scheme.
20085 * doc/tm.texi (Emulated TLS): New node.
20087 2008-04-26 Simon Baldwin <simonb@google.com>
20090 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
20091 with propagated string constants.
20093 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
20095 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
20096 constraint for operand 2 when operand 0 is memory operand.
20097 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
20098 operand 0 is memory operand.
20099 (fix_trunc<mode>_i387_with_temp): Ditto.
20100 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
20101 operand 2 when operand 1 is memory operand.
20102 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
20103 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
20104 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
20105 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
20106 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
20107 operands 2,3 and 4 when operand 1 is memory operand.
20108 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
20110 (fistdi2_floor_with_temp): Ditto.
20111 (fist<mode>2_floor_with_temp): Ditto.
20112 (fistdi2_ceil_with_temp): Ditto.
20113 (fist<mode>2_ceil_with_temp): Ditto.
20114 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
20116 2008-04-26 David Daney <ddaney@avtrex.com>
20118 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
20120 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
20121 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
20122 UNSPEC_UPDATE_GOT_VERSION): Renumber.
20123 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
20124 (compare_and_swap_12): New insn.
20125 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
20126 * config/mips/mips.c (mips_force_binary): New function.
20127 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
20128 (mips_expand_compare_and_swap_12): New function.
20129 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
20131 2008-04-25 Jan Hubicka <jh@suse.cz>
20134 * cfgexpand.c (pass_expand): Turn into RTL pass.
20135 * passes.c (execute_one_pass): Do pass typechecking after execution.
20136 * tree-pass.h (pass_expand): Turn into RTL pass.
20138 * function.h (struct rtl_data): Move here fields
20139 accesses_prior_frames, calls_eh_return, saves_all_registers,
20140 has_nonlocal_goto, has_asm_statement, is_thunk,
20141 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
20142 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
20143 arg_pointer_save_area_init from struct function; turn into bool.
20144 (struct function): Move
20145 calls_eh_return, saves_all_registers, has_nonlocal_goto,
20146 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
20147 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
20148 tail_call_emit, arg_pointer_save_area_init
20149 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
20150 (current_function_returns_struct, current_function_returns_pcc_struct,
20151 current_function_calls_setjmp, current_function_calls_alloca,
20152 current_function_accesses_prior_frames,
20153 current_function_calls_eh_return, current_function_is_thunk,
20154 current_function_stdarg, current_function_profile,
20155 current_function_limit_stack, current_function_uses_pic_offset_table,
20156 current_function_uses_const_pool, current_function_has_nonlocal_label,
20157 current_function_saves_all_registers,
20158 current_function_has_nonlocal_goto,
20159 current_function_has_asm_statement): Remove accesor macros.
20160 * ra-conflict.c (global_conflicts): Update.
20161 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
20162 (suitable_for_tail_call_opt_p): Update.
20163 * builtins.c (expand_builtin_return_addr): Update.
20164 (expand_builtin_setjmp_setup): Update.
20165 (expand_builtin_nonlocal_goto): Update.
20166 * final.c (final_start_function): Update.
20167 (profile_function): Update.
20168 (leaf_function_p): Update.
20169 (only_leaf_regs_used): Update.
20170 * df-scan.c (df_get_exit_block_use_set): Update.
20171 * dojump.c (clear_pending_stack_adjust): Update.
20172 * tree-stdarg.c (gate_optimize_stdarg): Update.
20173 * gimple-low.c (lower_function_body): Update.
20174 * global.c (compute_regsets): Update.
20175 (global_alloc): Update.
20176 * dwarf2out.c (dwarf2out_begin_prologue): Update.
20177 * expr.c (expand_assignment): Update.
20178 * dse.c (dse_step0): Update.
20179 (dse_step1): Update.
20180 * c-decl.c (store_parm_decls): Update.
20181 * local-alloc.c (combine_regs): Update.
20182 (find_free_reg): Update.
20183 * function.c (assign_parms_augmented_arg_list): Update.
20184 (assign_parm_find_data_types): Update.
20185 (assign_parms): Update.
20186 (allocate_struct_function): Update.
20187 (expand_function_start): Update.
20188 (expand_function_end): Update.
20189 (get_arg_pointer_save_area): Update.
20190 (thread_prologue_and_epilogue_insns): Update.
20191 (rest_of_match_asm_constraints): Update.
20192 * stor-layout.c (variable_size): Update.
20193 * gcse.c (gcse_main): Update.
20194 (bypass_jumps): Update.
20195 * gimplify.c (gimplify_function_tree): Update.
20196 * calls.c (emit_call_1): Update.
20197 (expand_call): Update.
20198 * bt-load.c (compute_defs_uses_and_gen): Update.
20199 * except.c (sjlj_assign_call_site_values): Update.
20200 (sjlj_emit_function_enter): Update.
20201 (can_throw_external): Update.
20202 (set_nothrow_function_flags): Update.
20203 (expand_builtin_unwind_init): Update.
20204 (expand_eh_return): Update.
20205 (convert_to_eh_region_ranges): Update.
20206 (output_function_exception_table): Update.
20207 * emit-rtl.c (gen_tmp_stack_mem): Update.
20208 * cfgexpand.c (expand_used_vars): Update.
20209 (tree_expand_cfg): Update.
20210 * cfgcleanup.c (rest_of_handle_jump): Update.
20211 * explow.c (allocate_dynamic_stack_space): Update.
20212 * varasm.c (assemble_start_function): Update.
20213 (force_const_mem): Update.
20214 (mark_constant_pool): Update.
20215 * tree-optimize.c (tree_rest_of_compilation): Update.
20216 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
20217 * tree-cfg.c (notice_special_calls): Update.
20218 (is_ctrl_altering_stmt): Update.
20219 (tree_can_make_abnormal_goto): Update.
20220 (tree_purge_dead_abnormal_call_edges): Update.
20221 * config/alpha/predicates.md: Update.
20222 * config/alpha/alpha.c (alpha_sa_mask): Update.
20223 (alpha_sa_size): Update.
20224 (alpha_does_function_need_gp): Update.
20225 (alpha_expand_prologue): Update.
20226 (alpha_start_function): Update.
20227 (alpha_output_function_end_prologue): Update.
20228 (alpha_expand_epilogue): Update.
20229 * config/frv/frv.c (frv_stack_info): Update.
20230 (frv_expand_epilogue): Update.
20231 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
20232 (s390_register_info): Update.
20233 (s390_frame_info): Update.
20234 (s390_init_frame_layout): Update.
20235 (s390_can_eliminate): Update.
20236 (save_gprs): Update.
20237 * config/spu/spu.c (spu_split_immediate): Update.
20238 (need_to_save_reg): Update.
20239 (spu_expand_prologue): Update.
20240 (spu_expand_epilogue): Update.
20241 * config/sparc/sparc.md: Update.
20242 * config/sparc/sparc.c (eligible_for_return_delay): Update.
20243 (sparc_tls_got): Update.
20244 (legitimize_pic_address): Update.
20245 (sparc_emit_call_insn): Update.
20246 (sparc_expand_prologue): Update.
20247 (output_return): Update.
20248 (print_operand): Update.
20249 (sparc_function_ok_for_sibcall): Update.
20250 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
20251 * config/m32r/m32r.md: Update.
20252 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
20253 (m32r_compute_frame_size): Update.
20254 (m32r_expand_prologue): Update.
20255 (m32r_expand_epilogue): Update.
20256 (m32r_legitimize_pic_address): Update.
20257 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
20258 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
20259 * config/i386/i386.c (ix86_frame_pointer_required): Update.
20260 (gen_push): Update.
20261 (ix86_save_reg): Update.
20262 (ix86_compute_frame_layout): Update.
20263 (ix86_expand_prologue): Update.
20264 (ix86_expand_epilogue): Update.
20265 * config/sh/sh.c (output_stack_adjust): Update.
20266 (calc_live_regs): Update.
20267 (sh5_schedule_saves): Update.
20268 (sh_expand_prologue): Update.
20269 (sh_expand_epilogue): Update.
20270 (sh_setup_incoming_varargs): Update.
20271 (sh_allocate_initial_value): Update.
20272 (sh_get_pr_initial_val): Update.
20273 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
20274 * config/sh/sh.md (label:): Update.
20275 * config/avr/avr.c (out_movhi_mr_r): Update.
20276 * config/crx/crx.h (enum): Update.
20277 * config/xtensa/xtensa.h (along): Update.
20278 * config/stormy16/stormy16.c Update.
20279 (xstormy16_compute_stack_layout): Update.
20280 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
20281 (fr30_expand_prologue): Update.
20282 * config/cris/cris.c (cris_conditional_register_usage): Update.
20283 (cris_reg_saved_in_regsave_area): Update.
20284 (cris_initial_frame_pointer_offset): Update.
20285 (cris_simple_epilogue): Update.
20286 (cris_expand_prologue): Update.
20287 (cris_expand_epilogue): Update.
20288 (cris_expand_pic_call_address): Update.
20289 (cris_asm_output_symbol_ref): Update.
20290 (cris_asm_output_label_ref): Update.
20291 * config/cris/cris.md Update.
20292 * config/iq2000/iq2000.c (compute_frame_size): Update.
20293 (iq2000_expand_epilogue): Update.
20294 * config/mt/mt.h (save_direction): Update.
20295 * config/mn10300/mn10300.c (mn10300_function_value): Update.
20296 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
20297 (ia64_secondary_reload_class): Update.
20298 * config/m68k/m68k.c (m68k_save_reg): Update.
20299 (m68k_expand_prologue): Update.
20300 (m68k_expand_epilogue): Update.
20301 (legitimize_pic_address): Update.
20302 * config/rs6000/rs6000.c (rs6000_got_register): Update.
20303 (first_reg_to_save): Update.
20304 (first_altivec_reg_to_save): Update.
20305 (compute_vrsave_mask): Update.
20306 (compute_save_world_info): Update.
20307 (rs6000_stack_info): Update.
20308 (spe_func_has_64bit_regs_p): Update.
20309 (rs6000_ra_ever_killed): Update.
20310 (rs6000_emit_eh_reg_restore): Update.
20311 (rs6000_emit_allocate_stack): Update.
20312 (rs6000_emit_prologue): Update.
20313 (rs6000_emit_epilogue): Update.
20314 (rs6000_output_function_epilogue): Update.
20315 (output_profile_hook): Update.
20316 (rs6000_elf_declare_function_name): Update.
20317 * config/rs6000/rs6000.h (rs6000_args): Update.
20318 * config/rs6000/rs6000.md: Update.
20319 * config/mcore/mcore.c (mcore_expand_prolog): Update.
20320 * config/arc/arc.c (arc_output_function_epilogue): Update.
20321 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
20322 * config/darwin.c (machopic_function_base_name): Update.
20323 * config/score/score3.c (score3_compute_frame_size): Update.
20326 (score3_epilogue): Update.
20327 * config/score/score7.c (score7_compute_frame_size): Update.
20328 (score7_prologue): Update.
20329 (score7_epilogue): Update.
20330 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
20331 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
20332 * config/arm/arm.c (use_return_insn): Update.
20333 (require_pic_register): Update.
20334 (arm_load_pic_register): Update.
20335 (arm_compute_save_reg0_reg12_mask): Update.
20336 (arm_compute_save_reg_mask): Update.
20337 (thumb1_compute_save_reg_mask): Update.
20338 (output_return_instruction): Update.
20339 (arm_output_function_prologue): Update.
20340 (arm_output_epilogue): Update.
20341 (arm_get_frame_offsets): Update.
20342 (arm_expand_prologue): Update.
20343 (thumb_pushpop): Update.
20344 (thumb_exit): Update.
20345 (thumb1_expand_prologue): Update.
20346 (thumb1_expand_epilogue): Update.
20347 (arm_unwind_emit): Update.
20348 (arm_output_fn_unwind): Update.
20349 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
20350 * config/arm/arm.md: Update.
20351 * config/pa/pa.md: Update.
20352 * config/pa/pa.c (legitimize_pic_address): Update.
20353 (compute_frame_size): Update.
20354 (hppa_expand_prologue): Update.
20355 (hppa_expand_epilogue): Update.
20356 (borx_reg_operand): Update.
20357 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
20358 (HARD_REGNO_RENAME_OK): Update.
20359 * config/mips/mips.c (mips_global_pointer): Update.
20360 (mips_save_reg_p): Update.
20361 (mips_compute_frame_info): Update.
20362 (mips_frame_pointer_required): Update.
20363 (mips_expand_prologue): Update.
20364 (mips_expand_epilogue): Update.
20365 (mips_can_use_return_insn): Update.
20366 (mips_reorg_process_insns): Update.
20367 * config/v850/v850.c (compute_register_save_size): Update.
20368 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
20369 * config/mmix/mmix.c (along): Update.
20370 (mmix_expand_epilogue): Update.
20371 * config/bfin/bfin.c (legitimize_pic_address): Update.
20372 (must_save_p): Update.
20373 (stack_frame_needed_p): Update.
20374 (add_to_reg): Update.
20375 (bfin_expand_prologue): Update.
20376 * stmt.c (expand_asm_operands): Update.
20377 * reload1.c (reload): Update.
20378 (init_elim_table): Update.
20380 2008-04-25 Bob Wilson <bob.wilson@acm.org>
20382 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
20384 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
20386 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
20387 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
20388 (mov<mode>): Removed.
20389 (*movv4sf_internal): Likewise.
20390 (*movv2df_internal): Likewise.
20392 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
20394 * config.gcc (crx-*-elf): Remove deprecation.
20396 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
20398 * config/i386/cygming-crtend.c (register_frame_ctor): Register
20399 __gcc_deregister_frame with atexit.
20400 (deregister_frame_dtor): Remove.
20402 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
20403 Nathan Sidwell <nathan@codesourcery.com>
20405 * config/rs6000/rs6000.opt (mspe): Remove Var property.
20407 * config/rs6000/rs6000.h (rs6000_spe): Declare.
20408 (rs6000_isel): Likewise.
20409 * config/rs6000/rs6000.c (rs6000_spe): New variable.
20410 (rs6000_isel): New variable.
20411 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
20413 2008-04-24 Jakub Jelinek <jakub@redhat.com>
20416 * c-common.c (handle_vector_size_attribute): Call
20417 lang_hooks.types.reconstruct_complex_type instead of
20418 reconstruct_complex_type.
20419 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
20420 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
20421 * langhooks.h (struct lang_hooks_for_types): Add
20422 reconstruct_complex_type hook.
20423 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
20424 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
20426 2008-04-24 Richard Guenther <rguenther@suse.de>
20428 * c-common.h (check_builtin_function_arguments): Declare.
20429 * c-common.c (validate_nargs): New function.
20430 (check_builtin_function_arguments): Likewise.
20431 * c-typeck.c (build_function_call): Call
20432 check_builtin_function_arguments.
20433 * builtins.c (fold_builtin_classify): Remove error reporting code.
20434 (fold_builtin_unordered_cmp): Likewise.
20435 (fold_builtin_1): Likewise.
20436 (fold_builtin_n): Likewise.
20438 2008-04-24 Jakub Jelinek <jakub@redhat.com>
20440 PR tree-optimization/36008
20441 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
20442 the original op1, rather than delta by step.
20444 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
20445 Sebastian Pop <sebastian.pop@amd.com>
20447 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
20448 eliminate_local_variables_stmt, eliminate_local_variables,
20449 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
20450 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
20451 of code delimited by two edges in the CFG.
20452 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
20453 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
20454 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
20455 the case of parallelisation of reductions.
20456 (expr_invariant_in_region_p): New.
20458 * tree-flow.h (gather_blocks_in_sese_region): Declared.
20459 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
20461 2008-04-24 Ira Rosen <irar@il.ibm.com>
20462 Richard Guenther <rguenther@suse.de>
20464 PR tree-optimization/36034
20465 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
20466 incapable of dealing with loads with gaps.
20468 2008-04-24 Rafael Espíndola <espindola@google.com>
20470 * tree-flow.h (vrp_evaluate_conditional): Change signature.
20471 * tree-ssa-propagate.c (fold_predicate_in): Update call to
20472 vrp_evaluate_conditional.
20473 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
20474 (vrp_evaluate_conditional): Split the cond argument.
20475 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
20476 (simplify_stmt_for_jump_threading): Update call to
20477 vrp_evaluate_conditional.
20479 2008-04-24 Ira Rosen <irar@il.ibm.com>
20481 PR tree-optimization/35982
20482 * tree-vect-analyze.c (vect_check_interleaving): Check that the
20483 interleaved data-refs are of the same type.
20485 2008-04-24 Danny Smith <dannysmith@users.net>
20487 * c-format.c (check_format_info_main): Use strncmp rather than a
20488 magic prefix to handle multichar length specs.
20489 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
20490 Don't prefix "I64" and "I32" with '\0'.
20492 2008-04-24 Jakub Jelinek <jakub@redhat.com>
20495 * config/i386/i386.c (init_cumulative_args): Don't pass anything
20496 in registers for -m32 only if stdarg_p (fntype).
20498 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
20500 PR rtl-optimization/36006
20501 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
20502 temp to op0 in order to avoid invalid rtx sharing.
20504 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20506 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
20507 check TREE_INVARIANT.
20508 * tree-gimple.c (is_gimple_address): New.
20509 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
20510 * tree-gimple.h (is_gimple_address): New.
20511 * tree.h (decl_address_invariant_p): New.
20512 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
20513 (build_string): Likewise.
20514 (decl_address_invariant_p): New, from is_gimple_invariant_address.
20515 (tree_invariant_p_1): Likewise.
20516 (save_expr): Use it.
20517 (tree_invariant_p): New.
20518 (skip_simple_arithmetic): Use it.
20519 (stabilize_reference_1): Use it.
20520 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
20522 (build1_stat): Drop code to compute TREE_INVARIANT.
20523 (build2_stat): Drop code to compute TREE_INVARIANT.
20524 (build3_stat): Drop code to compute TREE_INVARIANT.
20525 (build4_stat): Drop code to compute TREE_INVARIANT.
20526 (build5_stat): Drop code to compute TREE_INVARIANT.
20527 (build7_stat): Drop code to compute TREE_INVARIANT.
20528 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
20529 * tree.h (struct tree_base): Remove invariant_flag.
20530 (TREE_INVARIANT): Remove.
20531 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
20532 (fold_builtin_expect): Check TREE_CONSTANT.
20533 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
20534 * c-tree.h (c_expr_to_decl): Drop third parameter.
20535 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
20536 (build_c_cast): Don't set TREE_INVARIANT.
20537 (pop_init_level): Don't set TREE_INVARIANT.
20538 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
20539 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
20541 (gimplify_init_constructor): Don't set TREE_INVARIANT.
20542 (gimplify_addr_expr): Adjust comment.
20543 * tree-mudflap.c (mf_build_string):
20544 * print-tree.c (print_node): Don't print TREE_INVARIANT.
20545 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
20546 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
20547 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
20548 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
20549 * langhooks.h (struct lang_hooks): Drop third parameter from
20552 2008-04-23 Richard Guenther <rguenther@suse.de>
20554 PR tree-optimization/27799
20555 PR tree-optimization/32921
20556 PR tree-optimization/32624
20557 * tree-ssa-structalias.c (merge_smts_into): Only merge the
20558 SMTs aliases and the tag itself into the solution.
20559 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
20560 merge the points-to solution back into the SMT aliases.
20561 (may_alias_p): Use alias_set_subset_of instead of
20562 aliases_conflict_p. A pointer which points to
20563 memory with alias set zero may access any variable.
20565 2008-04-23 Richard Guenther <rguenther@suse.de>
20567 * alias.c (alias_set_subset_of): Correctly handle asking
20568 if zero is a subset of an alias set with zero child.
20569 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
20570 (compute_flow_insensitive_aliasing): Correctly walk all
20571 pointers. Do not unnecessarily union sets.
20573 2008-04-23 Richard Guenther <rguenther@suse.de>
20575 PR middle-end/36021
20576 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
20578 2008-04-22 Tomas Bily <tbily@suse.cz>
20580 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
20582 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
20584 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
20585 * tree-ssa-structalias.c (get_constraint_for): Likewise.
20586 * tree-inline.c (estimate_num_insns_1): Likewise.
20587 * varasm.c (const_hash_1, compare_constant, copy_constant)
20588 (compute_reloc_for_constant, output_addressed_constants): Likewise.
20589 * emit-rtl.c (component_ref_for_mem_expr)
20590 (set_mem_attributes_minus_bitpos): Likewise.
20591 * expr.c (highest_pow2_factor, expand_expr_real_1, )
20592 (is_aligning_offset): Likewise.
20593 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
20594 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
20595 * dojump.c (do_jump): Likewise.
20596 * builtins.c (get_pointer_alignment, get_memory_rtx)
20597 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
20598 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
20600 2008-04-23 Jakub Jelinek <jakub@redhat.com>
20602 PR rtl-optimization/36017
20603 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
20604 expanding the library call.
20606 2008-04-22 Ian Lance Taylor <iant@google.com>
20608 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
20609 than size_in_bytes.
20611 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
20613 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
20614 of LR/CTR moves for Power6.
20616 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
20618 PR middle-end/36003
20619 * passes.c (init_optimization_passes): Remove
20620 pass_fast_rtl_byte_dce.
20622 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
20625 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
20626 builtin functions to generate faster code.
20627 (_mm_cvtpu16_ps): Ditto.
20628 (_mm_cvtpi32x2_ps): Ditto.
20630 2008-04-22 Nick Clifton <nickc@redhat.com>
20632 * common.opt (ftree-loop-distribution): Add Optimization
20635 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
20636 (frv_expand_builtin_va_start): Likewise.
20638 * config/arm/arm.c (thumb_find_work_register): Fix location of
20639 argument register count.
20641 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
20643 Support scheduling for ColdFire V1 and V3 microarchitecture.
20644 Improve scheduling of multiplication instructions.
20646 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
20647 (mac): New instruction attribute.
20648 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
20649 (m68k_sched_mac): New variable.
20650 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
20651 Handle cfv1 and cfv3.
20652 (max_insn_size): New static variable.
20653 (struct _sched_ib): New type.
20654 (sched_ib): New static variable.
20655 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
20656 to fields of 'struct _sched_ib sched_ib'. Update all uses.
20657 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
20659 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
20660 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
20661 new variables. Update.
20662 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
20663 Add modeling of cfv3 instruction buffer. Update.
20664 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
20665 * config/m68k/m68k.h (TUNE_CFV3): New macro.
20666 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
20667 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
20668 a particular reservation applies to.
20669 (type2): Reorganize attribute values. Rename alu to alu_reg,
20670 alu_l to alu, move_l to omove. Join move to alu. Split mul
20671 to mul_l and mul_w.
20672 (cf_ib_*): Simplify description of instruction buffer.
20673 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
20674 (cf_mem): Split into cf_mem1 and cf_mem2.
20675 (cf_v2_move_??): Rename to cfv12_alu_??.
20676 (cf_v2_move_l_??): Rename to cfv12_omove_??.
20677 (cf_v2_mul_??): Remove reservations.
20678 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
20679 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
20680 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
20682 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
20683 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
20684 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
20685 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
20686 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
20687 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
20688 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
20689 expansions of the above reservations for instructions of sizes
20692 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
20694 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
20696 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
20698 * coverage.c: Include tree-pass.h.
20699 (coverage_counter_alloc): Print da_file_name to the dump file.
20701 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
20703 * sbitmap.c (sbitmap_range_empty_p): New function.
20704 * sbitmap.h (sbitmap_range_empty_p): New function.
20705 * bitmap.h: Now includes obstack.h.
20707 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
20708 Kenneth Zadeck <zadeck@naturalbridge.com>
20710 * dbgcnt.def (ra_byte_scan): Added.
20711 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
20712 when the last hit happens for a counter.
20713 * timevar.def (TV_DF_BYTE_LR): New variable.
20714 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
20715 * passes.c (pass_fast_rtl_byte_dce): New pass.
20716 * fwprop.c (update_df): Added mode to call df_ref_create.
20717 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
20718 DF_REF_EXTRACT_OFFSET.
20719 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
20720 DF_BYTE_LR_OUT, df_byte_lr): New macro.
20722 (df_ref_extract): Added mode field.
20723 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
20724 DF_REF_EXTRACT_OFFSET.
20725 (DF_REF_EXTRACT_MODE): New macro.
20726 (df_byte_lr_bb_info): New structure.
20727 (df_print_byte_regset, df_compute_accessed_bytes,
20728 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
20729 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
20730 df_byte_lr_simulate_uses,
20731 df_byte_lr_simulate_artificial_refs_at_top,
20732 df_byte_lr_simulate_artificial_refs_at_end,
20733 df_compute_accessed_bytes): New function.
20734 (df_ref_create): Add parameter.
20735 (df_byte_lr_get_bb_info): New inline function.
20736 * df-scan.c (df_ref_record, df_uses_record,
20737 df_ref_create_structure): Added mode parameter.
20738 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
20739 df_defs_record, df_uses_record, df_get_conditional_uses,
20740 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
20741 df_entry_block_defs_collect, df_exit_block_uses_collect):
20742 Added mode parameter to calls to df_ref_record, df_uses_record,
20743 df_ref_create_structure.
20744 (df_ref_equal_p, df_ref_compare): Added test for modes.
20745 (df_ref_create_structure): Added code to set mode. Renamed
20746 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
20747 DF_REF_EXTRACT_OFFSET.
20748 * df-core.c (df_print_byte_regset): New function.
20749 * df-byte-scan.c: New file.
20750 * df-problems.c (df_rd_transfer_function): Removed unnecessary
20751 calls to BITMAP_FREE.
20752 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
20753 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
20754 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
20755 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
20756 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
20757 df_byte_lr_local_compute, df_byte_lr_init,
20758 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
20759 df_byte_lr_transfer_function, df_byte_lr_free,
20760 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
20761 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
20762 df_byte_lr_simulate_uses,
20763 df_byte_lr_simulate_artificial_refs_at_top,
20764 df_byte_lr_simulate_artificial_refs_at_end): New function.
20765 * dce.c (byte_dce_process_block): New function.
20766 (dce_process_block): au is now passed in rather than computed
20767 locally. Changed loops that look at artificial defs to not look
20768 for conditional or partial ones, because there never are any.
20769 (fast_dce): Now is able to drive byte_dce_process_block or
20770 dce_process_block depending on the kind of dce being done.
20771 (rest_of_handle_fast_dce): Add parameter to fast_dce.
20772 (rest_of_handle_fast_byte_dce): New function.
20773 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
20774 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
20776 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
20779 * gcc.h: Added fortran options that take arguments to
20780 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
20783 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
20785 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
20786 scalarization if on the LHS and not a full access.
20788 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20790 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
20792 2008-04-18 Rafael Espíndola <espindola@google.com>
20794 * tree-vrp.c (find_case_label_index): Fix the binary search.
20795 (find_case_label_range): New.
20796 (vrp_visit_switch_stmt): Use find_case_label_range.
20797 (simplify_switch_using_ranges): Use find_case_label_range.
20799 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
20801 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
20802 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
20804 2008-04-18 Tom Tromey <tromey@redhat.com>
20807 * doc/cpp.texi (Implementation-defined behavior): Mention
20810 2008-04-18 Ian Lance Taylor <iant@google.com>
20812 * fold-const.c (pointer_may_wrap_p): New static function.
20813 (fold_comparison): Add another test for pointer overflow. Use
20814 pointer_may_wrap_p to disable some false positives.
20816 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
20818 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
20819 (fname_as_string): Match updated cpp_interpret_string prototype.
20820 (fix_string_type): Support char16_t* and char32_t*.
20821 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
20822 derivative) nodes. Register as builtin if C++0x.
20823 (c_parse_error): Support CPP_CHAR{16,32}.
20824 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
20825 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
20826 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
20827 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
20828 CTI_CHAR32_ARRAY_TYPE>: New elements.
20829 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
20830 char32_type_node, signed_char32_type_node, char16_array_type_node,
20831 char32_array_type_node): New defines.
20832 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
20833 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
20834 (lex_string): Support CPP_STRING{16,32}, match updated
20835 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
20836 (lex_charconst): Support CPP_CHAR{16,32}.
20837 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
20838 and CPP_STRING{16,32}.
20840 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
20843 * aclocal.m4: Regenerate.
20844 * configure: Regenerate.
20846 2008-04-18 Jan Hubicka <jh@suse.cz>
20848 * except.c (dw2_size_of_call_site_table,
20849 sjlj_size_of_call_site_table): Use vector API for call_site_record.
20851 * cgraphbuild.c (build_cgraph_edges): Update.
20852 * tree-pass.h: Update comment.
20853 * final.c (leaf_function_p): Update.
20854 (leaf_renumber_regs): Update.
20855 (rest_of_clean_state): Update.
20856 * omp-low.c (expand_omp_parallel): Update.
20857 * ipa-reference.c (analyze_function): Update.
20858 * reorg.c (find_end_label): Update.
20859 (optimize_skip): Update.
20860 (fill_simple_delay_slots): Update.
20861 (fill_simple_delay_slots): Update.
20862 (make_return_insns): Update.
20863 (dbr_schedule): Update.
20864 * gimple-low.c (record_vars_into): Update.
20865 * cfgbuild.c (make_edges): Update.
20866 * function.c (assign_stack_local): Update.
20867 (assign_parm_adjust_stack_rtl): Update.
20868 (locate_and_pad_parm): Update.
20869 (allocate_struct_function): Do not initialize stack_alignment_needed
20870 and preferred_stack_boundary here.
20871 (stack_protect_prologue): Update.
20872 (stack_protect_epilogue): Update.
20873 (expand_function_start): Initialize stack_alignment_needed,
20874 preferred_stack_boundary and max_jumptable_ents.
20875 (expand_function_end): Update.
20876 (free_after_compilation): Do not NULLify epilogue_delay_list.
20877 * function.h (struct rtl_data): Add stack_protect_guard,
20878 stack_alignment_needed,
20879 preferred_stack_boundary, epilogue_delay_list.
20880 (struct function): Remove value_histograms, stack_alignment_needed,
20881 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
20883 unexpanded_var_list, stack_protect_guard.
20884 (current_function_epilogue_delay_list): Remove.
20885 * ipa-type-escape.c (analyze_function): Update.
20886 * gimplify.c (pop_gimplify_context): Update comment.
20887 * calls.c (expand_call): Update.
20888 (emit_library_call_value_1): Update.
20889 * except.c (set_nothrow_function_flags): Update.
20890 * cfgexpand.c (get_decl_align_unit): Update.
20891 (create_stack_guard): Update.
20892 (estimated_stack_frame_size): Update.
20893 (expand_used_vars): Update.
20894 (tree_expand_cfg): Free histogram earliers, init expansion variables.
20895 * explow.c (allocate_dynamic_stack_space): Update.
20896 * tree-ssa-live.c (remove_unused_locals): Update.
20897 * varasm.c (mark_constant_pool): Update.
20898 * tree-inline.c (remap_decls): Update.
20899 (initialize_cfun): Update.
20900 (declare_return_variable): Update.
20901 (inline_forbidden_p): Update.
20902 (expand_call_inline): Update.
20903 (declare_inline_vars): Update.
20904 (tree_function_versioning): Update.
20905 * tree-flow.h (value_histograms): New.
20906 (VALUE_HISTOGRAMS): New macro.
20907 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
20909 * tree-cfg.c (set_bb_for_stmt): Update.
20910 (replace_by_duplicate_decl): Update.
20911 (move_block_to_fn): Update.
20912 (new_label_mapper): Update.
20913 (dump_function_to_file): Update.
20914 * ipa-struct-reorg.c (build_data_structure): Update.
20915 * cfgrtl.c (print_rtl_with_bb): Update.
20916 * reload1.c (reload): Update.
20918 * config/i386/i386.c (setup_incoming_varargs_64,
20919 ix86_compute_frame_layout): Update.
20920 * config/arc/arc.c (arc_output_function_epilogue): Update.
20922 2008-04-18 Marius Strobl <marius@FreeBSD.org>
20924 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
20925 for FreeBSD as well.
20926 * gthr-posix95.h: Likewise.
20928 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
20930 PR rtl-optimization/35838
20931 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
20932 out the byte offset of the first subreg.
20934 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
20936 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
20937 to split_ti instead of three separate calls with single member arrays.
20938 (subti3 splitter): Ditto.
20939 (adddi3 splitter): Ditto with split_di.
20940 (subdi3 splitter): Ditto.
20941 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
20942 two separate calls with single member arrays. Swap match_dup
20943 operands 1 and 2 to better fit into the array.
20944 (negdi2 splitter): Ditto with split_di.
20945 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
20946 two separate calls with single member arrays. Swap match_dup operands
20947 6 and 7 to better fit into the array.
20949 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
20951 * config/i386/i386.c (sse_builtin_type): New.
20952 (bdesc_sse_args): Likewise.
20953 (bdesc_sse_3arg): Removed.
20954 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
20955 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
20956 IX86_BUILTIN_ROUNDPS.
20957 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
20958 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
20959 IX86_BUILTIN_ROUNDPS.
20960 (ix86_expand_sse_4_operands_builtin): Removed.
20961 (ix86_expand_sse_operands_builtin): New.
20962 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
20963 and CODE_FOR_sse4_1_roundps.
20964 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
20965 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
20967 2008-04-17 Alan Modra <amodra@bigpond.net.au>
20970 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
20971 regs before frame pop when needed. If use_backchain_to_restore_sp
20972 then load backchain into a temp reg to restore vr and vrsave. Add
20973 code to restore vr after frame pop if possible.
20975 2008-04-17 Richard Guenther <rguenther@suse.de>
20977 * tree-vn.c (expressions_equal_p): Do not check type
20978 equality or compatibility before calling operand_equal_p.
20979 * fold-const.c (operand_equal_p): Check equivalence of
20980 integer constants before bailing out due to signedness or
20981 precision differences.
20982 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
20983 spurious differences in type qualification. Ignore types
20984 for COMPONENT_REFs at all.
20986 2008-04-17 Christian Bruel <christian.bruel@st.com>
20988 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
20989 msw_skip comparison.
20991 2008-04-16 Jakub Jelinek <jakub@redhat.com>
20994 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
20997 PR tree-optimization/35899
20998 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
20999 rather than TREE_OPERAND.
21001 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
21004 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
21005 temporary registers. Change operand predicate to general_operand.
21006 (remainderxf3): Ditto.
21008 2008-04-16 Richard Guenther <rguenther@suse.de>
21010 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
21011 * tree-affine.c (aff_combination_expand): Look through some
21014 2008-04-15 Doug Kwan <dougkwan@google.com>
21016 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
21018 * tree-pretty-print.c (dump_generic_node): Ditto.
21019 * final.c (output_addr_const): Ditto.
21020 * dwarf2out.c (output_cfi): Ditto.
21021 * c-pretty-print.c (pp_c_integer_constant): Ditto.
21022 * print-rtl.c (print_rtx): Ditto.
21023 * print-tree.c (print_node_brief, print_node): Ditto.
21024 * c-common.c (match_case_to_enum_1): Ditto.
21025 * sched-vis.c (print_value): Ditto.
21026 * config/i386/i386.c (print_operand): Cast to long unsigned int
21029 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
21030 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
21031 MS Windows VirtualProtect function.
21033 2008-04-15 Jan Hubicka <jh@suse.cz>
21035 * gengtype.c (write_root): Param_is argument is OK.
21036 * expr.c (expand_expr_real_1): Update call of get_exception_*.
21037 * function.h: Include varray.h
21038 (rtl_eh): New stucture based on except.c one.
21039 (call_site_record): New forward declaration and vector type.
21040 * calls.c (emit_call_1): Do not call
21041 note_current_region_may_contain_throw.
21042 * except.c (eh_status): Remove cur_region, try_region since they are
21044 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
21045 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
21046 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
21047 Remove call_site_data_used, call_site_data_size.
21048 Turn call_site_record into vector in function.h.
21049 (note_current_region_may_contain_throw): Remove.
21050 (get_exception_pointer, get_exception_filter): Do not take struct
21051 function argument; update.
21052 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
21053 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
21054 build_post_landing_pads, dw2_build_landing_pads,
21055 sjlj_assign_call_site_values, sjlj_mark_call_sites,
21056 sjlj_emit_function_enter, sjlj_emit_function_enter,
21057 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
21058 sjlj_build_landing_pads, finish_eh_generation,
21059 remove_exception_handler_label, remove_eh_handler,
21060 maybe_remove_eh_handler, add_reachable_handler,
21061 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
21062 add_action_record, collect_one_action_chain, add_call_site,
21063 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
21064 sjlj_output_call_site_table, output_function_exception_table,
21065 * except.h (note_current_region_may_contain_throw): Remove
21066 (get_exception_pointer, get_exception_filter): Do not take struct
21068 * Makefile.in (GTFILES): Put varargs before struct function.
21070 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
21072 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
21073 punt for STRING_CST.
21074 (get_constraint_for): Deal with STRING_CST here instead.
21076 2008-04-15 Richard Guenther <rguenther@suse.de>
21078 * tree-ssa-propagate.c (substitute_and_fold): Substitute
21079 statements in a basic-block with a backward walk. Do not
21080 substitute into dead statements but instead remove those.
21082 2008-04-15 Richard Guenther <rguenther@suse.de>
21084 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
21085 to zero, thus disable creation of SFTs.
21087 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
21089 * tree-predcom.c (suitable_reference_p): Return false if the
21090 reference can throw.
21092 2008-04-15 Jakub Jelinek <jakub@redhat.com>
21095 * c-decl.c (finish_decl): If extern or static var has variable
21096 size, set TREE_TYPE (decl) to error_mark_node.
21098 2008-04-15 Rafael Espíndola <espindola@google.com>
21100 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
21103 2008-04-15 Richard Guenther <rguenther@suse.de>
21105 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
21106 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
21107 (visit_reference_op_load): Do walk vuse-vdef chains on
21108 vn_reference_lookup.
21109 (visit_reference_op_store): But do not here.
21110 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
21111 vn_reference_lookup.
21112 (vn_lookup_with_vuses): But do so here.
21114 2008-04-14 Ian Lance Taylor <iant@google.com>
21116 * fold-const.c (fold_overflow_warning): Remove assertion.
21118 2008-04-15 Ben Elliston <bje@au.ibm.com>
21120 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
21121 temp1 local variables.
21123 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
21126 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
21127 ".text.unlikely" section as executable.
21129 2008-04-14 James E. Wilson <wilson@tuliptree.org>
21131 * config/ia64/ia64.c (rtx_needs_barrier): Handle
21132 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
21133 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
21134 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
21135 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
21136 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
21137 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
21139 2008-04-14 Ian Lance Taylor <iant@google.com>
21141 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
21142 * fold-const.c (fold_comparison): If appropriate, test
21143 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
21144 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
21145 reassociating a pointer type.
21146 * doc/invoke.texi (Optimize Options): Document that
21147 -fstrict-overflow applies to pointer wraparound.
21149 2008-04-13 Jan Hubicka <jh@suse.cz>
21151 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
21153 2008-04-12 Andrew Pinski <pinskia@gmail.com>
21155 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
21156 we are going to "save the world".
21158 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
21160 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
21161 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
21162 operand 0 constraint, not "=".
21164 2008-04-11 James E. Wilson <wilson@tuliptree.org>
21166 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
21168 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
21170 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
21171 of size of positions_needed * CHAR_BIT.
21173 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
21175 PR middle-end/35897
21176 * dse.c (store_info): Change positions_needed to unsigned
21178 (lowpart_bitmask): New.
21179 (record_store): Cast to unsigned HOST_WIDE_INT for
21180 positions_needed. Assert width <= size of positions_needed *
21181 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
21182 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
21183 lowpart_bitmask to set mask.
21185 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
21187 * config/bfin/constraints.md: New file.
21188 * config/bfin/bfin.md: Include it.
21189 (adddi3): Use satisfies_constraint functions instead of the old macros.
21190 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
21191 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
21192 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
21193 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
21194 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
21195 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
21196 EXTRA_CONSTRAINT): Delete.
21197 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
21198 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
21200 * config/bfin/bfin.c: Include "tm-constrs.h".
21201 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
21202 Use satisfies_constraint functions instead of the old macros.
21203 * doc/md.texi (Blackfin Constraints): Update file name reference.
21205 2008-04-11 Richard Guenther <rguenther@suse.de>
21207 PR tree-optimization/35869
21208 * tree-vrp.c (execute_vrp): Move switch statement update after
21209 jump threading. Schedule another cfg cleanup run.
21211 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
21214 * attribs.c (decl_attributes): Return early on errorneous node.
21216 2008-04-10 Oleg Ryjkov <olegr@google.com>
21218 * tree.h (struct tree_base): Added a new flag default_def_flag.
21219 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
21221 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
21223 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
21225 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21228 * pa.md: Define mode iterator P. Define mode attribute dwc.
21229 (dcacheflush): Update pattern to use iterator P and attribute dwc.
21230 (icacheflush): Likewise.
21231 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
21232 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
21234 2008-04-11 Ben Elliston <bje@au.ibm.com>
21236 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
21238 2008-04-10 Rafael Espíndola <espindola@google.com>
21240 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
21241 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
21242 (extract_range_from_expr): The same.
21244 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
21246 * config/mips/mips.md (GPR2): New mode iterator.
21247 (seq): Add comment.
21248 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
21249 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
21250 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
21251 Rewrite these to take two modes, the mode of comparison and the
21252 mode of the destination.
21253 * config/mips/mips.c (mips_expand_scc): Instead of having
21254 paradoxical subreg as destination, expand "narrowing" scc if mode
21255 of comparison is SI and target is requested in DI mode.
21256 (mips_emit_int_order_test): Update comment. Make mode of
21257 comparison match CMP0 rather than TARGET. When creating inverse
21258 target use mode of TARGET.
21260 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
21262 * gcov-dump.c (tag_summary): Only print summaries for the first
21263 GCOV_COUNTERS_SUMMABLE counters.
21265 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
21267 * config/i386/i386.md (absneg): New code iterator.
21268 (absnegprefix): New code attribute.
21269 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
21270 patterns using absneg code iterator.
21271 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
21272 using absneg code iterator.
21273 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
21274 *neg<mode>2 patterns using absneg code iterator.
21275 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
21276 *negextendsfdf2 patterns using absneg code iterator.
21277 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
21278 *negextendsfxf2 patterns using absneg code iterator.
21279 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
21280 *negextendsfdf2 patterns using absneg code iterator.
21281 * config/i386/sse.md (<code><mode>2): Macroize expander from
21282 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
21284 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
21286 * config/s390/s390.h: Remove the remains of the recent search
21287 & replace action of current_function_outgoing_args_size.
21289 2008-04-10 Ira Rosen <irar@il.ibm.com>
21291 PR tree-optimization/35821
21292 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
21293 NEW_STMT_LIST is not NULL.
21295 2008-04-09 David Edelsohn <edelsohn@gnu.org>
21298 * toplev.c (process_options): Remove -ffunction-sections debugging
21301 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
21303 PR middle-end/PR28690
21304 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
21305 than gen_rtx_fmt_ee to perform more canonicalizations.
21307 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21310 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
21312 2008-04-09 Richard Guenther <rguenther@suse.de>
21314 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
21315 (dump_function_to_file): Dump function arguments with types.
21317 2008-04-08 Richard Guenther <rguenther@suse.de>
21319 * fold-const.c (fold_widened_comparison): Do not allow
21320 sign-changes that change the result.
21322 2008-04-08 Janis Johnson <janis187@us.ibm.com>
21325 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
21326 kinds of indirect references.
21328 2008-04-08 David Edelsohn <edelsohn@gnu.org>
21330 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
21331 GNU Fortran language string.
21333 2008-04-08 Rafael Espíndola <espindola@google.com>
21335 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
21336 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
21337 * tree.h (tree_call_nonnegative_warnv_p): New.
21339 2008-04-08 Jan Hubicka <jh@suse.cz>
21341 * function.c (free_after_compilation): Clear out regno_reg_rtx
21344 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
21347 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
21349 PR middle-end/PR28690
21350 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
21351 same precedence as REG_POINTER and MEM_POINTER operands.
21353 2008-04-08 Richard Guenther <rguenther@suse.de>
21355 PR middle-end/35834
21356 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
21357 for adding index to base.
21359 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
21361 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
21362 (MINGW_ENABLE_EXECUTE_STACK): New.
21363 (IN_LIBGCC2): For libgcc include windows.h file for
21364 function declarations.
21366 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
21368 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
21369 and tem2 if tem1 is not a REG or MULT.
21371 2008-04-08 Jan Hubicka <jh@suse.cz>
21373 * function.h (incomming_args): Break out of struct function.
21374 (function_subsections): Break out of struct function.
21375 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
21376 return_rtx and hard_reg_initial_vals from struct function.
21377 Kill inl_max_label_num.
21378 (current_function_pops_args, current_function_args_info,
21379 current_function_args_size, current_function_args_size,
21380 current_function_pretend_args_size,
21381 current_function_outgoing_args_size,
21382 current_function_internal_arg_pointer, current_function_return_rtx):
21383 Kill compatibility accestor macros.
21384 * builtins.c (expand_builtin_apply_args_1): Update.
21385 (expand_builtin_next_arg): Update.
21386 * df-scan.c (df_get_call_refs): Update.
21387 * dbxout.c (dbxout_function_end): Update.
21388 * dwarf2out.c (dwarf2out_switch_text_section): Update.
21389 (output_line_info): Update.
21390 (secname_for_decl): Update.
21391 (dwarf2out_var_location): Update.
21392 * function.c (free_after_compilation): Update.
21393 (assign_parm_find_stack_rtl): Update.
21394 (assign_parms): Update.
21395 (expand_dummy_function_end): Update.
21396 (expand_function_end): Update.
21397 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
21398 (expand_call): Update.
21399 (emit_library_call_value_1): Update.
21400 (store_one_arg): Update.
21401 * varasm.c (initialize_cold_section_name): Update.
21402 (unlikely_text_section): Update.
21403 (unlikely_text_section_p): Update.
21404 (assemble_start_function): Update.
21405 (assemble_end_function): Update.
21406 (default_section_type_flags): Update.
21407 (switch_to_section): Update.
21408 * integrate.c (set_decl_abstract_flags): Update.
21409 (get_hard_reg_initial_val): Update.
21410 (has_hard_reg_initial_val): Update.
21411 (allocate_initial_values): Update.
21412 * resource.c (init_resource_info): Update.
21413 * config/alpha/alpha.c (NUM_ARGS): Update.
21414 (direct_return): Update.
21415 (alpha_va_start): Update.
21416 (alpha_sa_size): Update.
21417 (alpha_initial_elimination_offset): Update.
21418 (alpha_expand_prologue): Update.
21419 (alpha_start_function): Update.
21420 (alpha_expand_epilogue): Update.
21421 (unicosmk_initial_elimination_offset):
21422 * config/alpha/alpha.md (call expander): Update.
21423 * config/s390/s390.c (s390_register_info): Update.
21424 (s390_register_info): Update.
21425 (s390_frame_info): Update.
21426 (s390_initial_elimination_offset): Update.
21427 (s390_build_builtin_va_list): Update.
21428 (s390_va_start): Update.
21429 * config/spu/spu.c (direct_return): Update.
21430 (spu_expand_prologue): Update.
21431 (spu_initial_elimination_offset): Update.
21432 (spu_build_builtin_va_list): Update.
21433 (spu_va_start): Update.
21434 * config/sparc/sparc.c (sparc_init_modes): Update.
21435 (sparc_compute_frame_size): Update.
21436 (function_value): Update.
21437 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
21438 * config/i386/i386.md (return expander): Update.
21439 * config/i386/i386.c (ix86_va_start): Update.
21440 (ix86_can_use_return_insn_p): Update.
21441 (ix86_compute_frame_layout): Update.
21442 (ix86_expand_epilogue): Update.
21443 * config/sh/sh.c (output_stack_adjust): Update.
21444 (calc_live_regs): Update.
21445 (sh_expand_prologue): Update.
21446 (sh_builtin_saveregs): Update.
21447 (sh_va_start): Update.
21448 (initial_elimination_offset): Update.
21449 (sh_allocate_initial_value): Update.
21450 (sh_function_ok_for_sibcall): Update.
21451 (sh_get_pr_initial_val): Update.
21452 * config/sh/sh.md (return expander): Update.
21453 * config/avr/avr.c (frame_pointer_required_p): UPdate.
21454 * config/crx/crx.c (crx_compute_frame): UPdate.
21455 (crx_initial_elimination_offset): UPdate.
21456 * config/xtensa/xtensa.c (compute_frame_size): Update
21457 (xtensa_builtin_saveregs): Update.
21458 (xtensa_va_start): Update.
21459 (order_regs_for_local_alloc): Update.
21460 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
21461 (xstormy16_expand_builtin_va_start): Update.
21462 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
21463 * config/m68hc11/m68hc11.md (return expanders): Update.
21464 * config/m68hc11/m68hc11.c (expand_prologue): Update.
21465 (expand_epilogue): Update.
21466 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
21467 (cris_simple_epilogue): Update.
21468 (cris_expand_prologue): Update.
21469 (cris_expand_epilogue): Update.
21470 * config/iq2000/iq2000.c (iq2000_va_start): Update.
21471 (compute_frame_size): Update.
21472 * config/mt/mt.c (mt_compute_frame_size): Update.
21473 * config/mn10300/mn10300.c (expand_prologue): Update.
21474 (expand_epilogue): Update.
21475 (initial_offset): Update.
21476 (mn10300_builtin_saveregs):
21477 * config/mn10300/mn10300.md (return expander): Update.
21478 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
21479 (ia64_initial_elimination_offset): Update.
21480 (ia64_initial_elimination_offset): Update.
21481 (ia64_expand_prologue): Update.
21482 * config/m68k/m68k.md (return expander): Update.
21483 * config/rs6000/rs6000.c (rs6000_va_start): Update.
21484 (rs6000_stack_info): Update.
21485 * config/mcore/mcore.c (layout_mcore_frame): Update.
21486 (mcore_expand_prolog): Update.
21487 * config/arc/arc.c (arc_compute_frame_size): Update.
21488 * config/score/score3.c (score3_compute_frame_size): Update.
21489 * config/score/score7.c (score7_compute_frame_size): Update.
21490 * config/arm/arm.c (use_return_insn): Update.
21491 (thumb_find_work_register): Update.
21492 (arm_compute_save_reg_mask): Update.
21493 (arm_output_function_prologue): Update.
21494 (arm_output_epilogue): Update.
21495 (arm_size_return_regs): Update.
21496 (arm_get_frame_offsets): Update.
21497 (arm_expand_prologue): Update.
21498 (thumb_exit): Update.
21499 (thumb_unexpanded_epilogue): Update.
21500 (thumb1_output_function_prologue): Update.
21501 * config/pa/pa.md (return expander): Update.
21502 * config/pa/pa.c (compute_frame_size): Update.
21503 (hppa_builtin_saveregs): Update.
21504 * config/mips/mips.c (mips_va_start): Update.
21505 (mips16_build_function_stub): Update.
21506 (mips_compute_frame_info): Update.
21507 (mips_restore_gp): Update.
21508 (mips_output_function_prologue): Update.
21509 (mips_expand_prologue): Update.
21510 * config/v850/v850.c (compute_frame_size): Update.
21511 (expand_prologue): * config/mmix/mmix.c (along): update.
21512 (mmix_initial_elimination_offset): update.
21513 (mmix_reorg): update.
21514 (mmix_use_simple_return): update.
21515 (mmix_expand_prologue): update.
21516 (mmix_expand_epilogue): Update.
21517 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
21518 (emit_link_insn): Update.
21520 2008-04-08 Anatoly Sokolov <aesok@post.ru>
21522 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
21523 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
21525 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
21528 2008-04-07 Jan Hubicka <jh@suse.cz>
21530 * function.h (rtl): Rename to x_rtl.
21531 (crtl): New define.
21532 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
21533 frame_offset, stack_check_probe_note, arg_pointer_save_area,
21534 used_temp_slots avail_temp_slots, temp_slot_level,
21535 nonlocal_goto_handler_labels): Update accesstors.
21536 (rtl): New global variable.
21537 (struct function): Move some fileds to rtl_data.
21538 (get_arg_pointer_save_area): Update prototype.
21539 * builtins.c (expand_builtin_setjmp_receiver): Update call of
21540 get_arg_pointer_save_area.
21541 * expr.c (init_expr): Update
21542 * function.c (get_frame_size): Update
21543 (assign_stack_local): Update
21544 (expand_function_end): Update.
21545 (get_art_pointer_save_area): Update
21547 * emit-rtl.c (rtl): Declare.
21548 (regno_reg_rtx): Declare.
21549 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
21551 (gen_reg_rtx): Update.
21552 * varasm.c (n_deferred_constatns): Update accestor.
21553 (init_varasm_status): Do not allocate varasm_status.
21554 (force_const_mem, get_pool_size, output_constant_pool): Update.
21555 * stmt.c (force_label_rtx): Do not use x_ prefixes.
21556 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
21557 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
21558 * sparc/sparc.h (INIT_EXPANDERS): Update.
21559 * ia64/ia64.h (INIT_EXPANDERS): Update.
21561 2008-04-07 James E. Wilson <wilson@tuliptree.org>
21563 * reload.c (push_secondary_reload): Add missing break to for loop.
21565 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
21567 PR middle-end/PR28690
21568 * rtlanal.c: Update copyright years.
21569 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
21570 as REG_POINTER and MEM_POINTER operands.
21571 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
21572 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
21573 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
21574 * gcse.c: Update copyright years.
21575 (pre_delete): Call gen_reg_rtx_and_attrs.
21576 (hoist_code): Likewise.
21577 (build_store_vectors): Likewise.
21578 (delete_store): Likewise.
21579 * loop-invariant.c (move_invariant_reg): Likewise.
21580 Update copyright years.
21582 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
21584 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
21585 control string instead of quoted.
21587 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
21589 * doc/rtl.texi: Rewrite of subreg section.
21591 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
21594 * config/i386/i386.c (legitimize_pic_address): Add treating
21595 of dllimport SYM_REF's.
21596 (legitimize_dllimport_symbol): Add prototype.
21598 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
21600 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
21601 reference in constructor with non self-referential type.
21603 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
21605 Removal of Return with Depressed Stack Pointer support
21606 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
21607 (ECF_SP_DEPRESSED): Likewise.
21608 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
21609 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
21610 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
21611 (expand_call): Do not test ECF_SP_DEPRESSED.
21612 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
21613 * function.c (keep_stack_depressed): Delete.
21614 (handle_epilogue_set): Likewise.
21615 (update_epilogue_consts): Likewise.
21616 (emit_equiv_load): Likewise.
21617 (thread_prologue_and_epilogue_insns): Remove support for Return with
21618 Depressed Stack Pointer.
21619 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
21621 2008-04-06 Richard Guenther <rguenther@suse.de>
21623 PR tree-optimization/35400
21624 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
21625 information from SSA_NAMEs.
21627 2008-04-06 Anatoly Sokolov <aesok@post.ru>
21629 * config/avr/avr.h (avr_mega_p): Remove declaration.
21630 (AVR_MEGA): Remove macro.
21631 * config/avr/avr.c (avr_mega_p): Remove variable.
21632 (avr_override_options): Remove inicializion of avr_mega_p.
21633 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
21634 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
21635 (avr_jump_mode): (Ditto.).
21636 (avr_output_progmem_section_asm_op): (Ditto.).
21637 (avr_asm_init_sections): (Ditto.).
21638 (avr_asm_init_sections): (Ditto.).
21639 (avr_rtx_costs): (Ditto.).
21640 * config/avr/avr.md: (Ditto.).
21641 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
21644 2008-04-06 Richard Guenther <rguenther@suse.de>
21646 PR tree-optimization/35842
21647 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
21648 is_gimple_invariant_address.
21650 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
21652 * gcc.c (default_compilers): Sync Fortran extensions list with
21653 that in fortran/lang-specs.h.
21654 * doc/invoke.texi: Likewise.
21655 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
21656 * dwarf2out.c (gen_compile_unit_die): Likewise.
21658 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
21660 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
21662 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
21665 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
21666 attribute is used for nested functions.
21668 2008-04-05 Jan Hubicka <jh@suse.cz>
21670 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
21672 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
21674 (dump_files): Update.
21675 (enable_rtl_dump_file): Do not accept letter argument.
21676 * tree-pass.h (dump_file_info): Remove letter argument.
21677 * toplev.c (decode_d_option): Update -da handling.
21678 * toplev.h (enable_rtl_dump_file): Update prototype.
21679 * passes.c (register_one_dump_file): Do not accept IPA argument; work
21680 it out based on pass type.
21681 (register_dump_files_1): Likewise.
21682 (init_optimization_passes): Update register_one_dump_file calls.
21683 (execute_one_pass): Sanity check that IPA passes are called at IPA
21684 level and RTL passes at RTL level.
21685 (execute_pass_list): IPA pass can not be after or subpass of
21687 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
21688 disallov RTL subpasses of IPA subpasses.
21690 2008-04-05 Ben Elliston <bje@au.ibm.com>
21692 * tree-cfg.c (need_fake_edge_p): Return false for calls to
21693 builtins that return exactly once and do not throw. Cache call to
21696 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
21698 PR rtl-optimization/34916
21699 PR middle-end/35519
21700 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
21701 between instruction pairs.
21703 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
21705 * doc/invoke.texi: Document -mbitops for SH.
21706 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
21707 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
21708 * config/sh/sh.c (print_operand): Add %t operand code.
21709 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
21710 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
21711 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
21712 (extendqihi2): Likewise.
21713 (movqi_i): Likewise.
21714 (insv): Use bset, bclr and bst instructions for SH2A if possible.
21715 (extv): Use bld instruction for SH2A if possible.
21717 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
21718 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
21719 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
21720 (bset.b, bclr.b): Define peepholes.
21721 * config/sh/sh.opt (mbitops): New option.
21723 2008-04-04 Janis Johnson <janis187@us.ibm.com>
21726 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
21727 and view convert expression.
21729 2008-04-04 Jakub Jelinek <jakub@redhat.com>
21732 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
21734 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
21736 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
21738 * config/i386/cpuid.h (bit_AES): New.
21739 (bit_PCLMUL): Likewise.
21741 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
21742 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
21743 SSE2 if AES or PCLMUL is enabled.
21744 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
21745 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
21746 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
21747 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
21748 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
21749 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
21750 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
21751 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
21752 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
21753 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
21754 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
21755 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
21756 __builtin_ia32_aeskeygenassist128 and
21757 __builtin_ia32_pclmulqdq128.
21758 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
21759 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
21760 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
21762 * config/i386/i386.h (TARGET_AES): New.
21763 (TARGET_PCLMUL): Likewise.
21764 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
21766 * config/i386/i386.md (UNSPEC_AESENC): New.
21767 (UNSPEC_AESENCLAST): Likewise.
21768 (UNSPEC_AESDEC): Likewise.
21769 (UNSPEC_AESDECLAST): Likewise.
21770 (UNSPEC_AESIMC): Likewise.
21771 (UNSPEC_AESKEYGENASSIST): Likewise.
21772 (UNSPEC_PCLMUL): Likewise.
21774 * config/i386/i386.opt (maes): New.
21775 (mpclmul): Likewise.
21777 * config/i386/sse.md (aesenc): New pattern.
21778 (aesenclast): Likewise.
21779 (aesdec): Likewise.
21780 (aesdeclast): Likewise.
21781 (aesimc): Likewise.
21782 (aeskeygenassist): Likewise.
21783 (pclmulqdq): Likewise.
21785 * config/i386/wmmintrin.h: New.
21787 * doc/extend.texi: Document AES and PCLMUL built-in function.
21789 * doc/invoke.texi: Document -maes and -mpclmul.
21791 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
21793 * function.c (free_after_parsing): Replace with
21794 cxx_push_function_context from C++ front-end.
21795 (allocate_struct_function): Don't call langhook.
21796 * langhooks.h (struct lang_hooks_for_functions): Delete.
21797 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
21799 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
21800 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
21801 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
21802 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
21803 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
21804 remove LANG_HOOKS_FUNCTION_INITIALIZER.
21805 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
21807 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
21808 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
21810 2008-04-04 Jakub Jelinek <jakub@redhat.com>
21813 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
21816 2008-04-04 Richard Guenther <rguenther@suse.de>
21818 PR middle-end/35823
21819 * fold-const.c (optimize_minmax_comparison): Use the correct
21820 type for the constant in the simplified comparison.
21822 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
21824 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
21825 Pass L2 size as "--param l2-cache-size" to the compiler.
21826 (decode_l2_cache): New function to decode L2 cache parameters using
21827 0x8000006 extended cpuid function.
21828 (detect_caches_amd): Determine parameters of L2 cache using
21829 decode_l2_caches function.
21830 (decode_caches_intel): Decode L2 cache parameters.
21831 (detect_caches_intel): Determine L2 cache parameters using
21832 decode_caches_intel and decode_l2_caches functions.
21834 2008-04-03 Bob Wilson <bob.wilson@acm.org>
21836 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
21837 secondary input reload for subword loads from the constant pool.
21839 2008-04-03 Janis Johnson <janis187@us.ibm.com>
21842 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
21843 constants of the appropriate size for runtime calculations.
21846 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
21847 decimal-float literal constant zero.
21849 2008-04-03 Jakub Jelinek <jakub@redhat.com>
21852 * c-parser.c (c_parser_omp_atomic): Call
21853 default_function_array_conversion on the RHS.
21855 PR middle-end/35818
21856 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
21857 call is_variable_sized if decl has incomplete type.
21859 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
21861 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
21863 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
21865 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
21867 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
21868 (sgt<u>): Merge sgt and sgtu into new expander.
21869 (sgt, sgtu): Remove expanders.
21870 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
21871 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
21872 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
21873 *sgtu_<mode>_mips16 into new pattern.
21874 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
21875 (sge<u>): Merge sge and sgeu into new expander.
21876 (sge, sgeu): Remove expanders.
21877 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
21879 (*sge_<mode>, second *sge_<mode>): Remove patterns.
21880 (slt<u>): Merge slt and sltu into new expander.
21881 (slt, sltu): Remove expanders.
21882 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
21883 (*slt_<mode>, *sltu_<mode>): Remove patterns.
21884 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
21885 *sltu_<mode>_mips16 into new pattern.
21886 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
21887 (sle<u>): Merge sle and sleu into new expander.
21888 (sle, sleu): Remove expanders.
21889 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
21890 (*sle_<mode>, *sleu_<mode>): Remove patterns.
21891 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
21892 *sleu_<mode>_mips16 into new pattern.
21893 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
21895 2008-04-03 Jan Hubicka <jh@suse.cz>
21897 PR tree-optimization/35795
21898 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
21899 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
21900 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
21901 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
21902 * score/score3.c (score3_output_mi_thunk): Likewise.
21903 * score/score7.c (score7_output_mi_thunk): Likewise.
21904 * mips/mips.c (mips_output_mi_thunk): Likewise.
21906 2008-04-03 Richard Guenther <rguenther@suse.de>
21908 * tree-vrp.c (extract_range_from_unary_expr): Handle all
21909 conversions. Simplify code.
21911 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
21913 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
21915 2008-04-03 Tom Tromey <tromey@redhat.com>
21916 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21918 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
21919 * config/bfin/t-bfin-linux (generated_files): Add
21920 linux-sysroot-suffix.h.
21921 * doc/install.texi (Prerequisites): Require make 3.80.
21922 * doc/sourcebuild.texi (Front End Directory): Document new
21924 * Makefile.in (generated_files): New variable.
21925 (ALL_HOST_OBJS): New variable.
21926 ($(ALL_HOST_OBJS)): New target.
21928 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
21930 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
21931 (remap_block): Call id->transform_lang_insert_block instead
21933 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
21934 Set id.transform_lang_insert_block to NULL.
21935 (clone_body): Move to cp/optimize.c
21936 * tree-inline.h (struct copy_body_data): Change
21937 transform_lang_insert_block to function pointer.
21938 (copy_generic_body, copy_decl_no_change): Export.
21939 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
21940 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
21941 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
21943 * c-tree.h (insert_block): Kill.
21944 * c-decl.c (insert_block): Kill.
21946 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
21948 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
21949 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
21950 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
21952 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
21953 argument, call {push,pop}_function_context from here.
21954 * c-parser.c: Use c_{push,pop}_function_context.
21956 * function.c (push_function_context_to): Move meat ...
21957 (push_function_context): ... here. Simplify.
21958 * function.c (pop_function_context_from): Move meat ...
21959 (pop_function_context): ... here. Simplify.
21960 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
21962 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
21963 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
21964 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
21965 * tree.h (push_function_context_to, pop_function_context_from): Remove.
21967 2008-04-03 Ben Elliston <bje@au.ibm.com>
21969 * expmed.c (extract_force_align_mem_bit_field): Remove.
21971 2008-04-03 Richard Guenther <rguenther@suse.de>
21973 PR middle-end/35800
21974 * expr.h (try_casesi): Adjust prototype.
21975 * expr.c (try_casesi): Take fallback label as extra parameter.
21976 Use that for gen_casesi if default_label is NULL.
21977 * stmt.c (expand_case): Pass fallback label to try_casesi,
21978 make sure to fill gaps with a fallback label if default_label
21981 2008-04-03 Dominique d'Humières <dominiq@lps.ens.fr>
21984 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
21986 2008-04-03 Ben Elliston <bje@au.ibm.com>
21988 * expmed.c (extract_split_bit_field): Remove if (0) code.
21989 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
21990 (do_ds_constraint): Likewise.
21992 2008-04-02 Joseph Myers <joseph@codesourcery.com>
21994 * doc/cppopts.texi (-dU): Document.
21995 * c-common.h (flag_dump_macros): Update comment.
21996 * c-opts.c (handle_OPT_d): Handle -dU.
21997 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
21998 dump_queued_macros, cb_used_define, cb_used_undef): New.
21999 (init_pp_output): Handle -dU.
22000 (cb_line_change): Call dump_queued_macros.
22001 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
22003 2008-04-02 Anatoly Sokolov <aesok@post.ru>
22005 * config/avr/predicates.md (io_address_operand): New predicate.
22006 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
22007 * config/avr/avr.c (avr_io_address_p): Remove function.
22008 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
22009 'avr_io_address_p' function.
22010 (out_movhi_r_mr): (Ditto.).
22011 (out_movqi_mr_r): (Ditto.).
22012 (out_movhi_mr_r): (Ditto.).
22013 (avr_address_cost): (Ditto.).
22015 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
22017 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
22018 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
22019 in 32bit mode when XMM registers are available to avoid store
22021 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
22022 corresponding post-reload splitters.
22024 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
22026 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
22027 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
22028 __builtin_ia32_roundss.
22029 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
22030 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
22031 __builtin_ia32_roundss.
22032 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
22033 IX86_BUILTIN_SHUFPD here.
22035 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
22037 * config/i386/i386.md (plogic): New.
22038 (plogicprefix): Likewise.
22040 * config/i386/mmx.md (mmx_<code><mode>3): New.
22041 (mmx_and<mode>3): Removed.
22042 (mmx_ior<mode>3): Likewise.
22043 (mmx_xor<mode>3): Likewise.
22045 * config/i386/sse.md (<code><mode>3): New.
22046 (*<code><mode>3): Likewise.
22047 (*<code><mode>3): Likewise.
22048 (<code><mode>3): Likewise.
22049 (*sse_<code><mode>3): Likewise.
22050 (*sse2_<code><mode>3): Likewise.
22051 (<code>tf3): Likewise.
22052 (*<code>tf3): Likewise.
22053 (and<mode>3): Likewise.
22054 (*and<mode>3): Likewise.
22055 (ior<mode>3): Removed.
22056 (*ior<mode>3): Likewise.
22057 (xor<mode>3): Likewise.
22058 (*xor<mode>3): Likewise.
22059 (*and<mode>3): Likewise.
22060 (*ior<mode>3): Likewise.
22061 (*xor<mode>3): Likewise.
22062 (and<mode>3): Likewise.
22063 (*sse_and<mode>3): Likewise.
22064 (*sse2_and<mode>3): Likewise.
22065 (andtf3): Likewise.
22066 (*andtf3): Likewise.
22067 (ior<mode>3): Likewise.
22068 (*sse_ior<mode>3): Likewise.
22069 (*sse2_ior<mode>3): Likewise.
22070 (iortf3): Likewise.
22071 (*iortf3): Likewise.
22072 (xor<mode>3): Likewise.
22073 (*sse_xor<mode>3): Likewise.
22074 (*sse2_xor<mode>3): Likewise.
22075 (xortf3): Likewise.
22076 (*xortf3): Likewise.
22078 2008-04-02 Richard Guenther <rguenther@suse.de>
22080 PR tree-optimization/14495
22081 PR tree-optimization/34793
22082 * tree-vrp.c (struct switch_update): New structure.
22083 (to_remove_edges, to_update_switch_stmts): New VECs.
22084 (simplify_switch_using_ranges): New function. Remove not taken
22085 case labels and edges.
22086 (simplify_stmt_using_ranges): Call it.
22087 (identify_jump_threads): Mark edges we have queued for removal
22088 so we don't thread them.
22089 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
22091 * tree-cfg.c (group_case_labels): Deal with missing default label.
22092 (tree_verify_flow_info): Allow missing default label.
22093 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
22094 (emit_case_nodes): Likewise.
22095 (expand_case): Do not rely on the default label to be present.
22096 * expr.c (try_casesi): Deal with NULL default_label.
22097 (do_tablejump): Likewise.
22099 2008-04-02 Richard Guenther <rguenther@suse.de>
22101 PR tree-optimization/14495
22102 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
22103 SWITCH_EXPR here ...
22104 (vrp_visit_switch_stmt): ... but here (new function).
22105 (find_case_label_index): New helper function.
22106 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
22108 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
22110 * fwprop.c: Fix ISO-C99ism.
22112 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
22115 * Makefile.in (objdir): Set it here.
22116 * configure.ac: Not here. Find dynamic linker characteristics.
22117 * exec-tool.in: Use them.
22118 * aclocal.m4: Regenerate.
22119 * configure: Regenerate.
22121 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
22123 * expr.c (expand_var): Delete it.
22124 * expr.h (expand_var): Delete prototype.
22125 * function.c (expand_function_start): Use expand_decl instead.
22126 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
22129 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
22131 PR rtl-optimization/35542
22132 * fwprop.c (forward_propagate_and_simplify): Replace
22133 loc_reg_mentioned_in_p with reg_mentioned_p.
22135 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
22137 PR rtl-optimization/35281
22138 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
22139 (propagate_rtx_1): Handle PR_HANDLE_MEM.
22140 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
22141 (varying_mem_p): Move above propagate_rtx.
22142 (all_uses_available_at): Do not check MEMs.
22144 2008-04-02 Rafael Espíndola <espindola@google.com>
22146 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
22147 (register_edge_assert_for_2): Split the cond argument.
22148 (register_edge_assert_for_1): Adjust for the change in
22149 register_edge_assert_for_2.
22150 (register_edge_assert_for): Split the cond argument.
22151 (find_switch_asserts): Adjust for the change in
22152 register_edge_assert_for.
22154 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
22156 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
22157 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
22158 offsets for 64-bit mingw.
22159 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
22160 abi for x86_64-pc-mingw.
22162 2008-04-02 Richard Guenther <rguenther@suse.de>
22164 * tree-vrp.c (extract_range_from_assert): Make sure to not
22165 produce range min/max with TREE_OVERFOW set.
22166 If merging a anti-range and a range keep the anti-range if
22167 the range covers all values of the type.
22168 (register_edge_assert_for_2): Only allow sign-changing
22169 conversions in detecting canonical range checks. Also
22170 register an assert for the unsigned name if useful.
22172 PR tree-optimization/35787
22173 * tree-vrp.c (vrp_val_max): New function.
22174 (vrp_val_min): Likewise.
22175 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
22176 (vrp_val_is_min): Likewise.
22177 (supports_overflow_infinity): Use vrp_val_{min,max}.
22178 (negative_overflow_infinity): Likewise.
22179 (positive_overflow_infinity): Likewise.
22180 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
22181 (is_positive_overflow_infinity): Likewise.
22182 (is_overflow_infinity): Likewise.
22183 (avoid_overflow_infinity): Use vrp_val_{min,max} and
22184 vrp_val_is_{min,max}.
22185 (set_and_canonicalize_value_range): Canonicalize anti-ranges
22186 to ranges if possible. Avoid empty ranges.
22188 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22190 PR middle-end/35705
22191 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
22192 the expression is a function address.
22194 2008-04-01 George Helffrich <george@gcc.gnu.org>
22196 PR fortran/35154, fortran/23057
22197 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
22198 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
22199 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
22200 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
22202 (dbxout_syms): Check for COMMON-based symbol and wrap in
22203 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
22204 in bracket for efficiency.
22206 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
22207 using DW_TAG_common_block + member offset.
22208 (add_pubname_string): New function.
22209 (dw_expand_expr): New function to find block name and offset for
22211 (common_check): New function to check whether symbol in Fortran COMMON.
22212 (gen_variable_die): If COMMON, use DW_TAG_common_block.
22214 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
22217 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
22219 2008-04-02 Ben Elliston <bje@au.ibm.com>
22221 * config/v850/v850.md (casesi): Remove if (0) code.
22222 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
22223 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
22225 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
22227 * config/i386/i386.md (rex64suffix): New mode attribute.
22228 (floathi<mode>2): Disable expander for SSE math.
22229 (*floathi<mode>2_1): New insn insn_and_split pattern.
22230 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
22231 corresponding post-reload splitters.
22232 (*floathi<mode>2_i387): New macroized insn pattern.
22233 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
22234 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
22235 insn_and_split pattern.
22236 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
22237 New macroized instruction patterns and corresponding post-reload
22239 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
22240 and corresponding post-reload splitters.
22241 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
22242 New macroized instruction patterns.
22243 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
22244 macroized instruction patterns and corresponding post-reload splitters.
22245 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
22246 corresponding post-reload splitters.
22247 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
22248 New macroized instruction patterns.
22249 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
22250 corresponding post-reload splitters.
22251 (*floatsi<mode>2_i387): New macroized instruction patterns.
22253 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
22255 * config/i386/i386.md (smaxmin): New.
22256 (umaxmin): Likewise.
22257 (maxminiprefix): Likewise.
22258 (maxminfprefix): Likewise.
22259 (<code><mode>3): Likewise.
22260 (smin<mode>3): Removed.
22261 (smax<mode>3): Likewise.
22263 * config/i386/mmx.md (mmx_<code>v2sf3): New.
22264 (mmx_<code>v4hi3): Likewise.
22265 (mmx_<code>v8qi3): Likewise.
22266 (mmx_smaxv2sf3): Removed.
22267 (mmx_sminv2sf3): Likewise.
22268 (mmx_umaxv8qi3): Likewise.
22269 (mmx_smaxv4hi3): Likewise.
22270 (mmx_uminv8qi3): Likewise.
22271 (mmx_sminv4hi3): Likewise.
22273 * config/i386/sse.md (<addsub><mode>3): New.
22274 (*<addsub><mode>3): Likewise.
22275 (<sse>_vm<addsub><mode>3): Likewise.
22276 (<maxmin><mode>3): Likewise.
22277 (*<maxmin><mode>3_finite): Likewise.
22278 (*<maxmin><mode>3): Likewise.
22279 (<sse>_vm<maxmin><mode>3): Likewise.
22280 (sse3_h<addsub>v4sf3): Likewise.
22281 (sse3_h<addsub>v2df3): Likewise.
22282 (<maxmin>v16qi3): Likewise.
22283 (*<maxmin>v16qi3): Likewise.
22284 (<maxmin>v8hi3): Likewise.
22285 (*<maxmin>v8hi3): Likewise.
22286 (*sse4_1_<maxmin><mode>3): Likewise.
22287 (*sse4_1_<maxmin><mode>3): Likewise.
22288 (add<mode>3): Removed.
22289 (*add<mode>3): Likewise.
22290 (<sse>_vmadd<mode>3): Likewise.
22291 (sub<mode>3): Likewise.
22292 (*sub<mode>3): Likewise.
22293 (<sse>_vmsub<mode>3): Likewise.
22294 (smin<mode>3): Likewise.
22295 (*smin<mode>3_finite): Likewise.
22296 (*smin<mode>3): Likewise.
22297 (<sse>_vmsmin<mode>3): Likewise.
22298 (smax<mode>3): Likewise.
22299 (*smax<mode>3_finite): Likewise.
22300 (*smax<mode>3): Likewise.
22301 (<sse>_vmsmax<mode>3): Likewise.
22302 (sse3_haddv4sf3): Likewise.
22303 (sse3_haddv2df3): Likewise.
22304 (sse3_hsubv4sf3): Likewise.
22305 (sse3_hsubv2df3): Likewise.
22306 (umaxv16qi3): Likewise.
22307 (*umaxv16qi3): Likewise.
22308 (smaxv8hi3): Likewise.
22309 (*smaxv8hi3): Likewise.
22310 (*sse4_1_smax<mode>3): Likewise.
22311 (*sse4_1_umax<mode>3): Likewise.
22312 (uminv16qi3): Likewise.
22313 (*uminv16qi3): Likewise.
22314 (sminv8hi3): Likewise.
22315 (*sminv8hi3): Likewise.
22316 (*sse4_1_smin<mode>3): Likewise.
22317 (*sse4_1_umin<mode>3): Likewise.
22319 2008-04-01 Rafael Espíndola <espindola@google.com>
22321 * tree-cfg.c (verify_expr): remove in_phi.
22322 (verify_stmt): Don't call walk_tree with verify_expr. Use
22323 is_gimple_min_invariant instead of is_gimple_val.
22325 2008-04-01 Joseph Myers <joseph@codesourcery.com>
22327 * doc/include/gpl_v3.texi: Update for manpage generation.
22328 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
22330 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
22331 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
22332 gpl_v3.texi instead of gpl.texi.
22335 2008-04-01 Jakub Jelinek <jakub@redhat.com>
22338 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
22340 2008-04-01 Rafael Espíndola <espindola@google.com>
22342 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
22343 (extract_code_and_val_from_cond): Use
22344 extract_code_and_val_from_cond_with_ops.
22346 2008-04-01 Jan Hubicka <jh@suse.cz>
22348 * function.c (free_after_compilation): Free epilogue_delay_list.
22349 (prepare_function_start): Assert that previous compilation was freed.
22351 2008-04-01 Jan Hubicka <jh@suse.cz>
22352 Jim Wilson <wilson@tuliptree.org>
22353 Andreas Tobler <andreast@gcc.gnu.org>
22355 PR middle-end/35781
22356 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
22357 rtl.emit instead cfun->emit.
22358 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
22359 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
22361 2008-04-01 Ben Elliston <bje@au.ibm.com>
22363 * doc/c-tree.texi (Function Basics): Fix grammatical error.
22365 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
22367 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
22369 (fprofile-use): Add var flag_profile_use
22370 * coverage.c (coverage_begin_output): Do not open a gcno file for
22371 output only if -ftest-coverage is set.
22372 Do not add getpwd() to gcda file path.
22373 (build_gcov_info): Check the new flag
22374 flag_profile_datafile_relative_path.
22375 (coverage_init): Use profile_data_prefix.
22376 Read profile counter only if flag_profile_use is set.
22377 * opts.c (common_handle_option): New option fprofile-use=,
22378 fprofile-dir=, fprofile-generate=.
22379 * toplev.c (profile_data_prefix): New variable definition.
22380 * toplev.h (profile_data_prefix): New declaration.
22381 * doc/invoke.tex (Option Summary, Optimization Options):
22384 2008-03-31 James E. Wilson <wilson@tuliptree.org>
22386 * varasm.c (output_constant_pool_1): In LABEL_REF check,
22387 use tmp consistently.
22390 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
22391 * config/ia64/ia64.c (rtx_needs_barrier): Handle
22392 UNSPEC_FR_RECIP_APPROX_RES.
22393 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
22395 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
22398 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
22400 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
22402 PR middle-end/30186
22403 * fold-const.c (fold_indirect_ref_1): Support accessing non first
22404 element of the vector via a pointer.
22406 2008-03-31 Ian Lance Taylor <iant@google.com>
22408 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
22410 2008-03-31 Jan Hubicka <jh@suse.cz>
22412 * builtins.c (expand_builtin_setjmp_receiver): Update call of
22413 get_arg_pointer_save_area.
22414 * expr.c (init_expr): Just clear out rtl.expr.
22415 * function.c (free_after_compilation): Clear out whole RTL structure.
22416 (get_func_frame_size): Merge into ...
22417 (get_frame_size): ... this one.
22418 (assign_stack_local_1): Merge into ...
22419 (assign_stack_local): ... this one.
22420 (expand_function_end): Update call of get_arg_pointer_save_area.
22421 (get_art_pointer_save_area): Remove cfun argument.
22422 * function.h (emit_status): regno_pointer_align does not need length
22423 attribute. Move x_regno_reg_rtx to ...
22424 (regno_reg_rtx): ... new global array.
22425 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
22426 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
22427 apply_args_value, forced_labels, stack_pointer_delta):
22429 (struct varasm_status): Move here from varasm.c
22430 (struct rtl_data): New. Move here some fields from struct function.
22431 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
22432 frame_offset, stack_check_probe_note, arg_pointer_save_area,
22433 used_temp_slots avail_temp_slots, temp_slot_level,
22434 nonlocal_goto_handler_labels): Update accesstors.
22435 (rtl): New global variable.
22436 (struct function): Move some fileds to rtl_data.
22437 (get_arg_pointer_save_area): Update prototype.
22438 * emit-rtl.c (rtl): Declare.
22439 (regno_reg_rtx): Declare.
22440 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
22442 (gen_reg_rtx): Update.
22443 (init_virtual_regs): Do not tate emit_status argument.
22444 (init_emit): Do not allocate emit.
22445 * varasm.c (varasm_statuc): Move to function.h.
22446 (n_deferred_constatns): Update accestor.
22447 (init_varasm_status): Do not allocate varasm_status.
22448 (force_const_mem, get_pool_size, output_constant_pool): Update.
22449 * stmt.c (force_label_rtx): Do not use x_ prefixes.
22450 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
22452 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
22454 PR rtl-optimization/35729
22455 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
22458 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
22461 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
22462 load/store if memory is unaligned.
22463 (*movti_rex64): Likewise.
22465 * config/i386/predicates.md (misaligned_operand): New.
22467 2008-03-31 Andrew Pinski <pinskia@gmail.com>
22470 * tree-ssa-phiopt.c (conditional_replacement): Return early for
22473 2008-03-31 Jan Beulich <jbeulich@novell.com>
22475 * config/ia64/constraints.md: Add 'j' constraint.
22476 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
22477 (movdi_internal): Likewise.
22479 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
22482 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
22484 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
22487 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
22488 proper error message for the third argument on blendpd and
22491 * config/i386/sse.md (blendbits): New.
22492 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
22494 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
22496 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
22498 2008-03-30 Richard Guenther <rguenther@suse.de>
22500 PR middle-end/31023
22501 * fold-const.c (fold_sign_changed_comparison): Do leave
22502 conversions to base-types alone.
22504 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
22506 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
22507 the link register if one altivec register is be saved.
22509 2008-03-30 Ben Elliston <bje@au.ibm.com>
22511 * final.c (final_scan_insn): Remove if (0) code.
22513 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
22515 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
22517 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
22519 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
22520 of V4SFmode to ix86_binary_operator_ok.
22522 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
22524 * config/i386/i386.c (override_options): Initialize
22525 ix86_veclib_handler to ix86_veclibabi_svml when
22526 -mveclibabi=svml is used.
22527 (ix86_veclibabi_svml): New function for SVML ABI style
22528 vectorization support.
22529 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
22531 2008-03-28 Rafael Espíndola <espindola@google.com>
22533 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
22534 (tree_binary_nonnegative_warnv_p): Make it public.
22535 (tree_single_nonnegative_warnv_p): Make it public.
22536 (tree_invalid_nonnegative_warnv_p): Make it public.
22537 (tree_unary_nonzero_warnv_p): Make it public.
22538 (tree_binary_nonzero_warnv_p): Make it public
22539 (tree_single_nonzero_warnv_p): Make it public.
22540 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
22541 (extract_range_from_binary_expr): Split the expr argument.
22542 (extract_range_from_unary_expr): Split the expr argument.
22543 (extract_range_from_comparison): Split the expr argument.
22544 (extract_range_from_expr): Use the new aux functions.
22545 (vrp_evaluate_conditional_warnv): Use
22546 vrp_evaluate_conditional_warnv_with_ops.
22547 * tree.h (tree_unary_nonzero_warnv_p): Declare.
22548 (tree_binary_nonzero_warnv_p): Declare.
22549 (tree_single_nonzero_warnv_p): Declare.
22550 (tree_expr_nonzero_warnv_p): Declare.
22551 (tree_unary_nonnegative_warnv_p): Declare.
22552 (tree_binary_nonnegative_warnv_p): Declare.
22553 (tree_single_nonnegative_warnv_p): Declare.
22554 (tree_invalid_nonnegative_warnv_p): Declare.
22556 2008-03-28 Richard Guenther <rguenther@suse.de>
22558 PR tree-optimization/30317
22559 PR tree-optimization/30911
22560 PR tree-optimization/34793
22561 * tree-vrp.c (set_and_canonicalize_value_range): New function.
22562 (struct assert_locus_d): New member EXPR.
22563 (register_new_assert_for): Add EXPR parameter to support
22564 ASSERT_EXPR <name, expr OP limit>.
22565 (register_edge_assert_for_1): Adjust callers.
22566 (find_assert_locations): Likewise.
22567 (process_assert_insertions_for): Build condition from expression.
22568 (extract_range_from_assert): Handle ASSERT_EXPRs
22569 of the form ASSERT_EXPR <name, expr OP limit>.
22570 (register_edge_assert_for_2): New helper registering
22571 asserts for comparisons. Recognize range tests of the form
22572 (unsigned)i - CST1 OP CST2.
22573 (register_edge_assert_for_1): Use it.
22574 (register_edge_assert_for): Likewise.
22575 (needs_overflow_infinity): Integer sub-types
22576 do not need overflow infinities.
22577 (vrp_val_is_max): The extreme values of integer sub-types
22578 are those of the base type.
22579 (vrp_val_is_min): Likewise.
22580 * tree.def (ASSERT_EXPR): Document extra allowed conditional
22583 2008-03-28 Nick Clifton <nickc@redhat.com>
22586 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
22587 Return GENERAL_REGS for stack adjustment reloads.
22589 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
22592 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
22593 const_vector when all the vectors are constant.
22595 2008-03-27 Bob Wilson <bob.wilson@acm.org>
22597 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
22599 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
22600 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
22602 (s<code>_sf): Use new scc_sf attribute for opcode names.
22604 2008-03-27 Tom Tromey <tromey@redhat.com>
22606 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
22607 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
22608 config/spu/t-spu-elf, config/i386/t-interix,
22609 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
22610 config/i386/x-darwin, config/i386/x-mingw32,
22611 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
22612 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
22613 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
22614 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
22615 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
22616 config/rs6000/x-darwin, config/rs6000/t-rs6000,
22617 config/score/t-score-elf, config/arm/t-strongarm-pe,
22618 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
22619 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
22620 Revert automatic dependency patch.
22622 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
22625 * config/i386/i386.c (ix86_function_arg_boundary): Align
22626 decimal floating point to its natural boundary.
22628 2008-03-27 Richard Guenther <rguenther@suse.de>
22630 PR middle-end/35716
22631 * fold-const.c (fold_comparison): Restrict distinct decl
22632 comparison folding to VAR_DECLs and PARM_DECLs. Do not
22633 solely rely on operand_equal_p.
22635 2008-03-27 Richard Guenther <rguenther@suse.de>
22638 * c-common.c (handle_weak_attribute): Reject combination of
22641 2008-03-27 Richard Guenther <rguenther@suse.de>
22643 PR tree-optimization/32810
22644 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
22645 conversions from DECL_INITIAL.
22646 (fold_const_aggregate_ref): Likewise from constructor elements.
22648 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
22650 * tree-affine.h (aff_combination_expand): Declare.
22651 (get_inner_reference_aff): Likewise.
22652 * tree-affine.c (aff_combination_expand): Split out from
22653 tree_to_aff_combination_expand.
22654 (get_inner_reference_aff): New function.
22655 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
22656 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
22657 (struct lim_aux_data): sm_done field removed.
22658 (mem_ref_loc_p, mem_ref_locs_p): New types.
22659 (struct mem_ref): Added id, stored, accesses_in_loop,
22660 indep_loop, dep_loop, indep_ref, dep_ref fields.
22661 Removed is_stored, locs and next fields.
22662 (memory_accesses): New variable.
22663 (movement_possibility): Do not allow moving statements
22664 that store to memory.
22665 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
22667 (determine_max_movement): For statements with memory references,
22668 find the outermost loop in that the reference is independent.
22669 (move_computations_stmt): Mark the virtual operands for renaming.
22670 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
22671 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
22672 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
22673 add_vop_ref_mapping, create_vop_ref_mapping_loop,
22674 create_vop_ref_mapping, analyze_memory_references,
22675 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
22676 get_all_locs_in_loop, ref_always_accessed_p,
22677 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
22678 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
22679 store_motion_loop, store_motion): New functions.
22680 (struct vop_to_refs_elt): New type.
22681 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
22682 memref_hash, memref_eq, hoist_memory_references): Rewritten.
22683 (schedule_sm): Replaced by...
22684 (execute_sm): ... this.
22685 (determine_lsm_ref, hoist_memory_references,
22686 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
22687 find_more_ref_vops, free_mem_ref, free_mem_refs,
22688 determine_lsm_loop, determine_lsm): Removed.
22689 (tree_ssa_lim_finalize): Free data structures used by store motion.
22690 (tree_ssa_lim): Call analyze_memory_references. Use
22691 store_motion instead of determine_lsm.
22693 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
22695 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
22696 rename tmake_file to m68hc11/t-m68hc11.
22697 (mcore): Set inhibit_libc to true.
22698 * config.host (alpha*-dec-*vms*): Set extra_programs.
22699 (interix3*): Don't use host_xmake_file.
22700 * configure.ac: Let config.gcc override inhibit_libc.
22701 * configure: Regenerate.
22703 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
22704 * config/t-openbsd-thread: Remove commented out lines.
22706 * config/x-interix: Remove.
22708 * config/m68hc11/t-m68hc11-gas: Rename to...
22709 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
22711 * config/mcore/t-mcore: Remove T_CFLAGS.
22712 * config/mcore/t-mcore-pe: Likewise.
22714 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
22716 * configure.ac: Replace custom __GNU_SOURCE test with
22717 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
22718 * aclocal.m4: Regenerate.
22719 * configure: Regenerate.
22720 * config.in: Regenerate.
22722 2008-03-27 Richard Guenther <rguenther@suse.de>
22724 * fold-const.c (target.h): Include.
22725 (fold_comparison): Fold comparison of addresses of decls
22726 that bind locally or of constants. Consolidate address folding code.
22727 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
22728 results from fold_binary_to_constant.
22729 (compare_values_warnv): Likewise.
22731 2008-03-27 Andrew Pinski <pinskia@gmail.com>
22733 PR middle-end/35429
22734 * fold-const.c (fold_truthop): Check for integeral types when folding
22735 a == 0 && b == 0 and a != 0 || b != 0 .
22737 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
22739 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
22741 2008-03-26 Andreas Schwab <schwab@suse.de>
22743 * doc/invoke.texi: Fix use of @item vs. @itemx.
22745 2008-03-26 Tom Tromey <tromey@redhat.com>
22747 * Makefile.in (build/gensupport.o, build/print-rtl.o,
22748 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
22749 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
22750 build/gencodes.o, build/genconditions.o, build/genconfig.o,
22751 build/genconstants.o, build/genemit.o, build/genextract.o,
22752 build/genflags.o, build/genmddeps.o, build/genopinit.o,
22753 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
22756 2008-03-26 Richard Guenther <rguenther@suse.de>
22759 2008-03-26 Richard Guenther <rguenther@suse.de>
22761 * fold-const.c (target.h): Include.
22762 (fold_comparison): Fold comparison of addresses of two decls
22763 that bind locally. Consolidate address folding code.
22765 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22767 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
22768 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
22769 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
22770 dconstsqrt2, dconstthird, dconste and/or dconst10.
22771 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
22772 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
22773 dconstsqrt2, dconste): Delete.
22774 (init_emit_once): Likewise. Simplify initializing dconstm1.
22776 * real.c (get_real_const): New.
22777 * real.h (dconst3, dconst10, dconstm2, dconstthird,
22778 dconstsqrt2, dconste): Delete.
22779 (real_value_const, get_real_const): New.
22781 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
22783 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
22785 * config/i386/i386.c (ix86_function_arg_boundary): Check
22786 BIGGEST_ALIGNMENT instead of 128.
22787 (setup_incoming_varargs_64): Likewise.
22789 2008-03-26 Tom Tromey <tromey@redhat.com>
22791 * Makefile.in (DEPFILES): Add missing '/'.
22793 2008-03-26 Richard Guenther <rguenther@suse.de>
22795 * fold-const.c (target.h): Include.
22796 (fold_comparison): Fold comparison of addresses of two decls
22797 that bind locally. Consolidate address folding code.
22799 2008-03-26 Nick Clifton <nickc@redhat.com>
22802 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
22803 not allow INT+INT as a legitimate addressing mode.
22805 2008-03-26 Richard Guenther <rguenther@suse.de>
22807 * tree-flow.h (widen_bitfield): Remove declaration.
22808 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
22809 (widen_bitfield): Remove function.
22810 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
22813 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
22816 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
22819 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
22821 PR rtl-optimization/35232
22822 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
22823 (forget_old_reloads_1, forget_marked_reloads): Don't clear
22824 reg_reloaded_call_part_clobbered here.
22825 (reload_regs_reach_end_p): New function.
22826 (reload_reg_rtx_for_input): New variable.
22827 (reload_reg_rtx_for_output): Likewise.
22828 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
22829 when reassigning a pseudo register. Load reloadreg from
22830 reload_reg_rtx_for_input, moving the mode and register
22832 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
22833 instead of the original when deciding whether an input reload
22834 would be a no-op or whether an output reload can be deleted.
22835 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
22836 when setting up new_spill_reg_store. Load it from
22837 reload_reg_rtx_for_output, moving the mode and register
22839 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
22840 instead of the original when deciding whether an output reload
22841 would be a no-op. Do the same when modifying insn notes.
22842 Use rtx_equal_p instead of == to compare the registers.
22843 (inherit_piecemeal_p): Take a mode and two register numbers
22845 (emit_reload_insns): Clear new_spill_reg_store for every hard
22846 register in the reload register. Remove spill registers
22847 from reg_reloaded_valid before considering whether to record
22848 inheritance information for them. Use reload_reg_rtx_for_output
22849 instead of reg_rtx when recording output reloads. Use
22850 reload_reg_rtx_for_input instead of reg_rtx when recording
22851 input reloads. Set or clear reg_reloaded_call_part_clobbered
22852 at the same time as setting reg_reloaded_valid.
22853 (delete_output_reload): Add a new_reload_reg parameter and use it
22854 instead of rld[j].reg_rtx.
22855 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
22858 2008-03-25 Tom Tromey <tromey@redhat.com>
22860 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
22861 (build/genattr.o): Likewise.
22862 (build/genattrtab.o): Likewise.
22863 (build/gencodes.o): Likewise.
22864 (build/genconfig.o): Likewise.
22865 (build/genconstants.o): Likewise.
22866 (build/genemit.o): Likewise.
22867 (build/genextract.o): Likewise.
22868 (build/genflags.o): Likewise.
22870 2008-03-25 Bob Wilson <bob.wilson@acm.org>
22872 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
22873 instead of size_int for integer types.
22874 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
22875 to match type of MINUS_EXPR.
22877 2008-03-25 Tom Tromey <tromey@redhat.com>
22879 * configure: Rebuilt.
22880 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
22883 2008-03-25 Tom Tromey <tromey@redhat.com>
22885 * config/x-solaris (host-solaris.o): Update.
22886 * config/x-linux (host-linux.o): Update.
22887 * config/x-hpux (host-hpux.o): Update.
22888 * config/x-darwin (host-darwin.o): Update.
22889 * config/v850/t-v850e (v850-c.o): Update.
22890 * config/v850/t-v850 (v850-c.o): Update.
22891 * config/t-vxworks (vxworks.o): Update.
22892 * config/t-sol2 (sol2-c.o, sol2.o): Update.
22893 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
22894 * config/spu/t-spu-elf (spu-c.o): Update.
22896 * config/sh/t-symbian (sh-c.o): Update.
22897 (symbian.o): Update.
22898 * config/sh/t-sh (sh-c.o): Update.
22899 * config/score/t-score-elf (score7.o, score3.o): Update.
22900 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
22901 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
22902 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
22903 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
22904 (rs6000.o): Remove.
22905 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
22906 * config/m32c/t-m32c (m32c-pragma.o): Update.
22907 * config/ia64/t-ia64 (ia64-c.o): Update.
22908 * config/i386/x-mingw32 (host-mingw32.o): Update.
22909 * config/i386/x-i386 (driver-i386.o): Update.
22910 * config/i386/x-darwin (host-i386-darwin.o): Update.
22911 * config/i386/x-cygwin (host-cygwin.o): Update.
22912 * config/i386/t-nwld (nwld.o): Update.
22913 * config/i386/t-netware (netware.o): Update.
22914 * config/i386/t-interix (winnt.o): Update.
22915 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
22916 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
22917 msformat-c.o): Update.
22918 * config/bfin/t-bfin-linux (generated_files): Add
22919 linux-sysroot-suffix.h.
22920 * config/arm/t-wince-pe (pe.o): Update.
22921 * config/arm/t-strongarm-pe (pe.o): Update.
22922 * config/arm/t-pe (pe.o): Update.
22923 * config/arm/t-arm (arm-c.o): Update.
22924 * doc/install.texi (Prerequisites): Require make 3.80.
22925 * Makefile.in: Remove .o targets.
22926 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
22927 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
22928 (simple_generated_h, simple_generated_c): Move earlier.
22929 (generated_files): New variable.
22930 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
22931 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
22932 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
22933 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
22934 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
22935 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
22936 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
22937 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
22938 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
22939 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
22940 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
22941 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
22943 (COMPILE.base, COMPILE): New variables.
22944 (%.o): New pattern rule.
22945 (ALL_HOST_OBJS): New variable.
22946 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
22947 (dummy-checksum.o, cc1-checksum.o): Remove.
22948 (DRIVER_SHLIB): New variable.
22949 (DRIVER_DEFINES): Use it.
22950 (gencondmd.c): Move out of build/.
22951 (s-conditions): Update.
22952 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
22953 (ALL_BUILD_OBJS): Likewise.
22954 (build/%.o): Use BUILDCOMPILE.
22955 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
22956 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
22957 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
22958 build/gencheck.o, build/gencodes.o, build/genconditions.o,
22959 build/genconfig.o, build/genconstants.o, build/genemit.o,
22960 build/genextract.o, build/genflags.o, build/genmddeps.o,
22961 build/genopinit.o, build/genoutput.o, build/genpeep.o,
22962 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
22963 build/gen-protos.o, build/scan.o, build/fix-header.o,
22964 build/scan-decls.o): Simplify.
22965 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
22966 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
22967 prefix.o, toplev.o): Reduce to variable setting.
22968 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
22969 ($(out_object_file), gcc-options.o): New targets.
22970 ($(ALL_HOST_OBJS)): New target. Include dependency files.
22971 * configure: Rebuilt.
22972 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
22973 * doc/sourcebuild.texi (Front End Directory): Document new variable.
22975 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
22977 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
22978 complain when we hit an error, return ERROR_MARK_NODE.
22980 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
22982 * config/sh/constraints.md (Pso, Psz): New constraints.
22983 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
22984 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
22986 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
22988 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
22989 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
22991 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
22993 * config/sh/sh.md (prefetch): Add condition for SH2A target.
22994 (prefetch_sh2a): New.
22996 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
22997 Naveen.H.S <naveen.hs@kpitcummins.com>
22999 * config/sh/constraints.md (I28): New constraint.
23000 * config/sh/sh.c (broken_move): Add support for movi20s.
23001 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
23003 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
23004 Jayant Sonar <Jayant.sonar@kpitcummins.com>
23005 Naveen.H.S <naveen.hs@kpitcummins.com>
23007 * config/sh/sh.c (SH_ATTRIBUTES): Define.
23008 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
23009 (print_operand): Handle resbank in %@ operand code.
23010 (sh_encode_section_info): New.
23011 (push_regs): Add conditions for resbank.
23012 (sh_expand_epilogue): Likewise.
23013 (sh_insert_attributes): Likewise.
23014 (sh_attribute_table): Likewise.
23015 (sh_handle_resbank_handler_attribute): New.
23016 (sh2a_handle_function_vector_handler_attribute): New.
23017 (sh2a_is_function_vector_call): New.
23018 (sh2a_get_function_vector_number): New.
23019 (sh2a_function_vector_p): New.
23020 (sh_cfun_resbank_handler_p): New.
23021 * config/sh/sh.md (calli): Emit jsr/n if possible.
23022 (calli_tbr_rel): New.
23023 (calli_pcrel): Emit jsr/n if possible.
23024 (return_i): Emit rts/n if possible.
23025 (call_valuei_tbr_rel): New.
23026 (call_valuei_pcrel): Add condition for SH2A target.
23027 (call_value): Likewise.
23028 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
23029 (sh2a_get_function_vector_number): Likewise.
23030 (sh2a_is_function_vector_call): Likewise.
23031 * doc/extend.texi: Document TBR relative addressing of SH2A.
23032 (resbank): Add description for SH2A.
23034 2008-03-24 Richard Guenther <rguenther@suse.de>
23037 * gimplify.c (gimplify_modify_expr): For frontend type-correct
23038 pointer assignments change conversions according to middle-end rules.
23039 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
23040 * configure.ac: Include type checking in yes.
23041 * configure: Regenerate.
23043 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23045 * diagnostic.c (diagnostic_count_diagnostic): Delete.
23046 (diagnostic_report_diagnostic): Update. Handle ICEs here.
23048 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
23050 * gthr-vxworks.h (UNUSED): Define.
23052 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
23054 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
23056 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
23058 * doc/extend.texi (Function Attributes): Add missing comma in the
23059 example of the "alloc_size" attribute.
23061 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
23064 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
23066 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
23069 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
23072 * stor-layout.c (update_alignment_for_field): Set minimum alignment
23073 of the underlying type of a MS bitfield layout to the natural
23074 alignment of the type.
23076 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
23078 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
23079 to their natural alignment to avoid store forwarding stalls.
23081 2008-03-22 Richard Guenther <rguenther@suse.de>
23083 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
23084 For PHI nodes verify the address is invariant.
23085 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
23086 (get_symbol_constant_value): Use is_gimple_min_invariant.
23087 (maybe_fold_stmt_indirect): Likewise.
23089 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
23091 PR rtl-optimization/33927
23092 * Makefile.in (dse.o): Depend on $(TM_P_H).
23093 * expr.h (extract_low_bits): Declare.
23094 * expmed.c (extract_low_bits): New function.
23095 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
23096 * dse.c: Include tm_p.h.
23097 (find_shift_sequence): Remove the read_reg argument and return the
23098 read value. Emit the instructions instead of returning them.
23099 Iterate on new_mode rather than calculating it each time.
23100 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
23101 source to NEW_MODE and extract_low_bits to convert the shifted
23102 value to READ_MODE.
23103 (replace_read): Allow the load and store to have different mode
23104 classes. Use extract_low_bits when SHIFT == 0. Create the shift
23105 or extraction instructions before trying the replacement. Update
23106 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
23108 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
23110 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
23111 to their natural alignment to avoid store forwarding stalls.
23113 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
23116 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
23117 encouraging but not allowing gprs for input;
23118 change the input constraint to !f#r.
23119 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
23121 change the output constraint to !f#r.
23123 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
23126 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
23127 corresponding post-reload splitters.
23128 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
23129 when x87 FP math is selected.
23130 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
23131 New function prototype.
23132 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
23133 unreachable function to ease macroization of insn patterns.
23135 2008-03-21 Martin Jambor <mjambor@suse.cz>
23137 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
23138 reference dumps if ddr is NULL or dependence is unknown.
23140 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
23142 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
23143 unsigned extension into account.
23144 (ATOMIC_COMPARE_AND_SWAP): Likewise.
23145 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
23146 Do computations on a scratch register.
23148 2008-03-21 Richard Guenther <rguenther@suse.de>
23150 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
23151 Use is_gimple_min_invariant instead of TREE_INVARIANT.
23152 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
23153 * tree-ssa-dom.c (record_equality): Likewise.
23154 * tree-inline.c (copy_body_r): Likewise.
23155 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
23158 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
23160 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
23161 as 'delete_unused' argument.
23163 2008-03-20 Richard Guenther <rguenther@suse.de>
23165 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
23166 special casing of constant qualifiers.
23167 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
23168 care about them in general.
23169 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
23170 regardless of their type.
23171 (fold_stmt_r): Forcefully fold *& if we end up with that.
23173 2008-03-20 Paul Brook <paul@codesourcery.com>
23175 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
23176 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
23178 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
23180 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
23181 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
23183 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
23185 * common.opt (Wmudflap): New option.
23186 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
23187 (mx_register_decls): Likewise.
23188 (mudflap_finish_file): Likewise.
23189 * doc/invoke.texi: Document -Wno-mudflap.
23191 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
23193 * c-format.c (replace_format_name_to_system_name): New.
23194 (cmp_attribs): New.
23195 (convert_format_name_to_system_name): New.
23196 (decode_format_attr): Add use of convert_format_name_to_system_name.
23197 (format_types_orig): Add gnu_ prefix to names.
23198 (check_format_info_main): Special treating of \0 escaped names for
23199 supporting multi-character format specifiers as I32, I64.
23200 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
23201 (gnu_target_overrides_format_attributes): New.
23202 * c-format.h: Add structure target_ovr_attr to hold
23203 system specific formatter names.
23204 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
23205 msformat-c.o file to c_target_objs and cxx_target_objs.
23206 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
23207 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
23208 (TARGET_N_FORMAT_TYPES): New.
23209 * config/i386/msformat-c.c: New.
23210 * config/i386/t-cygming: Add build rule for msformat-c.o.
23211 * doc/extend.texi: Add new format names gnu_* and ms_* and
23213 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
23215 2008-03-20 Ira Rosen <irar@il.ibm.com>
23217 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
23218 optimizations turned on under -O3.
23219 (ftree-vectorize): Add that the flag is turned on with -O3.
23221 2008-03-20 Ben Elliston <bje@au.ibm.com>
23223 * regmove.c (try_auto_increment): Fix spelling error in comment.
23224 * final.c (final_scan_insn): Likewise.
23226 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
23229 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
23230 allocator preferences for "y" and "r" class registers.
23231 ("*mov<mode>_internal"): Ditto.
23232 ("*movv2sf_internal_rex64"): Ditto.
23233 ("*movv2sf_internal"): Ditto.
23235 2008-03-19 Michael Matz <matz@suse.de>
23237 PR middle-end/35616
23238 * calls.c (expand_call): Check overlap of arguments with call
23239 address for sibcalls.
23241 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
23244 * stor-layout.c (update_alignment_for_field): Set minimum alignment
23245 of the underlying type of a MS bitfield layout to the natural
23246 alignment of the type.
23248 2008-03-19 Jan Hubicka <jh@suse.cz>
23251 * toplev.c (decode_d_option): Handle all CPP flags.
23252 * tree-vrp.c: Update tree_pass descriptors.
23253 * regrename.c: Update tree_pass descriptors.
23254 * fwprop.c: Update tree_pass descriptors.
23255 * doc/invoke.texi: Remove documentation of dropped -d? flags.
23256 * tree-into-ssa.c: Update tree_pass descriptors.
23257 * tree-dump.c: Update tree_pass descriptors.
23258 * tree-complex.c: Update tree_pass descriptors.
23259 * tree-dump.h: Update tree_pass descriptors.
23260 * see.c: Update tree_pass descriptors.
23261 * cgraphbuild.c: Update tree_pass descriptors.
23262 * tracer.c: Update tree_pass descriptors.
23263 * tree-loop-distribution.c: Update tree_pass descriptors.
23264 * cgraph.c: Update tree_pass descriptors.
23265 * postreload-gcse.c: Update tree_pass descriptors.
23266 * postreload.c: Update tree_pass descriptors.
23267 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
23268 * tree-tailcall.c: Update tree_pass descriptors.
23269 * tree-pass.h (tree_opt_pass): Rename to ...
23270 (opt_pass) ... this one; add "type" field and remove letter field.
23271 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
23272 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
23273 all_lowering_passes): Update declaration.
23274 * ipa-cp.c: Update tree_pass descriptors.
23275 * final.c: Update tree_pass descriptors.
23276 * omp-low.c: Update tree_pass descriptors.
23277 * tree-ssa-dse.c: Update tree_pass descriptors.
23278 * ipa-reference.c: Update tree_pass descriptors.
23279 * tree-ssa-uncprop.c: Update tree_pass descriptors.
23280 * auto-inc-dec.c: Update tree_pass descriptors.
23281 * reorg.c: Update tree_pass descriptors.
23282 * cgraphunit.c: Update tree_pass descriptors.
23283 * tree-ssa-copyrename.c: Update tree_pass descriptors.
23284 * tree-ssa-ccp.c: Update tree_pass descriptors.
23285 * df-core.c: Update tree_pass descriptors.
23286 * mode-switching.c: Update tree_pass descriptors.
23287 * tree-nomudflap.c: Update tree_pass descriptors.
23288 * modulo-sched.c: Update tree_pass descriptors.
23289 * ipa-pure-const.c: Update tree_pass descriptors.
23290 * cse.c: Update tree_pass descriptors.
23291 * web.c: Update tree_pass descriptors.
23292 * tree-stdarg.c: Update tree_pass descriptors.
23293 * tree-ssa-math-opts.c: Update tree_pass descriptors.
23294 * tree-ssa-dom.c: Update tree_pass descriptors.
23295 * tree-nrv.c: Update tree_pass descriptors.
23296 * tree-ssa-alias.c: Update tree_pass descriptors.
23297 * loop-init.c: Update tree_pass descriptors.
23298 * gimple-low.c: Update tree_pass descriptors.
23299 * ipa-inline.c: Update tree_pass descriptors.
23300 * tree-ssa-sink.c: Update tree_pass descriptors.
23301 * global.c: Update tree_pass descriptors.
23302 * ifcvt.c: Update tree_pass descriptors.
23303 * jump.c: Update tree_pass descriptors.
23304 * predict.c: Update tree_pass descriptors.
23305 * tree-ssa-loop.c: Update tree_pass descriptors.
23306 * recog.c: Update tree_pass descriptors.
23307 * dse.c: Update tree_pass descriptors.
23308 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
23309 * tree-eh.c: Update tree_pass descriptors.
23310 * regmove.c: Update tree_pass descriptors.
23312 * function.c: Update tree_pass descriptors.
23313 * tree-vectorizer.c: Update tree_pass descriptors.
23314 * gcse.c: Update tree_pass descriptors.
23315 * ipa-type-escape.c: Update tree_pass descriptors.
23316 * tree-if-conv.c: Update tree_pass descriptors.
23317 * init-regs.c: Update tree_pass descriptors.
23318 * ipa.c: Update tree_pass descriptors.
23319 * tree-ssa-phiopt.c: Update tree_pass descriptors.
23320 * rtl-factoring.c: Update tree_pass descriptors.
23321 * lower-subreg.c: Update tree_pass descriptors.
23322 * bt-load.c: Update tree_pass descriptors.
23323 * tree-dfa.c: Update tree_pass descriptors.
23324 * except.c: Update tree_pass descriptors.
23325 * emit-rtl.c: Update tree_pass descriptors.
23326 * cfgexpand.c: Update tree_pass descriptors.
23327 * tree-cfgcleanup.c: Update tree_pass descriptors.
23328 * cfgcleanup.c: Update tree_pass descriptors.
23329 * tree-ssa-pre.c: Update tree_pass descriptors.
23330 * tree-sra.c: Update tree_pass descriptors.
23331 * tree-mudflap.c: Update tree_pass descriptors.
23332 * tree-ssa-copy.c: Update tree_pass descriptors.
23333 * cfglayout.c: Update tree_pass descriptors.
23334 * tree-ssa-forwprop.c: Update tree_pass descriptors.
23335 * tree-ssa-dce.c: Update tree_pass descriptors.
23336 * tree-ssa.c: Update tree_pass descriptors.
23337 * regclass.c: Update tree_pass descriptors.
23338 * integrate.c: Update tree_pass descriptors.
23339 * tree-optimize.c: Update tree_pass descriptors.
23340 * tree-ssa-phiprop.c: Update tree_pass descriptors.
23341 * tree-object-size.c: Update tree_pass descriptors.
23342 * combine.c: Update tree_pass descriptors.
23343 * tree-outof-ssa.c: Update tree_pass descriptors.
23344 * bb-reorder.c: Update tree_pass descriptors.
23345 * stack-ptr-mod.c: Update tree_pass descriptors.
23346 * var-tracking.c: Update tree_pass descriptors.
23347 * tree-profile.c: Update tree_pass descriptors.
23348 * tree-vect-generic.c: Update tree_pass descriptors.
23349 * reg-stack.c: Update tree_pass descriptors.
23350 * sched-rgn.c: Update tree_pass descriptors.
23351 * tree-ssa-structalias.c: Update tree_pass descriptors.
23352 * tree-cfg.c: Update tree_pass descriptors.
23353 * passes.c (current_pass): Update declaration.
23354 (finish_optimization_passes): Update.
23355 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
23356 (register_one_dump_file, register_dump_files_1, next_pass_1):
23358 (init_optimization_passes): Update handling of new types.
23359 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
23360 * ipa-struct-reorg.c: Update tree_pass descriptors.
23361 * tree-ssa-reassoc.c: Update tree_pass descriptors.
23362 * combine-stack-adj.c: Update tree_pass descriptors.
23363 * cfgrtl.c: Update tree_pass descriptors.
23364 * dce.c: Update tree_pass descriptors.
23365 * tree-ssanames.c: Update tree_pass descriptors.
23367 2008-03-19 Richard Guenther <rguenther@suse.de>
23369 PR middle-end/35609
23370 * tree-ssa.c (walk_data): New structure.
23371 (warn_uninitialized_var): If not always_executed warn with "maybe"
23373 (execute_early_warn_uninitialized): Compute post-dominators.
23374 Initialize always_executed before processing each basic block.
23376 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
23379 * config/i386/i386.c (x86_this_parameter): Calculate correct location
23380 of "this" pointer when "regparm = N" or "fastcall" is in effect.
23382 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23384 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
23386 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
23388 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
23390 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
23391 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
23392 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
23393 target after ignore has been set, and move there also the commputation
23394 of subtarget and original_target.
23395 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
23396 (LANG_HOOKS_INITIALIZER): Remove it.
23397 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
23399 2008-03-18 Richard Guenther <rguenther@suse.de>
23401 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
23402 found an expression with constants, note that in the VN for the lhs.
23403 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
23404 fold them to constants if possible. Run cleanup_cfg if done so.
23405 (execute_pre): Return todo.
23406 (do_pre): Likewise.
23407 (execute_fre): Likewise.
23408 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
23410 (get_prop_source_stmt): Look through pointer conversions.
23412 2008-03-18 Jan Hubicka <jh@suse.cz>
23414 * tree-pretty-print.c: Include predict.h.
23415 (dump_generic_node): Dump predictor.
23416 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
23417 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
23418 * gimple-low.c (lower_stmt): Likewise.
23419 * expr.c (expand_expr_real): Likewise.
23420 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
23422 (build_predict_expr, build_predict_expr): New.
23423 * predict.h (predictor_name, build_predict_expr): Update.
23424 * c-typeck.c (c_finish_bc_stmt): Add prediction.
23425 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
23426 * predict.def (PRED_CONTINUE): Update hitrate.
23427 * tree.def (PREDICT_EXPR): Define.
23428 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
23429 do not handle BIND_EXPR.
23430 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
23431 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
23432 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
23435 2008-03-18 Michael Matz <matz@suse.de>
23437 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
23439 2008-03-18 Richard Guenther <rguenther@suse.de>
23441 * tree-gimple.h (is_gimple_invariant_address): Declare.
23442 (is_gimple_constant): Likewise.
23443 * tree-gimple.c (is_gimple_constant): New function.
23444 (is_gimple_invariant_address): Likewise.
23445 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
23446 and is_gimple_invariant_address.
23447 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
23449 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
23450 an addressable base.
23452 2008-03-18 Jakub Jelinek <jakub@redhat.com>
23454 PR middle-end/35611
23455 * gimplify.c (gimplify_expr): Gimplify second operand of
23458 2008-03-17 Richard Guenther <rguenther@suse.de>
23460 PR tree-optimization/19637
23461 * fold-const.c (fold_unary): Remove restrictions of removing
23462 intermediate pointer-conversions (P2)(P1)P0.
23463 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
23464 conversion to void pointer.
23465 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
23467 2008-03-16 James E. Wilson <wilson@tuliptree.org>
23470 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
23471 emulated thread local variables.
23473 2008-03-16 Richard Guenther <rguenther@suse.de>
23475 PR middle-end/35607
23476 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23477 expand TREE_INVARIANT operations that are not gimple invariant.
23479 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
23481 * doc/extend.texi (Alignment): Say that the ABI controls
23482 the __alignof__ for non-strict-alignment targets rather
23483 than being a recommendation.
23485 2008-03-15 Paul Brook <paul@codesourcery.com>
23487 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
23489 (arm_output_fn_unwind): Mark functions that can not be unwound.
23491 2008-03-15 Paul Brook <paul@codesourcery.com>
23493 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
23494 extension instructions.
23496 2008-03-15 Richard Guenther <rguenther@suse.de>
23498 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
23499 and fold constant aggregate refs.
23500 (fold_const_aggregate_ref): Handle string constants
23501 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
23502 (evaluate_stmt): Simplify now that ccp_fold folds constant
23505 2008-03-15 Paul Brook <paul@codesourcery.com>
23507 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
23508 (extzv): Use gen_extzv_t2.
23509 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
23511 2008-03-15 Richard Guenther <rguenther@suse.de>
23513 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
23514 (fold_const_aggregate_ref): Likewise.
23515 (get_value): Return NULL if we don't have any values.
23516 (ccp_finalize): Set const_val to NULL after freeing it.
23517 * tree-flow.h (get_symbol_constant_value): Declare.
23518 (fold_const_aggregate_ref): Likewise.
23519 * tree-ssa-sccvn.c (try_to_simplify): Use them.
23521 2008-03-15 Richard Guenther <rguenther@suse.de>
23523 PR middle-end/35593
23524 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
23525 to not produce negative array indices if not allowed. Add
23526 parameter to indicate that.
23527 (maybe_fold_offset_to_component_ref): Allow negative array
23528 indices only for the first member of a structure.
23529 (maybe_fold_offset_to_reference): Allow negative array indices.
23530 (maybe_fold_stmt_addition): Likewise.
23532 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
23533 Anatoly Sokolov <aesok@post.ru>
23535 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
23536 (avr_arch): Add ARCH_AVR6.
23537 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
23538 (initial_elimination_offset): Initialize and use 'avr_pc_size'
23539 instead of fixed value 2.
23540 (print_operand_address): Use gs() asm specifier instead of pm().
23541 (avr_assemble_integer): (Ditto.).
23542 (avr_output_addr_vec_elt): (Ditto.).
23543 (print_operand): Handle "!" code.
23544 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
23545 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
23546 (AVR_HAVE_EIJMP_EICALL): Define.
23547 (AVR_3_BYTE_PC): Redefine.
23548 (AVR_2_BYTE_PC): (Ditto.).
23549 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
23550 (LINK_SPEC): Add atmega2560 and atmega2561.
23551 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
23553 * config/avr/avr.md (call_insn): Use eicall instead of icall
23554 for 3 byte PC devices.
23555 (call_value_insn): (Ditto.).
23556 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
23557 (indirect_jump): Use only for for 2 byte PC devices.
23558 (*tablejump): (Ditto.).
23559 (*indirect_jump_avr6): Add insn.
23560 (*tablejump_rjmp): Don't use for 3 byte PC devices.
23561 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
23562 instead of ijmp for 3 byte PC devices.
23563 (__tablejump2__): (Ditto.).
23564 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
23565 (MULITLIB_DIRNAMES): (Ditto.).
23566 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
23568 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
23570 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
23571 "sse2_umulsidi3". Use V1DI mode for operand 0.
23572 ("mmx_psadbw"): Use V1DI mode for operand 0.
23573 * config/i386/i386-modes.def (V1SI): New vector mode.
23574 * config/i386/i386.c (struct builtin_description)
23575 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
23576 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
23577 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
23578 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
23579 v1di_ftype_v8qi_v8qi type.
23580 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
23582 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
23583 __builtin_ia32_pmuludq]: Fix the mode of return value.
23585 2008-03-15 Richard Guenther <rguenther@suse.de>
23587 PR middle-end/35595
23588 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
23591 2008-03-14 Bob Wilson <bob.wilson@acm.org>
23593 * doc/invoke.texi (Option Summary, Xtensa Options): Document
23594 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
23595 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
23596 unless TARGET_SERIALIZE_VOLATILE is enabled.
23597 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
23598 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
23599 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
23601 2008-03-14 Richard Guenther <rguenther@suse.de>
23603 PR tree-optimization/34172
23604 * tree-flow.h (refs_may_alias_p): Declare.
23605 (get_single_def_stmt): Likewise.
23606 (get_single_def_stmt_from_phi): Likewise.
23607 (get_single_def_stmt_with_phi): Likewise.
23608 * tree-dfa.c (refs_may_alias_p): New function.
23609 (get_single_def_stmt): Likewise.
23610 (get_single_def_stmt_from_phi): Likewise.
23611 (get_single_def_stmt_with_phi): Likewise.
23612 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
23613 (vn_reference_lookup_1): New helper function.
23614 (vn_reference_lookup): Walk the virtual use-def chain to
23615 continue searching for a match if the def does not alias the
23616 reference we are looking for.
23618 2008-03-14 David Edelsohn <edelsohn@gnu.org>
23620 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
23621 archive and Perzl. Update The Written Word listing.
23623 2008-03-14 Richard Guenther <rguenther@suse.de>
23625 PR tree-optimization/34043
23626 PR tree-optimization/33989
23627 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
23629 (bitmap_find_leader): Use extra argument to verify dominance
23630 relationship inside a basic-block.
23631 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
23632 (find_leader_in_sets): Adjust.
23633 (create_component_ref_by_pieces): Take extra argument for
23634 dominance check, handle lookup failures.
23635 (find_or_generate_expression): Likewise.
23636 (create_expression_by_pieces): Likewise.
23637 (insert_into_preds_of_block): Adjust.
23638 (create_value_expr_from): If asked for, verify all operands
23639 are in the blocks AVAIL_OUT set.
23640 (make_values_for_stmt): Check for SSA_NAMEs that are life
23641 over an abnormal edge.
23642 (compute_avail): Remove such check.
23643 (do_SCCVN_insertion): New function.
23644 (eliminate): If we do not find a leader suitable for replacement
23645 insert a replacement expression from SCCVN if available.
23646 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
23647 (struct vn_ssa_aux): Add needs_insertion flag.
23648 * tree-ssa-sccvn.c (may_insert): New global flag.
23649 (copy_reference_ops_from_ref): Value-number union member access
23650 based on its size, not type and member if insertion is allowed.
23651 (visit_reference_op_load): For a weak match from union type
23652 punning lookup a view-converted value and insert a SSA_NAME
23653 for that value if that is not found.
23654 (visit_use): Make dumps shorter. Do not disallow value numbering
23655 SSA_NAMEs that are life over an abnormal edge to constants.
23656 (free_scc_vn): Release inserted SSA_NAMEs.
23657 (run_scc_vn): New flag to specify whether insertion is allowed.
23658 Process SSA_NAMEs in forward order.
23659 * tree-ssa-loop-im.c (for_each_index): Handle invariant
23660 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
23661 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
23662 pointer type to/from integral types that do not change the
23663 precision to regular conversions.
23665 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
23667 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
23668 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
23669 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
23670 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
23671 input arguments and the mode of return value. Built-in functions
23672 that operate on whole 64-bit MMX register now use V1DI mode.
23674 2008-03-13 Alon Dayan <alond@il.ibm.com>
23675 Olga Golovanevsky <olga@il.ibm.com>
23677 PR tree-optimization/35041
23678 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
23679 to locate the right position in a statement.
23681 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
23685 * config/i386/xmmintrin.h: Change all static inline functions to
23686 extern inline and add __gnu_inline__ attribute.
23687 * config/i386/bmintrin.h: Ditto.
23688 * config/i386/smmintrin.h: Ditto.
23689 * config/i386/tmmintrin.h: Ditto.
23690 * config/i386/mmintrin-common.h: Ditto.
23691 * config/i386/ammintrin.h: Ditto.
23692 * config/i386/emmintrin.h: Ditto.
23693 * config/i386/pmmintrin.h: Ditto.
23694 * config/i386/mmintrin.h: Ditto.
23695 * config/i386/mm3dnow.h: Ditto.
23697 2008-03-13 Jakub Jelinek <jakub@redhat.com>
23699 PR middle-end/35185
23700 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
23701 (lower_omp_2): New function.
23702 (lower_omp_1, lower_omp): Rewritten.
23704 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
23707 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
23708 with the phrase "Microsoft Windows compilers".
23709 (Push/Pop Macro Pragmas): New subsection. Document
23710 #pragma push_macro and pragma pop_macro.
23712 2008-03-12 Paul Brook <paul@codesourcery.com>
23714 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
23716 2008-03-12 Paul Brook <paul@codesourcery.com>
23718 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
23719 (thumb2_alusi3_short): Exclude PLUS and MINUS.
23720 (thumb2_addsi_shortim): Rename ...
23721 (thumb2_addsi_short): ... to this. Allow register operands.
23722 (thumb2_subsi_short): New pattern.
23723 (thumb2_one_cmplsi2_short,
23724 thumb2_negsi2_short): New patterns and peepholes.
23726 2008-03-12 Paul Brook <paul@codesourcery.com>
23728 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
23730 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
23732 * config/i386/i386.md (int_cond): New code iterator.
23734 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
23735 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
23736 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
23737 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
23738 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
23739 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
23740 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
23741 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
23743 2008-03-12 Paul Brook <paul@codesourcery.com>
23745 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
23746 instead of {arm,thumb}_compute_save_reg_mask.
23747 (output_return_instruction): Ditto.
23748 (thumb_unexpanded_epilogue): Ditto.
23749 (thumb1_expand_prologue): Ditto.
23750 (thumb1_output_function_prologue): Ditto.
23751 (arm_set_return_address): Ditto.
23752 (thumb_set_return_address): Ditto.
23753 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
23754 regs to achieve stack alignment.
23755 (thumb1_compute_save_reg_mask): Fix compiler warning.
23756 (arm_output_epilogue): Use offsets->saved_regs_mask.
23757 Adjust stack pointer by poping call clobered registers.
23758 (arm_expand_prologue): Use offsets->saved_regs_mask.
23759 Adjust stack pointer by pushing extra registers.
23760 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
23762 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
23765 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
23766 conversion to the operands of a multiplication.
23768 2008-03-12 Richard Guenther <rguenther@suse.de>
23770 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
23771 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
23772 * timevar.def (TV_TREE_PHIPROP): Add.
23773 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
23774 pass description. Use TV_TREE_PHIPROP.
23775 * tree-ssa-forwprop.c: Remove phiprop code.
23777 2008-03-12 Jakub Jelinek <jakub@redhat.com>
23779 PR middle-end/35549
23780 * omp-low.c (maybe_lookup_decl): Constify first argument.
23781 (use_pointer_for_field): Change last argument from bool to
23782 omp_context *. Disallow shared copy-in/out in nested
23783 parallel if decl is shared in outer parallel too.
23784 (build_outer_var_ref, scan_sharing_clauses,
23785 lower_rec_input_clauses, lower_copyprivate_clauses,
23786 lower_send_clauses, lower_send_shared_vars): Adjust callers.
23788 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
23789 Ira Rosen <irar@il.ibm.com>
23791 * tree-vectorizer.c (free_stmt_vec_info): New function.
23792 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
23793 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
23794 * tree-vectorizer.h (free_stmt_vec_info): Declare.
23795 * tree-vect-transform.c (vectorizable_conversion): Free
23796 vec_oprnds0 if it was allocated.
23797 (vect_permute_store_chain): Remove unused VECs.
23798 (vectorizable_store): Free VECs that are allocated in the..
23800 (vect_transform_strided_load, vectorizable_load): Likewise.
23801 (vect_remove_stores): Simplify the code.
23802 (vect_transform_loop): Move code to vect_remove_stores().
23803 Call vect_remove_stores() and free_stmt_vec_info().
23805 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23807 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
23808 TARGET_HPUX. Revise comment.
23809 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
23810 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
23811 Use sr4 variant of `be' instruction when not generating PIC code.
23812 (attr_length_call): Adjust for above change.
23814 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
23816 * ipa-reference.c (static_execute): Remove module_statics_const and
23817 associated setting code.
23819 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
23822 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
23823 predicate for operand 1.
23824 (paritysi2_cmp): Use register_operand predicate for operand 2.
23825 Use earlyclobber modifier for operand 1. Remove support for
23827 (paritydi2_cmp): Use register_operand predicate for operand 3.
23828 Use earlyclobber modifier for operand 1. Remove support for
23831 2008-03-11 Paul Brook <paul@codesourcery.com>
23832 Vladimir Prus <vladimir@codesourcery.com>
23834 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
23835 (arm_compute_save_reg0_reg12_mask): Always
23836 check if register 11 must be saved. Always safe hard frame pointer
23837 when frame_pointer_needeed.
23838 (arm_compute_save_reg_mask): Save IP and PC
23839 only with apcs frames.
23840 (arm_output_epilogue): Adjust Thumb2 codepath to
23841 be also invoked and work for ARM non-apcs frames.
23842 (arm_expand_prologue): Don't bother saving IP
23843 for non-apcs frame, since it's not clobbered by
23844 prologue code. Implement non-apcs frame
23847 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
23849 PR rtl-optimization/35281
23850 * expr.c (convert_move): Use a new pseudo for the intermediate
23851 from_mode->word_mode result.
23853 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
23855 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
23856 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
23857 * toplev.c (compile_file): Don't call it.
23859 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
23861 PR middle-end/35526
23862 * expr.c (store_expr): Call emit_block_move if the mode
23863 of "temp" RTX is BLKmode.
23865 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
23866 Richard Guenther <rguenther@suse.de>
23868 PR tree-optimization/31358
23869 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
23870 the step with a NULL_TREE.
23871 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
23872 to sizetype if type is a pointer type.
23873 (add_candidate_1): Don't convert the base and step to
23874 the generic type if the orginal type is a pointer type.
23875 (add_iv_value_candidates): Use sizetype for the step
23876 if type is a pointer type.
23877 (cand_value_at): Likewise.
23878 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
23880 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
23881 Don't convert the tem affine to the type.
23882 (add_elt_to_tree): Use sizetype for the step if a pointer.
23883 Use POINTER_PLUS_EXPR for pointers.
23884 (aff_combination_to_tree): Use sizetype for the step if a
23887 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
23889 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
23890 Remove commutativity hint.
23892 2008-03-10 Jakub Jelinek <jakub@redhat.com>
23896 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
23897 errorneous type. Check that v is a VAR_DECL.
23899 PR middle-end/35099
23900 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
23902 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
23904 PR tree-optimization/35494
23905 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
23906 may be overriden at link and run time.
23908 2008-03-10 Richard Guenther <rguenther@suse.de>
23910 PR tree-optimization/34677
23911 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
23912 (poolify_tree): Likewise.
23913 (modify_expr_template): Likewise.
23914 (poolify_modify_stmt): Likewise.
23915 (insert_fake_stores): Handle all component-ref style stores
23916 in addition to INDIRECT_REF. Also handle complex types.
23917 Do not poolify the inserted load.
23918 (realify_fake_stores): Do not rebuild the tree but only
23919 make it a SSA_NAME copy.
23920 (init_pre): Remove initialzation of modify_expr_template.
23921 Do not allocate modify_expr_node_pool.
23922 (fini_pre): Do not free modify_expr_node_pool.
23924 2008-03-10 Paul Brook <paul@codesourcery.com>
23926 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
23927 to avoid conflicts.
23929 2008-03-10 Paul Brook <paul@codesourcery.com>
23930 Mark Shinwell <shinwell@codesourcery.com>
23932 * config/arm/cortex-r4.md: New.
23933 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
23935 * config/arm/arm.md: Include cortex-r4.md.
23936 (insn): Add smmls, sdiv and udiv values.
23937 (generic_sched): Don't use generic scheduling for Cortex-R4.
23938 (arm_issue_rate): New function.
23939 (TARGET_SCHED_ISSUE_RATE): Define.
23941 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
23943 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
23945 2008-03-10 Richard Guenther <rguenther@suse.de>
23947 * tree-ssa-pre.c (get_sccvn_value): Simplify.
23948 (compute_avail): Do not add stmt uses to AVAIL_OUT.
23950 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
23952 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
23953 Set default to true.
23955 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23957 * c.opt (Wsynth): Deprecate.
23958 * doc/invoke.texi (Option Summary, Warning Options): Document
23959 -Wno-format-contains-nul.
23961 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
23964 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
23965 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
23967 2008-03-09 Ira Rosen <irar@il.ibm.com>
23969 * config/rs6000/rs6000.c (builtin_description): Rename vector
23970 left shift operations.
23971 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
23972 (altivec_vsl<VI_char>): Rename to ...
23973 (ashl<mode>3): ... new name.
23974 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
23976 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
23978 2008-03-08 Richard Guenther <rguenther@suse.de>
23980 * coverage.h (tree_coverage_counter_addr): Declare.
23981 * coverage.c (tree_coverage_counter_addr): New function.
23982 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
23983 before using again.
23984 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
23985 (tree_gen_one_value_profiler): Likewise.
23986 (tree_gen_ic_profiler): Likewise.
23987 (tree_gen_average_profiler): Likewise.
23988 (tree_gen_ior_profiler): Likewise.
23990 2008-03-08 Richard Guenther <rguenther@suse.de>
23992 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
23993 (vn_binary_op_insert): Likewise.
23994 (vn_unary_op_lookup): Likewise.
23995 (vn_unary_op_insert): Likewise.
23996 (vn_nary_op_lookup): Declare.
23997 (vn_nary_op_insert): Likewise.
23998 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
23999 and binary hashes, use a single obstack for unary_op_pool
24000 and binary_op_pool.
24001 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
24002 a single struct vn_nary_op_s. Store tree code length and
24003 a variable number of operands.
24004 (struct vn_reference_op_struct): Remove unused op2.
24005 (vn_reference_op_eq): Do not compare op2.
24006 (vn_reference_op_compute_hash): Do not compute hash of op2.
24007 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
24008 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
24009 with vn_nary_op_compute_hash.
24010 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
24011 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
24013 (vn_unary_op_insert, vn_binary_op_insert): Replace with
24015 (visit_unary_op): Call nary functions.
24016 (visit_binary_op): Likewise.
24017 (process_scc): Adjust for struct vn_tables_s changes.
24018 (allocate_vn_table): Likewise.
24019 (free_vn_table): Likewise.
24020 * tree-vn.c (vn_add): Call nary functions.
24021 (vn_lookup): Likewise.
24023 2008-03-08 Jakub Jelinek <jakub@redhat.com>
24026 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
24027 wdst back after sync_compare_and_swapqhi_internal.
24029 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
24032 * config/i386/i386-modes.def (V1DI): New vector mode.
24033 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
24034 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
24035 (MMXMODE248): Ditto.
24036 (MMXMODE): Add V1DI mode.
24037 (mmxvecsize): Change DI mode to V1DI mode.
24038 ("mov<mode>): Use MMXMODEI8 mode iterator.
24039 ("*mov<mode>_internal_rex64"): Ditto.
24040 ("*mov<mode>_internal"): Ditto.
24041 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
24042 ("mmx_sub<mode>3"): Ditto.
24043 ("mmx_adddi3"): Remove insn pattern.
24044 ("mmx_subdi3"): Ditto.
24045 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
24046 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
24047 ("mmx_ashl<mode>3"): Ditto.
24048 ("mmx_lshrdi3"): Remove insn pattern.
24049 ("mmx_ashldi3"): Ditto.
24050 * config/i386/i386.c (classify_argument): Handle V1DImode.
24051 (function_arg_advance_32): Ditto.
24052 (function_arg_32): Ditto.
24053 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
24054 mmx_addv1di3 insn pattern.
24055 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
24056 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
24057 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
24058 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
24059 Remove definitions of built-in functions.
24060 (V1DI_type_node): New node.
24061 (v1di_ftype_v1di_int): Ditto.
24062 (v1di_ftype_v1di_v1di): Ditto.
24063 (v2si_ftype_v2si_si): Ditto.
24064 (v4hi_ftype_v4hi_di): Remove node.
24065 (v2si_ftype_v2si_di): Ditto.
24066 (ix86_init_mmx_sse_builtins): Handle V1DImode.
24067 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
24068 Redefine builtins using def_builtin_const with *_ftype_*_int node.
24069 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
24070 Add new builtins using def_builtin_const.
24071 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
24072 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
24073 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
24074 * config/i386/mmintrin.h (__v1di): New typedef.
24075 (_mm_add_si64): Cast arguments to __v1di type.
24076 (_mm_sub_si64): Ditto.
24077 (_mm_sll_pi16): Cast __count to __v4hi type.
24078 (_mm_sll_pi32): Cast __count to __v2si type.
24079 (_mm_sll_si64): Cast arguments to __v1di type.
24080 (_mm_srl_pi16): Cast __count to __v4hi type.
24081 (_mm_srl_pi32): Cast __count to __v2si type.
24082 (_mm_srl_si64): Cast arguments to __v1di type.
24083 (_mm_sra_pi16): Cast __count to __v4hi type.
24084 (_mm_sra_pi32): Cast __count to __v2si type.
24085 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
24086 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
24087 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
24088 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
24089 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
24090 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
24091 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
24092 (_mm_srai_pi32): Use __builtin_ia32_psradi.
24093 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
24094 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
24095 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
24096 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
24098 2008-03-07 Joseph Myers <joseph@codesourcery.com>
24100 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
24102 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
24105 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
24106 reg+const addressing for Altivec modes. Don't generate reg+reg
24107 addressing for TFmode or TDmode quantities.
24109 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
24111 * c-common.c (vector_types_convertible_p): Call langhook
24112 instead of comptypes.
24114 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
24117 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
24118 integral and scalar float variables which have a
24121 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
24123 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
24124 dwarf_register_span hook when emitting unwind information for
24125 register-to-memory saves.
24126 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
24127 (rs6000_frame_related): Remove call to spe_synthesize_frame.
24129 2008-03-06 Jakub Jelinek <jakub@redhat.com>
24131 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
24132 for the same VAR_DECL.
24134 2008-03-06 Tom Tromey <tromey@redhat.com>
24136 * treelang: Delete.
24137 * doc/standards.texi (Standards): Don't mention treelang.
24138 * doc/invoke.texi (Overall Options): Don't mention treelang.
24139 * doc/install.texi (Prerequisites): Don't mention bison or
24141 (Configuration): Don't mention treelang.
24142 (Building): Likewise.
24143 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
24145 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
24147 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
24148 word-extractions out of a multi-word object.
24150 2008-03-06 Richard Guenther <rguenther@suse.de>
24152 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
24153 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
24154 result type and precision.
24155 * expr.c (get_inner_reference): Set unsignedp based on the result
24156 type of BIT_FIELD_REF.
24157 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
24158 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
24159 (try_instantiate_multiple_fields): Likewise. Use the correct type
24161 (sra_build_assignment): Likewise.
24162 (sra_build_elt_assignment): Likewise.
24163 (sra_explode_bitfield_assignment): Likewise.
24164 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
24165 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
24166 set BIT_FIELD_REF_UNSIGNED.
24167 (vectorizable_load): Likewise.
24169 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
24171 * cse.c (cse_extended_basic_block): Invalidate artificial defs
24174 2008-03-06 Richard Guenther <rguenther@suse.de>
24176 * alias.c (struct alias_set_entry): Move has_zero_child field
24177 to pack with alias_set.
24179 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
24181 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
24184 2008-03-05 Ian Lance Taylor <iant@google.com>
24186 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
24188 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
24190 * fwprop.c (update_df): Support width and offset parameters of
24192 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
24193 global_conflicts): Change DF_REF_EXTRACT to either
24194 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
24195 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
24196 * df-scan.c (df_ref_record, df_defs_record,
24197 df_ref_create_structure, df_def_record_1, df_uses_record,
24198 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
24199 df_bb_refs_collect, df_entry_block_defs_collect,
24200 df_exit_block_uses_collect): Support new width and offset fields.
24201 (ref_extract_pool): New storage pool.
24202 (df_free_ref): New function.
24203 (df_reg_chain_unlink, df_free_collection_rec,
24204 df_sort_and_compress_refs): Call df_free_ref.
24205 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
24207 (df_ref_create_structure): Allocate df_ref_extract if offset and
24208 width fields are used.
24209 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
24210 (df_uses_record): Get offset and width from ZERO_EXTRACT
24212 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
24213 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
24214 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
24215 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
24216 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
24217 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
24218 (df_ref_extract): New structure.
24219 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
24220 (df_ref_create): Add width and offset parameters.
24222 2008-03-05 Richard Guenther <rguenther@suse.de>
24224 * tree-ssa-structalias.c (get_constraint_for_component_ref):
24225 Use ranges_overlap_p.
24226 (offset_overlaps_with_access): Rename
24227 to ranges_overlap_p and move ...
24228 * tree-flow-inline.h (ranges_overlap_p): ... here.
24230 * tree.h (get_inner_reference, handled_component_p): Update
24233 * tree.h (record_component_aliases, get_alias_set,
24234 alias_sets_conflict_p, alias_sets_must_conflict_p,
24235 objects_must_conflict_p): Move declarations ...
24236 * alias.h (record_component_aliases, get_alias_set,
24237 alias_sets_conflict_p, alias_sets_must_conflict_p,
24238 objects_must_conflict_p): ... here.
24239 Include coretypes.h.
24240 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
24242 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
24244 * cfg.c: Include tree-flow.h.
24245 (remove_edge_raw): Call redirect_edge_var_map_clear.
24246 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
24247 * tree-flow-inline.h (redirect_edge_var_map_def): New.
24248 (redirect_edge_var_map_result): New.
24249 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
24250 PENDING_STMT use with redirect_edge_var_map_*.
24251 * tree-ssa.c (edge_var_maps): New definition.
24252 (redirect_edge_var_map_add): New.
24253 (redirect_edge_var_map_clear): New.
24254 (redirect_edge_var_map_dup): New.
24255 (redirect_edge_var_map_vector): New.
24256 (redirect_edge_var_map_destroy): New.
24257 (ssa_redirect_edge): Replace PENDING_STMT use with
24258 redirect_edge_var_map_*.
24259 (flush_pending_stmts): Same.
24260 (delete_tree_ssa): Destroy edge var map.
24261 * tree-flow.h (struct _edge_var_map): New.
24262 Define edge_var_map vector type.
24263 Declare redirect_edge_var_map_* prototypes.
24264 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
24265 * tree-cfg.c (reinstall_phi_args): Replace
24266 PENDING_STMT use with redirect_edge_var_map_*.
24268 2008-03-05 Richard Guenther <rguenther@suse.de>
24270 PR tree-optimization/35472
24271 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
24272 whose single use_stmt has a overlapping set of loaded and
24273 stored symbols as that use_stmt might be a noop assignment then.
24275 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
24277 * gthr-rtems.h: Implement __gthread_mutex_destroy.
24279 2008-03-05 Richard Guenther <rguenther@suse.de>
24282 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
24283 should be constants.
24284 * tree-cfg.c (verify_expr): Verify it.
24285 * fold-const.c (fold_truthop): Remove code generating
24286 BIT_FIELD_REFs of structure bases.
24287 (fold_binary): Likewise.
24288 (fold_ternary): Position and size of BIT_FIELD_REFs are
24289 always host integers.
24290 (make_bit_field_ref): Remove.
24291 (optimize_bit_field_compare): Remove.
24292 (all_ones_mask_p): Remove.
24294 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
24297 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
24298 (split_block_and_df_analyze): New. Split basic block and rebuild
24300 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
24302 (split_pattern_seq): Likewise.
24303 (erase_matching_seqs): Likewise.
24304 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
24306 2008-03-04 Geoff Keating <geoffk@apple.com>
24308 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
24309 declaration and code.
24310 (tree_invalid_nonnegative_warnv_p): Likewise.
24312 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
24314 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
24315 examples. Truncate option-names then causing overfull hbox.
24317 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24320 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
24322 * configure: Rebuilt.
24324 2008-03-04 Rafael Espíndola <espindola@google.com>
24326 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
24327 (tree_unary_nonnegative_warnv_p): New.
24328 (tree_binary_nonnegative_warnv_p): New.
24329 (tree_single_nonnegative_warnv_p): New.
24330 (tree_invalid_nonnegative_warnv_p): New.
24331 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
24333 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24336 * opts.c (handle_option): Postpone 'unknown option' errors only for
24339 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
24342 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
24345 2008-03-04 Rafael Espíndola <espindola@google.com>
24347 * fold-const.c (tree_unary_nonzero_warnv_p): New.
24348 (tree_binary_nonzero_warnv_p): New.
24349 (tree_single_nonzero_warnv_p): New.
24350 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
24352 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
24354 PR middle-end/35456
24355 * fold-const.c (fold_cond_expr_with_comparison): Prevent
24356 transformations for modes that have signed zeros.
24357 * ifcvt.c (noce_try_abs): Ditto.
24359 2008-03-04 Joseph Myers <joseph@codesourcery.com>
24361 * config/i386/i386.c (override_options): Force
24362 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
24364 2008-03-04 Jan Hubicka <jh@suse.cz>
24367 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
24370 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
24372 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
24373 label to probe the stack.
24375 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
24377 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
24378 (__gthr_win32_mutex_destroy): Declare.
24379 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
24380 __gthr_win32_mutex_destroy.
24381 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
24383 2008-03-03 Jan Hubicka <jh@suse.cz>
24386 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
24387 aggressive on inlining cold calls.
24389 2008-03-03 Richard Guenther <rguenther@suse.de>
24391 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
24392 struct copies into the expression table.
24393 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
24394 (try_to_simplify): Likewise.
24395 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
24396 integral and pointer arguments which do not change the
24397 precision to NOP_EXPRs.
24398 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
24399 VIEW_CONVERT_EXPR case.
24401 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
24403 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
24404 defined in a loop at depth 0 is invariant.
24405 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
24406 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
24407 be called at loop depth 0.
24409 2008-03-02 Jakub Jelinek <jakub@redhat.com>
24412 * gcc.c (process_command): Update copyright notice dates.
24413 * gcov.c (print_version): Likewise.
24414 * gcov-dump.c (print_version): Likewise.
24415 * mips-tfile.c (main): Likewise.
24416 * mips-tdump.c (main): Likewise.
24418 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24421 * c-common.c (flag_permissive): Delete.
24422 (constant_expression_warnings): Check flags first.
24423 (constant_expression_error): New.
24424 * c-common.h (flag_permissive): Delete.
24425 (constant_expression_error): Declare.
24426 * flags.h (flag_permissive): Declare. Update description.
24427 * diagnostic.c (pedwarn): Update.
24429 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
24430 (permissive_error_kind): New.
24431 * toplev.c (flag_permissive): Define. Update description.
24432 * toplev.h (permissive_error_kind): Declare.
24433 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
24434 (pedwarn_c90): Use pedantic_warning_kind.
24435 * c-opts.c (c_common_post_options): flag_permissive does not affect
24436 flag_pedantic_errors.
24438 2008-03-02 Joseph Myers <joseph@codesourcery.com>
24440 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
24441 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
24442 __absvsi2, __absvDI2): Use unsigned arithmetic.
24444 2008-03-02 Andi Kleen <ak@suse.de>
24445 Richard Guenther <rguenther@suse.de>
24447 * struct-equiv.c: Remove file.
24448 * cfg_cleanup.c (condjump_equiv_p): Remove.
24449 * Makefile.in (OBJS-common): Remove struct-equiv.o.
24450 (struct-equiv.o): Remove rule.
24451 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
24452 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
24453 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
24455 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
24457 * ifcvt.c (noce_process_if_block): Try to handle only the then
24458 block if the else block exists but isn't suitable.
24460 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
24463 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
24464 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
24465 regression from previous patch.
24467 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
24470 * gthr.h: Add __gthread_mutex_destroy as a function that must be
24472 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
24473 * gthr-single.h (__gthread_mutex_destroy): Likewise.
24474 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
24475 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
24476 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
24477 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
24478 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
24479 (__gthread_mutex_destroy_function): Rename to
24480 __gthread_mutex_destroy.
24481 * gthr-dce.h (__gthread_mutex_destroy): Call
24482 pthread_mutex_destroy.
24483 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
24484 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
24485 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
24487 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
24489 * df-scan.c (df_ref_chain_change_bb): Simplify.
24490 (df_insn_change_bb): Add new_bb argument. Simplify. Call
24491 set_block_for_insn if there's any change.
24492 * df.h ((df_insn_change_bb): Fix prototype.
24493 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
24494 df_insn_change_bb, don't call set_block_for_insn.
24495 * emit-rtl.c (reorder_insns): Likewise.
24496 * haifa-sched.c (move_insn): Likewise.
24498 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
24500 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
24502 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
24504 * tree-flow-inline.h (next_readonly_imm_use): Return
24505 NULL_USE_OPERAND_P after the end.
24507 2008-03-01 Richard Guenther <rguenther@suse.de>
24509 PR tree-optimization/35411
24510 * tree-sra.c (sra_build_assignment): Split conversion to
24511 final type to a separate statement if we are not assigning
24514 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
24516 * fold-const.c (fold_convertible_p): Correct the logic to follow
24517 that in fold_convert().
24519 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
24522 * tree-inline.c (build_duplicate_type): When we make a
24523 duplicate type, make it unique in the canonical types system.
24525 2008-02-29 Tom Tromey <tromey@redhat.com>
24527 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
24528 input_file_stack_history, input_file_stack_restored): Remove.
24529 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
24530 * input.h (struct file_stack): Remove.
24531 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
24532 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
24534 * diagnostic.h (struct diagnostic_context) <last_module>: Change
24536 (diagnostic_last_module_changed): Add 'map' argument.
24537 (diagnostic_set_last_function): Likewise.
24538 * diagnostic.c (undiagnostic_report_current_module): Iterate using
24539 line map, not input_file_stack.
24540 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
24542 2008-02-29 Paul Brook <paul@codesourcery.com>
24544 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
24546 2008-02-29 Paul Brook <paul@codesourcery.com>
24548 * config/arm/ieee754-df.S (muldf3): Use RET macros.
24550 2008-02-29 Richard Guenther <rguenther@suse.de>
24552 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
24554 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
24555 value for comparing for a store match.
24556 (simplify_unary_expression): Do nothing for SSA_NAMEs.
24557 (try_to_simplify): Do not do a full-blown reference lookup.
24559 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
24561 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
24562 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
24564 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
24566 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
24568 * tree-loop-linear.c (try_interchange_loops): Compare memory access
24569 strides against cache sizes.
24571 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
24573 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
24576 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
24578 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
24579 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
24580 is smaller than the original promoted value.
24581 (simplify_subreg): If OP is a SUBREG, try to preserve its
24582 SUBREG_PROMOTED_VAR_P information.
24584 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
24586 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
24587 (VN_INFO_GET): Allocate new objects on the obstack.
24588 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
24589 for rpo_numbers_temp, for consistency.
24590 (free_scc_vn): Free the obstack.
24592 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
24594 * doc/invoke.texi: Document -ftree-loop-distribution.
24595 * tree-loop-distribution.c: New.
24596 * tree-pass.h (pass_loop_distribution): New.
24597 * graphds.h (struct graph): Add htab_t indices.
24598 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
24599 * tree-vectorizer.c (rename_variables_in_loop): Extern.
24600 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
24601 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
24602 * tree-data-ref.c (debug_data_dependence_relations): New.
24603 (dump_data_dependence_relation): Also print data references.
24604 (free_data_ref): Extern.
24605 (same_access_functions): Moved...
24606 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
24607 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
24608 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
24609 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
24610 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
24611 (stmts_from_loop): Skip LABEL_EXPR.
24612 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
24614 (build_rdg): Initialize rdg->indices htab.
24615 (free_rdg, stores_from_loop, ref_base_address,
24616 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
24617 have_similar_memory_accesses_1, ref_base_address_1,
24618 remove_similar_memory_refs): New.
24619 * tree-data-ref.h: Depend on tree-chrec.h.
24620 (debug_data_dependence_relations, free_data_ref): Declared.
24621 (same_access_functions): ... here.
24622 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
24624 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
24625 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
24626 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
24627 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
24628 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
24629 rdg_vertex_for_stmt): Declared.
24630 (struct rdg_edge): Add level.
24632 (free_rdg, stores_from_loop, remove_similar_memory_refs,
24633 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
24635 (rdg_has_similar_memory_accesses): New.
24636 * tree-vect-analyze.c: Remove unused static decls.
24637 * lambda.h (dependence_level): New.
24638 * common.opt (ftree-loop-distribution): New.
24639 * tree-flow.h (mark_virtual_ops_in_bb,
24640 slpeel_tree_duplicate_loop_to_edge_cfg,
24641 rename_variables_in_loop): Declared.
24642 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
24643 (OBJS-common): Add tree-loop-distribution.o.
24644 (tree-loop-distribution.o): New rule.
24645 * tree-cfg.c (mark_virtual_ops_in_bb): New.
24646 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
24647 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
24649 2008-02-28 Joseph Myers <joseph@codesourcery.com>
24652 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
24653 other than structures and unions.
24655 2008-02-28 Richard Guenther <rguenther@suse.de>
24658 2008-02-26 Richard Guenther <rguenther@suse.de>
24660 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
24661 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
24662 (lookup_decl_from_uid): Declare.
24663 (remove_decl_from_map): Likewise.
24664 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
24665 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
24666 (decl_for_uid_map): New global hashtable mapping DECL_UID
24668 (init_ttree): Allocate it.
24669 (insert_decl_to_uid_decl_map): New helper function.
24670 (make_node_stat): Insert new decls into the map.
24671 (copy_node_stat): Likewise.
24672 (lookup_decl_from_uid): New function.
24673 (remove_decl_from_map): Likewise.
24674 (print_decl_for_uid_map_statistics): New helper.
24675 (dump_tree_statistics): Call it.
24677 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
24678 (referenced_var_iterator): Adjust.
24679 (FOR_EACH_REFERENCED_VAR): Adjust.
24680 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
24681 (num_referenced_vars): Adjust.
24682 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
24683 (first_referenced_var): Remove.
24684 (end_referenced_vars_p): Likewise.
24685 (next_referenced_var): Likewise.
24686 (referenced_var_iterator_set): New helper function.
24687 * tree-dfa.c (referenced_var_lookup): Adjust.
24688 (referenced_var_check_and_insert): Likewise.
24689 (remove_referenced_var): Likewise.
24690 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
24691 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
24692 (verify_call_clobbering): Likewise.
24693 (verify_memory_partitions): Likewise.
24694 (init_tree_ssa): Allocate bitmap instead of hashtable for
24696 (delete_tree_ssa): Adjust.
24697 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
24698 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
24699 (compute_tag_properties): Likewise.
24700 (set_initial_properties): Likewise.
24701 (find_partition_for): Likewise.
24702 (update_reference_counts): Likewise.
24703 (dump_may_aliases_for): Likewise.
24704 * tree-ssa-operands.c (add_virtual_operand): Likewise.
24705 (add_call_clobber_ops): Likewise.
24706 (add_call_read_ops): Likewise.
24707 (get_asm_expr_operands): Likewise.
24708 * tree-into-ssa.c (dump_decl_set): Likewise.
24709 (update_ssa): Likewise.
24710 * tree-sra.c (scan_function): Likewise.
24711 (decide_instantiations): Likewise.
24712 (scalarize_parms): Likewise.
24713 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
24714 (dsa_named_for): Likewise.
24715 * tree-ssa-structalias.c (update_alias_info): Likewise.
24716 (merge_smts_into): Likewise.
24718 2008-02-27 David Daney <ddaney@avtrex.com>
24721 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
24722 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
24723 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
24724 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
24725 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
24727 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
24730 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
24731 (BUILT_IN_NEXTTOWARD): Remove.
24732 (BUILT_IN_NEXTTOWARDF): Ditto.
24733 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
24734 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
24736 2008-02-27 Tom Tromey <tromey@redhat.com>
24738 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
24739 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
24741 2008-02-27 Jan Beulich <jbeulich@novell.com>
24743 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
24744 update the respective field on newdecl.
24746 2008-02-27 Revital Eres <eres@il.ibm.com>
24748 PR rtl-optimization/34999
24749 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
24750 crossing edges that ends with a call insn.
24751 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
24752 call insn and clear the EDGE_CROSSING flag of the crossing edge
24753 when fixing fallthru edges.
24755 2008-02-27 Richard Guenther <rguenther@suse.de>
24757 PR middle-end/35390
24758 * fold-const.c (fold_unary): Return the correct argument,
24759 converted to the result type.
24761 2008-02-27 Richard Guenther <rguenther@suse.de>
24763 PR middle-end/34971
24764 * expr.c (expand_expr_real_1): Assert on rotates that operate
24766 * fold-const.c (fold_binary): Use the types precision, not the
24767 bitsize of the mode if folding rotate expressions. Build rotates
24768 only for full modes.
24770 2008-02-27 Jakub Jelinek <jakub@redhat.com>
24772 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
24773 and CPP_PRAGMA_EOL.
24774 * c-pragma.c (pragma_ns_name): New typedef.
24775 (registered_pp_pragmas): New variable.
24776 (c_pp_lookup_pragma): New function.
24777 (c_register_pragma_1): If flag_preprocess_only, do nothing
24778 for non-expanded pragmas, for expanded ones push pragma's
24779 namespace and name into registered_pp_pragmas vector.
24780 (c_invoke_pragma_handler): Register OpenMP pragmas even when
24781 flag_preprocess_only, don't register GCC pch_preprocess
24782 pragma if flag_preprocess_only.
24783 * c-opts.c (c_common_init): Call init_pragma even if
24784 flag_preprocess_only.
24785 * c-pragma.c (c_pp_lookup_pragma): New prototype.
24786 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
24787 cpp_register_pragma if flag_preprocess_only.
24789 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24792 * c-parser.c (c_parser_translation_unit): Warn for empty
24793 translation unit, not empty source file.
24795 2008-02-26 Paul Brook <paul@codesourcery.com>
24797 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
24798 operand for Thumb-2.
24799 * config/arm/arm.h (reg_class): Add CORE_REGS.
24800 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
24801 (BASE_REG_CLASS): Use CORE_REGS.
24802 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
24803 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
24804 (REGNO_OK_FOR_INDEX_P): Exclude SP.
24805 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
24806 ARM_REGNO_OK_FOR_INDEX_P.
24807 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
24808 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
24809 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
24810 (ldm/stm peepholes): Ditto.
24811 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
24812 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
24813 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
24814 * config/arm/constraints.md: Enable "k" constraint on ARM.
24816 2008-02-27 Ben Elliston <bje@au.ibm.com>
24818 * config/rs6000/rs6000.c: Annotate cache line size field in all
24819 instances of struct processor_costs.
24821 2008-02-26 David Edelsohn <edelsohn@gnu.org>
24823 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
24824 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
24825 jump_bypass): New counters.
24826 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
24827 * dce.c (gate_ud_dce): Same.
24828 (gate_fast_dce): Same.
24829 * dse.c (gate_dse1): New function.
24830 (gate_dse2): New function.
24831 (gate_dse): Merge results of new gate functions.
24832 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
24833 (gate_handle_jump_bypass): Add dbg_cnt.
24834 (gate_handle_gcse): Add dbg_cnt.
24835 * ifcvt.c (gate_handle_if_conversion): Same.
24836 (gate_handle_if_after_combine): Same.
24837 (gate_handle_if_after_reload): Same.
24838 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
24840 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
24842 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
24844 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
24846 2008-02-26 Jason Merrill <jason@redhat.com>
24849 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
24850 alone if it's the naming decl for the type's main variant.
24852 2008-02-26 Tom Tromey <tromey@redhat.com>
24854 * system.h (USE_MAPPED_LOCATION): Poison.
24855 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
24856 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
24857 (make_goto_expr_edges): Likewise.
24858 (remove_bb): Likewise.
24859 (execute_warn_function_return): Likewise.
24860 * basic-block.h (struct edge_def) <goto_locus>: Change type to
24862 * c-common.c (fname_decl): Remove old location code.
24863 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
24865 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
24867 (ASM_INPUT_SOURCE_LOCATION): Likewise.
24868 (gen_rtx_ASM_INPUT): Likewise.
24869 (gen_rtx_ASM_INPUT_loc): Likewise.
24870 (get_rtx_asm_OPERANDS): Remove.
24871 * cfglayout.c (insn_locators_alloc): Remove old location code.
24872 (set_curr_insn_source_location): Likewise.
24873 (curr_insn_locator): Likewise.
24874 * print-tree.c (print_node): Remove old location code.
24875 * tree-mudflap.c (mf_varname_tree): Remove old location code.
24876 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
24877 * cfgexpand.c (expand_gimple_cond_expr): Don't use
24878 location_from_locus.
24879 (construct_exit_block): Remove old location code.
24880 * emit-rtl.c (force_next_line_note): Remove old location code.
24881 * profile.c (branch_prob): Remove old location code.
24882 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
24883 LOC_LINE): Remove old-location variants.
24884 * langhooks.c (lhd_print_error_function): Remove old location
24886 * configure, config.in: Rebuilt.
24887 * configure.ac (--enable-mapped-location): Remove.
24888 * c-decl.c (c_init_decl_processing): Remove old location code.
24889 (finish_function): Likewise.
24890 * recog.c (decode_asm_operands): Remove old location code.
24891 * c-pch.c (c_common_read_pch): Remove old location code.
24892 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
24894 * gimple-low.c (lower_function_body): Remove old location code.
24895 * toplev.c (unknown_location): Remove.
24896 (push_srcloc): Remove old-location variant.
24897 (process_options): Remove old location code.
24898 (lang_dependent_init): Likewise.
24899 * input.h (UNKNOWN_LOCATION): Move definition.
24900 (location_t): Undeprecate.
24901 (source_locus): Remove.
24902 (location_from_locus): Remove.
24903 (struct location_s): Remove.
24904 Remove all old-location code.
24905 (input_line, input_filename): Remove.
24906 * final.c (final_scan_insn): Remove old location code.
24907 * diagnostic.c (diagnostic_build_prefix): Remove
24908 USE_MAPPED_LOCATION test.
24909 * tree.h (gimple_stmt) <locus>: Now a location_t.
24910 (tree_exp) <locus>: Likewise.
24911 (DECL_IS_BUILTIN): Remove old-location variant.
24912 (annotate_with_file_line, annotate_with_locus): Likewise.
24913 (expr_locus, set_expr_locus): Update.
24914 * tree.c (build1_stat): Remove old location code.
24915 (last_annotated_node): Remove.
24916 (annotate_with_file_line): Remove old-location variant.
24917 (annotate_with_locus): Likewise.
24918 (expr_location): Remove old location code.
24919 (set_expr_location): Likewise.
24920 (expr_has_location): Likewise.
24921 (expr_locus): Likewise.
24922 (set_expr_locus): Likewise.
24923 (expr_filename): Don't use location_from_locus.
24924 (expr_lineno): Likewise.
24925 * rtl-error.c (location_for_asm): Remove old location code.
24926 * c-lex.c (cb_line_change): Remove old location code.
24927 (fe_file_change): Likewise.
24928 (cb_def_pragma): Likewise.
24929 (c_lex_with_flags): Likewise.
24930 * gengtype.c (do_typedef): Don't special-case location types.
24931 (define_location_structures): Remove.
24932 (main): Don't call define_location_structures.
24933 * tree-pretty-print.c (dump_implicit_edges): Remove old location
24936 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24939 * builtins.def (BUILT_IN_STDARG_START): Remove.
24940 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
24941 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
24942 * tree-inline.c (inline_forbidden_p_1): Likewise.
24944 2008-02-26 Richard Guenther <rguenther@suse.de>
24946 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
24947 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
24948 (lookup_decl_from_uid): Declare.
24949 (remove_decl_from_map): Likewise.
24950 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
24951 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
24952 (decl_for_uid_map): New global hashtable mapping DECL_UID
24954 (init_ttree): Allocate it.
24955 (insert_decl_to_uid_decl_map): New helper function.
24956 (make_node_stat): Insert new decls into the map.
24957 (copy_node_stat): Likewise.
24958 (lookup_decl_from_uid): New function.
24959 (remove_decl_from_map): Likewise.
24960 (print_decl_for_uid_map_statistics): New helper.
24961 (dump_tree_statistics): Call it.
24963 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
24964 (referenced_var_iterator): Adjust.
24965 (FOR_EACH_REFERENCED_VAR): Adjust.
24966 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
24967 (num_referenced_vars): Adjust.
24968 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
24969 (first_referenced_var): Remove.
24970 (end_referenced_vars_p): Likewise.
24971 (next_referenced_var): Likewise.
24972 (referenced_var_iterator_set): New helper function.
24973 * tree-dfa.c (referenced_var_lookup): Adjust.
24974 (referenced_var_check_and_insert): Likewise.
24975 (remove_referenced_var): Likewise.
24976 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
24977 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
24978 (verify_call_clobbering): Likewise.
24979 (verify_memory_partitions): Likewise.
24980 (init_tree_ssa): Allocate bitmap instead of hashtable for
24982 (delete_tree_ssa): Adjust.
24983 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
24984 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
24985 (compute_tag_properties): Likewise.
24986 (set_initial_properties): Likewise.
24987 (find_partition_for): Likewise.
24988 (update_reference_counts): Likewise.
24989 (dump_may_aliases_for): Likewise.
24990 * tree-ssa-operands.c (add_virtual_operand): Likewise.
24991 (add_call_clobber_ops): Likewise.
24992 (add_call_read_ops): Likewise.
24993 (get_asm_expr_operands): Likewise.
24994 * tree-into-ssa.c (dump_decl_set): Likewise.
24995 (update_ssa): Likewise.
24996 * tree-sra.c (scan_function): Likewise.
24997 (decide_instantiations): Likewise.
24998 (scalarize_parms): Likewise.
24999 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
25000 (dsa_named_for): Likewise.
25001 * tree-ssa-structalias.c (update_alias_info): Likewise.
25002 (merge_smts_into): Likewise.
25004 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25007 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
25008 * c-opts.c (c_common_handle_option): Wall enables
25009 Wvolatile-register-var.
25010 * common.opt: Move Wvolatile-register-var to...
25013 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25015 * common.opt (Wlarger-than=): New.
25016 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
25018 * opts.c (common_handle_option): Handle -Wlarger-than=.
25019 * optc-gen.awk: Likewise.
25020 * opth-gen.awk: Likewise.
25021 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
25022 * tree-optimize.c (tree_rest_of_compilation): Likewise.
25024 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25026 * c-common.c (match_case_to_enum_1): Add appropriate
25027 OPT_W* parameter to warning.
25028 (c_do_switch_warnings): Likewise.
25029 * c-typeck.c (warning_init): Add one more parameter following
25030 'warning' function.
25031 (push_init_level): Update call to warning_init.
25032 (pop_init_level): Likewise.
25033 (add_pending_init): Likewise.
25034 (output_init_element: Likewise.
25036 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25039 * toplev.c (toplev_main): If there are warnings or error, print
25040 errors for ignored options.
25041 * opts.c (ignored_options): New static variable.
25042 (postpone_unknown_option_error): New.
25043 (print_ignored_options): New.
25044 (handle_option): Postpone errors for unknown -Wno-* options.
25045 * opts.h (print_ignored_options): Declare.
25047 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
25049 * config/mips/mips.md (loadgp_blockage, blockage): Change type
25052 2008-02-25 Richard Guenther <rguenther@suse.de>
25055 2008-02-25 Richard Guenther <rguenther@suse.de>
25057 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
25058 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
25059 (lookup_decl_from_uid): Declare.
25060 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
25061 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
25062 (decl_for_uid_map): New global hashtable mapping DECL_UID
25064 (init_ttree): Allocate it.
25065 (insert_decl_to_uid_decl_map): New helper function.
25066 (make_node_stat): Insert new decls into the map.
25067 (copy_node_stat): Likewise.
25068 (lookup_decl_from_uid): New function.
25069 (print_decl_for_uid_map_statistics): New helper.
25070 (dump_tree_statistics): Call it.
25072 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
25073 (referenced_var_iterator): Adjust.
25074 (FOR_EACH_REFERENCED_VAR): Adjust.
25075 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
25076 (num_referenced_vars): Adjust.
25077 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
25078 (first_referenced_var): Remove.
25079 (end_referenced_vars_p): Likewise.
25080 (next_referenced_var): Likewise.
25081 (referenced_var_iterator_set): New helper function.
25082 * tree-dfa.c (referenced_var_lookup): Adjust.
25083 (referenced_var_check_and_insert): Likewise.
25084 (remove_referenced_var): Likewise.
25085 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
25086 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25087 (verify_call_clobbering): Likewise.
25088 (verify_memory_partitions): Likewise.
25089 (init_tree_ssa): Allocate bitmap instead of hashtable for
25091 (delete_tree_ssa): Adjust.
25092 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
25093 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25094 (compute_tag_properties): Likewise.
25095 (set_initial_properties): Likewise.
25096 (find_partition_for): Likewise.
25097 (update_reference_counts): Likewise.
25098 (dump_may_aliases_for): Likewise.
25099 * tree-ssa-operands.c (add_virtual_operand): Likewise.
25100 (add_call_clobber_ops): Likewise.
25101 (add_call_read_ops): Likewise.
25102 (get_asm_expr_operands): Likewise.
25103 * tree-into-ssa.c (dump_decl_set): Likewise.
25104 (update_ssa): Likewise.
25105 * tree-sra.c (scan_function): Likewise.
25106 (decide_instantiations): Likewise.
25107 (scalarize_parms): Likewise.
25108 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
25109 (dsa_named_for): Likewise.
25110 * tree-ssa-structalias.c (update_alias_info): Likewise.
25111 (merge_smts_into): Likewise.
25113 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
25116 * doc/invoke.texi (-fcx-limited-range): Document new option.
25117 * toplev.c (process_options): Handle -fcx-fortran-rules.
25118 * common.opt: Add documentation for -fcx-fortran-rules.
25120 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
25123 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
25124 actual behaviour and C99.
25126 2008-02-26 Ben Elliston <bje@au.ibm.com>
25128 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
25129 (ASM_CPU_POWER6_SPEC): Likewise.
25130 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
25131 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
25132 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
25134 2008-02-25 Richard Guenther <rguenther@suse.de>
25136 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
25137 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
25138 (lookup_decl_from_uid): Declare.
25139 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
25140 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
25141 (decl_for_uid_map): New global hashtable mapping DECL_UID
25143 (init_ttree): Allocate it.
25144 (insert_decl_to_uid_decl_map): New helper function.
25145 (make_node_stat): Insert new decls into the map.
25146 (copy_node_stat): Likewise.
25147 (lookup_decl_from_uid): New function.
25148 (print_decl_for_uid_map_statistics): New helper.
25149 (dump_tree_statistics): Call it.
25151 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
25152 (referenced_var_iterator): Adjust.
25153 (FOR_EACH_REFERENCED_VAR): Adjust.
25154 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
25155 (num_referenced_vars): Adjust.
25156 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
25157 (first_referenced_var): Remove.
25158 (end_referenced_vars_p): Likewise.
25159 (next_referenced_var): Likewise.
25160 (referenced_var_iterator_set): New helper function.
25161 * tree-dfa.c (referenced_var_lookup): Adjust.
25162 (referenced_var_check_and_insert): Likewise.
25163 (remove_referenced_var): Likewise.
25164 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
25165 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25166 (verify_call_clobbering): Likewise.
25167 (verify_memory_partitions): Likewise.
25168 (init_tree_ssa): Allocate bitmap instead of hashtable for
25170 (delete_tree_ssa): Adjust.
25171 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
25172 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
25173 (compute_tag_properties): Likewise.
25174 (set_initial_properties): Likewise.
25175 (find_partition_for): Likewise.
25176 (update_reference_counts): Likewise.
25177 (dump_may_aliases_for): Likewise.
25178 * tree-ssa-operands.c (add_virtual_operand): Likewise.
25179 (add_call_clobber_ops): Likewise.
25180 (add_call_read_ops): Likewise.
25181 (get_asm_expr_operands): Likewise.
25182 * tree-into-ssa.c (dump_decl_set): Likewise.
25183 (update_ssa): Likewise.
25184 * tree-sra.c (scan_function): Likewise.
25185 (decide_instantiations): Likewise.
25186 (scalarize_parms): Likewise.
25187 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
25188 (dsa_named_for): Likewise.
25189 * tree-ssa-structalias.c (update_alias_info): Likewise.
25190 (merge_smts_into): Likewise.
25192 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
25195 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
25196 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
25197 * alias.h (nonoverlapping_memrefs_p): Likewise.
25199 2008-02-25 Jan Beulich <jbeulich@novell.com>
25201 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
25202 * config/i386/netware-libgcc.exp: Add __bswap?i2,
25203 __emultls_get_address, __emultls_register_common,
25204 __floatundi?f, and _Unwind_GetIPInfo.
25205 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
25206 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
25207 (gen_regparm_prefix): Likewise.
25208 (i386_nlm_encode_section_info): Sync with
25209 config/i386/winnt.c:i386_pe_encode_section_info().
25210 (i386_nlm_maybe_mangle_decl_assembler_name): New.
25211 i386_nlm_mangle_decl_assembler_name): New.
25212 (netware_override_options): New.
25213 * config/i386/netware.h (netware_override_options): Declare.
25214 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
25215 (i386_nlm_mangle_decl_assembler_name): Declare.
25216 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
25218 2008-02-25 Ben Elliston <bje@au.ibm.com>
25221 * c-decl.c (grokdeclarator): Remove unused local variables
25222 `typedef_type' and `type_as_written'.
25224 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
25225 unused local variable `has_hot_blocks'.
25226 (fix_crossing_conditional_branches): Remove unused local variable
25229 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
25231 PR middle-end/19984
25232 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
25233 using DEF_C99_BUILTIN.
25234 (BUILT_IN_NANF): Ditto.
25235 (BUILT_IN_NANL): Ditto.
25237 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
25238 Revital Eres <eres@il.ibm.com>
25240 * modulo-sched.c (calculate_must_precede_follow): Address TODO
25241 regarding the order of two dependent insns in the same row.
25243 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
25245 * stor-layout.c (layout_decl): Do not bump the alignment of a
25246 bit-field to more than byte alignment if it is packed.
25248 2008-02-24 David Edelsohn <edelsohn@gnu.org>
25250 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
25253 2008-02-24 Diego Novillo <dnovillo@google.com>
25255 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
25258 * tree-vrp.c (vrp_evaluate_conditional): With
25259 -Wtype-limits, emit a warning when comparing against a
25260 constant outside the natural range of OP0's type.
25261 * c.opt (Wtype-limits): Move ...
25262 * common.opt (Wtype-limits): ... here.
25264 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
25266 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
25267 * config/rs6000/e300c2c3.md: New file.
25268 * config/rs6000/rs6000.c (processor_costs): Add new costs for
25270 (rs6000_override_options): Add e300c2 and e300c3 cases to
25271 processor_target_table. Do not allow usage of Altivec or Spe
25272 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
25273 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
25274 * config/rs6000/rs6000.h (processor_type): Add
25275 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
25276 (ASM_CPU_SPEC): Add e300c2 and e300c3.
25277 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
25278 and ppce300c3. Include e300c2c3.md.
25280 2008-02-23 David Edelsohn <edelsohn@gnu.org>
25282 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
25283 instead of TARGET_STRICT_ALIGN.
25285 2008-02-23 Joseph Myers <joseph@codesourcery.com>
25287 * explow.c (memory_address): Assert that the generated address is
25290 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
25293 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
25294 * config/darwin-ppc-ldouble-patch.def: New file.
25295 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
25296 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
25297 SUBTARGET_INIT_BUILTINS if defined.
25298 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
25301 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
25304 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
25305 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
25307 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
25310 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
25311 file" warning condtional on -Winvalid-PCH.
25313 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
25315 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
25317 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
25321 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
25322 prevent reload from using MMX registers.
25323 (*mov<mode>_internal): Ditto.
25324 (*movv2sf_internal_rex64): Ditto.
25325 (*movv2sf_internal): Ditto.
25327 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25329 PR documentation/31569
25330 * doc/install.texi2html: Use makeinfo --no-number-sections.
25332 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
25334 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
25335 ensure that we can address an entire entity > 8 bytes. Don't
25336 generate reg+reg addressing for such data.
25338 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
25340 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
25341 strings when optimizing for size, unless the target cares about
25344 2008-02-22 Tom Tromey <tromey@redhat.com>
25346 * regclass.c (current_pass): Remove declaration.
25348 2008-02-22 Anatoly Sokolov <aesok@post.ru>
25350 * config/avr/libgcc.S (__RAMPZ__): Define.
25351 (__do_copy_data): Add for devices with 128KB code memory.
25353 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
25355 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
25357 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
25359 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
25361 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
25364 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25367 * c-typeck.c (build_binary_op): Warn about floating point
25368 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
25370 2008-02-21 Janis Johnson <janis187@us.ibm.com>
25373 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
25374 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
25376 (rs6000_override_options): Set altivec_abi as default, not override,
25377 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
25378 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
25379 is used; use new member spe_abi.
25380 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
25381 spe_abi and altivec_abi.
25383 2008-02-22 Tomas Bily <tbily@suse.cz>
25385 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
25387 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25390 * config.build (build_file_translate): Set to `CMD //c' only if
25392 * Makefile.in (build_file_translate): Improve comment.
25394 2008-02-21 Jan Hubicka <jh@suse.cz>
25396 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
25397 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
25398 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
25400 2008-02-21 Michael Matz <matz@suse.de>
25403 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
25405 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
25407 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
25408 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
25409 as insn constraint.
25410 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
25411 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
25412 SSE_VEC_FLOAT_MODE_P as insn constraint.
25413 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
25414 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
25415 sse4a_movntdf using MODEF mode iterator.
25416 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
25417 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
25418 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
25419 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
25420 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
25421 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
25422 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
25424 2008-02-21 Richard Guenther <rguenther@suse.de>
25426 * tree.def (PAREN_EXPR): New tree code.
25427 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
25429 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
25430 * expr.c (expand_expr_real_1): Likewise.
25431 * tree-inline.c (estimate_num_insns_1): Likewise.
25432 * tree-complex.c (expand_complex_move): Likewise.
25433 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
25436 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
25439 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
25441 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
25444 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
25446 * config/sh/sh.c (find_barrier): Don't go past
25447 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
25449 2008-02-20 DJ Delorie <dj@redhat.com>
25451 * config/h8300/h8300.md (insv): Force source operand to be a register.
25453 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
25454 as a jump, not as a plain insn.
25456 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
25458 * doc/invoke.texi (Warning Options): Add new option
25459 -Wframe-larger-than=.
25460 (-Wframe-larger-than): Document.
25462 * flags.h (warn_frame_larger_than, frame_larger_than_size):
25463 Add declarations for new option variables.
25465 * final.c (final_start_function): Check the frame size
25466 before emission and issue a Wframe-larger-than warning.
25468 * opts.c (warn_frame_larger_than, frame_larger_than_size):
25469 Add definitions for new option variables.
25470 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
25472 * common.opt (Wframe-larger-than=): New option.
25474 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
25476 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
25477 (<sse>_div<mode>3): Ditto.
25478 (<sse>_vmdiv<mode>3): Ditto.
25479 (<sse>_vmsqrt<mode>2): Ditto.
25480 (*smax<mode>3): Ditto.
25481 (sse5_frcz<mode>2): Ditto.
25482 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
25483 as insn constraint.
25485 2008-02-20 Richard Guenther <rguenther@suse.de>
25487 PR middle-end/35265
25488 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
25489 be happy with INTEGRAL_TYPE_P.
25491 2008-02-20 Richard Guenther <rguenther@suse.de>
25493 * fold-const.c (split_tree): Associate floatig-point expressions
25494 if flag_associative_math is set.
25496 2008-02-20 Richard Guenther <rguenther@suse.de>
25498 * tree.h (fold_real_zero_addition_p): Declare.
25499 * fold-const.c (fold_real_zero_addition_p): Export.
25500 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
25501 floating-point operations with zero and one.
25503 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
25505 * doc/install.texi: Correct references to CFLAGS, replacing them
25506 with BOOT_CFLAGS. Document flags used during bootstrap for
25509 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
25511 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
25512 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
25513 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
25515 (smin<mode>3): Ditto from similar patterns.
25516 (smax<mode>3): Ditto.
25517 (*ieee_smin<mode>3): Ditto.
25518 (*ieee_smax<mode>3): Ditto.
25519 * config/i386/sse.md (sse): New mode attribute.
25520 (mov<mode>): Macroize expander from movv4sf and movv2df using
25521 SSEMODEF2P mode iterator.
25522 (<sse>_movnt<mode>): Ditto from similar patterns. Use
25523 SSE_VEC_FLOAT_MODE_P as insn constraint.
25524 (storent<mode>): Ditto.
25525 (storent<mode>): Macroize expander from storentsf and storentdf using
25526 MODEF mode iterator.
25527 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
25528 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
25529 (abs<mode>2): Ditto from similar patterns.
25530 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
25531 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
25532 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
25533 (<sse>_vmsqrt<mode>2): Ditto.
25534 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
25535 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
25536 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
25537 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
25538 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
25539 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
25540 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
25542 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
25543 iterator and SSE_FLOAT_MODE_P as insn constraint.
25544 (<sse>_ucomi): Ditto from similar patterns.
25545 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
25546 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
25547 SSE_VEC_FLOAT_MODE_P as insn constraint.
25548 (vcond<mode>): Ditto from similar patterns.
25549 (and<mode>3, *and<mode>3): Ditto.
25550 (<sse>_nand<mode>3): Ditto.
25551 (ior<mode>3, *ior<mode>3): Ditto.
25552 (xor<mode>3, *xor<mode>3): Ditto.
25553 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
25554 iterator and SSE_FLOAT_MODE_P as insn constraint.
25555 (*nand<mode>3): Ditto from similar patterns.
25556 (*ior<mode>3): Ditto.
25557 (*xor<mode>3): Ditto.
25559 2008-02-20 Ira Rosen <irar@il.ibm.com>
25561 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
25562 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
25563 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
25565 2008-02-19 Jan Hubicka <jh@suse.cz>
25567 * predict.c (tree_bb_level_predictions): Remove variable next
25568 mistakely introduced by previous commit.
25570 2008-02-19 Jan Hubicka <jh@suse.cz>
25572 * predict.c (predict_paths_leading_to): Rewrite.
25573 (predict_paths_for_bb): New.
25574 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
25576 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25579 * Makefile.in (build_file_translate): New.
25580 (gcc-vers.texi): Use it for translating $(abs_srcdir).
25581 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
25582 * configure.ac (build_file_translate): Substitute it.
25583 * configure: Regenerate.
25585 2008-02-19 Jan Hubicka <jh@suse.cz>
25587 PR rtl-optimization/34408
25588 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
25591 2008-02-19 Jan Hubicka <jh@suse.cz>
25593 PR middle-end/28779
25594 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
25597 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
25600 * config/i386/i386-modes.def: Revert the last DI alignment
25601 change until Ada people can look into it.
25603 2008-02-19 Nick Clifton <nickc@redhat.com>
25605 * opts.c (print_specific_help): Fix typo in --help text.
25607 2008-02-19 Jakub Jelinek <jakub@redhat.com>
25610 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
25611 32-bit inline asm without asm alternatives for host GCC < 3.0.
25613 2008-02-19 Richard Guenther <rguenther@suse.de>
25615 PR tree-optimization/34989
25616 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
25617 Allow propagation to INDIRECT_REF if we can simplify only.
25619 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25621 * c-common.c (warn_for_collisions_1): Use appropriate option when
25624 2008-02-19 Nick Clifton <nickc@redhat.com>
25627 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
25628 (handle_options): Fix indentation.
25629 (print_filtered_help): If no language-specific options were
25630 displayed tell the user how to list all the options supported by
25631 the language's front-end.
25632 (print_specific_help): Fix indentation and remove duplicate line.
25633 (common_handle_option): Handle the -v option.
25634 For --help enable the display of undocumented options if the -v
25635 switch has been included on the command line.
25636 For --help= check for overlaps in the arguments between the option
25637 classes and the language names and issue a warning when they
25638 cannot be disambiguated.
25639 * c.opt (v): Pass on to the common option handler.
25641 2008-02-19 Revital Eres <eres@il.ibm.com>
25643 * modulo-sched.c (sms_schedule): Change dump message when
25644 create_ddg function fails.
25645 (try_scheduling_node_in_cycle): Rename row to cycle.
25646 (print_partial_schedule): Rename CYCLE to ROW.
25648 2008-02-19 Christian Bruel <christian.bruel@st.com>
25649 Zdenek Dvorak <ook@ucw.cz>
25651 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
25653 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
25656 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
25657 (*x86_movdicc_0_m1_se): Ditto.
25659 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
25661 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
25662 (CMPtype): Define as __gcc_CMPtype.
25663 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
25664 (CMPtype): Define as __gcc_CMPtype.
25666 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
25668 Support valgrind 3.3 for --enable-checking=valgrind.
25669 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
25671 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
25672 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
25673 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
25674 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
25675 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
25676 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
25677 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
25679 * ggc-zone.c: Similar.
25680 * ggc-page.c: Similar.
25682 2008-02-19 Paul Brook <paul@codesourcery.com>
25685 * config/arm/ieee754-df.S: Fix do_it typo.
25686 * config/arm/ieee754-sf.S: Fix do_it typo.
25688 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
25691 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
25692 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
25693 (OPTION_MASK_ISA_SSE_SET): Likewise.
25694 (OPTION_MASK_ISA_SSE2_SET): Likewise.
25695 (OPTION_MASK_ISA_SSE3_SET): Likewise.
25696 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
25697 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
25698 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
25699 (OPTION_MASK_ISA_SSE4_SET): Likewise.
25700 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
25701 (OPTION_MASK_ISA_SSE5_SET): Likewise.
25702 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
25703 (OPTION_MASK_ISA_MMX_UNSET): Updated.
25704 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
25705 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
25706 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
25707 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
25708 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
25709 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
25710 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
25711 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
25712 (OPTION_MASK_ISA_SSE4): Removed.
25713 (ix86_handle_option): Turn on bits in ix86_isa_flags and
25714 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
25715 (override_options): Don't turn on implied SSE/MMX bits in
25718 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
25720 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
25723 2008-02-18 Joey Ye <joey.ye@intel.com>
25725 PR middle-end/34921
25726 * tree-nested.c (insert_field_into_struct): Set type alignment
25727 to field alignment if the former is less than the latter.
25729 2008-02-18 Jakub Jelinek <jakub@redhat.com>
25731 * BASE-VER: Set to 4.4.0.
25733 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25735 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
25736 * doc/cfg.texi: Likewise.
25737 * doc/extend.texi: Likewise.
25738 * doc/gty.texi: Likewise.
25739 * doc/invoke.texi: Likewise.
25740 * doc/loop.texi: Likewise.
25741 * doc/md.texi: Likewise.
25742 * doc/passes.texi: Likewise.
25743 * doc/rtl.texi: Likewise.
25744 * doc/sourcebuild.texi: Likewise.
25745 * doc/tm.texi: Likewise.
25746 * doc/tree-ssa.texi: Likewise.
25748 2008-02-17 Richard Guenther <rguenther@suse.de>
25750 PR middle-end/35227
25751 * tree-complex.c (init_parameter_lattice_values): Handle parameters
25752 without default definition.
25754 2008-02-17 Richard Guenther <rguenther@suse.de>
25756 PR tree-optimization/35231
25757 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
25760 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
25763 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
25764 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
25765 libgcc_cmp_return mode.
25767 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25770 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
25772 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
25774 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
25777 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25779 * doc/c-tree.texi: Use `@.' where appropriate.
25780 * doc/extend.texi: Likewise.
25781 * doc/install.texi: Likewise.
25782 * doc/invoke.texi: Likewise.
25783 * doc/loop.texi: Likewise.
25784 * doc/makefile.texi: Likewise.
25785 * doc/md.texi: Likewise.
25786 * doc/passes.texi: Likewise.
25787 * doc/standards.texi: Likewise.
25788 * doc/tm.texi: Likewise.
25790 2008-02-15 Jakub Jelinek <jakub@redhat.com>
25792 PR middle-end/35196
25793 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
25795 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
25796 rather than in entry_bb.
25798 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
25800 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
25801 libgcc_cmp_return mode.
25803 2008-02-15 Jakub Jelinek <jakub@redhat.com>
25805 PR middle-end/35130
25806 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
25807 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
25809 2008-02-15 Richard Guenther <rguenther@suse.de>
25810 Zdenek Dvorak <ook@ucw.cz>
25812 PR tree-optimization/35164
25813 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
25814 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
25815 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
25816 Only propagate addresses which do not have abnormal SSA_NAMEs
25819 2008-02-15 Joseph Myers <joseph@codesourcery.com>
25822 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
25824 2008-02-15 Jan Hubicka <jh@suse.cz>
25826 PR middle-end/35149
25827 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
25829 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
25831 PR middle-end/34621
25832 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
25833 when calculating alignment_pad.
25835 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
25837 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
25838 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
25839 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
25840 and STACK_BOUNDARY define.
25842 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
25844 PR preprocessor/35061
25845 * c-pragma.c (handle_pragma_pop_macro): Check that
25846 pushed_macro_table has been allocated.
25848 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
25850 PR middle-end/35136
25851 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
25852 (force_gimple_operand): Likewise.
25853 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
25854 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
25855 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
25856 (find_interesting_uses_address): Check addressability and alignment
25857 of the base expression only after substituting bases of IVs into it.
25859 2008-02-14 Michael Matz <matz@suse.de>
25862 * function.c (instantiate_virtual_regs_in_insn): Reload address
25863 before falling back to reloading the whole operand.
25865 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
25867 * config/s390/s390.c (s390_mainpool_start): Emit the pool
25868 before the first section switch note.
25870 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25872 * doc/bugreport.texi: Update copyright years.
25873 * doc/c-tree.texi: Likewise.
25874 * doc/cfg.texi: Likewise.
25875 * doc/cpp.texi: Likewise.
25876 * doc/cppinternals.texi: Likewise.
25877 * doc/fragments.texi: Likewise.
25878 * doc/frontends.texi: Likewise.
25879 * doc/gcc.texi: Likewise.
25880 * doc/gty.texi: Likewise.
25881 * doc/hostconfig.texi: Likewise.
25882 * doc/implement-c.texi: Likewise.
25883 * doc/libgcc.texi: Likewise.
25884 * doc/loop.texi: Likewise.
25885 * doc/makefile.texi: Likewise.
25886 * doc/options.texi: Likewise.
25887 * doc/passes.texi: Likewise.
25888 * doc/rtl.texi: Likewise.
25889 * doc/sourcebuild.texi: Likewise.
25890 * doc/standards.texi: Likewise.
25891 * doc/tree-ssa.texi: Likewise.
25892 * doc/trouble.texi: Likewise.
25894 * doc/extend.texi: Use @: or add comma where appropriate.
25895 * doc/invoke.texi: Likewise.
25896 * doc/tm.texi: Likewise.
25898 2008-02-14 Alan Modra <amodra@bigpond.net.au>
25901 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
25904 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
25906 * doc/md.texi (clz, ctz): Add reference.
25907 * doc/rtl.texi (clz, ctz): Likewise.
25909 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25912 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
25915 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
25917 * config/s390/s390.c (struct constant_pool): New field
25918 emit_pool_after added.
25919 (s390_mainpool_start): Set the emit_pool_after flag according
25920 to the section switch notes.
25921 (s390_mainpool_finish): Consider emit_pool_after when emitting
25922 the literal pool at the end of the function.
25923 (s390_chunkify_start): Force literal pool splits at section
25926 2008-02-13 Michael Matz <matz@suse.de>
25929 * var-tracking.c (clobber_variable_part): Correctly traverse the
25932 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25935 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
25936 Add -fdump-ipa-inline.
25937 * tree-dump.c (dump_files): Remove tree-inlined dump.
25938 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
25940 2008-02-12 Richard Guenther <rguenther@suse.de>
25942 PR tree-optimization/35171
25943 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
25946 2008-02-12 Richard Guenther <rguenther@suse.de>
25948 PR middle-end/35163
25949 * fold-const.c (fold_widened_comparison): Use get_unwidened in
25950 value-preserving mode. Disallow final truncation.
25952 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
25954 PR middle-end/35136
25955 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
25956 code from here to...
25957 (force_gimple_operand): ...here.
25959 2008-02-12 Jakub Jelinek <jakub@redhat.com>
25962 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
25963 non-compatible pointers.
25964 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
25965 different FIELD_DECLs, try harder by comparing field offsets, sizes
25968 PR inline-asm/35160
25969 * function.c (match_asm_constraints_1): Don't replace the same input
25972 2008-02-12 Anatoly Sokolov <aesok@post.ru>
25974 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
25975 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
25976 (expand_epilogue): Restore RAMPZ register.
25977 * config/avr/avr.md (RAMPZ_ADDR): New constant.
25979 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
25981 * config/i386/cygwin.asm: (__alloca): Correct calling
25982 convention and alignment.
25983 (__chkstk): Force 8 byte stack alignment.
25985 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
25986 Richard Guenther <rguenther@suse.de>
25988 PR tree-optimization/33992
25989 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
25990 the zero we compare against.
25992 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
25994 PR libfortran/35063
25995 * gthr-win32.h (__gthread_mutex_destroy_function): New function
25996 to CloseHandle after unlocking to prevent accumulation of handle
25999 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26001 PR middle_end/34150
26002 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
26003 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
26004 and update LABEL_NUSES during and after reload.
26006 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
26008 PR middle-end/34627
26009 * combine.c (simplify_if_then_else): Make sure the comparison is
26010 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
26012 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
26015 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
26016 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
26017 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
26018 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
26019 * tree.h (get_type_static_bounds): Likewise.
26021 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26023 * doc/invoke.texi (Option Summary, C++ Dialect Options)
26024 (Objective-C and Objective-C++ Dialect Options, Warning Options):
26025 Make -Wfoo language annotations match what the compiler outputs.
26027 2008-02-08 Sa Liu <saliu@de.ibm.com>
26029 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
26030 intrinsics spu_convts, spu_convtu, spu_convtf.
26032 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
26034 * doc/extend.texi (Function Attributes) <noinline>: Mention
26035 asm ("") as method to keep calls.
26037 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26040 * doc/options.texi (Options): Replace references to opts.sh with
26042 * opts-common.c: Likewise.
26043 * optc-gen.awk: Likewise.
26045 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
26047 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
26049 2008-02-07 Richard Henderson <rth@redhat.com>
26052 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
26053 EXPR_LIST for the REG_EQUAL instead of a comparison with a
26056 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
26058 PR tree-optimization/35085
26059 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
26060 for operand entry oe2 in addition to operand entry oe3 in order to
26061 expose more opportunities for vectorizer sum reduction.
26063 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26066 * Makefile.in (LIBS): Remove $(GMPLIBS).
26067 (cc1-dummy, cc1): Add $(GMPLIBS).
26069 2008-02-06 Jan Hubicka <jh@suse.cz>
26072 * i386.md (moddf_integer): Do not produce partial memory stalls for
26073 targets where it hurts.
26075 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
26078 * optabs.c (expand_float): Do not check for decimal modes when
26079 expanding unsigned integer through signed conversion.
26081 2008-02-06 Nick Clifton <nickc@redhat.com>
26083 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
26084 inside the clobber with a match_operand and duplicated operand
26085 number in the constraint.
26086 (ineqbranchsi): Delete redundant comment.
26088 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
26090 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
26091 builtin_define ("__USE_INIT_FINI__").
26092 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
26094 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
26096 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26098 PR documentation/30330
26099 * doc/invoke.texi (C++ Dialect Options)
26100 (Objective-C and Objective-C++ Dialect Options, Warning Options):
26101 For each warning option -Wfoo that allows -Wno-foo, ensure both
26102 -Wfoo and -Wno-foo are listed in the option index. Fix index
26103 entry of -Wswitch-default, index -Wnormalized= including the
26104 `=', and -Wlarger-than-@var{len} including @var{len}.
26106 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
26108 * config/i386/i386.md (floatunssisf2): Use
26109 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
26110 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
26111 Macroize expander using MODEF mode iterator.
26113 2008-02-05 Diego Novillo <dnovillo@google.com>
26115 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
26118 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
26120 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26123 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
26125 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
26128 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
26129 to indicate if a message should be generated.
26130 (init_cumulative_args): Updated.
26131 (function_value_32): Likewise.
26133 2008-02-05 Joseph Myers <joseph@codesourcery.com>
26135 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
26137 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
26140 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
26141 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
26143 2008-02-04 Diego Novillo <dnovillo@google.com>
26145 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
26148 * tree-vrp.c (vrp_evaluate_conditional): With
26149 -Wtype-limits, emit a warning when comparing against a
26150 constant outside the natural range of OP0's type.
26152 2008-02-04 Richard Guenther <rguenther@suse.de>
26154 PR middle-end/33631
26155 * expr.c (count_type_elements): Give for unions instead of
26158 2008-02-04 Richard Guenther <rguenther@suse.de>
26160 PR middle-end/35043
26161 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
26162 to TYPE_DOMAINs base type instead of using bitsizetype here.
26164 2008-02-03 Jason Merrill <jason@redhat.com>
26166 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
26168 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26171 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
26172 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
26173 (RS/6000 and PowerPC Options): Fix typos and markup.
26174 * doc/passes.texi (Tree-SSA passes): Likewise.
26176 2008-02-02 Michael Matz <matz@suse.de>
26179 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
26180 from record_last_reg_set_info.
26181 (record_last_reg_set_info): Take an RTX argument, iterate over all
26182 constituent hardregs.
26183 (record_last_set_info, record_opr_changes): Change calls to
26184 new signature or to record_last_reg_set_info_regno.
26186 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
26188 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
26190 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
26192 PR rtl-optimization/34773
26193 * reg-notes.def (EQUAL): Mention significance of combination of
26194 REG_EQUAL and REG_RETVAL.
26195 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
26196 insn that has a REG_RETVAL.
26198 2008-02-01 Roger Sayle <roger@eyesopen.com>
26201 * configure.ac (--enable-fixed-point): Disable unless explicitly
26203 * configure: Regenerate.
26205 2008-02-01 Richard Guenther <rguenther@suse.de>
26208 * invoke.texi (-finline-limit): Remove no longer true parts
26209 of the documentation. Note that there is no default value.
26211 2008-02-01 Andrew Pinski <pinskia@gmail.com>
26212 Mark Mitchell <mark@codesourcery.com>
26213 Ben Elliston <bje@au.ibm.com>
26216 * doc/extend.texi (Other Builtins): Document.
26218 2008-01-31 Tom Browder <tom.browder@gmail.com>
26220 * doc/c-tree.texi (Types): Fix grammar.
26221 (Expression trees): Ditto.
26222 * doc/passes.texi (Tree-SSA passes): Ditto.
26224 * doc/configterms.texi (Configure Terms): Fix typo.
26225 * doc/cpp.texi (Common Predefined Macros): Ditto.
26226 * doc/md.texi (Machine Constraints): Ditto.
26228 * doc/makefile.texi (Makefile): Add comma.
26230 2008-01-31 Tom Browder <tom.browder@gmail.com>
26231 Gerald Pfeifer <gerald@pfeifer.com>
26233 * doc/sourcebuild.texi (Front End): Remove references to CVS
26234 and CVSROOT/modules.
26235 (Texinfo Manuals): Replace reference to CVS by one to SVN.
26236 (Back End): Remove reference to CVS.
26238 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
26241 * config/mips/mips.c (gen_load_const_gp): New function, taking a
26243 (mips16_gp_pseudo_reg): ...here.
26244 * config/mips/mips.md (load_const_gp): Replace with...
26245 (load_const_gp_<mode>): ...this :P-based insn.
26247 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26249 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
26250 options. Minor fixes.
26251 (-std): Move reference to standards closer to where language
26252 standards are first mentioned.
26254 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
26256 PR rtl-optimization/34995
26257 * reload.c (alternative_allows_const_pool_ref): Take an rtx
26258 parameter and return a bool. If the rtx parameter is nonnull,
26259 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
26260 (find_reloads): Update call accordingly. Pass the new operand
26261 if it needed no address reloads, otherwise pass null.
26263 2008-01-30 Richard Henderson <rth@redhat.com>
26266 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
26267 for unbounded arrays.
26269 2008-01-30 Silvius Rus <rus@google.com>
26271 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
26273 2008-01-30 Jan Hubicka <jh@suse.cz>
26276 * i386.c (init_cumulative_args): Use real function declaration when
26279 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
26281 PR rtl-optimization/34998
26282 * global.c (build_insn_chain): Treat non-subreg_lowpart
26283 SUBREGs of pseudos as clobbering all the words covered by the
26284 SUBREG, not just all the bytes.
26285 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
26286 original df_ref rather than an extract parameter.
26287 (global_conflicts): Update call accordingly.
26289 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
26291 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
26292 the overflow check to make it easier to read.
26293 (__fixtfdi): Change the type of the ll member in union
26294 long_double to UDItype_x.
26296 2008-01-30 Jakub Jelinek <jakub@redhat.com>
26298 PR middle-end/34969
26299 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
26300 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
26301 * tree-inline.c (fold_marked_statements): Call
26302 cgraph_update_edges_for_call_stmt if folding a call statement.
26303 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
26304 debug_generic_stmt calls, reset it back afterwards.
26307 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
26309 * c-typeck.c (build_external_ref): Don't pedwarn about
26310 static vars in current function's scope.
26312 2008-01-29 Joseph Myers <joseph@codesourcery.com>
26314 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
26316 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
26319 * ipa-struct-reorg.c: Fix spelling.
26320 * params.def: Ditto.
26322 2008-01-29 Richard Guenther <rguenther@suse.de>
26324 PR middle-end/35006
26325 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
26327 * tree-inline.c (remap_type): Increment remapping_type_depth
26328 around remapping types.
26329 (copy_body_r): Only add referenced variables if they are referenced
26330 from code, not types.
26332 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
26343 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
26344 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
26346 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
26349 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
26350 pointer for tiny stack.
26352 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
26354 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
26356 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
26358 * config/vx-common.h: Fix typo in comment.
26360 2008-01-28 Ian Lance Taylor <iant@google.com>
26364 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
26365 coalesce pointers if they have different DECL_NO_TBAA_P values.
26366 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
26367 between variables with different DECL_NO_TBAA_P values.
26369 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
26372 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
26373 are not legitimate small data references on SPE targets.
26375 2008-01-28 David Daney <ddaney@avtrex.com>
26377 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
26379 2008-01-28 David Daney <ddaney@avtrex.com>
26381 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
26383 2008-01-27 Joseph Myers <joseph@codesourcery.com>
26385 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
26386 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
26387 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
26388 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
26389 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
26390 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
26391 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
26392 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
26394 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
26396 * basic-block.h (condjump_equiv_p): Fix comment.
26398 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
26400 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
26401 print_generic_stmt_indented): Fix comment.
26403 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
26405 * configure.ac (__stack_chk_fail): Add detecion for availability
26406 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
26407 * configure: Regenerate.
26409 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
26411 PR middle-end/34688
26412 * final.c (output_addr_const): Handle TRUNCATE.
26414 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
26417 * tree-ssa-loop-ivopts.c (comp_cost): New type.
26418 (zero_cost, infinite_cost): New constants.
26419 (struct cost_pair): Change type of cost to comp_cost.
26420 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
26421 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
26423 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
26424 split_address_cost, ptr_difference_cost, difference_cost,
26425 get_computation_cost_at, get_computation_cost,
26426 determine_use_iv_cost_generic, determine_use_iv_cost_address,
26427 determine_use_iv_cost_condition, determine_use_iv_costs,
26428 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
26429 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
26430 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
26431 Change type of cost to comp_cost.
26432 (determine_iv_cost): Increase cost of non-original ivs, instead
26433 of decreasing the cost of original ones.
26434 (get_address_cost): Indicate the complexity of the addressing mode
26436 (try_add_cand_for): Prefer using ivs not specific to some object.
26437 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
26439 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
26440 Janis Johnson <janis187@us.ibm.com>
26443 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
26444 (TARGET_INSTANTIATE_DECLS): Likewise.
26445 * target.h (expand_to_rtl_hook): New target hook.
26446 (instantiate_decls): Likewise.
26447 * function.c (instantiate_decl): Make non-static. Rename to...
26448 (instantiate_decl_rtl): ... this.
26449 (instantiate_expr): Use instantiate_decl_rtl.
26450 (instantiate_decls_1): Likewise.
26451 (instantiate_decls): Likewise.
26452 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
26453 * function.h (instantiate_decl_rtl): Add prototype.
26454 * cfgexpand.c (target.h): New include.
26455 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
26456 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
26457 (TARGET_INSTANTIATE_DECLS): Likewise.
26458 (TARGET_INITIALIZER): New target hooks added.
26459 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
26461 * config/rs6000/rs6000.c (tree-flow.h): New include.
26462 (machine_function): Add sdmode_stack_slot field.
26463 (rs6000_alloc_sdmode_stack_slot): New function.
26464 (rs6000_instantiate_decls): Likewise.
26465 (rs6000_secondary_memory_needed_rtx): Likewise.
26466 (rs6000_check_sdmode): Likewise.
26467 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
26468 (TARGET_INSTANTIATE_DECLS): Likewise.
26469 (rs6000_hard_regno_mode_ok): Allow SDmode.
26470 (num_insns_constant): Likewise. Handle _Decimal32 constants.
26471 (rs6000_emit_move): Handle SDmode.
26472 (function_arg_advance): Likewise.
26473 (function_arg): Likewise.
26474 (rs6000_gimplify_va_arg): Likewise. Add special handling of
26475 SDmode var args for 32-bit compiles.
26476 (rs6000_secondary_reload_class): Handle SDmode.
26477 (rs6000_output_function_epilogue): Likewise.
26478 (rs6000_function_value): Simplify if statement.
26479 (rs6000_libcall_value): Likewise.
26480 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
26481 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
26482 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
26483 (movsd_hardfloat): New define_insn.
26484 (movsd_softfloat): Likewise.
26485 (movsd_store): Likewise.
26486 (movsd_load): Likewise.
26487 (extendsddd2): Likewise.
26488 (extendsdtd2): Likewise.
26489 (truncddsd2): Likewise.
26490 (movdd_hardfloat64): Fixup comment.
26491 (UNSPEC_MOVSD_LOAD): New constant.
26492 (UNSPEC_MOVSD_STORE): Likewise.
26494 2008-01-26 Jakub Jelinek <jakub@redhat.com>
26497 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
26499 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
26500 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
26501 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
26502 and TRUTH_XOR_EXPR.
26504 2008-01-26 David Edelsohn <edelsohn@gnu.org>
26507 * config.gcc: Separate AIX 5.3 from AIX 6.1.
26508 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
26509 __LONGDOUBLE128 too.
26510 * config/rs6000/aix61.h: New file.
26512 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
26514 PR rtl-optimization/34959
26515 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
26516 popcount and parity rtxes the same mode as their operand.
26517 Truncate or extend the result to the return value's mode
26520 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
26523 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
26524 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
26525 to GOT_VERSION_REGNUM.
26526 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
26527 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
26528 * config/mips/mips.c (mips_emit_call_insn): New function.
26529 (mips_call_tls_get_addr): Call mips_expand_call directly.
26530 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
26532 (mips16_build_call_stub): Likewise. Return the call insn or null.
26533 (mips_expand_call): Update the call to mips16_build_call_stub
26534 accordingly and a remove redundant condition. Assert that MIPS16
26535 stubs do not use lazy binding. Use mips_emit_call_insn and return
26537 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
26539 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
26540 (mips_avoid_hazard): Remove hazard_set handling.
26541 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
26542 (UNSPEC_RESTORE_GP): ...this.
26543 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
26544 (FAKE_CALL_REGNO): Rename to...
26545 (GOT_VERSION_REGNUM): ...this.
26546 (type): Add "ghost" value. Add an associated insn reservation.
26547 (hazard_set): Remove.
26548 (exception_receiver): Rename to...
26549 (restore_gp): ...this and update the unspec identifier accordingly.
26550 (exception_receiver, nonlocal_got_receiver): New expanders.
26551 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
26552 FAKE_CALL_REGNO. Remove hazard_set attribute.
26553 (set_got_version, update_got_version): New patterns.
26555 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
26558 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
26560 2008-01-25 Joseph Myers <joseph@codesourcery.com>
26563 * doc/install.texi2html: Generate gcc-vers.texi.
26565 2008-01-25 DJ Delorie <dj@redhat.com>
26567 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
26569 2008-01-25 Joseph Myers <joseph@codesourcery.com>
26571 * config/c4x: Remove directory.
26572 * config.gcc (crx-*, mt-*): Mark obsolete.
26573 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
26574 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
26575 sh-*-rtemscoff*): Remove cases.
26576 * defaults.h (C4X_FLOAT_FORMAT): Remove.
26577 * real.c (encode_c4x_single, decode_c4x_single,
26578 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
26579 c4x_extended_format): Remove.
26580 * real.h (c4x_single_format, c4x_extended_format): Remove.
26581 * doc/extend.texi (interrupt, naked): Remove mention of attributes
26583 (Pragmas): Remove comment about c4x pragmas.
26584 * doc/install.texi (c4x): Remove target-specific instructions.
26585 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
26586 * doc/md.texi (Machine Constraints): Remove C4x documentation.
26587 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
26588 refer to C4x source files as examples.
26589 (C4X_FLOAT_FORMAT): Remove documentation.
26591 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
26593 * config/bfin/bfin.c (override_options): Reorder tests so that
26594 flag_pic gets enabled for -msep-data.
26596 2008-01-25 Richard Guenther <rguenther@suse.de>
26598 PR middle-end/32244
26599 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
26600 to its bitfield precision if required.
26602 2008-01-25 Jakub Jelinek <jakub@redhat.com>
26604 PR middle-end/33880
26605 * tree-nested.c (walk_omp_for): New function.
26606 (convert_nonlocal_reference, convert_local_reference): Call
26607 walk_omp_for on OMP_FOR.
26608 (convert_call_expr): Call walk_body on OMP_FOR's
26609 OMP_FOR_PRE_INIT_BODY.
26611 2008-01-25 Richard Guenther <rguenther@suse.de>
26613 PR tree-optimization/34966
26614 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
26615 default defs and PHI_NODEs we have to insert after the
26616 defining statement.
26618 2008-01-24 Nick Clifton <nickc@redhat.com>
26620 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
26621 Provide a default definition.
26622 (LIBGCC2_UNITS_PER_WORD): Likewise.
26624 * config/stormy16/stormy16.c: Include df.h for the prototype
26625 for df_regs_ever_live_p.
26626 (xstormy16_expand_builtin_va_start): Convert the stack offset
26627 into a component_ref and then use POINTER_PLUS_EXPR to add it
26628 to the incoming_virtual_args_rtx.
26629 (xstormy16_gimplify_va_arg_expr): Rename to
26630 xstormy16_gimplify_va_arg_expr.
26631 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
26632 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
26633 xstormy16_gimplify_va_arg_expr.
26634 Fix up some formatting issues.
26636 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
26637 Move to predicates.md.
26638 (xs_hi_general_operand): Likewise.
26639 (xs_hi_nonmemory_operand): Likewise.
26640 * config/stormy16/predicates.md:
26641 (xstormy16_carry_plus_operand): New predicate.
26642 (xs_hi_general_operand): New predicate.
26643 (xs_hi_nonmemory_operand): New predicate.
26644 * config/stormy16/stormy16-protos.h:
26645 (xstormy16_carry_plus_operand): Delete prototype.
26646 (xs_hi_general_operand): Likewise.
26647 (xs_hi_nonmemory_operand): Likewise.
26649 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
26650 modifiers as they are no longer needed and they can trigger
26651 reload spill failures.
26653 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
26654 with a match_operand in order to help reload.
26656 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
26657 constraint with 'e' for the 8th alternative as this version of
26658 the mov.w instruction only accepts the lower 8 registers.
26660 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
26663 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
26664 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
26667 2008-01-25 Jakub Jelinek <jakub@redhat.com>
26669 PR middle-end/33333
26670 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
26672 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
26674 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
26676 (remove_structure): Update allocations list before removing structure.
26678 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
26680 * ipa-struct-reorg.c (is_safe_cond_expr,
26681 create_new_stmts_for_cond_expr): Use integer_zerop function,
26682 that recognize not only zero-pointer, but zero-integer too.
26684 2008-01-25 Ben Elliston <bje@au.ibm.com>
26687 * fixproto: Escape "." in sed expression that strips leading "./".
26689 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
26692 * gcc.c (SWITCH_OK): Removed.
26693 (SWITCH_LIVE): Changed to bit.
26694 (SWITCH_FALSE): Likewise.
26695 (SWITCH_IGNORE): Likewise.
26696 (switchstr): Change live_cond to unsigned int.
26697 (process_command): Replace SWITCH_OK with 0.
26698 (do_self_spec): Likewise.
26699 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
26700 (give_switch): Likewise.
26701 (used_arg): Likewise.
26702 (do_spec_1): Set the SWITCH_IGNORE bit.
26703 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
26704 bits. Set the SWITCH_LIVE bit.
26706 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
26708 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
26710 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
26712 PR tree-optimization/34472
26713 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
26714 parameter to a "bool *" and set *DATA to false if there is
26715 an unsafe access. Do not delete the structure here.
26716 (check_cond_exprs): Delete it here instead.
26717 (check_cond_exprs, exclude_cold_structs): Do not increase
26718 I when removing a structure.
26720 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
26723 * config/i386/i386.c (ix86_expand_vector_init): Consider only
26724 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
26726 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
26728 PR middle-end/34934
26729 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
26730 a fixed vector for stack.
26732 2008-01-24 Ben Elliston <bje@au.ibm.com>
26735 * doc/gcc.texi (Software development): Add a direntry for g++.
26737 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
26739 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
26740 stale and straggling -fforce-addr comments above.
26742 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
26744 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
26745 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
26747 2008-01-23 Michael Matz <matz@suse.de>
26750 * dwarf2out.c (force_type_die): Use modified_type_die instead of
26753 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
26755 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
26756 malloc result type.
26758 2008-01-23 Anatoly Sokolov <aesok@post.ru>
26760 * config/avr/avr.c (avr_current_arch): New variable.
26761 (avr_arch_types): Add 'avr31' and 'avr51' entries.
26762 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
26763 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
26764 (avr_override_options): Init 'avr_current_arch'.
26765 (base_arch_s): Move from here...
26766 * config/avr/avr.h (base_arch_s): ... here. Add new members
26767 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
26768 'mega' to 'have_jmp_call'.
26769 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
26770 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
26772 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
26774 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
26775 MULTILIB_MATCHES): Ditto.
26777 2008-01-23 Richard Guenther <rguenther@suse.de>
26779 PR middle-end/31529
26780 * cgraphunit.c (cgraph_reset_node): Always mark the node
26781 not reachable if it is not queued already.
26783 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
26785 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
26786 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
26787 (cputype_selected): New static variable.
26788 (bfin_handle_option): Set it if -mcpu is used.
26789 (override_option): Select default set of workarounds if no cpu type
26790 selected on the command line.
26791 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
26793 From Michael Frysinger <michael.frysinger@analog.com>
26794 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
26795 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
26797 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
26798 for bf547, bf523, bf524, and bf526.
26799 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
26801 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
26802 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
26803 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
26804 __ADSPBF547__ and __ADSPBF54x__ for bf547.
26805 * doc/invoke.texi (Blackfin Options): Document that
26806 -mcpu now accept bf547, bf523, bf524, and bf526.
26808 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
26810 PR rtl-optimization/34628
26811 * combine.c (try_combine): Stop and undo after the first combination
26812 if an autoincrement side-effect on the first insn has effectively
26815 2008-01-22 David Edelsohn <edelsohn@gnu.org>
26818 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26819 Offset addresses are not valid for Altivec or paired float modes.
26821 2008-01-22 Jakub Jelinek <jakub@redhat.com>
26824 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
26825 if DECL_INITIAL (decl) is error_mark_node.
26828 * c-common.c (handle_vector_size_attribute): Only allow
26829 integral, scalar float and fixed point types. Handle OFFSET_TYPE
26830 the same way as pointer, array etc. types.
26831 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
26834 * tree.c (build_type_attribute_qual_variant): Call
26835 build_qualified_type if attributes are equal, but quals are not.
26837 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26840 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
26841 * flags.h (warn_strict_aliasing): Remove.
26842 (warn_strict_overflow): Remove.
26843 * opts.c (warn_strict_aliasing): Remove.
26844 (warn_strict_overflow): Remove.
26845 * c-opts.c (c_common_handle_option): -Wall only sets
26846 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
26847 (c_common_post_options): Give default values to -Wstrict-aliasing
26848 and -Wstrict-overflow if they are uninitialized.
26849 * common.opt (Wstrict-aliasing): Specify Var and Init.
26850 (Wstrict-overflow): Likewise.
26852 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
26854 PR rtl-optimization/26854
26855 PR rtl-optimization/34400
26856 PR rtl-optimization/34884
26857 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
26859 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
26860 (df_rd_bb_info.expanded_lr_out): Deleted
26861 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
26862 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
26863 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
26864 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
26865 Removed code to allocate, initialize or free expanded_lr_out.
26866 (df_rd_bb_local_compute_process_def): Restructured to make more
26868 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
26869 sets if the sets are being trimmed.
26871 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
26874 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
26875 (as_vers): Likewise.
26876 * configure: Regenerated.
26878 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26880 PR middle-end/33092
26881 * tree-pass.h (pass_build_alias): New pass.
26882 * tree-ssa-alias.c (gate_build_alias): New.
26883 (pass_build_alias): New.
26884 * passes.c (init_optimization_passes): Add pass_build_alias after
26885 pass_create_structure_vars.
26887 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
26889 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
26890 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
26891 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
26892 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
26893 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
26894 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
26895 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
26896 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
26897 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
26898 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
26899 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
26900 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
26901 * config/s390/s390.md (FP_ALL): New mode iterator.
26902 (_d): New mode attribute.
26903 ("*signbit<mode>2>"): Changed mode of first operand.
26904 ("isinf<mode>2"): Changed mode of first operand.
26905 ("*TDC_insn"): Adaptation for DFP modes.
26907 2008-01-22 Ben Elliston <bje@au.ibm.com>
26909 * tree.c (check_qualified_type): Improve function description.
26911 2008-01-21 Jason Merrill <jason@redhat.com>
26914 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
26915 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
26918 2008-01-21 DJ Delorie <dj@redhat.com>
26920 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
26923 2008-01-21 Richard Guenther <rguenther@suse.de>
26925 PR middle-end/34856
26926 * tree-cfg.c (verify_expr): Allow all invariant expressions
26927 instead of just constant class ones as reference argument.
26928 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
26929 like any other constant.
26930 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
26932 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
26934 * regmove.c (fixup_match_1): Update call crossed frequencies.
26936 2008-01-21 Richard Guenther <rguenther@suse.de>
26939 * tree-inline.c (setup_one_parameter): Deal with mismatched
26940 types using a VIEW_CONVERT_EXPR.
26942 2008-01-21 Alon Dayan <alond@il.ibm.com>
26943 Olga Golovanevsky <olga@il.ibm.com>
26945 PR tree-optimization/34701
26946 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
26947 when the structure size is not a power of 2.
26949 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
26951 * doc/install.texi: Add doc for --enable-checking=df.
26953 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
26955 PR rtl-optimization/34808
26956 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
26958 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
26960 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
26963 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
26965 PR rtl-optimization/26854
26966 PR rtl-optimization/34400
26967 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
26969 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
26970 (df_rd_bb_info.expanded_lr_out): New.
26971 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
26972 * loop_iv.c (iv_analysis_loop_init): Ditto.
26973 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
26974 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
26975 Added code to allocate, initialize or free expanded_lr_out.
26976 (df_rd_bb_local_compute_process_def): Restructured to make
26977 more understandable.
26978 (df_rd_confluence_n): Add code to do nothing with fake edges and
26979 code to no apply invalidate_by_call sets if the sets are being trimmed.
26980 (df_lr_local_finalize): Renamed to df_lr_finalize.
26981 (df_live_local_finalize): Renamed to df_live_finalize.
26983 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
26986 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
26987 deciding whether to use reciprocal instructions.
26989 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
26991 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
26992 dwarf2out_note_section_used if cold_text_section is NULL.
26994 2008-01-19 Jakub Jelinek <jakub@redhat.com>
26996 PR gcov-profile/34610
26997 * tree-cfg.c (make_edges): Mark both outgoing edges from
26998 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
26999 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
27000 from OMP_FOR and OMP_CONTINUE outgoing edges.
27002 * tree-profile.c (tree_profiling): Return early if
27003 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
27005 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
27006 from cfun to child_cfun.
27007 * function.h (struct function): Add after_tree_profile bit.
27009 2008-01-19 Anatoly Sokolov <aesok@post.ru>
27011 * config/avr/avr.S (_exit): Disable interrupt.
27013 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
27014 Steven Bosscher <stevenb.gcc@gmail.com>
27016 PR rtl-optimization/26854
27017 PR rtl-optimization/34400
27018 * df-problems.c (df_live_scratch): New scratch bitmap.
27019 (df_live_alloc): Allocate df_live_scratch when doing df_live.
27020 (df_live_reset): Clear the proper bitmaps.
27021 (df_live_bb_local_compute): Only process the artificial defs once
27022 since the order is not important.
27023 (df_live_init): Init the df_live sets only with the variables
27024 found live by df_lr.
27025 (df_live_transfer_function): Use the df_lr sets to prune the
27026 df_live sets as they are being computed.
27027 (df_live_free): Free df_live_scratch.
27029 2008-01-18 Ian Lance Taylor <iant@google.com>
27031 * common.opt: Add fmerge-debug-strings.
27032 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
27033 flag_merge_debug_strings rather than flag_merge_constants.
27034 * doc/invoke.texi (Option Summary): Mention
27035 -fmerge-debug-strings.
27036 (Debugging Options): Document -fmerge-debug-strings.
27038 2008-01-18 Ian Lance Taylor <iant@google.com>
27041 * tree.h (DECL_IS_OPERATOR_NEW): Define.
27042 (struct tree_function_decl): Add new field operator_new_flag.
27043 * tree-inline.c (expand_call_inline): When inlining a call to
27044 operator new, force the return value to go into a variable, and
27045 set DECL_NO_TBAA_P on that variable.
27046 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
27048 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
27051 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
27052 DWARF2_DEBUGGING_INFO.
27053 (dwarf2out_note_section_used): Ditto. Add prototype.
27054 (have_multiple_function_sections, text_section_used,
27055 cold_text_section_used, *cold_text_sections): Move declarations
27058 2008-01-17 Bob Wilson <bob.wilson@acm.org>
27060 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
27061 field and add signal_ra.
27062 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
27063 assignments to frame state pc. Move end of stack check after
27064 MD_FALLBACK_FRAME_STATE_FOR.
27065 (uw_update_context_1): Use frame state signal_regs if set, instead
27066 of checking signal_frame flag.
27067 (uw_update_context): Use frame state signal_ra if set.
27068 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
27069 * config/xtensa/linux-unwind.h: New file.
27071 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
27073 * modulo-sched.c (get_sched_window): Fix comment typo.
27075 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
27077 PR tree-optimization/34648
27078 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
27080 2008-01-17 Anatoly Sokolov <aesok@post.ru>
27082 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
27083 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
27085 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
27087 PR rtl-optimization/34400
27088 * df-core.c (df_worklist_dataflow_overeager,
27089 df_worklist_dataflow_doublequeue): New functions.
27090 (df_worklist_dataflow): Two different worklist solvers.
27091 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
27094 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
27097 * doc/invoke.texi: Document the dependence on pthread for fopenmp
27098 and ftree-parallelize-loops.
27100 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
27102 PR rtl-optimization/34826
27103 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
27105 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
27107 * global.c (find_reg): Mark the eh regs as used if necessary.
27108 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
27109 * ra.h (struct allocno): no_eh_reg field added. Changed
27110 no_stack_reg type to bitfield.
27112 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
27114 * tree.c (substitute_in_expr): Add missing 'break'.
27116 2008-01-17 Richard Guenther <rguenther@suse.de>
27118 PR tree-optimization/34825
27119 * tree-ssa-math-opts.c (is_division_by): Do not recognize
27120 x / x as division to handle.
27122 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27124 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
27125 "-pthread" is specified.
27126 * pa-hpux11.h (LIB_SPEC): Likewise.
27128 2008-01-16 Janis Johnson <janis187@us.ibm.com>
27129 Peter Bergner <bergner@vnet.ibm.com>
27131 PR rtl-optimization/33796
27132 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
27134 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27136 PR libgfortran/34699
27137 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
27139 * pa-hpux10.h (LINK_SPEC): Likewise.
27140 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
27142 2008-01-16 Richard Guenther <rguenther@suse.de>
27144 PR middle-end/32628
27145 * fold-const.c (fold_convert_const_int_from_int): Do not
27146 set overflow if that occured only because of a sign extension
27147 change when converting from/to a sizetype with the same
27148 precision and signedness.
27150 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
27153 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
27154 location address to the correct place. Update copyright year.
27156 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
27158 * lambda-code.c (lambda_transform_legal_p): Handle the case of
27159 no dependences in the dependence_relations vector.
27161 2008-01-16 Jan Hubicka <jh@suse.cz>
27163 PR rtl-optimization/31396
27164 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
27165 * cfg.c (dump_reg_info): Print it.
27166 * regs.h (struct reg_info_t): add freq_calls_crossed.
27167 (REG_FREQ_CALLS_CROSSED): New macro.
27168 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
27169 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
27170 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
27171 regmove_optimize): Update call crossed frequencies.
27172 * local-alloc.c (struct qty): Add freq_calls_crossed.
27173 (alloc_qty): Copute freq_calls_crossed.
27174 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
27175 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
27176 * ra.h (struct allocno): Add freq_calls_crossed.
27178 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
27180 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
27181 libgomp when compiling with ftree-parallelize-loops.
27182 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
27184 2008-01-16 Richard Guenther <rguenther@suse.de>
27186 PR tree-optimization/34769
27187 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
27188 * tree.c (int_cst_value): Instead make this function more
27189 permissive in what it accepts as valid input. Document this
27190 function always sign-extends the value.
27192 2008-01-16 Jakub Jelinek <jakub@redhat.com>
27193 Richard Guenther <rguenther@suse.de>
27196 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
27197 (gimple_fold_indirect_ref_rhs): ... this.
27198 (gimple_fold_indirect_ref): New function with foldings
27199 that preserve lvalueness.
27200 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
27201 * tree-flow.h (gimple_fold_indirect_ref): Declare.
27202 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
27203 to fold an INDIRECT_REF, fall back to the old use of
27204 fold_indirect_ref_1.
27206 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
27208 * tree-data-ref.c (subscript_dependence_tester_1): Call
27209 free_conflict_function.
27210 (compute_self_dependence): Same.
27212 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
27215 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
27216 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
27218 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
27219 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
27220 for DWARF2_UNWIND_INFO targets.
27222 2008-01-16 Richard Guenther <rguenther@suse.de>
27225 * c-typeck.c (common_pointer_type): Do not merge inconsistent
27226 type qualifiers for function types.
27228 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
27230 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
27231 loop_iterator li from previous commit.
27233 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
27235 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
27237 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
27239 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
27240 (parallelize_loops): Don't parallelize irreducible components.
27242 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27245 * c-opts (c_common_post_options): Do not enable CPP
27246 flag_pedantic_errors by default.
27248 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
27250 PR rtl-optimization/31944
27251 * cse.c (remove_pseudo_from_table): New function.
27252 (merge_equiv_classes): Use above function to remove pseudo-registers.
27253 (invalidate): Likewise.
27255 2008-01-13 Richard Guenther <rguenther@suse.de>
27257 PR middle-end/34601
27258 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
27259 instead of TYPE_MODE to deal with calls from expand_one_error_var.
27261 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
27263 * gcse.c (cprop_jump): Call validate_unshare_change instead of
27264 validate_change to unshare the source of the PC set.
27266 2008-01-12 Jan Hubicka <jh@suse.cz>
27268 PR middle-end/32135
27269 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
27270 references above array bounds. This might trigger bounds checks for
27271 pointers to arrays.
27273 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
27275 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
27276 new_replaceable_dependencies.
27278 2008-01-12 Doug Kwan <dougkwan@google.com>
27280 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
27281 instead of OPT_Wreturn_type in warning due to ignored return type
27283 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
27284 options included in -Wextra.
27285 * c.opt: New option -Wignored_qualifiers.
27286 * doc/invoke.texi (Warning Options, -Wextra): Add new option
27287 -Wignore_qualifiers.
27288 (-Wignored-qualifiers): Document.
27289 (-Wreturn-type): Remove description of functionality now handled
27290 by -Wignored-qualifiers.
27292 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
27295 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
27296 NOP_EXPR if it is between integral types with the same precision.
27298 2008-01-12 Jan Hubicka <jh@suse.cz>
27301 * invoke.texi (max-inline-recursive-depth): Fix default value.
27303 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
27305 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
27308 2008-01-11 Bob Wilson <bob.wilson@acm.org>
27310 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
27312 2008-01-11 James E. Wilson <wilson@specifix.com>
27315 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
27317 2008-01-11 Anatoly Sokolov <aesok@post.ru>
27319 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
27320 save/restore frame pointer register and don't use 'call-prologues'
27321 optimization in function with "OS_task" attribute.
27323 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
27325 PR middle-end/31309
27326 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
27327 when copying to memory.
27329 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
27331 PR rtl-optimization/30905
27332 * cfgcleanup.c: Include dce.h
27333 (crossjumps_occured): New global variable.
27334 (try_crossjump_bb): Exit loop after finding a fallthru edge.
27335 If something changed, set crossjumps_occured to true.
27336 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
27337 Don't add/remove fake edges to exit here...
27338 (cleanup_cfg): ...but do it here, when crossjumping.
27339 Run a fast DCE when successful crossjumps occured in the latest
27340 iteration of try_optimize_cfg.
27342 2008-01-11 Richard Guenther <rguenther@suse.de>
27344 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
27345 (struct vn_unary_op_s): Likewise.
27346 (vn_reference_insert): Free old reference on hash collision.
27348 2008-01-10 Raksit Ashok <raksit@google.com>
27350 PR rtl-optimization/27971
27351 * combine.c (find_split_point): Split PLUS expressions which are
27352 inside a MEM rtx, and whose first operand is complex.
27354 2008-01-10 DJ Delorie <dj@redhat.com>
27356 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
27357 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
27358 (m32c_hard_regno_ok): Call the underlying function.
27360 2008-01-10 Richard Guenther <rguenther@suse.de>
27362 PR middle-end/34683
27363 * tree-cfg.c (tree_merge_blocks): Do not go through the
27364 full-blown folding and stmt updating path if we just deal
27365 with virtual operands.
27366 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
27367 test for abnormal SSA_NAMEs.
27369 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
27371 PR middle-end/34641
27372 * reload.c (push_reload): Add assertions. All constants from
27373 reg_equiv_constant should have been used for replacing the respective
27375 (find_reloads_address): Invoke find_reloads_address_part for
27376 constant taken from the reg_equiv_constant array.
27378 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
27380 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
27381 field (valnum) the first in the struct. Replace bools with
27384 2008-01-10 Richard Guenther <rguenther@suse.de>
27386 PR tree-optimization/34651
27387 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
27388 types and ordering for masking and converting.
27390 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
27392 PR tree-optimization/34017
27393 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
27394 also for PHI_NODE expressions.
27396 2008-01-09 Jan Hubicka <jh@suse.cz>
27398 PR tree-optimization/34708
27399 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
27400 based on number of case labels.
27401 (init_inline_once): Remove switch_cost.
27402 * tree-inline.h (eni_weights_d): Remove switch_cost.
27404 2008-01-09 Richard Guenther <rguenther@suse.de>
27405 Andrew Pinski <andrew_pinski@playstation.sony.com>
27407 PR middle-end/30132
27408 * gimplify.c (gimplify_cond_expr): Do not create an addressable
27409 temporary if an rvalue is ok or an lvalue is not required.
27411 2008-01-09 Richard Guenther <rguenther@suse.de>
27413 PR middle-end/34458
27414 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
27415 adjust return type.
27417 2008-01-09 Richard Guenther <rguenther@suse.de>
27419 PR middle-end/34679
27420 * tree.c (host_integerp): Check for sizetype only if the
27421 type is an integer type.
27423 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
27426 * opts.c (decode_options): Disable inlining of functions called
27427 once if not in unit-at-a-time mode.
27429 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
27431 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
27433 2008-01-08 Richard Guenther <rguenther@suse.de>
27435 PR middle-end/31863
27436 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
27437 out early if the result will be unused.
27439 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
27444 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
27445 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
27448 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
27450 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
27451 for vectorization tuned.
27453 2008-01-08 Richard Guenther <rguenther@suse.de>
27455 PR tree-optimization/34683
27456 * tree-ssa-operands.c (operand_build_cmp): Export.
27457 * tree-ssa-operands.h (operand_build_cmp): Declare.
27458 * tree-vn.c (vuses_compare): Remove.
27459 (sort_vuses): Use operand_build_cmp.
27460 (sort_vuses_heap): Likewise.
27461 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
27462 to re-use old VEC if available. Do not sort already sorted VUSEs.
27463 (vdefs_to_vec): Do not sort already sorted VDEFs.
27465 2008-01-08 Jakub Jelinek <jakub@redhat.com>
27467 PR middle-end/34694
27468 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
27470 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
27473 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
27474 limitations of reciprocal sequences on x86 targets.
27476 2008-01-08 Richard Guenther <rguenther@suse.de>
27478 PR tree-optimization/34683
27479 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
27481 2008-01-07 Jakub Jelinek <jakub@redhat.com>
27484 * config/darwin.c (darwin_mergeable_string_section): Don't use
27485 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
27487 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
27490 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
27491 negxf2. Macroize expander using X87MODEF mode iterator. Change
27492 predicates of op0 and op1 to register_operand.
27493 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
27494 expander using X87MODEF mode iterator. Change predicates of
27495 op0 and op1 to register_operand.
27496 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
27497 corresponding patterns and macroize using MODEF macro. Change
27498 predicates of op0 and op1 to register_operand and remove
27499 "m" constraint. Disparage "r" alternative with "!".
27500 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
27501 macroize using X87MODEF macro. Change predicates of op0 and op1
27502 to register_operand and remove "m" constraint. Disparage "r"
27503 alternative with "!".
27504 (absneg splitter with memory operands): Remove.
27505 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
27506 patterns and macroize using X87MODEF mode iterator.
27507 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
27508 Change predicate of op1 to register_operand.
27509 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
27510 for memory operands.
27512 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
27514 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
27516 2008-01-07 Richard Guenther <rguenther@suse.de>
27518 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
27521 2008-01-07 Richard Guenther <rguenther@suse.de>
27523 PR tree-optimization/34683
27524 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
27525 VOPs of the needed size to save memory. Use VEC_quick_push
27526 to save compile-time.
27527 (vdefs_to_vec): Likewise.
27529 2008-01-07 Sa Liu <saliu@de.ibm.com>
27531 * config/spu/spu.md (divdf3): Genetate inline code for double
27532 division. The implementation doesn't handle INF or NAN, therefore it
27533 only applies when -ffinite-math-only is given.
27535 2008-01-06 Paolo Carlini <pcarlini@suse.de>
27538 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
27539 * doc/cpp.texi ([Common Predefined Macros]): Document.
27541 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
27543 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
27544 order to use commutative addition instead of subtraction.
27546 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
27547 Mircea Namolaru <namolaru@il.ibm.com>
27548 Vladimir Yanovsky <yanov@il.ibm.com>
27549 Revital Eres <eres@il.ibm.com>
27551 PR tree-optimization/34263
27552 * tree-outof-ssa.c (process_single_block_loop_latch,
27553 contains_tree_r): New functions.
27554 (analyze_edges_for_bb): Call process_single_block_loop_latch
27555 function to empty single-basic-block latch block if possible.
27557 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
27559 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
27561 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
27563 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
27565 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
27567 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
27569 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
27571 2008-01-05 Jakub Jelinek <jakub@redhat.com>
27573 PR tree-optimization/34618
27574 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
27577 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
27580 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
27581 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
27582 Update copyright year.
27584 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
27585 Update copyright year.
27586 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
27589 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
27591 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
27592 edge does not point to current bb before changing need_assert.
27594 2008-01-04 Richard Guenther <rguenther@suse.de>
27596 PR middle-end/34029
27597 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
27598 for verifying purposes if they are is_gimple_min_invariant.
27600 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
27602 PR tree-optimization/34448
27603 PR tree-optimization/34465
27604 * gimplify.c (gimplify_init_constructor): Add new parameter
27605 notify_temp_creation. Use it.
27606 (gimplify_modify_expr_rhs): Take volatiles into account when
27607 optimizing constructors.
27608 Do not optimize constructors if gimplify_init_constructor will dump to
27610 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
27611 * gcc.c-torture/compile/pr34448.c: New.
27613 2008-01-04 Jakub Jelinek <jakub@redhat.com>
27615 PR gcov-profile/34609
27616 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
27617 return_slot if result is TREE_ADDRESSABLE.
27619 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
27621 * config/mips/mips.md (sqrt_condition): Tweak comment.
27622 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
27624 2008-01-03 Tom Tromey <tromey@redhat.com>
27627 * c-common.c (c_type_hash): Handle VLAs.
27629 2008-01-03 Jan Hubicka <jh@suse.cz>
27631 PR tree-optimization/31081
27632 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
27633 0 when inlining and not inlining to first basic block.
27634 (remap_decl): When var is initialized to 0, don't set default_def.
27635 (expand_call_inline): Set entry_bb.
27636 * tree-inline.h (copy_body_data): Add entry_bb.
27638 2008-01-03 Jakub Jelinek <jakub@redhat.com>
27641 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
27644 PR tree-optimization/29484
27645 * tree-inline.c (inline_forbidden_p_2): New function.
27646 (inline_forbidden_p): Disallow inlining if some static var
27647 has an address of a local LABEL_DECL in its initializer.
27648 * doc/extend.texi (Labels as Values): Document &&foo behaviour
27651 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
27653 PR tree-optimization/34635
27654 * tree-data-ref.c (add_other_self_distances): Make sure that the
27655 evolution step is constant.
27657 2008-01-03 Jakub Jelinek <jakub@redhat.com>
27659 PR middle-end/34608
27660 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
27662 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
27664 * tree-sra.c (scalarize_init): Insert the generate_element_init
27665 statements after the generate_element_zero statements.
27667 2008-01-02 Richard Guenther <rguenther@suse.de>
27669 PR middle-end/34093
27670 PR middle-end/31976
27671 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
27672 for very large number of operands instead of ICEing.
27674 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
27677 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
27678 while stack probing.
27680 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
27682 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
27685 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
27687 PR libmudflap/26442
27688 * tree-mudflap.c (mx_register_decls): Guard warning by
27689 !DECL_ARTIFICIAL check.
27691 2008-01-01 Jakub Jelinek <jakub@redhat.com>
27693 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
27694 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
27695 sse5_perm<mode>): Fix constraints.