OSDN Git Service

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