Update concepts branch to revision 131834
[official-gcc.git] / gcc / ChangeLog
blob6d20774cb1f99f5805c4b8ae5c68b8144a720b86
1 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3         PR middle-end/36520
4         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
5         before evaluating it.
7 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
9         PR c/36507
10         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
11         nested inline functions.
12         (start_decl, start_function): Don't invert DECL_EXTERNAL
13         for nested inline functions.
15 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
17         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
18         splits that must be made for correctness.
20 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
22         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
23         (AVAIL_NON_MIPS16): Likewise.
24         (mips_builtin_description): Replace target_flags with a predicate.
25         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
26         (dspr2_32): New availability predicates.
27         (MIPS_BUILTIN): New macro.
28         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
29         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
30         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
31         Replace the TARGET_FLAGS parameters with AVAIL parameters.
32         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
33         (mips_dsp_32only_bdesc): Merge into...
34         (mips_builtins): ...this new array.
35         (mips_bdesc_map, mips_bdesc_arrays): Delete.
36         (mips_init_builtins): Update after above changes.
37         (mips_expand_builtin_1): Merge into...
38         (mips_expand_builtin): ...here and update after above changes.
40 2008-06-12  Paul Brook  <paul@codesourcery.com>
42         * longlong.h (__arm__): Define count_leading_zeros.
43         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
44         (clzsi2, clzdi2): New functions.
45         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
46         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
47         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
48         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
49         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
50         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
51         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
52         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
53         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
54         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
56 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
58         * config/m68k/m68k.c (m68k_tune_flags): New.
59         (override_options): Compute m68k_tune_flags.
60         (MULL_COST, MULW_COST): Update for various variants of CFV2.
61         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
63 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
65         PR middle-end/36506
66         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus
67         warning.
69 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
71         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
72         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
74 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
76         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
77         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
79 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
81         PR middle-end/36506
82         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
83         reductions.
85 2008-06-12  Richard Guenther  <rguenther@suse.de>
87         PR tree-optimization/36345
88         * tree-flow.h (struct ptr_info_def): Align escape_mask,
89         add memory_tag_needed flag.
90         (may_alias_p): Declare.
91         * tree-ssa-alias.c (may_alias_p): Export.
92         (set_initial_properties): Use memory_tag_needed flag.
93         (update_reference_counts): Likewise.
94         (reset_alias_info): Reset memory_tag_needed flag.
95         (create_name_tags): Check memory_tag_needed flag.
96         (dump_points_to_info_for): Dump it.
97         * tree-ssa-structalias.c (struct variable_info): Remove
98         directly_dereferenced flag.
99         (new_var_info): Do not initialize it.
100         (process_constraint_1): Do not set it.
101         (update_alias_info): Set is_dereferenced flag.
102         (set_uids_in_ptset): Use may_alias_p.
103         (set_used_smts): Check memory_tag_needed flag.
104         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
105         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
106         memory_tag_needed flag.
107         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
108         from broken design.
110 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
112         * config/i386/i386.c (ix86_compute_frame_layout): Disable red zone for
113         w64 abi.
114         (ix86_expand_prologue): Likewise.
115         (ix86_force_to_memory): Likewise.
116         (ix86_free_from_memory): Likewise.
118 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
120         PR target/36425
121         * config/rs6000/rs6000.c (rs6000_override_options): Set
122         rs6000_isel conditionally to the absence of comand line
123         override.
124         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
125         Remove duplicate rs6000_isel setting.
126         * config/rs6000/eabispe.h: Ditto.
128 2008-06-11  Richard Guenther  <rguenther@suse.de>
130         * alias.c (get_alias_set): Use the element alias-set for arrays.
131         (record_component_aliases): For arrays and vectors do nothing.
132         * c-common.c (strict_aliasing_warning): Handle the cases
133         of alias set zero explicitly.
134         * Makefile.in (dfp.o-warn): Add -Wno-error.
136 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
138         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
139         tune_32 tune_64.
140         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
141         tune_32 tune_64 to supported_defaults.  Allow values not
142         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
143         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
144         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
145         with_cpu_64 to generic for 64-bit-supporting configurations, not
146         with_cpu.  Remove FIXMEs.
147         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
148         --with-arch-64, --with-tune-32, --with-tune-64): Document.
149         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
150         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
151         arch_32 and arch_64.
153 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
154             Olivier Hainque  <hainque@adacore.com>
156         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
157         Use DECL_SIZE_UNIT to retrieve the size of the field.
159 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
161         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
162         with function calls after declarations.  Lay out
163         neon_float_type_node before further use.
165 2008-06-11  Richard Guenther  <rguenther@suse.de>
167         * tree-flow.h (may_point_to_global_var): Declare.
168         * tree-ssa-alias.c (may_point_to_global_var): New function.
169         * tree-ssa-sink.c (is_hidden_global_store): Use it.
171 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
173         * configure.ac: Teach that fido supports .debug_line.
174         * configure: Regenerate.
176 2008-06-10  Tom Tromey  <tromey@redhat.com>
178         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
179         debug hook.
181 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
183         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
184         (encode_decimal64, decode_decimal64, encode_decimal128,
185         decode_decimal128): Reverse order of 32-bit parts of value if host
186         and target endianness differ.
188 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
189         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
190         Avoid division by 0.
191         (tree_mod_pow2_value_transform): Likewise.
192         (tree_ic_transform): Likewise.
193         (tree_stringops_transform): Likewise.
194         (tree_mod_subtract_transform): Likewise.
195         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
196         (copy_edges_for_bb): Likewise.
197         (initialize_cfun): Likewise.
199 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
201         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
202         nonmemory_operand. Add "N" operand constraint.
203         (*btsi): Ditto.
204         (*jcc_btdi_mask_rex64): New instruction and split pattern.
205         (*jcc_btsi_mask): Ditto.
206         (*jcc_btsi_mask_1): Ditto.
208 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
210         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
211         TYPE_CANONICAL for copied element type.
213 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
215         PR target/36473
216         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
217         Add m_CORE2 and m_GENERIC.
218         * config/i386/predicates.md (bt_comparison_operator): New predicate.
219         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
220         (*btsi): Ditto.
221         (*jcc_btdi_rex64): New instruction and split pattern.
222         (*jcc_btsi): Ditto.
223         (*jcc_btsi_1): Ditto.
224         (*btsq): Fix Intel asm dialect operand order.
225         (*btrq): Ditto.
226         (*btcq): Ditto.
228 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
230         PR middle-end/36447
231         * simplify-rtx.c (simplify_subreg): Add check for shift count 
232         greater than size.
234 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
236         * doc/md.texi: Synchronize with later constraints.md change.
237         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
238         with a C implementation.
239         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
240         MFLO handling.
241         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
242         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
243         when moving to and from MD_REGNUM.
244         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
245         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
246         Handle byte and halfword moves.
247         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
248         separately.
249         * config/mips/constraints.md (h): Turn into NO_REGS.
250         (l, x): Update documentation.
251         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
252         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
253         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
254         (HILO): New mode iterator.
255         (MOVE128): Add TI.
256         (any_div): New code iterator.
257         (u): Extend code attribute to div and udiv.
258         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
259         d_operand in the splitters.  Remove redundant CONST_INT checks.
260         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
261         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
262         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
263         accordingly, using normal moves instead of unspecs to move LO into
264         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
265         (<u>mulsidi3): Handle expansion in C code.
266         (<u>mulsidi3_32bit_internal): Rename to...
267         (<u>mulsidi3_32bit): ...this.
268         (<u>mulsidi3_32bit_r4000): Fix insn separator.
269         (*<u>mulsidi3_64bit): Rename to...
270         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
271         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
272         to set LO and HI to the multiplication result.  Use a normal move
273         for MFLO and an unspec for MFHI.
274         (*<u>mulsidi3_64bit_parts): Replace with...
275         (<u>mulsidi3_64bit_hilo): ...this new instruction.
276         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
277         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
278         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
279         instead of HI.  Split the instruction into a separate multiplication
280         and MFHI if !TARGET_FIX_R4000.
281         (<su>muldi3_highpart): Likewise.
282         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
283         and the "=h" clobber.
284         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
285         (<u>mulditi3): New expander.
286         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
287         (madsi): Remove "=h" clobber.
288         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
289         Force the modulus result to be a GPR and split the instruction into
290         a division followed by an MFHI after reload.
291         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
292         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
293         the MIPS16 HIGH define_split.
294         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
295         of acc<->gpr moves to "multi".
296         (*movdi_64bit): Replace the single "x" alternative with
297         alternatives for moving into and out of "a".
298         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
299         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
300         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
301         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
302         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
303         (movti): New expander.
304         (*movti, *movti_mips16): New insns.
305         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
306         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
307         (mthi<GPR:mode>_<HILO:mode>): Likewise.
308         * config/mips/predicates.md (fpr_operand): Delete.
309         (d_operand): New predicate.
311 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
313         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
314         failure on some Bourne shells.
315         (x86_64-*-*): Ditto.
317 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
319         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
321 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
323         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
324         (sparc-sun-solaris2*): Likewise.
326 2008-06-09  Arnaud Charlet  <charlet@adacore.com
328         * doc/install.texi: Update requirements to build the Ada compiler.
330 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
332         * df-scan.c (struct df_scan_problem_data): Remove the
333         mw_link_pool alloc pool.
334         (df_scan_free_internal): Don't free it.
335         (df_scan_alloc): Don't allocate it.
336         * df.h (struct df_link): Update comment.
338 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
340         * except.h: Correct checks for when SJLJ exceptions must be used.
342 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
344         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
345         default.
346         
347 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
349         PR tree-optimization/36218
350         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
351         configure for the build system.
352         (BUILD_LDFLAGS): Define.
353         * configure: Regenerate.
354         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
356 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
358         PR target/36424
359         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
360         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
361         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
363 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
365         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
367 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
369         * config.gcc (Obsolete configurations): Remove list of
370         configurations.
371         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
372         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
373         targets matched by those patterns.
374         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
375         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
376         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
377         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
378         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
379         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
380         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
381         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
382         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
383         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
384         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
385         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
386         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
387         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
388         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
389         Make code for Solaris 7 and greater unconditional for Solaris.
390         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
391         Remove --with-* handling.
392         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
393         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
394         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
395         LINK_OS_WINDISS_SPEC): Remove.
396         * config/rs6000/sysv4.opt (mwindiss): Remove.
397         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
398         * configure: Regenerate.
399         * doc/cpp.texi: Don't mention BeOS.
400         * doc/extend.texi (interrupt): Don't mention MS1.
401         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
402         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
403         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
404         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
405         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
406         Remove.
407         * doc/invoke.texi (MT Options): Remove.
408         (-mwindiss): Remove.
409         (CRIS Options): Remove cris-axis-aout references.
410         (HPPA Options): Don't mention hppa1.1-*-pro.
411         * doc/md.texi: (MorphoTech family): Remove.
412         * libgcc2.c: Don't handle UWIN.
413         * config/alpha/t-unicosmk: Remove.
414         * config/alpha/unicosmk.h: Remove.
415         * config/arm/kaos-arm.h: Remove.
416         * config/arm/kaos-strongarm.h: Remove.
417         * config/arm/strongarm-coff.h: Remove.
418         * config/arm/strongarm-elf.h: Remove.
419         * config/arm/strongarm-pe.h: Remove.
420         * config/arm/t-strongarm-pe: Remove.
421         * config/arm/t-xscale-coff: Remove.
422         * config/arm/t-xscale-elf: Remove.
423         * config/arm/xscale-coff.h: Remove.
424         * config/arm/xscale-elf.h: Remove.
425         * config/chorus.h: Remove.
426         * config/cris/aout.h: Remove.
427         * config/cris/aout.opt: Remove.
428         * config/cris/t-aout: Remove.
429         * config/i386/beos-elf.h: Remove.
430         * config/i386/kaos-i386.h: Remove.
431         * config/i386/ptx4-i.h: Remove.
432         * config/i386/sco5.h: Remove.
433         * config/i386/sco5.opt: Remove.
434         * config/i386/sysv4-cpp.h: Remove.
435         * config/i386/sysv5.h: Remove.
436         * config/i386/t-beos: Remove.
437         * config/i386/t-sco5: Remove.
438         * config/i386/t-uwin: Remove.
439         * config/i386/uwin.asm: Remove.
440         * config/i386/uwin.h: Remove.
441         * config/kaos.h: Remove.
442         * config/mips/windiss.h: Remove.
443         * config/mt: Remove directory.
444         * config/pa/pa-osf.h: Remove.
445         * config/pa/pa-pro-end.h: Remove.
446         * config/pa/t-pro: Remove.
447         * config/ptx4.h: Remove.
448         * config/rs6000/beos.h: Remove.
449         * config/rs6000/kaos-ppc.h: Remove.
450         * config/rs6000/t-beos: Remove.
451         * config/rs6000/windiss.h: Remove.
452         * config/sh/kaos-sh.h: Remove.
453         * config/sol2-6.h: Remove.
454         * config/sparc/sol26-sld.h: Remove.
455         * config/sparc/sysv4-only.h: Remove.
456         * config/vax/bsd.h: Remove.
457         * config/vax/t-memfuncs: Remove.
458         * config/vax/ultrix.h: Remove.
459         * config/vax/vaxv.h: Remove.
460         * config/windiss.h: Remove.
462 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
464         PR rtl-optimization/36438
465         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
466         for vector shifts with constant scalar shift operands.
468 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
470         * doc/invoke.texi: Document -march=xlr.
471         * config/mips/xlr.md: New file.
472         * config/mips/mips.md: Include it.
473         (cpu): Add "xlr".
474         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
475         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
476         (mips_rtx_cost_data): Likewise.
478 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
480         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
481         PRE_INC and PRE_DEC cases.
483 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
485         PR rtl-optimization/36419
486         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
487         the emitting jump insn.
489         PR target/36362
490         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
491         is not bool, boolify the whole *expr_p and convert to the desired type.
493 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
495         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
496         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
497         Add omp_private_outer_ref hook, add another argument to
498         omp_clause_default_ctor hook.
499         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
500         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
501         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
502         hook_tree_tree_tree_tree_null.
503         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
504         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
505         * hooks.c (hook_tree_tree_tree_tree_null): New function.
506         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
507         * tree.def (OMP_TASK): New tree code.
508         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
509         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
510         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
511         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
512         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
513         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
514         OMP_CLAUSE_COLLAPSE_EXPR): Define.
515         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
516         (OMP_DIRECTIVE_P): Add OMP_TASK.
517         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
518         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
519         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
520         and OMP_CLAUSE_UNTIED entries.
521         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
522         num_ops to 2.
523         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
524         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
525         * tree-pretty-print.c (dump_omp_clause): Handle
526         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
527         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
528         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
529         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
530         warning about unsigned iterators.  Change decl/init/cond/incr
531         arguments to TREE_VECs, check arguments for all collapsed loops.
532         (c_finish_omp_taskwait): New function.
533         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
534         ws_clauses.
535         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
536         default_function_array_conversion on init.  Add par_clauses argument.
537         If decl is present in parallel's lastprivate clause, change it to
538         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
539         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
540         collapse count in clauses.
541         (c_parser_omp_for, c_parser_omp_parallel): Adjust
542         c_parser_omp_for_loop callers.
543         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
544         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
545         (c_parser_omp_clause_name): Handle collapse and untied clauses.
546         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
547         functions.
548         (c_parser_omp_clause_schedule): Handle schedule(auto).
549         Include correct location in the error message.
550         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
551         and PRAGMA_OMP_CLAUSE_UNTIED.
552         (OMP_TASK_CLAUSE_MASK): Define.
553         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
554         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
555         * tree-nested.c (convert_nonlocal_omp_clauses,
556         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
557         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
558         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
559         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
560         OMP_CLAUSE_DECL.
561         (conver_nonlocal_reference, convert_local_reference,
562         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
563         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
564         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
565         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
566         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
567         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
568         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
569         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
570         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
571         OMP_CLAUSE_UNTIED.
572         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
573         * c-common.h (c_finish_omp_taskwait): New prototype.
574         * gimple-low.c (lower_stmt): Handle OMP_TASK.
575         * tree-parloops.c (create_parallel_loop): Create 1 entry
576         vectors for OMP_FOR_{INIT,COND,INCR}.
577         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
578         (make_edges): Handle OMP_TASK.
579         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
580         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
581         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
582         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
583         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
584         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
585         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
586         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
587         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
588         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
589         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
590         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
591         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
592         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
593         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
594         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
595         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
596         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
597         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
598         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
599         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
600         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
601         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
602         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
603         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
604         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
605         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
606         original iterator is present in lastprivate clause or if
607         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
608         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
609         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
610         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
611         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
612         if it is set, lookup var in outer contexts too.  Handle
613         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
614         to be implicitly determined firstprivate for task regions.
615         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
616         if it is set, lookup var in outer contexts too.  Set
617         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
618         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
619         OMP_CLAUSE_UNTIED.  Take region_type as last argument
620         instead of in_parallel and in_combined_parallel.
621         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
622         Adjust callers.
623         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
624         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
625         (new_omp_context): Set default_kind to
626         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
627         (omp_region_type): New enum.
628         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
629         fields, add region_type.
630         (new_omp_context): Take region_type as argument instead of is_parallel
631         and is_combined_parallel.
632         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
633         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
634         ctx->is_combined_parallel checks.
635         (gimplify_omp_task): New function.
636         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
637         OMP_CLAUSE_UNTIED.
638         * omp-low.c (extract_omp_for_data): Use schedule(static)
639         for schedule(auto).  Handle pointer and unsigned iterators.
640         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
641         Add loops argument.  Extract data for collapsed OMP_FOR loops.
642         (expand_parallel_call): Assert sched_kind isn't auto,
643         map runtime schedule to index 3.
644         (struct omp_for_data_loop): New type.
645         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
646         Add loop, loops, collapse and iter_type fields.
647         (workshare_safe_to_combine_p): Disallow combined for if
648         iter_type is unsigned long long.  Don't combine collapse > 1 loops
649         unless all bounds and steps are constant.  Adjust extract_omp_for_data
650         caller.
651         (expand_omp_for_generic): Handle pointer, unsigned and long long
652         iterators.  Handle collapsed OMP_FOR loops.  Adjust
653         for struct omp_for_data changes.  If libgomp function doesn't return
654         boolean_type_node, add comparison of the return value with 0.
655         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
656         pointer, unsigned and long long iterators.  Adjust for struct
657         omp_for_data changes.
658         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
659         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
660         unsigned long long.  Allocate loops array, pass it to
661         extract_omp_for_data.  For collapse > 1 loops use always
662         expand_omp_for_generic.
663         (omp_context): Add sfield_map and srecord_type fields.
664         (is_task_ctx, lookup_sfield): New functions.
665         (use_pointer_for_field): Use is_task_ctx helper.  Change first
666         argument's type from const_tree to tree.  Clarify comment.
667         In OMP_TASK disallow copy-in/out sharing.
668         (build_sender_ref): Call lookup_sfield instead of lookup_field.
669         (install_var_field): Add mask argument.  Populate both record_type
670         and srecord_type if needed.
671         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
672         in srecord_type.
673         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
674         and DECL_FIELD_OFFSET.
675         (scan_sharing_clauses): Adjust install_var_field callers.  For
676         firstprivate clauses on explicit tasks allocate the var by value in
677         record_type unconditionally, rather than by reference.
678         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
679         Use is_taskreg_ctx instead of is_parallel_ctx.
680         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
681         (create_omp_child_function_name): Add task_copy argument, use
682         *_omp_cpyfn* names if it is true.
683         (create_omp_child_function): Add task_copy argument, if true create
684         *_omp_cpyfn* helper function.
685         (scan_omp_parallel): Adjust create_omp_child_function callers.
686         Rename parallel_nesting_level to taskreg_nesting_level.
687         (scan_omp_task): New function.
688         (lower_rec_input_clauses): Don't run constructors for firstprivate
689         explicit task vars which are initialized by *_omp_cpyfn*.  
690         Pass outer var ref to omp_clause_default_ctor hook if
691         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
692         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
693         OMP_CLAUSE_REDUCTION_INIT.
694         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
695         avoid duplicate setting of fields.  Handle
696         OMP_CLAUSE_PRIVATE_OUTER_REF.
697         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
698         copy-out if TREE_READONLY, only copy-in.
699         (expand_task_copyfn): New function.
700         (expand_task_call): New function.
701         (struct omp_taskcopy_context): New type.
702         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
703         New functions.
704         (lower_omp_parallel): Rename to...
705         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
706         Call create_task_copyfn if srecord_type is needed.  Adjust
707         sender_decl type.
708         (task_shared_vars): New variable.
709         (check_omp_nesting_restrictions): Warn if work-sharing,
710         barrier, master or ordered region is closely nested inside OMP_TASK.
711         Add warnings for barrier if closely nested inside of work-sharing,
712         ordered, or master region.
713         (scan_omp_1): Call check_omp_nesting_restrictions even for
714         GOMP_barrier calls.  Rename parallel_nesting_level to
715         taskreg_nesting_level.  Handle OMP_TASK.
716         (lower_lastprivate_clauses): Even if some lastprivate is found on a
717         work-sharing construct, continue looking for them on parent parallel
718         construct.
719         (lower_omp_for_lastprivate): Add lastprivate clauses
720         to the beginning of dlist rather than end.  Adjust for struct
721         omp_for_data changes.
722         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
723         not after it.  Handle collapsed OMP_FOR loops, adjust for
724         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
725         (get_ws_args_for): Adjust extract_omp_for_data caller.
726         (scan_omp_for): Handle collapsed OMP_FOR
727         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
728         (lower_omp_single_simple): If libgomp function doesn't return
729         boolean_type_node, add comparison of the return value with 0.
730         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
731         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
732         (parallel_nesting_level): Rename to...
733         (taskreg_nesting_level): ... this.
734         (is_taskreg_ctx): New function.
735         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
736         of is_parallel_ctx.
737         (execute_lower_omp): Rename parallel_nesting_level to
738         taskreg_nesting_level.
739         (expand_omp_parallel): Rename to...
740         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
741         Call omp_task_call for OMP_TASK regions.
742         (expand_omp): Adjust caller, handle OMP_TASK.
743         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
745         * bitmap.c (bitmap_default_obstack_depth): New variable.
746         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
747         if argument is NULL and bitmap_default_obstack is already initialized.
748         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
749         at the end.
750         * matrix-reorg.c (matrix_reorg): Likewise.
752 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
754         * config/i386/i386.md (*indirect_jump): Macroize using P
755         mode iterator.  Remove !TARGET_64BIT from insn constraints.
756         (*tablejump_1): Ditto.
757         (*indirect_jump_rex64): Remove insn pattern.
758         (*tablejump_1_rex64): Ditto.
759         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
760         and eh_return_si insn patterns.
762 2008-06-06  Richard Guenther  <rguenther@suse.de>
764         * tree-ssa-structalias.c (merge_smts_into): Remove.
765         (find_what_p_points_to): Do not bother to compute the
766         points-to set for pt_anything pointers.
767         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
768         for pt_anything pointers is ok.
770 2008-06-06  Jan Hubicka  <jh@suse.cz>
772         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
774 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
776         * cgraph.c: Fix typos in comments.
777         (cgraph_availability_names): Fix string typo.
778         * fold-const.c: Fix typos in comments.
779         (fold_binary): Fix typo in warning.
780         * genautomata.c: Fix typos in comments.
781         (check_presence_pattern_sets): Fix typo in local variable.
782         (output_description): Fix typo in output.
783         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
784         * hwint.h: Likewise.
785         * matrix-reorg.c (check_allocation_function): Likewise.
786         * omega.c (smooth_weird_equations): Likewise.
787         * auto-inc-dec.c: Fix typos in comments.
788         * bb-reorder.c: Likewise.
789         * builtins.c: Likewise.
790         * c-common.c: Likewise.
791         * c-cppbuiltin.c: Likewise.
792         * c-parser.c: Likewise.
793         * c-pretty-print.c: Likewise.
794         * cfgcleanup.c: Likewise.
795         * cfgexpand.c: Likewise.
796         * cfghooks.c: Likewise.
797         * cfglayout.c: Likewise.
798         * cfgloopmanip.c: Likewise.
799         * cgraphunit.c: Likewise.
800         * coverage.c: Likewise.
801         * dbxout.c: Likewise.
802         * df-byte-scan.c: Likewise.
803         * df-core.c: Likewise.
804         * df-problems.c: Likewise.
805         * df-scan.c: Likewise.
806         * dfp.c: Likewise.
807         * dominance.c: Likewise.
808         * domwalk.c: Likewise.
809         * dse.c: Likewise.
810         * dwarf2out.c: Likewise.
811         * emit-rtl.c: Likewise.
812         * et-forest.c: Likewise.
813         * function.c: Likewise.
814         * function.h: Likewise.
815         * gcc.c: Likewise.
816         * gcov-io.c: Likewise.
817         * gcov.c: Likewise.
818         * gcse.c: Likewise.
819         * genattrtab.c: Likewise.
820         * ggc-page.c: Likewise.
821         * gimplify.c: Likewise.
822         * gthr-lynx.h: Likewise.
823         * haifa-sched.c: Likewise.
824         * ipa-cp.c: Likewise.
825         * ipa-inline.c: Likewise.
826         * ipa-prop.h: Likewise.
827         * ipa-pure-const.c: Likewise.
828         * ipa-struct-reorg.c: Likewise.
829         * ipa-struct-reorg.h: Likewise.
830         * ipa-type-escape.c: Likewise.
831         * ipa.c: Likewise.
832         * loop-doloop.c: Likewise.
833         * mips-tfile.c: Likewise.
834         * mkmap-flat.awk: Likewise.
835         * mkmap-symver.awk: Likewise.
836         * modulo-sched.c: Likewise.
837         * omp-low.c: Likewise.
838         * optabs.c: Likewise.
839         * optabs.h: Likewise.
840         * opts.c: Likewise.
841         * passes.c: Likewise.
842         * postreload-gcse.c: Likewise.
843         * postreload.c: Likewise.
844         * predict.c: Likewise.
845         * pretty-print.h: Likewise.
846         * profile.c: Likewise.
847         * protoize.c: Likewise.
848         * ra-conflict.c: Likewise.
849         * real.c: Likewise.
850         * recog.c: Likewise.
851         * regclass.c: Likewise.
852         * regs.h: Likewise.
853         * reload.c: Likewise.
854         * rtl-error.c: Likewise.
855         * rtlanal.c: Likewise.
856         * scan.h: Likewise.
857         * sched-rgn.c: Likewise.
858         * see.c: Likewise.
859         * stmt.c: Likewise.
860         * target.h: Likewise.
861         * tree-dfa.c: Likewise.
862         * tree-eh.c: Likewise.
863         * tree-flow-inline.h: Likewise.
864         * tree-inline.c: Likewise.
865         * tree-into-ssa.c: Likewise.
866         * tree-loop-distribution.c: Likewise.
867         * tree-nested.c: Likewise.
868         * tree-parloops.c: Likewise.
869         * tree-pass.h: Likewise.
870         * tree-pretty-print.c: Likewise.
871         * tree-profile.c: Likewise.
872         * tree-scalar-evolution.c: Likewise.
873         * tree-sra.c: Likewise.
874         * tree-ssa-alias-warnings.c: Likewise.
875         * tree-ssa-ccp.c: Likewise.
876         * tree-ssa-coalesce.c: Likewise.
877         * tree-ssa-dom.c: Likewise.
878         * tree-ssa-dse.c: Likewise.
879         * tree-ssa-forwprop.c: Likewise.
880         * tree-ssa-live.c: Likewise.
881         * tree-ssa-live.h: Likewise.
882         * tree-ssa-loop-im.c: Likewise.
883         * tree-ssa-loop-ivopts.c: Likewise.
884         * tree-ssa-loop-niter.c: Likewise.
885         * tree-ssa-loop-prefetch.c: Likewise.
886         * tree-ssa-phiopt.c: Likewise.
887         * tree-ssa-phiprop.c: Likewise.
888         * tree-ssa-sccvn.c: Likewise.
889         * tree-ssa-ter.c: Likewise.
890         * tree-ssa-threadupdate.c: Likewise.
891         * tree-ssa.c: Likewise.
892         * tree-vect-analyze.c: Likewise.
893         * tree-vect-transform.c: Likewise.
894         * tree-vectorizer.c: Likewise.
895         * tree-vn.c: Likewise.
896         * tree-vrp.c: Likewise.
897         * tree.c: Likewise.
898         * tree.def: Likewise.
899         * tree.h: Likewise.
900         * unwind-dw2-fde.c: Likewise.
901         * unwind.inc: Likewise.
902         * value-prof.c: Likewise.
903         * vmsdbgout.c: Likewise.
905 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
907         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
908         always place FP constants in the TOC for TARGET_POWERPC64.
909         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
911 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
913         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
914         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
915         enable for TARGET_E500_DOUBLE.
916         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
917         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
918         floating-point modes like integer modes for E500 double.
919         (rs6000_legitimate_offset_address_p): Likewise.
920         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
921         addressing for DDmode for E500 double.
922         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
923         modes as using 64-bits of registers for E500 double.
924         (spe_build_register_parallel): Do not handle DDmode or TDmode.
925         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
926         specially for E500 double.
927         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
928         TDmode for E500 double.
929         (rs6000_gimplify_va_arg): Only handle SDmode in registers
930         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
931         (rs6000_split_multireg_move): Do not handle TDmode specially for
932         E500 double.
933         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
934         using 64-bit registers for E500 double.
935         (emit_frame_save): Do not handle DDmode specially for E500 double.
936         (gen_frame_mem_offset): Likewise.
937         (rs6000_function_value): Do not call spe_build_register_parallel
938         for DDmode or TDmode.
939         (rs6000_libcall_value): Likewise.
940         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
941         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
942         for E500 double.
944 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
946         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
947         in comments.
949 2008-06-04  Junjie Gu <jgu@tensilica.com>
951         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
952         comparison for frame pointers.
954 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
956         PR target/27386
957         * config/avr/avr.h (PUSH_ROUNDING): Remove.
959 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
961         PR target/30243
962         * builtins.c (expand_builtin_signbit): Don't take lowpart when
963         register is already smaller or equal to required mode. 
965 2008-06-04  Xinliang David Li  <davidxl@google.com>
967         * tree-call-cdce.c: New file. 
968         (cond_dead_built_in_calls): New static variable.
969         (input_domain): New struct.
970         (check_pow): New function.
971         (check_builtin_call): Ditto.
972         (check_target_format): Ditto.
973         (is_call_dce_candidate): Ditto.
974         (gen_one_condition): Ditto.
975         (gen_conditions_for_domain): Ditto.
976         (get_domain): Ditto.
977         (gen_conditions_for_pow_cst_base): Ditto.
978         (gen_conditions_for_pow_int_base): Ditto.
979         (gen_conditions_for_pow): Ditto.
980         (get_no_error_domain): Ditto.
981         (gen_shrink_wrap_conditions): Ditto.
982         (shrink_wrap_one_built_in_call): Ditto.
983         (shink_wrap_conditional_dead_built_in_calls): Ditto.
984         (tree_call_cdce): Ditto.
985         (gate_call_cdce): Ditto.
986         (pass_call_cdce): New gimple pass.
987         * passes.c: (init_optimization_passes): New pass.
988         * tree-pass.h: New pass declaration.
989         * opts.c (decode_options): New flag setting.
990         * common.opt: Add -ftree-builtin-call-dce flag.
991         * Makefile.in: Add new source file.
992         * tempvar.def: New tv_id.
993         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
995 2008-06-04  Richard Guenther  <rguenther@suse.de>
997         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
998         (is_call_clobbered): Always check var_ann->call_clobbered.
999         (mark_call_clobbered): Always set var_ann->call_clobbered.
1000         (clear_call_clobbered): Always clear var_ann->call_clobbered.
1001         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
1002         (reset_alias_info): Clear call clobbering info on MTAGs and
1003         globals as well.
1004         (set_pt_anything): Set pt_global_mem.
1005         (create_tag_raw): Adjust comment.
1006         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
1008 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
1009             Maxim Kuvyrkov  <maxim@codesourcery.com>
1011         * config/m68k/m68k.opt (mxgot): New option.
1012         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
1013         (m68k_output_addr_const_extra): New.
1014         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
1015         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
1016         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
1017         * doc/invoke.texi (M680x0 Options): Document -mxgot.
1019 2008-06-04  Richard Guenther  <rguenther@suse.de>
1021         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
1022         negative or non-representable offsets.
1024 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
1026         * config/i386/i386.c (ix86_gen_leave): New.
1027         (ix86_gen_pop1): Likewise.
1028         (ix86_gen_add3): Likewise.
1029         (ix86_gen_sub3): Likewise.
1030         (ix86_gen_sub3_carry): Likewise.
1031         (ix86_gen_one_cmpl2): Likewise.
1032         (ix86_gen_monitor): Likewise.
1033         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
1034         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
1035         ix86_gen_one_cmpl2 and ix86_gen_monitor.
1036         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
1037         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
1038         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
1039         (ix86_expand_epilogue): Updated.
1040         (print_operand): Handle integer register operand for 'z'.
1041         (ix86_expand_strlensi_unroll_1): Likewise.
1042         (ix86_expand_strlen): Likewise.
1043         (ix86_expand_builtin): Likewise.
1044         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
1045         mov{q}/mov{l} and add{q}/add{l}.
1047 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
1049         * config/i386/i386.md (P): New mode iterator.
1050         (SFmode push_operand splitter): Macroize DImode and SImode pushes
1051         using P mode iterator.
1052         (DFmode push_operand splitter): Ditto.
1053         (XFmode push_operand splitter): Ditto.
1054         (DFmode float_extend SFmode push_operand splitter): Ditto.
1055         (XFmode float_extend SFmode push_operand splitter): Do not generate
1056         SImode pushes for 64bit target.  Macroize Dimode and SImode
1057         pushes using P mode iterator.
1058         (XFmode float_extend DFmode push_operand splitter): Ditto.
1060 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
1062         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
1063         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
1064         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
1065         return type to int.
1066         (ix86_call_abi_override): Remove check for call_used_regs.
1068 2008-06-03  Richard Guenther  <rguenther@suse.de>
1070         * tree-ssa-structalias.c (find_func_aliases): Add constraints
1071         for the lhs of calls if the return type contains pointers.
1073 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
1075         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
1076         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
1077         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
1078         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
1079         of cfun and DEFAULT_ABI to deceide abi mode.
1080         (DEFAULT_ABI): New.
1081         (REG_PARM_STACK_SPACE): Removed.
1082         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
1083         (STACK_BOUNDARY): Use default target to deceide stack boundary.
1084         * config/i386/i386-protos.h (ix86_cfun_abi): New.
1085         (ix86_function_abi): Likewise.
1086         (ix86_function_type_abi): Likewise.
1087         (ix86_call_abi_override): Likewise.
1088         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
1089         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
1090         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
1091         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
1092         specific defines.
1093         (X86_64_REGPARM_MAX): New.
1094         (X86_64_SSE_REGPARM_MAX): New.
1095         (X64_REGPARM_MAX): New.
1096         (X64_SSE_REGPARM_MAX): New.
1097         (X86_32_REGPARM_MAX): New.
1098         (X86_32_SSE_REGPARM_MAX): New.
1099         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
1100         (ix86_function_regparm): Handle user calling abi.
1101         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
1102         by DEFAULT_ABI versus SYSV_ABI check.
1103         (ix86_reg_parm_stack_space): New.
1104         (ix86_function_type_abi): New.
1105         (ix86_call_abi_override): New.
1106         (ix86_function_abi): New.
1107         (ix86_cfun_abi): New.
1108         (init_cumulative_args): Call abi specific initialization.
1109         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
1110         (function_arg_64): Extend SSE_REGPARM_MAX check.
1111         (function_arg (): Remove TARGET_64BIT_MS_ABI.
1112         (ix86_pass_by_reference): Likewise.
1113         (ix86_function_value_regno_p): Likewise.
1114         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
1115         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
1116         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
1117         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
1118         (setup_incoming_varargs_64): Adjust regparm for call abi.
1119         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
1120         (ix86_va_start): Likewise.
1121         (ix86_gimplify_va_arg): Likewise.
1122         (ix86_expand_prologue): Likewise.
1123         (output_pic_addr_const): Likewise.
1124         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
1125         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
1126         (x86_output_mi_thunk): Likewise.
1127         (x86_function_profiler): Likewise.
1128         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
1129         (SYSV_ABI, MS_ABI): New constants.
1130         (DEFAULT_ABI): New.
1131         (init_regs): Add prototype of function in regclass.c file.
1132         (OVERRIDE_ABI_FORMAT): New.
1133         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
1134         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
1135         (OUTGOING_REG_PARM_STACK_SPACE): New.
1136         (ix86_reg_parm_stack_space): New prototype.
1137         (CUMULATIVE_ARGS): Add call_abi member.
1138         (machine_function): Add call_abi member.
1139         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
1140         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
1142 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
1144         PR target/34879
1145         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
1146         (avr_builtin_setjmp_frame_value): New function.
1147         * config/avr/avr.md (nonlocal_goto_receiver): Define.
1148         (nonlocal_goto): Define.
1150 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
1152         * config/mips/mips.c (mips_emit_loadgp): Return early if
1153         there is nothing do to, otherwise emit a blockage if
1154         !TARGET_EXPLICIT_RELOCS || crtl->profile.
1155         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
1157 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1159         * configure.ac: Drop unneeded backslash ending up in config.in.
1160         * acinclude.m4: Likewise.
1161         * config.in: Regenerate.
1163 2008-05-26  Jan Hubicka  <jh@suse.cz>
1165         * predict.c (maybe_hot_frequency_p): Break out of...
1166         (maybe_hot_bb_p): ... here.
1167         (maybe_hot_edge_p): New.
1168         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
1169         * basic-block.h (maybe_hot_edge_p): Declare.
1171 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
1173         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
1174         (*cmpfp_<mode>_cc): Ditto.
1175         (*fp_jcc_8<mode>_387): Ditto.
1176         (*fop_<MODEF:mode>_2_i387): Ditto.
1177         (*fop_<MODEF:mode>_3_i387): Ditto.
1178         (*fop_xf_2_i387): Ditto.
1179         (*fop_xf_3_i387): Ditto.
1181 2008-06-02  Tomas Bily  <tbily@suse.cz>
1183         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
1185 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
1187         * config/mips/mips.c (mips_valid_offset_p): New function.
1188         (mips_valid_lo_sum_p): Likewise.
1189         (mips_classify_address): Use them.
1190         (mips_force_address): New function.
1191         (mips_legitimize_address): Use it.
1192         * config/mips/mips.md (MOVE128): New mode iterator.
1193         (movtf): Require TARGET_64BIT.  Remove empty strings.
1194         (*movtf_internal): Rename to...
1195         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
1196         of "R" and use {,fp}{load,store} attributes instead of "multi".
1197         Use a separate define_split.
1198         (*movtf_mips16): New pattern.
1200 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
1202         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
1203         * config/mips/mips.c (mips_expand_before_return): New function.
1204         (mips_expand_epilogue): Call it.
1205         * config/mips/mips.md (return): Turn into a define_expand.
1206         (*return): New insn.
1208 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
1210         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
1211         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
1212         functions.  Do not emit uses and clobbers of CONCATs; individually
1213         use and clobber their operands.
1214         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
1215         gen_clobber, emit_use and gen_use.
1216         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
1217         (expand_builtin_return): Likewise.
1218         * cfgbuild.c (count_basic_blocks): Likewise.
1219         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1220         * explow.c (emit_stack_restore): Likewise.
1221         * expmed.c (extract_bit_field_1): Likewise.
1222         * expr.c (convert_move, emit_move_complex_parts): Likewise.
1223         (emit_move_multi_word, store_constructor): Likewise.
1224         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
1225         (thread_prologue_and_epilogue_insns): Likewise.
1226         * lower-subreg.c (resolve_simple_move): Likewise.
1227         * optabs.c (widen_operand, expand_binop): Likewise.
1228         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
1229         * reload.c (find_reloads): Likewise.
1230         * reload1.c (eliminate_regs_in_insn): Likewise.
1231         * stmt.c (expand_nl_goto_receiver): Likewise.
1232         * config/alpha/alpha.md (builtin_longjmp): Likewise.
1233         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
1234         * config/arm/arm.c (arm_load_pic_register): Likewise.
1235         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
1236         * config/arm/arm.md (untyped_return): Likewise.
1237         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
1238         * config/avr/avr.c (expand_prologue): Likewise.
1239         * config/bfin/bfin.c (do_unlink): Likewise.
1240         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
1241         * config/cris/cris.c (cris_expand_prologue): Likewise.
1242         * config/darwin.c (machopic_indirect_data_reference): Likewise.
1243         (machopic_legitimize_pic_address): Likewise.
1244         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
1245         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
1246         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
1247         (ix86_expand_convert_uns_didf_sse): Likewise.
1248         (ix86_expand_vector_init_general): Likewise.
1249         * config/ia64/ia64.md (eh_epilogue): Likewise.
1250         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
1251         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
1252         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
1253         (config/iq2000/iq2000.c): Likewise.
1254         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
1255         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
1256         (builtin_longjmp): Likewise.
1257         * config/mn10300/mn10300.md (call, call_value): Likewise.
1258         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
1259         * config/pdp11/pdp11.md (abshi2): Likewise.
1260         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1261         * config/s390/s390.c (s390_emit_prologue): Likewise.
1262         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
1263         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
1264         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
1265         * config/sh/sh.c (prepare_move_operands): Likewise.
1266         (output_stack_adjust, sh_expand_epilogue): Likewise.
1267         (sh_set_return_address, sh_expand_t_scc): Likewise.
1268         * config/sparc/sparc.c (load_pic_register): Likewise.
1269         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
1270         * config/spu/spu.c (spu_expand_epilogue): Likewise.
1271         * config/v850/v850.c (expand_epilogue): Likewise.
1273 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
1275         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
1276         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
1277         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
1278         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
1279         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
1280         stack pointer register.
1281         (output_movhi): Remove code for interrupt specific writing to the 
1282         stack pointer register.
1284 2008-05-31  Richard Guenther  <rguenther@suse.de>
1286         PR tree-optimization/34244
1287         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
1288         (tree_expr_nonzero_warnv_p): Likewise.
1289         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
1290         ssa_name_nonnegative_p.
1291         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
1292         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
1293         not tree_expr_nonzero_warnv_p.
1295         PR tree-optimization/36262
1296         Revert
1297         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
1299         PR tree-optimization/34244
1300         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
1301         (record_numbers_of_iterations): New function.
1302         (execute_vrp): Cache the numbers of iterations of loops.
1303         * tree-scalar-evolution.c (scev_reset_except_niters):
1304         New function.
1305         (scev_reset): Use scev_reset_except_niters.
1306         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
1308 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
1310         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1311         __WORKAROUND_RETS when appropriate.
1313 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
1315         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
1316         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
1317         mode iterator.
1318         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
1319         *fop_df_comm_sse insn patterns using MODEF mode iterator.
1320         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
1321         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
1322         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
1323         *fop_df_1_mixed insn patterns using MODEF mode iterator.
1324         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
1325         *fop_df_1_sse insn patterns using MODEF mode iterator.
1326         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
1327         *fop_df_1_i387 insn patterns using MODEF mode iterator.
1328         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
1329         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
1330         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
1331         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
1332         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
1333         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
1334         (*fop_xf_4_i387): Use <MODE> for mode attribute.
1335         (*fop_xf_5_i387): Ditto.
1336         (*fop_xf_6_i387): Ditto.
1338 2008-05-30  Richard Guenther  <rguenther@suse.de>
1340         * builtins.c (build_string_literal): Avoid generating
1341         a non-gimple_val result.
1343 2008-05-30  DJ Delorie  <dj@redhat.com>
1345         * exec-tool.in: Use an environment variable (private) instead of a
1346         file (shared) as a semaphore, so as to not break parallel builds.
1348 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
1350         * optabs.c (maybe_encapsulate_block): Remove.
1351         (emit_libcall_block): Adjust accordingly.
1352         * optabs.h (maybe_encapsulate_block): Remove prototype.
1354         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
1355         Don't use maybe_encapsulate_block.
1357 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
1359         * config/rs6000/rs6000.c (rs6000_legitimize_address,
1360         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
1361         rtx is a SYMBOL_REF before calling get_pool_constant.
1363 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
1365         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
1367 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
1369         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
1370         rather than OS names to choose INO_T_EQ definition.
1371         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
1372         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
1374 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
1376         PR target/36348
1377         * config/darwin-f.c: New.
1378         * config/t-darwin: Added rule to build darwin-f.o.
1379         * config.gcc: Defined new variable, fortran_target_objs.
1380         (*-*-darwin*): Set fortran_target_objs.
1381         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
1382         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
1383         * configure: Regenerated.
1385 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1387         PR target/35771
1388         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
1389         canonical type if needed.
1391 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
1393         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
1395 2008-05-29  Richard Guenther  <rguenther@suse.de>
1397         PR tree-optimization/36343
1398         PR tree-optimization/36346
1399         PR tree-optimization/36347
1400         * tree-flow.h (clobber_what_p_points_to): Declare.
1401         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
1402         pointed-to variable is dereferenced is irrelevant to whether
1403         the pointer can access the pointed-to variable.
1404         (clobber_what_p_points_to): New function.
1405         * tree-ssa-alias.c (set_initial_properties): Use it.
1406         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
1407         call clobber check for NMTs.
1409 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
1410         
1411         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
1412         for printing gcov_type.
1414 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
1416         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
1417         and the eh region information.
1418         * value-prof.c (gimple_move_stmt_histograms): New function.
1419         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
1421 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
1423         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
1425 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
1427         * value-prof.c (tree_ic_transform): Print counts.
1428         * tree-profile.c (tree_gen_ic_func_profiler):
1429         Clear __gcov_indreict_call_callee variable to avoid misattribution
1430         of the profile.
1432 2008-05-28  Rafael Espindola  <espindola@google.com>
1434         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
1435         invalid sharing.
1437 2008-05-28  Richard Guenther  <rguenther@suse.de>
1439         PR tree-optimization/36339
1440         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
1441         and clobbering code out of the loop.
1443 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
1445         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
1446         letters defined.
1448         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
1449         s390_contiguous_bitmask_p, s390_symref_operand_p,
1450         s390_check_symref_alignment, s390_reload_larl_operand,
1451         s390_reload_symref_address): New functions.
1452         (s390_branch_condition_mnemonic): Support compare and branch
1453         instructions.
1454         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
1455         and 'W' constraints.
1456         (s390_secondary_reload): Add secondary reloads for unaligned
1457         symbol refs or symbol refs to floating point or QI/TI mode
1458         integer values.
1459         (legitimate_address_p): Accept symbol references as addresses.
1460         (s390_expand_insv): Use rotate and insert selected bits
1461         instruction for insv when building for z10.
1462         (print_operand_address): Handle symbol ref addresses.
1463         (print_operand): Output modifier 'c' added for signed byte values.
1464         (s390_encode_section_info): Mark symbol refs with
1465         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
1467         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
1468         (length attribute): RRF, RRR have 4 byte length.
1469         (FPALL, INTALL): New mode iterators added.
1470         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
1471         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
1472         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
1473         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
1474         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
1475         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
1476         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
1477         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
1478         instructions.
1479         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
1480         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
1481         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
1482         reload<INTALL:mode><P:mode>_toreg_z10,
1483         reload<FPALL:mode><P:mode>_tomem_z10,
1484         reload<FPALL:mode><P:mode>_toreg_z10,
1485         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
1486         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
1487         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
1488         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
1489         definition.
1490         (movmem, clrmem, cmpmem): New splitters added.
1492         * config/s390/predicates.md (larl_operand): Use
1493         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
1494         SYMBOL_REF_ALIGN1_P.
1495         (s390_signed_integer_comparison,
1496         s390_unsigned_integer_comparison): New predicates.
1498         * config/s390/s390-protos.h (s390_check_symref_alignment,
1499         s390_contiguous_bitmask_p, s390_reload_larl_operand,
1500         s390_reload_symref_address,
1501         s390_compare_and_branch_condition_mask): Prototypes added.
1503         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
1504         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
1505         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
1507 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
1509         * config/s390/s390.c (z10_cost): New cost function for z10.
1510         (s390_handle_arch_option, override_options): Support -march=z10 switch.
1511         (s390_issue_rate): Adjust issue rate for z10.
1512         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
1513         (processor_flags): Add PF_Z10.
1514         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
1515         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
1516         * gcc/config.gcc: Add z10.
1518 2008-05-28  Richard Guenther  <rguenther@suse.de>
1520         PR tree-optimization/36291
1521         * tree-flow. h (struct gimple_df): Remove var_anns member.
1522         * tree-flow-inline.h (gimple_var_anns): Remove.
1523         (var_ann): Simplify.
1524         * tree-dfa.c (create_var_ann): Simplify.
1525         (remove_referenced_var): Clear alias info from var_anns of globals.
1526         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
1527         (delete_tree_ssa): Clear alias info from var_anns of globals.
1528         Do not free var_anns.
1529         (var_ann_eq): Remove.
1530         (var_ann_hash): Likewise.
1532 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
1534         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
1535         and loongson2f entries.
1536         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
1537         * config/mips/mips.h (processor_type): Add Loongson-2E
1538         and Loongson-2F entries.
1539         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
1540         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
1541         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
1542         * doc/invoke.texi (MIPS Options): Document loongson2e
1543         and loongson2f processor names.
1545 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1547         PR target/35767
1548         PR target/35771
1549         * config/i386/i386.c (ix86_function_arg_boundary): Use
1550         alignment of canonical type.
1551         (ix86_expand_vector_move): Check unaligned memory access for
1552         all SSE modes.
1554 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1556         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
1557         Moved to the front of file.
1559 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
1560             H.J. Lu  <hongjiu.lu@intel.com>
1562         * dwarf2out.c (current_fde): New.
1563         (add_cfi): Use it.
1564         (lookup_cfa:): Likewise.
1565         (dwarf2out_end_epilogue): Likewise.
1566         (dwarf2out_note_section_used): Likewise.
1568 2008-05-27  Michael Matz  <matz@suse.de>
1570         PR c++/27975
1571         * c.opt (Wenum-compare): New warning option.
1572         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
1574 2008-05-27  Michael Matz  <matz@suse.de>
1576         PR middle-end/36326
1577         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
1578         non-BLKmode types.
1579         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
1580         into memory as tail calls.
1582 2008-05-27  Richard Guenther  <rguenther@suse.de>
1584         PR tree-optimization/36339
1585         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
1586         pointers cause all addressable variables to be call clobbered.
1588 2008-05-27  Richard Guenther  <rguenther@suse.de>
1590         PR tree-optimization/36245
1591         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
1593 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
1595         * config/s390/s390.md: Replace all occurences of the 'm'
1596         constraint with 'RT'.
1598 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
1600         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
1601         definitions added.
1602         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
1603         "*movdi_64".
1604         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
1605         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
1606         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
1608 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
1610         * reload.c: (find_reloads): Skip alternatives according to the
1611         "enabled" attribute. Constify the constraint variable.
1612         * recog.c (get_attr_enabled): Add default implementation.
1613         (extract_insn): Set the alternative_enabled_p array
1614         in the recog_data struct.
1615         (preprocess_constraints, constrain_operands): Skip
1616         alternatives according to the "enabled" attribute
1617         * recog.h (struct recog_data): New field alternative_enabled_p.
1618         (skip_alternative): New inline function.
1619         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
1620         (record_reg_classes): Skip alternative according to the
1621         "enabled" attribute.
1623         * doc/md.texi: Add documention for the "enabled" attribute.
1625 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
1627         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
1628         * postreload.c (reload_cse_simplify_operands): Replace 'm'
1629         constraint with TARGET_MEM_CONSTRAINT.
1630         * recog.c (asm_operand_ok, preprocess_constraints,
1631         constrain_operands): Likewise.
1632         * regclass.c (record_reg_classes): Likewise.
1633         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
1634         * reload1.c (maybe_fix_stack_asms): Likewise.
1635         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
1636         * recog.h: Adjust comment.
1637         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
1638         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
1639         * doc/md.texi: Add a note to description of 'm' constraint.
1640         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
1642 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
1644         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
1645         that the bitfield is of integral type before testing its precision.
1647 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1648             Sa Liu  <saliu@de.ibm.com> 
1650         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
1651         __modti3, __udivti3, __umodti3 and __udivmodti4.
1652         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
1653         that implement TImode mul and div functions.
1654         * config/spu/multi3.c: New. Implement __multi3.
1655         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
1656         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
1657         functions on SPU.
1659 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
1661         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
1662         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
1663         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
1664         tls_sysv_suffix): New mode and mode attribute iterators.
1665         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
1666         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
1667         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
1668         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
1669         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
1670         iterators.
1672 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
1674         PR tree-optimization/36329
1675         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
1676         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
1677         * cgraphbuild.c (initialize_inline_failed): Use the latter
1678         macro in lieu of the former.
1679         * ipa-inline.c (cgraph_mark_inline): Likewise.
1680         (cgraph_decide_inlining_of_small_function): Likewise.
1681         (cgraph_decide_inlining): Likewise.
1682         (cgraph_decide_inlining_incrementally): Likewise.
1684 2008-05-26  Tristan Gingold  <gingold@adacore.com>
1685             Anatoly Sokolov  <aesok@post.ru>
1687         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
1688         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
1689         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
1690         optimization for 'avr6' architecture.
1692 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
1694         PR target/34932
1695         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
1697 2008-05-26  Richard Guenther  <rguenther@suse.de>
1699         * tree-ssa-sccvn.c (expr_has_constants): Declare.
1700         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
1702 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
1704         PR middle-end/36253
1705         * caller-save.c (insert_restore): Verify alignment of spill space.
1706         (insert_save): Likewise.
1707         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
1708         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
1709         (STACK_SLOT_ALIGNMENT): Likewise.
1710         * function.c (LOCAL_ALIGNMENT): Removed.
1711         (get_stack_local_alignment): New.
1712         (assign_stack_local): Use it.  Set alignment on stack slot.
1713         (assign_stack_temp_for_type): Use get_stack_local_alignment.
1714         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
1715         (STACK_SLOT_ALIGNMENT): New.
1716         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
1717         stack slot in XFmode.
1719         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
1721 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
1723         PR/36321
1724         * config/i386/i386.md (allocate_stack_worker_64): Make sure
1725         argument operand in rax isn't removed.
1727 2008-05-26  Richard Guenther  <rguenther@suse.de>
1729         PR middle-end/36300
1730         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
1731         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
1733 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
1735         PR bootstrap/36331
1736         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
1738 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
1740         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
1741         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
1743 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1745         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
1746         build a trampoline if we don't want one.
1747         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
1748         return zero for nested functions if we don't want a trampoline.
1750 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
1752         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
1754 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
1756         PR fortran/18428
1757         * c.opt: Removed undocumented option '-lang-fortran'.
1758         * c-common.h: Removed global variable 'lang_fortran'.
1759         * c-opts.c (c_common_handle_option): Removed code to handle
1760         option '-lang-fortran'. Updated includes.
1761         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
1762         definition of '__GFORTRAN__'.
1763         (define__GNUC__): Reimplemented to use BASEVER and
1764         cpp_define_formatted.
1765         (builtin_define_with_value_n): Removed.
1766         * c-incpath.h: Renamed to ...
1767         * incpath.h: ... this.
1768         * c-incpath.c: Renamed to ...
1769         * incpath.c: ... this. Updated includes.
1770         * fix-header.c: Updated includes.
1771         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
1772         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
1773         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
1775 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1777         * tree.h: Update the table of flags used on tree nodes.
1778         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
1779         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
1780         (FORCED_LABEL): Add access check.
1781         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
1782         (ASM_INPUT_P): Likewise.
1783         (ASM_VOLATILE_P): Likewise.
1784         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
1785         (OMP_SECTION_LAST): Access private_flag directly.
1786         (OMP_RETURN_NOWAIT): Likewise.
1787         (OMP_PARALLEL_COMBINED): Likewise.
1788         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
1789         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
1790         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
1791         deprecated_flag directly.
1793 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1795         * final.c (frame_pointer_needed): Removed.
1796         * flags.h (frame_pointer_needed): Likewise.
1798         * function.h (rtl_data): Add frame_pointer_needed.
1799         (frame_pointer_needed): New.
1801 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
1803         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
1805 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
1807         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
1808         SRC is a REG.
1810 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
1812         * c-common.c (strip_array_types): Move function to..
1813         * tree.c: ..here.
1814         (get_inner_array_type): Delete.
1815         * c-common.h (strip_array_types): Move declaration to..
1816         * tree.h: ..here.
1817         (get_inner_array_type): Delete.
1818         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
1819         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
1820         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
1821         * config/pa/pa.c (emit_move_sequence): Likewise.
1823 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1825         * config/i386/i386.md (*sse_prologue_save_insn): Set length
1826         attribute to 34.
1828 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
1830         * function.c: Include target hook for nonlocal_goto frame value.
1832 2008-05-24  Richard Guenther  <rguenther@suse.de>
1834         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
1835         variable can be only accessed through a pointer or a union.
1837 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1839         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
1840         * doc/extend.texi: Likewise.
1842 2008-05-23  DJ Delorie  <dj@redhat.com>
1844         * config/m32c/jump.md (untyped_call): Add.
1846         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
1847         for A24 to PSImode.
1848         (m32c_address_cost): Detail costs for indirect offsets.
1850 2008-05-23  Rafael Espindola  <espindola@google.com>
1852         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
1853         if a node is a SUBREG.
1854         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
1855         is a SUBREG.
1857 2008-05-23  Paul Brook  <paul@codesourcery.com>
1858             Carlos O'Donell  <carlos@codesourcery.com>
1860         * doc/extend.texi: Clarify use of __attribute__((naked)).
1861         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
1862         * target.h (gcc_target): Add allocate_stack_slots_for_args.
1863         * function.c (use_register_for_decl): Use
1864         targetm.calls.allocate_stack_slots_for_args.
1865         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
1866         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
1867         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
1869 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
1871         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
1873 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
1875         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
1876         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
1877         is only rounded once.
1879 2008-05-23  Richard Guenther  <rguenther@suse.de>
1881         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
1883 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
1884             Jakub Jelinek  <jakub@redhat.com>
1886         PR target/36079
1887         * configure.ac: Handle --enable-cld.
1888         * configure: Regenerated.
1889         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
1890         * config/i386/i386.h (struct machine_function): Add needs_cld field.
1891         (ix86_current_function_needs_cld): New define.
1892         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
1893         (cld): New isns pattern.
1894         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
1895         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
1896         * config/i386/i386.opt (mcld): New option.
1897         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
1898         TARGET_CLD and ix86_current_function_needs_cld.
1899         (override_options): Use -mcld by default for 32-bit code if
1900         USE_IX86_CLD.
1902         * doc/install.texi (Options specification): Document --enable-cld.
1903         * doc/invoke.texi (Machine Dependent Options)
1904         [i386 and x86-64 Options]: Add -mcld option.
1905         (Intel 386 and AMD x86-64 Options): Document -mcld option.
1907 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
1908         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
1909         (return_in_memory_64): Likewise.
1910         (return_in_memory_ms_64): Likewise.
1912 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1914         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
1915         * builtins.c (fold_builtin_fpclassify): New.
1916         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
1917         * builtins.def (BUILT_IN_FPCLASSIFY): New.
1918         * c-common.c (handle_type_generic_attribute): Adjust to accept
1919         fixed arguments before an elipsis.
1920         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
1921         * doc/extend.texi: Document __builtin_fpclassify.
1923 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
1925         * omp-low.c (gate_expand_omp_ssa): Remove.
1926         (pass_expand_omp_ssa): Remove.
1927         (gate_expand_omp): Do not check for flag_openmp_ssa.
1928         * common.opt (-fopenmp-ssa): Remove.
1929         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
1931 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
1933         * config/sh/sh.opt (mfixed-range): New option.
1934         * config/sh/sh-protos.h (sh_fix_range): Declare.
1935         * config/sh/sh.c (sh_fix_range): New function.
1936         * config/sh/sh.h (sh_fixed_range_str): Declare.
1937         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
1938         is not empty.
1939         * doc/invoke.texi (SH Options): Document -mfixed-range.
1941 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
1943         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
1944         it before the redeclaration.
1946 2008-05-22  Anatoly Sokolov <aesok@post.ru>
1948         * config/avr/avr.c (get_sequence_length): Add new function.
1949         (expand_prologue, expand_epilogue): Remove duplicate code.
1951 2008-05-22  Rafael Espindola  <espindola@google.com>
1953         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
1954         sharing.
1956 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1958         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
1959         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
1961         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
1962         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
1963         (vect_update_misalignment_for_peel): Likewise.
1964         (vector_alignment_reachable_p): Likewise.
1965         * tree-vect-transform.c (vectorizable_load): Likewise.
1966         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
1967         (get_vectype_for_scalar_type): Pass mode of scalar_type
1968         to UNITS_PER_SIMD_WORD.
1970         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
1971         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
1972         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
1973         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
1974         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
1976 2008-05-22  Ira Rosen  <irar@il.ibm.com>
1978         PR tree-optimization/36293
1979         * tree-vect-transform.c (vect_transform_strided_load): Don't check
1980         if the first load must be skipped because of a gap.
1982 2008-05-22  Richard Guenther  <rguenther@suse.de>
1984         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
1985         more cases of offset disambiguation that is possible if
1986         strict-aliasing rules apply.
1987         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
1988         for basic offset and type-based disambiguation.
1990 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1992         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
1993         ix86_expand_vector_set on V16QImode for SSE4.1.
1995 2008-05-21  Tom Tromey  <tromey@redhat.com>
1997         * c.opt (Wimport): Mark as undocumented.
1998         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
1999         -Wno-import.
2000         (Warning Options): Likewise.
2001         * doc/cppopts.texi: Don't mention -Wimport.
2003 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
2005         PR tree-optimization/36287
2006         PR tree-optimization/36286
2007         * lambda-code.c (build_access_matrix): Do not use the loop->num
2008         for computing the number of induction variables: use the loop depth
2009         instead.
2011 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
2013         PR/36280
2014         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
2015         option -f(no-)leading-underscore.
2017 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2019         * config/i386/i386.c (ix86_expand_vector_init_general): Use
2020         GET_MODE_NUNITS (mode).
2022 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
2024         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
2025         (-mmulhw): Add 464 to description.
2026         (-mdlmzb): Likewise.
2027         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
2028         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
2029         464fp entries.
2030         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
2031         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
2032         * config/rs6000/rs6000.md: Update comments for 464.
2034 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
2036         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
2038 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2040         * config/i386/sse.md (vec_extractv4sf): Removed.
2041         (vec_extractv2df): Likewise.
2042         (vec_extractv2di): Likewise.
2043         (vec_extractv4si): Likewise.
2044         (vec_extractv8hi): Likewise.
2045         (vec_extractv16qi): Likewise.
2046         (vec_extract<mode>): New.
2048 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2050         * config/i386/sse.md (vec_setv4sf): Removed.
2051         (vec_setv2df): Likewise.
2052         (vec_setv2di): Likewise.
2053         (vec_setv4si): Likewise.
2054         (vec_setv8hi): Likewise.
2055         (vec_setv16qi): Likewise.
2056         (vec_set<mode>): New.
2058 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2060         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
2061         goto for vec_concat and vec_interleave.
2063 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2065         * config/i386/sse.md (vec_initv4sf): Removed.
2066         (vec_initv2df): Likewise.
2067         (vec_initv2di): Likewise.
2068         (vec_initv4si): Likewise.
2069         (vec_initv8hi): Likewise.
2070         (vec_initv16qi): Likewise.
2071         (vec_init<mode>): New.
2073 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
2075         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
2077 2008-05-21  Tom Tromey  <tromey@redhat.com>
2079         * ggc-zone.c (lookup_page_table_if_allocated): New function.
2080         (zone_find_object_offset): Likewise.
2081         (gt_ggc_m_S): Likewise.
2082         (highest_bit): Likewise.
2083         * ggc-page.c (gt_ggc_m_S): New function.
2084         * stringpool.c (string_stack): Remove.
2085         (init_stringpool): Update.
2086         (ggc_alloc_string): Use ggc_alloc.
2087         (maybe_delete_ident): New function.
2088         (ggc_purge_stringpool): Likewise.
2089         (gt_ggc_m_S): Remove.
2090         * ggc-common.c (ggc_protect_identifiers): New global.
2091         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
2092         ggc_protect_identifiers.
2093         * ggc.h (ggc_protect_identifiers): Declare.
2094         (gt_ggc_m_S): Update.
2095         (ggc_purge_stringpool): Declare.
2096         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
2097         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
2098         special case.
2099         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
2101 2008-05-21  David S. Miller  <davem@davemloft.net>
2103         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
2104         tmake_file.
2106 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2108         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
2109         once finished.
2111 2008-05-20  David Daney  <ddaney@avtrex.com>
2113         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
2114         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
2115         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
2116         UNSPEC_UPDATE_GOT_VERSION): Renumber.
2117         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
2118         (atomic_hiqi_op): New define_code_iterator.
2119         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
2120         mips_expand_compare_and_swap_12.
2121         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
2122         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
2123         (sync_<optab><mode>, sync_old_<optab><mode>,
2124         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
2125         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
2126         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
2127         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
2128         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
2129         (test_and_set_12): New insn.
2130         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
2131         sync_new_<optab><mode>, sync_old_nand<mode>,
2132         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
2133         clobber to operand 0 for SI and DI mode insns.
2134         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
2135         mips_gen_fn_4): New typedefs.
2136         (mips_gen_fn_ptrs): Define new union type.
2137         (mips_expand_compare_and_swap_12): Remove declaration.
2138         (mips_expand_atomic_qihi): Declare function.
2139         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
2140         (mips_expand_atomic_qihi): ... this.  Use new generator function
2141         parameter.
2142         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
2143         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
2144         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
2145         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
2146         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
2147         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
2148         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
2149         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
2150         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
2151         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
2152         New macros.
2154 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2156         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
2157         the missing break.
2159 2008-05-20  Anatoly Sokolov <aesok@post.ru>
2161         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
2162         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
2163         (avr_attribute_table): Add 'OS_main' function attribute.
2164         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
2165         functions with 'OS_main' attribute.
2167 2008-05-20  Richard Guenther  <rguenther@suse.de>
2169         PR tree-optimization/35204
2170         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
2171         helper, split out from ...
2172         (DFS): ... here.  Make the DFS walk non-recursive.
2174 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
2175             Jan Sjodin  <jan.sjodin@amd.com>
2177         PR tree-optimization/36181
2178         * tree-parloops.c (loop_has_vector_phi_nodes): New.
2179         (parallelize_loops): Don't parallelize when the loop has vector
2180         phi nodes.
2182 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
2183             Sebastian Pop  <sebastian.pop@amd.com>
2185         * tree-loop-linear.c (gather_interchange_stats): Look in the access
2186         matrix, and never look at the tree representation of the memory
2187         accesses.
2188         (linear_transform_loops): Computes parameters and access matrices.
2189         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
2190         when fails.
2191         (access_matrix_get_index_for_parameter): New.
2192         * tree-data-ref.h (struct access_matrix): New.
2193         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
2194         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
2195         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
2196         am_vector_index_for_loop): New.
2197         (struct data_reference): Add field access_matrix.
2198         (DR_ACCESS_MATRIX): New.
2199         (compute_data_dependences_for_loop): Update declaration.
2200         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
2201         * lambda.h (lambda_vector_vec_p): Declared.
2202         * lambda-code.c: Depend on pointer-set.h.
2203         (lambda_collect_parameters_from_af, lambda_collect_parameters,
2204         av_for_af_base, av_for_af, build_access_matrix,
2205         lambda_compute_access_matrices): New.
2206         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
2208 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
2210         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
2211         $SOURCEDIR/include.
2213 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
2214             Sebastian Pop  <sebastian.pop@amd.com>
2216         PR tree-optimization/36206
2217         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
2218         FOLD_CONVERSIONS.
2219         (instantiate_scev_1): Rename flags to fold_conversions.
2220         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
2221         outeside instantiation_loop.
2222         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
2223         (evolution_function_is_affine_or_constant_p): Removed.
2224         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
2225         instantiate_scev.
2226         (analyze_siv_subscript): Pass in the loop nest number.
2227         Call evolution_function_is_affine_in_loop instead of 
2228         evolution_function_is_affine_p.
2229         (analyze_overlapping_iterations): Pass in the loop nest number.
2231 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
2232             Sebastian Pop  <sebastian.pop@amd.com>
2234         PR tree-optimization/36206
2235         * tree-chrec.h (chrec_fold_op): New.
2236         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
2237         and other trees.
2239 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
2241         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
2242         (DIRS_EQ): New.
2243         (remove_duplicates): Do not set inode on non-inode systems.
2244         Use DIRS_EQ.
2246 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
2248         * config.gcc (tm_file): Update comments about relative pathnames.
2250 2008-05-20  Richard Guenther  <rguenther@suse.de>
2252         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
2253         * tree-ssa-sccvn.c (process_scc): Likewise.
2254         * tree-ssa-sink.c (execute_sink_code): Likewise.
2255         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2256         * tree-vrp.c (process_assert_insertions): Likewise.
2257         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
2258         (perform_tree_ssa_dce): Likewise.
2259         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2260         (dump_dominator_optimization_stats): Likewise.
2261         * tree-vectorizer.c (vectorize_loops): Likewise.
2263 2008-05-20  Richard Guenther  <rguenther@suse.de>
2265         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
2267 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
2269         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
2270         (ix86_i386elf_return_in_memory): Likewise.
2271         (ix86_i386interix_return_in_memory): Likewise.
2272         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
2273         (SUBTARGET_RETURN_IN_MEMORY): New.
2274         * config/i386/i386elf.h: Likewise.
2275         * config/i386/ptx4-i.h: Likewise.
2276         * config/i386/sol2-10.h: Likewise.
2277         * config/i386/sysv4.h: Likewise.
2278         * config/i386/vx-common.h: Likewise.
2279         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
2280         * config/i386/i386.c (ix86_return_in_memory): Made static and
2281         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
2282         (ix86_i386elf_return_in_memory): Removed.
2283         (ix86_i386interix_return_in_memory): Removed.
2284         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
2285         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
2287 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
2289         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
2291 2008-05-19  Xinliang David Li  <davidxl@google.com>
2293         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
2294         * opts.c: Ditto.
2295         * common.opt: Ditto.
2296         * doc/invoke.texi: Ditto.
2298 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
2300         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
2301         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
2303 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2305         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
2306         sizes of operand array from 8/4 to 4/2.
2307         (ix86_expand_vector_init_general): Change size of operand array
2308         from 32 to 16.  Remove op0, op1 and half_mode.
2310 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2312         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
2313         (ix86_expand_vector_init_interleave): Likewise.
2314         (ix86_expand_vector_init_general): Use them.  Assert
2315         word_mode == SImode when n_words == 4.
2317 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
2319         * config/i386/i386.c (ix86_secondary_reload): New static function.
2320         (TARGET_SECONDARY_RELOAD): New define.
2321         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
2322         * config/i386/i386.md (reload_outqi): Remove.
2324 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2326         PR middle-end/35509
2327         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
2328         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
2329         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
2330         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
2331         (fold_builtin_1): Likewise.
2332         * builtins.def (BUILT_IN_ISINF_SIGN): New.
2333         c-common.c (check_builtin_function_arguments): Handle
2334         BUILT_IN_ISINF_SIGN.
2335         * doc/extend.texi: Document __builtin_isinf_sign.
2336         * fold-const.c (operand_equal_p): Handle COND_EXPR.
2338 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
2340         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
2341         EH cleanup at the end of the pass, search for those that have been
2342         turned into forwarder blocks and do the cleanup on their successor.
2344 2008-05-18  Richard Guenther  <rguenther@suse.de>
2346         * tree-cfg.c (verify_gimple_expr): Allow conversions from
2347         pointers to sizetype and vice versa.
2349 2008-05-18 Xinliang David Li   <davidxl@google.com>
2351         * gcc/tree-ssa-dce.c: Coding style fix.
2352         (check_pow): Documentation comment. 
2353         (check_log): Documenation comment. Coding style fix.
2354         (is_unnecessary_except_errno_call): Ditto.
2355         (gen_conditions_for_pow): Ditto.
2356         (gen_conditions_for_log): Ditto.
2357         (gen_shrink_wrap_conditions): Ditto.
2358         (shrink_wrap_one_built_in_calls): Ditto.
2359         * gcc/doc/invoke.texi: Better documentation string.
2360         * ChangeLog: Fix wrong change log entries from 
2361         May 17 checkin on function call DCE.
2363 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
2365         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
2367 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
2369         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
2370         * df-problems.c (simulation routines): Fixed block comment to
2371         properly say how to add forwards scanning functions.
2372         
2373 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
2375         * tree-inline.c (setup_one_parameter): Remove dead code.
2377 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
2379         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
2380         a BIT_AND_EXPR only for an INTEGER_TYPE.
2382 2008-05-17 Xinliang David Li   <davidxl@google.com>
2384         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
2385         (check_pow, check_log, is_unnecessary_except_errno_call): New 
2386         functions to check for eliminating math functions that are pure 
2387         except for setting errno.
2388         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
2389         general condition expressions for shrink-wrapping pow/log calls.
2390         (gen_shrink_wrap_conditions): Ditto.
2391         (shrink_wrap_one_built_in_call): Ditto.
2392         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
2393         (mark_operand_necessary): If debugging, output if OP is necessary.
2394         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
2395         unnecessary.
2396         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
2397         opt level >= 2.
2398         * gcc/common.opt: New user flag -ftree-builtin-dce.
2399         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
2401 2008-05-16  David S. Miller  <davem@davemloft.net>
2403         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
2404         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
2406 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
2408         PR target/36246
2409         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
2411 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
2413         * ifcvt.c (dead_or_predicable): Rename
2414         df_simulate_one_insn_backwards to df_simulate_one_insn.
2415         * recog.c (peephole2_optimize): Ditto.
2416         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
2417         Ditto.
2418         * df.h: Rename df_simulate_one_insn_backwards to
2419         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
2420         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
2421         scanning of defs and uses.
2422         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
2423         (df_simulate_one_insn_forwards): Removed.
2425 2008-05-16  Doug Kwan  <dougkwan@google.com>
2427         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
2428         QNaN & SNaN.
2429         (real_from_string): Handle NaNs and Inf as approriate.
2431 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
2433         * doc/gty.texi (Source Files Containing Type Information): Note
2434         that headers should appear first in the gtfiles list.
2436 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
2438         * tree.def (COND_EXEC): Properly documented this code.
2440 2008-05-16  Diego Novillo  <dnovillo@google.com>
2442         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
2443         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
2444         the new field.
2446 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
2448         * tree-ssa-dse (max_stmt_uid): Removed.
2449         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
2450         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
2451         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
2452         * function.h (cfun.last_stmt_uid): New field.
2453         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
2454         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
2455         New functions.
2456         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
2457         (create_stmt_ann): Initialize the ann->uid field.
2458         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
2459         with new calls.
2460         * tree-flow.h (renumber_gimple_stmt_uids): New function.
2462 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
2464         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
2465         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
2466         (init_empty_tree_cfg): Call it.
2468 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
2470         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
2471         Update all users.
2473 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
2475         * doc/invoke.text (-fdump-tree-*-verbose): New option.
2476         * tree-dump.c (dump_options): New verbose option.
2477         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
2478         Add verbose dump.
2479         * tree-pass.h (TDF_VERBOSE): New dump flag.
2480         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
2481         (tree-flow.h): Added include.
2482         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
2484 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
2486         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
2488         From Jie Zhang  <jie.zhang@analog.com>
2489         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2490         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
2491         mcpu=bf561-none and mcpu=bf561-0.2.
2492         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2493         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2494         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2495         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2496         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
2497         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
2498         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
2499         option.
2500         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
2501         (cputype_selected): Remove.
2502         (bfin_handle_option): Don't use cputype_selected.
2503         (override_options): When no mcpu option, enable all workarounds.
2504         Don't use bfin_workarounds.
2505         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
2506         processor type.
2507         (DEFAULT_CPU_TYPE): Don't define.
2509 2008-05-16  Richard Guenther  <rguenther@suse.de>
2511         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
2512         on deletion of the last stmt.
2514 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2516         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
2517         V8HImode for SSE2 and V16QImode for SSE4.1.
2519 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
2521         * cgraph.h (compute_inline_parameters): Made public.
2522         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
2523         variable_generate_summary, function_write_summary,
2524         variable_write_summary, variable_read_summary.  Added generate_summary,
2525         write_summary, read_summary.
2526         * cgraphunit.c (cgraph_process_new_functions): Changed call from
2527         pass_ipa_inline.function_generate_summary, to
2528         compute_inline_parameters. 
2529         * ipa-inline.c (compute_inline_parameters): Made public and added
2530         node parameter.
2531         (compute_inline_parameters_for_current): New function.
2532         (pass_inline_param): Now calls compute_inline_parameters_for_current.
2533         (inline_generate_summary): Removed parameter and made to loop over
2534         all cgraph nodes.
2535         (pass_ipa_inline): Updated for new IPA_PASS structure.
2536         * passes.c (execute_ipa_summary_passes): Now is called once per
2537         pass rather than once per node*pass.
2538         
2539 2008-05-15  Anatoly Sokolov <aesok@post.ru>
2541         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
2542         avr_have_mul_p, avr_asm_only_p): Remove variables.
2543         (avr_override_options): Remove initialization of removed variables.
2544         (avr_file_start):  Convert removed variables to fields of 
2545         'struct base_arch_s *avr_current_arch'. 
2546         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
2547         (AVR_HAVE_MUL): (Ditto.).
2548         (AVR_HAVE_MOVW): (Ditto.).
2549         (AVR_HAVE_LPMX): (Ditto.). 
2550         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
2551         avr_asm_only_p): Remove declaration.
2553 2008-05-15  Diego Novillo  <dnovillo@google.com>
2555         * config/arm/arm.c (arm_return_in_memory): Fix return type.
2556         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
2558 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
2560         PR middle-end/36194
2561         * combine.c (check_conversion): Rename back to check_promoted_subreg.
2562         Don't call record_truncated_value from here.
2563         (record_truncated_value): Turn it into a for_each_rtx callback.
2564         (record_truncated_values): New function.
2565         (combine_instructions): Call note_uses with record_truncated_values.
2566         Change name of check_conversion to check_promoted_subreg. 
2568 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
2570         * doc/sourcebuild.texi: Document support for torture tests.
2572 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
2574         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
2575         to alternative 4 of operand 2.
2577 2008-05-15  Richard Guenther  <rguenther@suse.de>
2579         * tree-pass.h (current_pass): Declare.
2580         (get_pass_for_id): Likewise.
2581         * passes.c (passes_by_id, passes_by_id_size): New globals.
2582         (set_pass_for_id): New function.
2583         (get_pass_for_id): Likewise.
2584         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
2585         (execute_function_todo): Flush per function statistics.
2586         * toplev.c (compile_file): Init statistics.
2587         (general_init): Do early statistics initialization.
2588         (finalize): Finish statistics.
2589         * statistics.h (statistics_early_init): Declare.
2590         (statistics_init): Likewise.
2591         (statistics_fini): Likewise.
2592         (statistics_fini_pass): Likewise.
2593         (statistics_counter_event): Likewise.
2594         (statistics_histogram_event): Likewise.
2595         * statistics.c: New file.
2596         * Makefile.in (OBJS-common): Add statistics.o.
2597         (statistics.o): Add dependencies.
2598         * doc/invoke.texi (-fdump-statistics): Document.
2600         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
2601         (insert): Likewise.
2602         (execute_pre): Use statistics_counter_event.
2603         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
2604         (substitute_and_fold): Increment it.  Use statistics_counter_event.
2606 2008-05-15  Diego Novillo  <dnovillo@google.com>
2608         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
2610         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
2611         * tree-ssa-alias.c (new_type_alias): Remove references to
2612         sub-variables from comment.
2613         * tree-ssa-operands.c (swap_tree_operands): Likewise.
2615 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2617         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
2618         attribute to 1 only for insertps alternative.
2620 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
2622         * config/bfin/bfin.md (loadbytes): New pattern.
2623         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
2624         (bfin_init_builtins): Initialize it.
2625         (bdesc_1arg): Add it.
2627 2008-05-15  Sa Liu  <saliu@de.ibm.com>
2629         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
2630         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
2631         * testsuite/lib/target-supports.exp: Add
2632         check_effective_target_fortran_integer_16.
2634 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
2636         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
2637         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
2638         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
2639         (TARGET_RETURN_IN_MEMORY): Define.
2641 2008-05-15  Richard Guenther  <rguenther@suse.de>
2643         PR middle-end/36244
2644         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
2645         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
2646         represent unmodifiable vars.
2648 2008-05-15  Richard Guenther  <rguenther@suse.de>
2650         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
2651         INDIRECT_REF and TARGET_MEM_REF.
2652         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2653         TARGET_MEM_REF.
2655 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
2656             H.J. Lu  <hongjiu.lu@intel.com>
2658         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
2659         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
2660         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
2661         insn alternatives.  Add missing alternatives.
2662         (*vec_concatv2di_rex64_sse4_1): Likewise.
2663         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
2664         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
2665         Require TARGET_SSE.
2667 2008-05-15  Richard Guenther  <rguenther@suse.de>
2669         PR tree-optimization/36009
2670         PR tree-optimization/36204
2671         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
2672         (determine_invariantness_stmt): Record the loop a store is
2673         always executed in.
2674         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
2675         dependency.
2677 2008-05-15  Richard Guenther  <rguenther@suse.de>
2679         PR tree-optimization/34330
2680         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
2681         through the pointer will alias the SMT.
2683 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
2685         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
2687 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2689         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
2691 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
2692             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
2694         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
2695         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
2696         (vashl_optab): New optab for vector/vector shifts.
2697         (vashr_optab): Ditto.
2698         (vlshr_optab): Ditto.
2699         (vrotl_optab): Ditto.
2700         (vrotr_optab): Ditto.
2701         (optab_subtype): New enum for optab_for_tree_code call.
2702         (optab_for_tree_code): Add enum optab_subtype argument.
2704         * optabs.c (optab_for_tree_code): Take an additional argument to
2705         distinguish between a vector shift by a scalar and vector shift by
2706         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
2707         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
2708         vector shift by a vector.
2709         (expand_widen_pattern_expr): Pass additional argument to
2710         optab_for_tree_code.
2712         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
2713         vrotl_optab, vrotr_optab.
2715         * expr.c (expand_expr_real_1): Update calls to
2716         optab_for_tree_code to distinguish between vector shifted by a
2717         scalar and vector shifted by a vector.
2718         * tree-vectorizer.c (supportable_widening_operation): Ditto.
2719         (supportable_narrowing_operation): Ditto.
2720         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
2721         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
2722         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
2723         (vect_create_epilog_for_reduction): Ditto.
2724         (vectorizable_reduction): Ditto.
2725         (vectorizable_operation): Ditto.
2726         (vect_strided_store_supported): Ditto.
2727         (vect_strided_load_supported): Ditto.
2728         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
2729         * expmed.c (expand_shift): Ditto.
2731         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
2732         scalar type.
2733         (ashr@var{m}3): Ditto.
2734         (vashl@var{m}3): Document new vector/vector shift standard name.
2735         (vashr@var{m}3): Ditto.
2736         (vlshr@var{m}3): Ditto.
2737         (vrotl@var{m}3): Ditto.
2738         (vrotr@var{m}3): Ditto.
2740         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
2741         (PPERM_INVERT): Ditto.
2742         (PPERM_REVERSE): Ditto.
2743         (PPERM_REV_INV): Ditto.
2744         (PPERM_ZERO): Ditto.
2745         (PPERM_ONES): Ditto.
2746         (PPERM_SIGN): Ditto.
2747         (PPERM_INV_SIGN): Ditto.
2748         (PPERM_SRC1): Ditto.
2749         (PPERM_SRC2): Ditto.
2751         * config/i386/sse.md (mulv2di3): Add SSE5 support.
2752         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
2753         allows a memory operand to be the value being added, and split it
2754         to improve vectorization.
2755         (sse5_pmacsdqh_mem): Ditto.
2756         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
2757         (sse5_mulv2div2di3_high): Ditto.
2758         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
2759         (vec_pack_trunc_v4si): Ditto.
2760         (vec_pack_trunc_v2di): Ditto.
2761         (sse5_pcmov_<mode>): Remove code that tried to use use
2762         andps/andnps instead of pcmov.
2763         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
2764         pmacsdqh instructions.
2765         (vec_widen_smult_lo_v4si): Ditto.
2767         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
2768         (PPERM_INVERT): Ditto.
2769         (PPERM_REVERSE): Ditto.
2770         (PPERM_REV_INV): Ditto.
2771         (PPERM_ZERO): Ditto.
2772         (PPERM_ONES): Ditto.
2773         (PPERM_SIGN): Ditto.
2774         (PPERM_INV_SIGN): Ditto.
2775         (PPERM_SRC1): Ditto.
2776         (PPERM_SRC2): Ditto.
2777         (ix86_expand_sse_movcc): Move the SSE5 test after the if
2778         true/false tests.
2779         (ix86_expand_int_vcond): If SSE5 generate all possible integer
2780         comparisons.
2781         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
2782         says ignore whether the last reference is a memory operand.
2784 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
2785             Paolo Bonzini <bonzini at gnu dot org>
2787         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
2788         shift patterns.
2790         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
2791         (vlshr<mode>3): Rename from vlshr<mode>3.
2792         (vashr<mode>3): Rename from vashr<mode>3.
2793         (mulv4sf3): Change the names of vector shift patterns.
2794         (mulv4si3): Ditto.
2795         (negv4sf2): Ditt.
2797         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
2798         shift insns.
2800         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
2801         (SI_SHLHI): Ditto.
2802         (SI_SHL): Ditto.
2803         (SI_SHLI): Ditto.
2804         (SI_ROTH): Ditto.
2805         (SI_ROTHI): Ditto.
2806         (SI_ROT): Ditto.
2807         (SI_ROTI): Ditto.
2808         (SPU_RL_0): Ditto.
2809         (SPU_RL_1): Ditto.
2810         (SPU_RL_2): Ditto.
2811         (SPU_RL_3): Ditto.
2812         (SPU_RL_4): Ditto.
2813         (SPU_RL_5): Ditto.
2814         (SPU_RL_6): Ditto.
2815         (SPU_RL_7): Ditto.
2816         (SPU_SL_0): Ditto.
2817         (SPU_SL_1): Ditto.
2818         (SPU_SL_2): Ditto.
2819         (SPU_SL_3): Ditto.
2820         (SPU_SL_4): Ditto.
2821         (SPU_SL_5): Ditto.
2822         (SPU_SL_6): Ditto.
2823         (SPU_SL_7): Ditto.
2825         * config/spu/spu.md (v): New iterator macro to add v for vector types.
2826         (floatunssidf2_internal): Change vector/vector shift names.
2827         (floatunsdidf2_internal): Ditto.
2828         (mulv8hi3): Ditto.
2829         (ashrdi3): Ditto.
2830         (ashrti3): Ditto.
2831         (cgt_df): Ditto.
2832         (cgt_v2df): Ditto.
2833         (dftsv): Ditto.
2834         (vashl<mode>3): Rename from ashl<mode>3.
2835         (vashr<mode>3): Rename from ashr<mode>3.
2836         (vlshr<mode>3): Rename from lshr<mode>3.
2837         (vrotl<mode>3): Rename from rotl<mode>3.
2839 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
2841         PR target/36224
2842         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
2843         multiply gives the wrong value when doing widening multiplies.
2844         (vec_widen_smult_lo_v4si): Ditto.
2846 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
2848         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
2849         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
2850         emit_library_call_value. 
2851         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
2852         * tree.h (ECF_LIBCALL_BLOCK): Removed.
2853         * calls.c (initialize_argument_information, precompute_arguments, 
2854         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
2855         (precompute_arguments): Removed flags parameter.
2856         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
2857         
2858 2008-05-14  Richard Guenther  <rguenther@suse.de>
2860         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
2861         Make sure to register the store if the use is a PHI_NODE.
2863 2008-05-14  Olivier Hainque  <hainque@adacore.com>
2865         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
2866         memory if the component is to be referenced in BLKmode according
2867         to get_inner_reference.
2869 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
2871         * calls.c (emit_library_call_value_1): Restore code clearing
2872         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
2874 2008-05-14  Olivier Hainque  <hainque@adacore.com>
2875             Nicolas Roche  <roche@adacore.com>
2877         * configure.ac: Add support for a "gcc_subdir" variable in
2878         config-lang.in, to denote a subdirectory where the language/GCC
2879         integration files are to be found.
2880         * configure: Regenerate.
2882 2008-05-14  Ira Rosen  <irar@il.ibm.com>
2884         PR tree-optimization/36098
2885         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
2886         value for the first load in the group in case of a gap.
2887         (vect_build_slp_tree): Check that there are no gaps in loads.
2889 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
2891         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
2892         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
2893         expand_copysign_bit, ): Change call to emit_no_conflict_block to
2894         emit_insn and remove unneeded code to construct extra args.
2895         (emit_no_conflict_block): Removed.
2896         * optabls.h: (emit_no_conflict_block): Removed.
2897         * cse.c (cse_extended_basic_block): Remove search for
2898         REG_NO_CONFLICT note.
2899         * global.c: Removed incorrect comment added in revision 117.
2900         * expr.c (convert_move): Change call to emit_no_conflict_block to
2901         emit_insn.
2902         * recog.c: Change comments so that they do not mention
2903         REG_NO_CONFLICT.
2904         * local_alloc.c (combine_regs): Removed last parameter.
2905         (no_conflict_p): Removed.
2906         (block_alloc): Removed note, no_conflict_combined_regno and set
2907         local vars. Removed all code to process REG_NO_CONFLICT blocks.
2908         (combine_regs): Removed already_dead and code to look for
2909         REG_NO_CONFLICT notes.
2910         * lower_subreg (remove_retval_note): Removed code to look for
2911         REG_NO_CONFLICT block.
2912         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
2913         (resolve_clobber): Remove code to process libcalls that have
2914         REG_NO_CONFLICT notes.
2915         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
2916         case.
2917         * combine.c (can_combine_p, distribute_notes):  Removed
2918         REG_NO_CONFLICT case.
2919         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
2920         to emit_insns.
2921         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
2922         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
2923         Ditto.
2924         * reg-notes.def (NO_CONFLICT): Removed.
2926 2008-05-14  David S. Miller  <davem@davemloft.net>
2928         * config/sparc/sparc.c (sparc_profile_hook): If
2929         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
2930         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
2931         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
2933 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
2935         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
2937 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
2939         PR target/36222
2940         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
2941         and op1 expansion before vector concat to have less live pseudos.
2943 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2945         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
2946         ix86_expand_vector_set if supported.
2948 2008-05-13  Diego Novillo  <dnovillo@google.com>
2949             Kenneth Zadeck  <zadeck@naturalbridge.com>
2951         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
2953         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
2954         phinodes_print_statistics, init_ssanames, fini_ssanames,
2955         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
2956         release_ssa_name, release_defs, replace_ssa_name_symbol,
2957         ssanames_print_statistics): Move ...
2958         * tree-flow.h: ... here.
2959         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
2960         Use FN instead of cfun.
2961         (make_ssa_name_fn): Rename from make_ssa_name.
2962         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
2963         * tree-flow-inline.h (make_ssa_name): Move from
2964         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
2965         * omp-low.c (expand_omp_parallel):
2966         * tree-flow-inline.h (redirect_edge_var_map_result):
2967         * tree-ssa.c (init_tree_ssa): Add argument FN.
2968         Use it instead of cfun.  Update all users.
2970 2008-05-13  Tom Tromey  <tromey@redhat.com>
2972         PR preprocessor/22168:
2973         * doc/cpp.texi (Top): Update menu.
2974         (Alternatives to Wrapper #ifndef): New node.
2975         (Other Directives): Document deprecation.
2976         (Obsolete Features): Remove menu.
2977         (Assertions): Merge node into Obsolete Features.
2978         (Obsolete once-only headers): Move earlier; rename to Alternatives
2979         to Wrapper #ifndef.
2980         * doc/cppopts.texi: Update.
2981         * c.opt (Wdeprecated): Enable for C and ObjC.
2982         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
2983         (C++ Dialect Options): Move -Wno-deprecated from here to...
2984         (Warning Options): ... here.
2986 2008-05-13  Richard Guenther  <rguenther@suse.de>
2988         PR middle-end/36227
2989         * fold-const.c (fold_sign_changed_comparison): Do not allow
2990         changes in pointer-ness.
2992 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
2994         PR target/24713
2995         * config/sh/sh.c (sh_expand_prologue): Don't clear
2996         RTX_FRAME_RELATED_P for push insns.
2998 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
3000         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
3002 2008-05-12  Anatoly Sokolov <aesok@post.ru>
3004         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
3005         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
3006         Use 'machine->is_leaf' instead of 'leaf_func_p'.
3008 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
3010         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
3011         (*vec_concatv4sf_sse): This.
3012         (*sse2_concatv2si): Renamed to ...
3013         (*vec_concatv2si_sse2): This.
3014         (*sse1_concatv2si): Renamed to ...
3015         (*vec_concatv2si_sse): This.
3016         (*vec_concatv2di_rex): Renamed to ...
3017         (*vec_concatv2di_rex64): This.
3018         (*vec_concatv2si_sse4_1): New.
3019         (*vec_concatv2di_rex64_sse4_1): Likewise.
3021 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
3023         PR rtl-optimization/36111
3024         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
3025         that was created for swappable operands.
3027 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
3029         PR ada/36001
3030         * Makefile.in: Substitute GNATMAKE and GNATBIND.
3031         * configure.ac: Add call to ACX_PROG_GNAT.
3033 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
3035         * optc-gen.awk: Fix comment typo.
3037 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3039         * pretty-print.c (pp_integer_with_precision): Use
3040         HOST_LONG_LONG_FORMAT.
3042 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
3044         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
3045                 
3046 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3048         * config/i386/i386.c (bdesc_ptest): Removed.
3049         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
3050         (bdesc_args): Add __builtin_ia32_ptestz128,
3051         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
3052         (ix86_init_mmx_sse_builtins): Updated.
3053         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
3054         (ix86_expand_builtin): Updated.
3056 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
3058         * tree-cfg.c (valid_fixed_convert_types_p): New function.
3059         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
3061 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
3063         * value-prof.c (interesting_stringop_to_profile): Do not
3064         return early for BUILT_IN_MEMPCPY.
3066 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3068         * calls.c (expand_call): Don't use callgraph to increase
3069         preferred_stack_boundary.
3071         * cgraph.h (cgraph_rtl_info): Use unsigned on
3072         preferred_incoming_stack_boundary.
3074         * final.c (rest_of_clean_state): Use unsigned on
3075         preferred_stack_boundary.
3077 2008-05-09  Tom Tromey  <tromey@redhat.com>
3079         PR preprocessor/22231:
3080         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
3081         proceeding.
3083 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
3085         PR tree-optimization/36129
3086         * tree-ssa-ccp.c: Include value-prof.h.
3087         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
3088         built-in function was folded to a constant.
3089         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
3091 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
3092             Sebastian Pop  <sebastian.pop@amd.com>
3094         * tree-scalar-evolution.c: Document instantiate_scev.
3095         (instantiate_parameters_1): Renamed instantiate_scev_1.
3096         Don't use the same loop for instantiation_loop and evolution_loop.
3097         (instantiate_scev): New.
3098         (instantiate_parameters): Moved...
3099         (resolve_mixers): Update call to instantiate_scev_1 to pass the
3100         same loop twice.  Maintains the semantics for this function.
3101         * tree-scalar-evolution.h (instantiate_scev): Declare.
3102         (instantiate_parameters): ...here.  Now static inline.
3103         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
3104         instead of resolve_mixers.
3106 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
3108         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
3110 2008-05-09  Tomas Bily  <tbily@suse.cz>
3112         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
3113         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
3114         * tree-ssa-structalias.c (get_constraint_for): Likewise.
3115         * c-common.c (c_common_truthvalue_conversion): Likewise.
3116         * tree-object-size.c (compute_object_offset): Likewise.
3117         * tree-inline.c (estimate_num_insns_1): Likewise.
3118         * varasm.c (const_hash_1, compare_constant, copy_constant)
3119         (compute_reloc_for_constant, output_addressed_constants)
3120         (initializer_constant_valid_p): Likewise.
3121         * c-omp.c (check_omp_for_incr_expr): Likewise.
3122         * gimplify.c (gimplify_expr): Likewise.
3123         * c-typeck.c (c_finish_return): Likewise.
3124         * tree-vectorizer.c (supportable_widening_operation)
3125         (supportable_narrowing_operation): Likewise.
3126         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
3127         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
3128         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
3129         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
3130         (descr_info_loc): Likewise.
3131         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
3132         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
3133         (fold_unary): Likewise.
3134         * builtins.c (get_pointer_alignment): Likewise.
3135         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
3136         (instantiate_parameters_1): Likewise.
3137         * tree.c (expr_align, stabilize_reference): Likewise.
3138         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
3139         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
3140         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
3141         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
3142         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
3143         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
3144         Likewise.
3145         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
3146         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
3147         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
3148         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
3149         (forward_propagate_comparison)
3150         (tree_ssa_forward_propagate_single_use_vars): Likewise.
3151         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
3152         * emit-rtl.c (component_ref_for_mem_expr)
3153         (set_mem_attributes_minus_bitpos): Likewise.
3154         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
3155         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
3156         Likewise.
3157         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
3158         (build_function_call, pointer_diff, build_compound_expr)
3159         (c_finish_return): Likewise.
3160         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
3161         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
3162         Likewise.
3163         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
3164         * expr.c (is_aligning_offset): Likewise.
3165         * tree-ssa-alias.c (is_escape_site): Likewise.
3166         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
3167         (check_all_va_list_escapes): Likewise.
3168         * tree-ssa-loop-ivopts.c (determine_base_object)
3169         (determine_common_wider_type): Likewise.
3170         * dojump.c (do_jump): Likewise.
3171         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
3172         * tree-gimple.c (is_gimple_cast): Likewise.
3173         * fold-const.c (decode_field_reference, )
3174         (fold_sign_changed_comparison, fold_unary, fold_comparison)
3175         (fold_binary): Likewise.
3176         * tree-ssa-alias-warnings.c (find_alias_site_helper)
3177         (already_warned_in_frontend_p): Likewise.
3178         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
3179         * tree.c (really_constant_p, get_unwidened): Likewise.
3180         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
3181         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
3182         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
3183         Likewise.
3184         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
3185         CONVERT_EXPR_P.
3186         (CONVERT_EXPR_P): Define.
3187         (CASE_CONVERT): Define.
3188         
3189 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
3191         PR middle-end/36117
3192         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
3193         (delete_unmarked_insns): When deleting a call, call
3194         delete_unreachable_blocks.
3195         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
3196         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
3198 2008-05-08  Richard Guenther  <rguenther@suse.de>
3200         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
3201         (-ftree-salias): Likewise.
3202         (salias-max-implicit-fields): Remove param documentation.
3203         (salias-max-array-elements): Likewise.
3204         * tree-pass.h (pass_create_structure_vars): Remove.
3205         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
3206         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3207         * tree-ssa-alias.c (create_structure_vars): Remove.
3208         (gate_structure_vars): Likewise.
3209         (pass_create_structure_vars): Likewise.
3210         (gate_build_alias): Likewise.
3211         (pass_build_alias): Adjust to run always and dump the function.
3212         * common.opt (ftree-salias): Hide.
3213         * passes.c (init_optimization_passes): Remove
3214         pass_create_structure_vars, adjust comment.
3215         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
3216         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3217         * opts.c (decode_options): Do not set flag_tree_salias.
3218         (common_handle_option): Add OPT_ftree_salias to the backward
3219         compatibility section.
3221 2008-05-08  Richard Guenther  <rguenther@suse.de>
3223         * tree-flow-inline.h (var_can_have_subvars): Move ...
3224         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
3225         * tree-flow.h (var_can_have_subvars): Remove.
3226         (push_fields_onto_fieldstack): Remove.
3227         (sort_fieldstack): Likewise.
3228         (struct fieldoff): Move ...
3229         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
3230         alias_set and base_for_components fields.
3231         (sort_fieldstack): Make static.
3232         (push_fields_onto_fieldstack): Likewise.  Remove code that
3233         handles anything but RECORD_TYPEs.  Remove alias_set and
3234         base_for_components handling.
3235         (create_variable_info_for): Adjust.
3237 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
3239         * common.opt (Wframe-larger-than=): Shorten the help message
3240         to one line.
3241         * doc/invoke.texi (Wframe-larger-than=): Add more description.
3243 2008-05-08  Rafael Espindola  <espindola@google.com>
3245         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
3246         trap.
3247         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
3248         trap and that both operands are gimple values.
3249         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
3250         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
3251         is a fp operation.
3253 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
3255         * read-rtl.c (join_c_conditions): Return the first string if the
3256         two strings are equal.
3258 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
3260         * gensupport.h (pred_data): Add a "num_codes" field.
3261         (add_predicate_code): Declare.
3262         * gensupport.c (add_predicate_code): New function.
3263         (std_pred_table): Add an "allows_const_p" field.
3264         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
3265         Remove the (incomplete) list of such codes from the codes field.
3266         (init_predicate_table): Use add_predicate_code.  Add all
3267         RTX_CONST_OBJs if allows_const_p is true.
3268         * genrecog.c (process_define_predicate): Use add_predicate_code.
3270 2008-05-08  David Daney  <ddaney@avtrex.com>
3271             Richard Sandiford  <rsandifo@nildram.co.uk>
3272         
3273         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
3274         special case of constant zero operands.
3275         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
3276         old and new values.  Special case constant zero values.
3277         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
3278         fails.
3279         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
3280         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
3282 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
3284         PR target/36090
3285         * simplify-rtx.c (simplify_plus_minus): Create CONST of
3286         similar RTX_CONST_OBJ before CONST_INT.
3288 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
3290         * stmt.c (expand_stack_restore): Change sa mode if needed.
3292 2008-05-08  Richard Guenther  <rguenther@suse.de>
3294         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
3295         return type to bool.
3296         (ix86_sol10_return_in_memory): Likewise.
3297         (ix86_i386elf_return_in_memory): Likewise.
3298         (ix86_i386interix_return_in_memory): Likewise.
3299         * config/i386/i386.c (ix86_return_in_memory): Likewise.
3300         (ix86_sol10_return_in_memory): Likewise.
3301         (ix86_i386elf_return_in_memory): Likewise.
3302         (ix86_i386interix_return_in_memory): Likewise.
3304 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
3306         PR bootstrap/36180
3307         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
3308         fndecl argument.
3309         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
3310         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
3311         declared in front.
3313 2008-05-08  Richard Guenther  <rguenther@suse.de>
3315         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
3316         * tree-data-ref.h (struct dr_alias): Remove subvars field.
3317         (DR_SUBVARS): Remove.
3318         * tree-dfa.c (dump_subvars_for): Remove.
3319         (debug_subvars_for): Likewise.
3320         (dump_variable): Do not dump subvars.
3321         (remove_referenced_var): Do not remove subvars.
3322         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
3323         (lookup_subvars_for_var): Remove.
3324         (get_subvars_for_var): Likewise.
3325         (get_subvars_at): Likewise.
3326         (get_first_overlapping_subvar): Likewise.
3327         (overlap_subvar): Likewise.
3328         * tree-flow.h (subvar_t): Remove.
3329         (struct var_ann_d): Remove subvars field.
3330         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
3331         argument.  Remove special handling of SFTs.
3332         (compute_tag_properties): Likewise.
3333         (set_initial_properties): Likewise.
3334         (compute_call_clobbered): Likewise.
3335         (count_mem_refs): Likewise.
3336         (compute_memory_partitions): Likewise.
3337         (compute_flow_insensitive_aliasing): Likewise.
3338         (setup_pointers_and_addressables): Likewise.
3339         (new_type_alias): Likewise.
3340         (struct used_part): Remove.
3341         (used_portions): Likewise.
3342         (struct used_part_map): Likewise.
3343         (used_part_map_eq): Likewise.
3344         (used_part_map_hash): Likewise.
3345         (free_used_part_map): Likewise.
3346         (up_lookup): Likewise.
3347         (up_insert): Likewise.
3348         (get_or_create_used_part_for): Likewise.
3349         (create_sft): Likewise.
3350         (create_overlap_variables_for): Likewise.
3351         (find_used_portions): Likewise.
3352         (create_structure_vars): Likewise.
3353         * tree.def (STRUCT_FIELD_TAG): Remove.
3354         * tree.h (MTAG_P): Adjust.
3355         (struct tree_memory_tag): Remove base_for_components and
3356         unpartitionable flags.
3357         (struct tree_struct_field_tag): Remove.
3358         (SFT_PARENT_VAR): Likewise.
3359         (SFT_OFFSET): Likewise.
3360         (SFT_SIZE): Likewise.
3361         (SFT_NONADDRESSABLE_P): Likewise.
3362         (SFT_ALIAS_SET): Likewise.
3363         (SFT_UNPARTITIONABLE_P): Likewise.
3364         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
3365         (union tree_node): Remove sft field.
3366         * alias.c (get_alias_set): Remove special handling of SFTs.
3367         * print-tree.c (print_node): Remove handling of SFTs.
3368         * tree-dump.c (dequeue_and_dump): Likewise.
3369         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
3370         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
3371         * tree-predcom.c (set_alias_info): Do not set subvars.
3372         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
3373         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
3374         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
3375         (add_vars_for_offset): Remove.
3376         (add_virtual_operand): Remove special handling of SFTs.
3377         (add_call_clobber_ops): Likewise.
3378         (add_call_read_ops): Likewise.
3379         (get_asm_expr_operands): Likewise.
3380         (get_modify_stmt_operands): Likewise.
3381         (get_expr_operands): Likewise.
3382         (add_to_addressable_set): Likewise.
3383         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
3384         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
3385         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
3386         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
3387         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
3388         (tree_node_structure): Likewise.
3389         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
3390         handling of SFTs.
3391         (find_what_p_points_to): Likewise.
3393 2008-05-08  Sa Liu  <saliu@de.ibm.com>
3395         * config/spu/spu.md: Fixed subti3 pattern.
3397 2008-05-08  Richard Guenther  <rguenther@suse.de>
3399         PR middle-end/36154
3400         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
3401         sure to create a representative for trailing arrays for PTA.
3403 2008-05-08  Richard Guenther  <rguenther@suse.de>
3405         PR middle-end/36172
3406         * fold-const.c (operand_equal_p): Two objects which types
3407         differ in pointerness are not equal.
3409 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
3411         * calls.c (compute_argument_block_size): Add argument tree fndecl.
3412         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
3413         (emit_library_call_value_1): Add new variable fndecl initialized by
3414         NULL_TREE. It should be the decl type of orgfun, but this information
3415         seems not to be available here, so it uses the default calling abi.
3416         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
3417         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
3418         by TARGET_RETURN_IN_MEMORY.
3419         * config/i386/i386-interix.h: Likewise.
3420         * config/i386/i386.h: Likewise.
3421         * config/i386/i386elf.h: Likewise.
3422         * config/i386/ptx4-i.h: Likewise.
3423         * config/i386/sol2-10.h: Likewise.
3424         * config/i386/sysv4.h: Likewise.
3425         * config/i386/vx-common.h: Likewise.
3426         * config/cris/cris.h: Removed #if 0 clause.
3427         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
3428         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
3429         argument.
3430         (ix86_sol10_return_in_memory): Likewise.
3431         (ix86_i386elf_return_in_memory): New.
3432         (ix86_i386interix_return_in_memory): New.
3433         * config/mt/mt-protos.h (mt_return_in_memory): New.
3434         * config/mt/mt.c: Likewise.
3435         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3436         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
3437         * config/bfin/bfin.h: Likewise.
3438         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
3439         argument.
3440         * config/bfin/bfin.c: Likewise.
3441         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3442         * config/alpha/unicosmk.h: Likewise.
3443         * config/i386/cygming.h: Likewise.
3444         * config/iq2000/iq2000.h: Likewise.
3445         * config/mips/mips.h: Likewise.
3446         * config/mn10300/mn10300.h: Likewise.
3447         * config/rs6000/rs6000.h: Likewise.
3448         * config/score/score.h: Likewise.
3449         * config/spu/spu.h: Likewise.
3450         * config/v850/v850.h: Likewise.
3451         * defaults.h: Likewise.
3452         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
3453         * expr.c (emit_block_move): Adjust use of
3454         OUTGOING_REG_PARM_STACK_SPACE.
3455         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
3456         OUTGOING_REG_PARM_STACK_SPACE.
3457         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
3459 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
3461         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
3462         on OMP_RETURN for OMP_FOR.
3464         PR debug/35896
3465         * dwarf2out.c (dw_expand_expr, common_check): Removed.
3466         (fortran_common): New function.
3467         (gen_variable_die): Call fortran_common instead of common_check,
3468         adjust for it returning tree instead of rtx.  Formatting.
3470 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
3472         PR rtl/7335
3473         PR rtl/33826
3474         * see.c (see_copy_insn): Copy new pure const attributes for new call.
3475         * c-decl.c (merge_decls): Ditto.
3476         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
3477         to RTL_CONST_OR_PURE_CALL_P.
3478         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
3479         Initialized DECL_LOOPING_CONST_PURE.
3480         (process_call_operands): Set tree_side_effects properly.
3481         * tree.h (TREE_READONLY_DECL_P): Removed.
3482         (DECL_IS_PURE): Renamed to DECL_PURE_P.
3483         (DECL_LOOPING_OR_CONST_P): New macro.
3484         (struct tree_function_decl): Added looping_const_or_pure_p.
3485         (ECF_*) Renumbered.
3486         (ECF_LOOPING_OR_CONST_P): New macro.
3487         * rtlanal.c (pure_const_p): Removed.
3488         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
3489         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
3490         to RTL_CONST_CALL_P.
3491         * ipa-pure-const.c (pure_const_state_e): Added looping field.
3492         (check_decl, check_tree, check_call, scan_function): Initialize
3493         looping.
3494         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
3495         (static_execute): Set looping true for recursive functions.
3496         Undo setting state to IPA_NEITHER for recursive functions.
3497         * cse.c (cse_insn): 
3498         * ifcvt.c (noce_can_store_speculate_p): Changed
3499         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
3500         RTL_CONST_OR_PURE_CALL_P.
3501         * dse.c (scan_insn): Ditto.
3502         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
3503         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
3504         RTL_CONST_OR_PURE_CALL_P.
3505         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
3506         pure_call_p to RTL_CONST_CALL_P.
3507         * gimplify.c (gimplify_call_expr): Clear side effects for
3508         non-looping pure and constant calls.
3509         * calls.c (emit_call_1): Set rtl flags from ecf flags.
3510         (flags_from_decl_or_type): Set ecf flags from decl flags.
3511         (initialize_argument_information): Turn off
3512         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
3513         Change const to pure if callee_copies is true rather than just
3514         turning off const.
3515         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
3516         way of marking pure calls.
3517         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
3518         Remove hack that was supposed to fix pr7335 and remove old
3519         way of marking pure calls.
3520         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
3521         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
3522         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
3523         RTL_CONST_OR_PURE_CALL_P.
3524         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
3525         * loop-invariant.c (find_exits, find_invariant_bb): Changed
3526         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
3527         * sched-deps.c (schedule_analyze): Ditto.
3528         * rtl.h (struct rtx_def): Use call field, unchanging field, and
3529         return_val field of calls to represent pure and const function info.
3530         (CONST_OR_PURE_CALL_P): Deleted macro.
3531         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
3532         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
3533         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
3534         TREE_READONLY.
3535         * tree-optimize.c (execute_fixup_cfg): Added test for
3536         ECF_LOOPING_CONST_OR_PURE.
3537         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
3538         DECL_PURE_P.
3539         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
3540         effects for looping pure or const calls.
3541         (verify_gimple_expr): Added verification code. 
3542         * config/alpha/alpha.c (alpha_legitimize_address,
3543         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
3544         RTL_CONST_CALL_P.
3545         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
3546         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
3547         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
3548         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
3549         RTL_CONST_OR_PURE_CALL_P.
3550         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
3551         and const calls to be deleted.
3553 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
3555         PR target/35714
3556         * config/i386/mmx.md (mmx_subv2sf3): New expander.
3557         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
3558         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
3559         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
3560         to handle nonimmediate operands.
3561         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
3562         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
3563         to handle nonimmediate operands.
3564         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
3565         (mmx_pmulhrwv4hi3): New expander.  Use
3566         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3567         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
3568         (sse2_umulv1siv1di3): New expander.  Use
3569         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3570         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
3571         (mmx_eq<mode>3): New expander.  Use
3572         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3573         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
3574         (mmx_uavgv8qi3): New expander.  Use
3575         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3576         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
3577         (mmx_uavgv4hi3): New expander.  Use
3578         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3580         * config/i386/sse.md
3581         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
3582         to handle nonimmediate operands.
3583         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
3584         to handle nonimmediate operands.
3585         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
3586         to handle nonimmediate operands.
3587         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
3588         to handle nonimmediate operands.
3589         (sse2_unpckhpd_exp): New expander.  Use
3590         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3591         (sse2_unpcklpd_exp): New expander.  Use
3592         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3593         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
3594         to handle nonimmediate operands.
3595         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
3596         to handle nonimmediate operands.
3597         (*sse2_<plusminus_insn><mode>3): Rename from
3598         sse2_<plusminus_insn><mode>3 insn pattern.
3599         (sse2_<plusminus_insn><mode>3): New expander.  Use
3600         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3601         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
3602         (sse2_umulv2siv2di3): New expander.  Use
3603         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3604         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
3605         (sse4_1_mulv2siv2di3): New expander.  Use
3606         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3607         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
3608         (sse2_pmaddwd): New expander.  Use
3609         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3610         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
3611         (sse2_eq<mode>3): New expander.  Use
3612         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3613         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
3614         (sse4_1_eqv2di3): New expander.  Use
3615         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3616         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3617         (sse2_uavgv16qi3): New expander.  Use
3618         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3619         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3620         (sse2_uavgv16qi3): New expander.  Use
3621         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3622         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
3623         (sse2_uavgv8hi3): New expander.  Use
3624         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3625         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
3626         (ssse3_pmulhrswv8hi3): New expander.  Use
3627         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3628         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
3629         (ssse3_pmulhrswv4hi3): New expander.  Use
3630         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3632         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
3633         (<sse>_vmmul<mode>3): Ditto.
3634         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
3635         (divv2df3): Ditto.
3636         (ssse3_pmaddubsw128): Use register_operand for operand 1.
3637         (ssse3_pmaddubsw): Ditto.
3639         * config/i386/i386.c (struct_builtin_description)
3640         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
3641         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
3642         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
3643         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
3644         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
3645         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
3646         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
3647         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
3648         (ix86_fixup_binary_operands): Assert that src1
3649         and src2 must have the same mode when swapped.
3650         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
3651         and ix86_binary_operator_ok.  Do not force operands in registers
3652         when optimizing.
3654 2008-05-07  Jan Hubicka  <jh@suse.cz>
3656         * cgraph.c (dump_cgraph_node): Update.
3657         * cgraph.h (cgraph_local_info): Break out inline summary.
3658         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
3659         hook.
3660         * ipa-inline (inline_summary): New accestor function.
3661         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
3662         cgraph_decide_inlining, compute_inline_parameters): Update.
3663         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
3665 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
3667         Cleanup ColdFire scheduling support and add V4 pipeline model.
3669         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
3670         (define_attr cpu): Add cfv4 value.
3671         (define_attr type, define_attr type1): Merge into a single 'type'
3672         attribute.  Update all uses.
3673         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
3674         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
3675         Update all uses.
3676         (define_attr opx_mem, define_attr opy_mem): Remove.
3677         (define_attr op_mem): Clean up, update comment.
3678         (define_attr size): Use specific values instead of general int.
3679         (define_attr guess, define_attr split): Remove.  Update all uses.
3680         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
3681         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
3682         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
3683         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
3684         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
3685         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
3686         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
3687         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
3688         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
3689         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
3690         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
3691         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
3692         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
3693         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
3694         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
3695         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
3696         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
3697         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
3698         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
3699         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
3700         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
3701         Update or set attributes.
3702         (stack_tie): New fake instruction.
3704         * config/m68k/m68k.h (TUNE_CFV4): New macro.
3705         (m68k_sched_attr_size): Update declaration.
3706         (m68k_sched_attr_type2): Remove.
3707         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
3708         Declare new bypass predicates.
3710         * config/m68k/m68k.c (m68k_sched_issue_rate,
3711         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
3712         implementations.
3713         (TARGET_SCHED_ISSUE_RATE,
3714         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
3715         (override_options): Handle scheduling for ColdFire V4 core.
3716         (m68k_expand_prologue): Emit stack_tie.
3717         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
3718         'OP_TYPE_FPN'.  Update all uses.
3719         (sched_guess_p): Remove.
3720         (sched_address_type): Handle symbolic addresses.
3721         (sched_get_operand): New static function.
3722         (sched_operand_type): Merge into sched_attr_op_type.
3723         (sched_attr_op_type): Handle FP registers, handle quick constants,
3724         update.
3725         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
3726         (m68k_sched_attr_size): Update.  Move logic to ...
3727         (sched_get_attr_size_int): New static function.
3728         (sched_get_opxy_mem_type): New static function.
3729         (m68k_sched_attr_op_mem): Update.
3730         (m68k_sched_attr_type2): Remove.
3731         (sched_cfv4_bypass_data): New static variable.
3732         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
3733         (m68k_sched_issue_rate): Implement scheduler hook.
3734         (struct _sched_ib: enabled_p): New field.
3735         (m68k_sched_variable_issue): Update.  Handle V4.
3736         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
3737         sched_dump_class_func_t, sched_dump_split_class,
3738         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
3739         sched_dump_dfa_class, m68k_sched_dump): Remove.
3740         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
3741         hook.
3742         (m68k_sched_init_global): Remove statisctics dumping, introduce
3743         sanity check that all instructions have pipeline reservations.  Handle
3744         ColdFire V4 core.
3745         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
3746         Handle ColdFire V4 core.
3747         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
3748         New static functions.
3749         (m68k_sched_address_bypass_p): New bypass predicate.
3750         (sched_get_indexed_address_scale): New static function.
3751         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
3753         * cf.md: Update comments.
3754         (define_attr type2): Remove.  Use 'type' attribute instead.
3755         Update all uses.
3756         (cf_ib): Rename to cfv123_ib.  Update all uses.
3757         (cf_oep): Rename to cfv123_oep.  Update all uses.
3758         (cf_chr): Rename to cfv123_chr.  Update all uses.
3759         (cf_mem): Rename to cfv123_mem.  Update all uses.
3760         (cf_mac): Move to more appropriate place.
3761         (cfv123_guess): New automaton and cpu_unit.
3762         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
3763         Update uses of 'size' attribute.  Handle before reload scheduling.
3764         (cfv123_guess): New dummy reservation for unhandled instructions.
3765         (cfv4_*): Pipeline description of ColdFire V4 core.
3766         (ignore): New reservation to handle 'ignore' type.
3768 2008-05-07  Ian Lance Taylor  <iant@google.com>
3770         PR middle-end/36013
3771         * gimplify.c (find_single_pointer_decl_1): Don't look through
3772         indirections.
3773         (find_single_pointer_decl): Adjust comments.
3775 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
3777         PR middle-end/36137
3778         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
3779         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
3781         PR middle-end/36106
3782         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
3783         integral type rather than floating point, then VIEW_CONVERT_EXPR
3784         to the floating point type.
3786 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
3788         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
3789         TFmode op0 to register.
3791 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
3793         * c-decl.c (grokdeclarator): Comment typo.
3795 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
3797         * tree-flow.h: Remove prototype for computed_goto_p.
3798         * tree-cfg.c (computed_goto_p): Make static.
3800 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
3802         PR target/35657
3803         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
3804         (contains_aligned_value_p): This.  Handle _Decimal128.
3805         (ix86_function_arg_boundary): Only align _Decimal128 to its
3806         natural boundary and handle it properly.
3808 2008-05-06  Martin Jambor  <mjambor@suse.cz>
3810         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
3811         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
3812         (ipcp_method_set_orig_node): Removed.
3813         (ipcp_cval_get_cvalue_type): Removed.
3814         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
3815         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
3816         (ipcp_cval_set_cvalue_type): Removed.
3817         (ipcp_cval_get_cvalue): Removed.
3818         (ipcp_cval_set_cvalue): Removed.
3819         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
3820         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
3821         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
3822         (ipcp_cval_meet): Renamed to ipa_lattice_meet
3823         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
3824         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
3825         (ipcp_get_ith_lattice): Changed parameters.
3826         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
3827         (ipcp_lattice_from_jfunc): Changed parameters.
3828         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
3829         (ipcp_method_cval_print): Added temporary variable info.
3830         (ipcp_redirect): Removed already unused local variable caller.
3831         (ipcp_redirect): New temporary variable orig_callee_info
3832         (ipcp_redirect): Removed newly unused local variable callee.
3833         (ipcp_redirect): Removed (a bit confusing) local variable type.
3834         (ipcp_insert_stage): Added local variable info.
3835         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
3836         renamed too
3837         (ipcp_formal_create): Removed.
3838         (ipcp_method_cval_set): Removed.
3839         (ipcp_propagate_stage): Renamed lattice variables.
3840         (ipcp_method_cval_set_cvalue_type): Removed.
3841         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
3842         (ipcp_print_all_lattices): Changed printed strings to refer to 
3843         lattices rather than cvals.
3844         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
3845         (ipcp_propagate_const): Changed formal parameters.
3846         (build_const_val): Changed formal parameters.
3847         (ipcp_insert_stage): Removed useless variable cvalue
3848         (build_const_val): Changed formal parameters.
3849         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
3850         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
3851         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
3852         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
3853         (ipcp_print_func_profile_counts): Changed string from "method" to 
3854         "function"
3855         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
3856         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
3857         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
3858         (ipcp_structures_print): Renamed to ipcp_print_all_structures
3859         (ipcp_profile_print): Renamed to ipcp_print_profile_data
3860         (ipcp_lat_is_const): Changed parameters and made inline.
3861         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
3862         (ipcp_redirect): Renamed to ipcp_need_redirect_p
3863         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
3864         the predicate condition directly
3865         (ipcp_propagate_stage): Added local variable args. Removed local
3866         variable callee.  (Both are mere code simplifications.)
3867         (ipcp_method_dont_insert_const): Renamed to
3868         ipcp_node_not_modifiable_p.
3869         (ipcp_node_not_modifiable_p): Made inline.
3870         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
3871         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
3872         (ipcp_print_all_lattices): Removed variable cvalue
3873         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
3874         Updated comments.
3876 2008-05-06  Olivier Hainque  <hainque@adacore.com>
3878         * tree-sra.c (try_instantiate_multiple_fields): Early return
3879         if field has POINTER_TYPE.
3881 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
3883         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
3884         by using 'q' specifier for instruction.
3885         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
3887 2008-05-06  Anatoly Sokolov <aesok@post.ru>
3889         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
3890         Change mode of zero_extract from QImode to HImode.
3891         (sign bit tests peepholes): (Ditto.).
3893 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
3895         * config/i386/mmx.md: Remove double backslashes from asm templates.
3896         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
3897         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
3898         to handle nonimmediate operands.
3899         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
3900         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
3901         to handle nonimmediate operands.
3902         (*mmx_<code>v2sf3_finite): New insn pattern.
3903         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
3904         (mmx_<code>v2sf3): New expander.  Use
3905         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3906         (mmx_<plusminus_insn><mode>3): New expander.  Use
3907         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3908         (*mmx_<plusminus_insn><mode>3): New insn pattern.
3909         (mmx_add<mode>3): Removed.
3910         (mmx_ssadd<mode>3): Ditto.
3911         (mmx_usadd<mode>3): Ditto.
3912         (mmx_sub<mode>3): Ditto.
3913         (mmx_sssub<mode>3): Ditto.
3914         (mmx_ussub<mode>3): Ditto.
3915         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
3916         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
3917         to handle nonimmediate operands.
3918         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
3919         insn pattern.
3920         (mmx_smulv4hi3_highpart): New expander.  Use
3921         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3922         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
3923         insn pattern.
3924         (mmx_umulv4hi3_highpart): New expander.  Use
3925         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3926         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
3927         (mmx_<code>v4hi3): New expander.  Use
3928         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3929         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
3930         (mmx_<code>v8qi3): New expander.  Use
3931         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3932         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
3933         (mmx_<code><mode>3): New expander.  Use
3934         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3936 2008-05-05  Jan Hubicka  <jh@suse.cz>
3938         PR tree-optimization/36118
3939         * passes.c (pass_init_dump_file): Fix dump header.
3941 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3943         PR middle-end/36141
3944         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
3945         VCE for function decls.
3947 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
3949         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
3951 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
3953         * config/i386/i386.md (sat_plusminus): New.
3954         (plusminus_insn): Likewise.
3955         (plusminus_mnemonic): Likewise.
3956         (addsub): Removed.
3957         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
3958         (*<addsub><mode>3_cc_overflow): Renamed to ...
3959         (*<plusminus_insn><mode>3_cc_overflow): This.
3960         (*<addsub>si3_zext_cc_overflow): Renamed to ...
3961         (*<plusminus_insn>si3_zext_cc_overflow): This.
3963         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
3964         (<plusminus_insn><mode>3): This.
3965         (*<addsub><mode>3): Renamed to ...
3966         (*<plusminus_insn><mode>3): This.
3967         (<sse>_vm<addsub><mode>3): Renamed to ...
3968         (<sse>_vm<plusminus_insn><mode>3): This.
3969         (sse3_h<addsub>v4sf3): Renamed to ...
3970         (sse3_h<plusminus_insn>v4sf3): This.
3971         (sse3_h<addsub>v2df3): Renamed to ...
3972         (sse3_h<plusminus_insn>v2df3): This.
3973         (<plusminus_insn><mode>3): New.
3974         (*<plusminus_insn><mode>3): Likewise.
3975         (sse2_<plusminus_insn><mode>3): Likewise.
3976         (add<mode>): Removed.
3977         (*add<mode>3): Likewise.
3978         (sse2_ssadd<mode>3): Likewise.
3979         (sse2_usadd<mode>3): Likewise.
3980         (sub<mode>3): Likewise.
3981         (*sub<mode>3): Likewise.
3982         (sse2_sssub<mode>3): Likewise.
3983         (sse2_ussub<mode>3): Likewise.
3985 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
3987         * gthr-single.h: Add in required interface elements as per gthr.h.
3988         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
3989         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
3990         Generalize UNUSED macro. 
3991         (__gthread_once): Add.
3992         (__gthread_key_create): Add.
3993         (__gthread_key_delete): Add.
3994         (__gthread_getspecific): Add.
3995         (__gthread_setspecific): Add.
3996         
3997 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
3999         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
4000         the same size types for the indirect reference on the rhs, then
4001         create a VCE.
4003 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
4005         * config/i386/i386.md
4006         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
4007         one insn template instead of template series.
4008         (*xordi_1_rex64): Ditto.
4009         (*xordi_2_rex64): Ditto.
4011 2008-05-05  Ira Rosen  <irar@il.ibm.com>
4013         PR tree-optimization/36119
4014         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
4015         in case of SLP.
4017 2008-06-04  Jan Hubicka  <jh@suse.cz>
4019         tree-optimization/36100
4020         * tree-pass.h (pass_O0_always_inline): Declare.
4021         * ipa-inline.c (inline_transform): Remove dead code.
4022         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
4023         pass_O0_always_inline): New.
4024         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
4026 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
4028         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
4029         mnemonic in this_param move for TARGET_64BIT.
4031 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
4033         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
4034         (*strmovsi_rex_1): Ditto.
4035         (*strsetsi_1): Ditto.
4036         (*strsetsi_rex_1): Ditto.
4038         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
4039         adddicc expanders using SWI mode iterator.
4041 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
4043         PR target/36121
4044         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
4045         argument handling.
4047 2008-05-04  David S. Miller  <davem@davemloft.net>
4049         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
4050         (sparc*-*-linux*): Use linux.h in tm_file.
4051         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
4052         compiler defaulting to 32-bit.
4053         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
4054         no longer needed.
4055         * config/sparc/linux.h: Remove definitions now obtained
4056         properly from linux.h
4057         * config/sparc/linux64.h: Likewise.
4058         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
4059         don't want this setting for 32-bit builds in a biarch compiler.
4060         * doc/install.texi: Add sparc-linux to list of targets
4061         supporting --enable-targets=all.
4063 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
4065         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
4067 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
4069         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
4070         after V4SI_FTYPE_V8HI.
4071         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
4072         case V4SI_FTYPE_V2DF.
4074 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
4076         * doc/invoke.texi (max-flow-memory-locations): Removed.
4077         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
4078         
4079 2008-05-03  Richard Guenther  <rguenther@suse.de>
4081         PR middle-end/34973
4082         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
4084 2008-05-02  David S. Miller  <davem@davemloft.net>
4086         * config.gcc (need_64bit_hwint): Document libcpp dependency.
4088 2008-05-02  Simon Baldwin <simonb@google.com>
4090         PR bootstrap/36108
4091         * c-common.h (warn_array_subscript_range): Removed.
4092         * c-common.c (warn_array_subscript_range): Ditto.
4093         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
4094         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
4096 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
4098         * config/i386/i386.c (ix86_special_builtin_type): New.
4099         (bdesc_special_args): Likewise.
4100         (ix86_expand_special_args_builtin): Likewise.
4101         (ix86_init_mmx_sse_builtins): Updated.
4102         (ix86_expand_builtin): Updated.
4103         (ix86_expand_store_builtin): Removed.
4104         (ix86_expand_unop_builtin): Likewise.
4106         * config/i386/mm3dnow.h (__v2sf): Moved to ...
4107         * config/i386/mmintrin.h (__v2sf): Here.
4109         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
4110         const __v2sf.
4111         (_mm_loadl_pi): Likewise.
4112         (_mm_storeh_pi): Replace __v2si with __v2sf.
4113         (_mm_storel_pi): Likewise.
4115         * doc/extend.texi: Correct __builtin_ia32_loadhps,
4116         __builtin_ia32_loadlps, __builtin_ia32_storehps,
4117         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
4118         __builtin_ia32_loadlpd.
4120 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
4122         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
4123         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
4124         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
4125         (ix86_init_mmx_sse_builtins): Updated.
4126         (ix86_expand_args_builtin): Likewise.
4127         (ix86_expand_builtin): Likewise.
4128         (ix86_expand_unop1_builtin): Renamed to ...
4129         (ix86_expand_unop_vec_merge_builtin): This.
4131 2008-05-01  Jan Hubicka  <jh@suse.cz>
4133         PR bootstrap/36100
4134         * ipa-inline.c (inline_generate_summary): Make static.
4135         (inline_transform): Do not call inlining at -O0; make static.
4136         * passes.c (execute_todo): Add sanity check.
4137         (execute_one_ipa_transform_pass): Execute proper flags.
4139 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
4141         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
4142         (DECL_NONADDRESSABLE_P): Likewise.
4143         * alias.c (record_component_aliases): Fix comment.
4145 2008-05-01  Simon Baldwin <simonb@google.com>
4147         * c-common.h (warn_array_subscript_range): New function.
4148         * c-common.c (warn_array_subscript_range): Ditto.
4149         * tree-vrp.c (check_array_ref): Corrected code to agree with
4150         comment, ignoring only arrays of size 0 or size 1.
4151         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
4153 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
4155         * config/i386/i386.c (ix86_builtin_type): Replace
4156         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
4157         (bdesc_args): Updated.
4158         (ix86_init_mmx_sse_builtins): Likewise.
4159         (ix86_expand_args_builtin): Likewise.
4161         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
4162         with __v1di.
4164         * doc/extend.texi: Correct __builtin_ia32_palignr.
4166 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
4168         PR target/36095
4169         * config/i386/i386.c (bdesc_crc32): Removed.
4170         (ix86_expand_crc32): Likewise.
4171         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
4172         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
4173         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
4174         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
4175         UINT_FTYPE_UINT_UCHAR.
4176         (bdesc_args): Updated. Add crc32 builtins.
4177         (ix86_init_mmx_sse_builtins): Updated.
4178         (ix86_expand_args_builtin): Updated to support subreg.
4180         * doc/extend.texi: Correct __builtin_ia32_crc32di.
4182 2008-05-01  Jan Hubicka  <jh@suse.cz>
4184         * tree-pass.h (opt_pass): Add IPA_PASS.
4185         (varpool_node, cgraph_node): Forward declare.
4186         (ipa_opt_pass): Define.
4187         (pass_ipa_inline): Turn into ipa_opt_pass.
4188         (pass_apply_inline): Remove.
4189         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
4190         (apply_inline): Turn into ....
4191         (inline_transform): ... this one.
4192         (inline_generate_summary): New function.
4193         (pass_apply_inline): Remove.
4194         * function.h (ipa_opt_pass): Forward declare structure; typedef;
4195         vector.
4196         (struct function): Add ipa_transforms_to_apply.
4197         * passes.c (register_one_dump_file): Work on IPA_PASS.
4198         (init_optimization_passes): Remove pass_inline_parameters and
4199         pass_apply_inline.
4200         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
4201         (execute_one_pass) ... here; apply transforms when possible.
4202         (add_ipa_transform_pass, execute_ipa_summary_asses,
4203         execute_one_ipa_transform_pass): New.
4204         (execute_ipa_pass_list): Update for IPA_PASS type.
4206 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
4208         * config/i386/i386.c (ix86_builtin_type): Add
4209         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
4210         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
4211         (bdesc_args): Add SSE4a builtins.
4212         (ix86_init_mmx_sse_builtins): Updated.
4213         (ix86_expand_args_builtin): Likewise.
4214         (ix86_expand_builtin): Likewise.
4216 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
4218         * config/i386/i386.c (ix86_builtin_type): Add
4219         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
4220         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
4221         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
4222         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
4223         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
4224         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
4225         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
4226         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
4227         and DI_FTYPE_DI_DI_INT.
4228         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
4229         (ix86_init_mmx_sse_builtins): Updated.
4230         (ix86_expand_args_builtin): Likewise.
4231         (ix86_expand_builtin): Likewise.
4232         (ix86_expand_binop_imm_builtin): Removed.
4234         * doc/extend.texi: Correct __builtin_ia32_palignr128.
4236 2008-04-30  Richard Guenther  <rguenther@suse.de>
4238         PR tree-optimization/32921
4239         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
4241 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
4243         * config/arm/arm.c (arm_unwind_emit): Use
4244         crtl->all_throwers_are_sibcalls instead of
4245         cfun->all_throwers_are_sibcalls.
4246         (arm_output_fn_unwind): Likewise.
4247         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
4248         instead of cfun->uses_pic_offset_table.
4249         (frv_expand_prologue): Likewise.
4250         (frv_frame_pointer_required): Likewise.
4251         (frv_expand_fdpic_call): Likewise.
4252         (frv_emit_movsi): Likewise.
4253         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
4254         cfun->returns_pcc_struct instead of
4255         current_function_returns_pcc_struct.
4256         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
4257         instead of cfun->calls_eh_return.
4258         (m32c_pushm_popm): Likewise.
4259         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
4260         "extern" declaration.
4262 2008-04-30  Richard Guenther  <rguenther@suse.de>
4264         PR tree-optimization/21636
4265         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
4266         constant address.
4267         (evaluate_stmt): Print the likely value.
4268         (ccp_visit_stmt): Avoid excessive vertical spacing.
4270 2008-04-30  Rafael Espindola  <espindola@google.com>
4272         * builtins.c (fold_call_expr): Return realret.
4273         * tree-ssa-threadedge.c
4274         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
4275         __builtin_object_size.
4277 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
4279         * gcc.c (wrapper_string): New variable.
4280         (insert_wrapper): New function.
4281         (execute): New option -wrapper.
4282         * doc/invoke.texi (Overall Options): New driver option -wrapper.
4284 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
4286         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
4287         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
4288         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
4289         from...
4290         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
4291         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
4292         config/rs6000/e500crtres64gprctr.asm,
4293         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
4294         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
4295         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
4296         config/rs6000/e500crtsav64gprctr.asm,
4297         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
4298         config/rs6000/e500crtsavg64gprctr.asm: New files.
4299         * config/rs6000/t-ppccomm: Add build rules for new files.
4300         (LIB2FUNCS_STATIC_EXTRA): Add new files.
4301         * config/rs6000/t-netbsd: Add build rules for new files.
4302         (LIB2FUNCS_STATIC_EXTRA): New variable.
4303         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
4304         (CRTSAVRES_DEFAULT_SPEC): Likewise.
4305         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
4307 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
4309         * config/i386/i386.c (ix86_builtin_type): Add
4310         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
4311         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
4312         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
4313         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
4314         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
4315         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
4316         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
4317         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
4318         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
4319         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
4320         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
4321         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
4322         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
4323         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
4324         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
4325         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
4326         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
4327         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
4328         V1DI_FTYPE_V2SI_V2SI.
4329         (bdesc_2arg): Moved to ...
4330         (bdesc_args): Here.
4331         (ix86_init_mmx_sse_builtins): Updated.
4332         (ix86_expand_args_builtin): Updated.  Take a pointer
4333         to const struct builtin_description.  Handle comparison
4334         builtin functions.
4335         (ix86_expand_sse_compare): Take a new argument for swapping operands.
4336         (ix86_expand_builtin): Updated.
4338         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
4339         (ssse3_pmaddubsw128): This.
4340         (ssse3_pmaddubswv4hi3): Renamed to ...
4341         (ssse3_pmaddubsw): This.
4343         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
4344         (__builtin_ia32_packssdw128): Likewise.
4345         (__builtin_ia32_packuswb128): Likewise.
4346         (__builtin_ia32_pmaddubsw): Likewise.
4347         (__builtin_ia32_pmaddubsw128): Likewise.
4349 2008-04-30  Richard Guenther  <rguenther@suse.de>
4351         PR tree-optimization/14847
4352         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
4353         (recognize_bits_test): Use it.
4354         (recognize_single_bit_test): Likewise.
4356 2008-04-30  Martin Jambor  <mjambor@suse.cz>
4358         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
4359         instead of setting number of formal parameters to zero.
4360         (ipcp_init_stage): Do not set the number of actual parameters to zero 
4361         either.
4362         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
4363         which are called with variable number of arguments.
4364         (ipcp_insert_stage): Explicitely skipping all nodes which are
4365         called with variable number of arguments.
4366         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
4367         number of parameters.
4369         * ipa-prop.h (struct ipa_node_params): Added flag
4370         called_with_var_arguments
4371         (ipa_set_param_count): Added.  Changed sole setter to use it.
4372         (ipa_get_param_count): Added.  All readers of param_count
4373         converted to use it instead.
4374         (ipa_set_called_with_variable_arg): Added.
4375         (ipa_is_called_with_var_arguments): Added.
4376         (ipa_get_ith_param): Added.  All readers of param_decls converted
4377         to use it instead.
4378         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
4379         changed to use it. 
4380         (ipa_get_cs_argument_count): Added, all readers of argument_count
4381         changed to cal it.
4382         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
4383         to use it.
4384         
4385         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
4386         (struct ipcp_lattice): Renamed cval_type to type
4387         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
4389         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
4390         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
4391         (ipcp_insert_stage): Changed the type of variable cvalue to tree
4392         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
4393         (build_const_val): Changed the type of parameter cvalue to tree
4394         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
4395         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
4396         
4397         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
4398         constant 
4400         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
4401         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
4402         (ipa_add_method): Renamed to ipa_push_func_to_list
4403         (ipa_remove_method): Renamed to ipa_pop_func_from_list
4404         (ipa_callsite_param_count): Removed.
4405         (ipa_callsite_param_count_set): Removed.
4406         (ipa_callsite_param): Removed.
4407         (ipa_callsite_callee): Removed.
4408         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
4409         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
4410         (ipa_method_formal_count): Removed.
4411         (ipa_method_formal_count_set): Removed.
4412         (ipa_method_get_tree): Removed.
4413         (ipa_method_tree_map_create): Removed.
4414         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
4415         (ipa_create_param_decls_array): Creates the array itself
4416         (ipa_create_param_decls_array): Temporary variable info instead of 
4417         a few dereferences.
4418         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
4419         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
4420         (get_type): Removed.
4421         (ipa_jf_get_info_type): Removed.
4422         (ipa_node_create): Renamed to ipa_create_node_params
4423         (ipa_free): Renamed to ipa_free_all_node_params
4424         (ipa_nodes_create): Renamed to ipa_create_all_node_params
4425         (ipa_edges_create): Renamed to ipa_create_all_edge_args
4426         (ipa_edges_free): Renamed to ipa_free_all_edge_args
4427         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
4428         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
4429         ipa_free_all_edge_args
4430         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
4431         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
4432         (ipa_create_methodlist_node): Removed.
4433         (ipa_methodlist_method): Removed.
4434         (ipa_methodlist_method_set): Removed.
4435         (ipa_methodlist_next_method): Removed.
4436         (ipa_methodlist_next_method_set): Removed.
4437         (ipa_method_is_modified): Removed.
4438         (ipa_method_modify_create): Removed.
4439         (ipa_method_modify_init): Temporary variable info instead of a few 
4440         dereferences.
4441         (ipa_detect_param_modifications): Temporary variable info instead of 
4442         a few dereferences.
4443         (ipa_compute_jump_functions): Temporary variable info instead of 
4444         a few dereferences.
4445         (ipa_method_modify_set): Removed.
4446         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
4447         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
4448         than craph_node as the first parameter.
4449         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
4450         (ipa_method_modify_init): Removed.
4451         (ipa_compute_jump_functions): Added a temp variable instead of 
4452         repeatadly dereferencing the cgraph_edge.aux pointer
4453         (ipa_callsite_param_set_type): Removed.
4454         (ipa_compute_jump_functions): i renamed to index and moved to 
4455         an inner block
4456         (ipa_callsite_param_set_info_type_formal): Removed.
4457         (ipa_callsite_param_set_info_type): Removed.
4458         (ipa_callsite_param_map_create): Removed.
4459         (ipa_callsite_tree): Removed.
4460         (ipa_callsite_caller): Removed.
4461         (ipa_pop_func_from_list): return_method removed to return_func
4463         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
4464         prefixed all values with IPA_. Changed all users.
4465         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
4466         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
4467         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
4468         (union parameter_info): Renamed to jump_func_value.
4469         (union jump_func_value): Renamed value to constant
4470         (struct ipa_jump_func): Renamed info_type to value
4471         (struct ipa_node): Renamed to ipa_node_params
4472         (struct ipa_node_params): Renamed ipa_arg_num to param_count
4473         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
4474         (struct ipa_node_params): Renamed ipa_mod to modified_flags
4475         (struct ipa_edge): Renamed to ipa_edge_args
4476         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
4477         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
4478         (struct ipa_methodlist): Renamed to ipa_func_list
4479         (struct ipa_func_list): method_p renamed to node, next_method
4480         renamed to next
4481         (ipa_methodlist_p): Removed, switched all users to struct pointer
4482         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
4484 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
4486         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
4487         (rs6000_emit_epilogue): Use backchain to restore only when we
4488         have a large frame.  Make use of frame pointer to restore if we
4489         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
4491 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
4493         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
4494         Add mode to zero_extract.
4495         (sign bit tests peepholes): (Ditto.).
4497 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
4499         * config/i386/i386.c (ix86_builtins): Replace Prescott New
4500         Instructions in comments with SSE3.
4501         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
4502         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
4503         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
4504         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
4505         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
4506         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
4507         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
4508         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
4509         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
4510         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
4511         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
4512         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
4513         (bdesc_sse_args): Renamed to ...
4514         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
4515         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
4516         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
4517         IX86_BUILTIN_FABSQ.
4518         (bdesc_1arg): Moved to ...
4519         (bdesc_args): Here.
4520         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
4521         Instructions in comments with SSE3.
4522         (ix86_expand_sse_operands_builtin): Renamed to ...
4523         (ix86_expand_args_builtin): This.  Updated.
4524         (ix86_expand_unop1_builtin): Update comments.
4525         (ix86_expand_builtin): Updated.
4527 2008-04-29  Richard Guenther  <rguenther@suse.de>
4529         PR tree-optimization/36078
4530         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4531         Update virtual SSA form after cleaning up the CFG.
4533 2008-04-29  Richard Guenther  <rguenther@suse.de>
4535         PR middle-end/15255
4536         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
4538 2008-04-29  Richard Guenther  <rguenther@suse.de>
4540         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
4541         (compute_may_aliases): Do not call finalize_ref_all_pointers.
4542         (compute_flow_insensitive_aliasing): Do not treat
4543         PTR_IS_REF_ALL pointers special.
4544         (get_smt_for): Likewise.
4545         (may_alias_p): Re-structure.
4546         (is_escape_site): A ref-all pointer conversion is not an escape site.
4547         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
4548         PTR_IS_REF_ALL pointers special.
4549         * tree-ssa-structalias.h (struct alias_info): Remove
4550         ref_all_symbol_mem_tag field.
4551         (PTR_IS_REF_ALL): Remove.
4553 2008-04-29  Richard Guenther  <rguenther@suse.de>
4555         PR middle-end/36077
4556         * fold-const.c (extract_muldiv_1): In combining division constants
4557         make sure to never overflow.
4559 2008-04-29  Nick Clifton  <nickc@redhat.com>
4561         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
4563 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4565         PR bootstrap/35169
4566         * optc-gen.awk: Work around HP-UX/IA awk bug.
4568 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
4570         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
4571         2008-04-25 commit.
4573 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
4575         PR target/36073
4576         * config/i386/i386.md
4577         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
4578         Change operand 1 predicate to nonimmediate_operand.
4580 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
4582         PR debug/36060
4583         * dwarf2out.c (struct die_struct): Mark as chain_circular through
4584         die_sub field.
4585         * gengtype.c (walk_type, write_func_for_structure): Handle
4586         chain_circular.
4587         * doc/gty.texi: Document chain_circular.
4589 2008-04-28  Richard Guenther  <rguenther@suse.de>
4591         PR tree-optimization/36066
4592         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
4593         SCEV and loop.
4595 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
4597         PR target/36064
4598         * config/i386/i386.md
4599         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
4600         Use match_scratch instead of match_operand for operands 3 and 4.
4602 2008-04-27  Richard Guenther  <rguenther@suse.de>
4604         PR tree-optimization/18754
4605         PR tree-optimization/34223
4606         * tree-pass.h (pass_complete_unrolli): Declare.
4607         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
4608         loop size before and after unconditionally of UL_NO_GROWTH in effect.
4609         Rewrite loop into loop closed SSA form if it is not already.
4610         (tree_unroll_loops_completely): Re-structure to iterate over
4611         innermost loops with intermediate CFG cleanups.
4612         Unroll outermost loops only if requested or the code does not grow
4613         doing so.
4614         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
4615         loops are available.
4616         (tree_vectorize): Instead do so here.
4617         (tree_complete_unroll): Also unroll outermost loops.
4618         (tree_complete_unroll_inner): New function.
4619         (gate_tree_complete_unroll_inner): Likewise.
4620         (pass_complete_unrolli): New pass.
4621         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
4622         uses outside of the loop.
4623         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
4624         form if it is available.  
4625         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
4626         * passes.c (init_optimization_passes): Schedule complete inner
4627         loop unrolling pass before the first CCP pass after final inlining.
4629 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
4631         * targhooks.h (default_emutls_var_fields,
4632         default_emutls_var_init): Declare.
4633         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
4634         * target.h (struct gcc_target): Add struct emutls member.
4635         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
4636         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
4637         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
4638         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
4639         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
4640         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
4641         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
4642         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
4643         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
4644         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
4645         emit debug information.
4646         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
4647         * varasm.c: Include targhooks.h.
4648         (emutls_object_section, emutls_tmpl_section): New.
4649         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
4650         (EMUTLS_SEPARATOR): New.
4651         (prefix_name): New.
4652         (get_emutls_object_name): New.
4653         (default_emutls_var_fields): New, broken out of ...
4654         (get_emutls_object_type): ... here.  Adjust to use target hooks.
4655         (get_emutls_init_templ_addr): Adjust to use target hooks.
4656         (emutls_decl): Adjust to use target hooks.
4657         (emutls_finish): Likewise.
4658         (default_emutls_var_init): New, broken out of ...
4659         (assemble_variable): ... here.  Adjust to use target hooks.
4660         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
4661         SECCAT_EMUTLS_TMPL.
4662         * c-common.c (handle_section_attribute): Prevent overriding
4663         sections for emulated tls with special sections.
4664         * config/i386/i386.c (x86_64_elf_select_section): Add
4665         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
4666         (x86_64_elf_unique_section): Likewise.
4667         * config/vxworks.c: Include tree.h.
4668         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
4669         (vxworks_override_options): Set TLS scheme.
4670         * doc/tm.texi (Emulated TLS): New node.
4672 2008-04-26  Simon Baldwin <simonb@google.com>
4674         PR c/35652
4675         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
4676         with propagated string constants.
4678 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
4680         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
4681         constraint for operand 2 when operand 0 is memory operand.
4682         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
4683         operand 0 is memory operand.
4684         (fix_trunc<mode>_i387_with_temp): Ditto.
4685         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
4686         operand 2 when operand 1 is memory operand.
4687         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
4688         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
4689         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
4690         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
4691         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
4692         operands 2,3 and 4 when operand 1 is memory operand.
4693         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
4694         is memory operand.
4695         (fistdi2_floor_with_temp): Ditto.
4696         (fist<mode>2_floor_with_temp): Ditto.
4697         (fistdi2_ceil_with_temp): Ditto.
4698         (fist<mode>2_ceil_with_temp): Ditto.
4699         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
4701 2008-04-26  David Daney  <ddaney@avtrex.com>
4703         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
4704         unspec_volitile.
4705         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
4706         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
4707         UNSPEC_UPDATE_GOT_VERSION): Renumber.
4708         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
4709         (compare_and_swap_12): New insn.
4710         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
4711         * config/mips/mips.c (mips_force_binary): New function.
4712         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
4713         (mips_expand_compare_and_swap_12): New function.
4714         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
4716 2008-04-25  Jan Hubicka  <jh@suse.cz>
4718         PR testsuite/35843
4719         * cfgexpand.c (pass_expand): Turn into RTL pass.
4720         * passes.c (execute_one_pass): Do pass typechecking after execution.
4721         * tree-pass.h (pass_expand): Turn into RTL pass.
4723         * function.h (struct rtl_data): Move here fields
4724         accesses_prior_frames, calls_eh_return, saves_all_registers,
4725         has_nonlocal_goto, has_asm_statement, is_thunk,
4726         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
4727         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
4728         arg_pointer_save_area_init from struct function; turn into bool.
4729         (struct function): Move
4730         calls_eh_return, saves_all_registers, has_nonlocal_goto,
4731         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
4732         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
4733         tail_call_emit, arg_pointer_save_area_init
4734         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
4735         (current_function_returns_struct, current_function_returns_pcc_struct,
4736         current_function_calls_setjmp, current_function_calls_alloca,
4737         current_function_accesses_prior_frames,
4738         current_function_calls_eh_return, current_function_is_thunk,
4739         current_function_stdarg, current_function_profile,
4740         current_function_limit_stack, current_function_uses_pic_offset_table,
4741         current_function_uses_const_pool, current_function_has_nonlocal_label,
4742         current_function_saves_all_registers,
4743         current_function_has_nonlocal_goto,
4744         current_function_has_asm_statement): Remove accesor macros.
4745         * ra-conflict.c (global_conflicts): Update.
4746         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
4747         (suitable_for_tail_call_opt_p): Update.
4748         * builtins.c (expand_builtin_return_addr): Update.
4749         (expand_builtin_setjmp_setup): Update.
4750         (expand_builtin_nonlocal_goto): Update.
4751         * final.c (final_start_function): Update.
4752         (profile_function): Update.
4753         (leaf_function_p): Update.
4754         (only_leaf_regs_used): Update.
4755         * df-scan.c (df_get_exit_block_use_set): Update.
4756         * dojump.c (clear_pending_stack_adjust): Update.
4757         * tree-stdarg.c (gate_optimize_stdarg): Update.
4758         * gimple-low.c (lower_function_body): Update.
4759         * global.c (compute_regsets): Update.
4760         (global_alloc): Update.
4761         * dwarf2out.c (dwarf2out_begin_prologue): Update.
4762         * expr.c (expand_assignment): Update.
4763         * dse.c (dse_step0): Update.
4764         (dse_step1): Update.
4765         * c-decl.c (store_parm_decls): Update.
4766         * local-alloc.c (combine_regs): Update.
4767         (find_free_reg): Update.
4768         * function.c (assign_parms_augmented_arg_list): Update.
4769         (assign_parm_find_data_types): Update.
4770         (assign_parms): Update.
4771         (allocate_struct_function): Update.
4772         (expand_function_start): Update.
4773         (expand_function_end): Update.
4774         (get_arg_pointer_save_area): Update.
4775         (thread_prologue_and_epilogue_insns): Update.
4776         (rest_of_match_asm_constraints): Update.
4777         * stor-layout.c (variable_size): Update.
4778         * gcse.c (gcse_main): Update.
4779         (bypass_jumps): Update.
4780         * gimplify.c (gimplify_function_tree): Update.
4781         * calls.c (emit_call_1): Update.
4782         (expand_call): Update.
4783         * bt-load.c (compute_defs_uses_and_gen): Update.
4784         * except.c (sjlj_assign_call_site_values): Update.
4785         (sjlj_emit_function_enter): Update.
4786         (can_throw_external): Update.
4787         (set_nothrow_function_flags): Update.
4788         (expand_builtin_unwind_init): Update.
4789         (expand_eh_return): Update.
4790         (convert_to_eh_region_ranges): Update.
4791         (output_function_exception_table): Update.
4792         * emit-rtl.c (gen_tmp_stack_mem): Update.
4793         * cfgexpand.c (expand_used_vars): Update.
4794         (tree_expand_cfg): Update.
4795         * cfgcleanup.c (rest_of_handle_jump): Update.
4796         * explow.c (allocate_dynamic_stack_space): Update.
4797         * varasm.c (assemble_start_function): Update.
4798         (force_const_mem): Update.
4799         (mark_constant_pool): Update.
4800         * tree-optimize.c (tree_rest_of_compilation): Update.
4801         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
4802         * tree-cfg.c (notice_special_calls): Update.
4803         (is_ctrl_altering_stmt): Update.
4804         (tree_can_make_abnormal_goto): Update.
4805         (tree_purge_dead_abnormal_call_edges): Update.
4806         * config/alpha/predicates.md: Update.
4807         * config/alpha/alpha.c (alpha_sa_mask): Update.
4808         (alpha_sa_size): Update.
4809         (alpha_does_function_need_gp): Update.
4810         (alpha_expand_prologue): Update.
4811         (alpha_start_function): Update.
4812         (alpha_output_function_end_prologue): Update.
4813         (alpha_expand_epilogue): Update.
4814         * config/frv/frv.c (frv_stack_info): Update.
4815         (frv_expand_epilogue): Update.
4816         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
4817         (s390_register_info): Update.
4818         (s390_frame_info): Update.
4819         (s390_init_frame_layout): Update.
4820         (s390_can_eliminate): Update.
4821         (save_gprs): Update.
4822         * config/spu/spu.c (spu_split_immediate): Update.
4823         (need_to_save_reg): Update.
4824         (spu_expand_prologue): Update.
4825         (spu_expand_epilogue): Update.
4826         * config/sparc/sparc.md: Update.
4827         * config/sparc/sparc.c (eligible_for_return_delay): Update.
4828         (sparc_tls_got): Update.
4829         (legitimize_pic_address): Update.
4830         (sparc_emit_call_insn): Update.
4831         (sparc_expand_prologue): Update.
4832         (output_return): Update.
4833         (print_operand): Update.
4834         (sparc_function_ok_for_sibcall): Update.
4835         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
4836         * config/m32r/m32r.md: Update.
4837         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
4838         (m32r_compute_frame_size): Update.
4839         (m32r_expand_prologue): Update.
4840         (m32r_expand_epilogue): Update.
4841         (m32r_legitimize_pic_address): Update.
4842         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
4843         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
4844         * config/i386/i386.c (ix86_frame_pointer_required): Update.
4845         (gen_push): Update.
4846         (ix86_save_reg): Update.
4847         (ix86_compute_frame_layout): Update.
4848         (ix86_expand_prologue): Update.
4849         (ix86_expand_epilogue): Update.
4850         * config/sh/sh.c (output_stack_adjust): Update.
4851         (calc_live_regs): Update.
4852         (sh5_schedule_saves): Update.
4853         (sh_expand_prologue): Update.
4854         (sh_expand_epilogue): Update.
4855         (sh_setup_incoming_varargs): Update.
4856         (sh_allocate_initial_value): Update.
4857         (sh_get_pr_initial_val): Update.
4858         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
4859         * config/sh/sh.md (label:): Update.
4860         * config/avr/avr.c (out_movhi_mr_r): Update.
4861         * config/crx/crx.h (enum): Update.
4862         * config/xtensa/xtensa.h (along): Update.
4863         * config/stormy16/stormy16.c Update.
4864         (xstormy16_compute_stack_layout): Update.
4865         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
4866         (fr30_expand_prologue): Update.
4867         * config/cris/cris.c (cris_conditional_register_usage): Update.
4868         (cris_reg_saved_in_regsave_area): Update.
4869         (cris_initial_frame_pointer_offset): Update.
4870         (cris_simple_epilogue): Update.
4871         (cris_expand_prologue): Update.
4872         (cris_expand_epilogue): Update.
4873         (cris_expand_pic_call_address): Update.
4874         (cris_asm_output_symbol_ref): Update.
4875         (cris_asm_output_label_ref): Update.
4876         * config/cris/cris.md Update.
4877         * config/iq2000/iq2000.c (compute_frame_size): Update.
4878         (iq2000_expand_epilogue): Update.
4879         * config/mt/mt.h (save_direction): Update.
4880         * config/mn10300/mn10300.c (mn10300_function_value): Update.
4881         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
4882         (ia64_secondary_reload_class): Update.
4883         * config/m68k/m68k.c (m68k_save_reg): Update.
4884         (m68k_expand_prologue): Update.
4885         (m68k_expand_epilogue): Update.
4886         (legitimize_pic_address): Update.
4887         * config/rs6000/rs6000.c (rs6000_got_register): Update.
4888         (first_reg_to_save): Update.
4889         (first_altivec_reg_to_save): Update.
4890         (compute_vrsave_mask): Update.
4891         (compute_save_world_info): Update.
4892         (rs6000_stack_info): Update.
4893         (spe_func_has_64bit_regs_p): Update.
4894         (rs6000_ra_ever_killed): Update.
4895         (rs6000_emit_eh_reg_restore): Update.
4896         (rs6000_emit_allocate_stack): Update.
4897         (rs6000_emit_prologue): Update.
4898         (rs6000_emit_epilogue): Update.
4899         (rs6000_output_function_epilogue): Update.
4900         (output_profile_hook): Update.
4901         (rs6000_elf_declare_function_name): Update.
4902         * config/rs6000/rs6000.h (rs6000_args): Update.
4903         * config/rs6000/rs6000.md: Update.
4904         * config/mcore/mcore.c (mcore_expand_prolog): Update.
4905         * config/arc/arc.c (arc_output_function_epilogue): Update.
4906         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
4907         * config/darwin.c (machopic_function_base_name): Update.
4908         * config/score/score3.c (score3_compute_frame_size): Update.
4909         (rpush): Update.
4910         (rpop): Update.
4911         (score3_epilogue): Update.
4912         * config/score/score7.c (score7_compute_frame_size): Update.
4913         (score7_prologue): Update.
4914         (score7_epilogue): Update.
4915         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
4916         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
4917         * config/arm/arm.c (use_return_insn): Update.
4918         (require_pic_register): Update.
4919         (arm_load_pic_register): Update.
4920         (arm_compute_save_reg0_reg12_mask): Update.
4921         (arm_compute_save_reg_mask): Update.
4922         (thumb1_compute_save_reg_mask): Update.
4923         (output_return_instruction): Update.
4924         (arm_output_function_prologue): Update.
4925         (arm_output_epilogue): Update.
4926         (arm_get_frame_offsets): Update.
4927         (arm_expand_prologue): Update.
4928         (thumb_pushpop): Update.
4929         (thumb_exit): Update.
4930         (thumb1_expand_prologue): Update.
4931         (thumb1_expand_epilogue): Update.
4932         (arm_unwind_emit): Update.
4933         (arm_output_fn_unwind): Update.
4934         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
4935         * config/arm/arm.md: Update.
4936         * config/pa/pa.md: Update.
4937         * config/pa/pa.c (legitimize_pic_address): Update.
4938         (compute_frame_size): Update.
4939         (hppa_expand_prologue): Update.
4940         (hppa_expand_epilogue): Update.
4941         (borx_reg_operand): Update.
4942         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
4943         (HARD_REGNO_RENAME_OK): Update.
4944         * config/mips/mips.c (mips_global_pointer): Update.
4945         (mips_save_reg_p): Update.
4946         (mips_compute_frame_info): Update.
4947         (mips_frame_pointer_required): Update.
4948         (mips_expand_prologue): Update.
4949         (mips_expand_epilogue): Update.
4950         (mips_can_use_return_insn): Update.
4951         (mips_reorg_process_insns): Update.
4952         * config/v850/v850.c (compute_register_save_size): Update.
4953         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
4954         * config/mmix/mmix.c (along): Update.
4955         (mmix_expand_epilogue): Update.
4956         * config/bfin/bfin.c (legitimize_pic_address): Update.
4957         (must_save_p): Update.
4958         (stack_frame_needed_p): Update.
4959         (add_to_reg): Update.
4960         (bfin_expand_prologue): Update.
4961         * stmt.c (expand_asm_operands): Update.
4962         * reload1.c (reload): Update.
4963         (init_elim_table): Update.
4965 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
4966         
4967         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
4968         
4969 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
4971         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
4972         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
4973         (mov<mode>): Removed.
4974         (*movv4sf_internal): Likewise.
4975         (*movv2df_internal): Likewise.
4977 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
4979         * config.gcc (crx-*-elf): Remove deprecation.
4981 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
4983         * config/i386/cygming-crtend.c (register_frame_ctor): Register
4984         __gcc_deregister_frame with atexit.
4985         (deregister_frame_dtor): Remove.
4987 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
4988             Nathan Sidwell  <nathan@codesourcery.com>
4990         * config/rs6000/rs6000.opt (mspe): Remove Var property.
4991         (misel): Likewise.
4992         * config/rs6000/rs6000.h (rs6000_spe): Declare.
4993         (rs6000_isel): Likewise.
4994         * config/rs6000/rs6000.c (rs6000_spe): New variable.
4995         (rs6000_isel): New variable.
4996         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
4998 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
5000         PR c++/35758
5001         * c-common.c (handle_vector_size_attribute): Call
5002         lang_hooks.types.reconstruct_complex_type instead of
5003         reconstruct_complex_type.
5004         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
5005         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
5006         * langhooks.h (struct lang_hooks_for_types): Add
5007         reconstruct_complex_type hook.
5008         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
5009         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
5011 2008-04-24  Richard Guenther  <rguenther@suse.de>
5013         * c-common.h (check_builtin_function_arguments): Declare.
5014         * c-common.c (validate_nargs): New function.
5015         (check_builtin_function_arguments): Likewise.
5016         * c-typeck.c (build_function_call): Call
5017         check_builtin_function_arguments.
5018         * builtins.c (fold_builtin_classify): Remove error reporting code.
5019         (fold_builtin_unordered_cmp): Likewise.
5020         (fold_builtin_1): Likewise.
5021         (fold_builtin_n): Likewise.
5023 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
5025         PR tree-optimization/36008
5026         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
5027         the original op1, rather than delta by step.
5029 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
5030             Sebastian Pop  <sebastian.pop@amd.com>
5032         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
5033         eliminate_local_variables_stmt, eliminate_local_variables,
5034         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
5035         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
5036         of code delimited by two edges in the CFG.
5037         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
5038         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
5039         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
5040         the case of parallelisation of reductions.
5041         (expr_invariant_in_region_p): New.
5043         * tree-flow.h (gather_blocks_in_sese_region): Declared.
5044         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
5046 2008-04-24  Ira Rosen  <irar@il.ibm.com>
5047             Richard Guenther  <rguenther@suse.de>
5049         PR tree-optimization/36034
5050         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
5051         incapable of dealing with loads with gaps.
5053 2008-04-24  Rafael Espindola  <espindola@google.com>
5055         * tree-flow.h (vrp_evaluate_conditional): Change signature.
5056         * tree-ssa-propagate.c (fold_predicate_in): Update call to
5057         vrp_evaluate_conditional.
5058         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
5059         (vrp_evaluate_conditional): Split the cond argument.
5060         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
5061         (simplify_stmt_for_jump_threading): Update call to
5062         vrp_evaluate_conditional.
5064 2008-04-24  Ira Rosen  <irar@il.ibm.com>
5066         PR tree-optimization/35982
5067         * tree-vect-analyze.c (vect_check_interleaving): Check that the
5068         interleaved data-refs are of the same type.
5070 2008-04-24  Danny Smith  <dannysmith@users.net>
5072         * c-format.c (check_format_info_main): Use strncmp rather than a
5073         magic prefix to handle multichar length specs.
5074         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
5075         Don't prefix "I64" and "I32" with '\0'.
5077 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
5079         PR target/36015
5080         * config/i386/i386.c (init_cumulative_args): Don't pass anything
5081         in registers for -m32 only if stdarg_p (fntype).
5083 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
5085         PR rtl-optimization/36006
5086         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
5087         temp to op0 in order to avoid invalid rtx sharing.
5089 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
5091         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
5092         check TREE_INVARIANT.
5093         * tree-gimple.c (is_gimple_address): New.
5094         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
5095         * tree-gimple.h (is_gimple_address): New.
5096         * tree.h (decl_address_invariant_p): New.
5097         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
5098         (build_string): Likewise.
5099         (decl_address_invariant_p): New, from is_gimple_invariant_address.
5100         (tree_invariant_p_1): Likewise.
5101         (save_expr): Use it.
5102         (tree_invariant_p): New.
5103         (skip_simple_arithmetic): Use it.
5104         (stabilize_reference_1): Use it.
5105         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
5106         simplify.
5107         (build1_stat): Drop code to compute TREE_INVARIANT.
5108         (build2_stat): Drop code to compute TREE_INVARIANT.
5109         (build3_stat): Drop code to compute TREE_INVARIANT.
5110         (build4_stat): Drop code to compute TREE_INVARIANT.
5111         (build5_stat): Drop code to compute TREE_INVARIANT.
5112         (build7_stat): Drop code to compute TREE_INVARIANT.
5113         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
5114         * tree.h (struct tree_base): Remove invariant_flag.
5115         (TREE_INVARIANT): Remove.
5116         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
5117         (fold_builtin_expect): Check TREE_CONSTANT.
5118         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
5119         * c-tree.h (c_expr_to_decl): Drop third parameter.
5120         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
5121         (build_c_cast): Don't set TREE_INVARIANT.
5122         (pop_init_level): Don't set TREE_INVARIANT.
5123         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
5124         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
5125         TREE_CONSTANT.
5126         (gimplify_init_constructor): Don't set TREE_INVARIANT.
5127         (gimplify_addr_expr): Adjust comment.
5128         * tree-mudflap.c (mf_build_string):
5129         * print-tree.c (print_node): Don't print TREE_INVARIANT.
5130         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
5131         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
5132         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
5133         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
5134         * langhooks.h (struct lang_hooks): Drop third parameter from
5135         expr_to_decl.
5137 2008-04-23  Richard Guenther  <rguenther@suse.de>
5139         PR tree-optimization/27799
5140         PR tree-optimization/32921
5141         PR tree-optimization/32624
5142         * tree-ssa-structalias.c (merge_smts_into): Only merge the
5143         SMTs aliases and the tag itself into the solution.
5144         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
5145         merge the points-to solution back into the SMT aliases.
5146         (may_alias_p): Use alias_set_subset_of instead of
5147         aliases_conflict_p.  A pointer which points to
5148         memory with alias set zero may access any variable.
5150 2008-04-23  Richard Guenther  <rguenther@suse.de>
5152         * alias.c (alias_set_subset_of): Correctly handle asking
5153         if zero is a subset of an alias set with zero child.
5154         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
5155         (compute_flow_insensitive_aliasing): Correctly walk all
5156         pointers.  Do not unnecessarily union sets.
5158 2008-04-23  Richard Guenther  <rguenther@suse.de>
5160         PR middle-end/36021
5161         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
5163 2008-04-22  Tomas Bily  <tbily@suse.cz>
5165         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
5166         unreachable case.
5167         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
5168         NON_LVALUE_EXPR.
5169         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
5170         * tree-ssa-structalias.c (get_constraint_for): Likewise.
5171         * tree-inline.c (estimate_num_insns_1): Likewise.
5172         * varasm.c (const_hash_1, compare_constant, copy_constant)
5173         (compute_reloc_for_constant, output_addressed_constants): Likewise.
5174         * emit-rtl.c (component_ref_for_mem_expr)
5175         (set_mem_attributes_minus_bitpos): Likewise.
5176         * expr.c (highest_pow2_factor, expand_expr_real_1, )
5177         (is_aligning_offset): Likewise.
5178         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
5179         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
5180         * dojump.c (do_jump): Likewise.
5181         * builtins.c (get_pointer_alignment, get_memory_rtx)
5182         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
5183         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
5185 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
5187         PR rtl-optimization/36017
5188         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
5189         expanding the library call.
5191 2008-04-22  Ian Lance Taylor  <iant@google.com>
5193         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
5194         than size_in_bytes.
5196 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
5198         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
5199         of LR/CTR moves for Power6.
5201 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
5203         PR middle-end/36003
5204         * passes.c (init_optimization_passes): Remove
5205         pass_fast_rtl_byte_dce.
5206         
5207 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
5209         PR target/29096
5210         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
5211         builtin functions to generate faster code.
5212         (_mm_cvtpu16_ps): Ditto.
5213         (_mm_cvtpi32x2_ps): Ditto.
5215 2008-04-22  Nick Clifton  <nickc@redhat.com>
5217         * common.opt (ftree-loop-distribution): Add Optimization
5218         attribute.
5220         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
5221         (frv_expand_builtin_va_start): Likewise.
5223         * config/arm/arm.c (thumb_find_work_register): Fix location of
5224         argument register count.
5226 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
5228         Support scheduling for ColdFire V1 and V3 microarchitecture.
5229         Improve scheduling of multiplication instructions.
5231         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
5232         (mac): New instruction attribute.
5233         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
5234         (m68k_sched_mac): New variable.
5235         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
5236         Handle cfv1 and cfv3.
5237         (max_insn_size): New static variable.
5238         (struct _sched_ib): New type.
5239         (sched_ib): New static variable.
5240         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
5241         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
5242         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
5243         Update.
5244         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
5245         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
5246         new variables.  Update.
5247         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
5248         Add modeling of cfv3 instruction buffer.  Update.
5249         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
5250         * config/m68k/m68k.h (TUNE_CFV3): New macro.
5251         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
5252         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
5253         a particular reservation applies to.
5254         (type2): Reorganize attribute values.  Rename alu to alu_reg,
5255         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
5256         to mul_l and mul_w.
5257         (cf_ib_*): Simplify description of instruction buffer.
5258         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
5259         (cf_mem): Split into cf_mem1 and cf_mem2.
5260         (cf_v2_move_??): Rename to cfv12_alu_??.
5261         (cf_v2_move_l_??): Rename to cfv12_omove_??.
5262         (cf_v2_mul_??): Remove reservations.
5263         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
5264         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
5265         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
5266         appropriate place.
5267         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
5268         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
5269         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
5270         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
5271         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
5272         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
5273         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
5274         expansions of the above reservations for instructions of sizes
5275         1, 2 and 3 words.
5277 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
5279         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
5281 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
5283         * coverage.c: Include tree-pass.h.
5284         (coverage_counter_alloc): Print da_file_name to the dump file.
5286 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
5288         * sbitmap.c (sbitmap_range_empty_p): New function.
5289         * sbitmap.h (sbitmap_range_empty_p): New function.
5290         * bitmap.h: Now includes obstack.h.
5292 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
5293             Kenneth Zadeck  <zadeck@naturalbridge.com>
5295         * dbgcnt.def (ra_byte_scan): Added.
5296         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
5297         when the last hit happens for a counter.  
5298         * timevar.def (TV_DF_BYTE_LR): New variable.
5299         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
5300         * passes.c (pass_fast_rtl_byte_dce): New pass.
5301         * fwprop.c (update_df): Added mode to call df_ref_create.
5302         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
5303         DF_REF_EXTRACT_OFFSET.
5304         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
5305         DF_BYTE_LR_OUT, df_byte_lr): New macro.
5306         (df_mm): New enum.
5307         (df_ref_extract): Added mode field.
5308         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
5309         DF_REF_EXTRACT_OFFSET.
5310         (DF_REF_EXTRACT_MODE): New macro.
5311         (df_byte_lr_bb_info): New structure.
5312         (df_print_byte_regset, df_compute_accessed_bytes, 
5313         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
5314         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
5315         df_byte_lr_simulate_uses,
5316         df_byte_lr_simulate_artificial_refs_at_top,
5317         df_byte_lr_simulate_artificial_refs_at_end,
5318         df_compute_accessed_bytes): New function.
5319         (df_ref_create): Add parameter.
5320         (df_byte_lr_get_bb_info): New inline function.
5321         * df-scan.c (df_ref_record, df_uses_record,
5322         df_ref_create_structure): Added mode parameter.
5323         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
5324         df_defs_record, df_uses_record, df_get_conditional_uses,
5325         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
5326         df_entry_block_defs_collect, df_exit_block_uses_collect):
5327         Added mode parameter to calls to df_ref_record, df_uses_record,
5328         df_ref_create_structure.
5329         (df_ref_equal_p, df_ref_compare): Added test for modes.
5330         (df_ref_create_structure): Added code to set mode.  Renamed
5331         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
5332         DF_REF_EXTRACT_OFFSET.
5333         * df-core.c (df_print_byte_regset): New function.
5334         * df-byte-scan.c: New file.
5335         * df-problems.c (df_rd_transfer_function): Removed unnecessary
5336         calls to BITMAP_FREE.  
5337         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
5338         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
5339         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
5340         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
5341         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
5342         df_byte_lr_local_compute, df_byte_lr_init,
5343         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
5344         df_byte_lr_transfer_function, df_byte_lr_free, 
5345         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
5346         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
5347         df_byte_lr_simulate_uses,
5348         df_byte_lr_simulate_artificial_refs_at_top,
5349         df_byte_lr_simulate_artificial_refs_at_end): New function.
5350         * dce.c (byte_dce_process_block): New function.
5351         (dce_process_block): au is now passed in rather than computed
5352         locally.  Changed loops that look at artificial defs to not look
5353         for conditional or partial ones, because there never are any.  
5354         (fast_dce): Now is able to drive byte_dce_process_block or 
5355         dce_process_block depending on the kind of dce being done.
5356         (rest_of_handle_fast_dce): Add parameter to fast_dce.
5357         (rest_of_handle_fast_byte_dce): New function.
5358         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
5359         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
5361 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
5363         PR fortran/35019
5364         * gcc.h: Added fortran options that take arguments to
5365         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
5366         macros.
5368 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5370         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
5371         scalarization if on the LHS and not a full access.
5373 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5375         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
5377 2008-04-18  Rafael Espindola  <espindola@google.com>
5379         * tree-vrp.c (find_case_label_index): Fix the binary search.
5380         (find_case_label_range): New.
5381         (vrp_visit_switch_stmt): Use find_case_label_range.
5382         (simplify_switch_using_ranges): Use find_case_label_range.
5384 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5386         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
5387         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
5389 2008-04-18  Tom Tromey  <tromey@redhat.com>
5391         PR libcpp/15500:
5392         * doc/cpp.texi (Implementation-defined behavior): Mention
5393         -finput-charset.
5395 2008-04-18  Ian Lance Taylor  <iant@google.com>
5397         * fold-const.c (pointer_may_wrap_p): New static function.
5398         (fold_comparison): Add another test for pointer overflow.  Use
5399         pointer_may_wrap_p to disable some false positives.
5401 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
5402           
5403         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
5404         (fname_as_string): Match updated cpp_interpret_string prototype.
5405         (fix_string_type): Support char16_t* and char32_t*.
5406         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
5407         derivative) nodes.  Register as builtin if C++0x.
5408         (c_parse_error): Support CPP_CHAR{16,32}.
5409         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
5410         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
5411         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
5412         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
5413         CTI_CHAR32_ARRAY_TYPE>: New elements.
5414         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
5415         char32_type_node, signed_char32_type_node, char16_array_type_node,
5416         char32_array_type_node): New defines.
5417         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
5418         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
5419         (lex_string): Support CPP_STRING{16,32}, match updated
5420         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
5421         (lex_charconst): Support CPP_CHAR{16,32}.
5422         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
5423         and CPP_STRING{16,32}.
5425 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
5427         PR bootstrap/35457
5428         * aclocal.m4: Regenerate.
5429         * configure: Regenerate.
5431 2008-04-18  Jan Hubicka  <jh@suse.cz>
5433         * except.c (dw2_size_of_call_site_table,
5434         sjlj_size_of_call_site_table): Use vector API for call_site_record.
5436         * cgraphbuild.c (build_cgraph_edges): Update.
5437         * tree-pass.h: Update comment.
5438         * final.c (leaf_function_p): Update.
5439         (leaf_renumber_regs): Update.
5440         (rest_of_clean_state): Update.
5441         * omp-low.c (expand_omp_parallel): Update.
5442         * ipa-reference.c (analyze_function): Update.
5443         * reorg.c (find_end_label): Update.
5444         (optimize_skip): Update.
5445         (fill_simple_delay_slots): Update.
5446         (fill_simple_delay_slots): Update.
5447         (make_return_insns): Update.
5448         (dbr_schedule): Update.
5449         * gimple-low.c (record_vars_into): Update.
5450         * cfgbuild.c (make_edges): Update.
5451         * function.c (assign_stack_local): Update.
5452         (assign_parm_adjust_stack_rtl): Update.
5453         (locate_and_pad_parm): Update.
5454         (allocate_struct_function): Do not initialize stack_alignment_needed
5455         and preferred_stack_boundary here.
5456         (stack_protect_prologue): Update.
5457         (stack_protect_epilogue): Update.
5458         (expand_function_start): Initialize stack_alignment_needed,
5459         preferred_stack_boundary and max_jumptable_ents.
5460         (expand_function_end): Update.
5461         (free_after_compilation): Do not NULLify epilogue_delay_list.
5462         * function.h (struct rtl_data): Add stack_protect_guard,
5463         stack_alignment_needed,
5464         preferred_stack_boundary, epilogue_delay_list.
5465         (struct function): Remove value_histograms, stack_alignment_needed,
5466         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
5467         last_label_uid,
5468         unexpanded_var_list, stack_protect_guard.
5469         (current_function_epilogue_delay_list): Remove.
5470         * ipa-type-escape.c (analyze_function): Update.
5471         * gimplify.c (pop_gimplify_context): Update comment.
5472         * calls.c (expand_call): Update.
5473         (emit_library_call_value_1): Update.
5474         * except.c (set_nothrow_function_flags): Update.
5475         * cfgexpand.c (get_decl_align_unit): Update.
5476         (create_stack_guard): Update.
5477         (estimated_stack_frame_size): Update.
5478         (expand_used_vars): Update.
5479         (tree_expand_cfg): Free histogram earliers, init expansion variables.
5480         * explow.c (allocate_dynamic_stack_space): Update.
5481         * tree-ssa-live.c (remove_unused_locals): Update.
5482         * varasm.c (mark_constant_pool): Update.
5483         * tree-inline.c (remap_decls): Update.
5484         (initialize_cfun): Update.
5485         (declare_return_variable): Update.
5486         (inline_forbidden_p): Update.
5487         (expand_call_inline): Update.
5488         (declare_inline_vars): Update.
5489         (tree_function_versioning): Update.
5490         * tree-flow.h (value_histograms): New.
5491         (VALUE_HISTOGRAMS): New macro.
5492         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
5493         last_label_uid.
5494         * tree-cfg.c (set_bb_for_stmt): Update.
5495         (replace_by_duplicate_decl): Update.
5496         (move_block_to_fn): Update.
5497         (new_label_mapper): Update.
5498         (dump_function_to_file): Update.
5499         * ipa-struct-reorg.c (build_data_structure): Update.
5500         * cfgrtl.c (print_rtl_with_bb): Update.
5501         * reload1.c (reload): Update.
5502         (reload): Update.
5503         * config/i386/i386.c (setup_incoming_varargs_64,
5504         ix86_compute_frame_layout): Update.
5505         * config/arc/arc.c (arc_output_function_epilogue): Update.
5507 2008-04-18  Marius Strobl <marius@FreeBSD.org>
5509         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
5510         for FreeBSD as well.
5511         * gthr-posix95.h: Likewise.
5513 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
5515         PR rtl-optimization/35838
5516         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
5517         out the byte offset of the first subreg.
5519 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
5521         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
5522         to split_ti instead of three separate calls with single member arrays.
5523         (subti3 splitter): Ditto.
5524         (adddi3 splitter): Ditto with split_di.
5525         (subdi3 splitter): Ditto.
5526         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
5527         two separate calls with single member arrays.  Swap match_dup
5528         operands 1 and 2 to better fit into the array.
5529         (negdi2 splitter): Ditto with split_di.
5530         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
5531         two separate calls with single member arrays.  Swap match_dup operands
5532         6 and 7 to better fit into the array.
5534 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
5536         * config/i386/i386.c (sse_builtin_type): New.
5537         (bdesc_sse_args): Likewise.
5538         (bdesc_sse_3arg): Removed.
5539         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
5540         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
5541         IX86_BUILTIN_ROUNDPS.
5542         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
5543         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
5544         IX86_BUILTIN_ROUNDPS.
5545         (ix86_expand_sse_4_operands_builtin): Removed.
5546         (ix86_expand_sse_operands_builtin): New.
5547         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
5548         and CODE_FOR_sse4_1_roundps.
5549         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
5550         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
5552 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
5554         PR target/35907
5555         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
5556         regs before frame pop when needed.  If use_backchain_to_restore_sp
5557         then load backchain into a temp reg to restore vr and vrsave.  Add
5558         code to restore vr after frame pop if possible.
5560 2008-04-17  Richard Guenther  <rguenther@suse.de>
5562         * tree-vn.c (expressions_equal_p): Do not check type
5563         equality or compatibility before calling operand_equal_p.
5564         * fold-const.c (operand_equal_p): Check equivalence of
5565         integer constants before bailing out due to signedness or
5566         precision differences.
5567         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
5568         spurious differences in type qualification.  Ignore types
5569         for COMPONENT_REFs at all.
5571 2008-04-17  Christian Bruel  <christian.bruel@st.com>
5573         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
5574         msw_skip comparison.
5575         
5576 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
5578         PR c/35739
5579         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
5580         reg type.
5582         PR tree-optimization/35899
5583         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
5584         rather than TREE_OPERAND.
5586 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
5588         PR target/35944
5589         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
5590         temporary registers.  Change operand predicate to general_operand.
5591         (remainderxf3): Ditto.
5593 2008-04-16  Richard Guenther  <rguenther@suse.de>
5595         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
5596         * tree-affine.c (aff_combination_expand): Look through some
5597         conversions.
5599 2008-04-15  Doug Kwan  <dougkwan@google.com>
5601         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
5602         for hex printing.
5603         * tree-pretty-print.c (dump_generic_node): Ditto.
5604         * final.c (output_addr_const): Ditto.
5605         * dwarf2out.c (output_cfi): Ditto.
5606         * c-pretty-print.c (pp_c_integer_constant): Ditto.
5607         * print-rtl.c (print_rtx): Ditto.
5608         * print-tree.c (print_node_brief, print_node): Ditto.
5609         * c-common.c (match_case_to_enum_1): Ditto.
5610         * sched-vis.c (print_value): Ditto.
5611         * config/i386/i386.c (print_operand): Cast to long unsigned int
5612         for hex printing.
5614 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
5615         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
5616         MS Windows VirtualProtect function.
5618 2008-04-15  Jan Hubicka  <jh@suse.cz>
5620         * gengtype.c (write_root): Param_is argument is OK.
5621         * expr.c (expand_expr_real_1): Update call of get_exception_*.
5622         * function.h: Include varray.h
5623         (rtl_eh): New stucture based on except.c one.
5624         (call_site_record): New forward declaration and vector type.
5625         * calls.c (emit_call_1): Do not call
5626         note_current_region_may_contain_throw.
5627         * except.c (eh_status): Remove cur_region, try_region since they are
5628         unused.
5629         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
5630         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
5631         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
5632         Remove call_site_data_used, call_site_data_size.
5633         Turn call_site_record into vector in function.h.
5634         (note_current_region_may_contain_throw): Remove.
5635         (get_exception_pointer, get_exception_filter): Do not take struct
5636         function argument; update.
5637         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
5638         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
5639         build_post_landing_pads, dw2_build_landing_pads,
5640         sjlj_assign_call_site_values, sjlj_mark_call_sites,
5641         sjlj_emit_function_enter, sjlj_emit_function_enter, 
5642         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
5643         sjlj_build_landing_pads, finish_eh_generation,
5644         remove_exception_handler_label, remove_eh_handler,
5645         maybe_remove_eh_handler, add_reachable_handler,
5646         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
5647         add_action_record, collect_one_action_chain, add_call_site,
5648         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
5649         sjlj_output_call_site_table, output_function_exception_table,
5650         * except.h (note_current_region_may_contain_throw): Remove
5651         (get_exception_pointer, get_exception_filter): Do not take struct
5652         function argument.
5653         * Makefile.in (GTFILES): Put varargs before struct function.
5655 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5657         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
5658         punt for STRING_CST.
5659         (get_constraint_for): Deal with STRING_CST here instead.
5661 2008-04-15  Richard Guenther  <rguenther@suse.de>
5663         * tree-ssa-propagate.c (substitute_and_fold): Substitute
5664         statements in a basic-block with a backward walk.  Do not
5665         substitute into dead statements but instead remove those.
5667 2008-04-15  Richard Guenther  <rguenther@suse.de>
5669         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
5670         to zero, thus disable creation of SFTs.
5672 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5674         * tree-predcom.c (suitable_reference_p): Return false if the
5675         reference can throw.
5677 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
5679         PR c/35751
5680         * c-decl.c (finish_decl): If extern or static var has variable
5681         size, set TREE_TYPE (decl) to error_mark_node.
5683 2008-04-15  Rafael Espindola  <espindola@google.com>
5685         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
5686         variable arg1.
5688 2008-04-15  Richard Guenther  <rguenther@suse.de>
5690         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5691         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
5692         (visit_reference_op_load): Do walk vuse-vdef chains on
5693         vn_reference_lookup.
5694         (visit_reference_op_store): But do not here.
5695         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
5696         vn_reference_lookup.
5697         (vn_lookup_with_vuses): But do so here.
5699 2008-04-14  Ian Lance Taylor  <iant@google.com>
5701         * fold-const.c (fold_overflow_warning): Remove assertion.
5703 2008-04-15  Ben Elliston  <bje@au.ibm.com>
5705         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
5706         temp1 local variables.
5708 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
5710         PR target/35661
5711         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
5712         ".text.unlikely" section as executable.
5714 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
5716         * config/ia64/ia64.c (rtx_needs_barrier): Handle
5717         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
5718         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
5719         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
5720         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
5721         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
5722         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
5724 2008-04-14  Ian Lance Taylor  <iant@google.com>
5726         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
5727         * fold-const.c (fold_comparison): If appropriate, test
5728         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
5729         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
5730         reassociating a pointer type.
5731         * doc/invoke.texi (Optimize Options): Document that
5732         -fstrict-overflow applies to pointer wraparound.
5734 2008-04-13  Jan Hubicka  <jh@suse.cz>
5736         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
5738 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
5740         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
5741         we are going to "save the world".
5743 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
5745         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
5746         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
5747         operand 0 constraint, not "=".
5749 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
5751         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
5753 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
5755         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
5756         of size of positions_needed * CHAR_BIT.
5758 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
5760         PR middle-end/35897
5761         * dse.c (store_info): Change positions_needed to unsigned
5762         HOST_WIDE_INT.
5763         (lowpart_bitmask): New.
5764         (record_store): Cast to unsigned HOST_WIDE_INT for
5765         positions_needed.  Assert width <= size of positions_needed *
5766         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
5767         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
5768         lowpart_bitmask to set mask.
5770 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
5772         * config/bfin/constraints.md: New file.
5773         * config/bfin/bfin.md: Include it.
5774         (adddi3): Use satisfies_constraint functions instead of the old macros.
5775         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
5776         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
5777         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
5778         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
5779         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
5780         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
5781         EXTRA_CONSTRAINT): Delete.
5782         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
5783         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
5784         of the old macros.
5785         * config/bfin/bfin.c: Include "tm-constrs.h".
5786         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
5787         Use satisfies_constraint functions instead of the old macros.
5788         * doc/md.texi (Blackfin Constraints): Update file name reference.
5790 2008-04-11  Richard Guenther  <rguenther@suse.de>
5792         PR tree-optimization/35869
5793         * tree-vrp.c (execute_vrp): Move switch statement update after
5794         jump threading.  Schedule another cfg cleanup run.
5796 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
5798         PR c/35744
5799         * attribs.c (decl_attributes): Return early on errorneous node.
5801 2008-04-10  Oleg Ryjkov  <olegr@google.com>
5803         * tree.h (struct tree_base): Added a new flag default_def_flag.
5804         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
5806 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
5808         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
5810 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5812         PR target/35768
5813         * pa.md: Define mode iterator P.  Define mode attribute dwc.
5814         (dcacheflush): Update pattern to use iterator P and attribute dwc.
5815         (icacheflush): Likewise.
5816         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
5817         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
5819 2008-04-11  Ben Elliston  <bje@au.ibm.com>
5821         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
5823 2008-04-10  Rafael Espindola  <espindola@google.com>
5825         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
5826         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
5827         (extract_range_from_expr): The same.
5829 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
5831         * config/mips/mips.md (GPR2): New mode iterator.
5832         (seq): Add comment.
5833         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
5834         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
5835         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
5836         Rewrite these to take two modes, the mode of comparison and the
5837         mode of the destination.
5838         * config/mips/mips.c (mips_expand_scc): Instead of having
5839         paradoxical subreg as destination, expand "narrowing" scc if mode
5840         of comparison is SI and target is requested in DI mode.
5841         (mips_emit_int_order_test): Update comment.  Make mode of
5842         comparison match CMP0 rather than TARGET.  When creating inverse
5843         target use mode of TARGET.
5845 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
5847         * gcov-dump.c (tag_summary): Only print summaries for the first
5848         GCOV_COUNTERS_SUMMABLE counters.
5850 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
5852         * config/i386/i386.md (absneg): New code iterator.
5853         (absnegprefix): New code attribute.
5854         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
5855         patterns using absneg code iterator.
5856         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
5857         using absneg code iterator.
5858         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
5859         *neg<mode>2 patterns using absneg code iterator.
5860         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
5861         *negextendsfdf2 patterns using absneg code iterator.
5862         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
5863         *negextendsfxf2 patterns using absneg code iterator.
5864         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
5865         *negextendsfdf2 patterns using absneg code iterator.
5866         * config/i386/sse.md (<code><mode>2): Macroize expander from
5867         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
5869 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
5871         * config/s390/s390.h: Remove the remains of the recent search
5872         & replace action of current_function_outgoing_args_size.
5874 2008-04-10  Ira Rosen  <irar@il.ibm.com>
5876         PR tree-optimization/35821
5877         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
5878         NEW_STMT_LIST is not NULL.
5880 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
5882         PR libstdc++/35597
5883         * toplev.c (process_options): Remove -ffunction-sections debugging
5884         warning.
5886 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
5888         PR middle-end/PR28690
5889         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
5890         than gen_rtx_fmt_ee to perform more canonicalizations.
5892 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5894         PR driver/35665
5895         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
5897 2008-04-09  Richard Guenther  <rguenther@suse.de>
5899         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
5900         (dump_function_to_file): Dump function arguments with types.
5902 2008-04-08  Richard Guenther  <rguenther@suse.de>
5904         * fold-const.c (fold_widened_comparison): Do not allow
5905         sign-changes that change the result.
5907 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
5909         PR target/35839
5910         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
5911         kinds of indirect references.
5913 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
5915         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
5916         GNU Fortran language string.
5918 2008-04-08  Rafael Espindola  <espindola@google.com>
5920         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
5921         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
5922         * tree.h (tree_call_nonnegative_warnv_p): New.
5924 2008-04-08  Jan Hubicka  <jh@suse.cz>
5926         * function.c (free_after_compilation): Clear out regno_reg_rtx
5927         pointer.
5929 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
5931         Revert
5932         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
5934         PR middle-end/PR28690
5935         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
5936         same precedence as REG_POINTER and MEM_POINTER operands.
5938 2008-04-08  Richard Guenther  <rguenther@suse.de>
5940         PR middle-end/35834
5941         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
5942         for adding index to base.
5944 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
5946         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
5947         (MINGW_ENABLE_EXECUTE_STACK): New.
5948         (IN_LIBGCC2): For libgcc include windows.h file for
5949         function declarations.
5951 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
5953         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
5954         and tem2 if tem1 is not a REG or MULT.
5956 2008-04-08  Jan Hubicka  <jh@suse.cz>
5958         * function.h (incomming_args): Break out of struct function.
5959         (function_subsections): Break out of struct function.
5960         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
5961         return_rtx and hard_reg_initial_vals from struct function.
5962         Kill inl_max_label_num.
5963         (current_function_pops_args, current_function_args_info,
5964         current_function_args_size, current_function_args_size,
5965         current_function_pretend_args_size,
5966         current_function_outgoing_args_size,
5967         current_function_internal_arg_pointer, current_function_return_rtx):
5968         Kill compatibility accestor macros.
5969         * builtins.c (expand_builtin_apply_args_1): Update.
5970         (expand_builtin_next_arg): Update.
5971         * df-scan.c (df_get_call_refs): Update.
5972         * dbxout.c (dbxout_function_end): Update.
5973         * dwarf2out.c (dwarf2out_switch_text_section): Update.
5974         (output_line_info): Update.
5975         (secname_for_decl): Update.
5976         (dwarf2out_var_location): Update.
5977         * function.c (free_after_compilation): Update.
5978         (assign_parm_find_stack_rtl): Update.
5979         (assign_parms): Update.
5980         (expand_dummy_function_end): Update.
5981         (expand_function_end): Update.
5982         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
5983         (expand_call): Update.
5984         (emit_library_call_value_1): Update.
5985         (store_one_arg): Update.
5986         * varasm.c (initialize_cold_section_name): Update.
5987         (unlikely_text_section): Update.
5988         (unlikely_text_section_p): Update.
5989         (assemble_start_function): Update.
5990         (assemble_end_function): Update.
5991         (default_section_type_flags): Update.
5992         (switch_to_section): Update.
5993         * integrate.c (set_decl_abstract_flags): Update.
5994         (get_hard_reg_initial_val): Update.
5995         (has_hard_reg_initial_val): Update.
5996         (allocate_initial_values): Update.
5997         * resource.c (init_resource_info): Update.
5998         * config/alpha/alpha.c (NUM_ARGS): Update.
5999         (direct_return): Update.
6000         (alpha_va_start): Update.
6001         (alpha_sa_size): Update.
6002         (alpha_initial_elimination_offset): Update.
6003         (alpha_expand_prologue): Update.
6004         (alpha_start_function): Update.
6005         (alpha_expand_epilogue): Update.
6006         (unicosmk_initial_elimination_offset):
6007         * config/alpha/alpha.md (call expander): Update.
6008         * config/s390/s390.c (s390_register_info): Update.
6009         (s390_register_info): Update.
6010         (s390_frame_info): Update.
6011         (s390_initial_elimination_offset): Update.
6012         (s390_build_builtin_va_list): Update.
6013         (s390_va_start): Update.
6014         * config/spu/spu.c (direct_return): Update.
6015         (spu_expand_prologue): Update.
6016         (spu_initial_elimination_offset): Update.
6017         (spu_build_builtin_va_list): Update.
6018         (spu_va_start): Update.
6019         * config/sparc/sparc.c (sparc_init_modes): Update.
6020         (sparc_compute_frame_size): Update.
6021         (function_value): Update.
6022         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
6023         * config/i386/i386.md (return expander): Update.
6024         * config/i386/i386.c (ix86_va_start): Update.
6025         (ix86_can_use_return_insn_p): Update.
6026         (ix86_compute_frame_layout): Update.
6027         (ix86_expand_epilogue): Update.
6028         * config/sh/sh.c (output_stack_adjust): Update.
6029         (calc_live_regs): Update.
6030         (sh_expand_prologue): Update.
6031         (sh_builtin_saveregs): Update.
6032         (sh_va_start): Update.
6033         (initial_elimination_offset): Update.
6034         (sh_allocate_initial_value): Update.
6035         (sh_function_ok_for_sibcall): Update.
6036         (sh_get_pr_initial_val): Update.
6037         * config/sh/sh.md (return expander): Update.
6038         * config/avr/avr.c (frame_pointer_required_p): UPdate.
6039         * config/crx/crx.c (crx_compute_frame): UPdate.
6040         (crx_initial_elimination_offset): UPdate.
6041         * config/xtensa/xtensa.c (compute_frame_size): Update
6042         (xtensa_builtin_saveregs): Update.
6043         (xtensa_va_start): Update.
6044         (order_regs_for_local_alloc): Update.
6045         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
6046         (xstormy16_expand_builtin_va_start): Update.
6047         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
6048         * config/m68hc11/m68hc11.md (return expanders): Update.
6049         * config/m68hc11/m68hc11.c (expand_prologue): Update.
6050         (expand_epilogue): Update.
6051         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
6052         (cris_simple_epilogue): Update.
6053         (cris_expand_prologue): Update.
6054         (cris_expand_epilogue): Update.
6055         * config/iq2000/iq2000.c (iq2000_va_start): Update.
6056         (compute_frame_size): Update.
6057         * config/mt/mt.c (mt_compute_frame_size): Update.
6058         * config/mn10300/mn10300.c (expand_prologue): Update.
6059         (expand_epilogue): Update.
6060         (initial_offset): Update.
6061         (mn10300_builtin_saveregs):
6062         * config/mn10300/mn10300.md (return expander): Update.
6063         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
6064         (ia64_initial_elimination_offset): Update.
6065         (ia64_initial_elimination_offset): Update.
6066         (ia64_expand_prologue): Update.
6067         * config/m68k/m68k.md (return expander): Update.
6068         * config/rs6000/rs6000.c (rs6000_va_start): Update.
6069         (rs6000_stack_info): Update.
6070         * config/mcore/mcore.c (layout_mcore_frame): Update.
6071         (mcore_expand_prolog): Update.
6072         * config/arc/arc.c (arc_compute_frame_size): Update.
6073         * config/score/score3.c (score3_compute_frame_size): Update.
6074         * config/score/score7.c (score7_compute_frame_size): Update.
6075         * config/arm/arm.c (use_return_insn): Update.
6076         (thumb_find_work_register): Update.
6077         (arm_compute_save_reg_mask): Update.
6078         (arm_output_function_prologue): Update.
6079         (arm_output_epilogue): Update.
6080         (arm_size_return_regs): Update.
6081         (arm_get_frame_offsets): Update.
6082         (arm_expand_prologue): Update.
6083         (thumb_exit): Update.
6084         (thumb_unexpanded_epilogue): Update.
6085         (thumb1_output_function_prologue): Update.
6086         * config/pa/pa.md (return expander): Update.
6087         * config/pa/pa.c (compute_frame_size): Update.
6088         (hppa_builtin_saveregs): Update.
6089         * config/mips/mips.c (mips_va_start): Update.
6090         (mips16_build_function_stub): Update.
6091         (mips_compute_frame_info): Update.
6092         (mips_restore_gp): Update.
6093         (mips_output_function_prologue): Update.
6094         (mips_expand_prologue): Update.
6095         * config/v850/v850.c (compute_frame_size): Update.
6096         (expand_prologue): * config/mmix/mmix.c (along): update.
6097         (mmix_initial_elimination_offset): update.
6098         (mmix_reorg): update.
6099         (mmix_use_simple_return): update.
6100         (mmix_expand_prologue): update.
6101         (mmix_expand_epilogue): Update.
6102         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
6103         (emit_link_insn): Update.
6105 2008-04-08  Anatoly Sokolov <aesok@post.ru>
6107         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
6108         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
6109         instructions.
6110         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
6111         atmega103 device.
6113 2008-04-07  Jan Hubicka  <jh@suse.cz>
6115         * function.h (rtl): Rename to x_rtl.
6116         (crtl): New define.
6117         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
6118         frame_offset, stack_check_probe_note, arg_pointer_save_area,
6119         used_temp_slots avail_temp_slots, temp_slot_level,
6120         nonlocal_goto_handler_labels): Update accesstors.
6121         (rtl): New global variable.
6122         (struct function): Move some fileds to rtl_data.
6123         (get_arg_pointer_save_area): Update prototype.
6124         * builtins.c (expand_builtin_setjmp_receiver): Update call of
6125         get_arg_pointer_save_area.
6126         * expr.c (init_expr): Update
6127         * function.c (get_frame_size): Update
6128         (assign_stack_local): Update
6129         (expand_function_end): Update.
6130         (get_art_pointer_save_area): Update
6131         * function.h 
6132         * emit-rtl.c (rtl): Declare.
6133         (regno_reg_rtx): Declare.
6134         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
6135         Update.
6136         (gen_reg_rtx): Update.
6137         * varasm.c (n_deferred_constatns): Update accestor.
6138         (init_varasm_status): Do not allocate varasm_status.
6139         (force_const_mem, get_pool_size, output_constant_pool): Update.
6140         * stmt.c (force_label_rtx): Do not use x_ prefixes.
6141         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
6142         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
6143         * sparc/sparc.h (INIT_EXPANDERS): Update.
6144         * ia64/ia64.h (INIT_EXPANDERS): Update.
6146 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
6148         * reload.c (push_secondary_reload): Add missing break to for loop.
6150 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
6152         PR middle-end/PR28690
6153         * rtlanal.c: Update copyright years.
6154         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
6155         as REG_POINTER and MEM_POINTER operands.
6156         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
6157         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
6158         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
6159         * gcse.c: Update copyright years.
6160         (pre_delete): Call gen_reg_rtx_and_attrs.
6161         (hoist_code): Likewise.
6162         (build_store_vectors): Likewise.
6163         (delete_store): Likewise.
6164         * loop-invariant.c (move_invariant_reg): Likewise.
6165         Update copyright years.
6167 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
6169         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
6170         control string instead of quoted.
6172 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
6174         * doc/rtl.texi: Rewrite of subreg section.
6176 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
6178         PR/35842
6179         * config/i386/i386.c (legitimize_pic_address): Add treating
6180         of dllimport SYM_REF's.
6181         (legitimize_dllimport_symbol): Add prototype.
6183 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6185         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
6186         reference in constructor with non self-referential type.
6188 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6190         Removal of Return with Depressed Stack Pointer support
6191         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
6192         (ECF_SP_DEPRESSED): Likewise.
6193         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
6194         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
6195         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6196         (expand_call): Do not test ECF_SP_DEPRESSED.
6197         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6198         * function.c (keep_stack_depressed): Delete.
6199         (handle_epilogue_set): Likewise.
6200         (update_epilogue_consts): Likewise.
6201         (emit_equiv_load): Likewise.
6202         (thread_prologue_and_epilogue_insns): Remove support for Return with
6203         Depressed Stack Pointer.
6204         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6206 2008-04-06  Richard Guenther  <rguenther@suse.de>
6208         PR tree-optimization/35400
6209         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
6210         information from SSA_NAMEs.
6212 2008-04-06  Anatoly Sokolov <aesok@post.ru>
6214         * config/avr/avr.h (avr_mega_p): Remove declaration.
6215         (AVR_MEGA): Remove macro.
6216         * config/avr/avr.c (avr_mega_p): Remove variable.
6217         (avr_override_options): Remove inicializion of avr_mega_p.
6218         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
6219         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
6220         (avr_jump_mode): (Ditto.).
6221         (avr_output_progmem_section_asm_op): (Ditto.).
6222         (avr_asm_init_sections): (Ditto.).
6223         (avr_asm_init_sections): (Ditto.).
6224         (avr_rtx_costs): (Ditto.).
6225         * config/avr/avr.md: (Ditto.).
6226         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
6227         '__AVR_MEGA__'.
6229 2008-04-06  Richard Guenther  <rguenther@suse.de>
6231         PR tree-optimization/35842
6232         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
6233         is_gimple_invariant_address.
6235 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6237         * gcc.c (default_compilers): Sync Fortran extensions list with
6238         that in fortran/lang-specs.h.
6239         * doc/invoke.texi: Likewise.
6240         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
6241         * dwarf2out.c (gen_compile_unit_die): Likewise.
6243 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
6245         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
6247 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
6249         PR target/12329
6250         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
6251         attribute is used for nested functions.
6253 2008-04-05  Jan Hubicka  <jh@suse.cz>
6255         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
6257         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
6258         letter argument.
6259         (dump_files): Update.
6260         (enable_rtl_dump_file): Do not accept letter argument.
6261         * tree-pass.h (dump_file_info): Remove letter argument.
6262         * toplev.c (decode_d_option): Update -da handling.
6263         * toplev.h (enable_rtl_dump_file): Update prototype.
6264         * passes.c (register_one_dump_file): Do not accept IPA argument; work
6265         it out based on pass type.
6266         (register_dump_files_1): Likewise.
6267         (init_optimization_passes): Update register_one_dump_file calls.
6268         (execute_one_pass): Sanity check that IPA passes are called at IPA
6269         level and RTL passes at RTL level.
6270         (execute_pass_list): IPA pass can not be after or subpass of
6271         GIMPLE/RTL pass.
6272         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
6273         disallov RTL subpasses of IPA subpasses.
6275 2008-04-05  Ben Elliston  <bje@au.ibm.com>
6277         * tree-cfg.c (need_fake_edge_p): Return false for calls to
6278         builtins that return exactly once and do not throw. Cache call to
6279         call_expr_flags.
6281 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
6283         PR rtl-optimization/34916
6284         PR middle-end/35519
6285         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
6286         between instruction pairs.
6288 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
6290         * doc/invoke.texi: Document -mbitops for SH.
6291         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
6292         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
6293         * config/sh/sh.c (print_operand): Add %t operand code.
6294         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
6295         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
6296         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
6297         (extendqihi2): Likewise.
6298         (movqi_i): Likewise.
6299         (insv): Use bset, bclr and bst instructions for SH2A if possible.
6300         (extv): Use bld instruction for SH2A if possible.
6301         (extzv): Likewise.
6302         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
6303         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
6304         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
6305         (bset.b, bclr.b): Define peepholes.
6306         * config/sh/sh.opt (mbitops): New option.
6308 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
6310         PR target/35620
6311         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
6312         and view convert expression.
6314 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
6316         PR target/35364
6317         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
6319 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
6321         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
6323         * config/i386/cpuid.h (bit_AES): New.
6324         (bit_PCLMUL): Likewise.
6326         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
6327         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
6328         SSE2 if AES or PCLMUL is enabled.
6329         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
6330         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
6331         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
6332         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
6333         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
6334         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
6335         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
6336         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
6337         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
6338         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
6339         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
6340         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
6341         __builtin_ia32_aeskeygenassist128 and
6342         __builtin_ia32_pclmulqdq128.
6343         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
6344         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
6345         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
6347         * config/i386/i386.h (TARGET_AES): New.
6348         (TARGET_PCLMUL): Likewise.
6349         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
6351         * config/i386/i386.md (UNSPEC_AESENC): New.
6352         (UNSPEC_AESENCLAST): Likewise.
6353         (UNSPEC_AESDEC): Likewise.
6354         (UNSPEC_AESDECLAST): Likewise.
6355         (UNSPEC_AESIMC): Likewise.
6356         (UNSPEC_AESKEYGENASSIST): Likewise.
6357         (UNSPEC_PCLMUL): Likewise.
6359         * config/i386/i386.opt (maes): New.
6360         (mpclmul): Likewise.
6362         * config/i386/sse.md (aesenc): New pattern.
6363         (aesenclast): Likewise.
6364         (aesdec): Likewise.
6365         (aesdeclast): Likewise.
6366         (aesimc): Likewise.
6367         (aeskeygenassist): Likewise.
6368         (pclmulqdq): Likewise.
6370         * config/i386/wmmintrin.h: New.
6372         * doc/extend.texi: Document AES and PCLMUL built-in function.
6374         * doc/invoke.texi: Document -maes and -mpclmul.
6376 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
6378         * function.c (free_after_parsing): Replace with
6379         cxx_push_function_context from C++ front-end.
6380         (allocate_struct_function): Don't call langhook.
6381         * langhooks.h (struct lang_hooks_for_functions): Delete.
6382         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
6383         member "function".
6384         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
6385         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
6386         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
6387         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
6388         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
6389         remove LANG_HOOKS_FUNCTION_INITIALIZER.
6390         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
6392         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
6393         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
6394         
6395 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
6397         PR c/35440
6398         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
6399         for all types.
6401 2008-04-04  Richard Guenther  <rguenther@suse.de>
6403         PR middle-end/35823
6404         * fold-const.c (optimize_minmax_comparison): Use the correct
6405         type for the constant in the simplified comparison.
6407 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
6409         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
6410         Pass L2 size as "--param l2-cache-size" to the compiler.
6411         (decode_l2_cache): New function to decode L2 cache parameters using
6412         0x8000006 extended cpuid function.
6413         (detect_caches_amd): Determine parameters of L2 cache using
6414         decode_l2_caches function.
6415         (decode_caches_intel): Decode L2 cache parameters.
6416         (detect_caches_intel): Determine L2 cache parameters using
6417         decode_caches_intel and decode_l2_caches functions.
6419 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
6421         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
6422         secondary input reload for subword loads from the constant pool.
6424 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
6426         PR target/35713
6427         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
6428           constants of the appropriate size for runtime calculations.
6430         PR c/35712
6431         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
6432           decimal-float literal constant zero.
6434 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
6436         PR c/35738
6437         * c-parser.c (c_parser_omp_atomic): Call
6438         default_function_array_conversion on the RHS.
6440         PR middle-end/35818
6441         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
6442         call is_variable_sized if decl has incomplete type.
6444 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
6446         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
6448 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
6450         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
6451         iterators.
6452         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
6453         (sgt<u>): Merge sgt and sgtu into new expander.
6454         (sgt, sgtu): Remove expanders.
6455         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
6456         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
6457         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
6458         *sgtu_<mode>_mips16 into new pattern.
6459         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
6460         (sge<u>): Merge sge and sgeu into new expander.
6461         (sge, sgeu): Remove expanders.
6462         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
6463         new pattern.
6464         (*sge_<mode>, second *sge_<mode>): Remove patterns.
6465         (slt<u>): Merge slt and sltu into new expander.
6466         (slt, sltu): Remove expanders.
6467         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
6468         (*slt_<mode>, *sltu_<mode>): Remove patterns.
6469         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
6470         *sltu_<mode>_mips16 into new pattern.
6471         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
6472         (sle<u>): Merge sle and sleu into new expander.
6473         (sle, sleu): Remove expanders.
6474         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
6475         (*sle_<mode>, *sleu_<mode>): Remove patterns.
6476         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
6477         *sleu_<mode>_mips16 into new pattern.
6478         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
6480 2008-04-03  Jan Hubicka  <jh@suse.cz>
6482         PR tree-optimization/35795
6483         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
6484         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6485         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
6486         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
6487         * score/score3.c (score3_output_mi_thunk): Likewise.
6488         * score/score7.c (score7_output_mi_thunk): Likewise.
6489         * mips/mips.c (mips_output_mi_thunk): Likewise.
6491 2008-04-03  Richard Guenther  <rguenther@suse.de>
6493         * tree-vrp.c (extract_range_from_unary_expr): Handle all
6494         conversions.  Simplify code.
6496 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
6498         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
6500 2008-04-03  Tom Tromey  <tromey@redhat.com>
6501             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6503         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
6504         * config/bfin/t-bfin-linux (generated_files): Add
6505         linux-sysroot-suffix.h.
6506         * doc/install.texi (Prerequisites): Require make 3.80.
6507         * doc/sourcebuild.texi (Front End Directory): Document new
6508         variable.
6509         * Makefile.in (generated_files): New variable.
6510         (ALL_HOST_OBJS): New variable.
6511         ($(ALL_HOST_OBJS)): New target.
6513 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
6515         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
6516         (remap_block): Call id->transform_lang_insert_block instead
6517         of langhook.
6518         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
6519         Set id.transform_lang_insert_block to NULL.
6520         (clone_body): Move to cp/optimize.c
6521         * tree-inline.h (struct copy_body_data): Change
6522         transform_lang_insert_block to function pointer.
6523         (copy_generic_body, copy_decl_no_change): Export.
6524         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
6525         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
6526         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
6528         * c-tree.h (insert_block): Kill.
6529         * c-decl.c (insert_block): Kill.
6531 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
6533         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6534         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
6535         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
6536         argument.
6537         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
6538         argument, call {push,pop}_function_context from here.
6539         * c-parser.c: Use c_{push,pop}_function_context.
6541         * function.c (push_function_context_to): Move meat ...
6542         (push_function_context): ... here.  Simplify.
6543         * function.c (pop_function_context_from): Move meat ...
6544         (pop_function_context): ... here.  Simplify.
6545         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
6546         leave_nested).
6547         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6548         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
6549         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
6550         * tree.h (push_function_context_to, pop_function_context_from): Remove.
6552 2008-04-03  Ben Elliston  <bje@au.ibm.com>
6554         * expmed.c (extract_force_align_mem_bit_field): Remove.
6556 2008-04-03  Richard Guenther  <rguenther@suse.de>
6558         PR middle-end/35800
6559         * expr.h (try_casesi): Adjust prototype.
6560         * expr.c (try_casesi): Take fallback label as extra parameter.
6561         Use that for gen_casesi if default_label is NULL.
6562         * stmt.c (expand_case): Pass fallback label to try_casesi,
6563         make sure to fill gaps with a fallback label if default_label
6564         is not present.
6566 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
6568         PR target/35801
6569         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
6571 2008-04-03  Ben Elliston  <bje@au.ibm.com>
6573         * expmed.c (extract_split_bit_field): Remove if (0) code.
6574         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
6575         (do_ds_constraint): Likewise.
6577 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
6579         * doc/cppopts.texi (-dU): Document.
6580         * c-common.h (flag_dump_macros): Update comment.
6581         * c-opts.c (handle_OPT_d): Handle -dU.
6582         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
6583         dump_queued_macros, cb_used_define, cb_used_undef): New.
6584         (init_pp_output): Handle -dU.
6585         (cb_line_change): Call dump_queued_macros.
6586         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
6588 2008-04-02  Anatoly Sokolov <aesok@post.ru>
6590         * config/avr/predicates.md (io_address_operand): New predicate. 
6591         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
6592         * config/avr/avr.c (avr_io_address_p): Remove function.
6593         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
6594         'avr_io_address_p' function.
6595         (out_movhi_r_mr): (Ditto.).
6596         (out_movqi_mr_r): (Ditto.).
6597         (out_movhi_mr_r): (Ditto.).
6598         (avr_address_cost): (Ditto.).
6600 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
6602         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
6603         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
6604         in 32bit mode when XMM registers are available to avoid store
6605         forwarding stalls.
6606         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
6607         corresponding post-reload splitters.
6609 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
6611         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
6612         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
6613         __builtin_ia32_roundss.
6614         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
6615         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
6616         __builtin_ia32_roundss.
6617         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
6618         IX86_BUILTIN_SHUFPD here.
6620 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
6622         * config/i386/i386.md (plogic): New.
6623         (plogicprefix): Likewise.
6625         * config/i386/mmx.md (mmx_<code><mode>3): New.
6626         (mmx_and<mode>3): Removed.
6627         (mmx_ior<mode>3): Likewise.
6628         (mmx_xor<mode>3): Likewise.
6630         * config/i386/sse.md (<code><mode>3): New.
6631         (*<code><mode>3): Likewise.
6632         (*<code><mode>3): Likewise.
6633         (<code><mode>3): Likewise.
6634         (*sse_<code><mode>3): Likewise.
6635         (*sse2_<code><mode>3): Likewise.
6636         (<code>tf3): Likewise.
6637         (*<code>tf3): Likewise.
6638         (and<mode>3): Likewise.
6639         (*and<mode>3): Likewise.
6640         (ior<mode>3): Removed.
6641         (*ior<mode>3): Likewise.
6642         (xor<mode>3): Likewise.
6643         (*xor<mode>3): Likewise.
6644         (*and<mode>3): Likewise.
6645         (*ior<mode>3): Likewise.
6646         (*xor<mode>3): Likewise.
6647         (and<mode>3): Likewise.
6648         (*sse_and<mode>3): Likewise.
6649         (*sse2_and<mode>3): Likewise.
6650         (andtf3): Likewise.
6651         (*andtf3): Likewise.
6652         (ior<mode>3): Likewise.
6653         (*sse_ior<mode>3): Likewise.
6654         (*sse2_ior<mode>3): Likewise.
6655         (iortf3): Likewise.
6656         (*iortf3): Likewise.
6657         (xor<mode>3): Likewise.
6658         (*sse_xor<mode>3): Likewise.
6659         (*sse2_xor<mode>3): Likewise.
6660         (xortf3): Likewise.
6661         (*xortf3): Likewise.
6663 2008-04-02  Richard Guenther  <rguenther@suse.de>
6665         PR tree-optimization/14495
6666         PR tree-optimization/34793
6667         * tree-vrp.c (struct switch_update): New structure.
6668         (to_remove_edges, to_update_switch_stmts): New VECs.
6669         (simplify_switch_using_ranges): New function.  Remove not taken
6670         case labels and edges.
6671         (simplify_stmt_using_ranges): Call it.
6672         (identify_jump_threads): Mark edges we have queued for removal
6673         so we don't thread them.
6674         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
6675         case label vector.
6676         * tree-cfg.c (group_case_labels): Deal with missing default label.
6677         (tree_verify_flow_info): Allow missing default label.
6678         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
6679         (emit_case_nodes): Likewise.
6680         (expand_case): Do not rely on the default label to be present.
6681         * expr.c (try_casesi): Deal with NULL default_label.
6682         (do_tablejump): Likewise.
6684 2008-04-02  Richard Guenther  <rguenther@suse.de>
6686         PR tree-optimization/14495
6687         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
6688         SWITCH_EXPR here ...
6689         (vrp_visit_switch_stmt): ... but here (new function).
6690         (find_case_label_index): New helper function.
6691         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
6693 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
6695         * fwprop.c: Fix ISO-C99ism.
6697 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
6699         PR bootstrap/35752
6700         * Makefile.in (objdir): Set it here.
6701         * configure.ac: Not here.  Find dynamic linker characteristics.
6702         * exec-tool.in: Use them.
6703         * aclocal.m4: Regenerate.
6704         * configure: Regenerate.
6706 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
6708         * expr.c (expand_var): Delete it.
6709         * expr.h (expand_var): Delete prototype.
6710         * function.c (expand_function_start): Use expand_decl instead.
6711         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
6712         langhook.
6714 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
6716         PR rtl-optimization/35542
6717         * fwprop.c (forward_propagate_and_simplify): Replace
6718         loc_reg_mentioned_in_p with reg_mentioned_p.
6720 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
6722         PR rtl-optimization/35281
6723         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
6724         (propagate_rtx_1): Handle PR_HANDLE_MEM.
6725         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
6726         (varying_mem_p): Move above propagate_rtx.
6727         (all_uses_available_at): Do not check MEMs.
6729 2008-04-02  Rafael Espindola  <espindola@google.com>
6731         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
6732         (register_edge_assert_for_2): Split the cond argument.
6733         (register_edge_assert_for_1): Adjust for the change in
6734         register_edge_assert_for_2.
6735         (register_edge_assert_for): Split the cond argument.
6736         (find_switch_asserts): Adjust for the change in
6737         register_edge_assert_for.
6739 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
6741         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
6742         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
6743         offsets for 64-bit mingw.
6744         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
6745         abi for x86_64-pc-mingw.
6747 2008-04-02  Richard Guenther  <rguenther@suse.de>
6749         * tree-vrp.c (extract_range_from_assert): Make sure to not
6750         produce range min/max with TREE_OVERFOW set.
6751         If merging a anti-range and a range keep the anti-range if
6752         the range covers all values of the type.
6753         (register_edge_assert_for_2): Only allow sign-changing
6754         conversions in detecting canonical range checks.  Also
6755         register an assert for the unsigned name if useful.
6757         PR tree-optimization/35787
6758         * tree-vrp.c (vrp_val_max): New function.
6759         (vrp_val_min): Likewise.
6760         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
6761         (vrp_val_is_min): Likewise.
6762         (supports_overflow_infinity): Use vrp_val_{min,max}.
6763         (negative_overflow_infinity): Likewise.
6764         (positive_overflow_infinity): Likewise.
6765         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
6766         (is_positive_overflow_infinity): Likewise.
6767         (is_overflow_infinity): Likewise.
6768         (avoid_overflow_infinity): Use vrp_val_{min,max} and
6769         vrp_val_is_{min,max}.
6770         (set_and_canonicalize_value_range): Canonicalize anti-ranges
6771         to ranges if possible.  Avoid empty ranges.
6773 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6775         PR middle-end/35705
6776         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
6777         the expression is a function address.
6779 2008-04-01  George Helffrich  <george@gcc.gnu.org>
6781         PR fortran/35154, fortran/23057
6782         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
6783         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
6784         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
6785         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
6786         in common.
6787         (dbxout_syms): Check for COMMON-based symbol and wrap in
6788         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
6789         in bracket for efficiency.
6791         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
6792         using DW_TAG_common_block + member offset.
6793         (add_pubname_string): New function.
6794         (dw_expand_expr): New function to find block name and offset for
6795         COMMON var.
6796         (common_check): New function to check whether symbol in Fortran COMMON.
6797         (gen_variable_die): If COMMON, use DW_TAG_common_block.
6799 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
6801         PR c/35436
6802         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
6804 2008-04-02  Ben Elliston  <bje@au.ibm.com>
6806         * config/v850/v850.md (casesi): Remove if (0) code.
6807         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6808         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6810 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
6812         * config/i386/i386.md (rex64suffix): New mode attribute.
6813         (floathi<mode>2): Disable expander for SSE math.
6814         (*floathi<mode>2_1): New insn insn_and_split pattern.
6815         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
6816         corresponding post-reload splitters.
6817         (*floathi<mode>2_i387): New macroized insn pattern.
6818         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
6819         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
6820         insn_and_split pattern.
6821         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
6822         New macroized instruction patterns and corresponding post-reload
6823         splitters.
6824         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
6825         and corresponding post-reload splitters.
6826         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
6827         New macroized instruction patterns.
6828         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
6829         macroized instruction patterns and corresponding post-reload splitters.
6830         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
6831         corresponding post-reload splitters.
6832         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
6833         New macroized instruction patterns.
6834         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
6835         corresponding post-reload splitters.
6836         (*floatsi<mode>2_i387): New macroized instruction patterns.
6838 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
6840         * config/i386/i386.md (smaxmin): New.
6841         (umaxmin): Likewise.
6842         (maxminiprefix): Likewise.
6843         (maxminfprefix): Likewise.
6844         (<code><mode>3): Likewise.
6845         (smin<mode>3): Removed.
6846         (smax<mode>3): Likewise.
6848         * config/i386/mmx.md (mmx_<code>v2sf3): New.
6849         (mmx_<code>v4hi3): Likewise.
6850         (mmx_<code>v8qi3): Likewise.
6851         (mmx_smaxv2sf3): Removed.
6852         (mmx_sminv2sf3): Likewise.
6853         (mmx_umaxv8qi3): Likewise.
6854         (mmx_smaxv4hi3): Likewise.
6855         (mmx_uminv8qi3): Likewise.
6856         (mmx_sminv4hi3): Likewise.
6858         * config/i386/sse.md (<addsub><mode>3): New.
6859         (*<addsub><mode>3): Likewise.
6860         (<sse>_vm<addsub><mode>3): Likewise.
6861         (<maxmin><mode>3): Likewise.
6862         (*<maxmin><mode>3_finite): Likewise.
6863         (*<maxmin><mode>3): Likewise.
6864         (<sse>_vm<maxmin><mode>3): Likewise.
6865         (sse3_h<addsub>v4sf3): Likewise.
6866         (sse3_h<addsub>v2df3): Likewise.
6867         (<maxmin>v16qi3): Likewise.
6868         (*<maxmin>v16qi3): Likewise.
6869         (<maxmin>v8hi3): Likewise.
6870         (*<maxmin>v8hi3): Likewise.
6871         (*sse4_1_<maxmin><mode>3): Likewise.
6872         (*sse4_1_<maxmin><mode>3): Likewise.
6873         (add<mode>3): Removed.
6874         (*add<mode>3): Likewise.
6875         (<sse>_vmadd<mode>3): Likewise.
6876         (sub<mode>3): Likewise.
6877         (*sub<mode>3): Likewise.
6878         (<sse>_vmsub<mode>3): Likewise.
6879         (smin<mode>3): Likewise.
6880         (*smin<mode>3_finite): Likewise.
6881         (*smin<mode>3): Likewise.
6882         (<sse>_vmsmin<mode>3): Likewise.
6883         (smax<mode>3): Likewise.
6884         (*smax<mode>3_finite): Likewise.
6885         (*smax<mode>3): Likewise.
6886         (<sse>_vmsmax<mode>3): Likewise.
6887         (sse3_haddv4sf3): Likewise.
6888         (sse3_haddv2df3): Likewise.
6889         (sse3_hsubv4sf3): Likewise.
6890         (sse3_hsubv2df3): Likewise.
6891         (umaxv16qi3): Likewise.
6892         (*umaxv16qi3): Likewise.
6893         (smaxv8hi3): Likewise.
6894         (*smaxv8hi3): Likewise.
6895         (*sse4_1_smax<mode>3): Likewise.
6896         (*sse4_1_umax<mode>3): Likewise.
6897         (uminv16qi3): Likewise.
6898         (*uminv16qi3): Likewise.
6899         (sminv8hi3): Likewise.
6900         (*sminv8hi3): Likewise.
6901         (*sse4_1_smin<mode>3): Likewise.
6902         (*sse4_1_umin<mode>3): Likewise.
6904 2008-04-01  Rafael Espindola  <espindola@google.com>
6906         * tree-cfg.c (verify_expr): remove in_phi.
6907         (verify_stmt): Don't call walk_tree with verify_expr. Use
6908         is_gimple_min_invariant instead of is_gimple_val.
6910 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
6912         * doc/include/gpl_v3.texi: Update for manpage generation.
6913         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
6914         gpl.texi.
6915         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
6916         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
6917         gpl_v3.texi instead of gpl.texi.
6918         (gpl.pod): New.
6920 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
6922         PR pch/13675
6923         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
6925 2008-04-01  Rafael Espindola  <espindola@google.com>
6927         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
6928         (extract_code_and_val_from_cond): Use
6929         extract_code_and_val_from_cond_with_ops.
6931 2008-04-01  Jan Hubicka  <jh@suse.cz>
6933         * function.c (free_after_compilation): Free epilogue_delay_list.
6934         (prepare_function_start): Assert that previous compilation was freed.
6936 2008-04-01  Jan Hubicka  <jh@suse.cz>
6937             Jim Wilson  <wilson@tuliptree.org>
6938             Andreas Tobler <andreast@gcc.gnu.org>
6940         PR middle-end/35781
6941         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
6942         rtl.emit instead cfun->emit.
6943         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
6944         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
6946 2008-04-01  Ben Elliston  <bje@au.ibm.com>
6948         * doc/c-tree.texi (Function Basics): Fix grammatical error.
6950 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
6952         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
6953         New options
6954         (fprofile-use): Add var flag_profile_use
6955         * coverage.c (coverage_begin_output): Do not open a gcno file for
6956         output only if -ftest-coverage is set.
6957         Do not add getpwd() to gcda file path.
6958         (build_gcov_info): Check the new flag
6959         flag_profile_datafile_relative_path.
6960         (coverage_init): Use profile_data_prefix.
6961         Read profile counter only if flag_profile_use is set.
6962         * opts.c (common_handle_option): New option fprofile-use=,
6963         fprofile-dir=, fprofile-generate=.
6964         * toplev.c (profile_data_prefix): New variable definition.
6965         * toplev.h (profile_data_prefix): New declaration.
6966         * doc/invoke.tex (Option Summary, Optimization Options):
6967         Add new options.
6969 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
6971         * varasm.c (output_constant_pool_1): In LABEL_REF check,
6972         use tmp consistently.
6974         PR target/35695
6975         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
6976         * config/ia64/ia64.c (rtx_needs_barrier): Handle
6977         UNSPEC_FR_RECIP_APPROX_RES.
6978         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
6980 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
6982         PR c/35750
6983         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
6985 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6987         PR middle-end/30186
6988         * fold-const.c (fold_indirect_ref_1): Support accessing non first
6989         element of the vector via a pointer.
6991 2008-03-31  Ian Lance Taylor  <iant@google.com>
6993         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
6995 2008-03-31  Jan Hubicka  <jh@suse.cz>
6997         * builtins.c (expand_builtin_setjmp_receiver): Update call of
6998         get_arg_pointer_save_area.
6999         * expr.c (init_expr): Just clear out rtl.expr.
7000         * function.c (free_after_compilation): Clear out whole RTL structure.
7001         (get_func_frame_size): Merge into ...
7002         (get_frame_size): ... this one.
7003         (assign_stack_local_1): Merge into ...
7004         (assign_stack_local): ... this one.
7005         (expand_function_end): Update call of get_arg_pointer_save_area.
7006         (get_art_pointer_save_area): Remove cfun argument.
7007         * function.h (emit_status): regno_pointer_align does not need length
7008         attribute. Move x_regno_reg_rtx to ...
7009         (regno_reg_rtx): ... new global array.
7010         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
7011         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
7012         apply_args_value, forced_labels, stack_pointer_delta):
7013         Update accestors.
7014         (struct varasm_status): Move here from varasm.c
7015         (struct rtl_data): New. Move here some fields from struct function.
7016         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
7017         frame_offset, stack_check_probe_note, arg_pointer_save_area,
7018         used_temp_slots avail_temp_slots, temp_slot_level,
7019         nonlocal_goto_handler_labels): Update accesstors.
7020         (rtl): New global variable.
7021         (struct function): Move some fileds to rtl_data.
7022         (get_arg_pointer_save_area): Update prototype.
7023         * emit-rtl.c (rtl): Declare.
7024         (regno_reg_rtx): Declare.
7025         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
7026         Update.
7027         (gen_reg_rtx): Update.
7028         (init_virtual_regs): Do not tate emit_status argument.
7029         (init_emit): Do not allocate emit.
7030         * varasm.c (varasm_statuc): Move to function.h.
7031         (n_deferred_constatns): Update accestor.
7032         (init_varasm_status): Do not allocate varasm_status.
7033         (force_const_mem, get_pool_size, output_constant_pool): Update.
7034         * stmt.c (force_label_rtx): Do not use x_ prefixes.
7035         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
7037 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
7039         PR rtl-optimization/35729
7040         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
7041         references.
7043 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
7045         PR target/32000
7046         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
7047         load/store if memory is unaligned.
7048         (*movti_rex64): Likewise.
7050         * config/i386/predicates.md (misaligned_operand): New.
7052 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
7054         PR tree-opt/35431
7055         * tree-ssa-phiopt.c (conditional_replacement): Return early for
7056         complex types.
7058 2008-03-31  Jan Beulich  <jbeulich@novell.com>
7060         * config/ia64/constraints.md: Add 'j' constraint.
7061         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
7062         (movdi_internal): Likewise.
7064 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
7066         PR c/35748
7067         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
7069 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7071         PR target/35757
7072         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
7073         proper error message for the third argument on blendpd and
7074         blendps.
7076         * config/i386/sse.md (blendbits): New.
7077         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
7079 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7081         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
7083 2008-03-30  Richard Guenther  <rguenther@suse.de>
7085         PR middle-end/31023
7086         * fold-const.c (fold_sign_changed_comparison): Do leave
7087         conversions to base-types alone.
7089 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7091         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
7092         the link register if one altivec register is be saved.
7094 2008-03-30  Ben Elliston  <bje@au.ibm.com>
7096         * final.c (final_scan_insn): Remove if (0) code.
7098 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
7100         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
7102 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7104         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
7105         of V4SFmode to ix86_binary_operator_ok.
7107 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
7109         * config/i386/i386.c (override_options): Initialize
7110         ix86_veclib_handler to ix86_veclibabi_svml when
7111         -mveclibabi=svml is used.
7112         (ix86_veclibabi_svml): New function for SVML ABI style
7113         vectorization support.
7114         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
7116 2008-03-28  Rafael Espindola  <espindola@google.com>
7118         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
7119         (tree_binary_nonnegative_warnv_p): Make it public.
7120         (tree_single_nonnegative_warnv_p): Make it public.
7121         (tree_invalid_nonnegative_warnv_p): Make it public.
7122         (tree_unary_nonzero_warnv_p): Make it public.
7123         (tree_binary_nonzero_warnv_p): Make it public
7124         (tree_single_nonzero_warnv_p): Make it public.
7125         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
7126         (extract_range_from_binary_expr): Split the expr argument.
7127         (extract_range_from_unary_expr): Split the expr argument.
7128         (extract_range_from_comparison): Split the expr argument.
7129         (extract_range_from_expr): Use the new aux functions.
7130         (vrp_evaluate_conditional_warnv): Use
7131         vrp_evaluate_conditional_warnv_with_ops.
7132         * tree.h (tree_unary_nonzero_warnv_p): Declare.
7133         (tree_binary_nonzero_warnv_p): Declare.
7134         (tree_single_nonzero_warnv_p): Declare.
7135         (tree_expr_nonzero_warnv_p): Declare.
7136         (tree_unary_nonnegative_warnv_p): Declare.
7137         (tree_binary_nonnegative_warnv_p): Declare.
7138         (tree_single_nonnegative_warnv_p): Declare.
7139         (tree_invalid_nonnegative_warnv_p): Declare.
7141 2008-03-28  Richard Guenther  <rguenther@suse.de>
7143         PR tree-optimization/30317
7144         PR tree-optimization/30911
7145         PR tree-optimization/34793
7146         * tree-vrp.c (set_and_canonicalize_value_range): New function.
7147         (struct assert_locus_d): New member EXPR.
7148         (register_new_assert_for): Add EXPR parameter to support
7149         ASSERT_EXPR <name, expr OP limit>.
7150         (register_edge_assert_for_1): Adjust callers.
7151         (find_assert_locations): Likewise.
7152         (process_assert_insertions_for): Build condition from expression.
7153         (extract_range_from_assert): Handle ASSERT_EXPRs
7154         of the form ASSERT_EXPR <name, expr OP limit>.
7155         (register_edge_assert_for_2): New helper registering
7156         asserts for comparisons.  Recognize range tests of the form
7157         (unsigned)i - CST1 OP CST2.
7158         (register_edge_assert_for_1): Use it.
7159         (register_edge_assert_for): Likewise.
7160         (needs_overflow_infinity): Integer sub-types
7161         do not need overflow infinities.
7162         (vrp_val_is_max): The extreme values of integer sub-types
7163         are those of the base type.
7164         (vrp_val_is_min): Likewise.
7165         * tree.def (ASSERT_EXPR): Document extra allowed conditional
7166         expressions.
7168 2008-03-28  Nick Clifton  <nickc@redhat.com>
7170         PR target/31110
7171         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
7172         Return GENERAL_REGS for stack adjustment reloads.
7174 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7176         PR target/31334
7177         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
7178         const_vector when all the vectors are constant.
7180 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
7182         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
7183         comparisons.
7184         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
7185         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
7186         (scc_sf): New.
7187         (s<code>_sf): Use new scc_sf attribute for opcode names.
7189 2008-03-27  Tom Tromey  <tromey@redhat.com>
7191         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
7192         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
7193         config/spu/t-spu-elf, config/i386/t-interix,
7194         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
7195         config/i386/x-darwin, config/i386/x-mingw32,
7196         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
7197         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
7198         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
7199         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
7200         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
7201         config/rs6000/x-darwin, config/rs6000/t-rs6000,
7202         config/score/t-score-elf, config/arm/t-strongarm-pe,
7203         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
7204         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
7205         Revert automatic dependency patch.
7207 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7209         PR target/35657
7210         * config/i386/i386.c (ix86_function_arg_boundary): Align
7211         decimal floating point to its natural boundary.
7213 2008-03-27  Richard Guenther  <rguenther@suse.de>
7215         PR middle-end/35716
7216         * fold-const.c (fold_comparison): Restrict distinct decl
7217         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
7218         solely rely on operand_equal_p.
7220 2008-03-27  Richard Guenther  <rguenther@suse.de>
7222         PR c/32511
7223         * c-common.c (handle_weak_attribute): Reject combination of
7224         weak and inline.
7226 2008-03-27  Richard Guenther  <rguenther@suse.de>
7228         PR tree-optimization/32810
7229         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
7230         conversions from DECL_INITIAL.
7231         (fold_const_aggregate_ref): Likewise from constructor elements.
7233 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
7235         * tree-affine.h (aff_combination_expand): Declare.
7236         (get_inner_reference_aff): Likewise.
7237         * tree-affine.c (aff_combination_expand): Split out from
7238         tree_to_aff_combination_expand.
7239         (get_inner_reference_aff): New function.
7240         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
7241         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
7242         (struct lim_aux_data): sm_done field removed.
7243         (mem_ref_loc_p, mem_ref_locs_p): New types.
7244         (struct mem_ref): Added id, stored, accesses_in_loop,
7245         indep_loop, dep_loop, indep_ref, dep_ref fields.
7246         Removed is_stored, locs and next fields.
7247         (memory_accesses): New variable.
7248         (movement_possibility): Do not allow moving statements
7249         that store to memory.
7250         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
7251         New functions.
7252         (determine_max_movement): For statements with memory references,
7253         find the outermost loop in that the reference is independent.
7254         (move_computations_stmt): Mark the virtual operands for renaming.
7255         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
7256         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
7257         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
7258         add_vop_ref_mapping, create_vop_ref_mapping_loop,
7259         create_vop_ref_mapping, analyze_memory_references,
7260         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
7261         get_all_locs_in_loop, ref_always_accessed_p,
7262         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
7263         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
7264         store_motion_loop, store_motion): New functions.
7265         (struct vop_to_refs_elt): New type.
7266         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
7267         memref_hash, memref_eq, hoist_memory_references): Rewritten.
7268         (schedule_sm): Replaced by...
7269         (execute_sm): ... this.
7270         (determine_lsm_ref, hoist_memory_references,
7271         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
7272         find_more_ref_vops, free_mem_ref, free_mem_refs,
7273         determine_lsm_loop, determine_lsm): Removed.
7274         (tree_ssa_lim_finalize): Free data structures used by store motion.
7275         (tree_ssa_lim): Call analyze_memory_references.  Use
7276         store_motion instead of determine_lsm.
7278 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
7280         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
7281         rename tmake_file to m68hc11/t-m68hc11.
7282         (mcore): Set inhibit_libc to true.
7283         * config.host (alpha*-dec-*vms*): Set extra_programs.
7284         (interix3*): Don't use host_xmake_file.
7285         * configure.ac: Let config.gcc override inhibit_libc.
7286         * configure: Regenerate.
7288         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
7289         * config/t-openbsd-thread: Remove commented out lines.
7290         
7291         * config/x-interix: Remove.
7293         * config/m68hc11/t-m68hc11-gas: Rename to...
7294         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
7296         * config/mcore/t-mcore: Remove T_CFLAGS.
7297         * config/mcore/t-mcore-pe: Likewise.
7299 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
7301         * configure.ac: Replace custom __GNU_SOURCE test with
7302         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
7303         * aclocal.m4: Regenerate.
7304         * configure: Regenerate.
7305         * config.in: Regenerate.
7307 2008-03-27  Richard Guenther  <rguenther@suse.de>
7309         * fold-const.c (target.h): Include.
7310         (fold_comparison): Fold comparison of addresses of decls
7311         that bind locally or of constants.  Consolidate address folding code.
7312         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
7313         results from fold_binary_to_constant.
7314         (compare_values_warnv): Likewise.
7316 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
7318         PR middle-end/35429
7319         * fold-const.c (fold_truthop): Check for integeral types when folding
7320         a == 0 && b == 0 and a != 0 || b != 0 .
7322 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7324         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
7326 2008-03-26  Andreas Schwab  <schwab@suse.de>
7328         * doc/invoke.texi: Fix use of @item vs. @itemx.
7330 2008-03-26  Tom Tromey  <tromey@redhat.com>
7332         * Makefile.in (build/gensupport.o, build/print-rtl.o,
7333         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
7334         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
7335         build/gencodes.o, build/genconditions.o, build/genconfig.o,
7336         build/genconstants.o, build/genemit.o, build/genextract.o,
7337         build/genflags.o, build/genmddeps.o, build/genopinit.o,
7338         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
7339         options.h.
7341 2008-03-26  Richard Guenther  <rguenther@suse.de>
7343         Revert
7344         2008-03-26  Richard Guenther  <rguenther@suse.de>
7346         * fold-const.c (target.h): Include.
7347         (fold_comparison): Fold comparison of addresses of two decls
7348         that bind locally.  Consolidate address folding code.
7350 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7352         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
7353         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
7354         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
7355         dconstsqrt2, dconstthird, dconste and/or dconst10.
7356         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
7357         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
7358         dconstsqrt2, dconste): Delete.
7359         (init_emit_once): Likewise.  Simplify initializing dconstm1.
7360         Constify variable.
7361         * real.c (get_real_const): New.
7362         * real.h (dconst3, dconst10, dconstm2, dconstthird,
7363         dconstsqrt2, dconste): Delete.
7364         (real_value_const, get_real_const): New.
7366 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
7368         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
7370         * config/i386/i386.c (ix86_function_arg_boundary): Check
7371         BIGGEST_ALIGNMENT instead of 128.
7372         (setup_incoming_varargs_64): Likewise.
7374 2008-03-26  Tom Tromey  <tromey@redhat.com>
7376         * Makefile.in (DEPFILES): Add missing '/'.
7378 2008-03-26  Richard Guenther  <rguenther@suse.de>
7380         * fold-const.c (target.h): Include.
7381         (fold_comparison): Fold comparison of addresses of two decls
7382         that bind locally.  Consolidate address folding code.
7384 2008-03-26  Nick Clifton  <nickc@redhat.com>
7386         PR target/31232
7387         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
7388         not allow INT+INT as a legitimate addressing mode.
7390 2008-03-26  Richard Guenther  <rguenther@suse.de>
7392         * tree-flow.h (widen_bitfield): Remove declaration.
7393         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
7394         (widen_bitfield): Remove function.
7395         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
7396         code.
7398 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7400         PR target/31558
7401         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
7402         error_mark_node's.
7404 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
7406         PR rtl-optimization/35232
7407         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
7408         (forget_old_reloads_1, forget_marked_reloads): Don't clear
7409         reg_reloaded_call_part_clobbered here.
7410         (reload_regs_reach_end_p): New function.
7411         (reload_reg_rtx_for_input): New variable.
7412         (reload_reg_rtx_for_output): Likewise.
7413         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
7414         when reassigning a pseudo register.  Load reloadreg from 
7415         reload_reg_rtx_for_input, moving the mode and register
7416         calculation to...
7417         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
7418         instead of the original when deciding whether an input reload
7419         would be a no-op or whether an output reload can be deleted.
7420         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
7421         when setting up new_spill_reg_store.  Load it from
7422         reload_reg_rtx_for_output, moving the mode and register
7423         calculation to...
7424         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
7425         instead of the original when deciding whether an output reload
7426         would be a no-op.  Do the same when modifying insn notes.
7427         Use rtx_equal_p instead of == to compare the registers.
7428         (inherit_piecemeal_p): Take a mode and two register numbers
7429         as argument.
7430         (emit_reload_insns): Clear new_spill_reg_store for every hard
7431         register in the reload register.  Remove spill registers
7432         from reg_reloaded_valid before considering whether to record
7433         inheritance information for them.  Use reload_reg_rtx_for_output
7434         instead of reg_rtx when recording output reloads.  Use
7435         reload_reg_rtx_for_input instead of reg_rtx when recording
7436         input reloads.  Set or clear reg_reloaded_call_part_clobbered
7437         at the same time as setting reg_reloaded_valid.
7438         (delete_output_reload): Add a new_reload_reg parameter and use it
7439         instead of rld[j].reg_rtx.
7440         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
7441         calls accordingly.
7443 2008-03-25  Tom Tromey  <tromey@redhat.com>
7445         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
7446         (build/genattr.o): Likewise.
7447         (build/genattrtab.o): Likewise.
7448         (build/gencodes.o): Likewise.
7449         (build/genconfig.o): Likewise.
7450         (build/genconstants.o): Likewise.
7451         (build/genemit.o): Likewise.
7452         (build/genextract.o): Likewise.
7453         (build/genflags.o): Likewise.
7455 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
7456         
7457         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
7458         instead of size_int for integer types.
7459         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
7460         to match type of MINUS_EXPR.
7461         
7462 2008-03-25  Tom Tromey  <tromey@redhat.com>
7464         * configure: Rebuilt.
7465         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
7466         Makefile.
7468 2008-03-25  Tom Tromey  <tromey@redhat.com>
7470         * config/x-solaris (host-solaris.o): Update.
7471         * config/x-linux (host-linux.o): Update.
7472         * config/x-hpux (host-hpux.o): Update.
7473         * config/x-darwin (host-darwin.o): Update.
7474         * config/v850/t-v850e (v850-c.o): Update.
7475         * config/v850/t-v850 (v850-c.o): Update.
7476         * config/t-vxworks (vxworks.o): Update.
7477         * config/t-sol2 (sol2-c.o, sol2.o): Update.
7478         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
7479         * config/spu/t-spu-elf (spu-c.o): Update.
7480         (spu.o): Remove.
7481         * config/sh/t-symbian (sh-c.o): Update.
7482         (symbian.o): Update.
7483         * config/sh/t-sh (sh-c.o): Update.
7484         * config/score/t-score-elf (score7.o, score3.o): Update.
7485         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
7486         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
7487         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
7488         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
7489         (rs6000.o): Remove.
7490         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
7491         * config/m32c/t-m32c (m32c-pragma.o): Update.
7492         * config/ia64/t-ia64 (ia64-c.o): Update.
7493         * config/i386/x-mingw32 (host-mingw32.o): Update.
7494         * config/i386/x-i386 (driver-i386.o): Update.
7495         * config/i386/x-darwin (host-i386-darwin.o): Update.
7496         * config/i386/x-cygwin (host-cygwin.o): Update.
7497         * config/i386/t-nwld (nwld.o): Update.
7498         * config/i386/t-netware (netware.o): Update.
7499         * config/i386/t-interix (winnt.o): Update.
7500         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
7501         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
7502         msformat-c.o): Update.
7503         * config/bfin/t-bfin-linux (generated_files): Add
7504         linux-sysroot-suffix.h.
7505         * config/arm/t-wince-pe (pe.o): Update.
7506         * config/arm/t-strongarm-pe (pe.o): Update.
7507         * config/arm/t-pe (pe.o): Update.
7508         * config/arm/t-arm (arm-c.o): Update.
7509         * doc/install.texi (Prerequisites): Require make 3.80.
7510         * Makefile.in: Remove .o targets.
7511         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
7512         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
7513         (simple_generated_h, simple_generated_c): Move earlier.
7514         (generated_files): New variable.
7515         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
7516         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
7517         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
7518         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
7519         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
7520         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
7521         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
7522         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
7523         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
7524         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
7525         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
7526         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
7527         (.c.o): Remove.
7528         (COMPILE.base, COMPILE): New variables.
7529         (%.o): New pattern rule.
7530         (ALL_HOST_OBJS): New variable.
7531         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
7532         (dummy-checksum.o, cc1-checksum.o): Remove.
7533         (DRIVER_SHLIB): New variable.
7534         (DRIVER_DEFINES): Use it.
7535         (gencondmd.c): Move out of build/.
7536         (s-conditions): Update.
7537         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
7538         (ALL_BUILD_OBJS): Likewise.
7539         (build/%.o): Use BUILDCOMPILE.
7540         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
7541         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
7542         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
7543         build/gencheck.o, build/gencodes.o, build/genconditions.o,
7544         build/genconfig.o, build/genconstants.o, build/genemit.o,
7545         build/genextract.o, build/genflags.o, build/genmddeps.o,
7546         build/genopinit.o, build/genoutput.o, build/genpeep.o,
7547         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
7548         build/gen-protos.o, build/scan.o, build/fix-header.o,
7549         build/scan-decls.o): Simplify.
7550         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
7551         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
7552         prefix.o, toplev.o): Reduce to variable setting.
7553         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
7554         ($(out_object_file), gcc-options.o): New targets.
7555         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
7556         * configure: Rebuilt.
7557         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
7558         * doc/sourcebuild.texi (Front End Directory): Document new variable.
7560 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
7562         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
7563         complain when we hit an error, return ERROR_MARK_NODE.
7565 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
7567         * config/sh/constraints.md (Pso, Psz): New constraints.
7568         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
7569         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
7571 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
7573         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
7574         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
7576 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
7578         * config/sh/sh.md (prefetch): Add condition for SH2A target.
7579         (prefetch_sh2a): New.   
7581 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
7582             Naveen.H.S  <naveen.hs@kpitcummins.com>
7584         * config/sh/constraints.md (I28): New constraint.
7585         * config/sh/sh.c (broken_move): Add support for movi20s.
7586         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
7588 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
7589             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
7590             Naveen.H.S  <naveen.hs@kpitcummins.com>
7592         * config/sh/sh.c (SH_ATTRIBUTES): Define.
7593         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
7594         (print_operand): Handle resbank in %@ operand code.
7595         (sh_encode_section_info): New.
7596         (push_regs): Add conditions for resbank.
7597         (sh_expand_epilogue): Likewise.
7598         (sh_insert_attributes): Likewise.
7599         (sh_attribute_table): Likewise.
7600         (sh_handle_resbank_handler_attribute): New.
7601         (sh2a_handle_function_vector_handler_attribute): New.
7602         (sh2a_is_function_vector_call): New.
7603         (sh2a_get_function_vector_number): New.
7604         (sh2a_function_vector_p): New.
7605         (sh_cfun_resbank_handler_p): New.
7606         * config/sh/sh.md (calli): Emit jsr/n if possible.
7607         (calli_tbr_rel): New.
7608         (calli_pcrel): Emit jsr/n if possible.
7609         (return_i): Emit rts/n if possible.
7610         (call_valuei_tbr_rel): New.
7611         (call_valuei_pcrel): Add condition for SH2A target.
7612         (call_value): Likewise.
7613         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
7614         (sh2a_get_function_vector_number): Likewise.
7615         (sh2a_is_function_vector_call): Likewise.
7616         * doc/extend.texi: Document TBR relative addressing of SH2A.
7617         (resbank): Add description for SH2A.
7619 2008-03-24  Richard Guenther  <rguenther@suse.de>
7621         PR c/22371
7622         * gimplify.c (gimplify_modify_expr): For frontend type-correct
7623         pointer assignments change conversions according to middle-end rules.
7624         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
7625         * configure.ac: Include type checking in yes.
7626         * configure: Regenerate.
7628 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7630         * diagnostic.c (diagnostic_count_diagnostic): Delete.
7631         (diagnostic_report_diagnostic): Update. Handle ICEs here.
7632         
7633 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
7635         * gthr-vxworks.h (UNUSED): Define.
7637 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
7639         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
7641 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
7643         * doc/extend.texi (Function Attributes): Add missing comma in the
7644         example of the "alloc_size" attribute.
7645         
7646 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
7648         Revert:
7649         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7651         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7652         32bit host.
7654         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
7656         PR target/35496
7657         * stor-layout.c (update_alignment_for_field): Set minimum alignment
7658         of the underlying type of a MS bitfield layout to the natural
7659         alignment of the type.
7661         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
7663         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
7664         to their natural alignment to avoid store forwarding stalls.
7666 2008-03-22  Richard Guenther  <rguenther@suse.de>
7668         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
7669         For PHI nodes verify the address is invariant.
7670         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
7671         (get_symbol_constant_value): Use is_gimple_min_invariant.
7672         (maybe_fold_stmt_indirect): Likewise.
7674 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
7676         PR rtl-optimization/33927
7677         * Makefile.in (dse.o): Depend on $(TM_P_H).
7678         * expr.h (extract_low_bits): Declare.
7679         * expmed.c (extract_low_bits): New function.
7680         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
7681         * dse.c: Include tm_p.h.
7682         (find_shift_sequence): Remove the read_reg argument and return the
7683         read value.  Emit the instructions instead of returning them.
7684         Iterate on new_mode rather than calculating it each time.
7685         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
7686         source to NEW_MODE and extract_low_bits to convert the shifted
7687         value to READ_MODE.
7688         (replace_read): Allow the load and store to have different mode
7689         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
7690         or extraction instructions before trying the replacement.  Update
7691         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
7693 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
7695         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
7696         to their natural alignment to avoid store forwarding stalls.
7698 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7700         PR target/27946
7701         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
7702         encouraging but not allowing gprs for input;
7703         change the input constraint to !f#r.
7704         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
7705         gprs for output;
7706         change the output constraint to !f#r.
7708 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
7710         PR target/13958
7711         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
7712         corresponding post-reload splitters.
7713         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
7714         when x87 FP math is selected.
7715         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
7716         New function prototype.
7717         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
7718         unreachable function to ease macroization of insn patterns.
7720 2008-03-21  Martin Jambor  <mjambor@suse.cz>
7722         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
7723         reference dumps if ddr is NULL or dependence is unknown.
7725 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7727         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
7728         unsigned extension into account.
7729         (ATOMIC_COMPARE_AND_SWAP): Likewise.
7730         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
7731         Do computations on a scratch register.
7733 2008-03-21  Richard Guenther  <rguenther@suse.de>
7735         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
7736         Use is_gimple_min_invariant instead of TREE_INVARIANT.
7737         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
7738         * tree-ssa-dom.c (record_equality): Likewise.
7739         * tree-inline.c (copy_body_r): Likewise.
7740         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
7741         TREE_INVARIANT.
7743 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7745         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
7746         as 'delete_unused' argument.
7748 2008-03-20  Richard Guenther  <rguenther@suse.de>
7750         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
7751         special casing of constant qualifiers.
7752         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
7753         care about them in general.
7754         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
7755         regardless of their type.
7756         (fold_stmt_r): Forcefully fold *& if we end up with that.
7758 2008-03-20  Paul Brook  <paul@codesourcery.com>
7760         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
7761         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
7762         linker flags.
7763         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
7764         definition.
7765         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
7766         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
7768 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
7770         * common.opt (Wmudflap): New option.
7771         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
7772         (mx_register_decls): Likewise.
7773         (mudflap_finish_file): Likewise.
7774         * doc/invoke.texi: Document -Wno-mudflap.
7776 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
7778         * c-format.c (replace_format_name_to_system_name): New.
7779         (cmp_attribs): New.
7780         (convert_format_name_to_system_name): New.
7781         (decode_format_attr): Add use of convert_format_name_to_system_name.
7782         (format_types_orig): Add gnu_ prefix to names.
7783         (check_format_info_main): Special treating of \0 escaped names for
7784         supporting multi-character format specifiers as I32, I64.
7785         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
7786         (gnu_target_overrides_format_attributes): New.
7787         * c-format.h: Add structure target_ovr_attr to hold
7788         system specific formatter names.
7789         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
7790         msformat-c.o file to c_target_objs and cxx_target_objs.
7791         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
7792         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
7793         (TARGET_N_FORMAT_TYPES): New.
7794         * config/i386/msformat-c.c: New.
7795         * config/i386/t-cygming: Add build rule for msformat-c.o.
7796         * doc/extend.texi: Add new format names gnu_* and ms_* and
7797         further details.
7798         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
7800 2008-03-20  Ira Rosen  <irar@il.ibm.com>
7802         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
7803         optimizations turned on under -O3.
7804         (ftree-vectorize): Add that the flag is turned on with -O3.
7806 2008-03-20  Ben Elliston  <bje@au.ibm.com>
7808         * regmove.c (try_auto_increment): Fix spelling error in comment.
7809         * final.c (final_scan_insn): Likewise.
7811 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
7813         PR target/14552
7814         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
7815         allocator preferences for "y" and "r" class registers.
7816         ("*mov<mode>_internal"): Ditto.
7817         ("*movv2sf_internal_rex64"): Ditto.
7818         ("*movv2sf_internal"): Ditto.
7820 2008-03-19  Michael Matz  <matz@suse.de>
7822         PR middle-end/35616
7823         * calls.c (expand_call): Check overlap of arguments with call
7824         address for sibcalls.
7826 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
7828         PR target/35496
7829         * stor-layout.c (update_alignment_for_field): Set minimum alignment
7830         of the underlying type of a MS bitfield layout to the natural
7831         alignment of the type.
7833 2008-03-19  Jan Hubicka  <jh@suse.cz>
7835         PR other/35094
7836         * toplev.c (decode_d_option): Handle all CPP flags.
7837         * tree-vrp.c: Update tree_pass descriptors.
7838         * regrename.c: Update tree_pass descriptors.
7839         * fwprop.c: Update tree_pass descriptors.
7840         * doc/invoke.texi: Remove documentation of dropped -d? flags.
7841         * tree-into-ssa.c: Update tree_pass descriptors.
7842         * tree-dump.c: Update tree_pass descriptors.
7843         * tree-complex.c: Update tree_pass descriptors.
7844         * tree-dump.h: Update tree_pass descriptors.
7845         * see.c: Update tree_pass descriptors.
7846         * cgraphbuild.c: Update tree_pass descriptors.
7847         * tracer.c: Update tree_pass descriptors.
7848         * tree-loop-distribution.c: Update tree_pass descriptors.
7849         * cgraph.c: Update tree_pass descriptors.
7850         * postreload-gcse.c: Update tree_pass descriptors.
7851         * postreload.c: Update tree_pass descriptors.
7852         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
7853         * tree-tailcall.c: Update tree_pass descriptors.
7854         * tree-pass.h (tree_opt_pass): Rename to ...
7855         (opt_pass) ... this one; add "type" field and remove letter field.
7856         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
7857         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
7858         all_lowering_passes): Update declaration.
7859         * ipa-cp.c: Update tree_pass descriptors.
7860         * final.c: Update tree_pass descriptors.
7861         * omp-low.c: Update tree_pass descriptors.
7862         * tree-ssa-dse.c: Update tree_pass descriptors.
7863         * ipa-reference.c: Update tree_pass descriptors.
7864         * tree-ssa-uncprop.c: Update tree_pass descriptors.
7865         * auto-inc-dec.c: Update tree_pass descriptors.
7866         * reorg.c: Update tree_pass descriptors.
7867         * cgraphunit.c: Update tree_pass descriptors.
7868         * tree-ssa-copyrename.c: Update tree_pass descriptors.
7869         * tree-ssa-ccp.c: Update tree_pass descriptors.
7870         * df-core.c: Update tree_pass descriptors.
7871         * mode-switching.c: Update tree_pass descriptors.
7872         * tree-nomudflap.c: Update tree_pass descriptors.
7873         * modulo-sched.c: Update tree_pass descriptors.
7874         * ipa-pure-const.c: Update tree_pass descriptors.
7875         * cse.c: Update tree_pass descriptors.
7876         * web.c: Update tree_pass descriptors.
7877         * tree-stdarg.c: Update tree_pass descriptors.
7878         * tree-ssa-math-opts.c: Update tree_pass descriptors.
7879         * tree-ssa-dom.c: Update tree_pass descriptors.
7880         * tree-nrv.c: Update tree_pass descriptors.
7881         * tree-ssa-alias.c: Update tree_pass descriptors.
7882         * loop-init.c: Update tree_pass descriptors.
7883         * gimple-low.c: Update tree_pass descriptors.
7884         * ipa-inline.c: Update tree_pass descriptors.
7885         * tree-ssa-sink.c: Update tree_pass descriptors.
7886         * global.c: Update tree_pass descriptors.
7887         * ifcvt.c: Update tree_pass descriptors.
7888         * jump.c: Update tree_pass descriptors.
7889         * predict.c: Update tree_pass descriptors.
7890         * tree-ssa-loop.c: Update tree_pass descriptors.
7891         * recog.c: Update tree_pass descriptors.
7892         * dse.c: Update tree_pass descriptors.
7893         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
7894         * tree-eh.c: Update tree_pass descriptors.
7895         * regmove.c: Update tree_pass descriptors.
7896         * local-alloc.c
7897         * function.c: Update tree_pass descriptors.
7898         * tree-vectorizer.c: Update tree_pass descriptors.
7899         * gcse.c: Update tree_pass descriptors.
7900         * ipa-type-escape.c: Update tree_pass descriptors.
7901         * tree-if-conv.c: Update tree_pass descriptors.
7902         * init-regs.c: Update tree_pass descriptors.
7903         * ipa.c: Update tree_pass descriptors.
7904         * tree-ssa-phiopt.c: Update tree_pass descriptors.
7905         * rtl-factoring.c: Update tree_pass descriptors.
7906         * lower-subreg.c: Update tree_pass descriptors.
7907         * bt-load.c: Update tree_pass descriptors.
7908         * tree-dfa.c: Update tree_pass descriptors.
7909         * except.c: Update tree_pass descriptors.
7910         * emit-rtl.c: Update tree_pass descriptors.
7911         * cfgexpand.c: Update tree_pass descriptors.
7912         * tree-cfgcleanup.c: Update tree_pass descriptors.
7913         * cfgcleanup.c: Update tree_pass descriptors.
7914         * tree-ssa-pre.c: Update tree_pass descriptors.
7915         * tree-sra.c: Update tree_pass descriptors.
7916         * tree-mudflap.c: Update tree_pass descriptors.
7917         * tree-ssa-copy.c: Update tree_pass descriptors.
7918         * cfglayout.c: Update tree_pass descriptors.
7919         * tree-ssa-forwprop.c: Update tree_pass descriptors.
7920         * tree-ssa-dce.c: Update tree_pass descriptors.
7921         * tree-ssa.c: Update tree_pass descriptors.
7922         * regclass.c: Update tree_pass descriptors.
7923         * integrate.c: Update tree_pass descriptors.
7924         * tree-optimize.c: Update tree_pass descriptors.
7925         * tree-ssa-phiprop.c: Update tree_pass descriptors.
7926         * tree-object-size.c: Update tree_pass descriptors.
7927         * combine.c: Update tree_pass descriptors.
7928         * tree-outof-ssa.c: Update tree_pass descriptors.
7929         * bb-reorder.c: Update tree_pass descriptors.
7930         * stack-ptr-mod.c: Update tree_pass descriptors.
7931         * var-tracking.c: Update tree_pass descriptors.
7932         * tree-profile.c: Update tree_pass descriptors.
7933         * tree-vect-generic.c: Update tree_pass descriptors.
7934         * reg-stack.c: Update tree_pass descriptors.
7935         * sched-rgn.c: Update tree_pass descriptors.
7936         * tree-ssa-structalias.c: Update tree_pass descriptors.
7937         * tree-cfg.c: Update tree_pass descriptors.
7938         * passes.c (current_pass): Update declaration.
7939         (finish_optimization_passes): Update.
7940         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
7941         (register_one_dump_file, register_dump_files_1, next_pass_1):
7942         Update arguments.
7943         (init_optimization_passes): Update handling of new types.
7944         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
7945         * ipa-struct-reorg.c: Update tree_pass descriptors.
7946         * tree-ssa-reassoc.c: Update tree_pass descriptors.
7947         * combine-stack-adj.c: Update tree_pass descriptors.
7948         * cfgrtl.c: Update tree_pass descriptors.
7949         * dce.c: Update tree_pass descriptors.
7950         * tree-ssanames.c: Update tree_pass descriptors.
7952 2008-03-19  Richard Guenther  <rguenther@suse.de>
7954         PR middle-end/35609
7955         * tree-ssa.c (walk_data): New structure.
7956         (warn_uninitialized_var): If not always_executed warn with "maybe"
7957         instead of "is".
7958         (execute_early_warn_uninitialized): Compute post-dominators.
7959         Initialize always_executed before processing each basic block.
7961 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
7963         PR target/35504
7964         * config/i386/i386.c (x86_this_parameter): Calculate correct location
7965         of "this" pointer when "regparm = N" or "fastcall" is in effect.
7967 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7969         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
7971 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
7973         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
7974         is true.
7975         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
7976         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
7977         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
7978         target after ignore has been set, and move there also the commputation
7979         of subtarget and original_target.
7980         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7981         (LANG_HOOKS_INITIALIZER): Remove it.
7982         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
7984 2008-03-18  Richard Guenther  <rguenther@suse.de>
7986         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
7987         found an expression with constants, note that in the VN for the lhs.
7988         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
7989         fold them to constants if possible.  Run cleanup_cfg if done so.
7990         (execute_pre): Return todo.
7991         (do_pre): Likewise.
7992         (execute_fre): Likewise.
7993         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
7994         of constants.
7995         (get_prop_source_stmt): Look through pointer conversions.
7997 2008-03-18  Jan Hubicka  <jh@suse.cz>
7999         * tree-pretty-print.c: Include predict.h.
8000         (dump_generic_node): Dump predictor.
8001         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
8002         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
8003         * gimple-low.c (lower_stmt): Likewise.
8004         * expr.c (expand_expr_real): Likewise.
8005         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
8006         them.
8007         (build_predict_expr, build_predict_expr): New.
8008         * predict.h (predictor_name, build_predict_expr): Update.
8009         * c-typeck.c (c_finish_bc_stmt): Add prediction.
8010         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
8011         * predict.def (PRED_CONTINUE): Update hitrate.
8012         * tree.def (PREDICT_EXPR): Define.
8013         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
8014         do not handle BIND_EXPR.
8015         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
8016         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
8017         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
8018         operands.
8020 2008-03-18  Michael Matz  <matz@suse.de>
8022         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
8024 2008-03-18  Richard Guenther  <rguenther@suse.de>
8026         * tree-gimple.h (is_gimple_invariant_address): Declare.
8027         (is_gimple_constant): Likewise.
8028         * tree-gimple.c (is_gimple_constant): New function.
8029         (is_gimple_invariant_address): Likewise.
8030         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
8031         and is_gimple_invariant_address.
8032         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
8033         previous change.
8034         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
8035         an addressable base.
8037 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
8039         PR middle-end/35611
8040         * gimplify.c (gimplify_expr): Gimplify second operand of
8041         OMP_ATOMIC_LOAD.
8043 2008-03-17  Richard Guenther  <rguenther@suse.de>
8045         PR tree-optimization/19637
8046         * fold-const.c (fold_unary): Remove restrictions of removing
8047         intermediate pointer-conversions (P2)(P1)P0.
8048         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
8049         conversion to void pointer.
8050         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
8052 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
8054         PR debug/31510
8055         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
8056         emulated thread local variables.
8058 2008-03-16  Richard Guenther  <rguenther@suse.de>
8060         PR middle-end/35607
8061         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8062         expand TREE_INVARIANT operations that are not gimple invariant.
8064 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
8066         * doc/extend.texi (Alignment): Say that the ABI controls
8067         the __alignof__ for non-strict-alignment targets rather
8068         than being a recommendation.
8070 2008-03-15  Paul Brook  <paul@codesourcery.com>
8072         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
8073         annotations.
8074         (arm_output_fn_unwind): Mark functions that can not be unwound.
8076 2008-03-15  Paul Brook  <paul@codesourcery.com>
8078         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
8079         extension instructions.
8081 2008-03-15  Richard Guenther  <rguenther@suse.de>
8083         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
8084         and fold constant aggregate refs.
8085         (fold_const_aggregate_ref): Handle string constants
8086         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
8087         (evaluate_stmt): Simplify now that ccp_fold folds constant
8088         aggregate refs.
8090 2008-03-15  Paul Brook  <paul@codesourcery.com>
8092         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
8093         (extzv): Use gen_extzv_t2.
8094         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
8096 2008-03-15  Richard Guenther  <rguenther@suse.de>
8098         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
8099         (fold_const_aggregate_ref): Likewise.
8100         (get_value): Return NULL if we don't have any values.
8101         (ccp_finalize): Set const_val to NULL after freeing it.
8102         * tree-flow.h (get_symbol_constant_value): Declare.
8103         (fold_const_aggregate_ref): Likewise.
8104         * tree-ssa-sccvn.c (try_to_simplify): Use them.
8106 2008-03-15  Richard Guenther  <rguenther@suse.de>
8108         PR middle-end/35593
8109         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
8110         to not produce negative array indices if not allowed.  Add
8111         parameter to indicate that.
8112         (maybe_fold_offset_to_component_ref): Allow negative array
8113         indices only for the first member of a structure.
8114         (maybe_fold_offset_to_reference): Allow negative array indices.
8115         (maybe_fold_stmt_addition): Likewise.
8117 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
8118             Anatoly Sokolov <aesok@post.ru>
8120         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
8121         (avr_arch): Add ARCH_AVR6.
8122         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
8123         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
8124         instead of fixed value 2.
8125         (print_operand_address): Use gs() asm specifier instead of pm().
8126         (avr_assemble_integer): (Ditto.).
8127         (avr_output_addr_vec_elt): (Ditto.).
8128         (print_operand): Handle "!" code.
8129         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
8130         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
8131         (AVR_HAVE_EIJMP_EICALL): Define.
8132         (AVR_3_BYTE_PC): Redefine.
8133         (AVR_2_BYTE_PC): (Ditto.).
8134         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
8135         (LINK_SPEC): Add atmega2560 and atmega2561.
8136         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
8137         (crtm2561.o).
8138         * config/avr/avr.md (call_insn): Use eicall instead of icall 
8139         for 3 byte PC devices.
8140         (call_value_insn): (Ditto.).
8141         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
8142         (indirect_jump): Use only for for 2 byte PC devices.
8143         (*tablejump): (Ditto.).
8144         (*indirect_jump_avr6): Add insn.
8145         (*tablejump_rjmp): Don't use for 3 byte PC devices.
8146         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
8147         instead of ijmp for 3 byte PC devices.
8148         (__tablejump2__): (Ditto.).
8149         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
8150         (MULITLIB_DIRNAMES): (Ditto.). 
8151         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
8153 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
8155         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
8156         "sse2_umulsidi3".  Use V1DI mode for operand 0.
8157         ("mmx_psadbw"): Use V1DI mode for operand 0.
8158         * config/i386/i386-modes.def (V1SI): New vector mode.
8159         * config/i386/i386.c (struct builtin_description)
8160         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
8161         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
8162         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
8163         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
8164         v1di_ftype_v8qi_v8qi type.
8165         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
8167         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
8168         __builtin_ia32_pmuludq]: Fix the mode of return value.
8170 2008-03-15  Richard Guenther  <rguenther@suse.de>
8172         PR middle-end/35595
8173         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
8174         being a PHI_NODE.
8176 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
8177         
8178         * doc/invoke.texi (Option Summary, Xtensa Options): Document
8179         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
8180         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
8181         unless TARGET_SERIALIZE_VOLATILE is enabled.
8182         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
8183         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
8184         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
8186 2008-03-14  Richard Guenther  <rguenther@suse.de>
8188         PR tree-optimization/34172
8189         * tree-flow.h (refs_may_alias_p): Declare.
8190         (get_single_def_stmt): Likewise.
8191         (get_single_def_stmt_from_phi): Likewise.
8192         (get_single_def_stmt_with_phi): Likewise.
8193         * tree-dfa.c (refs_may_alias_p): New function.
8194         (get_single_def_stmt): Likewise.
8195         (get_single_def_stmt_from_phi): Likewise.
8196         (get_single_def_stmt_with_phi): Likewise.
8197         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
8198         (vn_reference_lookup_1): New helper function.
8199         (vn_reference_lookup): Walk the virtual use-def chain to
8200         continue searching for a match if the def does not alias the
8201         reference we are looking for.
8203 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
8205         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
8206         archive and Perzl.  Update The Written Word listing.
8208 2008-03-14  Richard Guenther  <rguenther@suse.de>
8210         PR tree-optimization/34043
8211         PR tree-optimization/33989
8212         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
8213         when doing FRE.
8214         (bitmap_find_leader): Use extra argument to verify dominance
8215         relationship inside a basic-block.
8216         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
8217         (find_leader_in_sets): Adjust.
8218         (create_component_ref_by_pieces): Take extra argument for
8219         dominance check, handle lookup failures.
8220         (find_or_generate_expression): Likewise.
8221         (create_expression_by_pieces): Likewise.
8222         (insert_into_preds_of_block): Adjust.
8223         (create_value_expr_from): If asked for, verify all operands
8224         are in the blocks AVAIL_OUT set.
8225         (make_values_for_stmt): Check for SSA_NAMEs that are life
8226         over an abnormal edge.
8227         (compute_avail): Remove such check.
8228         (do_SCCVN_insertion): New function.
8229         (eliminate): If we do not find a leader suitable for replacement
8230         insert a replacement expression from SCCVN if available.
8231         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
8232         (struct vn_ssa_aux): Add needs_insertion flag.
8233         * tree-ssa-sccvn.c (may_insert): New global flag.
8234         (copy_reference_ops_from_ref): Value-number union member access
8235         based on its size, not type and member if insertion is allowed.
8236         (visit_reference_op_load): For a weak match from union type
8237         punning lookup a view-converted value and insert a SSA_NAME
8238         for that value if that is not found.
8239         (visit_use): Make dumps shorter.  Do not disallow value numbering
8240         SSA_NAMEs that are life over an abnormal edge to constants.
8241         (free_scc_vn): Release inserted SSA_NAMEs.
8242         (run_scc_vn): New flag to specify whether insertion is allowed.
8243         Process SSA_NAMEs in forward order.
8244         * tree-ssa-loop-im.c (for_each_index): Handle invariant
8245         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
8246         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
8247         pointer type to/from integral types that do not change the
8248         precision to regular conversions.
8250 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
8252         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
8253         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
8254         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
8255         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
8256         input arguments and the mode of return value.  Built-in functions
8257         that operate on whole 64-bit MMX register now use V1DI mode.
8259 2008-03-13  Alon Dayan  <alond@il.ibm.com>
8260             Olga Golovanevsky  <olga@il.ibm.com>
8262         PR tree-optimization/35041
8263         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
8264         to locate the right position in a statement.
8266 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
8268         PR target/34000
8269         PR target/35553
8270         * config/i386/xmmintrin.h:  Change all static inline functions to
8271         extern inline and add __gnu_inline__ attribute.
8272         * config/i386/bmintrin.h: Ditto.
8273         * config/i386/smmintrin.h: Ditto.
8274         * config/i386/tmmintrin.h: Ditto.
8275         * config/i386/mmintrin-common.h: Ditto.
8276         * config/i386/ammintrin.h: Ditto.
8277         * config/i386/emmintrin.h: Ditto.
8278         * config/i386/pmmintrin.h: Ditto.
8279         * config/i386/mmintrin.h: Ditto.
8280         * config/i386/mm3dnow.h: Ditto.
8282 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
8284         PR middle-end/35185
8285         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
8286         (lower_omp_2): New function.
8287         (lower_omp_1, lower_omp): Rewritten.
8289 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
8291         PR 35054
8292         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
8293         with the phrase "Microsoft Windows compilers".
8294         (Push/Pop Macro Pragmas): New subsection. Document
8295         #pragma push_macro and pragma pop_macro.
8297 2008-03-12  Paul Brook  <paul@codesourcery.com>
8299         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
8301 2008-03-12  Paul Brook  <paul@codesourcery.com>
8303         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
8304         (thumb2_alusi3_short): Exclude PLUS and MINUS.
8305         (thumb2_addsi_shortim): Rename ...
8306         (thumb2_addsi_short): ... to this.  Allow register operands.
8307         (thumb2_subsi_short): New pattern.
8308         (thumb2_one_cmplsi2_short,
8309         thumb2_negsi2_short): New patterns and peepholes.
8311 2008-03-12  Paul Brook  <paul@codesourcery.com>
8313         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
8315 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
8317         * config/i386/i386.md (int_cond): New code iterator.
8318         (fp_cond): Ditto.
8319         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
8320         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
8321         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
8322         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
8323         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
8324         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
8325         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
8326         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
8328 2008-03-12  Paul Brook  <paul@codesourcery.com>
8330         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
8331         instead of {arm,thumb}_compute_save_reg_mask.
8332         (output_return_instruction): Ditto.
8333         (thumb_unexpanded_epilogue): Ditto.
8334         (thumb1_expand_prologue): Ditto.
8335         (thumb1_output_function_prologue): Ditto.
8336         (arm_set_return_address): Ditto.
8337         (thumb_set_return_address): Ditto.
8338         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
8339         regs to achieve stack alignment.
8340         (thumb1_compute_save_reg_mask): Fix compiler warning.
8341         (arm_output_epilogue): Use offsets->saved_regs_mask.
8342         Adjust stack pointer by poping call clobered registers.
8343         (arm_expand_prologue): Use offsets->saved_regs_mask.
8344         Adjust stack pointer by pushing extra registers.
8345         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
8347 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
8349         PR tree-opt/35422
8350         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
8351         conversion to the operands of a multiplication.
8353 2008-03-12  Richard Guenther  <rguenther@suse.de>
8355         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
8356         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
8357         * timevar.def (TV_TREE_PHIPROP): Add.
8358         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
8359         pass description.  Use TV_TREE_PHIPROP.
8360         * tree-ssa-forwprop.c: Remove phiprop code.
8362 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
8364         PR middle-end/35549
8365         * omp-low.c (maybe_lookup_decl): Constify first argument.
8366         (use_pointer_for_field): Change last argument from bool to
8367         omp_context *.  Disallow shared copy-in/out in nested
8368         parallel if decl is shared in outer parallel too.
8369         (build_outer_var_ref, scan_sharing_clauses,
8370         lower_rec_input_clauses, lower_copyprivate_clauses,
8371         lower_send_clauses, lower_send_shared_vars): Adjust callers.
8373 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
8374             Ira Rosen  <irar@il.ibm.com>
8376         * tree-vectorizer.c (free_stmt_vec_info): New function.
8377         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
8378         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
8379         * tree-vectorizer.h (free_stmt_vec_info): Declare.
8380         * tree-vect-transform.c (vectorizable_conversion): Free
8381         vec_oprnds0 if it was allocated.
8382         (vect_permute_store_chain): Remove unused VECs.
8383         (vectorizable_store): Free VECs that are allocated in the..
8384         function.
8385         (vect_transform_strided_load, vectorizable_load): Likewise.
8386         (vect_remove_stores): Simplify the code.
8387         (vect_transform_loop): Move code to vect_remove_stores().
8388         Call vect_remove_stores() and free_stmt_vec_info().
8390 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8392         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
8393         TARGET_HPUX.  Revise comment.
8394         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
8395         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
8396         Use sr4 variant of `be' instruction when not generating PIC code.
8397         (attr_length_call): Adjust for above change.
8399 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8401         * ipa-reference.c (static_execute): Remove module_statics_const and
8402         associated setting code.
8404 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
8406         PR target/35540
8407         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
8408         predicate for operand 1.
8409         (paritysi2_cmp): Use register_operand predicate for operand 2.
8410         Use earlyclobber modifier for operand 1.  Remove support for
8411         memory operands.
8412         (paritydi2_cmp): Use register_operand predicate for operand 3.
8413         Use earlyclobber modifier for operand 1.  Remove support for
8414         memory operands.
8416 2008-03-11  Paul Brook  <paul@codesourcery.com>
8417             Vladimir Prus  <vladimir@codesourcery.com>
8419         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
8420         (arm_compute_save_reg0_reg12_mask): Always
8421         check if register 11 must be saved.  Always safe hard frame pointer
8422         when frame_pointer_needeed.
8423         (arm_compute_save_reg_mask): Save IP and PC
8424         only with apcs frames.
8425         (arm_output_epilogue): Adjust Thumb2 codepath to
8426         be also invoked and work for ARM non-apcs frames.
8427         (arm_expand_prologue): Don't bother saving IP
8428         for non-apcs frame, since it's not clobbered by
8429         prologue code.  Implement non-apcs frame
8430         layout.
8432 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
8434         PR rtl-optimization/35281
8435         * expr.c (convert_move): Use a new pseudo for the intermediate
8436         from_mode->word_mode result.
8438 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
8440         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
8441         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
8442         * toplev.c (compile_file): Don't call it.
8444 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
8446         PR middle-end/35526
8447         * expr.c (store_expr): Call emit_block_move if the mode
8448         of "temp" RTX is BLKmode.
8450 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8451             Richard Guenther  <rguenther@suse.de>
8453         PR tree-optimization/31358
8454         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
8455         the step with a NULL_TREE.
8456         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
8457         to sizetype if type is a pointer type.
8458         (add_candidate_1): Don't convert the base and step to
8459         the generic type if the orginal type is a pointer type.
8460         (add_iv_value_candidates): Use sizetype for the step
8461         if type is a pointer type.
8462         (cand_value_at): Likewise.
8463         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
8464         for pointer types.
8465         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
8466         Don't convert the tem affine to the type.
8467         (add_elt_to_tree): Use sizetype for the step if a pointer.
8468         Use POINTER_PLUS_EXPR for pointers.
8469         (aff_combination_to_tree): Use sizetype for the step if a
8470         pointer.
8472 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
8474         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
8475         Remove commutativity hint.
8477 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
8479         PR c/35438
8480         PR c/35439
8481         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
8482         errorneous type.  Check that v is a VAR_DECL.
8484         PR middle-end/35099
8485         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
8487 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
8489         PR tree-optimization/35494
8490         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
8491         may be overriden at link and run time.
8493 2008-03-10  Richard Guenther  <rguenther@suse.de>
8495         PR tree-optimization/34677
8496         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
8497         (poolify_tree): Likewise.
8498         (modify_expr_template): Likewise.
8499         (poolify_modify_stmt): Likewise.
8500         (insert_fake_stores): Handle all component-ref style stores
8501         in addition to INDIRECT_REF.  Also handle complex types.
8502         Do not poolify the inserted load.
8503         (realify_fake_stores): Do not rebuild the tree but only
8504         make it a SSA_NAME copy.
8505         (init_pre): Remove initialzation of modify_expr_template.
8506         Do not allocate modify_expr_node_pool.
8507         (fini_pre): Do not free modify_expr_node_pool.
8509 2008-03-10  Paul Brook  <paul@codesourcery.com>
8511         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
8512         to avoid conflicts.
8514 2008-03-10  Paul Brook  <paul@codesourcery.com>
8515             Mark Shinwell  <shinwell@codesourcery.com>
8517         * config/arm/cortex-r4.md: New.
8518         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
8519         insn attributes.
8520         * config/arm/arm.md: Include cortex-r4.md.
8521         (insn): Add smmls, sdiv and udiv values.
8522         (generic_sched): Don't use generic scheduling for Cortex-R4.
8523         (arm_issue_rate): New function.
8524         (TARGET_SCHED_ISSUE_RATE): Define.
8526 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
8528         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
8530 2008-03-10  Richard Guenther  <rguenther@suse.de>
8532         * tree-ssa-pre.c (get_sccvn_value): Simplify.
8533         (compute_avail): Do not add stmt uses to AVAIL_OUT.
8535 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
8537         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
8538         Set default to true.
8540 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8542         * c.opt (Wsynth): Deprecate.
8543         * doc/invoke.texi (Option Summary, Warning Options): Document
8544         -Wno-format-contains-nul.
8546 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
8548         PR target/35496
8549         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
8550         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
8552 2008-03-09  Ira Rosen  <irar@il.ibm.com>
8554         * config/rs6000/rs6000.c (builtin_description): Rename vector
8555         left shift operations.
8556         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
8557         (altivec_vsl<VI_char>): Rename to ...
8558         (ashl<mode>3): ... new name.
8559         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
8560         gen_ashlv4si3.
8561         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
8563 2008-03-08  Richard Guenther  <rguenther@suse.de>
8565         * coverage.h (tree_coverage_counter_addr): Declare.
8566         * coverage.c (tree_coverage_counter_addr): New function.
8567         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
8568         before using again.
8569         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
8570         (tree_gen_one_value_profiler): Likewise.
8571         (tree_gen_ic_profiler): Likewise.
8572         (tree_gen_average_profiler): Likewise.
8573         (tree_gen_ior_profiler): Likewise.
8575 2008-03-08  Richard Guenther  <rguenther@suse.de>
8577         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
8578         (vn_binary_op_insert): Likewise.
8579         (vn_unary_op_lookup): Likewise.
8580         (vn_unary_op_insert): Likewise.
8581         (vn_nary_op_lookup): Declare.
8582         (vn_nary_op_insert): Likewise.
8583         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
8584         and binary hashes, use a single obstack for unary_op_pool
8585         and binary_op_pool.
8586         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
8587         a single struct vn_nary_op_s.  Store tree code length and
8588         a variable number of operands.
8589         (struct vn_reference_op_struct): Remove unused op2.
8590         (vn_reference_op_eq): Do not compare op2.
8591         (vn_reference_op_compute_hash): Do not compute hash of op2.
8592         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
8593         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
8594         with vn_nary_op_compute_hash.
8595         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
8596         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
8597         vn_nary_op_lookup.
8598         (vn_unary_op_insert, vn_binary_op_insert): Replace with
8599         vn_nary_op_insert.
8600         (visit_unary_op): Call nary functions.
8601         (visit_binary_op): Likewise.
8602         (process_scc): Adjust for struct vn_tables_s changes.
8603         (allocate_vn_table): Likewise.
8604         (free_vn_table): Likewise.
8605         * tree-vn.c (vn_add): Call nary functions.
8606         (vn_lookup): Likewise.
8608 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
8610         PR target/35498
8611         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
8612         wdst back after sync_compare_and_swapqhi_internal.
8614 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
8616         PR target/22152
8617         * config/i386/i386-modes.def (V1DI): New vector mode.
8618         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
8619         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
8620         (MMXMODE248): Ditto.
8621         (MMXMODE): Add V1DI mode.
8622         (mmxvecsize): Change DI mode to V1DI mode.
8623         ("mov<mode>): Use MMXMODEI8 mode iterator.
8624         ("*mov<mode>_internal_rex64"): Ditto.
8625         ("*mov<mode>_internal"): Ditto.
8626         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
8627         ("mmx_sub<mode>3"): Ditto.
8628         ("mmx_adddi3"): Remove insn pattern.
8629         ("mmx_subdi3"): Ditto.
8630         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
8631         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
8632         ("mmx_ashl<mode>3"): Ditto.
8633         ("mmx_lshrdi3"): Remove insn pattern.
8634         ("mmx_ashldi3"): Ditto.
8635         * config/i386/i386.c (classify_argument): Handle V1DImode.
8636         (function_arg_advance_32): Ditto.
8637         (function_arg_32): Ditto.
8638         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
8639         mmx_addv1di3 insn pattern.
8640         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
8641         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
8642         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
8643         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
8644         Remove definitions of built-in functions.
8645         (V1DI_type_node): New node.
8646         (v1di_ftype_v1di_int): Ditto.
8647         (v1di_ftype_v1di_v1di): Ditto.
8648         (v2si_ftype_v2si_si): Ditto.
8649         (v4hi_ftype_v4hi_di): Remove node.
8650         (v2si_ftype_v2si_di): Ditto.
8651         (ix86_init_mmx_sse_builtins): Handle V1DImode.
8652         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
8653         Redefine builtins using def_builtin_const with *_ftype_*_int node.
8654         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
8655         Add new builtins using def_builtin_const.
8656         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
8657         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
8658         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
8659         * config/i386/mmintrin.h (__v1di): New typedef.
8660         (_mm_add_si64): Cast arguments to __v1di type.
8661         (_mm_sub_si64): Ditto.
8662         (_mm_sll_pi16): Cast __count to __v4hi type.
8663         (_mm_sll_pi32): Cast __count to __v2si type.
8664         (_mm_sll_si64): Cast arguments to __v1di type.
8665         (_mm_srl_pi16): Cast __count to __v4hi type.
8666         (_mm_srl_pi32): Cast __count to __v2si type.
8667         (_mm_srl_si64): Cast arguments to __v1di type.
8668         (_mm_sra_pi16): Cast __count to __v4hi type.
8669         (_mm_sra_pi32): Cast __count to __v2si type.
8670         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
8671         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
8672         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
8673         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
8674         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
8675         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
8676         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
8677         (_mm_srai_pi32): Use __builtin_ia32_psradi.
8678         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
8679         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
8680         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
8681         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
8683 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
8685         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
8687 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
8689         PR target/35373
8690         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
8691         reg+const addressing for Altivec modes.  Don't generate reg+reg
8692         addressing for TFmode or TDmode quantities.
8694 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
8696         * c-common.c (vector_types_convertible_p): Call langhook
8697         instead of comptypes.
8699 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8701         PR tree-opt/35402
8702         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
8703         integral and scalar float variables which have a
8704         NULL DECL_INITIAL.
8706 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
8708         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
8709         dwarf_register_span hook when emitting unwind information for
8710         register-to-memory saves.
8711         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
8712         (rs6000_frame_related): Remove call to spe_synthesize_frame.
8714 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
8716         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
8717         for the same VAR_DECL.
8719 2008-03-06  Tom Tromey  <tromey@redhat.com>
8721         * treelang: Delete.
8722         * doc/standards.texi (Standards): Don't mention treelang.
8723         * doc/invoke.texi (Overall Options): Don't mention treelang.
8724         * doc/install.texi (Prerequisites): Don't mention bison or
8725         treelang.
8726         (Configuration): Don't mention treelang.
8727         (Building): Likewise.
8728         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
8730 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
8732         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
8733         word-extractions out of a multi-word object.
8735 2008-03-06  Richard Guenther  <rguenther@suse.de>
8737         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
8738         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
8739         result type and precision.
8740         * expr.c (get_inner_reference): Set unsignedp based on the result
8741         type of BIT_FIELD_REF.
8742         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
8743         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
8744         (try_instantiate_multiple_fields): Likewise.  Use the correct type
8745         for BIT_FIELD_REF.
8746         (sra_build_assignment): Likewise.
8747         (sra_build_elt_assignment): Likewise.
8748         (sra_explode_bitfield_assignment): Likewise.
8749         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
8750         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
8751         set BIT_FIELD_REF_UNSIGNED.
8752         (vectorizable_load): Likewise.
8754 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
8756         * cse.c (cse_extended_basic_block): Invalidate artificial defs
8757         at bb start.
8759 2008-03-06  Richard Guenther  <rguenther@suse.de>
8761         * alias.c (struct alias_set_entry): Move has_zero_child field
8762         to pack with alias_set.
8764 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
8766         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
8767         32bit host.
8769 2008-03-05  Ian Lance Taylor  <iant@google.com>
8771         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
8773 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
8775         * fwprop.c (update_df): Support width and offset parameters of
8776         df_ref_create.
8777         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
8778         global_conflicts): Change DF_REF_EXTRACT to either
8779         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
8780         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8781         * df-scan.c (df_ref_record, df_defs_record,
8782         df_ref_create_structure, df_def_record_1, df_uses_record,
8783         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
8784         df_bb_refs_collect, df_entry_block_defs_collect,
8785         df_exit_block_uses_collect): Support new width and offset fields.
8786         (ref_extract_pool): New storage pool.
8787         (df_free_ref): New function.
8788         (df_reg_chain_unlink, df_free_collection_rec,
8789         df_sort_and_compress_refs): Call df_free_ref.
8790         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
8791         of df_ref_extract.
8792         (df_ref_create_structure): Allocate df_ref_extract if offset and
8793         width fields are used.
8794         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
8795         (df_uses_record): Get offset and width from ZERO_EXTRACT 
8796         and SIGN_EXTRACT.
8797         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
8798         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
8799         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8800         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
8801         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
8802         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8803         (df_ref_extract): New structure.
8804         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
8805         (df_ref_create): Add width and offset parameters.
8806         
8807 2008-03-05  Richard Guenther  <rguenther@suse.de>
8809         * tree-ssa-structalias.c (get_constraint_for_component_ref):
8810         Use ranges_overlap_p.
8811         (offset_overlaps_with_access): Rename
8812         to ranges_overlap_p and move ...
8813         * tree-flow-inline.h (ranges_overlap_p): ... here.
8815         * tree.h (get_inner_reference, handled_component_p): Update
8816         comments.
8818         * tree.h (record_component_aliases, get_alias_set,
8819         alias_sets_conflict_p, alias_sets_must_conflict_p,
8820         objects_must_conflict_p): Move declarations ...
8821         * alias.h (record_component_aliases, get_alias_set,
8822         alias_sets_conflict_p, alias_sets_must_conflict_p,
8823         objects_must_conflict_p): ... here.
8824         Include coretypes.h.
8825         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
8827 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
8829         * cfg.c: Include tree-flow.h.
8830         (remove_edge_raw): Call redirect_edge_var_map_clear.
8831         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
8832         * tree-flow-inline.h (redirect_edge_var_map_def): New.
8833         (redirect_edge_var_map_result): New.
8834         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
8835         PENDING_STMT use with redirect_edge_var_map_*.
8836         * tree-ssa.c (edge_var_maps): New definition.
8837         (redirect_edge_var_map_add): New.
8838         (redirect_edge_var_map_clear): New.
8839         (redirect_edge_var_map_dup): New.
8840         (redirect_edge_var_map_vector): New.
8841         (redirect_edge_var_map_destroy): New.
8842         (ssa_redirect_edge): Replace PENDING_STMT use with
8843         redirect_edge_var_map_*.
8844         (flush_pending_stmts): Same.
8845         (delete_tree_ssa): Destroy edge var map.
8846         * tree-flow.h (struct _edge_var_map): New.
8847         Define edge_var_map vector type.
8848         Declare redirect_edge_var_map_* prototypes.
8849         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
8850         * tree-cfg.c (reinstall_phi_args): Replace
8851         PENDING_STMT use with redirect_edge_var_map_*.
8853 2008-03-05  Richard Guenther  <rguenther@suse.de>
8855         PR tree-optimization/35472
8856         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
8857         whose single use_stmt has a overlapping set of loaded and
8858         stored symbols as that use_stmt might be a noop assignment then.
8860 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
8862         * gthr-rtems.h: Implement __gthread_mutex_destroy.
8864 2008-03-05  Richard Guenther  <rguenther@suse.de>
8866         PR c++/35336
8867         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
8868         should be constants.
8869         * tree-cfg.c (verify_expr): Verify it.
8870         * fold-const.c (fold_truthop): Remove code generating
8871         BIT_FIELD_REFs of structure bases.
8872         (fold_binary): Likewise.
8873         (fold_ternary): Position and size of BIT_FIELD_REFs are
8874         always host integers.
8875         (make_bit_field_ref): Remove.
8876         (optimize_bit_field_compare): Remove.
8877         (all_ones_mask_p): Remove.
8879 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
8881         PR gcc/33009
8882         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
8883         (split_block_and_df_analyze): New. Split basic block and rebuild
8884         dataflow.
8885         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
8886         SPLIT_BLOCK.
8887         (split_pattern_seq): Likewise.
8888         (erase_matching_seqs): Likewise.
8889         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
8891 2008-03-04  Geoff Keating  <geoffk@apple.com>
8893         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
8894         declaration and code.
8895         (tree_invalid_nonnegative_warnv_p): Likewise.
8897 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
8899         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
8900         examples.  Truncate option-names then causing overfull hbox.
8902 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8904         PR target/35222
8905         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
8906         on hpux10.
8907         * configure: Rebuilt.
8909 2008-03-04  Rafael Espindola  <espindola@google.com>
8911         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
8912         (tree_unary_nonnegative_warnv_p): New.
8913         (tree_binary_nonnegative_warnv_p): New.
8914         (tree_single_nonnegative_warnv_p): New.
8915         (tree_invalid_nonnegative_warnv_p): New.
8916         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
8918 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8920         PR 28322
8921         * opts.c (handle_option): Postpone 'unknown option' errors only for
8922         warning options.
8924 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
8926         PR target/35453
8927         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
8928         (_SIDD_XXX): This.
8930 2008-03-04  Rafael Espindola  <espindola@google.com>
8932         * fold-const.c (tree_unary_nonzero_warnv_p): New.
8933         (tree_binary_nonzero_warnv_p): New.
8934         (tree_single_nonzero_warnv_p): New.
8935         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
8937 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
8939         PR middle-end/35456
8940         * fold-const.c (fold_cond_expr_with_comparison): Prevent
8941         transformations for modes that have signed zeros.
8942         * ifcvt.c (noce_try_abs): Ditto.
8944 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
8946         * config/i386/i386.c (override_options): Force
8947         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
8949 2008-03-04  Jan Hubicka  <jh@suse.cz>
8951         PR c++/35262
8952         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
8953         in last commit.
8955 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
8957         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
8958         label to probe the stack.
8960 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
8962         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
8963         (__gthr_win32_mutex_destroy): Declare.
8964         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
8965         __gthr_win32_mutex_destroy.
8966         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
8968 2008-03-03  Jan Hubicka  <jh@suse.cz>
8970         PR c++/35262
8971         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
8972         aggressive on inlining cold calls.
8974 2008-03-03  Richard Guenther  <rguenther@suse.de>
8976         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
8977         struct copies into the expression table.
8978         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
8979         (try_to_simplify): Likewise.
8980         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
8981         integral and pointer arguments which do not change the
8982         precision to NOP_EXPRs.
8983         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
8984         VIEW_CONVERT_EXPR case.
8986 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
8988         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
8989         defined in a loop at depth 0 is invariant.
8990         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
8991         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
8992         be called at loop depth 0.
8994 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
8996         PR driver/35420
8997         * gcc.c (process_command): Update copyright notice dates.
8998         * gcov.c (print_version): Likewise.
8999         * gcov-dump.c (print_version): Likewise.
9000         * mips-tfile.c (main): Likewise.
9001         * mips-tdump.c (main): Likewise.
9003 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9005         PR 24924
9006         * c-common.c (flag_permissive): Delete.
9007         (constant_expression_warnings): Check flags first.
9008         (constant_expression_error): New.
9009         * c-common.h (flag_permissive): Delete.
9010         (constant_expression_error): Declare.
9011         * flags.h (flag_permissive): Declare. Update description.
9012         * diagnostic.c (pedwarn): Update.
9013         (permerror): New.
9014         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
9015         (permissive_error_kind): New.
9016         * toplev.c (flag_permissive): Define. Update description.
9017         * toplev.h (permissive_error_kind): Declare.
9018         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
9019         (pedwarn_c90): Use pedantic_warning_kind.
9020         * c-opts.c (c_common_post_options): flag_permissive does not affect
9021         flag_pedantic_errors.
9023 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
9025         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
9026         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
9027         __absvsi2, __absvDI2): Use unsigned arithmetic.
9029 2008-03-02  Andi Kleen  <ak@suse.de>
9030             Richard Guenther  <rguenther@suse.de>
9032         * struct-equiv.c: Remove file.
9033         * cfg_cleanup.c (condjump_equiv_p): Remove.
9034         * Makefile.in (OBJS-common): Remove struct-equiv.o.
9035         (struct-equiv.o): Remove rule.
9036         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
9037         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
9038         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
9040 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
9042         * ifcvt.c (noce_process_if_block): Try to handle only the then
9043         block if the else block exists but isn't suitable.
9045 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
9047         PR gcc/35063
9048         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
9049         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
9050         regression from previous patch.
9052 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
9054         PR gcc/35063
9055         * gthr.h: Add __gthread_mutex_destroy as a function that must be
9056         implemented.
9057         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
9058         * gthr-single.h (__gthread_mutex_destroy): Likewise.
9059         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
9060         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
9061         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
9062         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
9063         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
9064         (__gthread_mutex_destroy_function): Rename to
9065         __gthread_mutex_destroy.
9066         * gthr-dce.h (__gthread_mutex_destroy): Call
9067         pthread_mutex_destroy.
9068         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
9069         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
9070         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
9072 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
9074         * df-scan.c (df_ref_chain_change_bb): Simplify.
9075         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
9076         set_block_for_insn if there's any change.
9077         * df.h ((df_insn_change_bb): Fix prototype.
9078         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
9079         df_insn_change_bb, don't call set_block_for_insn.
9080         * emit-rtl.c (reorder_insns): Likewise.
9081         * haifa-sched.c (move_insn): Likewise.
9083 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
9085         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
9087 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
9089         * tree-flow-inline.h (next_readonly_imm_use): Return
9090         NULL_USE_OPERAND_P after the end.
9092 2008-03-01  Richard Guenther  <rguenther@suse.de>
9094         PR tree-optimization/35411
9095         * tree-sra.c (sra_build_assignment): Split conversion to
9096         final type to a separate statement if we are not assigning
9097         to a register.
9099 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
9101         * fold-const.c (fold_convertible_p): Correct the logic to follow
9102         that in fold_convert().
9104 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
9106         PR c++/35315
9107         * tree-inline.c (build_duplicate_type): When we make a
9108         duplicate type, make it unique in the canonical types system.
9110 2008-02-29  Tom Tromey  <tromey@redhat.com>
9112         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
9113         input_file_stack_history, input_file_stack_restored): Remove.
9114         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
9115         * input.h (struct file_stack): Remove.
9116         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
9117         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
9118         Likewise.
9119         * diagnostic.h (struct diagnostic_context) <last_module>: Change
9120         type.
9121         (diagnostic_last_module_changed): Add 'map' argument.
9122         (diagnostic_set_last_function): Likewise.
9123         * diagnostic.c (undiagnostic_report_current_module): Iterate using
9124         line map, not input_file_stack.
9125         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
9127 2008-02-29  Paul Brook  <paul@codesourcery.com>
9129         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
9131 2008-02-29  Paul Brook  <paul@codesourcery.com>
9133         * config/arm/ieee754-df.S (muldf3): Use RET macros.
9135 2008-02-29  Richard Guenther  <rguenther@suse.de>
9137         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
9138         vn_lookup_or_add.
9139         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
9140         value for comparing for a store match.
9141         (simplify_unary_expression): Do nothing for SSA_NAMEs.
9142         (try_to_simplify): Do not do a full-blown reference lookup.
9144 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9146         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
9147         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
9149         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
9151 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
9153         * tree-loop-linear.c (try_interchange_loops): Compare memory access
9154         strides against cache sizes.
9156 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9158         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
9159         constant to fpul.
9161 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
9163         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
9164         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
9165         is smaller than the original promoted value.
9166         (simplify_subreg): If OP is a SUBREG, try to preserve its
9167         SUBREG_PROMOTED_VAR_P information.
9169 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
9171         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
9172         (VN_INFO_GET): Allocate new objects on the obstack.
9173         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
9174         for rpo_numbers_temp, for consistency.
9175         (free_scc_vn): Free the obstack.
9177 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
9179         * doc/invoke.texi: Document -ftree-loop-distribution.
9180         * tree-loop-distribution.c: New.
9181         * tree-pass.h (pass_loop_distribution): New.
9182         * graphds.h (struct graph): Add htab_t indices.
9183         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
9184         * tree-vectorizer.c (rename_variables_in_loop): Extern.
9185         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
9186         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
9187         * tree-data-ref.c (debug_data_dependence_relations): New.
9188         (dump_data_dependence_relation): Also print data references.
9189         (free_data_ref): Extern.
9190         (same_access_functions): Moved...
9191         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
9192         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9193         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
9194         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
9195         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
9196         (stmts_from_loop): Skip LABEL_EXPR.
9197         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
9198         New.
9199         (build_rdg): Initialize rdg->indices htab.
9200         (free_rdg, stores_from_loop, ref_base_address,
9201         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
9202         have_similar_memory_accesses_1, ref_base_address_1,
9203         remove_similar_memory_refs): New.
9204         * tree-data-ref.h: Depend on tree-chrec.h.
9205         (debug_data_dependence_relations, free_data_ref): Declared.
9206         (same_access_functions): ... here.
9207         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
9208         New.
9209         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
9210         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
9211         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
9212         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9213         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
9214         rdg_vertex_for_stmt): Declared.
9215         (struct rdg_edge): Add level.
9216         (RDGE_LEVEL): New.
9217         (free_rdg, stores_from_loop, remove_similar_memory_refs,
9218         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
9219         Declared.
9220         (rdg_has_similar_memory_accesses): New.
9221         * tree-vect-analyze.c: Remove unused static decls.
9222         * lambda.h (dependence_level): New.
9223         * common.opt (ftree-loop-distribution): New.
9224         * tree-flow.h (mark_virtual_ops_in_bb, 
9225         slpeel_tree_duplicate_loop_to_edge_cfg,
9226         rename_variables_in_loop): Declared.
9227         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
9228         (OBJS-common): Add tree-loop-distribution.o.
9229         (tree-loop-distribution.o): New rule.
9230         * tree-cfg.c (mark_virtual_ops_in_bb): New.
9231         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
9232         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
9234 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
9236         PR target/33963
9237         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
9238         other than structures and unions.
9240 2008-02-28  Richard Guenther  <rguenther@suse.de>
9242         Revert:
9243         2008-02-26  Richard Guenther  <rguenther@suse.de>
9245         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9246         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9247         (lookup_decl_from_uid): Declare.
9248         (remove_decl_from_map): Likewise.
9249         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9250         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9251         (decl_for_uid_map): New global hashtable mapping DECL_UID
9252         to the decl tree.
9253         (init_ttree): Allocate it.
9254         (insert_decl_to_uid_decl_map): New helper function.
9255         (make_node_stat): Insert new decls into the map.
9256         (copy_node_stat): Likewise.
9257         (lookup_decl_from_uid): New function.
9258         (remove_decl_from_map): Likewise.
9259         (print_decl_for_uid_map_statistics): New helper.
9260         (dump_tree_statistics): Call it.
9262         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9263         (referenced_var_iterator): Adjust.
9264         (FOR_EACH_REFERENCED_VAR): Adjust.
9265         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9266         (num_referenced_vars): Adjust.
9267         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9268         (first_referenced_var): Remove.
9269         (end_referenced_vars_p): Likewise.
9270         (next_referenced_var): Likewise.
9271         (referenced_var_iterator_set): New helper function.
9272         * tree-dfa.c (referenced_var_lookup): Adjust.
9273         (referenced_var_check_and_insert): Likewise.
9274         (remove_referenced_var): Likewise.
9275         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9276         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9277         (verify_call_clobbering): Likewise.
9278         (verify_memory_partitions): Likewise.
9279         (init_tree_ssa): Allocate bitmap instead of hashtable for
9280         referenced_vars.
9281         (delete_tree_ssa): Adjust.
9282         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9283         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9284         (compute_tag_properties): Likewise.
9285         (set_initial_properties): Likewise.
9286         (find_partition_for): Likewise.
9287         (update_reference_counts): Likewise.
9288         (dump_may_aliases_for): Likewise.
9289         * tree-ssa-operands.c (add_virtual_operand): Likewise.
9290         (add_call_clobber_ops): Likewise.
9291         (add_call_read_ops): Likewise.
9292         (get_asm_expr_operands): Likewise.
9293         * tree-into-ssa.c (dump_decl_set): Likewise.
9294         (update_ssa): Likewise.
9295         * tree-sra.c (scan_function): Likewise.
9296         (decide_instantiations): Likewise.
9297         (scalarize_parms): Likewise.
9298         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9299         (dsa_named_for): Likewise.
9300         * tree-ssa-structalias.c (update_alias_info): Likewise.
9301         (merge_smts_into): Likewise.
9303 2008-02-27  David Daney  <ddaney@avtrex.com>
9305         PR target/34409
9306         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
9307         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
9308         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
9309         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
9310         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
9312 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
9314         PR target/25477
9315         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
9316         (BUILT_IN_NEXTTOWARD): Remove.
9317         (BUILT_IN_NEXTTOWARDF): Ditto.
9318         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
9319         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
9321 2008-02-27  Tom Tromey  <tromey@redhat.com>
9323         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
9324         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
9326 2008-02-27  Jan Beulich  <jbeulich@novell.com>
9328         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
9329         update the respective field on newdecl.
9331 2008-02-27  Revital Eres  <eres@il.ibm.com>
9333         PR rtl-optimization/34999
9334         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
9335         crossing edges that ends with a call insn.
9336         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
9337         call insn and clear the EDGE_CROSSING flag of the crossing edge
9338         when fixing fallthru edges.
9340 2008-02-27  Richard Guenther  <rguenther@suse.de>
9342         PR middle-end/35390
9343         * fold-const.c (fold_unary): Return the correct argument,
9344         converted to the result type.
9346 2008-02-27  Richard Guenther  <rguenther@suse.de>
9348         PR middle-end/34971
9349         * expr.c (expand_expr_real_1): Assert on rotates that operate
9350         on partial modes.
9351         * fold-const.c (fold_binary): Use the types precision, not the
9352         bitsize of the mode if folding rotate expressions.  Build rotates
9353         only for full modes.
9355 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
9357         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
9358         and CPP_PRAGMA_EOL.
9359         * c-pragma.c (pragma_ns_name): New typedef.
9360         (registered_pp_pragmas): New variable.
9361         (c_pp_lookup_pragma): New function.
9362         (c_register_pragma_1): If flag_preprocess_only, do nothing
9363         for non-expanded pragmas, for expanded ones push pragma's
9364         namespace and name into registered_pp_pragmas vector.
9365         (c_invoke_pragma_handler): Register OpenMP pragmas even when
9366         flag_preprocess_only, don't register GCC pch_preprocess
9367         pragma if flag_preprocess_only.
9368         * c-opts.c (c_common_init): Call init_pragma even if
9369         flag_preprocess_only.
9370         * c-pragma.c (c_pp_lookup_pragma): New prototype.
9371         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
9372         cpp_register_pragma if flag_preprocess_only.
9374 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9376         PR c/28800
9377         * c-parser.c (c_parser_translation_unit): Warn for empty
9378         translation unit, not empty source file.
9380 2008-02-26  Paul Brook  <paul@codesourcery.com>
9382         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
9383         operand for Thumb-2.
9384         * config/arm/arm.h (reg_class): Add CORE_REGS.
9385         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
9386         (BASE_REG_CLASS): Use CORE_REGS.
9387         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
9388         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
9389         (REGNO_OK_FOR_INDEX_P): Exclude SP.
9390         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
9391         ARM_REGNO_OK_FOR_INDEX_P.
9392         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
9393         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
9394         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
9395         (ldm/stm peepholes): Ditto.
9396         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
9397         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
9398         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
9399         * config/arm/constraints.md: Enable "k" constraint on ARM.
9401 2008-02-27  Ben Elliston  <bje@au.ibm.com>
9403         * config/rs6000/rs6000.c: Annotate cache line size field in all
9404         instances of struct processor_costs.
9406 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
9408         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
9409         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
9410         jump_bypass): New counters.
9411         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
9412         * dce.c (gate_ud_dce): Same.
9413         (gate_fast_dce): Same.
9414         * dse.c (gate_dse1): New function.
9415         (gate_dse2): New function.
9416         (gate_dse): Merge results of new gate functions.
9417         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
9418         (gate_handle_jump_bypass): Add dbg_cnt.
9419         (gate_handle_gcse): Add dbg_cnt.
9420         * ifcvt.c (gate_handle_if_conversion): Same.
9421         (gate_handle_if_after_combine): Same.
9422         (gate_handle_if_after_reload): Same.
9423         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
9425 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
9427         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
9428         line sizes.
9429         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
9431 2008-02-26  Jason Merrill  <jason@redhat.com>
9433         PR c++/35315
9434         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
9435         alone if it's the naming decl for the type's main variant.
9437 2008-02-26  Tom Tromey  <tromey@redhat.com>
9439         * system.h (USE_MAPPED_LOCATION): Poison.
9440         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
9441         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
9442         (make_goto_expr_edges): Likewise.
9443         (remove_bb): Likewise.
9444         (execute_warn_function_return): Likewise.
9445         * basic-block.h (struct edge_def) <goto_locus>: Change type to
9446         location_t.
9447         * c-common.c (fname_decl): Remove old location code.
9448         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
9449         location code.
9450         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
9451         variant.
9452         (ASM_INPUT_SOURCE_LOCATION): Likewise.
9453         (gen_rtx_ASM_INPUT): Likewise.
9454         (gen_rtx_ASM_INPUT_loc): Likewise.
9455         (get_rtx_asm_OPERANDS): Remove.
9456         * cfglayout.c (insn_locators_alloc): Remove old location code.
9457         (set_curr_insn_source_location): Likewise.
9458         (curr_insn_locator): Likewise.
9459         * print-tree.c (print_node): Remove old location code.
9460         * tree-mudflap.c (mf_varname_tree): Remove old location code.
9461         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
9462         * cfgexpand.c (expand_gimple_cond_expr): Don't use
9463         location_from_locus.
9464         (construct_exit_block): Remove old location code.
9465         * emit-rtl.c (force_next_line_note): Remove old location code.
9466         * profile.c (branch_prob): Remove old location code.
9467         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
9468         LOC_LINE): Remove old-location variants.
9469         * langhooks.c (lhd_print_error_function): Remove old location
9470         code.
9471         * configure, config.in: Rebuilt.
9472         * configure.ac (--enable-mapped-location): Remove.
9473         * c-decl.c (c_init_decl_processing): Remove old location code.
9474         (finish_function): Likewise.
9475         * recog.c (decode_asm_operands): Remove old location code.
9476         * c-pch.c (c_common_read_pch): Remove old location code.
9477         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
9478         variants.
9479         * gimple-low.c (lower_function_body): Remove old location code.
9480         * toplev.c (unknown_location): Remove.
9481         (push_srcloc): Remove old-location variant.
9482         (process_options): Remove old location code.
9483         (lang_dependent_init): Likewise.
9484         * input.h (UNKNOWN_LOCATION): Move definition.
9485         (location_t): Undeprecate.
9486         (source_locus): Remove.
9487         (location_from_locus): Remove.
9488         (struct location_s): Remove.
9489         Remove all old-location code.
9490         (input_line, input_filename): Remove.
9491         * final.c (final_scan_insn): Remove old location code.
9492         * diagnostic.c (diagnostic_build_prefix): Remove
9493         USE_MAPPED_LOCATION test.
9494         * tree.h (gimple_stmt) <locus>: Now a location_t.
9495         (tree_exp) <locus>: Likewise.
9496         (DECL_IS_BUILTIN): Remove old-location variant.
9497         (annotate_with_file_line, annotate_with_locus): Likewise.
9498         (expr_locus, set_expr_locus): Update.
9499         * tree.c (build1_stat): Remove old location code.
9500         (last_annotated_node): Remove.
9501         (annotate_with_file_line): Remove old-location variant.
9502         (annotate_with_locus): Likewise.
9503         (expr_location): Remove old location code.
9504         (set_expr_location): Likewise.
9505         (expr_has_location): Likewise.
9506         (expr_locus): Likewise.
9507         (set_expr_locus): Likewise.
9508         (expr_filename): Don't use location_from_locus.
9509         (expr_lineno): Likewise.
9510         * rtl-error.c (location_for_asm): Remove old location code.
9511         * c-lex.c (cb_line_change): Remove old location code.
9512         (fe_file_change): Likewise.
9513         (cb_def_pragma): Likewise.
9514         (c_lex_with_flags): Likewise.
9515         * gengtype.c (do_typedef): Don't special-case location types.
9516         (define_location_structures): Remove.
9517         (main): Don't call define_location_structures.
9518         * tree-pretty-print.c (dump_implicit_edges): Remove old location
9519         code.
9521 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9523         PR 26264
9524         * builtins.def (BUILT_IN_STDARG_START): Remove.
9525         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
9526         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9527         * tree-inline.c (inline_forbidden_p_1): Likewise.
9528         
9529 2008-02-26  Richard Guenther  <rguenther@suse.de>
9531         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9532         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9533         (lookup_decl_from_uid): Declare.
9534         (remove_decl_from_map): Likewise.
9535         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9536         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9537         (decl_for_uid_map): New global hashtable mapping DECL_UID
9538         to the decl tree.
9539         (init_ttree): Allocate it.
9540         (insert_decl_to_uid_decl_map): New helper function.
9541         (make_node_stat): Insert new decls into the map.
9542         (copy_node_stat): Likewise.
9543         (lookup_decl_from_uid): New function.
9544         (remove_decl_from_map): Likewise.
9545         (print_decl_for_uid_map_statistics): New helper.
9546         (dump_tree_statistics): Call it.
9548         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9549         (referenced_var_iterator): Adjust.
9550         (FOR_EACH_REFERENCED_VAR): Adjust.
9551         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9552         (num_referenced_vars): Adjust.
9553         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9554         (first_referenced_var): Remove.
9555         (end_referenced_vars_p): Likewise.
9556         (next_referenced_var): Likewise.
9557         (referenced_var_iterator_set): New helper function.
9558         * tree-dfa.c (referenced_var_lookup): Adjust.
9559         (referenced_var_check_and_insert): Likewise.
9560         (remove_referenced_var): Likewise.
9561         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9562         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9563         (verify_call_clobbering): Likewise.
9564         (verify_memory_partitions): Likewise.
9565         (init_tree_ssa): Allocate bitmap instead of hashtable for
9566         referenced_vars.
9567         (delete_tree_ssa): Adjust.
9568         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9569         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9570         (compute_tag_properties): Likewise.
9571         (set_initial_properties): Likewise.
9572         (find_partition_for): Likewise.
9573         (update_reference_counts): Likewise.
9574         (dump_may_aliases_for): Likewise.
9575         * tree-ssa-operands.c (add_virtual_operand): Likewise.
9576         (add_call_clobber_ops): Likewise.
9577         (add_call_read_ops): Likewise.
9578         (get_asm_expr_operands): Likewise.
9579         * tree-into-ssa.c (dump_decl_set): Likewise.
9580         (update_ssa): Likewise.
9581         * tree-sra.c (scan_function): Likewise.
9582         (decide_instantiations): Likewise.
9583         (scalarize_parms): Likewise.
9584         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9585         (dsa_named_for): Likewise.
9586         * tree-ssa-structalias.c (update_alias_info): Likewise.
9587         (merge_smts_into): Likewise.
9589 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9591         PR 34351
9592         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
9593         * c-opts.c (c_common_handle_option): Wall enables
9594         Wvolatile-register-var.
9595         * common.opt: Move Wvolatile-register-var to...
9596         * c.opt: ...here.
9597         
9598 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9600         * common.opt (Wlarger-than=): New.
9601         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
9602         -Wlarger-than=.
9603         * opts.c (common_handle_option): Handle -Wlarger-than=.
9604         * optc-gen.awk: Likewise.
9605         * opth-gen.awk: Likewise.
9606         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
9607         * tree-optimize.c (tree_rest_of_compilation): Likewise.
9608         
9609 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9611         * c-common.c (match_case_to_enum_1): Add appropriate
9612         OPT_W* parameter to warning.
9613         (c_do_switch_warnings): Likewise.
9614         * c-typeck.c (warning_init): Add one more parameter following
9615         'warning' function.
9616         (push_init_level): Update call to warning_init.
9617         (pop_init_level): Likewise.
9618         (add_pending_init): Likewise.
9619         (output_init_element: Likewise.
9621 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9623         PR 28322
9624         * toplev.c (toplev_main): If there are warnings or error, print
9625         errors for ignored options.
9626         * opts.c (ignored_options): New static variable.
9627         (postpone_unknown_option_error): New.
9628         (print_ignored_options): New.
9629         (handle_option): Postpone errors for unknown -Wno-* options.
9630         * opts.h (print_ignored_options): Declare.
9631         
9632 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
9634         * config/mips/mips.md (loadgp_blockage, blockage): Change type
9635         to "ghost".
9637 2008-02-25  Richard Guenther  <rguenther@suse.de>
9639         Revert:
9640         2008-02-25  Richard Guenther  <rguenther@suse.de>
9642         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9643         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9644         (lookup_decl_from_uid): Declare.
9645         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9646         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9647         (decl_for_uid_map): New global hashtable mapping DECL_UID
9648         to the decl tree.
9649         (init_ttree): Allocate it.
9650         (insert_decl_to_uid_decl_map): New helper function.
9651         (make_node_stat): Insert new decls into the map.
9652         (copy_node_stat): Likewise.
9653         (lookup_decl_from_uid): New function.
9654         (print_decl_for_uid_map_statistics): New helper.
9655         (dump_tree_statistics): Call it.
9657         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9658         (referenced_var_iterator): Adjust.
9659         (FOR_EACH_REFERENCED_VAR): Adjust.
9660         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9661         (num_referenced_vars): Adjust.
9662         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9663         (first_referenced_var): Remove.
9664         (end_referenced_vars_p): Likewise.
9665         (next_referenced_var): Likewise.
9666         (referenced_var_iterator_set): New helper function.
9667         * tree-dfa.c (referenced_var_lookup): Adjust.
9668         (referenced_var_check_and_insert): Likewise.
9669         (remove_referenced_var): Likewise.
9670         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9671         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9672         (verify_call_clobbering): Likewise.
9673         (verify_memory_partitions): Likewise.
9674         (init_tree_ssa): Allocate bitmap instead of hashtable for
9675         referenced_vars.
9676         (delete_tree_ssa): Adjust.
9677         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9678         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9679         (compute_tag_properties): Likewise.
9680         (set_initial_properties): Likewise.
9681         (find_partition_for): Likewise.
9682         (update_reference_counts): Likewise.
9683         (dump_may_aliases_for): Likewise.
9684         * tree-ssa-operands.c (add_virtual_operand): Likewise.
9685         (add_call_clobber_ops): Likewise.
9686         (add_call_read_ops): Likewise.
9687         (get_asm_expr_operands): Likewise.
9688         * tree-into-ssa.c (dump_decl_set): Likewise.
9689         (update_ssa): Likewise.
9690         * tree-sra.c (scan_function): Likewise.
9691         (decide_instantiations): Likewise.
9692         (scalarize_parms): Likewise.
9693         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9694         (dsa_named_for): Likewise.
9695         * tree-ssa-structalias.c (update_alias_info): Likewise.
9696         (merge_smts_into): Likewise.
9698 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
9700         PR fortran/29549
9701         * doc/invoke.texi (-fcx-limited-range): Document new option.
9702         * toplev.c (process_options): Handle -fcx-fortran-rules.
9703         * common.opt: Add documentation for -fcx-fortran-rules.
9705 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
9707         PR c/35162
9708         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
9709         actual behaviour and C99.
9710         
9711 2008-02-26  Ben Elliston  <bje@au.ibm.com>
9713         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
9714         (ASM_CPU_POWER6_SPEC): Likewise.
9715         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
9716         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
9717         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
9719 2008-02-25  Richard Guenther  <rguenther@suse.de>
9721         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9722         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9723         (lookup_decl_from_uid): Declare.
9724         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9725         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9726         (decl_for_uid_map): New global hashtable mapping DECL_UID
9727         to the decl tree.
9728         (init_ttree): Allocate it.
9729         (insert_decl_to_uid_decl_map): New helper function.
9730         (make_node_stat): Insert new decls into the map.
9731         (copy_node_stat): Likewise.
9732         (lookup_decl_from_uid): New function.
9733         (print_decl_for_uid_map_statistics): New helper.
9734         (dump_tree_statistics): Call it.
9736         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9737         (referenced_var_iterator): Adjust.
9738         (FOR_EACH_REFERENCED_VAR): Adjust.
9739         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9740         (num_referenced_vars): Adjust.
9741         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9742         (first_referenced_var): Remove.
9743         (end_referenced_vars_p): Likewise.
9744         (next_referenced_var): Likewise.
9745         (referenced_var_iterator_set): New helper function.
9746         * tree-dfa.c (referenced_var_lookup): Adjust.
9747         (referenced_var_check_and_insert): Likewise.
9748         (remove_referenced_var): Likewise.
9749         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9750         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9751         (verify_call_clobbering): Likewise.
9752         (verify_memory_partitions): Likewise.
9753         (init_tree_ssa): Allocate bitmap instead of hashtable for
9754         referenced_vars.
9755         (delete_tree_ssa): Adjust.
9756         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9757         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9758         (compute_tag_properties): Likewise.
9759         (set_initial_properties): Likewise.
9760         (find_partition_for): Likewise.
9761         (update_reference_counts): Likewise.
9762         (dump_may_aliases_for): Likewise.
9763         * tree-ssa-operands.c (add_virtual_operand): Likewise.
9764         (add_call_clobber_ops): Likewise.
9765         (add_call_read_ops): Likewise.
9766         (get_asm_expr_operands): Likewise.
9767         * tree-into-ssa.c (dump_decl_set): Likewise.
9768         (update_ssa): Likewise.
9769         * tree-sra.c (scan_function): Likewise.
9770         (decide_instantiations): Likewise.
9771         (scalarize_parms): Likewise.
9772         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9773         (dsa_named_for): Likewise.
9774         * tree-ssa-structalias.c (update_alias_info): Likewise.
9775         (merge_smts_into): Likewise.
9777 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
9779         PR target/35258
9780         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
9781         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
9782         * alias.h (nonoverlapping_memrefs_p): Likewise.
9784 2008-02-25  Jan Beulich  <jbeulich@novell.com>
9786         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
9787         * config/i386/netware-libgcc.exp: Add __bswap?i2,
9788         __emultls_get_address, __emultls_register_common,
9789         __floatundi?f, and _Unwind_GetIPInfo.
9790         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
9791         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
9792         (gen_regparm_prefix): Likewise.
9793         (i386_nlm_encode_section_info): Sync with
9794         config/i386/winnt.c:i386_pe_encode_section_info().
9795         (i386_nlm_maybe_mangle_decl_assembler_name): New.
9796         i386_nlm_mangle_decl_assembler_name): New.
9797         (netware_override_options): New.
9798         * config/i386/netware.h (netware_override_options): Declare.
9799         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
9800         (i386_nlm_mangle_decl_assembler_name): Declare.
9801         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
9803 2008-02-25  Ben Elliston  <bje@au.ibm.com>
9805         PR other/32948
9806         * c-decl.c (grokdeclarator): Remove unused local variables
9807         `typedef_type' and `type_as_written'.
9808         * bb-reorder.c
9809         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
9810         unused local variable `has_hot_blocks'.
9811         (fix_crossing_conditional_branches): Remove unused local variable
9812         `prev_bb'.
9813         
9814 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
9816         PR middle-end/19984
9817         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
9818         using DEF_C99_BUILTIN.
9819         (BUILT_IN_NANF): Ditto.
9820         (BUILT_IN_NANL): Ditto.
9822 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
9823             Revital Eres  <eres@il.ibm.com>
9825         * modulo-sched.c (calculate_must_precede_follow): Address TODO
9826         regarding the order of two dependent insns in the same row.
9828 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9830         * stor-layout.c (layout_decl): Do not bump the alignment of a
9831         bit-field to more than byte alignment if it is packed.
9833 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
9835         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
9836         e300c2 and e300c3.
9838 2008-02-24  Diego Novillo  <dnovillo@google.com>
9840         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
9842         PR 33738
9843         * tree-vrp.c (vrp_evaluate_conditional): With
9844         -Wtype-limits, emit a warning when comparing against a
9845         constant outside the natural range of OP0's type.
9846         * c.opt (Wtype-limits): Move ...
9847         * common.opt (Wtype-limits): ... here.
9849 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
9851         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
9852         * config/rs6000/e300c2c3.md: New file.
9853         * config/rs6000/rs6000.c (processor_costs): Add new costs for
9854         e300c2 and e300c3.
9855         (rs6000_override_options): Add e300c2 and e300c3 cases to
9856         processor_target_table. Do not allow usage of Altivec or Spe
9857         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
9858         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
9859         * config/rs6000/rs6000.h (processor_type): Add
9860         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
9861         (ASM_CPU_SPEC): Add e300c2 and e300c3.
9862         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
9863         and ppce300c3. Include e300c2c3.md.
9865 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
9867         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
9868         instead of TARGET_STRICT_ALIGN.
9870 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
9872         * explow.c (memory_address): Assert that the generated address is
9873         valid.
9875 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
9877         PR target/25477
9878         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
9879         * config/darwin-ppc-ldouble-patch.def: New file.
9880         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
9881         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
9882         SUBTARGET_INIT_BUILTINS if defined.
9883         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
9884         New functions.
9886 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9888         PR rtl-opt/33512
9889         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
9890         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
9892 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9894         PR pch/35027
9895         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
9896         file" warning condtional on -Winvalid-PCH.
9898 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
9900         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
9902 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
9904         PR target/22076
9905         PR target/34256 
9906         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
9907         prevent reload from using MMX registers.
9908         (*mov<mode>_internal): Ditto.
9909         (*movv2sf_internal_rex64): Ditto.
9910         (*movv2sf_internal): Ditto.
9912 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9914         PR documentation/31569
9915         * doc/install.texi2html: Use makeinfo --no-number-sections.
9917 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
9919         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
9920         ensure that we can address an entire entity > 8 bytes.  Don't
9921         generate reg+reg addressing for such data.
9923 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
9925         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
9926         strings when optimizing for size, unless the target cares about
9927         alignment.
9929 2008-02-22  Tom Tromey  <tromey@redhat.com>
9931         * regclass.c (current_pass): Remove declaration.
9933 2008-02-22  Anatoly Sokolov <aesok@post.ru>
9935         * config/avr/libgcc.S (__RAMPZ__): Define.
9936         (__do_copy_data): Add for devices with 128KB code memory.
9938 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
9940         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
9941         Use spe_abi.
9942         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
9944 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
9946         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
9947         GENNONACR_REGS.
9949 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9951         PR c/19999
9952         * c-typeck.c (build_binary_op): Warn about floating point
9953         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
9955 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
9957         PR target/34526
9958         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
9959         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
9960         add vrsave.
9961         (rs6000_override_options): Set altivec_abi as default, not override,
9962         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
9963         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
9964         is used; use new member spe_abi.
9965         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
9966         spe_abi and altivec_abi.
9968 2008-02-22  Tomas Bily  <tbily@suse.cz>
9970         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
9972 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9974         PR bootstrap/35273
9975         * config.build (build_file_translate): Set to `CMD //c' only if
9976         it works.
9977         * Makefile.in (build_file_translate): Improve comment.
9979 2008-02-21  Jan Hubicka  <jh@suse.cz>
9981         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
9982         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
9983         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
9985 2008-02-21  Michael Matz  <matz@suse.de>
9987         PR target/35264
9988         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
9990 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
9992         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
9993         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
9994         as insn constraint.
9995         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
9996         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
9997         SSE_VEC_FLOAT_MODE_P as insn constraint.
9998         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
9999         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
10000         sse4a_movntdf using MODEF mode iterator.
10001         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
10002         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
10003         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
10004         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
10005         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
10006         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
10007         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
10009 2008-02-21  Richard Guenther  <rguenther@suse.de>
10011         * tree.def (PAREN_EXPR): New tree code.
10012         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
10013         and PAREN_EXPR.
10014         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
10015         * expr.c (expand_expr_real_1): Likewise.
10016         * tree-inline.c (estimate_num_insns_1): Likewise.
10017         * tree-complex.c (expand_complex_move): Likewise.
10018         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
10019         as plain x.
10021 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10023         PR target/35225
10024         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
10026 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10028         PR target/35190
10029         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
10031         * config/sh/sh.c (find_barrier): Don't go past
10032         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
10034 2008-02-20  DJ Delorie  <dj@redhat.com>
10036         * config/h8300/h8300.md (insv): Force source operand to be a register.
10038         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
10039         as a jump, not as a plain insn.
10040         
10041 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
10043         * doc/invoke.texi (Warning Options): Add new option
10044         -Wframe-larger-than=.
10045         (-Wframe-larger-than): Document.
10047         * flags.h (warn_frame_larger_than, frame_larger_than_size):
10048         Add declarations for new option variables.
10050         * final.c (final_start_function): Check the frame size
10051         before emission and issue a Wframe-larger-than warning.
10053         * opts.c (warn_frame_larger_than, frame_larger_than_size):
10054         Add definitions for new option variables.
10055         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
10057         * common.opt (Wframe-larger-than=): New option.
10059 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
10061         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
10062         (<sse>_div<mode>3): Ditto.
10063         (<sse>_vmdiv<mode>3): Ditto.
10064         (<sse>_vmsqrt<mode>2): Ditto.
10065         (*smax<mode>3): Ditto.
10066         (sse5_frcz<mode>2): Ditto.
10067         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
10068         as insn constraint.
10070 2008-02-20  Richard Guenther  <rguenther@suse.de>
10072         PR middle-end/35265
10073         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
10074         be happy with INTEGRAL_TYPE_P.
10076 2008-02-20  Richard Guenther  <rguenther@suse.de>
10078         * fold-const.c (split_tree): Associate floatig-point expressions
10079         if flag_associative_math is set.
10081 2008-02-20  Richard Guenther  <rguenther@suse.de>
10083         * tree.h (fold_real_zero_addition_p): Declare.
10084         * fold-const.c (fold_real_zero_addition_p): Export.
10085         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
10086         floating-point operations with zero and one.
10088 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
10090         * doc/install.texi: Correct references to CFLAGS, replacing them
10091         with BOOT_CFLAGS.  Document flags used during bootstrap for
10092         target libraries.
10093                                 
10094 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
10096         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
10097         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
10098         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
10099         insn constraint.
10100         (smin<mode>3): Ditto from similar patterns.
10101         (smax<mode>3): Ditto.
10102         (*ieee_smin<mode>3): Ditto.
10103         (*ieee_smax<mode>3): Ditto.
10104         * config/i386/sse.md (sse): New mode attribute.
10105         (mov<mode>): Macroize expander from movv4sf and movv2df using
10106         SSEMODEF2P mode iterator.
10107         (<sse>_movnt<mode>): Ditto from similar patterns. Use
10108         SSE_VEC_FLOAT_MODE_P as insn constraint.
10109         (storent<mode>): Ditto.
10110         (storent<mode>): Macroize expander from storentsf and storentdf using
10111         MODEF mode iterator.
10112         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
10113         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
10114         (abs<mode>2): Ditto from similar patterns.
10115         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
10116         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
10117         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
10118         (<sse>_vmsqrt<mode>2): Ditto.
10119         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
10120         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
10121         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
10122         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
10123         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
10124         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
10125         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
10126         insn constraint.
10127         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
10128         iterator and SSE_FLOAT_MODE_P as insn constraint.
10129         (<sse>_ucomi): Ditto from similar patterns.
10130         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
10131         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
10132         SSE_VEC_FLOAT_MODE_P as insn constraint.
10133         (vcond<mode>): Ditto from similar patterns.
10134         (and<mode>3, *and<mode>3): Ditto.
10135         (<sse>_nand<mode>3): Ditto.
10136         (ior<mode>3, *ior<mode>3): Ditto.
10137         (xor<mode>3, *xor<mode>3): Ditto.
10138         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
10139         iterator and SSE_FLOAT_MODE_P as insn constraint.
10140         (*nand<mode>3): Ditto from similar patterns.
10141         (*ior<mode>3): Ditto.
10142         (*xor<mode>3): Ditto.
10144 2008-02-20  Ira Rosen  <irar@il.ibm.com>
10146         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
10147         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
10148         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
10150 2008-02-19  Jan Hubicka  <jh@suse.cz>
10152         * predict.c (tree_bb_level_predictions): Remove variable next
10153         mistakely introduced by previous commit.
10155 2008-02-19  Jan Hubicka  <jh@suse.cz>
10157         * predict.c (predict_paths_leading_to): Rewrite.
10158         (predict_paths_for_bb): New.
10159         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
10161 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10163         PR bootstrap/35218
10164         * Makefile.in (build_file_translate): New.
10165         (gcc-vers.texi): Use it for translating $(abs_srcdir).
10166         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
10167         * configure.ac (build_file_translate): Substitute it.
10168         * configure: Regenerate.
10170 2008-02-19  Jan Hubicka  <jh@suse.cz>
10172         PR rtl-optimization/34408
10173         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
10174         invalid sharing.
10176 2008-02-19  Jan Hubicka  <jh@suse.cz>
10178         PR middle-end/28779
10179         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
10180         call_expr.
10182 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
10184         PR Ada/35186
10185         * config/i386/i386-modes.def: Revert the last DI alignment
10186         change until Ada people can look into it.
10188 2008-02-19  Nick Clifton  <nickc@redhat.com>
10190         * opts.c (print_specific_help): Fix typo in --help text.
10192 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
10194         PR target/35239
10195         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
10196         32-bit inline asm without asm alternatives for host GCC < 3.0.
10198 2008-02-19  Richard Guenther  <rguenther@suse.de>
10200         PR tree-optimization/34989
10201         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
10202         Allow propagation to INDIRECT_REF if we can simplify only.
10204 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10206         * c-common.c (warn_for_collisions_1): Use appropriate option when
10207         warning.
10209 2008-02-19  Nick Clifton  <nickc@redhat.com>
10211         PR other/31349
10212         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
10213         (handle_options): Fix indentation.
10214         (print_filtered_help): If no language-specific options were
10215         displayed tell the user how to list all the options supported by
10216         the language's front-end.
10217         (print_specific_help): Fix indentation and remove duplicate line.
10218         (common_handle_option): Handle the -v option.
10219         For --help enable the display of undocumented options if the -v
10220         switch has been included on the command line.
10221         For --help= check for overlaps in the arguments between the option
10222         classes and the language names and issue a warning when they
10223         cannot be disambiguated.
10224         * c.opt (v): Pass on to the common option handler.
10226 2008-02-19  Revital Eres  <eres@il.ibm.com> 
10228         * modulo-sched.c (sms_schedule): Change dump message when
10229         create_ddg function fails.
10230         (try_scheduling_node_in_cycle): Rename row to cycle.
10231         (print_partial_schedule): Rename CYCLE to ROW.
10233 2008-02-19  Christian Bruel  <christian.bruel@st.com>
10234             Zdenek Dvorak  <ook@ucw.cz>
10236         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
10238 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
10240         PR target/33555
10241         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
10242         (*x86_movdicc_0_m1_se): Ditto.
10244 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
10246         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
10247         (CMPtype): Define as __gcc_CMPtype.
10248         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
10249         (CMPtype): Define as __gcc_CMPtype.
10251 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
10253         Support valgrind 3.3 for --enable-checking=valgrind.
10254         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
10255         here.
10256         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
10257         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
10258         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
10259         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
10260         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
10261         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
10262         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
10263         respectively.
10264         * ggc-zone.c: Similar.
10265         * ggc-page.c: Similar.
10267 2008-02-19  Paul Brook  <paul@codesourcery.com>
10269         PR target/35071
10270         * config/arm/ieee754-df.S: Fix do_it typo.
10271         * config/arm/ieee754-sf.S: Fix do_it typo.
10273 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
10275         PR target/35189
10276         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
10277         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
10278         (OPTION_MASK_ISA_SSE_SET): Likewise.
10279         (OPTION_MASK_ISA_SSE2_SET): Likewise.
10280         (OPTION_MASK_ISA_SSE3_SET): Likewise.
10281         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
10282         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
10283         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
10284         (OPTION_MASK_ISA_SSE4_SET): Likewise.
10285         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
10286         (OPTION_MASK_ISA_SSE5_SET): Likewise.
10287         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
10288         (OPTION_MASK_ISA_MMX_UNSET): Updated.
10289         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
10290         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
10291         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
10292         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
10293         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
10294         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
10295         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
10296         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
10297         (OPTION_MASK_ISA_SSE4): Removed.
10298         (ix86_handle_option): Turn on bits in ix86_isa_flags and
10299         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
10300         (override_options): Don't turn on implied SSE/MMX bits in
10301         ix86_isa_flags.
10303 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
10305         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10306         32bit host.
10308 2008-02-18  Joey Ye  <joey.ye@intel.com>
10310         PR middle-end/34921
10311         * tree-nested.c (insert_field_into_struct): Set type alignment
10312         to field alignment if the former is less than the latter.
10314 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
10316         * BASE-VER: Set to 4.4.0.
10318 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10320         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
10321         * doc/cfg.texi: Likewise.
10322         * doc/extend.texi: Likewise.
10323         * doc/gty.texi: Likewise.
10324         * doc/invoke.texi: Likewise.
10325         * doc/loop.texi: Likewise.
10326         * doc/md.texi: Likewise.
10327         * doc/passes.texi: Likewise.
10328         * doc/rtl.texi: Likewise.
10329         * doc/sourcebuild.texi: Likewise.
10330         * doc/tm.texi: Likewise.
10331         * doc/tree-ssa.texi: Likewise.
10333 2008-02-17  Richard Guenther  <rguenther@suse.de>
10335         PR middle-end/35227
10336         * tree-complex.c (init_parameter_lattice_values): Handle parameters
10337         without default definition.
10339 2008-02-17  Richard Guenther  <rguenther@suse.de>
10341         PR tree-optimization/35231
10342         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
10343         if A | B != 1.
10345 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
10347         Revert:
10348         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
10349         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10350         libgcc_cmp_return mode.
10352 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10354         PR c/28368
10355         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
10357 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
10359         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
10360         multilibs.
10362 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10364         * doc/c-tree.texi: Use `@.' where appropriate.
10365         * doc/extend.texi: Likewise.
10366         * doc/install.texi: Likewise.
10367         * doc/invoke.texi: Likewise.
10368         * doc/loop.texi: Likewise.
10369         * doc/makefile.texi: Likewise.
10370         * doc/md.texi: Likewise.
10371         * doc/passes.texi: Likewise.
10372         * doc/standards.texi: Likewise.
10373         * doc/tm.texi: Likewise.
10375 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
10377         PR middle-end/35196
10378         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
10379         in entry_bb.
10380         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
10381         rather than in entry_bb.
10383 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
10385         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10386         libgcc_cmp_return mode.
10388 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
10390         PR middle-end/35130
10391         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
10392         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
10394 2008-02-15  Richard Guenther  <rguenther@suse.de>
10395             Zdenek Dvorak  <ook@ucw.cz>
10397         PR tree-optimization/35164
10398         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
10399         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
10400         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
10401         Only propagate addresses which do not have abnormal SSA_NAMEs
10402         in their operands.
10404 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
10406         PR target/35088
10407         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
10409 2008-02-15  Jan Hubicka  <jh@suse.cz>
10411         PR middle-end/35149
10412         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
10414 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
10416         PR middle-end/34621
10417         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
10418         when calculating alignment_pad.
10420 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
10422         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
10423         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
10424         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
10425         and STACK_BOUNDARY define.
10427 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
10429         PR preprocessor/35061
10430         * c-pragma.c (handle_pragma_pop_macro): Check that
10431         pushed_macro_table has been allocated.
10433 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10435         PR middle-end/35136
10436         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
10437         (force_gimple_operand): Likewise.
10438         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
10439         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
10440         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
10441         (find_interesting_uses_address): Check addressability and alignment
10442         of the base expression only after substituting bases of IVs into it.
10444 2008-02-14  Michael Matz  <matz@suse.de>
10446         PR target/34930
10447         * function.c (instantiate_virtual_regs_in_insn): Reload address
10448         before falling back to reloading the whole operand.
10450 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
10452         * config/s390/s390.c (s390_mainpool_start): Emit the pool
10453         before the first section switch note.
10455 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10457         * doc/bugreport.texi: Update copyright years.
10458         * doc/c-tree.texi: Likewise.
10459         * doc/cfg.texi: Likewise.
10460         * doc/cpp.texi: Likewise.
10461         * doc/cppinternals.texi: Likewise.
10462         * doc/fragments.texi: Likewise.
10463         * doc/frontends.texi: Likewise.
10464         * doc/gcc.texi: Likewise.
10465         * doc/gty.texi: Likewise.
10466         * doc/hostconfig.texi: Likewise.
10467         * doc/implement-c.texi: Likewise.
10468         * doc/libgcc.texi: Likewise.
10469         * doc/loop.texi: Likewise.
10470         * doc/makefile.texi: Likewise.
10471         * doc/options.texi: Likewise.
10472         * doc/passes.texi: Likewise.
10473         * doc/rtl.texi: Likewise.
10474         * doc/sourcebuild.texi: Likewise.
10475         * doc/standards.texi: Likewise.
10476         * doc/tree-ssa.texi: Likewise.
10477         * doc/trouble.texi: Likewise.
10479         * doc/extend.texi: Use @: or add comma where appropriate.
10480         * doc/invoke.texi: Likewise.
10481         * doc/tm.texi: Likewise.
10483 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
10485         PR target/34393
10486         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
10487         to a reg.
10489 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
10491         * doc/md.texi (clz, ctz): Add reference.
10492         * doc/rtl.texi (clz, ctz): Likewise.
10494 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10496         PR other/35148
10497         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
10498         srcdir.
10500 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
10502         * config/s390/s390.c (struct constant_pool): New field
10503         emit_pool_after added.
10504         (s390_mainpool_start): Set the emit_pool_after flag according
10505         to the section switch notes.
10506         (s390_mainpool_finish): Consider emit_pool_after when emitting
10507         the literal pool at the end of the function.
10508         (s390_chunkify_start): Force literal pool splits at section
10509         switch notes.
10511 2008-02-13  Michael Matz  <matz@suse.de>
10513         PR debug/35065
10514         * var-tracking.c (clobber_variable_part): Correctly traverse the
10515         list.
10517 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10519         PR 29673
10520         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
10521         Add -fdump-ipa-inline.
10522         * tree-dump.c (dump_files): Remove tree-inlined dump.
10523         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
10524         
10525 2008-02-12  Richard Guenther  <rguenther@suse.de>
10527         PR tree-optimization/35171
10528         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
10529         default defs.
10531 2008-02-12  Richard Guenther  <rguenther@suse.de>
10533         PR middle-end/35163
10534         * fold-const.c (fold_widened_comparison): Use get_unwidened in
10535         value-preserving mode.  Disallow final truncation.
10537 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
10539         PR middle-end/35136
10540         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
10541         code from here to...
10542         (force_gimple_operand): ...here.
10544 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
10546         PR c++/35144
10547         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
10548         non-compatible pointers.
10549         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
10550         different FIELD_DECLs, try harder by comparing field offsets, sizes
10551         and types.
10553         PR inline-asm/35160
10554         * function.c (match_asm_constraints_1): Don't replace the same input
10555         multiple times.
10557 2008-02-12  Anatoly Sokolov <aesok@post.ru>
10559         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
10560         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
10561         (expand_epilogue): Restore RAMPZ register.
10562         * config/avr/avr.md (RAMPZ_ADDR): New constant.
10564 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
10566         * config/i386/cygwin.asm: (__alloca): Correct calling
10567         convention and alignment.
10568         (__chkstk): Force 8 byte stack alignment.
10570 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
10571             Richard Guenther  <rguenther@suse.de>
10573         PR tree-optimization/33992
10574         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
10575         the zero we compare against.
10577 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
10579         PR libfortran/35063
10580         * gthr-win32.h (__gthread_mutex_destroy_function): New function
10581         to CloseHandle after unlocking to prevent accumulation of handle
10582         count.
10584 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10586         PR middle_end/34150
10587         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
10588         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
10589         and update LABEL_NUSES during and after reload.
10591 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
10593         PR middle-end/34627
10594         * combine.c (simplify_if_then_else): Make sure the comparison is
10595         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
10597 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
10599         PR bootstrap/35051
10600         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
10601         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
10602         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
10603         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
10604         * tree.h (get_type_static_bounds): Likewise.
10606 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10608         * doc/invoke.texi (Option Summary, C++ Dialect Options)
10609         (Objective-C and Objective-C++ Dialect Options, Warning Options):
10610         Make -Wfoo language annotations match what the compiler outputs.
10612 2008-02-08  Sa Liu  <saliu@de.ibm.com>
10614         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
10615         intrinsics spu_convts, spu_convtu, spu_convtf.
10617 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
10619         * doc/extend.texi (Function Attributes) <noinline>: Mention
10620         asm ("") as method to keep calls.
10622 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10624         PR other/32754
10625         * doc/options.texi (Options): Replace references to opts.sh with
10626         optc-gen.awk.
10627         * opts-common.c: Likewise.
10628         * optc-gen.awk: Likewise.
10629         
10630 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
10632         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
10634 2008-02-07  Richard Henderson  <rth@redhat.com>
10636         PR rtl-opt/33410
10637         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
10638         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
10639         funny mode.
10641 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
10643         PR tree-optimization/35085
10644         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
10645         for operand entry oe2 in addition to operand entry oe3 in order to
10646         expose more opportunities for vectorizer sum reduction.
10648 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10650         PR other/35107
10651         * Makefile.in (LIBS): Remove $(GMPLIBS).
10652         (cc1-dummy, cc1): Add $(GMPLIBS).
10654 2008-02-06  Jan Hubicka  <jh@suse.cz>
10656         PR target/23322
10657         * i386.md (moddf_integer): Do not produce partial memory stalls for
10658         targets where it hurts.
10660 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
10662         PR target/35083
10663         * optabs.c (expand_float): Do not check for decimal modes when
10664         expanding unsigned integer through signed conversion.
10666 2008-02-06  Nick Clifton  <nickc@redhat.com>
10668         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
10669         inside the clobber with a match_operand and duplicated operand
10670         number in the constraint.
10671         (ineqbranchsi): Delete redundant comment.
10673 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
10675         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
10676         builtin_define ("__USE_INIT_FINI__").
10677         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
10678         -msx multilibs.
10679         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
10681 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10683         PR documentation/30330
10684         * doc/invoke.texi (C++ Dialect Options)
10685         (Objective-C and Objective-C++ Dialect Options, Warning Options):
10686         For each warning option -Wfoo that allows -Wno-foo, ensure both
10687         -Wfoo and -Wno-foo are listed in the option index.  Fix index
10688         entry of -Wswitch-default, index -Wnormalized= including the
10689         `=', and -Wlarger-than-@var{len} including @var{len}.
10691 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
10693         * config/i386/i386.md (floatunssisf2): Use
10694         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
10695         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
10696         Macroize expander using MODEF mode iterator.
10698 2008-02-05  Diego Novillo  <dnovillo@google.com>
10700         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
10702         PR 33738
10703         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
10705 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10707         PR other/35070
10708         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
10710 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
10712         PR target/35084
10713         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
10714         to indicate if a message should be generated.
10715         (init_cumulative_args): Updated.
10716         (function_value_32): Likewise.
10718 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
10720         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
10722 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
10724         PR target/35083
10725         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
10726         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
10728 2008-02-04  Diego Novillo  <dnovillo@google.com>
10730         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
10732         PR 33738
10733         * tree-vrp.c (vrp_evaluate_conditional): With
10734         -Wtype-limits, emit a warning when comparing against a
10735         constant outside the natural range of OP0's type.
10737 2008-02-04  Richard Guenther  <rguenther@suse.de>
10739         PR middle-end/33631
10740         * expr.c (count_type_elements): Give for unions instead of
10741         guessing.
10743 2008-02-04  Richard Guenther  <rguenther@suse.de>
10745         PR middle-end/35043
10746         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
10747         to TYPE_DOMAINs base type instead of using bitsizetype here.
10749 2008-02-03  Jason Merrill  <jason@redhat.com>
10751         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
10753 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10755         PR other/29972
10756         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
10757         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
10758         (RS/6000 and PowerPC Options): Fix typos and markup.
10759         * doc/passes.texi (Tree-SSA passes): Likewise.
10761 2008-02-02  Michael Matz  <matz@suse.de>
10763         PR target/35045
10764         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
10765         from record_last_reg_set_info.
10766         (record_last_reg_set_info): Take an RTX argument, iterate over all
10767         constituent hardregs.
10768         (record_last_set_info, record_opr_changes): Change calls to
10769         new signature or to record_last_reg_set_info_regno.
10771 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
10773         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
10775 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
10777         PR rtl-optimization/34773
10778         * reg-notes.def (EQUAL): Mention significance of combination of
10779         REG_EQUAL and REG_RETVAL.
10780         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
10781         insn that has a REG_RETVAL.
10783 2008-02-01  Roger Sayle  <roger@eyesopen.com>
10785         PR bootstrap/33781
10786         * configure.ac (--enable-fixed-point): Disable unless explicitly
10787         requested on IRIX.
10788         * configure: Regenerate.
10790 2008-02-01  Richard Guenther  <rguenther@suse.de>
10792         PR other/35042
10793         * invoke.texi (-finline-limit): Remove no longer true parts
10794         of the documentation.  Note that there is no default value.
10796 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
10797             Mark Mitchell  <mark@codesourcery.com>
10798             Ben Elliston  <bje@au.ibm.com>
10800         PR c/29326
10801         * doc/extend.texi (Other Builtins): Document.
10803 2008-01-31  Tom Browder <tom.browder@gmail.com>
10805         * doc/c-tree.texi (Types): Fix grammar.
10806         (Expression trees): Ditto.
10807         * doc/passes.texi (Tree-SSA passes): Ditto.
10808         
10809         * doc/configterms.texi (Configure Terms): Fix typo.
10810         * doc/cpp.texi (Common Predefined Macros): Ditto.
10811         * doc/md.texi (Machine Constraints): Ditto.
10812         
10813         * doc/makefile.texi (Makefile): Add comma.
10815 2008-01-31  Tom Browder  <tom.browder@gmail.com>
10816             Gerald Pfeifer  <gerald@pfeifer.com>
10817         
10818         * doc/sourcebuild.texi (Front End): Remove references to CVS
10819         and CVSROOT/modules.
10820         (Texinfo Manuals): Replace reference to CVS by one to SVN.
10821         (Back End): Remove reference to CVS.
10823 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
10825         PR target/34900
10826         * config/mips/mips.c (gen_load_const_gp): New function, taking a
10827         comment from...
10828         (mips16_gp_pseudo_reg): ...here.
10829         * config/mips/mips.md (load_const_gp): Replace with...
10830         (load_const_gp_<mode>): ...this :P-based insn.
10832 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10834         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
10835         options. Minor fixes.
10836         (-std): Move reference to standards closer to where language
10837         standards are first mentioned.
10838         
10839 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
10841         PR rtl-optimization/34995
10842         * reload.c (alternative_allows_const_pool_ref): Take an rtx
10843         parameter and return a bool.  If the rtx parameter is nonnull,
10844         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
10845         (find_reloads): Update call accordingly.  Pass the new operand
10846         if it needed no address reloads, otherwise pass null.
10848 2008-01-30  Richard Henderson  <rth@redhat.com>
10850         PR c/34993
10851         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
10852         for unbounded arrays.
10854 2008-01-30  Silvius Rus  <rus@google.com>
10856         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
10858 2008-01-30  Jan Hubicka  <jh@suse.cz>
10860         PR target/34982
10861         * i386.c (init_cumulative_args): Use real function declaration when
10862         calling locally.
10864 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
10866         PR rtl-optimization/34998
10867         * global.c (build_insn_chain): Treat non-subreg_lowpart
10868         SUBREGs of pseudos as clobbering all the words covered by the
10869         SUBREG, not just all the bytes.
10870         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
10871         original df_ref rather than an extract parameter.
10872         (global_conflicts): Update call accordingly.
10874 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
10876         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
10877         the overflow check to make it easier to read.
10878         (__fixtfdi): Change the type of the ll member in union
10879         long_double to UDItype_x.
10881 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
10883         PR middle-end/34969
10884         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
10885         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
10886         * tree-inline.c (fold_marked_statements): Call
10887         cgraph_update_edges_for_call_stmt if folding a call statement.
10888         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
10889         debug_generic_stmt calls, reset it back afterwards.
10891         PR c/35017
10892         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
10893         static decls.
10894         * c-typeck.c (build_external_ref): Don't pedwarn about
10895         static vars in current function's scope.
10897 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
10899         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
10901 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
10903         PR c/35002
10904         * ipa-struct-reorg.c: Fix spelling.
10905         * params.def: Ditto.
10907 2008-01-29  Richard Guenther  <rguenther@suse.de>
10909         PR middle-end/35006
10910         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
10911         field.
10912         * tree-inline.c (remap_type): Increment remapping_type_depth
10913         around remapping types.
10914         (copy_body_r): Only add referenced variables if they are referenced
10915         from code, not types.
10917 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
10919         PR c++/34055
10920         PR c++/34103
10921         PR c++/34219
10922         PR c++/34606
10923         PR c++/34753
10924         PR c++/34754
10925         PR c++/34755
10926         PR c++/34919
10927         PR c++/34961
10928         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
10929         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
10931 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
10933         PR target/34412
10934         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
10935         pointer for tiny stack.
10937 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
10939         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
10941 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
10943         * config/vx-common.h: Fix typo in comment.
10945 2008-01-28  Ian Lance Taylor  <iant@google.com>
10947         PR c++/34862
10948         PR c++/33407
10949         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
10950         coalesce pointers if they have different DECL_NO_TBAA_P values.
10951         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
10952         between variables with different DECL_NO_TBAA_P values.
10954 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
10956         PR 31535
10957         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
10958         are not legitimate small data references on SPE targets.
10960 2008-01-28  David Daney  <ddaney@avtrex.com>
10962         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
10964 2008-01-28  David Daney  <ddaney@avtrex.com>
10966         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
10968 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
10970         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
10971         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
10972         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
10973         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
10974         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
10975         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
10976         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
10977         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
10979 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
10981         * basic-block.h (condjump_equiv_p): Fix comment.
10983 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
10985         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
10986         print_generic_stmt_indented): Fix comment.
10988 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
10990         * configure.ac (__stack_chk_fail): Add detecion for availability
10991         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
10992         * configure: Regenerate.
10994 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
10996         PR middle-end/34688
10997         * final.c (output_addr_const): Handle TRUNCATE.
10999 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
11001         PR target/34711
11002         * tree-ssa-loop-ivopts.c (comp_cost): New type.
11003         (zero_cost, infinite_cost): New constants.
11004         (struct cost_pair): Change type of cost to comp_cost.
11005         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
11006         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
11007         New functions.
11008         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
11009         split_address_cost, ptr_difference_cost, difference_cost,
11010         get_computation_cost_at, get_computation_cost,
11011         determine_use_iv_cost_generic, determine_use_iv_cost_address,
11012         determine_use_iv_cost_condition, determine_use_iv_costs,
11013         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
11014         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
11015         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
11016         Change type of cost to comp_cost.
11017         (determine_iv_cost): Increase cost of non-original ivs, instead
11018         of decreasing the cost of original ones.
11019         (get_address_cost): Indicate the complexity of the addressing mode 
11020         in comp_cost.
11021         (try_add_cand_for): Prefer using ivs not specific to some object.
11022         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
11024 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
11025             Janis Johnson  <janis187@us.ibm.com>
11027         PR target/34814
11028         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
11029         (TARGET_INSTANTIATE_DECLS): Likewise.
11030         * target.h (expand_to_rtl_hook): New target hook.
11031         (instantiate_decls): Likewise.
11032         * function.c (instantiate_decl): Make non-static.  Rename to...
11033         (instantiate_decl_rtl): ... this.
11034         (instantiate_expr): Use instantiate_decl_rtl.
11035         (instantiate_decls_1): Likewise.
11036         (instantiate_decls): Likewise.
11037         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
11038         * function.h (instantiate_decl_rtl): Add prototype.
11039         * cfgexpand.c (target.h): New include.
11040         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
11041         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
11042         (TARGET_INSTANTIATE_DECLS): Likewise.
11043         (TARGET_INITIALIZER): New target hooks added.
11044         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
11045         New prototype.
11046         * config/rs6000/rs6000.c (tree-flow.h): New include.
11047         (machine_function): Add sdmode_stack_slot field.
11048         (rs6000_alloc_sdmode_stack_slot): New function.
11049         (rs6000_instantiate_decls): Likewise.
11050         (rs6000_secondary_memory_needed_rtx): Likewise.
11051         (rs6000_check_sdmode): Likewise.
11052         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
11053         (TARGET_INSTANTIATE_DECLS): Likewise.
11054         (rs6000_hard_regno_mode_ok): Allow SDmode.
11055         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
11056         (rs6000_emit_move): Handle SDmode.
11057         (function_arg_advance): Likewise.
11058         (function_arg): Likewise.
11059         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
11060         SDmode var args for 32-bit compiles.
11061         (rs6000_secondary_reload_class): Handle SDmode.
11062         (rs6000_output_function_epilogue): Likewise.
11063         (rs6000_function_value): Simplify if statement.
11064         (rs6000_libcall_value): Likewise.
11065         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
11066         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
11067         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
11068         (movsd_hardfloat): New define_insn.
11069         (movsd_softfloat): Likewise.
11070         (movsd_store): Likewise.
11071         (movsd_load): Likewise.
11072         (extendsddd2): Likewise.
11073         (extendsdtd2): Likewise.
11074         (truncddsd2): Likewise.
11075         (movdd_hardfloat64): Fixup comment.
11076         (UNSPEC_MOVSD_LOAD): New constant.
11077         (UNSPEC_MOVSD_STORE): Likewise.
11079 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
11081         PR c++/34965
11082         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
11083         TRUTH_XOR_EXPR.
11084         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
11085         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
11086         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
11087         and TRUTH_XOR_EXPR.
11089 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
11091         PR target/34794
11092         * config.gcc: Separate AIX 5.3 from AIX 6.1.
11093         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11094         __LONGDOUBLE128 too.
11095         * config/rs6000/aix61.h: New file.
11097 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
11099         PR rtl-optimization/34959
11100         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
11101         popcount and parity rtxes the same mode as their operand.
11102         Truncate or extend the result to the return value's mode
11103         if necessary.
11105 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
11107         PR target/34981
11108         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
11109         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
11110         to GOT_VERSION_REGNUM.
11111         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
11112         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
11113         * config/mips/mips.c (mips_emit_call_insn): New function.
11114         (mips_call_tls_get_addr): Call mips_expand_call directly.
11115         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
11116         emit_call_insn.
11117         (mips16_build_call_stub): Likewise.  Return the call insn or null.
11118         (mips_expand_call): Update the call to mips16_build_call_stub
11119         accordingly and a remove redundant condition.  Assert that MIPS16
11120         stubs do not use lazy binding.  Use mips_emit_call_insn and return
11121         the call insn.
11122         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
11123         TARGET_USE_GOT.
11124         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
11125         (mips_avoid_hazard): Remove hazard_set handling.
11126         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
11127         (UNSPEC_RESTORE_GP): ...this.
11128         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
11129         (FAKE_CALL_REGNO): Rename to...
11130         (GOT_VERSION_REGNUM): ...this.
11131         (type): Add "ghost" value.  Add an associated insn reservation.
11132         (hazard_set): Remove.
11133         (exception_receiver): Rename to...
11134         (restore_gp): ...this and update the unspec identifier accordingly.
11135         (exception_receiver, nonlocal_got_receiver): New expanders.
11136         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
11137         FAKE_CALL_REGNO.  Remove hazard_set attribute.
11138         (set_got_version, update_got_version): New patterns.
11140 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
11142         PR target/34970
11143         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
11145 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
11147         PR other/31955
11148         * doc/install.texi2html: Generate gcc-vers.texi.
11150 2008-01-25  DJ Delorie  <dj@redhat.com>
11152         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11154 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
11156         * config/c4x: Remove directory.
11157         * config.gcc (crx-*, mt-*): Mark obsolete.
11158         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
11159         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
11160         sh-*-rtemscoff*): Remove cases.
11161         * defaults.h (C4X_FLOAT_FORMAT): Remove.
11162         * real.c (encode_c4x_single, decode_c4x_single,
11163         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
11164         c4x_extended_format): Remove.
11165         * real.h (c4x_single_format, c4x_extended_format): Remove.
11166         * doc/extend.texi (interrupt, naked): Remove mention of attributes
11167         on C4x.
11168         (Pragmas): Remove comment about c4x pragmas.
11169         * doc/install.texi (c4x): Remove target-specific instructions.
11170         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
11171         * doc/md.texi (Machine Constraints): Remove C4x documentation.
11172         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
11173         refer to C4x source files as examples.
11174         (C4X_FLOAT_FORMAT): Remove documentation.
11176 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
11178         * config/bfin/bfin.c (override_options): Reorder tests so that
11179         flag_pic gets enabled for -msep-data.
11181 2008-01-25  Richard Guenther  <rguenther@suse.de>
11183         PR middle-end/32244
11184         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
11185         to its bitfield precision if required.
11187 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
11189         PR middle-end/33880
11190         * tree-nested.c (walk_omp_for): New function.
11191         (convert_nonlocal_reference, convert_local_reference): Call
11192         walk_omp_for on OMP_FOR.
11193         (convert_call_expr): Call walk_body on OMP_FOR's
11194         OMP_FOR_PRE_INIT_BODY.
11196 2008-01-25  Richard Guenther  <rguenther@suse.de>
11198         PR tree-optimization/34966
11199         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
11200         default defs and PHI_NODEs we have to insert after the
11201         defining statement.
11203 2008-01-24  Nick Clifton  <nickc@redhat.com>
11205         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
11206         Provide a default definition.
11207         (LIBGCC2_UNITS_PER_WORD): Likewise.
11209         * config/stormy16/stormy16.c: Include df.h for the prototype
11210         for df_regs_ever_live_p.
11211         (xstormy16_expand_builtin_va_start): Convert the stack offset
11212         into a component_ref and then use POINTER_PLUS_EXPR to add it
11213         to the incoming_virtual_args_rtx.
11214         (xstormy16_gimplify_va_arg_expr): Rename to
11215         xstormy16_gimplify_va_arg_expr.
11216         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
11217         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
11218         xstormy16_gimplify_va_arg_expr.
11219         Fix up some formatting issues.
11221         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
11222         Move to predicates.md.
11223         (xs_hi_general_operand): Likewise.
11224         (xs_hi_nonmemory_operand): Likewise.
11225         * config/stormy16/predicates.md:
11226         (xstormy16_carry_plus_operand): New predicate.
11227         (xs_hi_general_operand): New predicate.
11228         (xs_hi_nonmemory_operand): New predicate.
11229         * config/stormy16/stormy16-protos.h:
11230         (xstormy16_carry_plus_operand): Delete prototype.
11231         (xs_hi_general_operand): Likewise.
11232         (xs_hi_nonmemory_operand): Likewise.
11234         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
11235         modifiers as they are no longer needed and they can trigger
11236         reload spill failures.
11238         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
11239         with a match_operand in order to help reload.
11241         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
11242         constraint with 'e' for the 8th alternative as this version of
11243         the mov.w instruction only accepts the lower 8 registers.
11245 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
11247         PR target/34856
11248         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
11249         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
11250         vector elements.
11252 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
11254         PR middle-end/33333
11255         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
11257 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
11259         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
11260         New functions.
11261         (remove_structure): Update allocations list before removing structure.
11262         
11263 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
11265         * ipa-struct-reorg.c (is_safe_cond_expr, 
11266         create_new_stmts_for_cond_expr): Use integer_zerop function,
11267         that recognize not only zero-pointer, but zero-integer too.
11269 2008-01-25  Ben Elliston  <bje@au.ibm.com>
11271         PR other/22232
11272         * fixproto: Escape "." in sed expression that strips leading "./".
11274 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
11276         PR driver/34904
11277         * gcc.c (SWITCH_OK): Removed.
11278         (SWITCH_LIVE): Changed to bit.
11279         (SWITCH_FALSE): Likewise.
11280         (SWITCH_IGNORE): Likewise.
11281         (switchstr): Change live_cond to unsigned int.
11282         (process_command): Replace SWITCH_OK with 0.
11283         (do_self_spec): Likewise.
11284         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
11285         (give_switch): Likewise.
11286         (used_arg): Likewise.
11287         (do_spec_1): Set the SWITCH_IGNORE bit.
11288         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
11289         bits.  Set the SWITCH_LIVE bit.
11291 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
11293         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
11295 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
11297         PR tree-optimization/34472
11298         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
11299         parameter to a "bool *" and set *DATA to false if there is
11300         an unsafe access.  Do not delete the structure here.
11301         (check_cond_exprs): Delete it here instead.
11302         (check_cond_exprs, exclude_cold_structs): Do not increase
11303         I when removing a structure.
11305 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
11307         PR target/34856
11308         * config/i386/i386.c (ix86_expand_vector_init): Consider only
11309         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
11311 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
11313         PR middle-end/34934
11314         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
11315         a fixed vector for stack.
11317 2008-01-24  Ben Elliston  <bje@au.ibm.com>
11319         PR c++/25701
11320         * doc/gcc.texi (Software development): Add a direntry for g++.
11321         
11322 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
11324         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
11325         stale and straggling -fforce-addr comments above.
11327         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
11328         define.
11329         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
11330         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
11332 2008-01-23  Michael Matz  <matz@suse.de>
11334         PR debug/34895
11335         * dwarf2out.c (force_type_die): Use modified_type_die instead of
11336         gen_type_die.
11338 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
11340         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
11341         malloc result type.
11343 2008-01-23 Anatoly Sokolov <aesok@post.ru>
11345         * config/avr/avr.c (avr_current_arch): New variable.
11346         (avr_arch_types): Add 'avr31' and 'avr51' entries.
11347         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
11348         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
11349         (avr_override_options): Init 'avr_current_arch'. 
11350         (base_arch_s): Move from here...
11351         * config/avr/avr.h (base_arch_s): ... here. Add new members 
11352         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
11353         'mega' to 'have_jmp_call'.
11354         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
11355         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
11356         macros.
11357         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
11358         architectures.
11359         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
11360         MULTILIB_MATCHES): (Ditto.).
11362 2008-01-23  Richard Guenther  <rguenther@suse.de>
11364         PR middle-end/31529
11365         * cgraphunit.c (cgraph_reset_node): Always mark the node
11366         not reachable if it is not queued already.
11368 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
11370         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
11371         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
11372         (cputype_selected): New static variable.
11373         (bfin_handle_option): Set it if -mcpu is used.
11374         (override_option): Select default set of workarounds if no cpu type
11375         selected on the command line.
11376         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
11378         From  Michael Frysinger  <michael.frysinger@analog.com>
11379         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
11380         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
11382         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
11383         for bf547, bf523, bf524, and bf526.
11384         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
11385         bf526.
11386         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11387         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
11388         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
11389         __ADSPBF547__ and __ADSPBF54x__ for bf547.
11390         * doc/invoke.texi (Blackfin Options): Document that
11391         -mcpu now accept bf547, bf523, bf524, and bf526.
11393 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
11395         PR rtl-optimization/34628
11396         * combine.c (try_combine): Stop and undo after the first combination
11397         if an autoincrement side-effect on the first insn has effectively
11398         been lost.
11400 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
11402         PR target/34529
11403         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
11404         Offset addresses are not valid for Altivec or paired float modes.
11406 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
11408         PR c++/34607
11409         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
11410         if DECL_INITIAL (decl) is error_mark_node.
11412         PR c++/34914
11413         * c-common.c (handle_vector_size_attribute): Only allow
11414         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
11415         the same way as pointer, array etc. types.
11416         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
11418         PR c++/34917
11419         * tree.c (build_type_attribute_qual_variant): Call
11420         build_qualified_type if attributes are equal, but quals are not.
11422 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11424         PR 32102
11425         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
11426         * flags.h (warn_strict_aliasing): Remove.
11427         (warn_strict_overflow): Remove.
11428         * opts.c (warn_strict_aliasing): Remove.
11429         (warn_strict_overflow): Remove.
11430         * c-opts.c (c_common_handle_option): -Wall only sets
11431         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
11432         (c_common_post_options): Give default values to -Wstrict-aliasing
11433         and -Wstrict-overflow if they are uninitialized.
11434         * common.opt (Wstrict-aliasing): Specify Var and Init.
11435         (Wstrict-overflow): Likewise.
11437 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
11439         PR rtl-optimization/26854
11440         PR rtl-optimization/34400
11441         PR rtl-optimization/34884
11442         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
11443         DF_RD->gen.
11444         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
11445         (df_rd_bb_info.expanded_lr_out): Deleted
11446         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
11447         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
11448         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
11449         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
11450         Removed code to allocate, initialize or free expanded_lr_out.
11451         (df_rd_bb_local_compute_process_def): Restructured to make more
11452         understandable.
11453         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
11454         sets if the sets are being trimmed.
11456 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
11458         PR bootstrap/32287
11459         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
11460         (as_vers): Likewise.
11461         * configure: Regenerated.
11463 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11465         PR middle-end/33092
11466         * tree-pass.h (pass_build_alias): New pass.
11467         * tree-ssa-alias.c (gate_build_alias): New.
11468         (pass_build_alias): New.
11469         * passes.c (init_optimization_passes): Add pass_build_alias after
11470         pass_create_structure_vars.
11472 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
11474         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
11475         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
11476         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
11477         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
11478         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
11479         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
11480         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
11481         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
11482         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
11483         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
11484         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
11485         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
11486         * config/s390/s390.md (FP_ALL): New mode iterator.
11487         (_d): New mode attribute.
11488         ("*signbit<mode>2>"): Changed mode of first operand.
11489         ("isinf<mode>2"): Changed mode of first operand.
11490         ("*TDC_insn"): Adaptation for DFP modes.
11492 2008-01-22  Ben Elliston  <bje@au.ibm.com>
11494         * tree.c (check_qualified_type): Improve function description.
11496 2008-01-21  Jason Merrill  <jason@redhat.com>
11498         PR c++/34196
11499         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
11500         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
11501         if it is set.
11503 2008-01-21  DJ Delorie  <dj@redhat.com>
11505         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
11506         return zero.
11508 2008-01-21  Richard Guenther  <rguenther@suse.de>
11510         PR middle-end/34856
11511         * tree-cfg.c (verify_expr): Allow all invariant expressions
11512         instead of just constant class ones as reference argument.
11513         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
11514         like any other constant.
11515         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11517 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
11519         * regmove.c (fixup_match_1): Update call crossed frequencies.
11521 2008-01-21  Richard Guenther  <rguenther@suse.de>
11523         PR c/34885
11524         * tree-inline.c (setup_one_parameter): Deal with mismatched
11525         types using a VIEW_CONVERT_EXPR.
11527 2008-01-21  Alon Dayan  <alond@il.ibm.com>
11528             Olga Golovanevsky  <olga@il.ibm.com>
11529         
11530         PR tree-optimization/34701
11531         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
11532         when the structure size is not a power of 2.
11534 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
11536         * doc/install.texi: Add doc for --enable-checking=df.
11537         
11538 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
11540         PR rtl-optimization/34808
11541         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
11543 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
11545         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
11546         input.
11548 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
11550         PR rtl-optimization/26854
11551         PR rtl-optimization/34400
11552         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
11553         DF_RD->gen.
11554         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
11555         (df_rd_bb_info.expanded_lr_out): New.
11556         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
11557         * loop_iv.c (iv_analysis_loop_init): Ditto.
11558         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
11559         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
11560         Added code to allocate, initialize or free expanded_lr_out.
11561         (df_rd_bb_local_compute_process_def): Restructured to make
11562         more understandable.
11563         (df_rd_confluence_n): Add code to do nothing with fake edges and
11564         code to no apply invalidate_by_call sets if the sets are being trimmed.
11565         (df_lr_local_finalize): Renamed to df_lr_finalize.
11566         (df_live_local_finalize): Renamed to df_live_finalize.
11568 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
11570         PR target/34831
11571         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
11572         deciding whether to use reciprocal instructions.
11574 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
11576         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
11577         dwarf2out_note_section_used if cold_text_section is NULL.
11579 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
11581         PR gcov-profile/34610
11582         * tree-cfg.c (make_edges): Mark both outgoing edges from
11583         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
11584         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
11585         from OMP_FOR and OMP_CONTINUE outgoing edges.
11587         * tree-profile.c (tree_profiling): Return early if
11588         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
11589         at the end.
11590         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
11591         from cfun to child_cfun.
11592         * function.h (struct function): Add after_tree_profile bit.
11594 2008-01-19 Anatoly Sokolov <aesok@post.ru>
11596         * config/avr/avr.S (_exit): Disable interrupt.
11598 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
11599             Steven Bosscher  <stevenb.gcc@gmail.com>
11601         PR rtl-optimization/26854
11602         PR rtl-optimization/34400
11603         * df-problems.c (df_live_scratch): New scratch bitmap.
11604         (df_live_alloc): Allocate df_live_scratch when doing df_live.
11605         (df_live_reset): Clear the proper bitmaps.
11606         (df_live_bb_local_compute): Only process the artificial defs once
11607         since the order is not important.
11608         (df_live_init): Init the df_live sets only with the variables
11609         found live by df_lr.
11610         (df_live_transfer_function): Use the df_lr sets to prune the
11611         df_live sets as they are being computed.  
11612         (df_live_free): Free df_live_scratch.
11614 2008-01-18  Ian Lance Taylor  <iant@google.com>
11616         * common.opt: Add fmerge-debug-strings.
11617         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
11618         flag_merge_debug_strings rather than flag_merge_constants.
11619         * doc/invoke.texi (Option Summary): Mention
11620         -fmerge-debug-strings.
11621         (Debugging Options): Document -fmerge-debug-strings.
11623 2008-01-18  Ian Lance Taylor  <iant@google.com>
11625         PR c++/33407
11626         * tree.h (DECL_IS_OPERATOR_NEW): Define.
11627         (struct tree_function_decl): Add new field operator_new_flag.
11628         * tree-inline.c (expand_call_inline): When inlining a call to
11629         operator new, force the return value to go into a variable, and
11630         set DECL_NO_TBAA_P on that variable.
11631         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
11633 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
11635         PR debug/34484
11636         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
11637         DWARF2_DEBUGGING_INFO.
11638         (dwarf2out_note_section_used): Ditto.  Add prototype.
11639         (have_multiple_function_sections, text_section_used,
11640         cold_text_section_used, *cold_text_sections): Move declarations
11641         before their uses.
11643 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
11645         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
11646         field and add signal_ra.
11647         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
11648         assignments to frame state pc.  Move end of stack check after
11649         MD_FALLBACK_FRAME_STATE_FOR.
11650         (uw_update_context_1): Use frame state signal_regs if set, instead
11651         of checking signal_frame flag.
11652         (uw_update_context): Use frame state signal_ra if set.
11653         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
11654         * config/xtensa/linux-unwind.h: New file.
11656 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
11658         * modulo-sched.c (get_sched_window): Fix comment typo.
11660 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
11662         PR tree-optimization/34648
11663         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
11665 2008-01-17  Anatoly Sokolov <aesok@post.ru>
11667         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
11668         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
11670 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
11672         PR rtl-optimization/34400
11673         * df-core.c (df_worklist_dataflow_overeager,
11674         df_worklist_dataflow_doublequeue): New functions.
11675         (df_worklist_dataflow): Two different worklist solvers.
11676         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
11677         New param.
11679 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
11681         PR testsuite/34821
11682         * doc/invoke.texi: Document the dependence on pthread for fopenmp
11683         and ftree-parallelize-loops.
11685 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
11687         PR rtl-optimization/34826
11688         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
11690 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
11692         * global.c (find_reg): Mark the eh regs as used if necessary.
11693         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
11694         * ra.h (struct allocno): no_eh_reg field added.  Changed
11695         no_stack_reg type to bitfield.
11697 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
11699         * tree.c (substitute_in_expr): Add missing 'break'.
11701 2008-01-17  Richard Guenther  <rguenther@suse.de>
11703         PR tree-optimization/34825
11704         * tree-ssa-math-opts.c (is_division_by): Do not recognize
11705         x / x as division to handle.
11707 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11709         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
11710         "-pthread" is specified.
11711         * pa-hpux11.h (LIB_SPEC): Likewise.
11713 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
11714             Peter Bergner  <bergner@vnet.ibm.com>
11716         PR rtl-optimization/33796
11717         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
11719 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11721         PR libgfortran/34699
11722         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
11723         static links.
11724         * pa-hpux10.h (LINK_SPEC): Likewise.
11725         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
11727 2008-01-16  Richard Guenther  <rguenther@suse.de>
11729         PR middle-end/32628
11730         * fold-const.c (fold_convert_const_int_from_int): Do not
11731         set overflow if that occured only because of a sign extension
11732         change when converting from/to a sizetype with the same
11733         precision and signedness.
11735 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
11737         PR debug/34249
11738         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
11739         location address to the correct place.  Update copyright year.
11741 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
11743         * lambda-code.c (lambda_transform_legal_p): Handle the case of
11744         no dependences in the dependence_relations vector.
11746 2008-01-16  Jan Hubicka  <jh@suse.cz>
11748         PR rtl-optimization/31396
11749         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
11750         * cfg.c (dump_reg_info): Print it.
11751         * regs.h (struct reg_info_t): add freq_calls_crossed.
11752         (REG_FREQ_CALLS_CROSSED): New macro.
11753         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
11754         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
11755         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
11756         regmove_optimize): Update call crossed frequencies.
11757         * local-alloc.c (struct qty): Add freq_calls_crossed.
11758         (alloc_qty): Copute freq_calls_crossed.
11759         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
11760         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
11761         * ra.h (struct allocno): Add freq_calls_crossed.
11763 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
11765         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
11766         libgomp when compiling with ftree-parallelize-loops.
11767         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
11769 2008-01-16  Richard Guenther  <rguenther@suse.de>
11771         PR tree-optimization/34769
11772         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
11773         * tree.c (int_cst_value): Instead make this function more
11774         permissive in what it accepts as valid input.  Document this
11775         function always sign-extends the value.
11777 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
11778             Richard Guenther  <rguenther@suse.de>
11780         PR c/34668
11781         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
11782         (gimple_fold_indirect_ref_rhs): ... this.
11783         (gimple_fold_indirect_ref): New function with foldings
11784         that preserve lvalueness.
11785         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
11786         * tree-flow.h (gimple_fold_indirect_ref): Declare.
11787         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
11788         to fold an INDIRECT_REF, fall back to the old use of
11789         fold_indirect_ref_1.
11791 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
11793         * tree-data-ref.c (subscript_dependence_tester_1): Call 
11794         free_conflict_function.
11795         (compute_self_dependence): Same.
11797 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
11799         PR debug/34249
11800         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
11801         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
11802         function global.
11803         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
11804         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
11805         for DWARF2_UNWIND_INFO targets.
11807 2008-01-16  Richard Guenther  <rguenther@suse.de>
11809         PR c/34768
11810         * c-typeck.c (common_pointer_type): Do not merge inconsistent
11811         type qualifiers for function types.
11813 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
11815         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
11816         loop_iterator li from previous commit.
11818 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
11820         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
11822 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
11824         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
11825         (parallelize_loops): Don't parallelize irreducible components.
11827 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11829         PR c++/24924
11830         * c-opts (c_common_post_options): Do not enable CPP
11831         flag_pedantic_errors by default.
11832         
11833 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
11835         PR rtl-optimization/31944
11836         * cse.c (remove_pseudo_from_table): New function.
11837         (merge_equiv_classes): Use above function to remove pseudo-registers.
11838         (invalidate): Likewise.
11840 2008-01-13  Richard Guenther  <rguenther@suse.de>
11842         PR middle-end/34601
11843         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
11844         instead of TYPE_MODE to deal with calls from expand_one_error_var.
11846 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
11848         * gcse.c (cprop_jump): Call validate_unshare_change instead of
11849         validate_change to unshare the source of the PC set.
11851 2008-01-12  Jan Hubicka  <jh@suse.cz>
11853         PR middle-end/32135
11854         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
11855         references above array bounds.  This might trigger bounds checks for
11856         pointers to arrays.
11858 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
11860         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
11861         new_replaceable_dependencies.
11863 2008-01-12  Doug Kwan  <dougkwan@google.com>
11865         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
11866         instead of OPT_Wreturn_type in warning due to ignored return type
11867         qualifiers.
11868         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
11869         options included in -Wextra.
11870         * c.opt: New option -Wignored_qualifiers.
11871         * doc/invoke.texi (Warning Options, -Wextra): Add new option
11872         -Wignore_qualifiers.
11873         (-Wignored-qualifiers): Document.
11874         (-Wreturn-type): Remove description of functionality now handled
11875         by -Wignored-qualifiers.
11877 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
11879         PR ada/33788
11880         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
11881         NOP_EXPR if it is between integral types with the same precision.
11883 2008-01-12  Jan Hubicka  <jh@suse.cz>
11885         PR other/28023
11886         * invoke.texi (max-inline-recursive-depth): Fix default value.
11888 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
11890         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
11891         correct type.
11893 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
11894         
11895         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
11896         
11897 2008-01-11  James E. Wilson  <wilson@specifix.com>
11899         PR target/26015
11900         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
11902 2008-01-11  Anatoly Sokolov <aesok@post.ru>
11904         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
11905         save/restore frame pointer register and don't use 'call-prologues' 
11906         optimization in function with "OS_task" attribute.
11908 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
11910         PR middle-end/31309
11911         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
11912         when copying to memory.
11914 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
11916         PR rtl-optimization/30905
11917         * cfgcleanup.c: Include dce.h
11918         (crossjumps_occured): New global variable.
11919         (try_crossjump_bb): Exit loop after finding a fallthru edge.
11920         If something changed, set crossjumps_occured to true.
11921         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
11922         Don't add/remove fake edges to exit here...
11923         (cleanup_cfg): ...but do it here, when crossjumping.
11924         Run a fast DCE when successful crossjumps occured in the latest
11925         iteration of try_optimize_cfg.
11927 2008-01-11  Richard Guenther  <rguenther@suse.de>
11929         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
11930         (struct vn_unary_op_s): Likewise.
11931         (vn_reference_insert): Free old reference on hash collision.
11933 2008-01-10  Raksit Ashok  <raksit@google.com>
11935         PR rtl-optimization/27971
11936         * combine.c (find_split_point): Split PLUS expressions which are
11937         inside a MEM rtx, and whose first operand is complex.
11939 2008-01-10  DJ Delorie  <dj@redhat.com>
11941         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
11942         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
11943         (m32c_hard_regno_ok): Call the underlying function.
11945 2008-01-10  Richard Guenther  <rguenther@suse.de>
11947         PR middle-end/34683
11948         * tree-cfg.c (tree_merge_blocks): Do not go through the
11949         full-blown folding and stmt updating path if we just deal
11950         with virtual operands.
11951         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
11952         test for abnormal SSA_NAMEs.
11954 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
11956         PR middle-end/34641
11957         * reload.c (push_reload): Add assertions.  All constants from
11958         reg_equiv_constant should have been used for replacing the respective
11959         pseudo earlier.
11960         (find_reloads_address): Invoke find_reloads_address_part for
11961         constant taken from the reg_equiv_constant array.
11963 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
11965         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
11966         field (valnum) the first in the struct.  Replace bools with
11967         unit bit fields.
11969 2008-01-10  Richard Guenther  <rguenther@suse.de>
11971         PR tree-optimization/34651
11972         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
11973         types and ordering for masking and converting.
11975 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
11977         PR tree-optimization/34017
11978         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
11979         also for PHI_NODE expressions.
11981 2008-01-09  Jan Hubicka  <jh@suse.cz>
11983         PR tree-optimization/34708
11984         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
11985         based on number of case labels.
11986         (init_inline_once): Remove switch_cost.
11987         * tree-inline.h (eni_weights_d): Remove switch_cost.
11989 2008-01-09  Richard Guenther  <rguenther@suse.de>
11990         Andrew Pinski  <andrew_pinski@playstation.sony.com>
11992         PR middle-end/30132
11993         * gimplify.c (gimplify_cond_expr): Do not create an addressable
11994         temporary if an rvalue is ok or an lvalue is not required.
11996 2008-01-09  Richard Guenther  <rguenther@suse.de>
11998         PR middle-end/34458
11999         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
12000         adjust return type.
12002 2008-01-09  Richard Guenther  <rguenther@suse.de>
12004         PR middle-end/34679
12005         * tree.c (host_integerp): Check for sizetype only if the
12006         type is an integer type.
12008 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
12010         PR debug/26364
12011         * opts.c (decode_options): Disable inlining of functions called
12012         once if not in unit-at-a-time mode.
12014 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
12016         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
12018 2008-01-08  Richard Guenther  <rguenther@suse.de>
12020         PR middle-end/31863
12021         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
12022         out early if the result will be unused.
12024 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
12026         PR target/34709
12027         Revert:
12029         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
12030         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
12031         for TARGET_RECIP.       
12032         
12033 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
12034         
12035         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
12036         for vectorization tuned.
12037         
12038 2008-01-08  Richard Guenther  <rguenther@suse.de>
12040         PR tree-optimization/34683
12041         * tree-ssa-operands.c (operand_build_cmp): Export.
12042         * tree-ssa-operands.h (operand_build_cmp): Declare.
12043         * tree-vn.c (vuses_compare): Remove.
12044         (sort_vuses): Use operand_build_cmp.
12045         (sort_vuses_heap): Likewise.
12046         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
12047         to re-use old VEC if available.  Do not sort already sorted VUSEs.
12048         (vdefs_to_vec): Do not sort already sorted VDEFs.
12050 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
12052         PR middle-end/34694
12053         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
12055 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
12057         PR target/34702
12058         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
12059         limitations of reciprocal sequences on x86 targets.
12061 2008-01-08  Richard Guenther  <rguenther@suse.de>
12063         PR tree-optimization/34683
12064         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
12066 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
12068         PR target/34622
12069         * config/darwin.c (darwin_mergeable_string_section): Don't use
12070         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
12072 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
12074         PR target/34682
12075         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
12076         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
12077         predicates of op0 and op1 to register_operand.
12078         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
12079         expander using X87MODEF mode iterator.  Change predicates of
12080         op0 and op1 to register_operand.
12081         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
12082         corresponding patterns and macroize using MODEF macro.  Change
12083         predicates of op0 and op1 to register_operand and remove
12084         "m" constraint. Disparage "r" alternative with "!".
12085         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
12086         macroize using X87MODEF macro.  Change predicates of op0 and op1
12087         to register_operand and remove "m" constraint.  Disparage "r"
12088         alternative with "!".
12089         (absneg splitter with memory operands): Remove.
12090         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
12091         patterns and macroize using X87MODEF mode iterator.
12092         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
12093         Change predicate of op1 to register_operand.
12094         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
12095         for memory operands.
12097 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
12099         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
12101 2008-01-07  Richard Guenther  <rguenther@suse.de>
12103         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
12104         fields.
12106 2008-01-07  Richard Guenther  <rguenther@suse.de>
12108         PR tree-optimization/34683
12109         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
12110         VOPs of the needed size to save memory.  Use VEC_quick_push
12111         to save compile-time.
12112         (vdefs_to_vec): Likewise.
12114 2008-01-07  Sa Liu  <saliu@de.ibm.com>
12116         * config/spu/spu.md (divdf3): Genetate inline code for double
12117         division.  The implementation doesn't handle INF or NAN, therefore it
12118         only applies when -ffinite-math-only is given.
12120 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
12122         PR libstdc++/34680
12123         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
12124         * doc/cpp.texi ([Common Predefined Macros]): Document.
12126 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
12128         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
12129         order to use commutative addition instead of subtraction.
12131 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12132             Mircea Namolaru  <namolaru@il.ibm.com>
12133             Vladimir Yanovsky  <yanov@il.ibm.com>
12134             Revital Eres  <eres@il.ibm.com>
12136         PR tree-optimization/34263
12137         * tree-outof-ssa.c (process_single_block_loop_latch,
12138         contains_tree_r): New functions.
12139         (analyze_edges_for_bb): Call process_single_block_loop_latch
12140         function to empty single-basic-block latch block if possible.
12142 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
12144         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
12145         for TARGET_RECIP.
12146         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
12148 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
12150         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
12152 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
12154         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
12156 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
12158         PR tree-optimization/34618
12159         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
12160         flag from T.
12162 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
12164         PR target/34673
12165         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
12166         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
12167         Update copyright year.
12169         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
12170         Update copyright year.
12171         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
12172         using NR fixup.
12174 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
12176         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
12177         edge does not point to current bb before changing need_assert.
12179 2008-01-04  Richard Guenther  <rguenther@suse.de>
12181         PR middle-end/34029
12182         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
12183         for verifying purposes if they are is_gimple_min_invariant.
12185 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
12187         PR tree-optimization/34448
12188         PR tree-optimization/34465
12189         * gimplify.c (gimplify_init_constructor): Add new parameter
12190         notify_temp_creation.  Use it.
12191         (gimplify_modify_expr_rhs): Take volatiles into account when
12192         optimizing constructors.
12193         Do not optimize constructors if gimplify_init_constructor will dump to
12194         memory.
12195         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
12196         * gcc.c-torture/compile/pr34448.c: New.
12198 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
12200         PR gcov-profile/34609
12201         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
12202         return_slot if result is TREE_ADDRESSABLE.
12204 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
12206         * config/mips/mips.md (sqrt_condition): Tweak comment.
12207         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
12209 2008-01-03  Tom Tromey  <tromey@redhat.com>
12211         PR c/34457
12212         * c-common.c (c_type_hash): Handle VLAs.
12214 2008-01-03  Jan Hubicka  <jh@suse.cz>
12216         PR tree-optimization/31081
12217         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
12218         0 when inlining and not inlining to first basic block.
12219         (remap_decl): When var is initialized to 0, don't set default_def.
12220         (expand_call_inline): Set entry_bb.
12221         * tree-inline.h (copy_body_data): Add entry_bb.
12223 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
12225         PR c++/34619
12226         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
12227         before returning.
12229         PR tree-optimization/29484
12230         * tree-inline.c (inline_forbidden_p_2): New function.
12231         (inline_forbidden_p): Disallow inlining if some static var
12232         has an address of a local LABEL_DECL in its initializer.
12233         * doc/extend.texi (Labels as Values): Document &&foo behaviour
12234         vs. inlining.
12236 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
12238         PR tree-optimization/34635
12239         * tree-data-ref.c (add_other_self_distances): Make sure that the
12240         evolution step is constant.
12242 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
12244         PR middle-end/34608
12245         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
12247 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
12249         * tree-sra.c (scalarize_init): Insert the generate_element_init
12250         statements after the generate_element_zero statements.
12252 2008-01-02  Richard Guenther  <rguenther@suse.de>
12254         PR middle-end/34093
12255         PR middle-end/31976
12256         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
12257         for very large number of operands instead of ICEing.
12259 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
12261         PR target/34013
12262         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
12263         while stack probing.
12265 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
12267         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
12268         in C++0x mode.
12270 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
12272         PR libmudflap/26442
12273         * tree-mudflap.c (mx_register_decls): Guard warning by
12274         !DECL_ARTIFICIAL check.
12276 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
12278         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
12279         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
12280         sse5_perm<mode>): Fix constraints.