OSDN Git Service

8e205af3eac5c918822aec87411e8ff417e1264a
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
2
3         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6
7 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
8
9         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
10         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
12
13 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14
15         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
16
17 2008-06-16  Ira Rosen  <irar@il.ibm.com>
18
19         PR tree-optimization/36493
20         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
21         the arguments list. Use VECTYPE to create vector pointer.
22         (vectorizable_store): Fail if accesses through a pointer to vectype
23         do not alias the original memory reference operands.
24         Call vect_create_data_ref_ptr without the removed argument.
25         (vectorizable_load): Likewise.
26         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
27         removed argument.
28
29 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
30
31         PR target/36336
32         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
33         reg_equiv_constant.
34
35 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
36
37         * config/mips/loongson2ef.md: New file.
38         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
39         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
40         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
41         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
42         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
43         and loongson_2f.
44         (loongson2ef.md): New include.
45         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
46         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
47         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
48         (loongson_gt_<mode>, loongson_extract_halfword)
49         (loongson_insert_halfword_0, loongson_insert_halfword_2)
50         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
51         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
52         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
53         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
54         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
55         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
56         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
57         (vec_interleave_low<mode>): Define type attribute.
58         * config/mips/mips.c (mips_ls2): New static variable.
59         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
60         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
61         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
62         Implement target scheduling hooks.
63         (mips_multipass_dfa_lookahead): Update to handle tuning for
64         Loongson 2E/2F.
65         (mips_sched_init): Initialize data for Loongson scheduling.
66         (mips_ls2_variable_issue): New static function.
67         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
68         Add sanity check.
69         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
70         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
71         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
72         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
73         Handle ST Loongson 2E/2F cores.
74         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
75
76 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77
78         * omp-low.c (extract_omp_for_data): Fix comment typo.
79         * c.opt: Fix typo.
80
81 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82
83         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
84         FIXME note about gcc/config.guess.
85         * doc/options.texi (Option file format): Remove non-ASCII bytes.
86         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
87         * doc/cppopts.texi: Likewise.
88         * doc/extend.texi: Likewise.
89         * doc/gcc.texi: Likewise.
90         * doc/gccint.texi: Likewise.
91         * doc/gcov.texi: Likewise.
92         * doc/gty.texi: Likewise.
93         * doc/hostconfig.texi: Likewise.
94         * doc/install.texi: Likewise.
95         * doc/invoke.texi: Likewise.
96         * doc/loop.texi: Likewise.
97         * doc/makefile.texi: Likewise.
98         * doc/md.texi: Likewise.
99         * doc/passes.texi: Likewise.
100         * doc/tm.texi: Likewise.
101         * doc/tree-ssa.texi: Likewise.
102         * doc/trouble.texi: Likewise.
103
104 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
105             Nathan Sidwell  <nathan@codesourcery.com>
106             Maxim Kuvyrkov  <maxim@codesourcery.com>
107             Richard Sandiford  <rdsandiford@googlemail.com>
108         
109         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
110         * config/mips/mips-protos.h (mips_expand_vector_init): New.
111         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
112         builtins.
113         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
114         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
115         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
116         V8QImode cases.
117         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
118         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
119         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
120         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
121         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
122         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
123         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
124         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
125         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
126         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
127         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
128         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
129         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
130         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
131         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
132         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
133         (mips_builtins): Add Loongson builtins.
134         (mips_loongson_2ef_bdesc): New.
135         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
136         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
137         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
138         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
139         New.
140         (mips_expand_vector_init): New.
141         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
142         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
143         if appropriate.
144         * config/mips/mips.md: Add unspec numbers for Loongson
145         builtins.  Include loongson.md.
146         (MOVE64): Include Loongson vector modes.
147         (SPLITF): Include Loongson vector modes.
148         (HALFMODE): Handle Loongson vector modes.
149         * config/mips/loongson.md: New.
150         * config/mips/loongson.h: New.
151         * config.gcc: Add loongson.h header for mips*-*-* targets.
152         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
153
154 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
155
156         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
157         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
158         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
159         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
160         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
161         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
162         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
163         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
164         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
165         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
166         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
167         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
168         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
169         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
170         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
171         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
172         Remove use_fixproto=yes.
173         (ia64*-*-hpux*): Remove comment about using fixproto.
174         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
175
176 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
177
178         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
179         library rebuilds.
180         * configure: Regenerate.
181
182 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
183
184         PR middle-end/36520
185         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
186         before evaluating it.
187
188 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
189
190         PR c/36507
191         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
192         nested inline functions.
193         (start_decl, start_function): Don't invert DECL_EXTERNAL
194         for nested inline functions.
195
196 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
197
198         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
199         splits that must be made for correctness.
200
201 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
202
203         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
204         (AVAIL_NON_MIPS16): Likewise.
205         (mips_builtin_description): Replace target_flags with a predicate.
206         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
207         (dspr2_32): New availability predicates.
208         (MIPS_BUILTIN): New macro.
209         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
210         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
211         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
212         Replace the TARGET_FLAGS parameters with AVAIL parameters.
213         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
214         (mips_dsp_32only_bdesc): Merge into...
215         (mips_builtins): ...this new array.
216         (mips_bdesc_map, mips_bdesc_arrays): Delete.
217         (mips_init_builtins): Update after above changes.
218         (mips_expand_builtin_1): Merge into...
219         (mips_expand_builtin): ...here and update after above changes.
220
221 2008-06-12  Paul Brook  <paul@codesourcery.com>
222
223         * longlong.h (__arm__): Define count_leading_zeros.
224         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
225         (clzsi2, clzdi2): New functions.
226         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
227         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
228         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
229         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
230         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
231         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
232         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
233         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
234         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
235         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
236
237 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
238
239         * config/m68k/m68k.c (m68k_tune_flags): New.
240         (override_options): Compute m68k_tune_flags.
241         (MULL_COST, MULW_COST): Update for various variants of CFV2.
242         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
243
244 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
245
246         PR middle-end/36506
247         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus
248         warning.
249
250 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
251
252         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
253         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
254
255 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
256
257         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
258         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
259
260 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
261
262         PR middle-end/36506
263         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
264         reductions.
265
266 2008-06-12  Richard Guenther  <rguenther@suse.de>
267
268         PR tree-optimization/36345
269         * tree-flow.h (struct ptr_info_def): Align escape_mask,
270         add memory_tag_needed flag.
271         (may_alias_p): Declare.
272         * tree-ssa-alias.c (may_alias_p): Export.
273         (set_initial_properties): Use memory_tag_needed flag.
274         (update_reference_counts): Likewise.
275         (reset_alias_info): Reset memory_tag_needed flag.
276         (create_name_tags): Check memory_tag_needed flag.
277         (dump_points_to_info_for): Dump it.
278         * tree-ssa-structalias.c (struct variable_info): Remove
279         directly_dereferenced flag.
280         (new_var_info): Do not initialize it.
281         (process_constraint_1): Do not set it.
282         (update_alias_info): Set is_dereferenced flag.
283         (set_uids_in_ptset): Use may_alias_p.
284         (set_used_smts): Check memory_tag_needed flag.
285         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
286         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
287         memory_tag_needed flag.
288         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
289         from broken design.
290
291 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
292
293         * config/i386/i386.c (ix86_compute_frame_layout): Disable red zone for
294         w64 abi.
295         (ix86_expand_prologue): Likewise.
296         (ix86_force_to_memory): Likewise.
297         (ix86_free_from_memory): Likewise.
298
299 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
300
301         PR target/36425
302         * config/rs6000/rs6000.c (rs6000_override_options): Set
303         rs6000_isel conditionally to the absence of comand line
304         override.
305         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
306         Remove duplicate rs6000_isel setting.
307         * config/rs6000/eabispe.h: Ditto.
308
309 2008-06-11  Richard Guenther  <rguenther@suse.de>
310
311         * alias.c (get_alias_set): Use the element alias-set for arrays.
312         (record_component_aliases): For arrays and vectors do nothing.
313         * c-common.c (strict_aliasing_warning): Handle the cases
314         of alias set zero explicitly.
315         * Makefile.in (dfp.o-warn): Add -Wno-error.
316
317 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
318
319         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
320         tune_32 tune_64.
321         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
322         tune_32 tune_64 to supported_defaults.  Allow values not
323         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
324         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
325         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
326         with_cpu_64 to generic for 64-bit-supporting configurations, not
327         with_cpu.  Remove FIXMEs.
328         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
329         --with-arch-64, --with-tune-32, --with-tune-64): Document.
330         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
331         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
332         arch_32 and arch_64.
333
334 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
335             Olivier Hainque  <hainque@adacore.com>
336
337         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
338         Use DECL_SIZE_UNIT to retrieve the size of the field.
339
340 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
341
342         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
343         with function calls after declarations.  Lay out
344         neon_float_type_node before further use.
345
346 2008-06-11  Richard Guenther  <rguenther@suse.de>
347
348         * tree-flow.h (may_point_to_global_var): Declare.
349         * tree-ssa-alias.c (may_point_to_global_var): New function.
350         * tree-ssa-sink.c (is_hidden_global_store): Use it.
351
352 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
353
354         * configure.ac: Teach that fido supports .debug_line.
355         * configure: Regenerate.
356
357 2008-06-10  Tom Tromey  <tromey@redhat.com>
358
359         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
360         debug hook.
361
362 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
363
364         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
365         (encode_decimal64, decode_decimal64, encode_decimal128,
366         decode_decimal128): Reverse order of 32-bit parts of value if host
367         and target endianness differ.
368
369 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
370         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
371         Avoid division by 0.
372         (tree_mod_pow2_value_transform): Likewise.
373         (tree_ic_transform): Likewise.
374         (tree_stringops_transform): Likewise.
375         (tree_mod_subtract_transform): Likewise.
376         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
377         (copy_edges_for_bb): Likewise.
378         (initialize_cfun): Likewise.
379
380 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
381
382         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
383         nonmemory_operand. Add "N" operand constraint.
384         (*btsi): Ditto.
385         (*jcc_btdi_mask_rex64): New instruction and split pattern.
386         (*jcc_btsi_mask): Ditto.
387         (*jcc_btsi_mask_1): Ditto.
388
389 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
390
391         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
392         TYPE_CANONICAL for copied element type.
393
394 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
395
396         PR target/36473
397         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
398         Add m_CORE2 and m_GENERIC.
399         * config/i386/predicates.md (bt_comparison_operator): New predicate.
400         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
401         (*btsi): Ditto.
402         (*jcc_btdi_rex64): New instruction and split pattern.
403         (*jcc_btsi): Ditto.
404         (*jcc_btsi_1): Ditto.
405         (*btsq): Fix Intel asm dialect operand order.
406         (*btrq): Ditto.
407         (*btcq): Ditto.
408
409 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
410
411         PR middle-end/36447
412         * simplify-rtx.c (simplify_subreg): Add check for shift count 
413         greater than size.
414
415 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
416
417         * doc/md.texi: Synchronize with later constraints.md change.
418         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
419         with a C implementation.
420         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
421         MFLO handling.
422         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
423         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
424         when moving to and from MD_REGNUM.
425         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
426         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
427         Handle byte and halfword moves.
428         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
429         separately.
430         * config/mips/constraints.md (h): Turn into NO_REGS.
431         (l, x): Update documentation.
432         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
433         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
434         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
435         (HILO): New mode iterator.
436         (MOVE128): Add TI.
437         (any_div): New code iterator.
438         (u): Extend code attribute to div and udiv.
439         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
440         d_operand in the splitters.  Remove redundant CONST_INT checks.
441         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
442         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
443         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
444         accordingly, using normal moves instead of unspecs to move LO into
445         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
446         (<u>mulsidi3): Handle expansion in C code.
447         (<u>mulsidi3_32bit_internal): Rename to...
448         (<u>mulsidi3_32bit): ...this.
449         (<u>mulsidi3_32bit_r4000): Fix insn separator.
450         (*<u>mulsidi3_64bit): Rename to...
451         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
452         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
453         to set LO and HI to the multiplication result.  Use a normal move
454         for MFLO and an unspec for MFHI.
455         (*<u>mulsidi3_64bit_parts): Replace with...
456         (<u>mulsidi3_64bit_hilo): ...this new instruction.
457         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
458         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
459         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
460         instead of HI.  Split the instruction into a separate multiplication
461         and MFHI if !TARGET_FIX_R4000.
462         (<su>muldi3_highpart): Likewise.
463         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
464         and the "=h" clobber.
465         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
466         (<u>mulditi3): New expander.
467         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
468         (madsi): Remove "=h" clobber.
469         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
470         Force the modulus result to be a GPR and split the instruction into
471         a division followed by an MFHI after reload.
472         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
473         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
474         the MIPS16 HIGH define_split.
475         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
476         of acc<->gpr moves to "multi".
477         (*movdi_64bit): Replace the single "x" alternative with
478         alternatives for moving into and out of "a".
479         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
480         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
481         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
482         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
483         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
484         (movti): New expander.
485         (*movti, *movti_mips16): New insns.
486         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
487         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
488         (mthi<GPR:mode>_<HILO:mode>): Likewise.
489         * config/mips/predicates.md (fpr_operand): Delete.
490         (d_operand): New predicate.
491
492 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
493
494         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
495         failure on some Bourne shells.
496         (x86_64-*-*): Ditto.
497
498 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
499
500         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
501
502 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
503
504         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
505         (sparc-sun-solaris2*): Likewise.
506
507 2008-06-09  Arnaud Charlet  <charlet@adacore.com
508
509         * doc/install.texi: Update requirements to build the Ada compiler.
510
511 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
512
513         * df-scan.c (struct df_scan_problem_data): Remove the
514         mw_link_pool alloc pool.
515         (df_scan_free_internal): Don't free it.
516         (df_scan_alloc): Don't allocate it.
517         * df.h (struct df_link): Update comment.
518
519 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
520
521         * except.h: Correct checks for when SJLJ exceptions must be used.
522
523 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
524
525         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
526         default.
527         
528 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
529
530         PR tree-optimization/36218
531         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
532         configure for the build system.
533         (BUILD_LDFLAGS): Define.
534         * configure: Regenerate.
535         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
536
537 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
538
539         PR target/36424
540         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
541         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
542         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
543
544 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
545
546         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
547
548 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
549
550         * config.gcc (Obsolete configurations): Remove list of
551         configurations.
552         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
553         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
554         targets matched by those patterns.
555         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
556         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
557         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
558         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
559         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
560         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
561         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
562         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
563         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
564         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
565         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
566         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
567         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
568         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
569         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
570         Make code for Solaris 7 and greater unconditional for Solaris.
571         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
572         Remove --with-* handling.
573         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
574         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
575         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
576         LINK_OS_WINDISS_SPEC): Remove.
577         * config/rs6000/sysv4.opt (mwindiss): Remove.
578         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
579         * configure: Regenerate.
580         * doc/cpp.texi: Don't mention BeOS.
581         * doc/extend.texi (interrupt): Don't mention MS1.
582         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
583         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
584         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
585         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
586         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
587         Remove.
588         * doc/invoke.texi (MT Options): Remove.
589         (-mwindiss): Remove.
590         (CRIS Options): Remove cris-axis-aout references.
591         (HPPA Options): Don't mention hppa1.1-*-pro.
592         * doc/md.texi: (MorphoTech family): Remove.
593         * libgcc2.c: Don't handle UWIN.
594         * config/alpha/t-unicosmk: Remove.
595         * config/alpha/unicosmk.h: Remove.
596         * config/arm/kaos-arm.h: Remove.
597         * config/arm/kaos-strongarm.h: Remove.
598         * config/arm/strongarm-coff.h: Remove.
599         * config/arm/strongarm-elf.h: Remove.
600         * config/arm/strongarm-pe.h: Remove.
601         * config/arm/t-strongarm-pe: Remove.
602         * config/arm/t-xscale-coff: Remove.
603         * config/arm/t-xscale-elf: Remove.
604         * config/arm/xscale-coff.h: Remove.
605         * config/arm/xscale-elf.h: Remove.
606         * config/chorus.h: Remove.
607         * config/cris/aout.h: Remove.
608         * config/cris/aout.opt: Remove.
609         * config/cris/t-aout: Remove.
610         * config/i386/beos-elf.h: Remove.
611         * config/i386/kaos-i386.h: Remove.
612         * config/i386/ptx4-i.h: Remove.
613         * config/i386/sco5.h: Remove.
614         * config/i386/sco5.opt: Remove.
615         * config/i386/sysv4-cpp.h: Remove.
616         * config/i386/sysv5.h: Remove.
617         * config/i386/t-beos: Remove.
618         * config/i386/t-sco5: Remove.
619         * config/i386/t-uwin: Remove.
620         * config/i386/uwin.asm: Remove.
621         * config/i386/uwin.h: Remove.
622         * config/kaos.h: Remove.
623         * config/mips/windiss.h: Remove.
624         * config/mt: Remove directory.
625         * config/pa/pa-osf.h: Remove.
626         * config/pa/pa-pro-end.h: Remove.
627         * config/pa/t-pro: Remove.
628         * config/ptx4.h: Remove.
629         * config/rs6000/beos.h: Remove.
630         * config/rs6000/kaos-ppc.h: Remove.
631         * config/rs6000/t-beos: Remove.
632         * config/rs6000/windiss.h: Remove.
633         * config/sh/kaos-sh.h: Remove.
634         * config/sol2-6.h: Remove.
635         * config/sparc/sol26-sld.h: Remove.
636         * config/sparc/sysv4-only.h: Remove.
637         * config/vax/bsd.h: Remove.
638         * config/vax/t-memfuncs: Remove.
639         * config/vax/ultrix.h: Remove.
640         * config/vax/vaxv.h: Remove.
641         * config/windiss.h: Remove.
642
643 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
644
645         PR rtl-optimization/36438
646         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
647         for vector shifts with constant scalar shift operands.
648
649 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
650
651         * doc/invoke.texi: Document -march=xlr.
652         * config/mips/xlr.md: New file.
653         * config/mips/mips.md: Include it.
654         (cpu): Add "xlr".
655         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
656         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
657         (mips_rtx_cost_data): Likewise.
658
659 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
660
661         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
662         PRE_INC and PRE_DEC cases.
663
664 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
665
666         PR rtl-optimization/36419
667         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
668         the emitting jump insn.
669
670         PR target/36362
671         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
672         is not bool, boolify the whole *expr_p and convert to the desired type.
673
674 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
675
676         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
677         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
678         Add omp_private_outer_ref hook, add another argument to
679         omp_clause_default_ctor hook.
680         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
681         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
682         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
683         hook_tree_tree_tree_tree_null.
684         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
685         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
686         * hooks.c (hook_tree_tree_tree_tree_null): New function.
687         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
688         * tree.def (OMP_TASK): New tree code.
689         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
690         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
691         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
692         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
693         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
694         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
695         OMP_CLAUSE_COLLAPSE_EXPR): Define.
696         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
697         (OMP_DIRECTIVE_P): Add OMP_TASK.
698         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
699         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
700         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
701         and OMP_CLAUSE_UNTIED entries.
702         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
703         num_ops to 2.
704         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
705         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
706         * tree-pretty-print.c (dump_omp_clause): Handle
707         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
708         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
709         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
710         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
711         warning about unsigned iterators.  Change decl/init/cond/incr
712         arguments to TREE_VECs, check arguments for all collapsed loops.
713         (c_finish_omp_taskwait): New function.
714         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
715         ws_clauses.
716         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
717         default_function_array_conversion on init.  Add par_clauses argument.
718         If decl is present in parallel's lastprivate clause, change it to
719         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
720         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
721         collapse count in clauses.
722         (c_parser_omp_for, c_parser_omp_parallel): Adjust
723         c_parser_omp_for_loop callers.
724         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
725         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
726         (c_parser_omp_clause_name): Handle collapse and untied clauses.
727         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
728         functions.
729         (c_parser_omp_clause_schedule): Handle schedule(auto).
730         Include correct location in the error message.
731         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
732         and PRAGMA_OMP_CLAUSE_UNTIED.
733         (OMP_TASK_CLAUSE_MASK): Define.
734         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
735         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
736         * tree-nested.c (convert_nonlocal_omp_clauses,
737         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
738         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
739         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
740         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
741         OMP_CLAUSE_DECL.
742         (conver_nonlocal_reference, convert_local_reference,
743         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
744         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
745         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
746         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
747         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
748         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
749         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
750         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
751         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
752         OMP_CLAUSE_UNTIED.
753         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
754         * c-common.h (c_finish_omp_taskwait): New prototype.
755         * gimple-low.c (lower_stmt): Handle OMP_TASK.
756         * tree-parloops.c (create_parallel_loop): Create 1 entry
757         vectors for OMP_FOR_{INIT,COND,INCR}.
758         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
759         (make_edges): Handle OMP_TASK.
760         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
761         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
762         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
763         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
764         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
765         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
766         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
767         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
768         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
769         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
770         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
771         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
772         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
773         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
774         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
775         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
776         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
777         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
778         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
779         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
780         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
781         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
782         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
783         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
784         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
785         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
786         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
787         original iterator is present in lastprivate clause or if
788         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
789         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
790         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
791         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
792         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
793         if it is set, lookup var in outer contexts too.  Handle
794         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
795         to be implicitly determined firstprivate for task regions.
796         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
797         if it is set, lookup var in outer contexts too.  Set
798         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
799         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
800         OMP_CLAUSE_UNTIED.  Take region_type as last argument
801         instead of in_parallel and in_combined_parallel.
802         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
803         Adjust callers.
804         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
805         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
806         (new_omp_context): Set default_kind to
807         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
808         (omp_region_type): New enum.
809         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
810         fields, add region_type.
811         (new_omp_context): Take region_type as argument instead of is_parallel
812         and is_combined_parallel.
813         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
814         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
815         ctx->is_combined_parallel checks.
816         (gimplify_omp_task): New function.
817         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
818         OMP_CLAUSE_UNTIED.
819         * omp-low.c (extract_omp_for_data): Use schedule(static)
820         for schedule(auto).  Handle pointer and unsigned iterators.
821         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
822         Add loops argument.  Extract data for collapsed OMP_FOR loops.
823         (expand_parallel_call): Assert sched_kind isn't auto,
824         map runtime schedule to index 3.
825         (struct omp_for_data_loop): New type.
826         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
827         Add loop, loops, collapse and iter_type fields.
828         (workshare_safe_to_combine_p): Disallow combined for if
829         iter_type is unsigned long long.  Don't combine collapse > 1 loops
830         unless all bounds and steps are constant.  Adjust extract_omp_for_data
831         caller.
832         (expand_omp_for_generic): Handle pointer, unsigned and long long
833         iterators.  Handle collapsed OMP_FOR loops.  Adjust
834         for struct omp_for_data changes.  If libgomp function doesn't return
835         boolean_type_node, add comparison of the return value with 0.
836         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
837         pointer, unsigned and long long iterators.  Adjust for struct
838         omp_for_data changes.
839         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
840         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
841         unsigned long long.  Allocate loops array, pass it to
842         extract_omp_for_data.  For collapse > 1 loops use always
843         expand_omp_for_generic.
844         (omp_context): Add sfield_map and srecord_type fields.
845         (is_task_ctx, lookup_sfield): New functions.
846         (use_pointer_for_field): Use is_task_ctx helper.  Change first
847         argument's type from const_tree to tree.  Clarify comment.
848         In OMP_TASK disallow copy-in/out sharing.
849         (build_sender_ref): Call lookup_sfield instead of lookup_field.
850         (install_var_field): Add mask argument.  Populate both record_type
851         and srecord_type if needed.
852         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
853         in srecord_type.
854         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
855         and DECL_FIELD_OFFSET.
856         (scan_sharing_clauses): Adjust install_var_field callers.  For
857         firstprivate clauses on explicit tasks allocate the var by value in
858         record_type unconditionally, rather than by reference.
859         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
860         Use is_taskreg_ctx instead of is_parallel_ctx.
861         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
862         (create_omp_child_function_name): Add task_copy argument, use
863         *_omp_cpyfn* names if it is true.
864         (create_omp_child_function): Add task_copy argument, if true create
865         *_omp_cpyfn* helper function.
866         (scan_omp_parallel): Adjust create_omp_child_function callers.
867         Rename parallel_nesting_level to taskreg_nesting_level.
868         (scan_omp_task): New function.
869         (lower_rec_input_clauses): Don't run constructors for firstprivate
870         explicit task vars which are initialized by *_omp_cpyfn*.  
871         Pass outer var ref to omp_clause_default_ctor hook if
872         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
873         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
874         OMP_CLAUSE_REDUCTION_INIT.
875         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
876         avoid duplicate setting of fields.  Handle
877         OMP_CLAUSE_PRIVATE_OUTER_REF.
878         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
879         copy-out if TREE_READONLY, only copy-in.
880         (expand_task_copyfn): New function.
881         (expand_task_call): New function.
882         (struct omp_taskcopy_context): New type.
883         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
884         New functions.
885         (lower_omp_parallel): Rename to...
886         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
887         Call create_task_copyfn if srecord_type is needed.  Adjust
888         sender_decl type.
889         (task_shared_vars): New variable.
890         (check_omp_nesting_restrictions): Warn if work-sharing,
891         barrier, master or ordered region is closely nested inside OMP_TASK.
892         Add warnings for barrier if closely nested inside of work-sharing,
893         ordered, or master region.
894         (scan_omp_1): Call check_omp_nesting_restrictions even for
895         GOMP_barrier calls.  Rename parallel_nesting_level to
896         taskreg_nesting_level.  Handle OMP_TASK.
897         (lower_lastprivate_clauses): Even if some lastprivate is found on a
898         work-sharing construct, continue looking for them on parent parallel
899         construct.
900         (lower_omp_for_lastprivate): Add lastprivate clauses
901         to the beginning of dlist rather than end.  Adjust for struct
902         omp_for_data changes.
903         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
904         not after it.  Handle collapsed OMP_FOR loops, adjust for
905         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
906         (get_ws_args_for): Adjust extract_omp_for_data caller.
907         (scan_omp_for): Handle collapsed OMP_FOR
908         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
909         (lower_omp_single_simple): If libgomp function doesn't return
910         boolean_type_node, add comparison of the return value with 0.
911         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
912         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
913         (parallel_nesting_level): Rename to...
914         (taskreg_nesting_level): ... this.
915         (is_taskreg_ctx): New function.
916         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
917         of is_parallel_ctx.
918         (execute_lower_omp): Rename parallel_nesting_level to
919         taskreg_nesting_level.
920         (expand_omp_parallel): Rename to...
921         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
922         Call omp_task_call for OMP_TASK regions.
923         (expand_omp): Adjust caller, handle OMP_TASK.
924         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
925
926         * bitmap.c (bitmap_default_obstack_depth): New variable.
927         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
928         if argument is NULL and bitmap_default_obstack is already initialized.
929         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
930         at the end.
931         * matrix-reorg.c (matrix_reorg): Likewise.
932
933 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
934
935         * config/i386/i386.md (*indirect_jump): Macroize using P
936         mode iterator.  Remove !TARGET_64BIT from insn constraints.
937         (*tablejump_1): Ditto.
938         (*indirect_jump_rex64): Remove insn pattern.
939         (*tablejump_1_rex64): Ditto.
940         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
941         and eh_return_si insn patterns.
942
943 2008-06-06  Richard Guenther  <rguenther@suse.de>
944
945         * tree-ssa-structalias.c (merge_smts_into): Remove.
946         (find_what_p_points_to): Do not bother to compute the
947         points-to set for pt_anything pointers.
948         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
949         for pt_anything pointers is ok.
950
951 2008-06-06  Jan Hubicka  <jh@suse.cz>
952
953         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
954
955 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
956
957         * cgraph.c: Fix typos in comments.
958         (cgraph_availability_names): Fix string typo.
959         * fold-const.c: Fix typos in comments.
960         (fold_binary): Fix typo in warning.
961         * genautomata.c: Fix typos in comments.
962         (check_presence_pattern_sets): Fix typo in local variable.
963         (output_description): Fix typo in output.
964         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
965         * hwint.h: Likewise.
966         * matrix-reorg.c (check_allocation_function): Likewise.
967         * omega.c (smooth_weird_equations): Likewise.
968         * auto-inc-dec.c: Fix typos in comments.
969         * bb-reorder.c: Likewise.
970         * builtins.c: Likewise.
971         * c-common.c: Likewise.
972         * c-cppbuiltin.c: Likewise.
973         * c-parser.c: Likewise.
974         * c-pretty-print.c: Likewise.
975         * cfgcleanup.c: Likewise.
976         * cfgexpand.c: Likewise.
977         * cfghooks.c: Likewise.
978         * cfglayout.c: Likewise.
979         * cfgloopmanip.c: Likewise.
980         * cgraphunit.c: Likewise.
981         * coverage.c: Likewise.
982         * dbxout.c: Likewise.
983         * df-byte-scan.c: Likewise.
984         * df-core.c: Likewise.
985         * df-problems.c: Likewise.
986         * df-scan.c: Likewise.
987         * dfp.c: Likewise.
988         * dominance.c: Likewise.
989         * domwalk.c: Likewise.
990         * dse.c: Likewise.
991         * dwarf2out.c: Likewise.
992         * emit-rtl.c: Likewise.
993         * et-forest.c: Likewise.
994         * function.c: Likewise.
995         * function.h: Likewise.
996         * gcc.c: Likewise.
997         * gcov-io.c: Likewise.
998         * gcov.c: Likewise.
999         * gcse.c: Likewise.
1000         * genattrtab.c: Likewise.
1001         * ggc-page.c: Likewise.
1002         * gimplify.c: Likewise.
1003         * gthr-lynx.h: Likewise.
1004         * haifa-sched.c: Likewise.
1005         * ipa-cp.c: Likewise.
1006         * ipa-inline.c: Likewise.
1007         * ipa-prop.h: Likewise.
1008         * ipa-pure-const.c: Likewise.
1009         * ipa-struct-reorg.c: Likewise.
1010         * ipa-struct-reorg.h: Likewise.
1011         * ipa-type-escape.c: Likewise.
1012         * ipa.c: Likewise.
1013         * loop-doloop.c: Likewise.
1014         * mips-tfile.c: Likewise.
1015         * mkmap-flat.awk: Likewise.
1016         * mkmap-symver.awk: Likewise.
1017         * modulo-sched.c: Likewise.
1018         * omp-low.c: Likewise.
1019         * optabs.c: Likewise.
1020         * optabs.h: Likewise.
1021         * opts.c: Likewise.
1022         * passes.c: Likewise.
1023         * postreload-gcse.c: Likewise.
1024         * postreload.c: Likewise.
1025         * predict.c: Likewise.
1026         * pretty-print.h: Likewise.
1027         * profile.c: Likewise.
1028         * protoize.c: Likewise.
1029         * ra-conflict.c: Likewise.
1030         * real.c: Likewise.
1031         * recog.c: Likewise.
1032         * regclass.c: Likewise.
1033         * regs.h: Likewise.
1034         * reload.c: Likewise.
1035         * rtl-error.c: Likewise.
1036         * rtlanal.c: Likewise.
1037         * scan.h: Likewise.
1038         * sched-rgn.c: Likewise.
1039         * see.c: Likewise.
1040         * stmt.c: Likewise.
1041         * target.h: Likewise.
1042         * tree-dfa.c: Likewise.
1043         * tree-eh.c: Likewise.
1044         * tree-flow-inline.h: Likewise.
1045         * tree-inline.c: Likewise.
1046         * tree-into-ssa.c: Likewise.
1047         * tree-loop-distribution.c: Likewise.
1048         * tree-nested.c: Likewise.
1049         * tree-parloops.c: Likewise.
1050         * tree-pass.h: Likewise.
1051         * tree-pretty-print.c: Likewise.
1052         * tree-profile.c: Likewise.
1053         * tree-scalar-evolution.c: Likewise.
1054         * tree-sra.c: Likewise.
1055         * tree-ssa-alias-warnings.c: Likewise.
1056         * tree-ssa-ccp.c: Likewise.
1057         * tree-ssa-coalesce.c: Likewise.
1058         * tree-ssa-dom.c: Likewise.
1059         * tree-ssa-dse.c: Likewise.
1060         * tree-ssa-forwprop.c: Likewise.
1061         * tree-ssa-live.c: Likewise.
1062         * tree-ssa-live.h: Likewise.
1063         * tree-ssa-loop-im.c: Likewise.
1064         * tree-ssa-loop-ivopts.c: Likewise.
1065         * tree-ssa-loop-niter.c: Likewise.
1066         * tree-ssa-loop-prefetch.c: Likewise.
1067         * tree-ssa-phiopt.c: Likewise.
1068         * tree-ssa-phiprop.c: Likewise.
1069         * tree-ssa-sccvn.c: Likewise.
1070         * tree-ssa-ter.c: Likewise.
1071         * tree-ssa-threadupdate.c: Likewise.
1072         * tree-ssa.c: Likewise.
1073         * tree-vect-analyze.c: Likewise.
1074         * tree-vect-transform.c: Likewise.
1075         * tree-vectorizer.c: Likewise.
1076         * tree-vn.c: Likewise.
1077         * tree-vrp.c: Likewise.
1078         * tree.c: Likewise.
1079         * tree.def: Likewise.
1080         * tree.h: Likewise.
1081         * unwind-dw2-fde.c: Likewise.
1082         * unwind.inc: Likewise.
1083         * value-prof.c: Likewise.
1084         * vmsdbgout.c: Likewise.
1085
1086 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
1087
1088         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
1089         always place FP constants in the TOC for TARGET_POWERPC64.
1090         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
1091
1092 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
1093
1094         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
1095         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
1096         enable for TARGET_E500_DOUBLE.
1097         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
1098         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
1099         floating-point modes like integer modes for E500 double.
1100         (rs6000_legitimate_offset_address_p): Likewise.
1101         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
1102         addressing for DDmode for E500 double.
1103         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
1104         modes as using 64-bits of registers for E500 double.
1105         (spe_build_register_parallel): Do not handle DDmode or TDmode.
1106         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
1107         specially for E500 double.
1108         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
1109         TDmode for E500 double.
1110         (rs6000_gimplify_va_arg): Only handle SDmode in registers
1111         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
1112         (rs6000_split_multireg_move): Do not handle TDmode specially for
1113         E500 double.
1114         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
1115         using 64-bit registers for E500 double.
1116         (emit_frame_save): Do not handle DDmode specially for E500 double.
1117         (gen_frame_mem_offset): Likewise.
1118         (rs6000_function_value): Do not call spe_build_register_parallel
1119         for DDmode or TDmode.
1120         (rs6000_libcall_value): Likewise.
1121         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
1122         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
1123         for E500 double.
1124
1125 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
1126
1127         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
1128         in comments.
1129
1130 2008-06-04  Junjie Gu <jgu@tensilica.com>
1131
1132         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
1133         comparison for frame pointers.
1134
1135 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
1136
1137         PR target/27386
1138         * config/avr/avr.h (PUSH_ROUNDING): Remove.
1139
1140 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
1141
1142         PR target/30243
1143         * builtins.c (expand_builtin_signbit): Don't take lowpart when
1144         register is already smaller or equal to required mode. 
1145
1146 2008-06-04  Xinliang David Li  <davidxl@google.com>
1147
1148         * tree-call-cdce.c: New file. 
1149         (cond_dead_built_in_calls): New static variable.
1150         (input_domain): New struct.
1151         (check_pow): New function.
1152         (check_builtin_call): Ditto.
1153         (check_target_format): Ditto.
1154         (is_call_dce_candidate): Ditto.
1155         (gen_one_condition): Ditto.
1156         (gen_conditions_for_domain): Ditto.
1157         (get_domain): Ditto.
1158         (gen_conditions_for_pow_cst_base): Ditto.
1159         (gen_conditions_for_pow_int_base): Ditto.
1160         (gen_conditions_for_pow): Ditto.
1161         (get_no_error_domain): Ditto.
1162         (gen_shrink_wrap_conditions): Ditto.
1163         (shrink_wrap_one_built_in_call): Ditto.
1164         (shink_wrap_conditional_dead_built_in_calls): Ditto.
1165         (tree_call_cdce): Ditto.
1166         (gate_call_cdce): Ditto.
1167         (pass_call_cdce): New gimple pass.
1168         * passes.c: (init_optimization_passes): New pass.
1169         * tree-pass.h: New pass declaration.
1170         * opts.c (decode_options): New flag setting.
1171         * common.opt: Add -ftree-builtin-call-dce flag.
1172         * Makefile.in: Add new source file.
1173         * tempvar.def: New tv_id.
1174         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
1175
1176 2008-06-04  Richard Guenther  <rguenther@suse.de>
1177
1178         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
1179         (is_call_clobbered): Always check var_ann->call_clobbered.
1180         (mark_call_clobbered): Always set var_ann->call_clobbered.
1181         (clear_call_clobbered): Always clear var_ann->call_clobbered.
1182         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
1183         (reset_alias_info): Clear call clobbering info on MTAGs and
1184         globals as well.
1185         (set_pt_anything): Set pt_global_mem.
1186         (create_tag_raw): Adjust comment.
1187         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
1188
1189 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
1190             Maxim Kuvyrkov  <maxim@codesourcery.com>
1191
1192         * config/m68k/m68k.opt (mxgot): New option.
1193         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
1194         (m68k_output_addr_const_extra): New.
1195         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
1196         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
1197         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
1198         * doc/invoke.texi (M680x0 Options): Document -mxgot.
1199
1200 2008-06-04  Richard Guenther  <rguenther@suse.de>
1201
1202         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
1203         negative or non-representable offsets.
1204
1205 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
1206
1207         * config/i386/i386.c (ix86_gen_leave): New.
1208         (ix86_gen_pop1): Likewise.
1209         (ix86_gen_add3): Likewise.
1210         (ix86_gen_sub3): Likewise.
1211         (ix86_gen_sub3_carry): Likewise.
1212         (ix86_gen_one_cmpl2): Likewise.
1213         (ix86_gen_monitor): Likewise.
1214         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
1215         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
1216         ix86_gen_one_cmpl2 and ix86_gen_monitor.
1217         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
1218         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
1219         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
1220         (ix86_expand_epilogue): Updated.
1221         (print_operand): Handle integer register operand for 'z'.
1222         (ix86_expand_strlensi_unroll_1): Likewise.
1223         (ix86_expand_strlen): Likewise.
1224         (ix86_expand_builtin): Likewise.
1225         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
1226         mov{q}/mov{l} and add{q}/add{l}.
1227
1228 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
1229
1230         * config/i386/i386.md (P): New mode iterator.
1231         (SFmode push_operand splitter): Macroize DImode and SImode pushes
1232         using P mode iterator.
1233         (DFmode push_operand splitter): Ditto.
1234         (XFmode push_operand splitter): Ditto.
1235         (DFmode float_extend SFmode push_operand splitter): Ditto.
1236         (XFmode float_extend SFmode push_operand splitter): Do not generate
1237         SImode pushes for 64bit target.  Macroize Dimode and SImode
1238         pushes using P mode iterator.
1239         (XFmode float_extend DFmode push_operand splitter): Ditto.
1240
1241 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
1242
1243         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
1244         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
1245         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
1246         return type to int.
1247         (ix86_call_abi_override): Remove check for call_used_regs.
1248
1249 2008-06-03  Richard Guenther  <rguenther@suse.de>
1250
1251         * tree-ssa-structalias.c (find_func_aliases): Add constraints
1252         for the lhs of calls if the return type contains pointers.
1253
1254 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
1255
1256         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
1257         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
1258         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
1259         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
1260         of cfun and DEFAULT_ABI to deceide abi mode.
1261         (DEFAULT_ABI): New.
1262         (REG_PARM_STACK_SPACE): Removed.
1263         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
1264         (STACK_BOUNDARY): Use default target to deceide stack boundary.
1265         * config/i386/i386-protos.h (ix86_cfun_abi): New.
1266         (ix86_function_abi): Likewise.
1267         (ix86_function_type_abi): Likewise.
1268         (ix86_call_abi_override): Likewise.
1269         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
1270         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
1271         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
1272         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
1273         specific defines.
1274         (X86_64_REGPARM_MAX): New.
1275         (X86_64_SSE_REGPARM_MAX): New.
1276         (X64_REGPARM_MAX): New.
1277         (X64_SSE_REGPARM_MAX): New.
1278         (X86_32_REGPARM_MAX): New.
1279         (X86_32_SSE_REGPARM_MAX): New.
1280         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
1281         (ix86_function_regparm): Handle user calling abi.
1282         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
1283         by DEFAULT_ABI versus SYSV_ABI check.
1284         (ix86_reg_parm_stack_space): New.
1285         (ix86_function_type_abi): New.
1286         (ix86_call_abi_override): New.
1287         (ix86_function_abi): New.
1288         (ix86_cfun_abi): New.
1289         (init_cumulative_args): Call abi specific initialization.
1290         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
1291         (function_arg_64): Extend SSE_REGPARM_MAX check.
1292         (function_arg (): Remove TARGET_64BIT_MS_ABI.
1293         (ix86_pass_by_reference): Likewise.
1294         (ix86_function_value_regno_p): Likewise.
1295         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
1296         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
1297         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
1298         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
1299         (setup_incoming_varargs_64): Adjust regparm for call abi.
1300         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
1301         (ix86_va_start): Likewise.
1302         (ix86_gimplify_va_arg): Likewise.
1303         (ix86_expand_prologue): Likewise.
1304         (output_pic_addr_const): Likewise.
1305         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
1306         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
1307         (x86_output_mi_thunk): Likewise.
1308         (x86_function_profiler): Likewise.
1309         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
1310         (SYSV_ABI, MS_ABI): New constants.
1311         (DEFAULT_ABI): New.
1312         (init_regs): Add prototype of function in regclass.c file.
1313         (OVERRIDE_ABI_FORMAT): New.
1314         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
1315         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
1316         (OUTGOING_REG_PARM_STACK_SPACE): New.
1317         (ix86_reg_parm_stack_space): New prototype.
1318         (CUMULATIVE_ARGS): Add call_abi member.
1319         (machine_function): Add call_abi member.
1320         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
1321         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
1322
1323 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
1324
1325         PR target/34879
1326         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
1327         (avr_builtin_setjmp_frame_value): New function.
1328         * config/avr/avr.md (nonlocal_goto_receiver): Define.
1329         (nonlocal_goto): Define.
1330
1331 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
1332
1333         * config/mips/mips.c (mips_emit_loadgp): Return early if
1334         there is nothing do to, otherwise emit a blockage if
1335         !TARGET_EXPLICIT_RELOCS || crtl->profile.
1336         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
1337
1338 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1339
1340         * configure.ac: Drop unneeded backslash ending up in config.in.
1341         * acinclude.m4: Likewise.
1342         * config.in: Regenerate.
1343
1344 2008-05-26  Jan Hubicka  <jh@suse.cz>
1345
1346         * predict.c (maybe_hot_frequency_p): Break out of...
1347         (maybe_hot_bb_p): ... here.
1348         (maybe_hot_edge_p): New.
1349         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
1350         * basic-block.h (maybe_hot_edge_p): Declare.
1351
1352 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
1353
1354         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
1355         (*cmpfp_<mode>_cc): Ditto.
1356         (*fp_jcc_8<mode>_387): Ditto.
1357         (*fop_<MODEF:mode>_2_i387): Ditto.
1358         (*fop_<MODEF:mode>_3_i387): Ditto.
1359         (*fop_xf_2_i387): Ditto.
1360         (*fop_xf_3_i387): Ditto.
1361
1362 2008-06-02  Tomas Bily  <tbily@suse.cz>
1363
1364         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
1365
1366 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
1367
1368         * config/mips/mips.c (mips_valid_offset_p): New function.
1369         (mips_valid_lo_sum_p): Likewise.
1370         (mips_classify_address): Use them.
1371         (mips_force_address): New function.
1372         (mips_legitimize_address): Use it.
1373         * config/mips/mips.md (MOVE128): New mode iterator.
1374         (movtf): Require TARGET_64BIT.  Remove empty strings.
1375         (*movtf_internal): Rename to...
1376         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
1377         of "R" and use {,fp}{load,store} attributes instead of "multi".
1378         Use a separate define_split.
1379         (*movtf_mips16): New pattern.
1380
1381 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
1382
1383         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
1384         * config/mips/mips.c (mips_expand_before_return): New function.
1385         (mips_expand_epilogue): Call it.
1386         * config/mips/mips.md (return): Turn into a define_expand.
1387         (*return): New insn.
1388
1389 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
1390
1391         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
1392         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
1393         functions.  Do not emit uses and clobbers of CONCATs; individually
1394         use and clobber their operands.
1395         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
1396         gen_clobber, emit_use and gen_use.
1397         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
1398         (expand_builtin_return): Likewise.
1399         * cfgbuild.c (count_basic_blocks): Likewise.
1400         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1401         * explow.c (emit_stack_restore): Likewise.
1402         * expmed.c (extract_bit_field_1): Likewise.
1403         * expr.c (convert_move, emit_move_complex_parts): Likewise.
1404         (emit_move_multi_word, store_constructor): Likewise.
1405         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
1406         (thread_prologue_and_epilogue_insns): Likewise.
1407         * lower-subreg.c (resolve_simple_move): Likewise.
1408         * optabs.c (widen_operand, expand_binop): Likewise.
1409         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
1410         * reload.c (find_reloads): Likewise.
1411         * reload1.c (eliminate_regs_in_insn): Likewise.
1412         * stmt.c (expand_nl_goto_receiver): Likewise.
1413         * config/alpha/alpha.md (builtin_longjmp): Likewise.
1414         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
1415         * config/arm/arm.c (arm_load_pic_register): Likewise.
1416         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
1417         * config/arm/arm.md (untyped_return): Likewise.
1418         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
1419         * config/avr/avr.c (expand_prologue): Likewise.
1420         * config/bfin/bfin.c (do_unlink): Likewise.
1421         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
1422         * config/cris/cris.c (cris_expand_prologue): Likewise.
1423         * config/darwin.c (machopic_indirect_data_reference): Likewise.
1424         (machopic_legitimize_pic_address): Likewise.
1425         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
1426         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
1427         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
1428         (ix86_expand_convert_uns_didf_sse): Likewise.
1429         (ix86_expand_vector_init_general): Likewise.
1430         * config/ia64/ia64.md (eh_epilogue): Likewise.
1431         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
1432         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
1433         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
1434         (config/iq2000/iq2000.c): Likewise.
1435         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
1436         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
1437         (builtin_longjmp): Likewise.
1438         * config/mn10300/mn10300.md (call, call_value): Likewise.
1439         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
1440         * config/pdp11/pdp11.md (abshi2): Likewise.
1441         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1442         * config/s390/s390.c (s390_emit_prologue): Likewise.
1443         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
1444         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
1445         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
1446         * config/sh/sh.c (prepare_move_operands): Likewise.
1447         (output_stack_adjust, sh_expand_epilogue): Likewise.
1448         (sh_set_return_address, sh_expand_t_scc): Likewise.
1449         * config/sparc/sparc.c (load_pic_register): Likewise.
1450         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
1451         * config/spu/spu.c (spu_expand_epilogue): Likewise.
1452         * config/v850/v850.c (expand_epilogue): Likewise.
1453
1454 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
1455
1456         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
1457         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
1458         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
1459         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
1460         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
1461         stack pointer register.
1462         (output_movhi): Remove code for interrupt specific writing to the 
1463         stack pointer register.
1464
1465 2008-05-31  Richard Guenther  <rguenther@suse.de>
1466
1467         PR tree-optimization/34244
1468         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
1469         (tree_expr_nonzero_warnv_p): Likewise.
1470         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
1471         ssa_name_nonnegative_p.
1472         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
1473         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
1474         not tree_expr_nonzero_warnv_p.
1475
1476         PR tree-optimization/36262
1477         Revert
1478         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
1479
1480         PR tree-optimization/34244
1481         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
1482         (record_numbers_of_iterations): New function.
1483         (execute_vrp): Cache the numbers of iterations of loops.
1484         * tree-scalar-evolution.c (scev_reset_except_niters):
1485         New function.
1486         (scev_reset): Use scev_reset_except_niters.
1487         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
1488
1489 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
1490
1491         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1492         __WORKAROUND_RETS when appropriate.
1493
1494 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
1495
1496         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
1497         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
1498         mode iterator.
1499         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
1500         *fop_df_comm_sse insn patterns using MODEF mode iterator.
1501         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
1502         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
1503         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
1504         *fop_df_1_mixed insn patterns using MODEF mode iterator.
1505         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
1506         *fop_df_1_sse insn patterns using MODEF mode iterator.
1507         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
1508         *fop_df_1_i387 insn patterns using MODEF mode iterator.
1509         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
1510         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
1511         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
1512         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
1513         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
1514         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
1515         (*fop_xf_4_i387): Use <MODE> for mode attribute.
1516         (*fop_xf_5_i387): Ditto.
1517         (*fop_xf_6_i387): Ditto.
1518
1519 2008-05-30  Richard Guenther  <rguenther@suse.de>
1520
1521         * builtins.c (build_string_literal): Avoid generating
1522         a non-gimple_val result.
1523
1524 2008-05-30  DJ Delorie  <dj@redhat.com>
1525
1526         * exec-tool.in: Use an environment variable (private) instead of a
1527         file (shared) as a semaphore, so as to not break parallel builds.
1528
1529 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
1530
1531         * optabs.c (maybe_encapsulate_block): Remove.
1532         (emit_libcall_block): Adjust accordingly.
1533         * optabs.h (maybe_encapsulate_block): Remove prototype.
1534
1535         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
1536         Don't use maybe_encapsulate_block.
1537
1538 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
1539
1540         * config/rs6000/rs6000.c (rs6000_legitimize_address,
1541         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
1542         rtx is a SYMBOL_REF before calling get_pool_constant.
1543
1544 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
1545
1546         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
1547
1548 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
1549
1550         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
1551         rather than OS names to choose INO_T_EQ definition.
1552         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
1553         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
1554
1555 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
1556
1557         PR target/36348
1558         * config/darwin-f.c: New.
1559         * config/t-darwin: Added rule to build darwin-f.o.
1560         * config.gcc: Defined new variable, fortran_target_objs.
1561         (*-*-darwin*): Set fortran_target_objs.
1562         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
1563         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
1564         * configure: Regenerated.
1565
1566 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1567
1568         PR target/35771
1569         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
1570         canonical type if needed.
1571
1572 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
1573
1574         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
1575
1576 2008-05-29  Richard Guenther  <rguenther@suse.de>
1577
1578         PR tree-optimization/36343
1579         PR tree-optimization/36346
1580         PR tree-optimization/36347
1581         * tree-flow.h (clobber_what_p_points_to): Declare.
1582         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
1583         pointed-to variable is dereferenced is irrelevant to whether
1584         the pointer can access the pointed-to variable.
1585         (clobber_what_p_points_to): New function.
1586         * tree-ssa-alias.c (set_initial_properties): Use it.
1587         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
1588         call clobber check for NMTs.
1589
1590 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
1591         
1592         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
1593         for printing gcov_type.
1594
1595 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
1596
1597         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
1598         and the eh region information.
1599         * value-prof.c (gimple_move_stmt_histograms): New function.
1600         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
1601
1602 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
1603
1604         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
1605
1606 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
1607
1608         * value-prof.c (tree_ic_transform): Print counts.
1609         * tree-profile.c (tree_gen_ic_func_profiler):
1610         Clear __gcov_indreict_call_callee variable to avoid misattribution
1611         of the profile.
1612
1613 2008-05-28  Rafael Espindola  <espindola@google.com>
1614
1615         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
1616         invalid sharing.
1617
1618 2008-05-28  Richard Guenther  <rguenther@suse.de>
1619
1620         PR tree-optimization/36339
1621         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
1622         and clobbering code out of the loop.
1623
1624 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
1625
1626         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
1627         letters defined.
1628
1629         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
1630         s390_contiguous_bitmask_p, s390_symref_operand_p,
1631         s390_check_symref_alignment, s390_reload_larl_operand,
1632         s390_reload_symref_address): New functions.
1633         (s390_branch_condition_mnemonic): Support compare and branch
1634         instructions.
1635         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
1636         and 'W' constraints.
1637         (s390_secondary_reload): Add secondary reloads for unaligned
1638         symbol refs or symbol refs to floating point or QI/TI mode
1639         integer values.
1640         (legitimate_address_p): Accept symbol references as addresses.
1641         (s390_expand_insv): Use rotate and insert selected bits
1642         instruction for insv when building for z10.
1643         (print_operand_address): Handle symbol ref addresses.
1644         (print_operand): Output modifier 'c' added for signed byte values.
1645         (s390_encode_section_info): Mark symbol refs with
1646         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
1647
1648         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
1649         (length attribute): RRF, RRR have 4 byte length.
1650         (FPALL, INTALL): New mode iterators added.
1651         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
1652         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
1653         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
1654         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
1655         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
1656         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
1657         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
1658         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
1659         instructions.
1660         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
1661         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
1662         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
1663         reload<INTALL:mode><P:mode>_toreg_z10,
1664         reload<FPALL:mode><P:mode>_tomem_z10,
1665         reload<FPALL:mode><P:mode>_toreg_z10,
1666         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
1667         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
1668         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
1669         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
1670         definition.
1671         (movmem, clrmem, cmpmem): New splitters added.
1672
1673         * config/s390/predicates.md (larl_operand): Use
1674         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
1675         SYMBOL_REF_ALIGN1_P.
1676         (s390_signed_integer_comparison,
1677         s390_unsigned_integer_comparison): New predicates.
1678
1679         * config/s390/s390-protos.h (s390_check_symref_alignment,
1680         s390_contiguous_bitmask_p, s390_reload_larl_operand,
1681         s390_reload_symref_address,
1682         s390_compare_and_branch_condition_mask): Prototypes added.
1683
1684         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
1685         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
1686         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
1687
1688 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
1689
1690         * config/s390/s390.c (z10_cost): New cost function for z10.
1691         (s390_handle_arch_option, override_options): Support -march=z10 switch.
1692         (s390_issue_rate): Adjust issue rate for z10.
1693         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
1694         (processor_flags): Add PF_Z10.
1695         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
1696         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
1697         * gcc/config.gcc: Add z10.
1698
1699 2008-05-28  Richard Guenther  <rguenther@suse.de>
1700
1701         PR tree-optimization/36291
1702         * tree-flow. h (struct gimple_df): Remove var_anns member.
1703         * tree-flow-inline.h (gimple_var_anns): Remove.
1704         (var_ann): Simplify.
1705         * tree-dfa.c (create_var_ann): Simplify.
1706         (remove_referenced_var): Clear alias info from var_anns of globals.
1707         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
1708         (delete_tree_ssa): Clear alias info from var_anns of globals.
1709         Do not free var_anns.
1710         (var_ann_eq): Remove.
1711         (var_ann_hash): Likewise.
1712
1713 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
1714
1715         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
1716         and loongson2f entries.
1717         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
1718         * config/mips/mips.h (processor_type): Add Loongson-2E
1719         and Loongson-2F entries.
1720         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
1721         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
1722         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
1723         * doc/invoke.texi (MIPS Options): Document loongson2e
1724         and loongson2f processor names.
1725
1726 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1727
1728         PR target/35767
1729         PR target/35771
1730         * config/i386/i386.c (ix86_function_arg_boundary): Use
1731         alignment of canonical type.
1732         (ix86_expand_vector_move): Check unaligned memory access for
1733         all SSE modes.
1734
1735 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1736
1737         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
1738         Moved to the front of file.
1739
1740 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
1741             H.J. Lu  <hongjiu.lu@intel.com>
1742
1743         * dwarf2out.c (current_fde): New.
1744         (add_cfi): Use it.
1745         (lookup_cfa:): Likewise.
1746         (dwarf2out_end_epilogue): Likewise.
1747         (dwarf2out_note_section_used): Likewise.
1748
1749 2008-05-27  Michael Matz  <matz@suse.de>
1750
1751         PR c++/27975
1752         * c.opt (Wenum-compare): New warning option.
1753         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
1754
1755 2008-05-27  Michael Matz  <matz@suse.de>
1756
1757         PR middle-end/36326
1758         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
1759         non-BLKmode types.
1760         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
1761         into memory as tail calls.
1762
1763 2008-05-27  Richard Guenther  <rguenther@suse.de>
1764
1765         PR tree-optimization/36339
1766         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
1767         pointers cause all addressable variables to be call clobbered.
1768
1769 2008-05-27  Richard Guenther  <rguenther@suse.de>
1770
1771         PR tree-optimization/36245
1772         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
1773
1774 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
1775
1776         * config/s390/s390.md: Replace all occurences of the 'm'
1777         constraint with 'RT'.
1778
1779 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
1780
1781         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
1782         definitions added.
1783         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
1784         "*movdi_64".
1785         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
1786         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
1787         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
1788
1789 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
1790
1791         * reload.c: (find_reloads): Skip alternatives according to the
1792         "enabled" attribute. Constify the constraint variable.
1793         * recog.c (get_attr_enabled): Add default implementation.
1794         (extract_insn): Set the alternative_enabled_p array
1795         in the recog_data struct.
1796         (preprocess_constraints, constrain_operands): Skip
1797         alternatives according to the "enabled" attribute
1798         * recog.h (struct recog_data): New field alternative_enabled_p.
1799         (skip_alternative): New inline function.
1800         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
1801         (record_reg_classes): Skip alternative according to the
1802         "enabled" attribute.
1803
1804         * doc/md.texi: Add documention for the "enabled" attribute.
1805
1806 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
1807
1808         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
1809         * postreload.c (reload_cse_simplify_operands): Replace 'm'
1810         constraint with TARGET_MEM_CONSTRAINT.
1811         * recog.c (asm_operand_ok, preprocess_constraints,
1812         constrain_operands): Likewise.
1813         * regclass.c (record_reg_classes): Likewise.
1814         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
1815         * reload1.c (maybe_fix_stack_asms): Likewise.
1816         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
1817         * recog.h: Adjust comment.
1818         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
1819         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
1820         * doc/md.texi: Add a note to description of 'm' constraint.
1821         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
1822
1823 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
1824
1825         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
1826         that the bitfield is of integral type before testing its precision.
1827
1828 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1829             Sa Liu  <saliu@de.ibm.com> 
1830
1831         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
1832         __modti3, __udivti3, __umodti3 and __udivmodti4.
1833         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
1834         that implement TImode mul and div functions.
1835         * config/spu/multi3.c: New. Implement __multi3.
1836         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
1837         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
1838         functions on SPU.
1839
1840 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
1841
1842         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
1843         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
1844         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
1845         tls_sysv_suffix): New mode and mode attribute iterators.
1846         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
1847         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
1848         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
1849         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
1850         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
1851         iterators.
1852
1853 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
1854
1855         PR tree-optimization/36329
1856         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
1857         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
1858         * cgraphbuild.c (initialize_inline_failed): Use the latter
1859         macro in lieu of the former.
1860         * ipa-inline.c (cgraph_mark_inline): Likewise.
1861         (cgraph_decide_inlining_of_small_function): Likewise.
1862         (cgraph_decide_inlining): Likewise.
1863         (cgraph_decide_inlining_incrementally): Likewise.
1864
1865 2008-05-26  Tristan Gingold  <gingold@adacore.com>
1866             Anatoly Sokolov  <aesok@post.ru>
1867
1868         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
1869         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
1870         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
1871         optimization for 'avr6' architecture.
1872
1873 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
1874
1875         PR target/34932
1876         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
1877
1878 2008-05-26  Richard Guenther  <rguenther@suse.de>
1879
1880         * tree-ssa-sccvn.c (expr_has_constants): Declare.
1881         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
1882
1883 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
1884
1885         PR middle-end/36253
1886         * caller-save.c (insert_restore): Verify alignment of spill space.
1887         (insert_save): Likewise.
1888         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
1889         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
1890         (STACK_SLOT_ALIGNMENT): Likewise.
1891         * function.c (LOCAL_ALIGNMENT): Removed.
1892         (get_stack_local_alignment): New.
1893         (assign_stack_local): Use it.  Set alignment on stack slot.
1894         (assign_stack_temp_for_type): Use get_stack_local_alignment.
1895         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
1896         (STACK_SLOT_ALIGNMENT): New.
1897         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
1898         stack slot in XFmode.
1899
1900         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
1901
1902 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
1903
1904         PR/36321
1905         * config/i386/i386.md (allocate_stack_worker_64): Make sure
1906         argument operand in rax isn't removed.
1907
1908 2008-05-26  Richard Guenther  <rguenther@suse.de>
1909
1910         PR middle-end/36300
1911         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
1912         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
1913
1914 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
1915
1916         PR bootstrap/36331
1917         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
1918
1919 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
1920
1921         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
1922         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
1923
1924 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1925
1926         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
1927         build a trampoline if we don't want one.
1928         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
1929         return zero for nested functions if we don't want a trampoline.
1930
1931 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
1932
1933         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
1934
1935 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
1936
1937         PR fortran/18428
1938         * c.opt: Removed undocumented option '-lang-fortran'.
1939         * c-common.h: Removed global variable 'lang_fortran'.
1940         * c-opts.c (c_common_handle_option): Removed code to handle
1941         option '-lang-fortran'. Updated includes.
1942         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
1943         definition of '__GFORTRAN__'.
1944         (define__GNUC__): Reimplemented to use BASEVER and
1945         cpp_define_formatted.
1946         (builtin_define_with_value_n): Removed.
1947         * c-incpath.h: Renamed to ...
1948         * incpath.h: ... this.
1949         * c-incpath.c: Renamed to ...
1950         * incpath.c: ... this. Updated includes.
1951         * fix-header.c: Updated includes.
1952         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
1953         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
1954         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
1955
1956 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1957
1958         * tree.h: Update the table of flags used on tree nodes.
1959         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
1960         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
1961         (FORCED_LABEL): Add access check.
1962         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
1963         (ASM_INPUT_P): Likewise.
1964         (ASM_VOLATILE_P): Likewise.
1965         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
1966         (OMP_SECTION_LAST): Access private_flag directly.
1967         (OMP_RETURN_NOWAIT): Likewise.
1968         (OMP_PARALLEL_COMBINED): Likewise.
1969         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
1970         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
1971         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
1972         deprecated_flag directly.
1973
1974 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1975
1976         * final.c (frame_pointer_needed): Removed.
1977         * flags.h (frame_pointer_needed): Likewise.
1978
1979         * function.h (rtl_data): Add frame_pointer_needed.
1980         (frame_pointer_needed): New.
1981
1982 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
1983
1984         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
1985
1986 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
1987
1988         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
1989         SRC is a REG.
1990
1991 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
1992
1993         * c-common.c (strip_array_types): Move function to..
1994         * tree.c: ..here.
1995         (get_inner_array_type): Delete.
1996         * c-common.h (strip_array_types): Move declaration to..
1997         * tree.h: ..here.
1998         (get_inner_array_type): Delete.
1999         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
2000         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
2001         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
2002         * config/pa/pa.c (emit_move_sequence): Likewise.
2003
2004 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2005
2006         * config/i386/i386.md (*sse_prologue_save_insn): Set length
2007         attribute to 34.
2008
2009 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
2010
2011         * function.c: Include target hook for nonlocal_goto frame value.
2012
2013 2008-05-24  Richard Guenther  <rguenther@suse.de>
2014
2015         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
2016         variable can be only accessed through a pointer or a union.
2017
2018 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2019
2020         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
2021         * doc/extend.texi: Likewise.
2022
2023 2008-05-23  DJ Delorie  <dj@redhat.com>
2024
2025         * config/m32c/jump.md (untyped_call): Add.
2026
2027         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
2028         for A24 to PSImode.
2029         (m32c_address_cost): Detail costs for indirect offsets.
2030
2031 2008-05-23  Rafael Espindola  <espindola@google.com>
2032
2033         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
2034         if a node is a SUBREG.
2035         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
2036         is a SUBREG.
2037
2038 2008-05-23  Paul Brook  <paul@codesourcery.com>
2039             Carlos O'Donell  <carlos@codesourcery.com>
2040
2041         * doc/extend.texi: Clarify use of __attribute__((naked)).
2042         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
2043         * target.h (gcc_target): Add allocate_stack_slots_for_args.
2044         * function.c (use_register_for_decl): Use
2045         targetm.calls.allocate_stack_slots_for_args.
2046         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
2047         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
2048         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
2049
2050 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2051
2052         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
2053
2054 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
2055
2056         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
2057         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
2058         is only rounded once.
2059
2060 2008-05-23  Richard Guenther  <rguenther@suse.de>
2061
2062         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
2063
2064 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
2065             Jakub Jelinek  <jakub@redhat.com>
2066
2067         PR target/36079
2068         * configure.ac: Handle --enable-cld.
2069         * configure: Regenerated.
2070         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
2071         * config/i386/i386.h (struct machine_function): Add needs_cld field.
2072         (ix86_current_function_needs_cld): New define.
2073         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
2074         (cld): New isns pattern.
2075         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
2076         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
2077         * config/i386/i386.opt (mcld): New option.
2078         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
2079         TARGET_CLD and ix86_current_function_needs_cld.
2080         (override_options): Use -mcld by default for 32-bit code if
2081         USE_IX86_CLD.
2082
2083         * doc/install.texi (Options specification): Document --enable-cld.
2084         * doc/invoke.texi (Machine Dependent Options)
2085         [i386 and x86-64 Options]: Add -mcld option.
2086         (Intel 386 and AMD x86-64 Options): Document -mcld option.
2087
2088 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
2089         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
2090         (return_in_memory_64): Likewise.
2091         (return_in_memory_ms_64): Likewise.
2092
2093 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2094
2095         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
2096         * builtins.c (fold_builtin_fpclassify): New.
2097         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
2098         * builtins.def (BUILT_IN_FPCLASSIFY): New.
2099         * c-common.c (handle_type_generic_attribute): Adjust to accept
2100         fixed arguments before an elipsis.
2101         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
2102         * doc/extend.texi: Document __builtin_fpclassify.
2103
2104 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
2105
2106         * omp-low.c (gate_expand_omp_ssa): Remove.
2107         (pass_expand_omp_ssa): Remove.
2108         (gate_expand_omp): Do not check for flag_openmp_ssa.
2109         * common.opt (-fopenmp-ssa): Remove.
2110         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
2111
2112 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
2113
2114         * config/sh/sh.opt (mfixed-range): New option.
2115         * config/sh/sh-protos.h (sh_fix_range): Declare.
2116         * config/sh/sh.c (sh_fix_range): New function.
2117         * config/sh/sh.h (sh_fixed_range_str): Declare.
2118         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
2119         is not empty.
2120         * doc/invoke.texi (SH Options): Document -mfixed-range.
2121
2122 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
2123
2124         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
2125         it before the redeclaration.
2126
2127 2008-05-22  Anatoly Sokolov <aesok@post.ru>
2128
2129         * config/avr/avr.c (get_sequence_length): Add new function.
2130         (expand_prologue, expand_epilogue): Remove duplicate code.
2131
2132 2008-05-22  Rafael Espindola  <espindola@google.com>
2133
2134         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
2135         sharing.
2136
2137 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2138
2139         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
2140         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
2141
2142         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
2143         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
2144         (vect_update_misalignment_for_peel): Likewise.
2145         (vector_alignment_reachable_p): Likewise.
2146         * tree-vect-transform.c (vectorizable_load): Likewise.
2147         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
2148         (get_vectype_for_scalar_type): Pass mode of scalar_type
2149         to UNITS_PER_SIMD_WORD.
2150
2151         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
2152         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
2153         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
2154         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
2155         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
2156
2157 2008-05-22  Ira Rosen  <irar@il.ibm.com>
2158
2159         PR tree-optimization/36293
2160         * tree-vect-transform.c (vect_transform_strided_load): Don't check
2161         if the first load must be skipped because of a gap.
2162
2163 2008-05-22  Richard Guenther  <rguenther@suse.de>
2164
2165         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
2166         more cases of offset disambiguation that is possible if
2167         strict-aliasing rules apply.
2168         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
2169         for basic offset and type-based disambiguation.
2170
2171 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2172
2173         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
2174         ix86_expand_vector_set on V16QImode for SSE4.1.
2175
2176 2008-05-21  Tom Tromey  <tromey@redhat.com>
2177
2178         * c.opt (Wimport): Mark as undocumented.
2179         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
2180         -Wno-import.
2181         (Warning Options): Likewise.
2182         * doc/cppopts.texi: Don't mention -Wimport.
2183
2184 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
2185
2186         PR tree-optimization/36287
2187         PR tree-optimization/36286
2188         * lambda-code.c (build_access_matrix): Do not use the loop->num
2189         for computing the number of induction variables: use the loop depth
2190         instead.
2191
2192 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
2193
2194         PR/36280
2195         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
2196         option -f(no-)leading-underscore.
2197
2198 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2199
2200         * config/i386/i386.c (ix86_expand_vector_init_general): Use
2201         GET_MODE_NUNITS (mode).
2202
2203 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
2204
2205         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
2206         (-mmulhw): Add 464 to description.
2207         (-mdlmzb): Likewise.
2208         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
2209         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
2210         464fp entries.
2211         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
2212         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
2213         * config/rs6000/rs6000.md: Update comments for 464.
2214
2215 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
2216
2217         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
2218
2219 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2220
2221         * config/i386/sse.md (vec_extractv4sf): Removed.
2222         (vec_extractv2df): Likewise.
2223         (vec_extractv2di): Likewise.
2224         (vec_extractv4si): Likewise.
2225         (vec_extractv8hi): Likewise.
2226         (vec_extractv16qi): Likewise.
2227         (vec_extract<mode>): New.
2228
2229 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2230
2231         * config/i386/sse.md (vec_setv4sf): Removed.
2232         (vec_setv2df): Likewise.
2233         (vec_setv2di): Likewise.
2234         (vec_setv4si): Likewise.
2235         (vec_setv8hi): Likewise.
2236         (vec_setv16qi): Likewise.
2237         (vec_set<mode>): New.
2238
2239 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2240
2241         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
2242         goto for vec_concat and vec_interleave.
2243
2244 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2245
2246         * config/i386/sse.md (vec_initv4sf): Removed.
2247         (vec_initv2df): Likewise.
2248         (vec_initv2di): Likewise.
2249         (vec_initv4si): Likewise.
2250         (vec_initv8hi): Likewise.
2251         (vec_initv16qi): Likewise.
2252         (vec_init<mode>): New.
2253
2254 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
2255
2256         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
2257
2258 2008-05-21  Tom Tromey  <tromey@redhat.com>
2259
2260         * ggc-zone.c (lookup_page_table_if_allocated): New function.
2261         (zone_find_object_offset): Likewise.
2262         (gt_ggc_m_S): Likewise.
2263         (highest_bit): Likewise.
2264         * ggc-page.c (gt_ggc_m_S): New function.
2265         * stringpool.c (string_stack): Remove.
2266         (init_stringpool): Update.
2267         (ggc_alloc_string): Use ggc_alloc.
2268         (maybe_delete_ident): New function.
2269         (ggc_purge_stringpool): Likewise.
2270         (gt_ggc_m_S): Remove.
2271         * ggc-common.c (ggc_protect_identifiers): New global.
2272         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
2273         ggc_protect_identifiers.
2274         * ggc.h (ggc_protect_identifiers): Declare.
2275         (gt_ggc_m_S): Update.
2276         (ggc_purge_stringpool): Declare.
2277         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
2278         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
2279         special case.
2280         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
2281
2282 2008-05-21  David S. Miller  <davem@davemloft.net>
2283
2284         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
2285         tmake_file.
2286
2287 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2288
2289         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
2290         once finished.
2291
2292 2008-05-20  David Daney  <ddaney@avtrex.com>
2293
2294         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
2295         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
2296         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
2297         UNSPEC_UPDATE_GOT_VERSION): Renumber.
2298         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
2299         (atomic_hiqi_op): New define_code_iterator.
2300         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
2301         mips_expand_compare_and_swap_12.
2302         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
2303         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
2304         (sync_<optab><mode>, sync_old_<optab><mode>,
2305         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
2306         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
2307         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
2308         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
2309         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
2310         (test_and_set_12): New insn.
2311         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
2312         sync_new_<optab><mode>, sync_old_nand<mode>,
2313         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
2314         clobber to operand 0 for SI and DI mode insns.
2315         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
2316         mips_gen_fn_4): New typedefs.
2317         (mips_gen_fn_ptrs): Define new union type.
2318         (mips_expand_compare_and_swap_12): Remove declaration.
2319         (mips_expand_atomic_qihi): Declare function.
2320         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
2321         (mips_expand_atomic_qihi): ... this.  Use new generator function
2322         parameter.
2323         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
2324         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
2325         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
2326         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
2327         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
2328         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
2329         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
2330         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
2331         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
2332         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
2333         New macros.
2334
2335 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2336
2337         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
2338         the missing break.
2339
2340 2008-05-20  Anatoly Sokolov <aesok@post.ru>
2341
2342         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
2343         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
2344         (avr_attribute_table): Add 'OS_main' function attribute.
2345         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
2346         functions with 'OS_main' attribute.
2347
2348 2008-05-20  Richard Guenther  <rguenther@suse.de>
2349
2350         PR tree-optimization/35204
2351         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
2352         helper, split out from ...
2353         (DFS): ... here.  Make the DFS walk non-recursive.
2354
2355 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
2356             Jan Sjodin  <jan.sjodin@amd.com>
2357
2358         PR tree-optimization/36181
2359         * tree-parloops.c (loop_has_vector_phi_nodes): New.
2360         (parallelize_loops): Don't parallelize when the loop has vector
2361         phi nodes.
2362
2363 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
2364             Sebastian Pop  <sebastian.pop@amd.com>
2365
2366         * tree-loop-linear.c (gather_interchange_stats): Look in the access
2367         matrix, and never look at the tree representation of the memory
2368         accesses.
2369         (linear_transform_loops): Computes parameters and access matrices.
2370         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
2371         when fails.
2372         (access_matrix_get_index_for_parameter): New.
2373         * tree-data-ref.h (struct access_matrix): New.
2374         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
2375         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
2376         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
2377         am_vector_index_for_loop): New.
2378         (struct data_reference): Add field access_matrix.
2379         (DR_ACCESS_MATRIX): New.
2380         (compute_data_dependences_for_loop): Update declaration.
2381         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
2382         * lambda.h (lambda_vector_vec_p): Declared.
2383         * lambda-code.c: Depend on pointer-set.h.
2384         (lambda_collect_parameters_from_af, lambda_collect_parameters,
2385         av_for_af_base, av_for_af, build_access_matrix,
2386         lambda_compute_access_matrices): New.
2387         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
2388
2389 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
2390
2391         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
2392         $SOURCEDIR/include.
2393
2394 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
2395             Sebastian Pop  <sebastian.pop@amd.com>
2396
2397         PR tree-optimization/36206
2398         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
2399         FOLD_CONVERSIONS.
2400         (instantiate_scev_1): Rename flags to fold_conversions.
2401         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
2402         outeside instantiation_loop.
2403         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
2404         (evolution_function_is_affine_or_constant_p): Removed.
2405         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
2406         instantiate_scev.
2407         (analyze_siv_subscript): Pass in the loop nest number.
2408         Call evolution_function_is_affine_in_loop instead of 
2409         evolution_function_is_affine_p.
2410         (analyze_overlapping_iterations): Pass in the loop nest number.
2411
2412 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
2413             Sebastian Pop  <sebastian.pop@amd.com>
2414
2415         PR tree-optimization/36206
2416         * tree-chrec.h (chrec_fold_op): New.
2417         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
2418         and other trees.
2419
2420 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
2421
2422         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
2423         (DIRS_EQ): New.
2424         (remove_duplicates): Do not set inode on non-inode systems.
2425         Use DIRS_EQ.
2426
2427 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
2428
2429         * config.gcc (tm_file): Update comments about relative pathnames.
2430
2431 2008-05-20  Richard Guenther  <rguenther@suse.de>
2432
2433         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
2434         * tree-ssa-sccvn.c (process_scc): Likewise.
2435         * tree-ssa-sink.c (execute_sink_code): Likewise.
2436         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2437         * tree-vrp.c (process_assert_insertions): Likewise.
2438         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
2439         (perform_tree_ssa_dce): Likewise.
2440         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2441         (dump_dominator_optimization_stats): Likewise.
2442         * tree-vectorizer.c (vectorize_loops): Likewise.
2443
2444 2008-05-20  Richard Guenther  <rguenther@suse.de>
2445
2446         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
2447
2448 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
2449
2450         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
2451         (ix86_i386elf_return_in_memory): Likewise.
2452         (ix86_i386interix_return_in_memory): Likewise.
2453         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
2454         (SUBTARGET_RETURN_IN_MEMORY): New.
2455         * config/i386/i386elf.h: Likewise.
2456         * config/i386/ptx4-i.h: Likewise.
2457         * config/i386/sol2-10.h: Likewise.
2458         * config/i386/sysv4.h: Likewise.
2459         * config/i386/vx-common.h: Likewise.
2460         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
2461         * config/i386/i386.c (ix86_return_in_memory): Made static and
2462         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
2463         (ix86_i386elf_return_in_memory): Removed.
2464         (ix86_i386interix_return_in_memory): Removed.
2465         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
2466         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
2467
2468 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
2469
2470         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
2471
2472 2008-05-19  Xinliang David Li  <davidxl@google.com>
2473
2474         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
2475         * opts.c: Ditto.
2476         * common.opt: Ditto.
2477         * doc/invoke.texi: Ditto.
2478
2479 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
2480
2481         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
2482         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
2483
2484 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2485
2486         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
2487         sizes of operand array from 8/4 to 4/2.
2488         (ix86_expand_vector_init_general): Change size of operand array
2489         from 32 to 16.  Remove op0, op1 and half_mode.
2490
2491 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2492
2493         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
2494         (ix86_expand_vector_init_interleave): Likewise.
2495         (ix86_expand_vector_init_general): Use them.  Assert
2496         word_mode == SImode when n_words == 4.
2497
2498 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
2499
2500         * config/i386/i386.c (ix86_secondary_reload): New static function.
2501         (TARGET_SECONDARY_RELOAD): New define.
2502         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
2503         * config/i386/i386.md (reload_outqi): Remove.
2504
2505 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2506
2507         PR middle-end/35509
2508         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
2509         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
2510         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
2511         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
2512         (fold_builtin_1): Likewise.
2513         * builtins.def (BUILT_IN_ISINF_SIGN): New.
2514         c-common.c (check_builtin_function_arguments): Handle
2515         BUILT_IN_ISINF_SIGN.
2516         * doc/extend.texi: Document __builtin_isinf_sign.
2517         * fold-const.c (operand_equal_p): Handle COND_EXPR.
2518
2519 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
2520
2521         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
2522         EH cleanup at the end of the pass, search for those that have been
2523         turned into forwarder blocks and do the cleanup on their successor.
2524
2525 2008-05-18  Richard Guenther  <rguenther@suse.de>
2526
2527         * tree-cfg.c (verify_gimple_expr): Allow conversions from
2528         pointers to sizetype and vice versa.
2529
2530 2008-05-18 Xinliang David Li   <davidxl@google.com>
2531
2532         * gcc/tree-ssa-dce.c: Coding style fix.
2533         (check_pow): Documentation comment. 
2534         (check_log): Documenation comment. Coding style fix.
2535         (is_unnecessary_except_errno_call): Ditto.
2536         (gen_conditions_for_pow): Ditto.
2537         (gen_conditions_for_log): Ditto.
2538         (gen_shrink_wrap_conditions): Ditto.
2539         (shrink_wrap_one_built_in_calls): Ditto.
2540         * gcc/doc/invoke.texi: Better documentation string.
2541         * ChangeLog: Fix wrong change log entries from 
2542         May 17 checkin on function call DCE.
2543
2544 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
2545
2546         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
2547
2548 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
2549
2550         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
2551         * df-problems.c (simulation routines): Fixed block comment to
2552         properly say how to add forwards scanning functions.
2553         
2554 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
2555
2556         * tree-inline.c (setup_one_parameter): Remove dead code.
2557
2558 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
2559
2560         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
2561         a BIT_AND_EXPR only for an INTEGER_TYPE.
2562
2563 2008-05-17 Xinliang David Li   <davidxl@google.com>
2564
2565         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
2566         (check_pow, check_log, is_unnecessary_except_errno_call): New 
2567         functions to check for eliminating math functions that are pure 
2568         except for setting errno.
2569         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
2570         general condition expressions for shrink-wrapping pow/log calls.
2571         (gen_shrink_wrap_conditions): Ditto.
2572         (shrink_wrap_one_built_in_call): Ditto.
2573         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
2574         (mark_operand_necessary): If debugging, output if OP is necessary.
2575         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
2576         unnecessary.
2577         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
2578         opt level >= 2.
2579         * gcc/common.opt: New user flag -ftree-builtin-dce.
2580         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
2581
2582 2008-05-16  David S. Miller  <davem@davemloft.net>
2583
2584         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
2585         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
2586
2587 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
2588
2589         PR target/36246
2590         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
2591
2592 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
2593
2594         * ifcvt.c (dead_or_predicable): Rename
2595         df_simulate_one_insn_backwards to df_simulate_one_insn.
2596         * recog.c (peephole2_optimize): Ditto.
2597         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
2598         Ditto.
2599         * df.h: Rename df_simulate_one_insn_backwards to
2600         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
2601         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
2602         scanning of defs and uses.
2603         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
2604         (df_simulate_one_insn_forwards): Removed.
2605
2606 2008-05-16  Doug Kwan  <dougkwan@google.com>
2607
2608         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
2609         QNaN & SNaN.
2610         (real_from_string): Handle NaNs and Inf as approriate.
2611
2612 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
2613
2614         * doc/gty.texi (Source Files Containing Type Information): Note
2615         that headers should appear first in the gtfiles list.
2616
2617 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
2618
2619         * tree.def (COND_EXEC): Properly documented this code.
2620
2621 2008-05-16  Diego Novillo  <dnovillo@google.com>
2622
2623         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
2624         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
2625         the new field.
2626
2627 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
2628
2629         * tree-ssa-dse (max_stmt_uid): Removed.
2630         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
2631         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
2632         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
2633         * function.h (cfun.last_stmt_uid): New field.
2634         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
2635         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
2636         New functions.
2637         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
2638         (create_stmt_ann): Initialize the ann->uid field.
2639         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
2640         with new calls.
2641         * tree-flow.h (renumber_gimple_stmt_uids): New function.
2642
2643 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
2644
2645         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
2646         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
2647         (init_empty_tree_cfg): Call it.
2648
2649 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
2650
2651         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
2652         Update all users.
2653
2654 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
2655
2656         * doc/invoke.text (-fdump-tree-*-verbose): New option.
2657         * tree-dump.c (dump_options): New verbose option.
2658         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
2659         Add verbose dump.
2660         * tree-pass.h (TDF_VERBOSE): New dump flag.
2661         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
2662         (tree-flow.h): Added include.
2663         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
2664
2665 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
2666
2667         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
2668
2669         From Jie Zhang  <jie.zhang@analog.com>
2670         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2671         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
2672         mcpu=bf561-none and mcpu=bf561-0.2.
2673         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2674         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2675         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2676         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2677         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
2678         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
2679         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
2680         option.
2681         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
2682         (cputype_selected): Remove.
2683         (bfin_handle_option): Don't use cputype_selected.
2684         (override_options): When no mcpu option, enable all workarounds.
2685         Don't use bfin_workarounds.
2686         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
2687         processor type.
2688         (DEFAULT_CPU_TYPE): Don't define.
2689
2690 2008-05-16  Richard Guenther  <rguenther@suse.de>
2691
2692         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
2693         on deletion of the last stmt.
2694
2695 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2696
2697         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
2698         V8HImode for SSE2 and V16QImode for SSE4.1.
2699
2700 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
2701
2702         * cgraph.h (compute_inline_parameters): Made public.
2703         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
2704         variable_generate_summary, function_write_summary,
2705         variable_write_summary, variable_read_summary.  Added generate_summary,
2706         write_summary, read_summary.
2707         * cgraphunit.c (cgraph_process_new_functions): Changed call from
2708         pass_ipa_inline.function_generate_summary, to
2709         compute_inline_parameters. 
2710         * ipa-inline.c (compute_inline_parameters): Made public and added
2711         node parameter.
2712         (compute_inline_parameters_for_current): New function.
2713         (pass_inline_param): Now calls compute_inline_parameters_for_current.
2714         (inline_generate_summary): Removed parameter and made to loop over
2715         all cgraph nodes.
2716         (pass_ipa_inline): Updated for new IPA_PASS structure.
2717         * passes.c (execute_ipa_summary_passes): Now is called once per
2718         pass rather than once per node*pass.
2719         
2720 2008-05-15  Anatoly Sokolov <aesok@post.ru>
2721
2722         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
2723         avr_have_mul_p, avr_asm_only_p): Remove variables.
2724         (avr_override_options): Remove initialization of removed variables.
2725         (avr_file_start):  Convert removed variables to fields of 
2726         'struct base_arch_s *avr_current_arch'. 
2727         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
2728         (AVR_HAVE_MUL): (Ditto.).
2729         (AVR_HAVE_MOVW): (Ditto.).
2730         (AVR_HAVE_LPMX): (Ditto.). 
2731         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
2732         avr_asm_only_p): Remove declaration.
2733
2734 2008-05-15  Diego Novillo  <dnovillo@google.com>
2735
2736         * config/arm/arm.c (arm_return_in_memory): Fix return type.
2737         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
2738
2739 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
2740
2741         PR middle-end/36194
2742         * combine.c (check_conversion): Rename back to check_promoted_subreg.
2743         Don't call record_truncated_value from here.
2744         (record_truncated_value): Turn it into a for_each_rtx callback.
2745         (record_truncated_values): New function.
2746         (combine_instructions): Call note_uses with record_truncated_values.
2747         Change name of check_conversion to check_promoted_subreg. 
2748
2749 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
2750
2751         * doc/sourcebuild.texi: Document support for torture tests.
2752
2753 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
2754
2755         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
2756         to alternative 4 of operand 2.
2757
2758 2008-05-15  Richard Guenther  <rguenther@suse.de>
2759
2760         * tree-pass.h (current_pass): Declare.
2761         (get_pass_for_id): Likewise.
2762         * passes.c (passes_by_id, passes_by_id_size): New globals.
2763         (set_pass_for_id): New function.
2764         (get_pass_for_id): Likewise.
2765         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
2766         (execute_function_todo): Flush per function statistics.
2767         * toplev.c (compile_file): Init statistics.
2768         (general_init): Do early statistics initialization.
2769         (finalize): Finish statistics.
2770         * statistics.h (statistics_early_init): Declare.
2771         (statistics_init): Likewise.
2772         (statistics_fini): Likewise.
2773         (statistics_fini_pass): Likewise.
2774         (statistics_counter_event): Likewise.
2775         (statistics_histogram_event): Likewise.
2776         * statistics.c: New file.
2777         * Makefile.in (OBJS-common): Add statistics.o.
2778         (statistics.o): Add dependencies.
2779         * doc/invoke.texi (-fdump-statistics): Document.
2780
2781         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
2782         (insert): Likewise.
2783         (execute_pre): Use statistics_counter_event.
2784         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
2785         (substitute_and_fold): Increment it.  Use statistics_counter_event.
2786
2787 2008-05-15  Diego Novillo  <dnovillo@google.com>
2788
2789         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
2790
2791         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
2792         * tree-ssa-alias.c (new_type_alias): Remove references to
2793         sub-variables from comment.
2794         * tree-ssa-operands.c (swap_tree_operands): Likewise.
2795
2796 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2797
2798         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
2799         attribute to 1 only for insertps alternative.
2800
2801 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
2802
2803         * config/bfin/bfin.md (loadbytes): New pattern.
2804         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
2805         (bfin_init_builtins): Initialize it.
2806         (bdesc_1arg): Add it.
2807
2808 2008-05-15  Sa Liu  <saliu@de.ibm.com>
2809
2810         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
2811         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
2812         * testsuite/lib/target-supports.exp: Add
2813         check_effective_target_fortran_integer_16.
2814
2815 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
2816
2817         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
2818         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
2819         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
2820         (TARGET_RETURN_IN_MEMORY): Define.
2821
2822 2008-05-15  Richard Guenther  <rguenther@suse.de>
2823
2824         PR middle-end/36244
2825         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
2826         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
2827         represent unmodifiable vars.
2828
2829 2008-05-15  Richard Guenther  <rguenther@suse.de>
2830
2831         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
2832         INDIRECT_REF and TARGET_MEM_REF.
2833         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2834         TARGET_MEM_REF.
2835
2836 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
2837             H.J. Lu  <hongjiu.lu@intel.com>
2838
2839         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
2840         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
2841         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
2842         insn alternatives.  Add missing alternatives.
2843         (*vec_concatv2di_rex64_sse4_1): Likewise.
2844         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
2845         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
2846         Require TARGET_SSE.
2847
2848 2008-05-15  Richard Guenther  <rguenther@suse.de>
2849
2850         PR tree-optimization/36009
2851         PR tree-optimization/36204
2852         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
2853         (determine_invariantness_stmt): Record the loop a store is
2854         always executed in.
2855         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
2856         dependency.
2857
2858 2008-05-15  Richard Guenther  <rguenther@suse.de>
2859
2860         PR tree-optimization/34330
2861         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
2862         through the pointer will alias the SMT.
2863
2864 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
2865
2866         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
2867
2868 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2869
2870         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
2871
2872 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
2873             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
2874
2875         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
2876         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
2877         (vashl_optab): New optab for vector/vector shifts.
2878         (vashr_optab): Ditto.
2879         (vlshr_optab): Ditto.
2880         (vrotl_optab): Ditto.
2881         (vrotr_optab): Ditto.
2882         (optab_subtype): New enum for optab_for_tree_code call.
2883         (optab_for_tree_code): Add enum optab_subtype argument.
2884
2885         * optabs.c (optab_for_tree_code): Take an additional argument to
2886         distinguish between a vector shift by a scalar and vector shift by
2887         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
2888         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
2889         vector shift by a vector.
2890         (expand_widen_pattern_expr): Pass additional argument to
2891         optab_for_tree_code.
2892
2893         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
2894         vrotl_optab, vrotr_optab.
2895
2896         * expr.c (expand_expr_real_1): Update calls to
2897         optab_for_tree_code to distinguish between vector shifted by a
2898         scalar and vector shifted by a vector.
2899         * tree-vectorizer.c (supportable_widening_operation): Ditto.
2900         (supportable_narrowing_operation): Ditto.
2901         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
2902         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
2903         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
2904         (vect_create_epilog_for_reduction): Ditto.
2905         (vectorizable_reduction): Ditto.
2906         (vectorizable_operation): Ditto.
2907         (vect_strided_store_supported): Ditto.
2908         (vect_strided_load_supported): Ditto.
2909         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
2910         * expmed.c (expand_shift): Ditto.
2911
2912         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
2913         scalar type.
2914         (ashr@var{m}3): Ditto.
2915         (vashl@var{m}3): Document new vector/vector shift standard name.
2916         (vashr@var{m}3): Ditto.
2917         (vlshr@var{m}3): Ditto.
2918         (vrotl@var{m}3): Ditto.
2919         (vrotr@var{m}3): Ditto.
2920
2921         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
2922         (PPERM_INVERT): Ditto.
2923         (PPERM_REVERSE): Ditto.
2924         (PPERM_REV_INV): Ditto.
2925         (PPERM_ZERO): Ditto.
2926         (PPERM_ONES): Ditto.
2927         (PPERM_SIGN): Ditto.
2928         (PPERM_INV_SIGN): Ditto.
2929         (PPERM_SRC1): Ditto.
2930         (PPERM_SRC2): Ditto.
2931
2932         * config/i386/sse.md (mulv2di3): Add SSE5 support.
2933         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
2934         allows a memory operand to be the value being added, and split it
2935         to improve vectorization.
2936         (sse5_pmacsdqh_mem): Ditto.
2937         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
2938         (sse5_mulv2div2di3_high): Ditto.
2939         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
2940         (vec_pack_trunc_v4si): Ditto.
2941         (vec_pack_trunc_v2di): Ditto.
2942         (sse5_pcmov_<mode>): Remove code that tried to use use
2943         andps/andnps instead of pcmov.
2944         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
2945         pmacsdqh instructions.
2946         (vec_widen_smult_lo_v4si): Ditto.
2947
2948         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
2949         (PPERM_INVERT): Ditto.
2950         (PPERM_REVERSE): Ditto.
2951         (PPERM_REV_INV): Ditto.
2952         (PPERM_ZERO): Ditto.
2953         (PPERM_ONES): Ditto.
2954         (PPERM_SIGN): Ditto.
2955         (PPERM_INV_SIGN): Ditto.
2956         (PPERM_SRC1): Ditto.
2957         (PPERM_SRC2): Ditto.
2958         (ix86_expand_sse_movcc): Move the SSE5 test after the if
2959         true/false tests.
2960         (ix86_expand_int_vcond): If SSE5 generate all possible integer
2961         comparisons.
2962         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
2963         says ignore whether the last reference is a memory operand.
2964
2965 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
2966             Paolo Bonzini <bonzini at gnu dot org>
2967
2968         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
2969         shift patterns.
2970
2971         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
2972         (vlshr<mode>3): Rename from vlshr<mode>3.
2973         (vashr<mode>3): Rename from vashr<mode>3.
2974         (mulv4sf3): Change the names of vector shift patterns.
2975         (mulv4si3): Ditto.
2976         (negv4sf2): Ditt.
2977
2978         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
2979         shift insns.
2980
2981         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
2982         (SI_SHLHI): Ditto.
2983         (SI_SHL): Ditto.
2984         (SI_SHLI): Ditto.
2985         (SI_ROTH): Ditto.
2986         (SI_ROTHI): Ditto.
2987         (SI_ROT): Ditto.
2988         (SI_ROTI): Ditto.
2989         (SPU_RL_0): Ditto.
2990         (SPU_RL_1): Ditto.
2991         (SPU_RL_2): Ditto.
2992         (SPU_RL_3): Ditto.
2993         (SPU_RL_4): Ditto.
2994         (SPU_RL_5): Ditto.
2995         (SPU_RL_6): Ditto.
2996         (SPU_RL_7): Ditto.
2997         (SPU_SL_0): Ditto.
2998         (SPU_SL_1): Ditto.
2999         (SPU_SL_2): Ditto.
3000         (SPU_SL_3): Ditto.
3001         (SPU_SL_4): Ditto.
3002         (SPU_SL_5): Ditto.
3003         (SPU_SL_6): Ditto.
3004         (SPU_SL_7): Ditto.
3005
3006         * config/spu/spu.md (v): New iterator macro to add v for vector types.
3007         (floatunssidf2_internal): Change vector/vector shift names.
3008         (floatunsdidf2_internal): Ditto.
3009         (mulv8hi3): Ditto.
3010         (ashrdi3): Ditto.
3011         (ashrti3): Ditto.
3012         (cgt_df): Ditto.
3013         (cgt_v2df): Ditto.
3014         (dftsv): Ditto.
3015         (vashl<mode>3): Rename from ashl<mode>3.
3016         (vashr<mode>3): Rename from ashr<mode>3.
3017         (vlshr<mode>3): Rename from lshr<mode>3.
3018         (vrotl<mode>3): Rename from rotl<mode>3.
3019
3020 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
3021
3022         PR target/36224
3023         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
3024         multiply gives the wrong value when doing widening multiplies.
3025         (vec_widen_smult_lo_v4si): Ditto.
3026
3027 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
3028
3029         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
3030         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
3031         emit_library_call_value. 
3032         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
3033         * tree.h (ECF_LIBCALL_BLOCK): Removed.
3034         * calls.c (initialize_argument_information, precompute_arguments, 
3035         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
3036         (precompute_arguments): Removed flags parameter.
3037         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
3038         
3039 2008-05-14  Richard Guenther  <rguenther@suse.de>
3040
3041         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
3042         Make sure to register the store if the use is a PHI_NODE.
3043
3044 2008-05-14  Olivier Hainque  <hainque@adacore.com>
3045
3046         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
3047         memory if the component is to be referenced in BLKmode according
3048         to get_inner_reference.
3049
3050 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
3051
3052         * calls.c (emit_library_call_value_1): Restore code clearing
3053         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
3054
3055 2008-05-14  Olivier Hainque  <hainque@adacore.com>
3056             Nicolas Roche  <roche@adacore.com>
3057
3058         * configure.ac: Add support for a "gcc_subdir" variable in
3059         config-lang.in, to denote a subdirectory where the language/GCC
3060         integration files are to be found.
3061         * configure: Regenerate.
3062
3063 2008-05-14  Ira Rosen  <irar@il.ibm.com>
3064
3065         PR tree-optimization/36098
3066         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
3067         value for the first load in the group in case of a gap.
3068         (vect_build_slp_tree): Check that there are no gaps in loads.
3069
3070 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
3071
3072         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
3073         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
3074         expand_copysign_bit, ): Change call to emit_no_conflict_block to
3075         emit_insn and remove unneeded code to construct extra args.
3076         (emit_no_conflict_block): Removed.
3077         * optabls.h: (emit_no_conflict_block): Removed.
3078         * cse.c (cse_extended_basic_block): Remove search for
3079         REG_NO_CONFLICT note.
3080         * global.c: Removed incorrect comment added in revision 117.
3081         * expr.c (convert_move): Change call to emit_no_conflict_block to
3082         emit_insn.
3083         * recog.c: Change comments so that they do not mention
3084         REG_NO_CONFLICT.
3085         * local_alloc.c (combine_regs): Removed last parameter.
3086         (no_conflict_p): Removed.
3087         (block_alloc): Removed note, no_conflict_combined_regno and set
3088         local vars. Removed all code to process REG_NO_CONFLICT blocks.
3089         (combine_regs): Removed already_dead and code to look for
3090         REG_NO_CONFLICT notes.
3091         * lower_subreg (remove_retval_note): Removed code to look for
3092         REG_NO_CONFLICT block.
3093         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
3094         (resolve_clobber): Remove code to process libcalls that have
3095         REG_NO_CONFLICT notes.
3096         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
3097         case.
3098         * combine.c (can_combine_p, distribute_notes):  Removed
3099         REG_NO_CONFLICT case.
3100         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
3101         to emit_insns.
3102         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
3103         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
3104         Ditto.
3105         * reg-notes.def (NO_CONFLICT): Removed.
3106
3107 2008-05-14  David S. Miller  <davem@davemloft.net>
3108
3109         * config/sparc/sparc.c (sparc_profile_hook): If
3110         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
3111         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
3112         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
3113
3114 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
3115
3116         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
3117
3118 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
3119
3120         PR target/36222
3121         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
3122         and op1 expansion before vector concat to have less live pseudos.
3123
3124 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
3125
3126         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
3127         ix86_expand_vector_set if supported.
3128
3129 2008-05-13  Diego Novillo  <dnovillo@google.com>
3130             Kenneth Zadeck  <zadeck@naturalbridge.com>
3131
3132         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
3133
3134         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
3135         phinodes_print_statistics, init_ssanames, fini_ssanames,
3136         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
3137         release_ssa_name, release_defs, replace_ssa_name_symbol,
3138         ssanames_print_statistics): Move ...
3139         * tree-flow.h: ... here.
3140         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
3141         Use FN instead of cfun.
3142         (make_ssa_name_fn): Rename from make_ssa_name.
3143         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
3144         * tree-flow-inline.h (make_ssa_name): Move from
3145         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
3146         * omp-low.c (expand_omp_parallel):
3147         * tree-flow-inline.h (redirect_edge_var_map_result):
3148         * tree-ssa.c (init_tree_ssa): Add argument FN.
3149         Use it instead of cfun.  Update all users.
3150
3151 2008-05-13  Tom Tromey  <tromey@redhat.com>
3152
3153         PR preprocessor/22168:
3154         * doc/cpp.texi (Top): Update menu.
3155         (Alternatives to Wrapper #ifndef): New node.
3156         (Other Directives): Document deprecation.
3157         (Obsolete Features): Remove menu.
3158         (Assertions): Merge node into Obsolete Features.
3159         (Obsolete once-only headers): Move earlier; rename to Alternatives
3160         to Wrapper #ifndef.
3161         * doc/cppopts.texi: Update.
3162         * c.opt (Wdeprecated): Enable for C and ObjC.
3163         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
3164         (C++ Dialect Options): Move -Wno-deprecated from here to...
3165         (Warning Options): ... here.
3166
3167 2008-05-13  Richard Guenther  <rguenther@suse.de>
3168
3169         PR middle-end/36227
3170         * fold-const.c (fold_sign_changed_comparison): Do not allow
3171         changes in pointer-ness.
3172
3173 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
3174
3175         PR target/24713
3176         * config/sh/sh.c (sh_expand_prologue): Don't clear
3177         RTX_FRAME_RELATED_P for push insns.
3178
3179 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
3180
3181         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
3182
3183 2008-05-12  Anatoly Sokolov <aesok@post.ru>
3184
3185         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
3186         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
3187         Use 'machine->is_leaf' instead of 'leaf_func_p'.
3188
3189 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
3190
3191         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
3192         (*vec_concatv4sf_sse): This.
3193         (*sse2_concatv2si): Renamed to ...
3194         (*vec_concatv2si_sse2): This.
3195         (*sse1_concatv2si): Renamed to ...
3196         (*vec_concatv2si_sse): This.
3197         (*vec_concatv2di_rex): Renamed to ...
3198         (*vec_concatv2di_rex64): This.
3199         (*vec_concatv2si_sse4_1): New.
3200         (*vec_concatv2di_rex64_sse4_1): Likewise.
3201
3202 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
3203
3204         PR rtl-optimization/36111
3205         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
3206         that was created for swappable operands.
3207
3208 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
3209
3210         PR ada/36001
3211         * Makefile.in: Substitute GNATMAKE and GNATBIND.
3212         * configure.ac: Add call to ACX_PROG_GNAT.
3213
3214 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
3215
3216         * optc-gen.awk: Fix comment typo.
3217
3218 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3219
3220         * pretty-print.c (pp_integer_with_precision): Use
3221         HOST_LONG_LONG_FORMAT.
3222
3223 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
3224
3225         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
3226                 
3227 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3228
3229         * config/i386/i386.c (bdesc_ptest): Removed.
3230         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
3231         (bdesc_args): Add __builtin_ia32_ptestz128,
3232         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
3233         (ix86_init_mmx_sse_builtins): Updated.
3234         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
3235         (ix86_expand_builtin): Updated.
3236
3237 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
3238
3239         * tree-cfg.c (valid_fixed_convert_types_p): New function.
3240         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
3241
3242 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
3243
3244         * value-prof.c (interesting_stringop_to_profile): Do not
3245         return early for BUILT_IN_MEMPCPY.
3246
3247 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3248
3249         * calls.c (expand_call): Don't use callgraph to increase
3250         preferred_stack_boundary.
3251
3252         * cgraph.h (cgraph_rtl_info): Use unsigned on
3253         preferred_incoming_stack_boundary.
3254
3255         * final.c (rest_of_clean_state): Use unsigned on
3256         preferred_stack_boundary.
3257
3258 2008-05-09  Tom Tromey  <tromey@redhat.com>
3259
3260         PR preprocessor/22231:
3261         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
3262         proceeding.
3263
3264 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
3265
3266         PR tree-optimization/36129
3267         * tree-ssa-ccp.c: Include value-prof.h.
3268         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
3269         built-in function was folded to a constant.
3270         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
3271
3272 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
3273             Sebastian Pop  <sebastian.pop@amd.com>
3274
3275         * tree-scalar-evolution.c: Document instantiate_scev.
3276         (instantiate_parameters_1): Renamed instantiate_scev_1.
3277         Don't use the same loop for instantiation_loop and evolution_loop.
3278         (instantiate_scev): New.
3279         (instantiate_parameters): Moved...
3280         (resolve_mixers): Update call to instantiate_scev_1 to pass the
3281         same loop twice.  Maintains the semantics for this function.
3282         * tree-scalar-evolution.h (instantiate_scev): Declare.
3283         (instantiate_parameters): ...here.  Now static inline.
3284         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
3285         instead of resolve_mixers.
3286
3287 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
3288
3289         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
3290
3291 2008-05-09  Tomas Bily  <tbily@suse.cz>
3292
3293         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
3294         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
3295         * tree-ssa-structalias.c (get_constraint_for): Likewise.
3296         * c-common.c (c_common_truthvalue_conversion): Likewise.
3297         * tree-object-size.c (compute_object_offset): Likewise.
3298         * tree-inline.c (estimate_num_insns_1): Likewise.
3299         * varasm.c (const_hash_1, compare_constant, copy_constant)
3300         (compute_reloc_for_constant, output_addressed_constants)
3301         (initializer_constant_valid_p): Likewise.
3302         * c-omp.c (check_omp_for_incr_expr): Likewise.
3303         * gimplify.c (gimplify_expr): Likewise.
3304         * c-typeck.c (c_finish_return): Likewise.
3305         * tree-vectorizer.c (supportable_widening_operation)
3306         (supportable_narrowing_operation): Likewise.
3307         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
3308         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
3309         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
3310         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
3311         (descr_info_loc): Likewise.
3312         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
3313         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
3314         (fold_unary): Likewise.
3315         * builtins.c (get_pointer_alignment): Likewise.
3316         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
3317         (instantiate_parameters_1): Likewise.
3318         * tree.c (expr_align, stabilize_reference): Likewise.
3319         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
3320         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
3321         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
3322         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
3323         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
3324         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
3325         Likewise.
3326         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
3327         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
3328         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
3329         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
3330         (forward_propagate_comparison)
3331         (tree_ssa_forward_propagate_single_use_vars): Likewise.
3332         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
3333         * emit-rtl.c (component_ref_for_mem_expr)
3334         (set_mem_attributes_minus_bitpos): Likewise.
3335         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
3336         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
3337         Likewise.
3338         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
3339         (build_function_call, pointer_diff, build_compound_expr)
3340         (c_finish_return): Likewise.
3341         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
3342         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
3343         Likewise.
3344         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
3345         * expr.c (is_aligning_offset): Likewise.
3346         * tree-ssa-alias.c (is_escape_site): Likewise.
3347         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
3348         (check_all_va_list_escapes): Likewise.
3349         * tree-ssa-loop-ivopts.c (determine_base_object)
3350         (determine_common_wider_type): Likewise.
3351         * dojump.c (do_jump): Likewise.
3352         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
3353         * tree-gimple.c (is_gimple_cast): Likewise.
3354         * fold-const.c (decode_field_reference, )
3355         (fold_sign_changed_comparison, fold_unary, fold_comparison)
3356         (fold_binary): Likewise.
3357         * tree-ssa-alias-warnings.c (find_alias_site_helper)
3358         (already_warned_in_frontend_p): Likewise.
3359         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
3360         * tree.c (really_constant_p, get_unwidened): Likewise.
3361         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
3362         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
3363         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
3364         Likewise.
3365         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
3366         CONVERT_EXPR_P.
3367         (CONVERT_EXPR_P): Define.
3368         (CASE_CONVERT): Define.
3369         
3370 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
3371
3372         PR middle-end/36117
3373         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
3374         (delete_unmarked_insns): When deleting a call, call
3375         delete_unreachable_blocks.
3376         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
3377         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
3378
3379 2008-05-08  Richard Guenther  <rguenther@suse.de>
3380
3381         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
3382         (-ftree-salias): Likewise.
3383         (salias-max-implicit-fields): Remove param documentation.
3384         (salias-max-array-elements): Likewise.
3385         * tree-pass.h (pass_create_structure_vars): Remove.
3386         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
3387         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3388         * tree-ssa-alias.c (create_structure_vars): Remove.
3389         (gate_structure_vars): Likewise.
3390         (pass_create_structure_vars): Likewise.
3391         (gate_build_alias): Likewise.
3392         (pass_build_alias): Adjust to run always and dump the function.
3393         * common.opt (ftree-salias): Hide.
3394         * passes.c (init_optimization_passes): Remove
3395         pass_create_structure_vars, adjust comment.
3396         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
3397         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3398         * opts.c (decode_options): Do not set flag_tree_salias.
3399         (common_handle_option): Add OPT_ftree_salias to the backward
3400         compatibility section.
3401
3402 2008-05-08  Richard Guenther  <rguenther@suse.de>
3403
3404         * tree-flow-inline.h (var_can_have_subvars): Move ...
3405         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
3406         * tree-flow.h (var_can_have_subvars): Remove.
3407         (push_fields_onto_fieldstack): Remove.
3408         (sort_fieldstack): Likewise.
3409         (struct fieldoff): Move ...
3410         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
3411         alias_set and base_for_components fields.
3412         (sort_fieldstack): Make static.
3413         (push_fields_onto_fieldstack): Likewise.  Remove code that
3414         handles anything but RECORD_TYPEs.  Remove alias_set and
3415         base_for_components handling.
3416         (create_variable_info_for): Adjust.
3417
3418 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
3419
3420         * common.opt (Wframe-larger-than=): Shorten the help message
3421         to one line.
3422         * doc/invoke.texi (Wframe-larger-than=): Add more description.
3423
3424 2008-05-08  Rafael Espindola  <espindola@google.com>
3425
3426         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
3427         trap.
3428         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
3429         trap and that both operands are gimple values.
3430         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
3431         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
3432         is a fp operation.
3433
3434 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
3435
3436         * read-rtl.c (join_c_conditions): Return the first string if the
3437         two strings are equal.
3438
3439 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
3440
3441         * gensupport.h (pred_data): Add a "num_codes" field.
3442         (add_predicate_code): Declare.
3443         * gensupport.c (add_predicate_code): New function.
3444         (std_pred_table): Add an "allows_const_p" field.
3445         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
3446         Remove the (incomplete) list of such codes from the codes field.
3447         (init_predicate_table): Use add_predicate_code.  Add all
3448         RTX_CONST_OBJs if allows_const_p is true.
3449         * genrecog.c (process_define_predicate): Use add_predicate_code.
3450
3451 2008-05-08  David Daney  <ddaney@avtrex.com>
3452             Richard Sandiford  <rsandifo@nildram.co.uk>
3453         
3454         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
3455         special case of constant zero operands.
3456         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
3457         old and new values.  Special case constant zero values.
3458         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
3459         fails.
3460         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
3461         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
3462
3463 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
3464
3465         PR target/36090
3466         * simplify-rtx.c (simplify_plus_minus): Create CONST of
3467         similar RTX_CONST_OBJ before CONST_INT.
3468
3469 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
3470
3471         * stmt.c (expand_stack_restore): Change sa mode if needed.
3472
3473 2008-05-08  Richard Guenther  <rguenther@suse.de>
3474
3475         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
3476         return type to bool.
3477         (ix86_sol10_return_in_memory): Likewise.
3478         (ix86_i386elf_return_in_memory): Likewise.
3479         (ix86_i386interix_return_in_memory): Likewise.
3480         * config/i386/i386.c (ix86_return_in_memory): Likewise.
3481         (ix86_sol10_return_in_memory): Likewise.
3482         (ix86_i386elf_return_in_memory): Likewise.
3483         (ix86_i386interix_return_in_memory): Likewise.
3484
3485 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
3486
3487         PR bootstrap/36180
3488         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
3489         fndecl argument.
3490         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
3491         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
3492         declared in front.
3493
3494 2008-05-08  Richard Guenther  <rguenther@suse.de>
3495
3496         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
3497         * tree-data-ref.h (struct dr_alias): Remove subvars field.
3498         (DR_SUBVARS): Remove.
3499         * tree-dfa.c (dump_subvars_for): Remove.
3500         (debug_subvars_for): Likewise.
3501         (dump_variable): Do not dump subvars.
3502         (remove_referenced_var): Do not remove subvars.
3503         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
3504         (lookup_subvars_for_var): Remove.
3505         (get_subvars_for_var): Likewise.
3506         (get_subvars_at): Likewise.
3507         (get_first_overlapping_subvar): Likewise.
3508         (overlap_subvar): Likewise.
3509         * tree-flow.h (subvar_t): Remove.
3510         (struct var_ann_d): Remove subvars field.
3511         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
3512         argument.  Remove special handling of SFTs.
3513         (compute_tag_properties): Likewise.
3514         (set_initial_properties): Likewise.
3515         (compute_call_clobbered): Likewise.
3516         (count_mem_refs): Likewise.
3517         (compute_memory_partitions): Likewise.
3518         (compute_flow_insensitive_aliasing): Likewise.
3519         (setup_pointers_and_addressables): Likewise.
3520         (new_type_alias): Likewise.
3521         (struct used_part): Remove.
3522         (used_portions): Likewise.
3523         (struct used_part_map): Likewise.
3524         (used_part_map_eq): Likewise.
3525         (used_part_map_hash): Likewise.
3526         (free_used_part_map): Likewise.
3527         (up_lookup): Likewise.
3528         (up_insert): Likewise.
3529         (get_or_create_used_part_for): Likewise.
3530         (create_sft): Likewise.
3531         (create_overlap_variables_for): Likewise.
3532         (find_used_portions): Likewise.
3533         (create_structure_vars): Likewise.
3534         * tree.def (STRUCT_FIELD_TAG): Remove.
3535         * tree.h (MTAG_P): Adjust.
3536         (struct tree_memory_tag): Remove base_for_components and
3537         unpartitionable flags.
3538         (struct tree_struct_field_tag): Remove.
3539         (SFT_PARENT_VAR): Likewise.
3540         (SFT_OFFSET): Likewise.
3541         (SFT_SIZE): Likewise.
3542         (SFT_NONADDRESSABLE_P): Likewise.
3543         (SFT_ALIAS_SET): Likewise.
3544         (SFT_UNPARTITIONABLE_P): Likewise.
3545         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
3546         (union tree_node): Remove sft field.
3547         * alias.c (get_alias_set): Remove special handling of SFTs.
3548         * print-tree.c (print_node): Remove handling of SFTs.
3549         * tree-dump.c (dequeue_and_dump): Likewise.
3550         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
3551         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
3552         * tree-predcom.c (set_alias_info): Do not set subvars.
3553         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
3554         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
3555         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
3556         (add_vars_for_offset): Remove.
3557         (add_virtual_operand): Remove special handling of SFTs.
3558         (add_call_clobber_ops): Likewise.
3559         (add_call_read_ops): Likewise.
3560         (get_asm_expr_operands): Likewise.
3561         (get_modify_stmt_operands): Likewise.
3562         (get_expr_operands): Likewise.
3563         (add_to_addressable_set): Likewise.
3564         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
3565         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
3566         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
3567         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
3568         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
3569         (tree_node_structure): Likewise.
3570         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
3571         handling of SFTs.
3572         (find_what_p_points_to): Likewise.
3573
3574 2008-05-08  Sa Liu  <saliu@de.ibm.com>
3575
3576         * config/spu/spu.md: Fixed subti3 pattern.
3577
3578 2008-05-08  Richard Guenther  <rguenther@suse.de>
3579
3580         PR middle-end/36154
3581         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
3582         sure to create a representative for trailing arrays for PTA.
3583
3584 2008-05-08  Richard Guenther  <rguenther@suse.de>
3585
3586         PR middle-end/36172
3587         * fold-const.c (operand_equal_p): Two objects which types
3588         differ in pointerness are not equal.
3589
3590 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
3591
3592         * calls.c (compute_argument_block_size): Add argument tree fndecl.
3593         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
3594         (emit_library_call_value_1): Add new variable fndecl initialized by
3595         NULL_TREE. It should be the decl type of orgfun, but this information
3596         seems not to be available here, so it uses the default calling abi.
3597         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
3598         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
3599         by TARGET_RETURN_IN_MEMORY.
3600         * config/i386/i386-interix.h: Likewise.
3601         * config/i386/i386.h: Likewise.
3602         * config/i386/i386elf.h: Likewise.
3603         * config/i386/ptx4-i.h: Likewise.
3604         * config/i386/sol2-10.h: Likewise.
3605         * config/i386/sysv4.h: Likewise.
3606         * config/i386/vx-common.h: Likewise.
3607         * config/cris/cris.h: Removed #if 0 clause.
3608         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
3609         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
3610         argument.
3611         (ix86_sol10_return_in_memory): Likewise.
3612         (ix86_i386elf_return_in_memory): New.
3613         (ix86_i386interix_return_in_memory): New.
3614         * config/mt/mt-protos.h (mt_return_in_memory): New.
3615         * config/mt/mt.c: Likewise.
3616         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3617         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
3618         * config/bfin/bfin.h: Likewise.
3619         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
3620         argument.
3621         * config/bfin/bfin.c: Likewise.
3622         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3623         * config/alpha/unicosmk.h: Likewise.
3624         * config/i386/cygming.h: Likewise.
3625         * config/iq2000/iq2000.h: Likewise.
3626         * config/mips/mips.h: Likewise.
3627         * config/mn10300/mn10300.h: Likewise.
3628         * config/rs6000/rs6000.h: Likewise.
3629         * config/score/score.h: Likewise.
3630         * config/spu/spu.h: Likewise.
3631         * config/v850/v850.h: Likewise.
3632         * defaults.h: Likewise.
3633         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
3634         * expr.c (emit_block_move): Adjust use of
3635         OUTGOING_REG_PARM_STACK_SPACE.
3636         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
3637         OUTGOING_REG_PARM_STACK_SPACE.
3638         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
3639
3640 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
3641
3642         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
3643         on OMP_RETURN for OMP_FOR.
3644
3645         PR debug/35896
3646         * dwarf2out.c (dw_expand_expr, common_check): Removed.
3647         (fortran_common): New function.
3648         (gen_variable_die): Call fortran_common instead of common_check,
3649         adjust for it returning tree instead of rtx.  Formatting.
3650
3651 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
3652
3653         PR rtl/7335
3654         PR rtl/33826
3655         * see.c (see_copy_insn): Copy new pure const attributes for new call.
3656         * c-decl.c (merge_decls): Ditto.
3657         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
3658         to RTL_CONST_OR_PURE_CALL_P.
3659         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
3660         Initialized DECL_LOOPING_CONST_PURE.
3661         (process_call_operands): Set tree_side_effects properly.
3662         * tree.h (TREE_READONLY_DECL_P): Removed.
3663         (DECL_IS_PURE): Renamed to DECL_PURE_P.
3664         (DECL_LOOPING_OR_CONST_P): New macro.
3665         (struct tree_function_decl): Added looping_const_or_pure_p.
3666         (ECF_*) Renumbered.
3667         (ECF_LOOPING_OR_CONST_P): New macro.
3668         * rtlanal.c (pure_const_p): Removed.
3669         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
3670         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
3671         to RTL_CONST_CALL_P.
3672         * ipa-pure-const.c (pure_const_state_e): Added looping field.
3673         (check_decl, check_tree, check_call, scan_function): Initialize
3674         looping.
3675         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
3676         (static_execute): Set looping true for recursive functions.
3677         Undo setting state to IPA_NEITHER for recursive functions.
3678         * cse.c (cse_insn): 
3679         * ifcvt.c (noce_can_store_speculate_p): Changed
3680         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
3681         RTL_CONST_OR_PURE_CALL_P.
3682         * dse.c (scan_insn): Ditto.
3683         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
3684         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
3685         RTL_CONST_OR_PURE_CALL_P.
3686         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
3687         pure_call_p to RTL_CONST_CALL_P.
3688         * gimplify.c (gimplify_call_expr): Clear side effects for
3689         non-looping pure and constant calls.
3690         * calls.c (emit_call_1): Set rtl flags from ecf flags.
3691         (flags_from_decl_or_type): Set ecf flags from decl flags.
3692         (initialize_argument_information): Turn off
3693         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
3694         Change const to pure if callee_copies is true rather than just
3695         turning off const.
3696         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
3697         way of marking pure calls.
3698         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
3699         Remove hack that was supposed to fix pr7335 and remove old
3700         way of marking pure calls.
3701         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
3702         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
3703         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
3704         RTL_CONST_OR_PURE_CALL_P.
3705         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
3706         * loop-invariant.c (find_exits, find_invariant_bb): Changed
3707         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
3708         * sched-deps.c (schedule_analyze): Ditto.
3709         * rtl.h (struct rtx_def): Use call field, unchanging field, and
3710         return_val field of calls to represent pure and const function info.
3711         (CONST_OR_PURE_CALL_P): Deleted macro.
3712         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
3713         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
3714         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
3715         TREE_READONLY.
3716         * tree-optimize.c (execute_fixup_cfg): Added test for
3717         ECF_LOOPING_CONST_OR_PURE.
3718         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
3719         DECL_PURE_P.
3720         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
3721         effects for looping pure or const calls.
3722         (verify_gimple_expr): Added verification code. 
3723         * config/alpha/alpha.c (alpha_legitimize_address,
3724         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
3725         RTL_CONST_CALL_P.
3726         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
3727         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
3728         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
3729         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
3730         RTL_CONST_OR_PURE_CALL_P.
3731         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
3732         and const calls to be deleted.
3733
3734 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
3735
3736         PR target/35714
3737         * config/i386/mmx.md (mmx_subv2sf3): New expander.
3738         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
3739         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
3740         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
3741         to handle nonimmediate operands.
3742         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
3743         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
3744         to handle nonimmediate operands.
3745         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
3746         (mmx_pmulhrwv4hi3): New expander.  Use
3747         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3748         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
3749         (sse2_umulv1siv1di3): New expander.  Use
3750         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3751         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
3752         (mmx_eq<mode>3): New expander.  Use
3753         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3754         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
3755         (mmx_uavgv8qi3): New expander.  Use
3756         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3757         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
3758         (mmx_uavgv4hi3): New expander.  Use
3759         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3760
3761         * config/i386/sse.md
3762         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
3763         to handle nonimmediate operands.
3764         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
3765         to handle nonimmediate operands.
3766         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
3767         to handle nonimmediate operands.
3768         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
3769         to handle nonimmediate operands.
3770         (sse2_unpckhpd_exp): New expander.  Use
3771         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3772         (sse2_unpcklpd_exp): New expander.  Use
3773         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3774         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
3775         to handle nonimmediate operands.
3776         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
3777         to handle nonimmediate operands.
3778         (*sse2_<plusminus_insn><mode>3): Rename from
3779         sse2_<plusminus_insn><mode>3 insn pattern.
3780         (sse2_<plusminus_insn><mode>3): New expander.  Use
3781         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3782         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
3783         (sse2_umulv2siv2di3): New expander.  Use
3784         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3785         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
3786         (sse4_1_mulv2siv2di3): New expander.  Use
3787         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3788         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
3789         (sse2_pmaddwd): New expander.  Use
3790         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3791         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
3792         (sse2_eq<mode>3): New expander.  Use
3793         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3794         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
3795         (sse4_1_eqv2di3): New expander.  Use
3796         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3797         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3798         (sse2_uavgv16qi3): New expander.  Use
3799         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3800         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3801         (sse2_uavgv16qi3): New expander.  Use
3802         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3803         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
3804         (sse2_uavgv8hi3): New expander.  Use
3805         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3806         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
3807         (ssse3_pmulhrswv8hi3): New expander.  Use
3808         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3809         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
3810         (ssse3_pmulhrswv4hi3): New expander.  Use
3811         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3812
3813         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
3814         (<sse>_vmmul<mode>3): Ditto.
3815         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
3816         (divv2df3): Ditto.
3817         (ssse3_pmaddubsw128): Use register_operand for operand 1.
3818         (ssse3_pmaddubsw): Ditto.
3819
3820         * config/i386/i386.c (struct_builtin_description)
3821         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
3822         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
3823         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
3824         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
3825         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
3826         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
3827         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
3828         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
3829         (ix86_fixup_binary_operands): Assert that src1
3830         and src2 must have the same mode when swapped.
3831         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
3832         and ix86_binary_operator_ok.  Do not force operands in registers
3833         when optimizing.
3834
3835 2008-05-07  Jan Hubicka  <jh@suse.cz>
3836
3837         * cgraph.c (dump_cgraph_node): Update.
3838         * cgraph.h (cgraph_local_info): Break out inline summary.
3839         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
3840         hook.
3841         * ipa-inline (inline_summary): New accestor function.
3842         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
3843         cgraph_decide_inlining, compute_inline_parameters): Update.
3844         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
3845
3846 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
3847
3848         Cleanup ColdFire scheduling support and add V4 pipeline model.
3849
3850         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
3851         (define_attr cpu): Add cfv4 value.
3852         (define_attr type, define_attr type1): Merge into a single 'type'
3853         attribute.  Update all uses.
3854         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
3855         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
3856         Update all uses.
3857         (define_attr opx_mem, define_attr opy_mem): Remove.
3858         (define_attr op_mem): Clean up, update comment.
3859         (define_attr size): Use specific values instead of general int.
3860         (define_attr guess, define_attr split): Remove.  Update all uses.
3861         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
3862         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
3863         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
3864         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
3865         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
3866         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
3867         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
3868         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
3869         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
3870         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
3871         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
3872         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
3873         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
3874         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
3875         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
3876         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
3877         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
3878         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
3879         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
3880         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
3881         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
3882         Update or set attributes.
3883         (stack_tie): New fake instruction.
3884
3885         * config/m68k/m68k.h (TUNE_CFV4): New macro.
3886         (m68k_sched_attr_size): Update declaration.
3887         (m68k_sched_attr_type2): Remove.
3888         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
3889         Declare new bypass predicates.
3890
3891         * config/m68k/m68k.c (m68k_sched_issue_rate,
3892         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
3893         implementations.
3894         (TARGET_SCHED_ISSUE_RATE,
3895         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
3896         (override_options): Handle scheduling for ColdFire V4 core.
3897         (m68k_expand_prologue): Emit stack_tie.
3898         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
3899         'OP_TYPE_FPN'.  Update all uses.
3900         (sched_guess_p): Remove.
3901         (sched_address_type): Handle symbolic addresses.
3902         (sched_get_operand): New static function.
3903         (sched_operand_type): Merge into sched_attr_op_type.
3904         (sched_attr_op_type): Handle FP registers, handle quick constants,
3905         update.
3906         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
3907         (m68k_sched_attr_size): Update.  Move logic to ...
3908         (sched_get_attr_size_int): New static function.
3909         (sched_get_opxy_mem_type): New static function.
3910         (m68k_sched_attr_op_mem): Update.
3911         (m68k_sched_attr_type2): Remove.
3912         (sched_cfv4_bypass_data): New static variable.
3913         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
3914         (m68k_sched_issue_rate): Implement scheduler hook.
3915         (struct _sched_ib: enabled_p): New field.
3916         (m68k_sched_variable_issue): Update.  Handle V4.
3917         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
3918         sched_dump_class_func_t, sched_dump_split_class,
3919         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
3920         sched_dump_dfa_class, m68k_sched_dump): Remove.
3921         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
3922         hook.
3923         (m68k_sched_init_global): Remove statisctics dumping, introduce
3924         sanity check that all instructions have pipeline reservations.  Handle
3925         ColdFire V4 core.
3926         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
3927         Handle ColdFire V4 core.
3928         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
3929         New static functions.
3930         (m68k_sched_address_bypass_p): New bypass predicate.
3931         (sched_get_indexed_address_scale): New static function.
3932         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
3933
3934         * cf.md: Update comments.
3935         (define_attr type2): Remove.  Use 'type' attribute instead.
3936         Update all uses.