OSDN Git Service

* tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
4         that the bitfield is of integral type before testing its precision.
5
6 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
7             Sa Liu  <saliu@de.ibm.com> 
8
9         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
10         __modti3, __udivti3, __umodti3 and __udivmodti4.
11         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
12         that implement TImode mul and div functions.
13         * config/spu/multi3.c: New. Implement __multi3.
14         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
15         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
16         functions on SPU.
17
18 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
19
20         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
21         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
22         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
23         tls_sysv_suffix): New mode and mode attribute iterators.
24         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
25         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
26         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
27         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
28         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
29         iterators.
30
31 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
32
33         PR tree-optimization/36329
34         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
35         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
36         * cgraphbuild.c (initialize_inline_failed): Use the latter
37         macro in lieu of the former.
38         * ipa-inline.c (cgraph_mark_inline): Likewise.
39         (cgraph_decide_inlining_of_small_function): Likewise.
40         (cgraph_decide_inlining): Likewise.
41         (cgraph_decide_inlining_incrementally): Likewise.
42
43 2008-05-26  Tristan Gingold  <gingold@adacore.com>
44             Anatoly Sokolov  <aesok@post.ru>
45
46         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
47         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
48         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
49         optimization for 'avr6' architecture.
50
51 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
52
53         PR target/34932
54         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
55
56 2008-05-26  Richard Guenther  <rguenther@suse.de>
57
58         * tree-ssa-sccvn.c (expr_has_constants): Declare.
59         (visit_reference_op_load): Initialize VN_INFO->has_constants
60         properly.
61
62 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
63
64         PR middle-end/36253
65         * caller-save.c (insert_restore): Verify alignment of spill
66         space.
67         (insert_save): Likewise.
68
69         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
70
71         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
72         (STACK_SLOT_ALIGNMENT): Likewise.
73
74         * function.c (LOCAL_ALIGNMENT): Removed.
75         (get_stack_local_alignment): New.
76         (assign_stack_local): Use it.  Set alignment on stack slot.
77         (assign_stack_temp_for_type): Use get_stack_local_alignment.
78
79         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
80         (STACK_SLOT_ALIGNMENT): New.
81
82         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
83         stack slot in XFmode.
84
85         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
86
87 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
88
89         PR/36321
90         * config/i386/i386.md (allocate_stack_worker_64): Make sure
91         argument operand in rax isn't removed.
92
93 2008-05-26  Richard Guenther  <rguenther@suse.de>
94
95         PR middle-end/36300
96         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
97         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
98
99 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
100
101         PR bootstrap/36331
102         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
103
104 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
105
106         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
107         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
108
109 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
110
111          * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
112         build a trampoline if we don't want one.
113         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
114         return zero for nested functions if we don't want a trampoline.
115
116 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
117
118         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
119
120 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
121
122         PR fortran/18428
123         * c.opt: Removed undocumented option '-lang-fortran'.
124         * c-common.h: Removed global variable 'lang_fortran'.
125         * c-opts.c (c_common_handle_option): Removed code to handle
126         option '-lang-fortran'. Updated includes.
127         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
128         definition of '__GFORTRAN__'.
129         (define__GNUC__): Reimplemented to use BASEVER and
130         cpp_define_formatted.
131         (builtin_define_with_value_n): Removed.
132         * c-incpath.h: Renamed to ...
133         * incpath.h: ... this.
134         * c-incpath.c: Renamed to ...
135         * incpath.c: ... this. Updated includes.
136         * fix-header.c: Updated includes.
137         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
138         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
139         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
140
141 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
142
143         * tree.h: Update the table of flags used on tree nodes.
144         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
145         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
146         (FORCED_LABEL): Add access check.
147         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
148         (ASM_INPUT_P): Likewise.
149         (ASM_VOLATILE_P): Likewise.
150         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
151         (OMP_SECTION_LAST): Access private_flag directly.
152         (OMP_RETURN_NOWAIT): Likewise.
153         (OMP_PARALLEL_COMBINED): Likewise.
154         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
155         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
156         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
157         deprecated_flag directly.
158
159 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
160
161         * final.c (frame_pointer_needed): Removed.
162         * flags.h (frame_pointer_needed): Likewise.
163
164         * function.h (rtl_data): Add frame_pointer_needed.
165         (frame_pointer_needed): New.
166
167 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
168
169         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
170
171 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
172
173         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
174         SRC is a REG.
175
176 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
177
178         * c-common.c (strip_array_types): Move function to..
179         * tree.c: ..here.
180         (get_inner_array_type): Delete.
181         * c-common.h (strip_array_types): Move declaration to..
182         * tree.h: ..here.
183         (get_inner_array_type): Delete.
184         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
185         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
186         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
187         * config/pa/pa.c (emit_move_sequence): Likewise.
188
189 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
190
191         * config/i386/i386.md (*sse_prologue_save_insn): Set length
192         attribute to 34.
193
194 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
195
196         * function.c: Include target hook for nonlocal_goto frame value.
197
198 2008-05-24  Richard Guenther  <rguenther@suse.de>
199
200         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that
201         a scalar variable can be only accessed through a pointer
202         or a union.
203
204 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
205
206         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
207         * doc/extend.texi: Likewise.
208
209 2008-05-23  DJ Delorie  <dj@redhat.com>
210
211         * config/m32c/jump.md (untyped_call): Add.
212
213         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
214         for A24 to PSImode.
215         (m32c_address_cost): Detail costs for indirect offsets.
216
217 2008-05-23  Rafael Espindola  <espindola@google.com>
218
219         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
220         if a node is a SUBREG.
221         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
222         is a SUBREG.
223
224 2008-05-23  Paul Brook  <paul@codesourcery.com>
225             Carlos O'Donell  <carlos@codesourcery.com>
226
227         * doc/extend.texi: Clarify use of __attribute__((naked)).
228         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
229         * target.h (gcc_target): Add allocate_stack_slots_for_args.
230         * function.c (use_register_for_decl): Use
231         targetm.calls.allocate_stack_slots_for_args.
232         * target-def.h (TARGET_CALLS): Add 
233         TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
234         * config/arm/arm.c (arm_allocate_stack_slots_for_args): 
235         New function.
236         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
237
238 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
239
240         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
241
242 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
243
244         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
245         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
246         is only rounded once.
247
248 2008-05-23  Richard Guenther  <rguenther@suse.de>
249
250         * tree-ssa-operands.c (mark_difference_for_renaming): Use
251         bitmap_xor.
252
253 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
254             Jakub Jelinek  <jakub@redhat.com>
255
256         PR target/36079
257         * configure.ac: Handle --enable-cld.
258         * configure: Regenerated.
259         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
260         * config/i386/i386.h (struct machine_function): Add needs_cld field.
261         (ix86_current_function_needs_cld): New define.
262         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
263         (cld): New isns pattern.
264         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
265         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
266         * config/i386/i386.opt (mcld): New option.
267         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
268         TARGET_CLD and ix86_current_function_needs_cld.
269         (override_options): Use -mcld by default for 32-bit code if
270         USE_IX86_CLD.
271
272         * doc/install.texi (Options specification): Document --enable-cld.
273         * doc/invoke.texi (Machine Dependent Options)
274         [i386 and x86-64 Options]: Add -mcld option.
275         (Intel 386 and AMD x86-64 Options): Document -mcld option.
276
277 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
278         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
279         (return_in_memory_64): Likewise.
280         (return_in_memory_ms_64): Likewise.
281
282 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
283
284         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
285         * builtins.c (fold_builtin_fpclassify): New.
286         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
287         * builtins.def (BUILT_IN_FPCLASSIFY): New.
288         * c-common.c (handle_type_generic_attribute): Adjust to accept
289         fixed arguments before an elipsis.
290         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
291         * doc/extend.texi: Document __builtin_fpclassify.
292
293 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
294
295         * omp-low.c (gate_expand_omp_ssa): Remove.
296         (pass_expand_omp_ssa): Remove.
297         (gate_expand_omp): Do not check for flag_openmp_ssa.
298         * common.opt (-fopenmp-ssa): Remove.
299         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
300
301 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
302
303         * config/sh/sh.opt (mfixed-range): New option.
304         * config/sh/sh-protos.h (sh_fix_range): Declare.
305         * config/sh/sh.c (sh_fix_range): New function.
306         * config/sh/sh.h (sh_fixed_range_str): Declare.
307         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
308         is not empty.
309         * doc/invoke.texi (SH Options): Document -mfixed-range.
310
311 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
312
313         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
314         it before the redeclaration.
315
316 2008-05-22  Anatoly Sokolov <aesok@post.ru>
317
318         * config/avr/avr.c (get_sequence_length): Add new function.
319         (expand_prologue, expand_epilogue): Remove duplicate code.
320
321 2008-05-22  Rafael Espindola  <espindola@google.com>
322
323         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
324         sharing.
325
326 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
327
328         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
329         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
330
331         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
332         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
333         (vect_update_misalignment_for_peel): Likewise.
334         (vector_alignment_reachable_p): Likewise.
335         * tree-vect-transform.c (vectorizable_load): Likewise.
336         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
337         (get_vectype_for_scalar_type): Pass mode of scalar_type
338         to UNITS_PER_SIMD_WORD.
339
340         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
341         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
342         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
343         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
344         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
345
346 2008-05-22  Ira Rosen  <irar@il.ibm.com>
347
348         PR tree-optimization/36293
349         * tree-vect-transform.c (vect_transform_strided_load): Don't check
350         if the first load must be skipped because of a gap.
351
352 2008-05-22  Richard Guenther  <rguenther@suse.de>
353
354         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
355         more cases of offset disambiguation that is possible if
356         strict-aliasing rules apply.
357         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
358         for basic offset and type-based disambiguation.
359
360 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
361
362         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
363         ix86_expand_vector_set on V16QImode for SSE4.1.
364
365 2008-05-21  Tom Tromey  <tromey@redhat.com>
366
367         * c.opt (Wimport): Mark as undocumented.
368         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
369         -Wno-import.
370         (Warning Options): Likewise.
371         * doc/cppopts.texi: Don't mention -Wimport.
372
373 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
374
375         PR tree-optimization/36287
376         PR tree-optimization/36286
377         * lambda-code.c (build_access_matrix): Do not use the loop->num
378         for computing the number of induction variables: use the loop depth
379         instead.
380
381 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
382
383         PR/36280
384         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
385         option -f(no-)leading-underscore.
386
387 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
388
389         * config/i386/i386.c (ix86_expand_vector_init_general): Use
390         GET_MODE_NUNITS (mode).
391
392 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
393
394         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
395         (-mmulhw): Add 464 to description.
396         (-mdlmzb): Likewise.
397         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
398         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
399         464fp entries.
400         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
401         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
402         * config/rs6000/rs6000.md: Update comments for 464.
403
404 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
405
406         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
407
408 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
409
410         * config/i386/sse.md (vec_extractv4sf): Removed.
411         (vec_extractv2df): Likewise.
412         (vec_extractv2di): Likewise.
413         (vec_extractv4si): Likewise.
414         (vec_extractv8hi): Likewise.
415         (vec_extractv16qi): Likewise.
416         (vec_extract<mode>): New.
417
418 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
419
420         * config/i386/sse.md (vec_setv4sf): Removed.
421         (vec_setv2df): Likewise.
422         (vec_setv2di): Likewise.
423         (vec_setv4si): Likewise.
424         (vec_setv8hi): Likewise.
425         (vec_setv16qi): Likewise.
426         (vec_set<mode>): New.
427
428 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
429
430         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
431         goto for vec_concat and vec_interleave.
432
433 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
434
435         * config/i386/sse.md (vec_initv4sf): Removed.
436         (vec_initv2df): Likewise.
437         (vec_initv2di): Likewise.
438         (vec_initv4si): Likewise.
439         (vec_initv8hi): Likewise.
440         (vec_initv16qi): Likewise.
441         (vec_init<mode>): New.
442
443 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
444
445         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
446
447 2008-05-21  Tom Tromey  <tromey@redhat.com>
448
449         * ggc-zone.c (lookup_page_table_if_allocated): New function.
450         (zone_find_object_offset): Likewise.
451         (gt_ggc_m_S): Likewise.
452         (highest_bit): Likewise.
453         * ggc-page.c (gt_ggc_m_S): New function.
454         * stringpool.c (string_stack): Remove.
455         (init_stringpool): Update.
456         (ggc_alloc_string): Use ggc_alloc.
457         (maybe_delete_ident): New function.
458         (ggc_purge_stringpool): Likewise.
459         (gt_ggc_m_S): Remove.
460         * ggc-common.c (ggc_protect_identifiers): New global.
461         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
462         ggc_protect_identifiers.
463         * ggc.h (ggc_protect_identifiers): Declare.
464         (gt_ggc_m_S): Update.
465         (ggc_purge_stringpool): Declare.
466         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
467         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
468         special case.
469         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
470
471 2008-05-21  David S. Miller  <davem@davemloft.net>
472
473         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
474         tmake_file.
475
476 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
477
478         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
479         once finished.
480
481 2008-05-20  David Daney  <ddaney@avtrex.com>
482
483         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
484         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
485         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
486         UNSPEC_UPDATE_GOT_VERSION): Renumber.
487         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
488         (atomic_hiqi_op): New define_code_iterator.
489         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
490         mips_expand_compare_and_swap_12.
491         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
492         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
493         (sync_<optab><mode>, sync_old_<optab><mode>,
494         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
495         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
496         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
497         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
498         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
499         (test_and_set_12): New insn.
500         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
501         sync_new_<optab><mode>, sync_old_nand<mode>,
502         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
503         clobber to operand 0 for SI and DI mode insns.
504         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
505         mips_gen_fn_4): New typedefs.
506         (mips_gen_fn_ptrs): Define new union type.
507         (mips_expand_compare_and_swap_12): Remove declaration.
508         (mips_expand_atomic_qihi): Declare function.
509         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
510         (mips_expand_atomic_qihi): ... this.  Use new generator function
511         parameter.
512         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
513         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
514         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP,
515         MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
516         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
517         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
518         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
519         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
520         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
521         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
522         MIPS_SYNC_EXCHANGE_12_ZERO_OP,
523         MIPS_SYNC_EXCHANGE_12_NONZERO_OP): New macros.
524
525 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
526
527         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
528         the missing break.
529
530 2008-05-20  Anatoly Sokolov <aesok@post.ru>
531
532         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
533         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
534         (avr_attribute_table): Add 'OS_main' function attribute.
535         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
536         functions with 'OS_main' attribute.
537
538 2008-05-20  Richard Guenther  <rguenther@suse.de>
539
540         PR tree-optimization/35204
541         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
542         helper, split out from ...
543         (DFS): ... here.  Make the DFS walk non-recursive.
544
545 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
546             Jan Sjodin  <jan.sjodin@amd.com>
547
548         PR tree-optimization/36181
549         * tree-parloops.c (loop_has_vector_phi_nodes): New.
550         (parallelize_loops): Don't parallelize when the loop has vector
551         phi nodes.
552
553 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
554             Sebastian Pop  <sebastian.pop@amd.com>
555
556         * tree-loop-linear.c (gather_interchange_stats): Look in the access
557         matrix, and never look at the tree representation of the memory
558         accesses.
559         (linear_transform_loops): Computes parameters and access matrices.
560         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
561         when fails.
562         (access_matrix_get_index_for_parameter): New.
563         * tree-data-ref.h (struct access_matrix): New.
564         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
565         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
566         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
567         am_vector_index_for_loop): New.
568         (struct data_reference): Add field access_matrix.
569         (DR_ACCESS_MATRIX): New.
570         (compute_data_dependences_for_loop): Update declaration.
571         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
572         * lambda.h (lambda_vector_vec_p): Declared.
573         * lambda-code.c: Depend on pointer-set.h.
574         (lambda_collect_parameters_from_af, lambda_collect_parameters,
575         av_for_af_base, av_for_af, build_access_matrix,
576         lambda_compute_access_matrices): New.
577         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
578
579 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
580
581         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
582         $SOURCEDIR/include.
583
584 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
585             Sebastian Pop  <sebastian.pop@amd.com>
586
587         PR tree-optimization/36206
588         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
589         FOLD_CONVERSIONS.
590         (instantiate_scev_1): Rename flags to fold_conversions.
591         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
592         outeside instantiation_loop.
593         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
594         (evolution_function_is_affine_or_constant_p): Removed.
595         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
596         instantiate_scev.
597         (analyze_siv_subscript): Pass in the loop nest number.
598         Call evolution_function_is_affine_in_loop instead of 
599         evolution_function_is_affine_p.
600         (analyze_overlapping_iterations): Pass in the loop nest number.
601
602 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
603             Sebastian Pop  <sebastian.pop@amd.com>
604
605         PR tree-optimization/36206
606         * tree-chrec.h (chrec_fold_op): New.
607         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
608         and other trees.
609
610 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
611
612         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
613         (DIRS_EQ): New.
614         (remove_duplicates): Do not set inode on non-inode systems.
615         Use DIRS_EQ.
616
617 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
618
619         * config.gcc (tm_file): Update comments about relative pathnames.
620
621 2008-05-20  Richard Guenther  <rguenther@suse.de>
622
623         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
624         * tree-ssa-sccvn.c (process_scc): Likewise.
625         * tree-ssa-sink.c (execute_sink_code): Likewise.
626         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
627         * tree-vrp.c (process_assert_insertions): Likewise.
628         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
629         (perform_tree_ssa_dce): Likewise.
630         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
631         (dump_dominator_optimization_stats): Likewise.
632         * tree-vectorizer.c (vectorize_loops): Likewise.
633
634 2008-05-20  Richard Guenther  <rguenther@suse.de>
635
636         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
637
638 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
639
640         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
641         (ix86_i386elf_return_in_memory): Likewise.
642         (ix86_i386interix_return_in_memory): Likewise.
643         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
644         (SUBTARGET_RETURN_IN_MEMORY): New.
645         * config/i386/i386elf.h: Likewise.
646         * config/i386/ptx4-i.h: Likewise.
647         * config/i386/sol2-10.h: Likewise.
648         * config/i386/sysv4.h: Likewise.
649         * config/i386/vx-common.h: Likewise.
650         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
651         * config/i386/i386.c (ix86_return_in_memory): Made static and
652         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
653         (ix86_i386elf_return_in_memory): Removed.
654         (ix86_i386interix_return_in_memory): Removed.
655         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
656         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
657
658 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
659
660         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
661
662 2008-05-19  Xinliang David Li  <davidxl@google.com>
663
664         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
665         * opts.c: Ditto.
666         * common.opt: Ditto.
667         * doc/invoke.texi: Ditto.
668
669 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
670
671         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
672         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
673
674 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
675
676         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
677         sizes of operand array from 8/4 to 4/2.
678         (ix86_expand_vector_init_general): Change size of operand array
679         from 32 to 16.  Remove op0, op1 and half_mode.
680
681 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
682
683         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
684         (ix86_expand_vector_init_interleave): Likewise.
685         (ix86_expand_vector_init_general): Use them.  Assert word_mode
686         == SImode when n_words == 4.
687
688 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
689
690         * config/i386/i386.c (ix86_secondary_reload): New static function.
691         (TARGET_SECONDARY_RELOAD): New define.
692         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
693         * config/i386/i386.md (reload_outqi): Remove.
694
695 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
696
697         PR middle-end/35509
698         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
699         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
700         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
701         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
702         (fold_builtin_1): Likewise.
703         * builtins.def (BUILT_IN_ISINF_SIGN): New.
704         c-common.c (check_builtin_function_arguments): Handle
705         BUILT_IN_ISINF_SIGN.
706         * doc/extend.texi: Document __builtin_isinf_sign.
707         * fold-const.c (operand_equal_p): Handle COND_EXPR.
708
709 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
710
711         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
712         EH cleanup at the end of the pass, search for those that have been
713         turned into forwarder blocks and do the cleanup on their successor.
714
715 2008-05-18  Richard Guenther  <rguenther@suse.de>
716
717         * tree-cfg.c (verify_gimple_expr): Allow conversions from
718         pointers to sizetype and vice versa.
719
720 2008-05-18 Xinliang David Li   <davidxl@google.com>
721
722         * gcc/tree-ssa-dce.c: Coding style fix.
723         (check_pow): Documentation comment. 
724         (check_log): Documenation comment. Coding style fix.
725         (is_unnecessary_except_errno_call): Ditto.
726         (gen_conditions_for_pow): Ditto.
727         (gen_conditions_for_log): Ditto.
728         (gen_shrink_wrap_conditions): Ditto.
729         (shrink_wrap_one_built_in_calls): Ditto.
730         * gcc/doc/invoke.texi: Better documentation string.
731         * ChangeLog: Fix wrong change log entries from 
732         May 17 checkin on function call DCE.
733
734 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
735
736         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
737
738 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
739
740         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
741         * df-problems.c (simulation routines): Fixed block comment to
742         properly say how to add forwards scanning functions.
743         
744 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
745
746         * tree-inline.c (setup_one_parameter): Remove dead code.
747
748 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
749
750         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
751         a BIT_AND_EXPR only for an INTEGER_TYPE.
752
753 2008-05-17 Xinliang David Li   <davidxl@google.com>
754
755         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
756         (check_pow, check_log, is_unnecessary_except_errno_call): New 
757         functions to check for eliminating math functions that are pure 
758         except for setting errno.
759         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
760         general condition expressions for shrink-wrapping pow/log calls.
761         (gen_shrink_wrap_conditions): Ditto.
762         (shrink_wrap_one_built_in_call): Ditto.
763         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
764         (mark_operand_necessary): If debugging, output if OP is necessary.
765         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
766         unnecessary.
767         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
768         opt level >= 2.
769         * gcc/common.opt: New user flag -ftree-builtin-dce.
770         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
771
772 2008-05-16  David S. Miller  <davem@davemloft.net>
773
774         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
775         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
776
777 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
778
779         PR target/36246
780         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
781
782 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
783
784         * ifcvt.c (dead_or_predicable): Rename
785         df_simulate_one_insn_backwards to df_simulate_one_insn.
786         * recog.c (peephole2_optimize): Ditto.
787         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
788         Ditto.
789         * df.h: Rename df_simulate_one_insn_backwards to
790         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
791         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
792         scanning of defs and uses.
793         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
794         (df_simulate_one_insn_forwards): Removed.
795
796 2008-05-16  Doug Kwan  <dougkwan@google.com>
797
798         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
799         QNaN & SNaN.
800         (real_from_string): Handle NaNs and Inf as approriate.
801
802 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
803
804         * doc/gty.texi (Source Files Containing Type Information): Note
805         that headers should appear first in the gtfiles list.
806
807 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
808
809         * tree.def (COND_EXEC): Properly documented this code.
810
811 2008-05-16  Diego Novillo  <dnovillo@google.com>
812
813         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
814         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
815         the new field.
816
817 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
818
819         * tree-ssa-dse (max_stmt_uid): Removed.
820         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
821         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
822         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
823         * function.h (cfun.last_stmt_uid): New field.
824         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
825         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
826         New functions.
827         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
828         (create_stmt_ann): Initialize the ann->uid field.
829         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
830         with new calls.
831         * tree-flow.h (renumber_gimple_stmt_uids): New function.
832
833 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
834
835         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
836         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
837         (init_empty_tree_cfg): Call it.
838
839 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
840
841         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
842         Update all users.
843
844 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
845
846         * doc/invoke.text (-fdump-tree-*-verbose): New option.
847         * tree-dump.c (dump_options): New verbose option.
848         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
849         Add verbose dump.
850         * tree-pass.h (TDF_VERBOSE): New dump flag.
851         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
852         (tree-flow.h): Added include.
853         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
854
855 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
856
857         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
858
859         From Jie Zhang  <jie.zhang@analog.com>
860         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
861         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
862         mcpu=bf561-none and mcpu=bf561-0.2.
863         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
864         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
865         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
866         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
867         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
868         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
869         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
870         option.
871         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
872         (cputype_selected): Remove.
873         (bfin_handle_option): Don't use cputype_selected.
874         (override_options): When no mcpu option, enable all workarounds.
875         Don't use bfin_workarounds.
876         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
877         processor type.
878         (DEFAULT_CPU_TYPE): Don't define.
879
880 2008-05-16  Richard Guenther  <rguenther@suse.de>
881
882         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
883         on deletion of the last stmt.
884
885 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
886
887         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
888         V8HImode for SSE2 and V16QImode for SSE4.1.
889
890 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
891
892         * cgraph.h (compute_inline_parameters): Made public.
893         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
894         variable_generate_summary, function_write_summary,
895         variable_write_summary, variable_read_summary.  Added generate_summary,
896         write_summary, read_summary.
897         * cgraphunit.c (cgraph_process_new_functions): Changed call from
898         pass_ipa_inline.function_generate_summary, to
899         compute_inline_parameters. 
900         * ipa-inline.c (compute_inline_parameters): Made public and added
901         node parameter.
902         (compute_inline_parameters_for_current): New function.
903         (pass_inline_param): Now calls compute_inline_parameters_for_current.
904         (inline_generate_summary): Removed parameter and made to loop over
905         all cgraph nodes.
906         (pass_ipa_inline): Updated for new IPA_PASS structure.
907         * passes.c (execute_ipa_summary_passes): Now is called once per
908         pass rather than once per node*pass.
909         
910 2008-05-15  Anatoly Sokolov <aesok@post.ru>
911
912         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
913         avr_have_mul_p, avr_asm_only_p): Remove variables.
914         (avr_override_options): Remove initialization of removed variables.
915         (avr_file_start):  Convert removed variables to fields of 
916         'struct base_arch_s *avr_current_arch'. 
917         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
918         (AVR_HAVE_MUL): (Ditto.).
919         (AVR_HAVE_MOVW): (Ditto.).
920         (AVR_HAVE_LPMX): (Ditto.). 
921         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
922         avr_asm_only_p): Remove declaration.
923
924 2008-05-15  Diego Novillo  <dnovillo@google.com>
925
926         * config/arm/arm.c (arm_return_in_memory): Fix return type.
927         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
928
929 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
930
931         PR middle-end/36194
932         * combine.c (check_conversion): Rename back to check_promoted_subreg.
933         Don't call record_truncated_value from here.
934         (record_truncated_value): Turn it into a for_each_rtx callback.
935         (record_truncated_values): New function.
936         (combine_instructions): Call note_uses with record_truncated_values.
937         Change name of check_conversion to check_promoted_subreg. 
938
939 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
940
941         * doc/sourcebuild.texi: Document support for torture tests.
942
943 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
944
945         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
946         to alternative 4 of operand 2.
947
948 2008-05-15  Richard Guenther  <rguenther@suse.de>
949
950         * tree-pass.h (current_pass): Declare.
951         (get_pass_for_id): Likewise.
952         * passes.c (passes_by_id, passes_by_id_size): New globals.
953         (set_pass_for_id): New function.
954         (get_pass_for_id): Likewise.
955         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
956         (execute_function_todo): Flush per function statistics.
957         * toplev.c (compile_file): Init statistics.
958         (general_init): Do early statistics initialization.
959         (finalize): Finish statistics.
960         * statistics.h (statistics_early_init): Declare.
961         (statistics_init): Likewise.
962         (statistics_fini): Likewise.
963         (statistics_fini_pass): Likewise.
964         (statistics_counter_event): Likewise.
965         (statistics_histogram_event): Likewise.
966         * statistics.c: New file.
967         * Makefile.in (OBJS-common): Add statistics.o.
968         (statistics.o): Add dependencies.
969         * doc/invoke.texi (-fdump-statistics): Document.
970
971         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
972         (insert): Likewise.
973         (execute_pre): Use statistics_counter_event.
974         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
975         (substitute_and_fold): Increment it.  Use statistics_counter_event.
976
977 2008-05-15  Diego Novillo  <dnovillo@google.com>
978
979         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
980
981         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
982         * tree-ssa-alias.c (new_type_alias): Remove references to
983         sub-variables from comment.
984         * tree-ssa-operands.c (swap_tree_operands): Likewise.
985
986 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
987
988         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
989         attribute to 1 only for insertps alternative.
990
991 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
992
993         * config/bfin/bfin.md (loadbytes): New pattern.
994         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
995         (bfin_init_builtins): Initialize it.
996         (bdesc_1arg): Add it.
997
998 2008-05-15  Sa Liu  <saliu@de.ibm.com>
999
1000         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
1001         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
1002         * testsuite/lib/target-supports.exp: Add
1003         check_effective_target_fortran_integer_16.
1004
1005 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
1006
1007         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
1008         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
1009         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
1010         (TARGET_RETURN_IN_MEMORY): Define.
1011
1012 2008-05-15  Richard Guenther  <rguenther@suse.de>
1013
1014         PR middle-end/36244
1015         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
1016         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
1017         represent unmodifiable vars.
1018
1019 2008-05-15  Richard Guenther  <rguenther@suse.de>
1020
1021         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
1022         INDIRECT_REF and TARGET_MEM_REF.
1023         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1024         TARGET_MEM_REF.
1025
1026 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
1027             H.J. Lu  <hongjiu.lu@intel.com>
1028
1029         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
1030         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
1031         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
1032         insn alternatives.  Add missing alternatives.
1033         (*vec_concatv2di_rex64_sse4_1): Likewise.
1034         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
1035         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
1036         Require TARGET_SSE.
1037
1038 2008-05-15  Richard Guenther  <rguenther@suse.de>
1039
1040         PR tree-optimization/36009
1041         PR tree-optimization/36204
1042         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
1043         (determine_invariantness_stmt): Record the loop a store is
1044         always executed in.
1045         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
1046         dependency.
1047
1048 2008-05-15  Richard Guenther  <rguenther@suse.de>
1049
1050         PR tree-optimization/34330
1051         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
1052         through the pointer will alias the SMT.
1053
1054 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
1055
1056         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
1057
1058 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1059
1060         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
1061
1062 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1063             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1064
1065         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
1066         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
1067         (vashl_optab): New optab for vector/vector shifts.
1068         (vashr_optab): Ditto.
1069         (vlshr_optab): Ditto.
1070         (vrotl_optab): Ditto.
1071         (vrotr_optab): Ditto.
1072         (optab_subtype): New enum for optab_for_tree_code call.
1073         (optab_for_tree_code): Add enum optab_subtype argument.
1074
1075         * optabs.c (optab_for_tree_code): Take an additional argument to
1076         distinguish between a vector shift by a scalar and vector shift by
1077         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
1078         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
1079         vector shift by a vector.
1080         (expand_widen_pattern_expr): Pass additional argument to
1081         optab_for_tree_code.
1082
1083         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
1084         vrotl_optab, vrotr_optab.
1085
1086         * expr.c (expand_expr_real_1): Update calls to
1087         optab_for_tree_code to distinguish between vector shifted by a
1088         scalar and vector shifted by a vector.
1089         * tree-vectorizer.c (supportable_widening_operation): Ditto.
1090         (supportable_narrowing_operation): Ditto.
1091         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
1092         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
1093         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
1094         (vect_create_epilog_for_reduction): Ditto.
1095         (vectorizable_reduction): Ditto.
1096         (vectorizable_operation): Ditto.
1097         (vect_strided_store_supported): Ditto.
1098         (vect_strided_load_supported): Ditto.
1099         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1100         * expmed.c (expand_shift): Ditto.
1101
1102         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
1103         scalar type.
1104         (ashr@var{m}3): Ditto.
1105         (vashl@var{m}3): Document new vector/vector shift standard name.
1106         (vashr@var{m}3): Ditto.
1107         (vlshr@var{m}3): Ditto.
1108         (vrotl@var{m}3): Ditto.
1109         (vrotr@var{m}3): Ditto.
1110
1111         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
1112         (PPERM_INVERT): Ditto.
1113         (PPERM_REVERSE): Ditto.
1114         (PPERM_REV_INV): Ditto.
1115         (PPERM_ZERO): Ditto.
1116         (PPERM_ONES): Ditto.
1117         (PPERM_SIGN): Ditto.
1118         (PPERM_INV_SIGN): Ditto.
1119         (PPERM_SRC1): Ditto.
1120         (PPERM_SRC2): Ditto.
1121
1122         * config/i386/sse.md (mulv2di3): Add SSE5 support.
1123         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
1124         allows a memory operand to be the value being added, and split it
1125         to improve vectorization.
1126         (sse5_pmacsdqh_mem): Ditto.
1127         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
1128         (sse5_mulv2div2di3_high): Ditto.
1129         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
1130         (vec_pack_trunc_v4si): Ditto.
1131         (vec_pack_trunc_v2di): Ditto.
1132         (sse5_pcmov_<mode>): Remove code that tried to use use
1133         andps/andnps instead of pcmov.
1134         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
1135         pmacsdqh instructions.
1136         (vec_widen_smult_lo_v4si): Ditto.
1137
1138         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
1139         (PPERM_INVERT): Ditto.
1140         (PPERM_REVERSE): Ditto.
1141         (PPERM_REV_INV): Ditto.
1142         (PPERM_ZERO): Ditto.
1143         (PPERM_ONES): Ditto.
1144         (PPERM_SIGN): Ditto.
1145         (PPERM_INV_SIGN): Ditto.
1146         (PPERM_SRC1): Ditto.
1147         (PPERM_SRC2): Ditto.
1148         (ix86_expand_sse_movcc): Move the SSE5 test after the if
1149         true/false tests.
1150         (ix86_expand_int_vcond): If SSE5 generate all possible integer
1151         comparisons.
1152         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
1153         says ignore whether the last reference is a memory operand.
1154
1155 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1156             Paolo Bonzini <bonzini at gnu dot org>
1157
1158         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
1159         shift patterns.
1160
1161         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
1162         (vlshr<mode>3): Rename from vlshr<mode>3.
1163         (vashr<mode>3): Rename from vashr<mode>3.
1164         (mulv4sf3): Change the names of vector shift patterns.
1165         (mulv4si3): Ditto.
1166         (negv4sf2): Ditt.
1167
1168         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
1169         shift insns.
1170
1171         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
1172         (SI_SHLHI): Ditto.
1173         (SI_SHL): Ditto.
1174         (SI_SHLI): Ditto.
1175         (SI_ROTH): Ditto.
1176         (SI_ROTHI): Ditto.
1177         (SI_ROT): Ditto.
1178         (SI_ROTI): Ditto.
1179         (SPU_RL_0): Ditto.
1180         (SPU_RL_1): Ditto.
1181         (SPU_RL_2): Ditto.
1182         (SPU_RL_3): Ditto.
1183         (SPU_RL_4): Ditto.
1184         (SPU_RL_5): Ditto.
1185         (SPU_RL_6): Ditto.
1186         (SPU_RL_7): Ditto.
1187         (SPU_SL_0): Ditto.
1188         (SPU_SL_1): Ditto.
1189         (SPU_SL_2): Ditto.
1190         (SPU_SL_3): Ditto.
1191         (SPU_SL_4): Ditto.
1192         (SPU_SL_5): Ditto.
1193         (SPU_SL_6): Ditto.
1194         (SPU_SL_7): Ditto.
1195
1196         * config/spu/spu.md (v): New iterator macro to add v for vector types.
1197         (floatunssidf2_internal): Change vector/vector shift names.
1198         (floatunsdidf2_internal): Ditto.
1199         (mulv8hi3): Ditto.
1200         (ashrdi3): Ditto.
1201         (ashrti3): Ditto.
1202         (cgt_df): Ditto.
1203         (cgt_v2df): Ditto.
1204         (dftsv): Ditto.
1205         (vashl<mode>3): Rename from ashl<mode>3.
1206         (vashr<mode>3): Rename from ashr<mode>3.
1207         (vlshr<mode>3): Rename from lshr<mode>3.
1208         (vrotl<mode>3): Rename from rotl<mode>3.
1209
1210 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1211
1212         PR target/36224
1213         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
1214         multiply gives the wrong value when doing widening multiplies.
1215         (vec_widen_smult_lo_v4si): Ditto.
1216
1217 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
1218
1219         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
1220         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
1221         emit_library_call_value. 
1222         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
1223         * tree.h (ECF_LIBCALL_BLOCK): Removed.
1224         * calls.c (initialize_argument_information, precompute_arguments, 
1225         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
1226         (precompute_arguments): Removed flags parameter.
1227         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
1228         
1229 2008-05-14  Richard Guenther  <rguenther@suse.de>
1230
1231         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
1232         Make sure to register the store if the use is a PHI_NODE.
1233
1234 2008-05-14  Olivier Hainque  <hainque@adacore.com>
1235
1236         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
1237         memory if the component is to be referenced in BLKmode according
1238         to get_inner_reference.
1239
1240 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
1241
1242         * calls.c (emit_library_call_value_1): Restore code clearing
1243         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
1244
1245 2008-05-14  Olivier Hainque  <hainque@adacore.com>
1246             Nicolas Roche  <roche@adacore.com>
1247
1248         * configure.ac: Add support for a "gcc_subdir" variable in
1249         config-lang.in, to denote a subdirectory where the language/GCC
1250         integration files are to be found.
1251         * configure: Regenerate.
1252
1253 2008-05-14  Ira Rosen  <irar@il.ibm.com>
1254
1255         PR tree-optimization/36098
1256         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
1257         value for the first load in the group in case of a gap.
1258         (vect_build_slp_tree): Check that there are no gaps in loads.
1259
1260 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
1261
1262         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
1263         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
1264         expand_copysign_bit, ): Change call to emit_no_conflict_block to
1265         emit_insn and remove unneeded code to construct extra args.
1266         (emit_no_conflict_block): Removed.
1267         * optabls.h: (emit_no_conflict_block): Removed.
1268         * cse.c (cse_extended_basic_block): Remove search for
1269         REG_NO_CONFLICT note.
1270         * global.c: Removed incorrect comment added in revision 117.
1271         * expr.c (convert_move): Change call to emit_no_conflict_block to
1272         emit_insn.
1273         * recog.c: Change comments so that they do not mention
1274         REG_NO_CONFLICT.
1275         * local_alloc.c (combine_regs): Removed last parameter.
1276         (no_conflict_p): Removed.
1277         (block_alloc): Removed note, no_conflict_combined_regno and set
1278         local vars. Removed all code to process REG_NO_CONFLICT blocks.
1279         (combine_regs): Removed already_dead and code to look for
1280         REG_NO_CONFLICT notes.
1281         * lower_subreg (remove_retval_note): Removed code to look for
1282         REG_NO_CONFLICT block.
1283         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
1284         (resolve_clobber): Remove code to process libcalls that have
1285         REG_NO_CONFLICT notes.
1286         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
1287         case.
1288         * combine.c (can_combine_p, distribute_notes):  Removed
1289         REG_NO_CONFLICT case.
1290         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
1291         to emit_insns.
1292         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
1293         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
1294         Ditto.
1295         * reg-notes.def (NO_CONFLICT): Removed.
1296
1297 2008-05-14  David S. Miller  <davem@davemloft.net>
1298
1299         * config/sparc/sparc.c (sparc_profile_hook): If
1300         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
1301         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
1302         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
1303
1304 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1305
1306         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
1307
1308 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
1309
1310         PR target/36222
1311         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
1312         and op1 expansion before vector concat to have less live pseudos.
1313
1314 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1315
1316         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
1317         ix86_expand_vector_set if supported.
1318
1319 2008-05-13  Diego Novillo  <dnovillo@google.com>
1320             Kenneth Zadeck  <zadeck@naturalbridge.com>
1321
1322         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
1323
1324         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
1325         phinodes_print_statistics, init_ssanames, fini_ssanames,
1326         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
1327         release_ssa_name, release_defs, replace_ssa_name_symbol,
1328         ssanames_print_statistics): Move ...
1329         * tree-flow.h: ... here.
1330         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
1331         Use FN instead of cfun.
1332         (make_ssa_name_fn): Rename from make_ssa_name.
1333         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
1334         * tree-flow-inline.h (make_ssa_name): Move from
1335         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
1336         * omp-low.c (expand_omp_parallel):
1337         * tree-flow-inline.h (redirect_edge_var_map_result):
1338         * tree-ssa.c (init_tree_ssa): Add argument FN.
1339         Use it instead of cfun.  Update all users.
1340
1341 2008-05-13  Tom Tromey  <tromey@redhat.com>
1342
1343         PR preprocessor/22168:
1344         * doc/cpp.texi (Top): Update menu.
1345         (Alternatives to Wrapper #ifndef): New node.
1346         (Other Directives): Document deprecation.
1347         (Obsolete Features): Remove menu.
1348         (Assertions): Merge node into Obsolete Features.
1349         (Obsolete once-only headers): Move earlier; rename to Alternatives
1350         to Wrapper #ifndef.
1351         * doc/cppopts.texi: Update.
1352         * c.opt (Wdeprecated): Enable for C and ObjC.
1353         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
1354         (C++ Dialect Options): Move -Wno-deprecated from here to...
1355         (Warning Options): ... here.
1356
1357 2008-05-13  Richard Guenther  <rguenther@suse.de>
1358
1359         PR middle-end/36227
1360         * fold-const.c (fold_sign_changed_comparison): Do not allow
1361         changes in pointer-ness.
1362
1363 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
1364
1365         PR target/24713
1366         * config/sh/sh.c (sh_expand_prologue): Don't clear
1367         RTX_FRAME_RELATED_P for push insns.
1368
1369 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
1370
1371         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
1372
1373 2008-05-12  Anatoly Sokolov <aesok@post.ru>
1374
1375         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
1376         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
1377         Use 'machine->is_leaf' instead of 'leaf_func_p'.
1378
1379 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1380
1381         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
1382         (*vec_concatv4sf_sse): This.
1383         (*sse2_concatv2si): Renamed to ...
1384         (*vec_concatv2si_sse2): This.
1385         (*sse1_concatv2si): Renamed to ...
1386         (*vec_concatv2si_sse): This.
1387         (*vec_concatv2di_rex): Renamed to ...
1388         (*vec_concatv2di_rex64): This.
1389         (*vec_concatv2si_sse4_1): New.
1390         (*vec_concatv2di_rex64_sse4_1): Likewise.
1391
1392 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
1393
1394         PR rtl-optimization/36111
1395         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
1396         that was created for swappable operands.
1397
1398 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
1399
1400         PR ada/36001
1401         * Makefile.in: Substitute GNATMAKE and GNATBIND.
1402         * configure.ac: Add call to ACX_PROG_GNAT.
1403
1404 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
1405
1406         * optc-gen.awk: Fix comment typo.
1407
1408 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1409
1410         * pretty-print.c (pp_integer_with_precision): Use
1411         HOST_LONG_LONG_FORMAT.
1412
1413 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
1414
1415         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
1416                 
1417 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1418
1419         * config/i386/i386.c (bdesc_ptest): Removed.
1420         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
1421         (bdesc_args): Add __builtin_ia32_ptestz128,
1422         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
1423         (ix86_init_mmx_sse_builtins): Updated.
1424         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
1425         (ix86_expand_builtin): Updated.
1426
1427 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
1428
1429         * tree-cfg.c (valid_fixed_convert_types_p): New function.
1430         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
1431
1432 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
1433
1434         * value-prof.c (interesting_stringop_to_profile): Do not
1435         return early for BUILT_IN_MEMPCPY.
1436
1437 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1438
1439         * calls.c (expand_call): Don't use callgraph to increase
1440         preferred_stack_boundary.
1441
1442         * cgraph.h (cgraph_rtl_info): Use unsigned on
1443         preferred_incoming_stack_boundary.
1444
1445         * final.c (rest_of_clean_state): Use unsigned on
1446         preferred_stack_boundary.
1447
1448 2008-05-09  Tom Tromey  <tromey@redhat.com>
1449
1450         PR preprocessor/22231:
1451         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
1452         proceeding.
1453
1454 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
1455
1456         PR tree-optimization/36129
1457         * tree-ssa-ccp.c: Include value-prof.h.
1458         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
1459         built-in function was folded to a constant.
1460         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
1461
1462 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
1463             Sebastian Pop  <sebastian.pop@amd.com>
1464
1465         * tree-scalar-evolution.c: Document instantiate_scev.
1466         (instantiate_parameters_1): Renamed instantiate_scev_1.
1467         Don't use the same loop for instantiation_loop and evolution_loop.
1468         (instantiate_scev): New.
1469         (instantiate_parameters): Moved...
1470         (resolve_mixers): Update call to instantiate_scev_1 to pass the
1471         same loop twice.  Maintains the semantics for this function.
1472         * tree-scalar-evolution.h (instantiate_scev): Declare.
1473         (instantiate_parameters): ...here.  Now static inline.
1474         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
1475         instead of resolve_mixers.
1476
1477 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1478
1479         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
1480
1481 2008-05-09  Tomas Bily  <tbily@suse.cz>
1482
1483         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
1484         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
1485         * tree-ssa-structalias.c (get_constraint_for): Likewise.
1486         * c-common.c (c_common_truthvalue_conversion): Likewise.
1487         * tree-object-size.c (compute_object_offset): Likewise.
1488         * tree-inline.c (estimate_num_insns_1): Likewise.
1489         * varasm.c (const_hash_1, compare_constant, copy_constant)
1490         (compute_reloc_for_constant, output_addressed_constants)
1491         (initializer_constant_valid_p): Likewise.
1492         * c-omp.c (check_omp_for_incr_expr): Likewise.
1493         * gimplify.c (gimplify_expr): Likewise.
1494         * c-typeck.c (c_finish_return): Likewise.
1495         * tree-vectorizer.c (supportable_widening_operation)
1496         (supportable_narrowing_operation): Likewise.
1497         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
1498         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
1499         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
1500         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
1501         (descr_info_loc): Likewise.
1502         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
1503         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
1504         (fold_unary): Likewise.
1505         * builtins.c (get_pointer_alignment): Likewise.
1506         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
1507         (instantiate_parameters_1): Likewise.
1508         * tree.c (expr_align, stabilize_reference): Likewise.
1509         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
1510         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
1511         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
1512         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
1513         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
1514         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
1515         Likewise.
1516         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
1517         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
1518         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
1519         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
1520         (forward_propagate_comparison)
1521         (tree_ssa_forward_propagate_single_use_vars): Likewise.
1522         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
1523         * emit-rtl.c (component_ref_for_mem_expr)
1524         (set_mem_attributes_minus_bitpos): Likewise.
1525         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
1526         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
1527         Likewise.
1528         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
1529         (build_function_call, pointer_diff, build_compound_expr)
1530         (c_finish_return): Likewise.
1531         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
1532         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
1533         Likewise.
1534         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
1535         * expr.c (is_aligning_offset): Likewise.
1536         * tree-ssa-alias.c (is_escape_site): Likewise.
1537         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
1538         (check_all_va_list_escapes): Likewise.
1539         * tree-ssa-loop-ivopts.c (determine_base_object)
1540         (determine_common_wider_type): Likewise.
1541         * dojump.c (do_jump): Likewise.
1542         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
1543         * tree-gimple.c (is_gimple_cast): Likewise.
1544         * fold-const.c (decode_field_reference, )
1545         (fold_sign_changed_comparison, fold_unary, fold_comparison)
1546         (fold_binary): Likewise.
1547         * tree-ssa-alias-warnings.c (find_alias_site_helper)
1548         (already_warned_in_frontend_p): Likewise.
1549         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
1550         * tree.c (really_constant_p, get_unwidened): Likewise.
1551         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
1552         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
1553         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
1554         Likewise.
1555         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
1556         CONVERT_EXPR_P.
1557         (CONVERT_EXPR_P): Define.
1558         (CASE_CONVERT): Define.
1559         
1560 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
1561
1562         PR middle-end/36117
1563         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
1564         (delete_unmarked_insns): When deleting a call, call
1565         delete_unreachable_blocks.
1566         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
1567         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
1568
1569 2008-05-08  Richard Guenther  <rguenther@suse.de>
1570
1571         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
1572         (-ftree-salias): Likewise.
1573         (salias-max-implicit-fields): Remove param documentation.
1574         (salias-max-array-elements): Likewise.
1575         * tree-pass.h (pass_create_structure_vars): Remove.
1576         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
1577         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
1578         * tree-ssa-alias.c (create_structure_vars): Remove.
1579         (gate_structure_vars): Likewise.
1580         (pass_create_structure_vars): Likewise.
1581         (gate_build_alias): Likewise.
1582         (pass_build_alias): Adjust to run always and dump the function.
1583         * common.opt (ftree-salias): Hide.
1584         * passes.c (init_optimization_passes): Remove
1585         pass_create_structure_vars, adjust comment.
1586         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
1587         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
1588         * opts.c (decode_options): Do not set flag_tree_salias.
1589         (common_handle_option): Add OPT_ftree_salias to the backward
1590         compatibility section.
1591
1592 2008-05-08  Richard Guenther  <rguenther@suse.de>
1593
1594         * tree-flow-inline.h (var_can_have_subvars): Move ...
1595         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
1596         * tree-flow.h (var_can_have_subvars): Remove.
1597         (push_fields_onto_fieldstack): Remove.
1598         (sort_fieldstack): Likewise.
1599         (struct fieldoff): Move ...
1600         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
1601         alias_set and base_for_components fields.
1602         (sort_fieldstack): Make static.
1603         (push_fields_onto_fieldstack): Likewise.  Remove code that
1604         handles anything but RECORD_TYPEs.  Remove alias_set and
1605         base_for_components handling.
1606         (create_variable_info_for): Adjust.
1607
1608 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
1609
1610         * common.opt (Wframe-larger-than=): Shorten the help message
1611         to one line.
1612         * doc/invoke.texi (Wframe-larger-than=): Add more description.
1613
1614 2008-05-08  Rafael Espindola  <espindola@google.com>
1615
1616         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
1617         trap.
1618         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
1619         trap and that both operands are gimple values.
1620         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
1621         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
1622         is a fp operation.
1623
1624 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
1625
1626         * read-rtl.c (join_c_conditions): Return the first string if the
1627         two strings are equal.
1628
1629 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
1630
1631         * gensupport.h (pred_data): Add a "num_codes" field.
1632         (add_predicate_code): Declare.
1633         * gensupport.c (add_predicate_code): New function.
1634         (std_pred_table): Add an "allows_const_p" field.
1635         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
1636         Remove the (incomplete) list of such codes from the codes field.
1637         (init_predicate_table): Use add_predicate_code.  Add all
1638         RTX_CONST_OBJs if allows_const_p is true.
1639         * genrecog.c (process_define_predicate): Use add_predicate_code.
1640
1641 2008-05-08  David Daney  <ddaney@avtrex.com>
1642             Richard Sandiford  <rsandifo@nildram.co.uk>
1643         
1644         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
1645         special case of constant zero operands.
1646         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
1647         old and new values.  Special case constant zero values.
1648         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
1649         fails.
1650         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
1651         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
1652
1653 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
1654
1655         PR target/36090
1656         * simplify-rtx.c (simplify_plus_minus): Create CONST of
1657         similar RTX_CONST_OBJ before CONST_INT.
1658
1659 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
1660
1661         * stmt.c (expand_stack_restore): Change sa mode if needed.
1662
1663 2008-05-08  Richard Guenther  <rguenther@suse.de>
1664
1665         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
1666         return type to bool.
1667         (ix86_sol10_return_in_memory): Likewise.
1668         (ix86_i386elf_return_in_memory): Likewise.
1669         (ix86_i386interix_return_in_memory): Likewise.
1670         * config/i386/i386.c (ix86_return_in_memory): Likewise.
1671         (ix86_sol10_return_in_memory): Likewise.
1672         (ix86_i386elf_return_in_memory): Likewise.
1673         (ix86_i386interix_return_in_memory): Likewise.
1674
1675 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
1676
1677         PR bootstrap/36180
1678         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
1679         fndecl argument.
1680         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
1681         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
1682         declared in front.
1683
1684 2008-05-08  Richard Guenther  <rguenther@suse.de>
1685
1686         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
1687         * tree-data-ref.h (struct dr_alias): Remove subvars field.
1688         (DR_SUBVARS): Remove.
1689         * tree-dfa.c (dump_subvars_for): Remove.
1690         (debug_subvars_for): Likewise.
1691         (dump_variable): Do not dump subvars.
1692         (remove_referenced_var): Do not remove subvars.
1693         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
1694         (lookup_subvars_for_var): Remove.
1695         (get_subvars_for_var): Likewise.
1696         (get_subvars_at): Likewise.
1697         (get_first_overlapping_subvar): Likewise.
1698         (overlap_subvar): Likewise.
1699         * tree-flow.h (subvar_t): Remove.
1700         (struct var_ann_d): Remove subvars field.
1701         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
1702         argument.  Remove special handling of SFTs.
1703         (compute_tag_properties): Likewise.
1704         (set_initial_properties): Likewise.
1705         (compute_call_clobbered): Likewise.
1706         (count_mem_refs): Likewise.
1707         (compute_memory_partitions): Likewise.
1708         (compute_flow_insensitive_aliasing): Likewise.
1709         (setup_pointers_and_addressables): Likewise.
1710         (new_type_alias): Likewise.
1711         (struct used_part): Remove.
1712         (used_portions): Likewise.
1713         (struct used_part_map): Likewise.
1714         (used_part_map_eq): Likewise.
1715         (used_part_map_hash): Likewise.
1716         (free_used_part_map): Likewise.
1717         (up_lookup): Likewise.
1718         (up_insert): Likewise.
1719         (get_or_create_used_part_for): Likewise.
1720         (create_sft): Likewise.
1721         (create_overlap_variables_for): Likewise.
1722         (find_used_portions): Likewise.
1723         (create_structure_vars): Likewise.
1724         * tree.def (STRUCT_FIELD_TAG): Remove.
1725         * tree.h (MTAG_P): Adjust.
1726         (struct tree_memory_tag): Remove base_for_components and
1727         unpartitionable flags.
1728         (struct tree_struct_field_tag): Remove.
1729         (SFT_PARENT_VAR): Likewise.
1730         (SFT_OFFSET): Likewise.
1731         (SFT_SIZE): Likewise.
1732         (SFT_NONADDRESSABLE_P): Likewise.
1733         (SFT_ALIAS_SET): Likewise.
1734         (SFT_UNPARTITIONABLE_P): Likewise.
1735         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
1736         (union tree_node): Remove sft field.
1737         * alias.c (get_alias_set): Remove special handling of SFTs.
1738         * print-tree.c (print_node): Remove handling of SFTs.
1739         * tree-dump.c (dequeue_and_dump): Likewise.
1740         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
1741         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
1742         * tree-predcom.c (set_alias_info): Do not set subvars.
1743         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
1744         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
1745         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
1746         (add_vars_for_offset): Remove.
1747         (add_virtual_operand): Remove special handling of SFTs.
1748         (add_call_clobber_ops): Likewise.
1749         (add_call_read_ops): Likewise.
1750         (get_asm_expr_operands): Likewise.
1751         (get_modify_stmt_operands): Likewise.
1752         (get_expr_operands): Likewise.
1753         (add_to_addressable_set): Likewise.
1754         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
1755         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
1756         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
1757         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
1758         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
1759         (tree_node_structure): Likewise.
1760         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
1761         handling of SFTs.
1762         (find_what_p_points_to): Likewise.
1763
1764 2008-05-08  Sa Liu  <saliu@de.ibm.com>
1765
1766         * config/spu/spu.md: Fixed subti3 pattern.
1767
1768 2008-05-08  Richard Guenther  <rguenther@suse.de>
1769
1770         PR middle-end/36154
1771         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
1772         sure to create a representative for trailing arrays for PTA.
1773
1774 2008-05-08  Richard Guenther  <rguenther@suse.de>
1775
1776         PR middle-end/36172
1777         * fold-const.c (operand_equal_p): Two objects which types
1778         differ in pointerness are not equal.
1779
1780 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
1781
1782         * calls.c (compute_argument_block_size): Add argument tree fndecl.
1783         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
1784         (emit_library_call_value_1): Add new variable fndecl initialized by
1785         NULL_TREE. It should be the decl type of orgfun, but this information
1786         seems not to be available here, so it uses the default calling abi.
1787         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
1788         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
1789         by TARGET_RETURN_IN_MEMORY.
1790         * config/i386/i386-interix.h: Likewise.
1791         * config/i386/i386.h: Likewise.
1792         * config/i386/i386elf.h: Likewise.
1793         * config/i386/ptx4-i.h: Likewise.
1794         * config/i386/sol2-10.h: Likewise.
1795         * config/i386/sysv4.h: Likewise.
1796         * config/i386/vx-common.h: Likewise.
1797         * config/cris/cris.h: Removed #if 0 clause.
1798         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
1799         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
1800         argument.
1801         (ix86_sol10_return_in_memory): Likewise.
1802         (ix86_i386elf_return_in_memory): New.
1803         (ix86_i386interix_return_in_memory): New.
1804         * config/mt/mt-protos.h (mt_return_in_memory): New.
1805         * config/mt/mt.c: Likewise.
1806         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
1807         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
1808         * config/bfin/bfin.h: Likewise.
1809         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
1810         argument.
1811         * config/bfin/bfin.c: Likewise.
1812         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
1813         * config/alpha/unicosmk.h: Likewise.
1814         * config/i386/cygming.h: Likewise.
1815         * config/iq2000/iq2000.h: Likewise.
1816         * config/mips/mips.h: Likewise.
1817         * config/mn10300/mn10300.h: Likewise.
1818         * config/rs6000/rs6000.h: Likewise.
1819         * config/score/score.h: Likewise.
1820         * config/spu/spu.h: Likewise.
1821         * config/v850/v850.h: Likewise.
1822         * defaults.h: Likewise.
1823         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
1824         * expr.c (emit_block_move): Adjust use of
1825         OUTGOING_REG_PARM_STACK_SPACE.
1826         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
1827         OUTGOING_REG_PARM_STACK_SPACE.
1828         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
1829
1830 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
1831
1832         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
1833         on OMP_RETURN for OMP_FOR.
1834
1835         PR debug/35896
1836         * dwarf2out.c (dw_expand_expr, common_check): Removed.
1837         (fortran_common): New function.
1838         (gen_variable_die): Call fortran_common instead of common_check,
1839         adjust for it returning tree instead of rtx.  Formatting.
1840
1841 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
1842
1843         PR rtl/7335
1844         PR rtl/33826
1845         * see.c (see_copy_insn): Copy new pure const attributes for new call.
1846         * c-decl.c (merge_decls): Ditto.
1847         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
1848         to RTL_CONST_OR_PURE_CALL_P.
1849         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
1850         Initialized DECL_LOOPING_CONST_PURE.
1851         (process_call_operands): Set tree_side_effects properly.
1852         * tree.h (TREE_READONLY_DECL_P): Removed.
1853         (DECL_IS_PURE): Renamed to DECL_PURE_P.
1854         (DECL_LOOPING_OR_CONST_P): New macro.
1855         (struct tree_function_decl): Added looping_const_or_pure_p.
1856         (ECF_*) Renumbered.
1857         (ECF_LOOPING_OR_CONST_P): New macro.
1858         * rtlanal.c (pure_const_p): Removed.
1859         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
1860         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
1861         to RTL_CONST_CALL_P.
1862         * ipa-pure-const.c (pure_const_state_e): Added looping field.
1863         (check_decl, check_tree, check_call, scan_function): Initialize
1864         looping.
1865         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
1866         (static_execute): Set looping true for recursive functions.
1867         Undo setting state to IPA_NEITHER for recursive functions.
1868         * cse.c (cse_insn): 
1869         * ifcvt.c (noce_can_store_speculate_p): Changed
1870         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
1871         RTL_CONST_OR_PURE_CALL_P.
1872         * dse.c (scan_insn): Ditto.
1873         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
1874         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
1875         RTL_CONST_OR_PURE_CALL_P.
1876         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
1877         pure_call_p to RTL_CONST_CALL_P.
1878         * gimplify.c (gimplify_call_expr): Clear side effects for
1879         non-looping pure and constant calls.
1880         * calls.c (emit_call_1): Set rtl flags from ecf flags.
1881         (flags_from_decl_or_type): Set ecf flags from decl flags.
1882         (initialize_argument_information): Turn off
1883         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
1884         Change const to pure if callee_copies is true rather than just
1885         turning off const.
1886         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
1887         way of marking pure calls.
1888         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
1889         Remove hack that was supposed to fix pr7335 and remove old
1890         way of marking pure calls.
1891         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
1892         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
1893         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
1894         RTL_CONST_OR_PURE_CALL_P.
1895         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
1896         * loop-invariant.c (find_exits, find_invariant_bb): Changed
1897         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
1898         * sched-deps.c (schedule_analyze): Ditto.
1899         * rtl.h (struct rtx_def): Use call field, unchanging field, and
1900         return_val field of calls to represent pure and const function info.
1901         (CONST_OR_PURE_CALL_P): Deleted macro.
1902         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
1903         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
1904         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
1905         TREE_READONLY.
1906         * tree-optimize.c (execute_fixup_cfg): Added test for
1907         ECF_LOOPING_CONST_OR_PURE.
1908         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
1909         DECL_PURE_P.
1910         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
1911         effects for looping pure or const calls.
1912         (verify_gimple_expr): Added verification code. 
1913         * config/alpha/alpha.c (alpha_legitimize_address,
1914         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
1915         RTL_CONST_CALL_P.
1916         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
1917         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
1918         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
1919         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
1920         RTL_CONST_OR_PURE_CALL_P.
1921         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
1922         and const calls to be deleted.
1923
1924 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
1925
1926         PR target/35714
1927         * config/i386/mmx.md (mmx_subv2sf3): New expander.
1928         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
1929         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
1930         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
1931         to handle nonimmediate operands.
1932         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
1933         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
1934         to handle nonimmediate operands.
1935         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
1936         (mmx_pmulhrwv4hi3): New expander.  Use
1937         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1938         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
1939         (sse2_umulv1siv1di3): New expander.  Use
1940         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1941         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
1942         (mmx_eq<mode>3): New expander.  Use
1943         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1944         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
1945         (mmx_uavgv8qi3): New expander.  Use
1946         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1947         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
1948         (mmx_uavgv4hi3): New expander.  Use
1949         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1950
1951         * config/i386/sse.md
1952         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
1953         to handle nonimmediate operands.
1954         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
1955         to handle nonimmediate operands.
1956         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
1957         to handle nonimmediate operands.
1958         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
1959         to handle nonimmediate operands.
1960         (sse2_unpckhpd_exp): New expander.  Use
1961         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1962         (sse2_unpcklpd_exp): New expander.  Use
1963         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1964         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
1965         to handle nonimmediate operands.
1966         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
1967         to handle nonimmediate operands.
1968         (*sse2_<plusminus_insn><mode>3): Rename from
1969         sse2_<plusminus_insn><mode>3 insn pattern.
1970         (sse2_<plusminus_insn><mode>3): New expander.  Use
1971         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1972         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
1973         (sse2_umulv2siv2di3): New expander.  Use
1974         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1975         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
1976         (sse4_1_mulv2siv2di3): New expander.  Use
1977         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1978         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
1979         (sse2_pmaddwd): New expander.  Use
1980         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1981         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
1982         (sse2_eq<mode>3): New expander.  Use
1983         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1984         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
1985         (sse4_1_eqv2di3): New expander.  Use
1986         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1987         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
1988         (sse2_uavgv16qi3): New expander.  Use
1989         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1990         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
1991         (sse2_uavgv16qi3): New expander.  Use
1992         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1993         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
1994         (sse2_uavgv8hi3): New expander.  Use
1995         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1996         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
1997         (ssse3_pmulhrswv8hi3): New expander.  Use
1998         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1999         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
2000         (ssse3_pmulhrswv4hi3): New expander.  Use
2001         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2002
2003         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
2004         (<sse>_vmmul<mode>3): Ditto.
2005         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
2006         (divv2df3): Ditto.
2007         (ssse3_pmaddubsw128): Use register_operand for operand 1.
2008         (ssse3_pmaddubsw): Ditto.
2009
2010         * config/i386/i386.c (struct_builtin_description)
2011         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
2012         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
2013         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
2014         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
2015         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
2016         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
2017         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
2018         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
2019         (ix86_fixup_binary_operands): Assert that src1
2020         and src2 must have the same mode when swapped.
2021         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
2022         and ix86_binary_operator_ok.  Do not force operands in registers
2023         when optimizing.
2024
2025 2008-05-07  Jan Hubicka  <jh@suse.cz>
2026
2027         * cgraph.c (dump_cgraph_node): Update.
2028         * cgraph.h (cgraph_local_info): Break out inline summary.
2029         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
2030         hook.
2031         * ipa-inline (inline_summary): New accestor function.
2032         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
2033         cgraph_decide_inlining, compute_inline_parameters): Update.
2034         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
2035
2036 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2037
2038         Cleanup ColdFire scheduling support and add V4 pipeline model.
2039
2040         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
2041         (define_attr cpu): Add cfv4 value.
2042         (define_attr type, define_attr type1): Merge into a single 'type'
2043         attribute.  Update all uses.
2044         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
2045         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
2046         Update all uses.
2047         (define_attr opx_mem, define_attr opy_mem): Remove.
2048         (define_attr op_mem): Clean up, update comment.
2049         (define_attr size): Use specific values instead of general int.
2050         (define_attr guess, define_attr split): Remove.  Update all uses.
2051         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
2052         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
2053         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
2054         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
2055         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
2056         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
2057         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
2058         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
2059         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
2060         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
2061         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
2062         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
2063         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
2064         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
2065         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
2066         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
2067         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
2068         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
2069         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
2070         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
2071         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
2072         Update or set attributes.
2073         (stack_tie): New fake instruction.
2074
2075         * config/m68k/m68k.h (TUNE_CFV4): New macro.
2076         (m68k_sched_attr_size): Update declaration.
2077         (m68k_sched_attr_type2): Remove.
2078         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
2079         Declare new bypass predicates.
2080
2081         * config/m68k/m68k.c (m68k_sched_issue_rate,
2082         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
2083         implementations.
2084         (TARGET_SCHED_ISSUE_RATE,
2085         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
2086         (override_options): Handle scheduling for ColdFire V4 core.
2087         (m68k_expand_prologue): Emit stack_tie.
2088         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
2089         'OP_TYPE_FPN'.  Update all uses.
2090         (sched_guess_p): Remove.
2091         (sched_address_type): Handle symbolic addresses.
2092         (sched_get_operand): New static function.
2093         (sched_operand_type): Merge into sched_attr_op_type.
2094         (sched_attr_op_type): Handle FP registers, handle quick constants,
2095         update.
2096         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
2097         (m68k_sched_attr_size): Update.  Move logic to ...
2098         (sched_get_attr_size_int): New static function.
2099         (sched_get_opxy_mem_type): New static function.
2100         (m68k_sched_attr_op_mem): Update.
2101         (m68k_sched_attr_type2): Remove.
2102         (sched_cfv4_bypass_data): New static variable.
2103         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
2104         (m68k_sched_issue_rate): Implement scheduler hook.
2105         (struct _sched_ib: enabled_p): New field.
2106         (m68k_sched_variable_issue): Update.  Handle V4.
2107         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
2108         sched_dump_class_func_t, sched_dump_split_class,
2109         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
2110         sched_dump_dfa_class, m68k_sched_dump): Remove.
2111         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
2112         hook.
2113         (m68k_sched_init_global): Remove statisctics dumping, introduce
2114         sanity check that all instructions have pipeline reservations.  Handle
2115         ColdFire V4 core.
2116         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2117         Handle ColdFire V4 core.
2118         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
2119         New static functions.
2120         (m68k_sched_address_bypass_p): New bypass predicate.
2121         (sched_get_indexed_address_scale): New static function.
2122         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
2123
2124         * cf.md: Update comments.
2125         (define_attr type2): Remove.  Use 'type' attribute instead.
2126         Update all uses.
2127         (cf_ib): Rename to cfv123_ib.  Update all uses.
2128         (cf_oep): Rename to cfv123_oep.  Update all uses.
2129         (cf_chr): Rename to cfv123_chr.  Update all uses.
2130         (cf_mem): Rename to cfv123_mem.  Update all uses.
2131         (cf_mac): Move to more appropriate place.
2132         (cfv123_guess): New automaton and cpu_unit.
2133         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
2134         Update uses of 'size' attribute.  Handle before reload scheduling.
2135         (cfv123_guess): New dummy reservation for unhandled instructions.
2136         (cfv4_*): Pipeline description of ColdFire V4 core.
2137         (ignore): New reservation to handle 'ignore' type.
2138
2139 2008-05-07  Ian Lance Taylor  <iant@google.com>
2140
2141         PR middle-end/36013
2142         * gimplify.c (find_single_pointer_decl_1): Don't look through
2143         indirections.
2144         (find_single_pointer_decl): Adjust comments.
2145
2146 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
2147
2148         PR middle-end/36137
2149         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
2150         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
2151
2152         PR middle-end/36106
2153         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
2154         integral type rather than floating point, then VIEW_CONVERT_EXPR
2155         to the floating point type.
2156
2157 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
2158
2159         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
2160         TFmode op0 to register.
2161
2162 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
2163
2164         * c-decl.c (grokdeclarator): Comment typo.
2165
2166 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
2167
2168         * tree-flow.h: Remove prototype for computed_goto_p.
2169         * tree-cfg.c (computed_goto_p): Make static.
2170
2171 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
2172
2173         PR target/35657
2174         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
2175         (contains_aligned_value_p): This.  Handle _Decimal128.
2176         (ix86_function_arg_boundary): Only align _Decimal128 to its
2177         natural boundary and handle it properly.
2178
2179 2008-05-06  Martin Jambor  <mjambor@suse.cz>
2180
2181         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
2182         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
2183         (ipcp_method_set_orig_node): Removed.
2184         (ipcp_cval_get_cvalue_type): Removed.
2185         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
2186         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
2187         (ipcp_cval_set_cvalue_type): Removed.
2188         (ipcp_cval_get_cvalue): Removed.
2189         (ipcp_cval_set_cvalue): Removed.
2190         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
2191         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
2192         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
2193         (ipcp_cval_meet): Renamed to ipa_lattice_meet
2194         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
2195         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
2196         (ipcp_get_ith_lattice): Changed parameters.
2197         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
2198         (ipcp_lattice_from_jfunc): Changed parameters.
2199         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
2200         (ipcp_method_cval_print): Added temporary variable info.
2201         (ipcp_redirect): Removed already unused local variable caller.
2202         (ipcp_redirect): New temporary variable orig_callee_info
2203         (ipcp_redirect): Removed newly unused local variable callee.
2204         (ipcp_redirect): Removed (a bit confusing) local variable type.
2205         (ipcp_insert_stage): Added local variable info.
2206         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
2207         renamed too
2208         (ipcp_formal_create): Removed.
2209         (ipcp_method_cval_set): Removed.
2210         (ipcp_propagate_stage): Renamed lattice variables.
2211         (ipcp_method_cval_set_cvalue_type): Removed.
2212         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
2213         (ipcp_print_all_lattices): Changed printed strings to refer to 
2214         lattices rather than cvals.
2215         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
2216         (ipcp_propagate_const): Changed formal parameters.
2217         (build_const_val): Changed formal parameters.
2218         (ipcp_insert_stage): Removed useless variable cvalue
2219         (build_const_val): Changed formal parameters.
2220         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
2221         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
2222         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
2223         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
2224         (ipcp_print_func_profile_counts): Changed string from "method" to 
2225         "function"
2226         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
2227         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
2228         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
2229         (ipcp_structures_print): Renamed to ipcp_print_all_structures
2230         (ipcp_profile_print): Renamed to ipcp_print_profile_data
2231         (ipcp_lat_is_const): Changed parameters and made inline.
2232         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
2233         (ipcp_redirect): Renamed to ipcp_need_redirect_p
2234         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
2235         the predicate condition directly
2236         (ipcp_propagate_stage): Added local variable args. Removed local
2237         variable callee.  (Both are mere code simplifications.)
2238         (ipcp_method_dont_insert_const): Renamed to
2239         ipcp_node_not_modifiable_p.
2240         (ipcp_node_not_modifiable_p): Made inline.
2241         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
2242         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
2243         (ipcp_print_all_lattices): Removed variable cvalue
2244         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
2245         Updated comments.
2246
2247 2008-05-06  Olivier Hainque  <hainque@adacore.com>
2248
2249         * tree-sra.c (try_instantiate_multiple_fields): Early return
2250         if field has POINTER_TYPE.
2251
2252 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
2253
2254         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
2255         by using 'q' specifier for instruction.
2256         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
2257
2258 2008-05-06  Anatoly Sokolov <aesok@post.ru>
2259
2260         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
2261         Change mode of zero_extract from QImode to HImode.
2262         (sign bit tests peepholes): (Ditto.).
2263
2264 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
2265
2266         * config/i386/mmx.md: Remove double backslashes from asm templates.
2267         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
2268         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2269         to handle nonimmediate operands.
2270         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
2271         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2272         to handle nonimmediate operands.
2273         (*mmx_<code>v2sf3_finite): New insn pattern.
2274         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
2275         (mmx_<code>v2sf3): New expander.  Use
2276         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2277         (mmx_<plusminus_insn><mode>3): New expander.  Use
2278         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2279         (*mmx_<plusminus_insn><mode>3): New insn pattern.
2280         (mmx_add<mode>3): Removed.
2281         (mmx_ssadd<mode>3): Ditto.
2282         (mmx_usadd<mode>3): Ditto.
2283         (mmx_sub<mode>3): Ditto.
2284         (mmx_sssub<mode>3): Ditto.
2285         (mmx_ussub<mode>3): Ditto.
2286         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
2287         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
2288         to handle nonimmediate operands.
2289         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
2290         insn pattern.
2291         (mmx_smulv4hi3_highpart): New expander.  Use
2292         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2293         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
2294         insn pattern.
2295         (mmx_umulv4hi3_highpart): New expander.  Use
2296         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2297         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
2298         (mmx_<code>v4hi3): New expander.  Use
2299         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2300         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
2301         (mmx_<code>v8qi3): New expander.  Use
2302         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2303         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
2304         (mmx_<code><mode>3): New expander.  Use
2305         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2306
2307 2008-05-05  Jan Hubicka  <jh@suse.cz>
2308
2309         PR tree-optimization/36118
2310         * passes.c (pass_init_dump_file): Fix dump header.
2311
2312 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2313
2314         PR middle-end/36141
2315         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
2316         VCE for function decls.
2317
2318 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2319
2320         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
2321
2322 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2323
2324         * config/i386/i386.md (sat_plusminus): New.
2325         (plusminus_insn): Likewise.
2326         (plusminus_mnemonic): Likewise.
2327         (addsub): Removed.
2328         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
2329         (*<addsub><mode>3_cc_overflow): Renamed to ...
2330         (*<plusminus_insn><mode>3_cc_overflow): This.
2331         (*<addsub>si3_zext_cc_overflow): Renamed to ...
2332         (*<plusminus_insn>si3_zext_cc_overflow): This.
2333
2334         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
2335         (<plusminus_insn><mode>3): This.
2336         (*<addsub><mode>3): Renamed to ...
2337         (*<plusminus_insn><mode>3): This.
2338         (<sse>_vm<addsub><mode>3): Renamed to ...
2339         (<sse>_vm<plusminus_insn><mode>3): This.
2340         (sse3_h<addsub>v4sf3): Renamed to ...
2341         (sse3_h<plusminus_insn>v4sf3): This.
2342         (sse3_h<addsub>v2df3): Renamed to ...
2343         (sse3_h<plusminus_insn>v2df3): This.
2344         (<plusminus_insn><mode>3): New.
2345         (*<plusminus_insn><mode>3): Likewise.
2346         (sse2_<plusminus_insn><mode>3): Likewise.
2347         (add<mode>): Removed.
2348         (*add<mode>3): Likewise.
2349         (sse2_ssadd<mode>3): Likewise.
2350         (sse2_usadd<mode>3): Likewise.
2351         (sub<mode>3): Likewise.
2352         (*sub<mode>3): Likewise.
2353         (sse2_sssub<mode>3): Likewise.
2354         (sse2_ussub<mode>3): Likewise.
2355
2356 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
2357
2358         * gthr-single.h: Add in required interface elements as per gthr.h.
2359         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
2360         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
2361         Generalize UNUSED macro. 
2362         (__gthread_once): Add.
2363         (__gthread_key_create): Add.
2364         (__gthread_key_delete): Add.
2365         (__gthread_getspecific): Add.
2366         (__gthread_setspecific): Add.
2367         
2368 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
2369
2370         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
2371         the same size types for the indirect reference on the rhs, then
2372         create a VCE.
2373
2374 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
2375
2376         * config/i386/i386.md
2377         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
2378         one insn template instead of template series.
2379         (*xordi_1_rex64): Ditto.
2380         (*xordi_2_rex64): Ditto.
2381
2382 2008-05-05  Ira Rosen  <irar@il.ibm.com>
2383
2384         PR tree-optimization/36119
2385         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
2386         in case of SLP.
2387
2388 2008-06-04  Jan Hubicka  <jh@suse.cz>
2389
2390         tree-optimization/36100
2391         * tree-pass.h (pass_O0_always_inline): Declare.
2392         * ipa-inline.c (inline_transform): Remove dead code.
2393         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
2394         pass_O0_always_inline): New.
2395         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
2396
2397 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
2398
2399         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
2400         mnemonic in this_param move for TARGET_64BIT.
2401
2402 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
2403
2404         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
2405         (*strmovsi_rex_1): Ditto.
2406         (*strsetsi_1): Ditto.
2407         (*strsetsi_rex_1): Ditto.
2408
2409         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
2410         adddicc expanders using SWI mode iterator.
2411
2412 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2413
2414         PR target/36121
2415         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
2416         argument handling.
2417
2418 2008-05-04  David S. Miller  <davem@davemloft.net>
2419
2420         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
2421         (sparc*-*-linux*): Use linux.h in tm_file.
2422         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
2423         compiler defaulting to 32-bit.
2424         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
2425         no longer needed.
2426         * config/sparc/linux.h: Remove definitions now obtained
2427         properly from linux.h
2428         * config/sparc/linux64.h: Likewise.
2429         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
2430         don't want this setting for 32-bit builds in a biarch compiler.
2431         * doc/install.texi: Add sparc-linux to list of targets
2432         supporting --enable-targets=all.
2433
2434 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
2435
2436         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
2437
2438 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
2439
2440         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
2441         after V4SI_FTYPE_V8HI.
2442         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
2443         case V4SI_FTYPE_V2DF.
2444
2445 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
2446
2447         * doc/invoke.texi (max-flow-memory-locations): Removed.
2448         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
2449         
2450 2008-05-03  Richard Guenther  <rguenther@suse.de>
2451
2452         PR middle-end/34973
2453         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
2454
2455 2008-05-02  David S. Miller  <davem@davemloft.net>
2456
2457         * config.gcc (need_64bit_hwint): Document libcpp dependency.
2458
2459 2008-05-02  Simon Baldwin <simonb@google.com>
2460
2461         PR bootstrap/36108
2462         * c-common.h (warn_array_subscript_range): Removed.
2463         * c-common.c (warn_array_subscript_range): Ditto.
2464         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
2465         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
2466
2467 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
2468
2469         * config/i386/i386.c (ix86_special_builtin_type): New.
2470         (bdesc_special_args): Likewise.
2471         (ix86_expand_special_args_builtin): Likewise.
2472         (ix86_init_mmx_sse_builtins): Updated.
2473         (ix86_expand_builtin): Updated.
2474         (ix86_expand_store_builtin): Removed.
2475         (ix86_expand_unop_builtin): Likewise.
2476
2477         * config/i386/mm3dnow.h (__v2sf): Moved to ...
2478         * config/i386/mmintrin.h (__v2sf): Here.
2479
2480         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
2481         const __v2sf.
2482         (_mm_loadl_pi): Likewise.
2483         (_mm_storeh_pi): Replace __v2si with __v2sf.
2484         (_mm_storel_pi): Likewise.
2485
2486         * doc/extend.texi: Correct __builtin_ia32_loadhps,
2487         __builtin_ia32_loadlps, __builtin_ia32_storehps,
2488         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
2489         __builtin_ia32_loadlpd.
2490
2491 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
2492
2493         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
2494         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
2495         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
2496         (ix86_init_mmx_sse_builtins): Updated.
2497         (ix86_expand_args_builtin): Likewise.
2498         (ix86_expand_builtin): Likewise.
2499         (ix86_expand_unop1_builtin): Renamed to ...
2500         (ix86_expand_unop_vec_merge_builtin): This.
2501
2502 2008-05-01  Jan Hubicka  <jh@suse.cz>
2503
2504         PR bootstrap/36100
2505         * ipa-inline.c (inline_generate_summary): Make static.
2506         (inline_transform): Do not call inlining at -O0; make static.
2507         * passes.c (execute_todo): Add sanity check.
2508         (execute_one_ipa_transform_pass): Execute proper flags.
2509
2510 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
2511
2512         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
2513         (DECL_NONADDRESSABLE_P): Likewise.
2514         * alias.c (record_component_aliases): Fix comment.
2515
2516 2008-05-01  Simon Baldwin <simonb@google.com>
2517
2518         * c-common.h (warn_array_subscript_range): New function.
2519         * c-common.c (warn_array_subscript_range): Ditto.
2520         * tree-vrp.c (check_array_ref): Corrected code to agree with
2521         comment, ignoring only arrays of size 0 or size 1.
2522         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
2523
2524 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
2525
2526         * config/i386/i386.c (ix86_builtin_type): Replace
2527         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
2528         (bdesc_args): Updated.
2529         (ix86_init_mmx_sse_builtins): Likewise.
2530         (ix86_expand_args_builtin): Likewise.
2531
2532         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
2533         with __v1di.
2534
2535         * doc/extend.texi: Correct __builtin_ia32_palignr.
2536
2537 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
2538
2539         PR target/36095
2540         * config/i386/i386.c (bdesc_crc32): Removed.
2541         (ix86_expand_crc32): Likewise.
2542         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
2543         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
2544         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
2545         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
2546         UINT_FTYPE_UINT_UCHAR.
2547         (bdesc_args): Updated. Add crc32 builtins.
2548         (ix86_init_mmx_sse_builtins): Updated.
2549         (ix86_expand_args_builtin): Updated to support subreg.
2550
2551         * doc/extend.texi: Correct __builtin_ia32_crc32di.
2552
2553 2008-05-01  Jan Hubicka  <jh@suse.cz>
2554
2555         * tree-pass.h (opt_pass): Add IPA_PASS.
2556         (varpool_node, cgraph_node): Forward declare.
2557         (ipa_opt_pass): Define.
2558         (pass_ipa_inline): Turn into ipa_opt_pass.
2559         (pass_apply_inline): Remove.
2560         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
2561         (apply_inline): Turn into ....
2562         (inline_transform): ... this one.
2563         (inline_generate_summary): New function.
2564         (pass_apply_inline): Remove.
2565         * function.h (ipa_opt_pass): Forward declare structure; typedef;
2566         vector.
2567         (struct function): Add ipa_transforms_to_apply.
2568         * passes.c (register_one_dump_file): Work on IPA_PASS.
2569         (init_optimization_passes): Remove pass_inline_parameters and
2570         pass_apply_inline.
2571         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
2572         (execute_one_pass) ... here; apply transforms when possible.
2573         (add_ipa_transform_pass, execute_ipa_summary_asses,
2574         execute_one_ipa_transform_pass): New.
2575         (execute_ipa_pass_list): Update for IPA_PASS type.
2576
2577 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
2578
2579         * config/i386/i386.c (ix86_builtin_type): Add
2580         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
2581         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
2582         (bdesc_args): Add SSE4a builtins.
2583         (ix86_init_mmx_sse_builtins): Updated.
2584         (ix86_expand_args_builtin): Likewise.
2585         (ix86_expand_builtin): Likewise.
2586
2587 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
2588
2589         * config/i386/i386.c (ix86_builtin_type): Add
2590         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
2591         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
2592         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
2593         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
2594         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
2595         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
2596         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
2597         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
2598         and DI_FTYPE_DI_DI_INT.
2599         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
2600         (ix86_init_mmx_sse_builtins): Updated.
2601         (ix86_expand_args_builtin): Likewise.
2602         (ix86_expand_builtin): Likewise.
2603         (ix86_expand_binop_imm_builtin): Removed.
2604
2605         * doc/extend.texi: Correct __builtin_ia32_palignr128.
2606
2607 2008-04-30  Richard Guenther  <rguenther@suse.de>
2608
2609         PR tree-optimization/32921
2610         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
2611
2612 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
2613
2614         * config/arm/arm.c (arm_unwind_emit): Use
2615         crtl->all_throwers_are_sibcalls instead of
2616         cfun->all_throwers_are_sibcalls.
2617         (arm_output_fn_unwind): Likewise.
2618         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
2619         instead of cfun->uses_pic_offset_table.
2620         (frv_expand_prologue): Likewise.
2621         (frv_frame_pointer_required): Likewise.
2622         (frv_expand_fdpic_call): Likewise.
2623         (frv_emit_movsi): Likewise.
2624         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
2625         cfun->returns_pcc_struct instead of
2626         current_function_returns_pcc_struct.
2627         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
2628         instead of cfun->calls_eh_return.
2629         (m32c_pushm_popm): Likewise.
2630         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
2631         "extern" declaration.
2632
2633 2008-04-30  Richard Guenther  <rguenther@suse.de>
2634
2635         PR tree-optimization/21636
2636         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
2637         constant address.
2638         (evaluate_stmt): Print the likely value.
2639         (ccp_visit_stmt): Avoid excessive vertical spacing.
2640
2641 2008-04-30  Rafael Espindola  <espindola@google.com>
2642
2643         * builtins.c (fold_call_expr): Return realret.
2644         * tree-ssa-threadedge.c
2645         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
2646         __builtin_object_size.
2647
2648 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
2649
2650         * gcc.c (wrapper_string): New variable.
2651         (insert_wrapper): New function.
2652         (execute): New option -wrapper.
2653         * doc/invoke.texi (Overall Options): New driver option -wrapper.
2654
2655 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
2656
2657         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
2658         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
2659         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
2660         from...
2661         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
2662         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
2663         config/rs6000/e500crtres64gprctr.asm,
2664         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
2665         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
2666         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
2667         config/rs6000/e500crtsav64gprctr.asm,
2668         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
2669         config/rs6000/e500crtsavg64gprctr.asm: New files.
2670         * config/rs6000/t-ppccomm: Add build rules for new files.
2671         (LIB2FUNCS_STATIC_EXTRA): Add new files.
2672         * config/rs6000/t-netbsd: Add build rules for new files.
2673         (LIB2FUNCS_STATIC_EXTRA): New variable.
2674         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
2675         (CRTSAVRES_DEFAULT_SPEC): Likewise.
2676         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
2677
2678 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
2679
2680         * config/i386/i386.c (ix86_builtin_type): Add
2681         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
2682         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
2683         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
2684         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
2685         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
2686         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
2687         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
2688         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
2689         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
2690         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
2691         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
2692         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
2693         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
2694         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
2695         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
2696         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
2697         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
2698         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
2699         V1DI_FTYPE_V2SI_V2SI.
2700         (bdesc_2arg): Moved to ...
2701         (bdesc_args): Here.
2702         (ix86_init_mmx_sse_builtins): Updated.
2703         (ix86_expand_args_builtin): Updated.  Take a pointer
2704         to const struct builtin_description.  Handle comparison
2705         builtin functions.
2706         (ix86_expand_sse_compare): Take a new argument for swapping operands.
2707         (ix86_expand_builtin): Updated.
2708
2709         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
2710         (ssse3_pmaddubsw128): This.
2711         (ssse3_pmaddubswv4hi3): Renamed to ...
2712         (ssse3_pmaddubsw): This.
2713
2714         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
2715         (__builtin_ia32_packssdw128): Likewise.
2716         (__builtin_ia32_packuswb128): Likewise.
2717         (__builtin_ia32_pmaddubsw): Likewise.
2718         (__builtin_ia32_pmaddubsw128): Likewise.
2719
2720 2008-04-30  Richard Guenther  <rguenther@suse.de>
2721
2722         PR tree-optimization/14847
2723         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
2724         (recognize_bits_test): Use it.
2725         (recognize_single_bit_test): Likewise.
2726
2727 2008-04-30  Martin Jambor  <mjambor@suse.cz>
2728
2729         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
2730         instead of setting number of formal parameters to zero.
2731         (ipcp_init_stage): Do not set the number of actual parameters to zero 
2732         either.
2733         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
2734         which are called with variable number of arguments.
2735         (ipcp_insert_stage): Explicitely skipping all nodes which are
2736         called with variable number of arguments.
2737         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
2738         number of parameters.
2739
2740         * ipa-prop.h (struct ipa_node_params): Added flag
2741         called_with_var_arguments
2742         (ipa_set_param_count): Added.  Changed sole setter to use it.
2743         (ipa_get_param_count): Added.  All readers of param_count
2744         converted to use it instead.
2745         (ipa_set_called_with_variable_arg): Added.
2746         (ipa_is_called_with_var_arguments): Added.
2747         (ipa_get_ith_param): Added.  All readers of param_decls converted
2748         to use it instead.
2749         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
2750         changed to use it. 
2751         (ipa_get_cs_argument_count): Added, all readers of argument_count
2752         changed to cal it.
2753         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
2754         to use it.
2755         
2756         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
2757         (struct ipcp_lattice): Renamed cval_type to type
2758         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
2759
2760         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
2761         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
2762         (ipcp_insert_stage): Changed the type of variable cvalue to tree
2763         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
2764         (build_const_val): Changed the type of parameter cvalue to tree
2765         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
2766         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
2767         
2768         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
2769         constant 
2770
2771         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
2772         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
2773         (ipa_add_method): Renamed to ipa_push_func_to_list
2774         (ipa_remove_method): Renamed to ipa_pop_func_from_list
2775         (ipa_callsite_param_count): Removed.
2776         (ipa_callsite_param_count_set): Removed.
2777         (ipa_callsite_param): Removed.
2778         (ipa_callsite_callee): Removed.
2779         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
2780         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
2781         (ipa_method_formal_count): Removed.
2782         (ipa_method_formal_count_set): Removed.
2783         (ipa_method_get_tree): Removed.
2784         (ipa_method_tree_map_create): Removed.
2785         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
2786         (ipa_create_param_decls_array): Creates the array itself
2787         (ipa_create_param_decls_array): Temporary variable info instead of 
2788         a few dereferences.
2789         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
2790         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
2791         (get_type): Removed.
2792         (ipa_jf_get_info_type): Removed.
2793         (ipa_node_create): Renamed to ipa_create_node_params
2794         (ipa_free): Renamed to ipa_free_all_node_params
2795         (ipa_nodes_create): Renamed to ipa_create_all_node_params
2796         (ipa_edges_create): Renamed to ipa_create_all_edge_args
2797         (ipa_edges_free): Renamed to ipa_free_all_edge_args
2798         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
2799         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
2800         ipa_free_all_edge_args
2801         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
2802         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
2803         (ipa_create_methodlist_node): Removed.
2804         (ipa_methodlist_method): Removed.
2805         (ipa_methodlist_method_set): Removed.
2806         (ipa_methodlist_next_method): Removed.
2807         (ipa_methodlist_next_method_set): Removed.
2808         (ipa_method_is_modified): Removed.
2809         (ipa_method_modify_create): Removed.
2810         (ipa_method_modify_init): Temporary variable info instead of a few 
2811         dereferences.
2812         (ipa_detect_param_modifications): Temporary variable info instead of 
2813         a few dereferences.
2814         (ipa_compute_jump_functions): Temporary variable info instead of 
2815         a few dereferences.
2816         (ipa_method_modify_set): Removed.
2817         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
2818         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
2819         than craph_node as the first parameter.
2820         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
2821         (ipa_method_modify_init): Removed.
2822         (ipa_compute_jump_functions): Added a temp variable instead of 
2823         repeatadly dereferencing the cgraph_edge.aux pointer
2824         (ipa_callsite_param_set_type): Removed.
2825         (ipa_compute_jump_functions): i renamed to index and moved to 
2826         an inner block
2827         (ipa_callsite_param_set_info_type_formal): Removed.
2828         (ipa_callsite_param_set_info_type): Removed.
2829         (ipa_callsite_param_map_create): Removed.
2830         (ipa_callsite_tree): Removed.
2831         (ipa_callsite_caller): Removed.
2832         (ipa_pop_func_from_list): return_method removed to return_func
2833
2834         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
2835         prefixed all values with IPA_. Changed all users.
2836         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
2837         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
2838         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
2839         (union parameter_info): Renamed to jump_func_value.
2840         (union jump_func_value): Renamed value to constant
2841         (struct ipa_jump_func): Renamed info_type to value
2842         (struct ipa_node): Renamed to ipa_node_params
2843         (struct ipa_node_params): Renamed ipa_arg_num to param_count
2844         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
2845         (struct ipa_node_params): Renamed ipa_mod to modified_flags
2846         (struct ipa_edge): Renamed to ipa_edge_args
2847         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
2848         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
2849         (struct ipa_methodlist): Renamed to ipa_func_list
2850         (struct ipa_func_list): method_p renamed to node, next_method
2851         renamed to next
2852         (ipa_methodlist_p): Removed, switched all users to struct pointer
2853         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
2854
2855 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
2856
2857         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
2858         (rs6000_emit_epilogue): Use backchain to restore only when we
2859         have a large frame.  Make use of frame pointer to restore if we
2860         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
2861
2862 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
2863
2864         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
2865         Add mode to zero_extract.
2866         (sign bit tests peepholes): (Ditto.).
2867
2868 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
2869
2870         * config/i386/i386.c (ix86_builtins): Replace Prescott New
2871         Instructions in comments with SSE3.
2872         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
2873         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
2874         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
2875         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
2876         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
2877         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
2878         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
2879         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
2880         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
2881         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
2882         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
2883         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
2884         (bdesc_sse_args): Renamed to ...
2885         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
2886         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
2887         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
2888         IX86_BUILTIN_FABSQ.
2889         (bdesc_1arg): Moved to ...
2890         (bdesc_args): Here.
2891         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
2892         Instructions in comments with SSE3.
2893         (ix86_expand_sse_operands_builtin): Renamed to ...
2894         (ix86_expand_args_builtin): This.  Updated.
2895         (ix86_expand_unop1_builtin): Update comments.
2896         (ix86_expand_builtin): Updated.
2897
2898 2008-04-29  Richard Guenther  <rguenther@suse.de>
2899
2900         PR tree-optimization/36078
2901         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
2902         Update virtual SSA form after cleaning up the CFG.
2903
2904 2008-04-29  Richard Guenther  <rguenther@suse.de>
2905
2906         PR middle-end/15255
2907         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
2908
2909 2008-04-29  Richard Guenther  <rguenther@suse.de>
2910
2911         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
2912         (compute_may_aliases): Do not call finalize_ref_all_pointers.
2913         (compute_flow_insensitive_aliasing): Do not treat
2914         PTR_IS_REF_ALL pointers special.
2915         (get_smt_for): Likewise.
2916         (may_alias_p): Re-structure.
2917         (is_escape_site): A ref-all pointer conversion is not an escape site.
2918         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
2919         PTR_IS_REF_ALL pointers special.
2920         * tree-ssa-structalias.h (struct alias_info): Remove
2921         ref_all_symbol_mem_tag field.
2922         (PTR_IS_REF_ALL): Remove.
2923
2924 2008-04-29  Richard Guenther  <rguenther@suse.de>
2925
2926         PR middle-end/36077
2927         * fold-const.c (extract_muldiv_1): In combining division constants
2928         make sure to never overflow.
2929
2930 2008-04-29  Nick Clifton  <nickc@redhat.com>
2931
2932         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
2933
2934 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2935
2936         PR bootstrap/35169
2937         * optc-gen.awk: Work around HP-UX/IA awk bug.
2938
2939 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
2940
2941         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
2942         2008-04-25 commit.
2943
2944 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
2945
2946         PR target/36073
2947         * config/i386/i386.md
2948         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
2949         Change operand 1 predicate to nonimmediate_operand.
2950
2951 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
2952
2953         PR debug/36060
2954         * dwarf2out.c (struct die_struct): Mark as chain_circular through
2955         die_sub field.
2956         * gengtype.c (walk_type, write_func_for_structure): Handle
2957         chain_circular.
2958         * doc/gty.texi: Document chain_circular.
2959
2960 2008-04-28  Richard Guenther  <rguenther@suse.de>
2961
2962         PR tree-optimization/36066
2963         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
2964         SCEV and loop.
2965
2966 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
2967
2968         PR target/36064
2969         * config/i386/i386.md
2970         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
2971         Use match_scratch instead of match_operand for operands 3 and 4.
2972
2973 2008-04-27  Richard Guenther  <rguenther@suse.de>
2974
2975         PR tree-optimization/18754
2976         PR tree-optimization/34223
2977         * tree-pass.h (pass_complete_unrolli): Declare.
2978         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
2979         loop size before and after unconditionally of UL_NO_GROWTH in effect.
2980         Rewrite loop into loop closed SSA form if it is not already.
2981         (tree_unroll_loops_completely): Re-structure to iterate over
2982         innermost loops with intermediate CFG cleanups.
2983         Unroll outermost loops only if requested or the code does not grow
2984         doing so.
2985         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
2986         loops are available.
2987         (tree_vectorize): Instead do so here.
2988         (tree_complete_unroll): Also unroll outermost loops.
2989         (tree_complete_unroll_inner): New function.
2990         (gate_tree_complete_unroll_inner): Likewise.
2991         (pass_complete_unrolli): New pass.
2992         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
2993         uses outside of the loop.
2994         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
2995         form if it is available.  
2996         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
2997         * passes.c (init_optimization_passes): Schedule complete inner
2998         loop unrolling pass before the first CCP pass after final inlining.
2999
3000 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
3001
3002         * targhooks.h (default_emutls_var_fields,
3003         default_emutls_var_init): Declare.
3004         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
3005         * target.h (struct gcc_target): Add struct emutls member.
3006         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
3007         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
3008         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
3009         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
3010         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
3011         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
3012         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
3013         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
3014         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
3015         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
3016         emit debug information.
3017         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
3018         * varasm.c: Include targhooks.h.
3019         (emutls_object_section, emutls_tmpl_section): New.
3020         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
3021         (EMUTLS_SEPARATOR): New.
3022         (prefix_name): New.
3023         (get_emutls_object_name): New.
3024         (default_emutls_var_fields): New, broken out of ...
3025         (get_emutls_object_type): ... here.  Adjust to use target hooks.
3026         (get_emutls_init_templ_addr): Adjust to use target hooks.
3027         (emutls_decl): Adjust to use target hooks.
3028         (emutls_finish): Likewise.
3029         (default_emutls_var_init): New, broken out of ...
3030         (assemble_variable): ... here.  Adjust to use target hooks.
3031         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
3032         SECCAT_EMUTLS_TMPL.
3033         * c-common.c (handle_section_attribute): Prevent overriding
3034         sections for emulated tls with special sections.
3035         * config/i386/i386.c (x86_64_elf_select_section): Add
3036         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
3037         (x86_64_elf_unique_section): Likewise.
3038         * config/vxworks.c: Include tree.h.
3039         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
3040         (vxworks_override_options): Set TLS scheme.
3041         * doc/tm.texi (Emulated TLS): New node.
3042
3043 2008-04-26  Simon Baldwin <simonb@google.com>
3044
3045         PR c/35652
3046         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
3047         with propagated string constants.
3048
3049 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
3050
3051         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
3052         constraint for operand 2 when operand 0 is memory operand.
3053         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
3054         operand 0 is memory operand.
3055         (fix_trunc<mode>_i387_with_temp): Ditto.
3056         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
3057         operand 2 when operand 1 is memory operand.
3058         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
3059         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
3060         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
3061         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
3062         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
3063         operands 2,3 and 4 when operand 1 is memory operand.
3064         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
3065         is memory operand.
3066         (fistdi2_floor_with_temp): Ditto.
3067         (fist<mode>2_floor_with_temp): Ditto.
3068         (fistdi2_ceil_with_temp): Ditto.
3069         (fist<mode>2_ceil_with_temp): Ditto.
3070         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
3071
3072 2008-04-26  David Daney  <ddaney@avtrex.com>
3073
3074         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
3075         unspec_volitile.
3076         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
3077         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
3078         UNSPEC_UPDATE_GOT_VERSION): Renumber.
3079         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
3080         (compare_and_swap_12): New insn.
3081         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
3082         * config/mips/mips.c (mips_force_binary): New function.
3083         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
3084         (mips_expand_compare_and_swap_12): New function.
3085         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
3086
3087 2008-04-25  Jan Hubicka  <jh@suse.cz>
3088
3089         PR testsuite/35843
3090         * cfgexpand.c (pass_expand): Turn into RTL pass.
3091         * passes.c (execute_one_pass): Do pass typechecking after execution.
3092         * tree-pass.h (pass_expand): Turn into RTL pass.
3093
3094         * function.h (struct rtl_data): Move here fields
3095         accesses_prior_frames, calls_eh_return, saves_all_registers,
3096         has_nonlocal_goto, has_asm_statement, is_thunk,
3097         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
3098         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
3099         arg_pointer_save_area_init from struct function; turn into bool.
3100         (struct function): Move
3101         calls_eh_return, saves_all_registers, has_nonlocal_goto,
3102         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
3103         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
3104         tail_call_emit, arg_pointer_save_area_init
3105         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
3106         (current_function_returns_struct, current_function_returns_pcc_struct,
3107         current_function_calls_setjmp, current_function_calls_alloca,
3108         current_function_accesses_prior_frames,
3109         current_function_calls_eh_return, current_function_is_thunk,
3110         current_function_stdarg, current_function_profile,
3111         current_function_limit_stack, current_function_uses_pic_offset_table,
3112         current_function_uses_const_pool, current_function_has_nonlocal_label,
3113         current_function_saves_all_registers,
3114         current_function_has_nonlocal_goto,
3115         current_function_has_asm_statement): Remove accesor macros.
3116         * ra-conflict.c (global_conflicts): Update.
3117         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
3118         (suitable_for_tail_call_opt_p): Update.
3119         * builtins.c (expand_builtin_return_addr): Update.
3120         (expand_builtin_setjmp_setup): Update.
3121         (expand_builtin_nonlocal_goto): Update.
3122         * final.c (final_start_function): Update.
3123         (profile_function): Update.
3124         (leaf_function_p): Update.
3125         (only_leaf_regs_used): Update.
3126         * df-scan.c (df_get_exit_block_use_set): Update.
3127         * dojump.c (clear_pending_stack_adjust): Update.
3128         * tree-stdarg.c (gate_optimize_stdarg): Update.
3129         * gimple-low.c (lower_function_body): Update.
3130         * global.c (compute_regsets): Update.
3131         (global_alloc): Update.
3132         * dwarf2out.c (dwarf2out_begin_prologue): Update.
3133         * expr.c (expand_assignment): Update.
3134         * dse.c (dse_step0): Update.
3135         (dse_step1): Update.
3136         * c-decl.c (store_parm_decls): Update.
3137         * local-alloc.c (combine_regs): Update.
3138         (find_free_reg): Update.
3139         * function.c (assign_parms_augmented_arg_list): Update.
3140         (assign_parm_find_data_types): Update.
3141         (assign_parms): Update.
3142         (allocate_struct_function): Update.
3143         (expand_function_start): Update.
3144         (expand_function_end): Update.
3145         (get_arg_pointer_save_area): Update.
3146         (thread_prologue_and_epilogue_insns): Update.
3147         (rest_of_match_asm_constraints): Update.
3148         * stor-layout.c (variable_size): Update.
3149         * gcse.c (gcse_main): Update.
3150         (bypass_jumps): Update.
3151         * gimplify.c (gimplify_function_tree): Update.
3152         * calls.c (emit_call_1): Update.
3153         (expand_call): Update.
3154         * bt-load.c (compute_defs_uses_and_gen): Update.
3155         * except.c (sjlj_assign_call_site_values): Update.
3156         (sjlj_emit_function_enter): Update.
3157         (can_throw_external): Update.
3158         (set_nothrow_function_flags): Update.
3159         (expand_builtin_unwind_init): Update.
3160         (expand_eh_return): Update.
3161         (convert_to_eh_region_ranges): Update.
3162         (output_function_exception_table): Update.
3163         * emit-rtl.c (gen_tmp_stack_mem): Update.
3164         * cfgexpand.c (expand_used_vars): Update.
3165         (tree_expand_cfg): Update.
3166         * cfgcleanup.c (rest_of_handle_jump): Update.
3167         * explow.c (allocate_dynamic_stack_space): Update.
3168         * varasm.c (assemble_start_function): Update.
3169         (force_const_mem): Update.
3170         (mark_constant_pool): Update.
3171         * tree-optimize.c (tree_rest_of_compilation): Update.
3172         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
3173         * tree-cfg.c (notice_special_calls): Update.
3174         (is_ctrl_altering_stmt): Update.
3175         (tree_can_make_abnormal_goto): Update.
3176         (tree_purge_dead_abnormal_call_edges): Update.
3177         * config/alpha/predicates.md: Update.
3178         * config/alpha/alpha.c (alpha_sa_mask): Update.
3179         (alpha_sa_size): Update.
3180         (alpha_does_function_need_gp): Update.
3181         (alpha_expand_prologue): Update.
3182         (alpha_start_function): Update.
3183         (alpha_output_function_end_prologue): Update.
3184         (alpha_expand_epilogue): Update.
3185         * config/frv/frv.c (frv_stack_info): Update.
3186         (frv_expand_epilogue): Update.
3187         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
3188         (s390_register_info): Update.
3189         (s390_frame_info): Update.
3190         (s390_init_frame_layout): Update.
3191         (s390_can_eliminate): Update.
3192         (save_gprs): Update.
3193         * config/spu/spu.c (spu_split_immediate): Update.
3194         (need_to_save_reg): Update.
3195         (spu_expand_prologue): Update.
3196         (spu_expand_epilogue): Update.
3197         * config/sparc/sparc.md: Update.
3198         * config/sparc/sparc.c (eligible_for_return_delay): Update.
3199         (sparc_tls_got): Update.
3200         (legitimize_pic_address): Update.
3201         (sparc_emit_call_insn): Update.
3202         (sparc_expand_prologue): Update.
3203         (output_return): Update.
3204         (print_operand): Update.
3205         (sparc_function_ok_for_sibcall): Update.
3206         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
3207         * config/m32r/m32r.md: Update.
3208         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
3209         (m32r_compute_frame_size): Update.
3210         (m32r_expand_prologue): Update.
3211         (m32r_expand_epilogue): Update.
3212         (m32r_legitimize_pic_address): Update.
3213         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
3214         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
3215         * config/i386/i386.c (ix86_frame_pointer_required): Update.
3216         (gen_push): Update.
3217         (ix86_save_reg): Update.
3218         (ix86_compute_frame_layout): Update.
3219         (ix86_expand_prologue): Update.
3220         (ix86_expand_epilogue): Update.
3221         * config/sh/sh.c (output_stack_adjust): Update.
3222         (calc_live_regs): Update.
3223         (sh5_schedule_saves): Update.
3224         (sh_expand_prologue): Update.
3225         (sh_expand_epilogue): Update.
3226         (sh_setup_incoming_varargs): Update.
3227         (sh_allocate_initial_value): Update.
3228         (sh_get_pr_initial_val): Update.
3229         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
3230         * config/sh/sh.md (label:): Update.
3231         * config/avr/avr.c (out_movhi_mr_r): Update.
3232         * config/crx/crx.h (enum): Update.
3233         * config/xtensa/xtensa.h (along): Update.
3234         * config/stormy16/stormy16.c Update.
3235         (xstormy16_compute_stack_layout): Update.
3236         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
3237         (fr30_expand_prologue): Update.
3238         * config/cris/cris.c (cris_conditional_register_usage): Update.
3239         (cris_reg_saved_in_regsave_area): Update.
3240         (cris_initial_frame_pointer_offset): Update.
3241         (cris_simple_epilogue): Update.
3242         (cris_expand_prologue): Update.
3243         (cris_expand_epilogue): Update.
3244         (cris_expand_pic_call_address): Update.
3245         (cris_asm_output_symbol_ref): Update.
3246         (cris_asm_output_label_ref): Update.
3247         * config/cris/cris.md Update.
3248         * config/iq2000/iq2000.c (compute_frame_size): Update.
3249         (iq2000_expand_epilogue): Update.
3250         * config/mt/mt.h (save_direction): Update.
3251         * config/mn10300/mn10300.c (mn10300_function_value): Update.
3252         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
3253         (ia64_secondary_reload_class): Update.
3254         * config/m68k/m68k.c (m68k_save_reg): Update.
3255         (m68k_expand_prologue): Update.
3256         (m68k_expand_epilogue): Update.
3257         (legitimize_pic_address): Update.
3258         * config/rs6000/rs6000.c (rs6000_got_register): Update.
3259         (first_reg_to_save): Update.
3260         (first_altivec_reg_to_save): Update.
3261         (compute_vrsave_mask): Update.
3262         (compute_save_world_info): Update.
3263         (rs6000_stack_info): Update.
3264         (spe_func_has_64bit_regs_p): Update.
3265         (rs6000_ra_ever_killed): Update.
3266         (rs6000_emit_eh_reg_restore): Update.
3267         (rs6000_emit_allocate_stack): Update.
3268         (rs6000_emit_prologue): Update.
3269         (rs6000_emit_epilogue): Update.
3270         (rs6000_output_function_epilogue): Update.
3271         (output_profile_hook): Update.
3272         (rs6000_elf_declare_function_name): Update.
3273         * config/rs6000/rs6000.h (rs6000_args): Update.
3274         * config/rs6000/rs6000.md: Update.
3275         * config/mcore/mcore.c (mcore_expand_prolog): Update.
3276         * config/arc/arc.c (arc_output_function_epilogue): Update.
3277         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
3278         * config/darwin.c (machopic_function_base_name): Update.
3279         * config/score/score3.c (score3_compute_frame_size): Update.
3280         (rpush): Update.
3281         (rpop): Update.
3282         (score3_epilogue): Update.
3283         * config/score/score7.c (score7_compute_frame_size): Update.
3284         (score7_prologue): Update.
3285         (score7_epilogue): Update.
3286         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
3287         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
3288         * config/arm/arm.c (use_return_insn): Update.
3289         (require_pic_register): Update.
3290         (arm_load_pic_register): Update.
3291         (arm_compute_save_reg0_reg12_mask): Update.
3292         (arm_compute_save_reg_mask): Update.
3293         (thumb1_compute_save_reg_mask): Update.
3294         (output_return_instruction): Update.
3295         (arm_output_function_prologue): Update.
3296         (arm_output_epilogue): Update.
3297         (arm_get_frame_offsets): Update.
3298         (arm_expand_prologue): Update.
3299         (thumb_pushpop): Update.
3300         (thumb_exit): Update.
3301         (thumb1_expand_prologue): Update.
3302         (thumb1_expand_epilogue): Update.
3303         (arm_unwind_emit): Update.
3304         (arm_output_fn_unwind): Update.
3305         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
3306         * config/arm/arm.md: Update.
3307         * config/pa/pa.md: Update.
3308         * config/pa/pa.c (legitimize_pic_address): Update.
3309         (compute_frame_size): Update.
3310         (hppa_expand_prologue): Update.
3311         (hppa_expand_epilogue): Update.
3312         (borx_reg_operand): Update.
3313         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
3314         (HARD_REGNO_RENAME_OK): Update.
3315         * config/mips/mips.c (mips_global_pointer): Update.
3316         (mips_save_reg_p): Update.
3317         (mips_compute_frame_info): Update.
3318         (mips_frame_pointer_required): Update.
3319         (mips_expand_prologue): Update.
3320         (mips_expand_epilogue): Update.
3321         (mips_can_use_return_insn): Update.
3322         (mips_reorg_process_insns): Update.
3323         * config/v850/v850.c (compute_register_save_size): Update.
3324         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
3325         * config/mmix/mmix.c (along): Update.
3326         (mmix_expand_epilogue): Update.
3327         * config/bfin/bfin.c (legitimize_pic_address): Update.
3328         (must_save_p): Update.
3329         (stack_frame_needed_p): Update.
3330         (add_to_reg): Update.
3331         (bfin_expand_prologue): Update.
3332         * stmt.c (expand_asm_operands): Update.
3333         * reload1.c (reload): Update.
3334         (init_elim_table): Update.
3335
3336 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
3337         
3338         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
3339         
3340 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
3341
3342         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
3343         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
3344         (mov<mode>): Removed.
3345         (*movv4sf_internal): Likewise.
3346         (*movv2df_internal): Likewise.
3347
3348 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
3349
3350         * config.gcc (crx-*-elf): Remove deprecation.
3351
3352 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
3353
3354         * config/i386/cygming-crtend.c (register_frame_ctor): Register
3355         __gcc_deregister_frame with atexit.
3356         (deregister_frame_dtor): Remove.
3357
3358 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
3359             Nathan Sidwell  <nathan@codesourcery.com>
3360
3361         * config/rs6000/rs6000.opt (mspe): Remove Var property.
3362         (misel): Likewise.
3363         * config/rs6000/rs6000.h (rs6000_spe): Declare.
3364         (rs6000_isel): Likewise.
3365         * config/rs6000/rs6000.c (rs6000_spe): New variable.
3366         (rs6000_isel): New variable.
3367         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
3368
3369 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3370
3371         PR c++/35758
3372         * c-common.c (handle_vector_size_attribute): Call
3373         lang_hooks.types.reconstruct_complex_type instead of
3374         reconstruct_complex_type.
3375         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
3376         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
3377         * langhooks.h (struct lang_hooks_for_types): Add
3378         reconstruct_complex_type hook.
3379         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
3380         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
3381
3382 2008-04-24  Richard Guenther  <rguenther@suse.de>
3383
3384         * c-common.h (check_builtin_function_arguments): Declare.
3385         * c-common.c (validate_nargs): New function.
3386         (check_builtin_function_arguments): Likewise.
3387         * c-typeck.c (build_function_call): Call
3388         check_builtin_function_arguments.
3389         * builtins.c (fold_builtin_classify): Remove error reporting code.
3390         (fold_builtin_unordered_cmp): Likewise.
3391         (fold_builtin_1): Likewise.
3392         (fold_builtin_n): Likewise.
3393
3394 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3395
3396         PR tree-optimization/36008
3397         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
3398         the original op1, rather than delta by step.
3399
3400 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
3401             Sebastian Pop  <sebastian.pop@amd.com>
3402
3403         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
3404         eliminate_local_variables_stmt, eliminate_local_variables,
3405         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
3406         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
3407         of code delimited by two edges in the CFG.
3408         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
3409         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
3410         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
3411         the case of parallelisation of reductions.
3412         (expr_invariant_in_region_p): New.
3413
3414         * tree-flow.h (gather_blocks_in_sese_region): Declared.
3415         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
3416
3417 2008-04-24  Ira Rosen  <irar@il.ibm.com>
3418             Richard Guenther  <rguenther@suse.de>
3419
3420         PR tree-optimization/36034
3421         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
3422         incapable of dealing with loads with gaps.
3423
3424 2008-04-24  Rafael Espindola  <espindola@google.com>
3425
3426         * tree-flow.h (vrp_evaluate_conditional): Change signature.
3427         * tree-ssa-propagate.c (fold_predicate_in): Update call to
3428         vrp_evaluate_conditional.
3429         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
3430         (vrp_evaluate_conditional): Split the cond argument.
3431         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
3432         (simplify_stmt_for_jump_threading): Update call to
3433         vrp_evaluate_conditional.
3434
3435 2008-04-24  Ira Rosen  <irar@il.ibm.com>
3436
3437         PR tree-optimization/35982
3438         * tree-vect-analyze.c (vect_check_interleaving): Check that the
3439         interleaved data-refs are of the same type.
3440
3441 2008-04-24  Danny Smith  <dannysmith@users.net>
3442
3443         * c-format.c (check_format_info_main): Use strncmp rather than a
3444         magic prefix to handle multichar length specs.
3445         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
3446         Don't prefix "I64" and "I32" with '\0'.
3447
3448 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3449
3450         PR target/36015
3451         * config/i386/i386.c (init_cumulative_args): Don't pass anything
3452         in registers for -m32 only if stdarg_p (fntype).
3453
3454 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
3455
3456         PR rtl-optimization/36006
3457         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
3458         temp to op0 in order to avoid invalid rtx sharing.
3459
3460 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
3461
3462         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
3463         check TREE_INVARIANT.
3464         * tree-gimple.c (is_gimple_address): New.
3465         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
3466         * tree-gimple.h (is_gimple_address): New.
3467         * tree.h (decl_address_invariant_p): New.
3468         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
3469         (build_string): Likewise.
3470         (decl_address_invariant_p): New, from is_gimple_invariant_address.
3471         (tree_invariant_p_1): Likewise.
3472         (save_expr): Use it.
3473         (tree_invariant_p): New.
3474         (skip_simple_arithmetic): Use it.
3475         (stabilize_reference_1): Use it.
3476         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
3477         simplify.
3478         (build1_stat): Drop code to compute TREE_INVARIANT.
3479         (build2_stat): Drop code to compute TREE_INVARIANT.
3480         (build3_stat): Drop code to compute TREE_INVARIANT.
3481         (build4_stat): Drop code to compute TREE_INVARIANT.
3482         (build5_stat): Drop code to compute TREE_INVARIANT.
3483         (build7_stat): Drop code to compute TREE_INVARIANT.
3484         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
3485         * tree.h (struct tree_base): Remove invariant_flag.
3486         (TREE_INVARIANT): Remove.
3487         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
3488         (fold_builtin_expect): Check TREE_CONSTANT.
3489         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
3490         * c-tree.h (c_expr_to_decl): Drop third parameter.
3491         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
3492         (build_c_cast): Don't set TREE_INVARIANT.
3493         (pop_init_level): Don't set TREE_INVARIANT.
3494         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
3495         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
3496         TREE_CONSTANT.
3497         (gimplify_init_constructor): Don't set TREE_INVARIANT.
3498         (gimplify_addr_expr): Adjust comment.
3499         * tree-mudflap.c (mf_build_string):
3500         * print-tree.c (print_node): Don't print TREE_INVARIANT.
3501         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
3502         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
3503         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
3504         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
3505         * langhooks.h (struct lang_hooks): Drop third parameter from
3506         expr_to_decl.
3507
3508 2008-04-23  Richard Guenther  <rguenther@suse.de>
3509
3510         PR tree-optimization/27799
3511         PR tree-optimization/32921
3512         PR tree-optimization/32624
3513         * tree-ssa-structalias.c (merge_smts_into): Only merge the
3514         SMTs aliases and the tag itself into the solution.
3515         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
3516         merge the points-to solution back into the SMT aliases.
3517         (may_alias_p): Use alias_set_subset_of instead of
3518         aliases_conflict_p.  A pointer which points to
3519         memory with alias set zero may access any variable.
3520
3521 2008-04-23  Richard Guenther  <rguenther@suse.de>
3522
3523         * alias.c (alias_set_subset_of): Correctly handle asking
3524         if zero is a subset of an alias set with zero child.
3525         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
3526         (compute_flow_insensitive_aliasing): Correctly walk all
3527         pointers.  Do not unnecessarily union sets.
3528
3529 2008-04-23  Richard Guenther  <rguenther@suse.de>
3530
3531         PR middle-end/36021
3532         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
3533
3534 2008-04-22  Tomas Bily  <tbily@suse.cz>
3535
3536         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
3537         unreachable case.
3538         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
3539         NON_LVALUE_EXPR.
3540         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
3541         * tree-ssa-structalias.c (get_constraint_for): Likewise.
3542         * tree-inline.c (estimate_num_insns_1): Likewise.
3543         * varasm.c (const_hash_1, compare_constant, copy_constant)
3544         (compute_reloc_for_constant, output_addressed_constants): Likewise.
3545         * emit-rtl.c (component_ref_for_mem_expr)
3546         (set_mem_attributes_minus_bitpos): Likewise.
3547         * expr.c (highest_pow2_factor, expand_expr_real_1, )
3548         (is_aligning_offset): Likewise.
3549         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
3550         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
3551         * dojump.c (do_jump): Likewise.
3552         * builtins.c (get_pointer_alignment, get_memory_rtx)
3553         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
3554         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
3555
3556 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
3557
3558         PR rtl-optimization/36017
3559         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
3560         expanding the library call.
3561
3562 2008-04-22  Ian Lance Taylor  <iant@google.com>
3563
3564         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
3565         than size_in_bytes.
3566
3567 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
3568
3569         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
3570         of LR/CTR moves for Power6.
3571
3572 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
3573
3574         PR middle-end/36003
3575         * passes.c (init_optimization_passes): Remove
3576         pass_fast_rtl_byte_dce.
3577         
3578 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
3579
3580         PR target/29096
3581         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
3582         builtin functions to generate faster code.
3583         (_mm_cvtpu16_ps): Ditto.
3584         (_mm_cvtpi32x2_ps): Ditto.
3585
3586 2008-04-22  Nick Clifton  <nickc@redhat.com>
3587
3588         * common.opt (ftree-loop-distribution): Add Optimization
3589         attribute.
3590
3591         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
3592         (frv_expand_builtin_va_start): Likewise.
3593
3594         * config/arm/arm.c (thumb_find_work_register): Fix location of
3595         argument register count.
3596
3597 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3598
3599         Support scheduling for ColdFire V1 and V3 microarchitecture.
3600         Improve scheduling of multiplication instructions.
3601
3602         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
3603         (mac): New instruction attribute.
3604         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
3605         (m68k_sched_mac): New variable.
3606         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
3607         Handle cfv1 and cfv3.
3608         (max_insn_size): New static variable.
3609         (struct _sched_ib): New type.
3610         (sched_ib): New static variable.
3611         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
3612         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
3613         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
3614         Update.
3615         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
3616         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
3617         new variables.  Update.
3618         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
3619         Add modeling of cfv3 instruction buffer.  Update.
3620         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
3621         * config/m68k/m68k.h (TUNE_CFV3): New macro.
3622         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
3623         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
3624         a particular reservation applies to.
3625         (type2): Reorganize attribute values.  Rename alu to alu_reg,
3626         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
3627         to mul_l and mul_w.
3628         (cf_ib_*): Simplify description of instruction buffer.
3629         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
3630         (cf_mem): Split into cf_mem1 and cf_mem2.
3631         (cf_v2_move_??): Rename to cfv12_alu_??.
3632         (cf_v2_move_l_??): Rename to cfv12_omove_??.
3633         (cf_v2_mul_??): Remove reservations.
3634         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
3635         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
3636         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
3637         appropriate place.
3638         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
3639         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
3640         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
3641         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
3642         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
3643         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
3644         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
3645         expansions of the above reservations for instructions of sizes
3646         1, 2 and 3 words.
3647
3648 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3649
3650         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
3651
3652 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
3653
3654         * coverage.c: Include tree-pass.h.
3655         (coverage_counter_alloc): Print da_file_name to the dump file.
3656
3657 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
3658
3659         * sbitmap.c (sbitmap_range_empty_p): New function.
3660         * sbitmap.h (sbitmap_range_empty_p): New function.
3661         * bitmap.h: Now includes obstack.h.
3662
3663 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
3664             Kenneth Zadeck  <zadeck@naturalbridge.com>
3665
3666         * dbgcnt.def (ra_byte_scan): Added.
3667         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
3668         when the last hit happens for a counter.  
3669         * timevar.def (TV_DF_BYTE_LR): New variable.
3670         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
3671         * passes.c (pass_fast_rtl_byte_dce): New pass.
3672         * fwprop.c (update_df): Added mode to call df_ref_create.
3673         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
3674         DF_REF_EXTRACT_OFFSET.
3675         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
3676         DF_BYTE_LR_OUT, df_byte_lr): New macro.
3677         (df_mm): New enum.
3678         (df_ref_extract): Added mode field.
3679         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
3680         DF_REF_EXTRACT_OFFSET.
3681         (DF_REF_EXTRACT_MODE): New macro.
3682         (df_byte_lr_bb_info): New structure.
3683         (df_print_byte_regset, df_compute_accessed_bytes, 
3684         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
3685         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
3686         df_byte_lr_simulate_uses,
3687         df_byte_lr_simulate_artificial_refs_at_top,
3688         df_byte_lr_simulate_artificial_refs_at_end,
3689         df_compute_accessed_bytes): New function.
3690         (df_ref_create): Add parameter.
3691         (df_byte_lr_get_bb_info): New inline function.
3692         * df-scan.c (df_ref_record, df_uses_record,
3693         df_ref_create_structure): Added mode parameter.
3694         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
3695         df_defs_record, df_uses_record, df_get_conditional_uses,
3696         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
3697         df_entry_block_defs_collect, df_exit_block_uses_collect):
3698         Added mode parameter to calls to df_ref_record, df_uses_record,
3699         df_ref_create_structure.
3700         (df_ref_equal_p, df_ref_compare): Added test for modes.
3701         (df_ref_create_structure): Added code to set mode.  Renamed
3702         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
3703         DF_REF_EXTRACT_OFFSET.
3704         * df-core.c (df_print_byte_regset): New function.
3705         * df-byte-scan.c: New file.
3706         * df-problems.c (df_rd_transfer_function): Removed unnecessary
3707         calls to BITMAP_FREE.  
3708         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
3709         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
3710         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
3711         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
3712         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
3713         df_byte_lr_local_compute, df_byte_lr_init,
3714         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
3715         df_byte_lr_transfer_function, df_byte_lr_free, 
3716         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
3717         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
3718         df_byte_lr_simulate_uses,
3719         df_byte_lr_simulate_artificial_refs_at_top,
3720         df_byte_lr_simulate_artificial_refs_at_end): New function.
3721         * dce.c (byte_dce_process_block): New function.
3722         (dce_process_block): au is now passed in rather than computed
3723         locally.  Changed loops that look at artificial defs to not look
3724         for conditional or partial ones, because there never are any.  
3725         (fast_dce): Now is able to drive byte_dce_process_block or 
3726         dce_process_block depending on the kind of dce being done.
3727         (rest_of_handle_fast_dce): Add parameter to fast_dce.
3728         (rest_of_handle_fast_byte_dce): New function.
3729         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
3730         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
3731
3732 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
3733
3734         PR fortran/35019
3735         * gcc.h: Added fortran options that take arguments to
3736         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
3737         macros.
3738
3739 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3740
3741         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
3742         scalarization if on the LHS and not a full access.
3743
3744 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3745
3746         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
3747
3748 2008-04-18  Rafael Espindola  <espindola@google.com>
3749
3750         * tree-vrp.c (find_case_label_index): Fix the binary search.
3751         (find_case_label_range): New.
3752         (vrp_visit_switch_stmt): Use find_case_label_range.
3753         (simplify_switch_using_ranges): Use find_case_label_range.
3754
3755 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3756
3757         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
3758         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
3759
3760 2008-04-18  Tom Tromey  <tromey@redhat.com>
3761
3762         PR libcpp/15500:
3763         * doc/cpp.texi (Implementation-defined behavior): Mention
3764         -finput-charset.
3765
3766 2008-04-18  Ian Lance Taylor  <iant@google.com>
3767
3768         * fold-const.c (pointer_may_wrap_p): New static function.
3769         (fold_comparison): Add another test for pointer overflow.  Use
3770         pointer_may_wrap_p to disable some false positives.
3771
3772 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
3773           
3774         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
3775         (fname_as_string): Match updated cpp_interpret_string prototype.
3776         (fix_string_type): Support char16_t* and char32_t*.
3777         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
3778         derivative) nodes.  Register as builtin if C++0x.
3779         (c_parse_error): Support CPP_CHAR{16,32}.
3780         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
3781         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
3782         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
3783         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
3784         CTI_CHAR32_ARRAY_TYPE>: New elements.
3785         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
3786         char32_type_node, signed_char32_type_node, char16_array_type_node,
3787         char32_array_type_node): New defines.
3788         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
3789         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
3790         (lex_string): Support CPP_STRING{16,32}, match updated
3791         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
3792         (lex_charconst): Support CPP_CHAR{16,32}.
3793         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
3794         and CPP_STRING{16,32}.
3795
3796 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
3797
3798         PR bootstrap/35457
3799         * aclocal.m4: Regenerate.
3800         * configure: Regenerate.
3801
3802 2008-04-18  Jan Hubicka  <jh@suse.cz>
3803
3804         * except.c (dw2_size_of_call_site_table,
3805         sjlj_size_of_call_site_table): Use vector API for call_site_record.
3806
3807         * cgraphbuild.c (build_cgraph_edges): Update.
3808         * tree-pass.h: Update comment.
3809         * final.c (leaf_function_p): Update.
3810         (leaf_renumber_regs): Update.
3811         (rest_of_clean_state): Update.
3812         * omp-low.c (expand_omp_parallel): Update.
3813         * ipa-reference.c (analyze_function): Update.
3814         * reorg.c (find_end_label): Update.
3815         (optimize_skip): Update.
3816         (fill_simple_delay_slots): Update.
3817         (fill_simple_delay_slots): Update.
3818         (make_return_insns): Update.
3819         (dbr_schedule): Update.
3820         * gimple-low.c (record_vars_into): Update.
3821         * cfgbuild.c (make_edges): Update.
3822         * function.c (assign_stack_local): Update.
3823         (assign_parm_adjust_stack_rtl): Update.
3824         (locate_and_pad_parm): Update.
3825         (allocate_struct_function): Do not initialize stack_alignment_needed
3826         and preferred_stack_boundary here.
3827         (stack_protect_prologue): Update.
3828         (stack_protect_epilogue): Update.
3829         (expand_function_start): Initialize stack_alignment_needed,
3830         preferred_stack_boundary and max_jumptable_ents.
3831         (expand_function_end): Update.
3832         (free_after_compilation): Do not NULLify epilogue_delay_list.
3833         * function.h (struct rtl_data): Add stack_protect_guard,
3834         stack_alignment_needed,
3835         preferred_stack_boundary, epilogue_delay_list.
3836         (struct function): Remove value_histograms, stack_alignment_needed,
3837         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
3838         last_label_uid,
3839         unexpanded_var_list, stack_protect_guard.
3840         (current_function_epilogue_delay_list): Remove.
3841         * ipa-type-escape.c (analyze_function): Update.
3842         * gimplify.c (pop_gimplify_context): Update comment.
3843         * calls.c (expand_call): Update.
3844         (emit_library_call_value_1): Update.
3845         * except.c (set_nothrow_function_flags): Update.
3846         * cfgexpand.c (get_decl_align_unit): Update.
3847         (create_stack_guard): Update.
3848         (estimated_stack_frame_size): Update.
3849         (expand_used_vars): Update.
3850         (tree_expand_cfg): Free histogram earliers, init expansion variables.
3851         * explow.c (allocate_dynamic_stack_space): Update.
3852         * tree-ssa-live.c (remove_unused_locals): Update.
3853         * varasm.c (mark_constant_pool): Update.
3854         * tree-inline.c (remap_decls): Update.
3855         (initialize_cfun): Update.
3856         (declare_return_variable): Update.
3857         (inline_forbidden_p): Update.
3858         (expand_call_inline): Update.
3859         (declare_inline_vars): Update.
3860         (tree_function_versioning): Update.
3861         * tree-flow.h (value_histograms): New.
3862         (VALUE_HISTOGRAMS): New macro.
3863         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
3864         last_label_uid.
3865         * tree-cfg.c (set_bb_for_stmt): Update.
3866         (replace_by_duplicate_decl): Update.
3867         (move_block_to_fn): Update.
3868         (new_label_mapper): Update.
3869         (dump_function_to_file): Update.
3870         * ipa-struct-reorg.c (build_data_structure): Update.
3871         * cfgrtl.c (print_rtl_with_bb): Update.
3872         * reload1.c (reload): Update.
3873         (reload): Update.
3874         * config/i386/i386.c (setup_incoming_varargs_64,
3875         ix86_compute_frame_layout): Update.
3876         * config/arc/arc.c (arc_output_function_epilogue): Update.
3877
3878 2008-04-18  Marius Strobl <marius@FreeBSD.org>
3879
3880         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
3881         for FreeBSD as well.
3882         * gthr-posix95.h: Likewise.
3883
3884 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
3885
3886         PR rtl-optimization/35838
3887         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
3888         out the byte offset of the first subreg.
3889
3890 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
3891
3892         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
3893         to split_ti instead of three separate calls with single member arrays.
3894         (subti3 splitter): Ditto.
3895         (adddi3 splitter): Ditto with split_di.
3896         (subdi3 splitter): Ditto.
3897         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
3898         two separate calls with single member arrays.  Swap match_dup
3899         operands 1 and 2 to better fit into the array.
3900         (negdi2 splitter): Ditto with split_di.
3901         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
3902         two separate calls with single member arrays.  Swap match_dup operands
3903         6 and 7 to better fit into the array.
3904
3905 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
3906
3907         * config/i386/i386.c (sse_builtin_type): New.
3908         (bdesc_sse_args): Likewise.
3909         (bdesc_sse_3arg): Removed.
3910         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
3911         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
3912         IX86_BUILTIN_ROUNDPS.
3913         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
3914         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
3915         IX86_BUILTIN_ROUNDPS.
3916         (ix86_expand_sse_4_operands_builtin): Removed.
3917         (ix86_expand_sse_operands_builtin): New.
3918         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
3919         and CODE_FOR_sse4_1_roundps.
3920         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
3921         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
3922
3923 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
3924
3925         PR target/35907
3926         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
3927         regs before frame pop when needed.  If use_backchain_to_restore_sp
3928         then load backchain into a temp reg to restore vr and vrsave.  Add
3929         code to restore vr after frame pop if possible.
3930
3931 2008-04-17  Richard Guenther  <rguenther@suse.de>
3932
3933         * tree-vn.c (expressions_equal_p): Do not check type
3934         equality or compatibility before calling operand_equal_p.
3935         * fold-const.c (operand_equal_p): Check equivalence of
3936         integer constants before bailing out due to signedness or
3937         precision differences.
3938         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
3939         spurious differences in type qualification.  Ignore types
3940         for COMPONENT_REFs at all.
3941
3942 2008-04-17  Christian Bruel  <christian.bruel@st.com>
3943
3944         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
3945         msw_skip comparison.
3946         
3947 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
3948
3949         PR c/35739
3950         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
3951         reg type.
3952
3953         PR tree-optimization/35899
3954         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
3955         rather than TREE_OPERAND.
3956
3957 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
3958
3959         PR target/35944
3960         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
3961         temporary registers.  Change operand predicate to general_operand.
3962         (remainderxf3): Ditto.
3963
3964 2008-04-16  Richard Guenther  <rguenther@suse.de>
3965
3966         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
3967         * tree-affine.c (aff_combination_expand): Look through some
3968         conversions.
3969
3970 2008-04-15  Doug Kwan  <dougkwan@google.com>
3971
3972         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
3973         for hex printing.
3974         * tree-pretty-print.c (dump_generic_node): Ditto.
3975         * final.c (output_addr_const): Ditto.
3976         * dwarf2out.c (output_cfi): Ditto.
3977         * c-pretty-print.c (pp_c_integer_constant): Ditto.
3978         * print-rtl.c (print_rtx): Ditto.
3979         * print-tree.c (print_node_brief, print_node): Ditto.
3980         * c-common.c (match_case_to_enum_1): Ditto.
3981         * sched-vis.c (print_value): Ditto.
3982         * config/i386/i386.c (print_operand): Cast to long unsigned int
3983         for hex printing.
3984
3985 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
3986         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
3987         MS Windows VirtualProtect function.
3988
3989 2008-04-15  Jan Hubicka  <jh@suse.cz>
3990
3991         * gengtype.c (write_root): Param_is argument is OK.
3992         * expr.c (expand_expr_real_1): Update call of get_exception_*.
3993         * function.h: Include varray.h
3994         (rtl_eh): New stucture based on except.c one.
3995         (call_site_record): New forward declaration and vector type.
3996         * calls.c (emit_call_1): Do not call
3997         note_current_region_may_contain_throw.
3998         * except.c (eh_status): Remove cur_region, try_region since they are
3999         unused.
4000         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
4001         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
4002         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
4003         Remove call_site_data_used, call_site_data_size.
4004         Turn call_site_record into vector in function.h.
4005         (note_current_region_may_contain_throw): Remove.
4006         (get_exception_pointer, get_exception_filter): Do not take struct
4007         function argument; update.
4008         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
4009         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
4010         build_post_landing_pads, dw2_build_landing_pads,
4011         sjlj_assign_call_site_values, sjlj_mark_call_sites,
4012         sjlj_emit_function_enter, sjlj_emit_function_enter, 
4013         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
4014         sjlj_build_landing_pads, finish_eh_generation,
4015         remove_exception_handler_label, remove_eh_handler,
4016         maybe_remove_eh_handler, add_reachable_handler,
4017         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
4018         add_action_record, collect_one_action_chain, add_call_site,
4019         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
4020         sjlj_output_call_site_table, output_function_exception_table,
4021         * except.h (note_current_region_may_contain_throw): Remove
4022         (get_exception_pointer, get_exception_filter): Do not take struct
4023         function argument.
4024         * Makefile.in (GTFILES): Put varargs before struct function.
4025
4026 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4027
4028         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
4029         punt for STRING_CST.
4030         (get_constraint_for): Deal with STRING_CST here instead.
4031
4032 2008-04-15  Richard Guenther  <rguenther@suse.de>
4033
4034         * tree-ssa-propagate.c (substitute_and_fold): Substitute
4035         statements in a basic-block with a backward walk.  Do not
4036         substitute into dead statements but instead remove those.
4037
4038 2008-04-15  Richard Guenther  <rguenther@suse.de>
4039
4040         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
4041         to zero, thus disable creation of SFTs.
4042
4043 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4044
4045         * tree-predcom.c (suitable_reference_p): Return false if the
4046         reference can throw.
4047
4048 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
4049
4050         PR c/35751
4051         * c-decl.c (finish_decl): If extern or static var has variable
4052         size, set TREE_TYPE (decl) to error_mark_node.
4053
4054 2008-04-15  Rafael Espindola  <espindola@google.com>
4055
4056         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
4057         variable arg1.
4058
4059 2008-04-15  Richard Guenther  <rguenther@suse.de>
4060
4061         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
4062         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
4063         (visit_reference_op_load): Do walk vuse-vdef chains on
4064         vn_reference_lookup.
4065         (visit_reference_op_store): But do not here.
4066         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
4067         vn_reference_lookup.
4068         (vn_lookup_with_vuses): But do so here.
4069
4070 2008-04-14  Ian Lance Taylor  <iant@google.com>
4071
4072         * fold-const.c (fold_overflow_warning): Remove assertion.
4073
4074 2008-04-15  Ben Elliston  <bje@au.ibm.com>
4075
4076         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
4077         temp1 local variables.
4078
4079 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
4080
4081         PR target/35661
4082         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
4083         ".text.unlikely" section as executable.
4084
4085 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
4086
4087         * config/ia64/ia64.c (rtx_needs_barrier): Handle
4088         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
4089         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
4090         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
4091         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
4092         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
4093         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
4094
4095 2008-04-14  Ian Lance Taylor  <iant@google.com>
4096
4097         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
4098         * fold-const.c (fold_comparison): If appropriate, test
4099         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
4100         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
4101         reassociating a pointer type.
4102         * doc/invoke.texi (Optimize Options): Document that
4103         -fstrict-overflow applies to pointer wraparound.
4104
4105 2008-04-13  Jan Hubicka  <jh@suse.cz>
4106
4107         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
4108
4109 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
4110
4111         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
4112         we are going to "save the world".
4113
4114 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
4115
4116         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
4117         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
4118         operand 0 constraint, not "=".
4119
4120 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
4121
4122         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
4123
4124 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
4125
4126         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
4127         of size of positions_needed * CHAR_BIT.
4128
4129 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
4130
4131         PR middle-end/35897
4132         * dse.c (store_info): Change positions_needed to unsigned
4133         HOST_WIDE_INT.
4134         (lowpart_bitmask): New.
4135         (record_store): Cast to unsigned HOST_WIDE_INT for
4136         positions_needed.  Assert width <= size of positions_needed *
4137         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
4138         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
4139         lowpart_bitmask to set mask.
4140
4141 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4142
4143         * config/bfin/constraints.md: New file.
4144         * config/bfin/bfin.md: Include it.
4145         (adddi3): Use satisfies_constraint functions instead of the old macros.
4146         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
4147         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
4148         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
4149         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
4150         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
4151         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
4152         EXTRA_CONSTRAINT): Delete.
4153         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
4154         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
4155         of the old macros.
4156         * config/bfin/bfin.c: Include "tm-constrs.h".
4157         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
4158         Use satisfies_constraint functions instead of the old macros.
4159         * doc/md.texi (Blackfin Constraints): Update file name reference.
4160
4161 2008-04-11  Richard Guenther  <rguenther@suse.de>
4162
4163         PR tree-optimization/35869
4164         * tree-vrp.c (execute_vrp): Move switch statement update after
4165         jump threading.  Schedule another cfg cleanup run.
4166
4167 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
4168
4169         PR c/35744
4170         * attribs.c (decl_attributes): Return early on errorneous node.
4171
4172 2008-04-10  Oleg Ryjkov  <olegr@google.com>
4173
4174         * tree.h (struct tree_base): Added a new flag default_def_flag.
4175         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
4176
4177 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
4178
4179         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
4180
4181 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4182
4183         PR target/35768
4184         * pa.md: Define mode iterator P.  Define mode attribute dwc.
4185         (dcacheflush): Update pattern to use iterator P and attribute dwc.
4186         (icacheflush): Likewise.
4187         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
4188         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
4189
4190 2008-04-11  Ben Elliston  <bje@au.ibm.com>
4191
4192         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
4193
4194 2008-04-10  Rafael Espindola  <espindola@google.com>
4195
4196         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
4197         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
4198         (extract_range_from_expr): The same.
4199
4200 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
4201
4202         * config/mips/mips.md (GPR2): New mode iterator.
4203         (seq): Add comment.
4204         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
4205         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
4206         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
4207         Rewrite these to take two modes, the mode of comparison and the
4208         mode of the destination.
4209         * config/mips/mips.c (mips_expand_scc): Instead of having
4210         paradoxical subreg as destination, expand "narrowing" scc if mode
4211         of comparison is SI and target is requested in DI mode.
4212         (mips_emit_int_order_test): Update comment.  Make mode of
4213         comparison match CMP0 rather than TARGET.  When creating inverse
4214         target use mode of TARGET.
4215
4216 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
4217
4218         * gcov-dump.c (tag_summary): Only print summaries for the first
4219         GCOV_COUNTERS_SUMMABLE counters.
4220
4221 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
4222
4223         * config/i386/i386.md (absneg): New code iterator.
4224         (absnegprefix): New code attribute.
4225         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
4226         patterns using absneg code iterator.
4227         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
4228         using absneg code iterator.
4229         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
4230         *neg<mode>2 patterns using absneg code iterator.
4231         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
4232         *negextendsfdf2 patterns using absneg code iterator.
4233         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
4234         *negextendsfxf2 patterns using absneg code iterator.
4235         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
4236         *negextendsfdf2 patterns using absneg code iterator.
4237         * config/i386/sse.md (<code><mode>2): Macroize expander from
4238         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
4239
4240 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
4241
4242         * config/s390/s390.h: Remove the remains of the recent search
4243         & replace action of current_function_outgoing_args_size.
4244
4245 2008-04-10  Ira Rosen  <irar@il.ibm.com>
4246
4247         PR tree-optimization/35821
4248         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
4249         NEW_STMT_LIST is not NULL.
4250
4251 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
4252
4253         PR libstdc++/35597
4254         * toplev.c (process_options): Remove -ffunction-sections debugging
4255         warning.
4256
4257 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
4258
4259         PR middle-end/PR28690
4260         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
4261         than gen_rtx_fmt_ee to perform more canonicalizations.
4262
4263 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4264
4265         PR driver/35665
4266         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
4267
4268 2008-04-09  Richard Guenther  <rguenther@suse.de>
4269
4270         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
4271         (dump_function_to_file): Dump function arguments with types.
4272
4273 2008-04-08  Richard Guenther  <rguenther@suse.de>
4274
4275         * fold-const.c (fold_widened_comparison): Do not allow
4276         sign-changes that change the result.
4277
4278 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
4279
4280         PR target/35839
4281         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
4282         kinds of indirect references.
4283
4284 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
4285
4286         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
4287         GNU Fortran language string.
4288
4289 2008-04-08  Rafael Espindola  <espindola@google.com>
4290
4291         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
4292         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
4293         * tree.h (tree_call_nonnegative_warnv_p): New.
4294
4295 2008-04-08  Jan Hubicka  <jh@suse.cz>
4296
4297         * function.c (free_after_compilation): Clear out regno_reg_rtx
4298         pointer.
4299
4300 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
4301
4302         Revert
4303         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
4304
4305         PR middle-end/PR28690
4306         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
4307         same precedence as REG_POINTER and MEM_POINTER operands.
4308
4309 2008-04-08  Richard Guenther  <rguenther@suse.de>
4310
4311         PR middle-end/35834
4312         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
4313         for adding index to base.
4314
4315 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
4316
4317         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
4318         (MINGW_ENABLE_EXECUTE_STACK): New.
4319         (IN_LIBGCC2): For libgcc include windows.h file for
4320         function declarations.
4321
4322 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
4323
4324         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
4325         and tem2 if tem1 is not a REG or MULT.
4326
4327 2008-04-08  Jan Hubicka  <jh@suse.cz>
4328
4329         * function.h (incomming_args): Break out of struct function.
4330         (function_subsections): Break out of struct function.
4331         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
4332         return_rtx and hard_reg_initial_vals from struct function.
4333         Kill inl_max_label_num.
4334         (current_function_pops_args, current_function_args_info,
4335         current_function_args_size, current_function_args_size,
4336         current_function_pretend_args_size,
4337         current_function_outgoing_args_size,
4338         current_function_internal_arg_pointer, current_function_return_rtx):
4339         Kill compatibility accestor macros.
4340         * builtins.c (expand_builtin_apply_args_1): Update.
4341         (expand_builtin_next_arg): Update.
4342         * df-scan.c (df_get_call_refs): Update.
4343         * dbxout.c (dbxout_function_end): Update.
4344         * dwarf2out.c (dwarf2out_switch_text_section): Update.
4345         (output_line_info): Update.
4346         (secname_for_decl): Update.
4347         (dwarf2out_var_location): Update.
4348         * function.c (free_after_compilation): Update.
4349         (assign_parm_find_stack_rtl): Update.
4350         (assign_parms): Update.
4351         (expand_dummy_function_end): Update.
4352         (expand_function_end): Update.
4353         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
4354         (expand_call): Update.
4355         (emit_library_call_value_1): Update.
4356         (store_one_arg): Update.
4357         * varasm.c (initialize_cold_section_name): Update.
4358         (unlikely_text_section): Update.
4359         (unlikely_text_section_p): Update.
4360         (assemble_start_function): Update.
4361         (assemble_end_function): Update.
4362         (default_section_type_flags): Update.
4363         (switch_to_section): Update.
4364         * integrate.c (set_decl_abstract_flags): Update.
4365         (get_hard_reg_initial_val): Update.
4366         (has_hard_reg_initial_val): Update.
4367         (allocate_initial_values): Update.
4368         * resource.c (init_resource_info): Update.
4369         * config/alpha/alpha.c (NUM_ARGS): Update.
4370         (direct_return): Update.
4371         (alpha_va_start): Update.
4372         (alpha_sa_size): Update.
4373         (alpha_initial_elimination_offset): Update.
4374         (alpha_expand_prologue): Update.
4375         (alpha_start_function): Update.
4376         (alpha_expand_epilogue): Update.
4377         (unicosmk_initial_elimination_offset):
4378         * config/alpha/alpha.md (call expander): Update.
4379         * config/s390/s390.c (s390_register_info): Update.
4380         (s390_register_info): Update.
4381         (s390_frame_info): Update.
4382         (s390_initial_elimination_offset): Update.
4383         (s390_build_builtin_va_list): Update.
4384         (s390_va_start): Update.
4385         * config/spu/spu.c (direct_return): Update.
4386         (spu_expand_prologue): Update.
4387         (spu_initial_elimination_offset): Update.
4388         (spu_build_builtin_va_list): Update.
4389         (spu_va_start): Update.
4390         * config/sparc/sparc.c (sparc_init_modes): Update.
4391         (sparc_compute_frame_size): Update.
4392         (function_value): Update.
4393         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
4394         * config/i386/i386.md (return expander): Update.
4395         * config/i386/i386.c (ix86_va_start): Update.
4396         (ix86_can_use_return_insn_p): Update.
4397         (ix86_compute_frame_layout): Update.
4398         (ix86_expand_epilogue): Update.
4399         * config/sh/sh.c (output_stack_adjust): Update.
4400         (calc_live_regs): Update.
4401         (sh_expand_prologue): Update.
4402         (sh_builtin_saveregs): Update.
4403         (sh_va_start): Update.
4404         (initial_elimination_offset): Update.
4405         (sh_allocate_initial_value): Update.
4406         (sh_function_ok_for_sibcall): Update.
4407         (sh_get_pr_initial_val): Update.
4408         * config/sh/sh.md (return expander): Update.
4409         * config/avr/avr.c (frame_pointer_required_p): UPdate.
4410         * config/crx/crx.c (crx_compute_frame): UPdate.
4411         (crx_initial_elimination_offset): UPdate.
4412         * config/xtensa/xtensa.c (compute_frame_size): Update
4413         (xtensa_builtin_saveregs): Update.
4414         (xtensa_va_start): Update.
4415         (order_regs_for_local_alloc): Update.
4416         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
4417         (xstormy16_expand_builtin_va_start): Update.
4418         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
4419         * config/m68hc11/m68hc11.md (return expanders): Update.
4420         * config/m68hc11/m68hc11.c (expand_prologue): Update.
4421         (expand_epilogue): Update.
4422         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
4423         (cris_simple_epilogue): Update.
4424         (cris_expand_prologue): Update.
4425         (cris_expand_epilogue): Update.
4426         * config/iq2000/iq2000.c (iq2000_va_start): Update.
4427         (compute_frame_size): Update.
4428         * config/mt/mt.c (mt_compute_frame_size): Update.
4429         * config/mn10300/mn10300.c (expand_prologue): Update.
4430         (expand_epilogue): Update.
4431         (initial_offset): Update.
4432         (mn10300_builtin_saveregs):
4433         * config/mn10300/mn10300.md (return expander): Update.
4434         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
4435         (ia64_initial_elimination_offset): Update.
4436         (ia64_initial_elimination_offset): Update.
4437         (ia64_expand_prologue): Update.
4438         * config/m68k/m68k.md (return expander): Update.
4439         * config/rs6000/rs6000.c (rs6000_va_start): Update.
4440         (rs6000_stack_info): Update.
4441         * config/mcore/mcore.c (layout_mcore_frame): Update.
4442         (mcore_expand_prolog): Update.
4443         * config/arc/arc.c (arc_compute_frame_size): Update.
4444         * config/score/score3.c (score3_compute_frame_size): Update.
4445         * config/score/score7.c (score7_compute_frame_size): Update.
4446         * config/arm/arm.c (use_return_insn): Update.
4447         (thumb_find_work_register): Update.
4448         (arm_compute_save_reg_mask): Update.
4449         (arm_output_function_prologue): Update.
4450         (arm_output_epilogue): Update.
4451         (arm_size_return_regs): Update.
4452         (arm_get_frame_offsets): Update.
4453         (arm_expand_prologue): Update.
4454         (thumb_exit): Update.
4455         (thumb_unexpanded_epilogue): Update.
4456         (thumb1_output_function_prologue): Update.
4457         * config/pa/pa.md (return expander): Update.
4458         * config/pa/pa.c (compute_frame_size): Update.
4459         (hppa_builtin_saveregs): Update.
4460         * config/mips/mips.c (mips_va_start): Update.
4461         (mips16_build_function_stub): Update.
4462         (mips_compute_frame_info): Update.
4463         (mips_restore_gp): Update.
4464         (mips_output_function_prologue): Update.
4465         (mips_expand_prologue): Update.
4466         * config/v850/v850.c (compute_frame_size): Update.
4467         (expand_prologue): * config/mmix/mmix.c (along): update.
4468         (mmix_initial_elimination_offset): update.
4469         (mmix_reorg): update.
4470         (mmix_use_simple_return): update.
4471         (mmix_expand_prologue): update.
4472         (mmix_expand_epilogue): Update.
4473         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
4474         (emit_link_insn): Update.
4475
4476 2008-04-08  Anatoly Sokolov <aesok@post.ru>
4477
4478         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
4479         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
4480         instructions.
4481         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
4482         atmega103 device.
4483
4484 2008-04-07  Jan Hubicka  <jh@suse.cz>
4485
4486         * function.h (rtl): Rename to x_rtl.
4487         (crtl): New define.
4488         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
4489         frame_offset, stack_check_probe_note, arg_pointer_save_area,
4490         used_temp_slots avail_temp_slots, temp_slot_level,
4491         nonlocal_goto_handler_labels): Update accesstors.
4492         (rtl): New global variable.
4493         (struct function): Move some fileds to rtl_data.
4494         (get_arg_pointer_save_area): Update prototype.
4495         * builtins.c (expand_builtin_setjmp_receiver): Update call of
4496         get_arg_pointer_save_area.
4497         * expr.c (init_expr): Update
4498         * function.c (get_frame_size): Update
4499         (assign_stack_local): Update
4500         (expand_function_end): Update.
4501         (get_art_pointer_save_area): Update
4502         * function.h 
4503         * emit-rtl.c (rtl): Declare.
4504         (regno_reg_rtx): Declare.
4505         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
4506         Update.
4507         (gen_reg_rtx): Update.
4508         * varasm.c (n_deferred_constatns): Update accestor.
4509         (init_varasm_status): Do not allocate varasm_status.
4510         (force_const_mem, get_pool_size, output_constant_pool): Update.
4511         * stmt.c (force_label_rtx): Do not use x_ prefixes.
4512         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
4513         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
4514         * sparc/sparc.h (INIT_EXPANDERS): Update.
4515         * ia64/ia64.h (INIT_EXPANDERS): Update.
4516
4517 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
4518
4519         * reload.c (push_secondary_reload): Add missing break to for loop.
4520
4521 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
4522
4523         PR middle-end/PR28690
4524         * rtlanal.c: Update copyright years.
4525         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
4526         as REG_POINTER and MEM_POINTER operands.
4527         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
4528         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
4529         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
4530         * gcse.c: Update copyright years.
4531         (pre_delete): Call gen_reg_rtx_and_attrs.
4532         (hoist_code): Likewise.
4533         (build_store_vectors): Likewise.
4534         (delete_store): Likewise.
4535         * loop-invariant.c (move_invariant_reg): Likewise.
4536         Update copyright years.
4537
4538 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
4539
4540         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
4541         control string instead of quoted.
4542
4543 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
4544
4545         * doc/rtl.texi: Rewrite of subreg section.
4546
4547 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
4548
4549         PR/35842
4550         * config/i386/i386.c (legitimize_pic_address): Add treating
4551         of dllimport SYM_REF's.
4552         (legitimize_dllimport_symbol): Add prototype.
4553
4554 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4555
4556         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
4557         reference in constructor with non self-referential type.
4558
4559 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4560
4561         Removal of Return with Depressed Stack Pointer support
4562         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
4563         (ECF_SP_DEPRESSED): Likewise.
4564         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
4565         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
4566         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
4567         (expand_call): Do not test ECF_SP_DEPRESSED.
4568         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
4569         * function.c (keep_stack_depressed): Delete.
4570         (handle_epilogue_set): Likewise.
4571         (update_epilogue_consts): Likewise.
4572         (emit_equiv_load): Likewise.
4573         (thread_prologue_and_epilogue_insns): Remove support for Return with
4574         Depressed Stack Pointer.
4575         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
4576
4577 2008-04-06  Richard Guenther  <rguenther@suse.de>
4578
4579         PR tree-optimization/35400
4580         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
4581         information from SSA_NAMEs.
4582
4583 2008-04-06  Anatoly Sokolov <aesok@post.ru>
4584
4585         * config/avr/avr.h (avr_mega_p): Remove declaration.
4586         (AVR_MEGA): Remove macro.
4587         * config/avr/avr.c (avr_mega_p): Remove variable.
4588         (avr_override_options): Remove inicializion of avr_mega_p.
4589         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
4590         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
4591         (avr_jump_mode): (Ditto.).
4592         (avr_output_progmem_section_asm_op): (Ditto.).
4593         (avr_asm_init_sections): (Ditto.).
4594         (avr_asm_init_sections): (Ditto.).
4595         (avr_rtx_costs): (Ditto.).
4596         * config/avr/avr.md: (Ditto.).
4597         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
4598         '__AVR_MEGA__'.
4599
4600 2008-04-06  Richard Guenther  <rguenther@suse.de>
4601
4602         PR tree-optimization/35842
4603         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
4604         is_gimple_invariant_address.
4605
4606 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4607
4608         * gcc.c (default_compilers): Sync Fortran extensions list with
4609         that in fortran/lang-specs.h.
4610         * doc/invoke.texi: Likewise.
4611         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
4612         * dwarf2out.c (gen_compile_unit_die): Likewise.
4613
4614 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
4615
4616         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
4617
4618 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
4619
4620         PR target/12329
4621         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
4622         attribute is used for nested functions.
4623
4624 2008-04-05  Jan Hubicka  <jh@suse.cz>
4625
4626         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
4627
4628         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
4629         letter argument.
4630         (dump_files): Update.
4631         (enable_rtl_dump_file): Do not accept letter argument.
4632         * tree-pass.h (dump_file_info): Remove letter argument.
4633         * toplev.c (decode_d_option): Update -da handling.
4634         * toplev.h (enable_rtl_dump_file): Update prototype.
4635         * passes.c (register_one_dump_file): Do not accept IPA argument; work
4636         it out based on pass type.
4637         (register_dump_files_1): Likewise.
4638         (init_optimization_passes): Update register_one_dump_file calls.
4639         (execute_one_pass): Sanity check that IPA passes are called at IPA
4640         level and RTL passes at RTL level.
4641         (execute_pass_list): IPA pass can not be after or subpass of
4642         GIMPLE/RTL pass.
4643         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
4644         disallov RTL subpasses of IPA subpasses.
4645
4646 2008-04-05  Ben Elliston  <bje@au.ibm.com>
4647
4648         * tree-cfg.c (need_fake_edge_p): Return false for calls to
4649         builtins that return exactly once and do not throw. Cache call to
4650         call_expr_flags.
4651
4652 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
4653
4654         PR rtl-optimization/34916
4655         PR middle-end/35519
4656         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
4657         between instruction pairs.
4658
4659 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
4660
4661         * doc/invoke.texi: Document -mbitops for SH.
4662         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
4663         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
4664         * config/sh/sh.c (print_operand): Add %t operand code.
4665         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
4666         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
4667         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
4668         (extendqihi2): Likewise.
4669         (movqi_i): Likewise.
4670         (insv): Use bset, bclr and bst instructions for SH2A if possible.
4671         (extv): Use bld instruction for SH2A if possible.
4672         (extzv): Likewise.
4673         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
4674         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
4675         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
4676         (bset.b, bclr.b): Define peepholes.
4677         * config/sh/sh.opt (mbitops): New option.
4678
4679 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
4680
4681         PR target/35620
4682         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
4683         and view convert expression.
4684
4685 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
4686
4687         PR target/35364
4688         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
4689
4690 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
4691
4692         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
4693
4694         * config/i386/cpuid.h (bit_AES): New.
4695         (bit_PCLMUL): Likewise.
4696
4697         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
4698         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
4699         SSE2 if AES or PCLMUL is enabled.
4700         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
4701         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
4702         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
4703         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
4704         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
4705         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
4706         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
4707         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
4708         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
4709         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
4710         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
4711         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
4712         __builtin_ia32_aeskeygenassist128 and
4713         __builtin_ia32_pclmulqdq128.
4714         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
4715         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
4716         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
4717
4718         * config/i386/i386.h (TARGET_AES): New.
4719         (TARGET_PCLMUL): Likewise.
4720         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
4721
4722         * config/i386/i386.md (UNSPEC_AESENC): New.
4723         (UNSPEC_AESENCLAST): Likewise.
4724         (UNSPEC_AESDEC): Likewise.
4725         (UNSPEC_AESDECLAST): Likewise.
4726         (UNSPEC_AESIMC): Likewise.
4727         (UNSPEC_AESKEYGENASSIST): Likewise.
4728         (UNSPEC_PCLMUL): Likewise.
4729
4730         * config/i386/i386.opt (maes): New.
4731         (mpclmul): Likewise.
4732
4733         * config/i386/sse.md (aesenc): New pattern.
4734         (aesenclast): Likewise.
4735         (aesdec): Likewise.
4736         (aesdeclast): Likewise.
4737         (aesimc): Likewise.
4738         (aeskeygenassist): Likewise.
4739         (pclmulqdq): Likewise.
4740
4741         * config/i386/wmmintrin.h: New.
4742
4743         * doc/extend.texi: Document AES and PCLMUL built-in function.
4744
4745         * doc/invoke.texi: Document -maes and -mpclmul.
4746
4747 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
4748
4749         * function.c (free_after_parsing): Replace with
4750         cxx_push_function_context from C++ front-end.
4751         (allocate_struct_function): Don't call langhook.
4752         * langhooks.h (struct lang_hooks_for_functions): Delete.
4753         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
4754         member "function".
4755         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
4756         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
4757         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
4758         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
4759         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
4760         remove LANG_HOOKS_FUNCTION_INITIALIZER.
4761         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
4762
4763         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
4764         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
4765         
4766 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
4767
4768         PR c/35440
4769         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
4770         for all types.
4771
4772 2008-04-04  Richard Guenther  <rguenther@suse.de>
4773
4774         PR middle-end/35823
4775         * fold-const.c (optimize_minmax_comparison): Use the correct
4776         type for the constant in the simplified comparison.
4777
4778 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
4779
4780         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
4781         Pass L2 size as "--param l2-cache-size" to the compiler.
4782         (decode_l2_cache): New function to decode L2 cache parameters using
4783         0x8000006 extended cpuid function.
4784         (detect_caches_amd): Determine parameters of L2 cache using
4785         decode_l2_caches function.
4786         (decode_caches_intel): Decode L2 cache parameters.
4787         (detect_caches_intel): Determine L2 cache parameters using
4788         decode_caches_intel and decode_l2_caches functions.
4789
4790 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
4791
4792         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
4793         secondary input reload for subword loads from the constant pool.
4794
4795 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
4796
4797         PR target/35713
4798         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
4799           constants of the appropriate size for runtime calculations.
4800
4801         PR c/35712
4802         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
4803           decimal-float literal constant zero.
4804
4805 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
4806
4807         PR c/35738
4808         * c-parser.c (c_parser_omp_atomic): Call
4809         default_function_array_conversion on the RHS.
4810
4811         PR middle-end/35818
4812         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
4813         call is_variable_sized if decl has incomplete type.
4814
4815 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
4816
4817         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
4818
4819 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
4820
4821         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
4822         iterators.
4823         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
4824         (sgt<u>): Merge sgt and sgtu into new expander.
4825         (sgt, sgtu): Remove expanders.
4826         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
4827         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
4828         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
4829         *sgtu_<mode>_mips16 into new pattern.
4830         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
4831         (sge<u>): Merge sge and sgeu into new expander.
4832         (sge, sgeu): Remove expanders.
4833         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
4834         new pattern.
4835         (*sge_<mode>, second *sge_<mode>): Remove patterns.
4836         (slt<u>): Merge slt and sltu into new expander.
4837         (slt, sltu): Remove expanders.
4838         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
4839         (*slt_<mode>, *sltu_<mode>): Remove patterns.
4840         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
4841         *sltu_<mode>_mips16 into new pattern.
4842         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
4843         (sle<u>): Merge sle and sleu into new expander.
4844         (sle, sleu): Remove expanders.
4845         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
4846         (*sle_<mode>, *sleu_<mode>): Remove patterns.
4847         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
4848         *sleu_<mode>_mips16 into new pattern.
4849         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
4850
4851 2008-04-03  Jan Hubicka  <jh@suse.cz>
4852
4853         PR tree-optimization/35795
4854         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
4855         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4856         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
4857         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
4858         * score/score3.c (score3_output_mi_thunk): Likewise.
4859         * score/score7.c (score7_output_mi_thunk): Likewise.
4860         * mips/mips.c (mips_output_mi_thunk): Likewise.
4861
4862 2008-04-03  Richard Guenther  <rguenther@suse.de>
4863
4864         * tree-vrp.c (extract_range_from_unary_expr): Handle all
4865         conversions.  Simplify code.
4866
4867 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4868
4869         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
4870
4871 2008-04-03  Tom Tromey  <tromey@redhat.com>
4872             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4873
4874         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
4875         * config/bfin/t-bfin-linux (generated_files): Add
4876         linux-sysroot-suffix.h.
4877         * doc/install.texi (Prerequisites): Require make 3.80.
4878         * doc/sourcebuild.texi (Front End Directory): Document new
4879         variable.
4880         * Makefile.in (generated_files): New variable.
4881         (ALL_HOST_OBJS): New variable.
4882         ($(ALL_HOST_OBJS)): New target.
4883
4884 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
4885
4886         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
4887         (remap_block): Call id->transform_lang_insert_block instead
4888         of langhook.
4889         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
4890         Set id.transform_lang_insert_block to NULL.
4891         (clone_body): Move to cp/optimize.c
4892         * tree-inline.h (struct copy_body_data): Change
4893         transform_lang_insert_block to function pointer.
4894         (copy_generic_body, copy_decl_no_change): Export.
4895         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
4896         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
4897         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
4898
4899         * c-tree.h (insert_block): Kill.
4900         * c-decl.c (insert_block): Kill.
4901
4902 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
4903
4904         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4905         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
4906         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
4907         argument.
4908         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
4909         argument, call {push,pop}_function_context from here.
4910         * c-parser.c: Use c_{push,pop}_function_context.
4911
4912         * function.c (push_function_context_to): Move meat ...
4913         (push_function_context): ... here.  Simplify.
4914         * function.c (pop_function_context_from): Move meat ...
4915         (pop_function_context): ... here.  Simplify.
4916         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
4917         leave_nested).
4918         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
4919         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
4920         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
4921         * tree.h (push_function_context_to, pop_function_context_from): Remove.
4922
4923 2008-04-03  Ben Elliston  <bje@au.ibm.com>
4924
4925         * expmed.c (extract_force_align_mem_bit_field): Remove.
4926
4927 2008-04-03  Richard Guenther  <rguenther@suse.de>
4928
4929         PR middle-end/35800
4930         * expr.h (try_casesi): Adjust prototype.
4931         * expr.c (try_casesi): Take fallback label as extra parameter.
4932         Use that for gen_casesi if default_label is NULL.
4933         * stmt.c (expand_case): Pass fallback label to try_casesi,
4934         make sure to fill gaps with a fallback label if default_label
4935         is not present.
4936
4937 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
4938
4939         PR target/35801
4940         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
4941
4942 2008-04-03  Ben Elliston  <bje@au.ibm.com>
4943
4944         * expmed.c (extract_split_bit_field): Remove if (0) code.
4945         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
4946         (do_ds_constraint): Likewise.
4947
4948 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
4949
4950         * doc/cppopts.texi (-dU): Document.
4951         * c-common.h (flag_dump_macros): Update comment.
4952         * c-opts.c (handle_OPT_d): Handle -dU.
4953         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
4954         dump_queued_macros, cb_used_define, cb_used_undef): New.
4955         (init_pp_output): Handle -dU.
4956         (cb_line_change): Call dump_queued_macros.
4957         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
4958
4959 2008-04-02  Anatoly Sokolov <aesok@post.ru>
4960
4961         * config/avr/predicates.md (io_address_operand): New predicate. 
4962         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
4963         * config/avr/avr.c (avr_io_address_p): Remove function.
4964         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
4965         'avr_io_address_p' function.
4966         (out_movhi_r_mr): (Ditto.).
4967         (out_movqi_mr_r): (Ditto.).
4968         (out_movhi_mr_r): (Ditto.).
4969         (avr_address_cost): (Ditto.).
4970
4971 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
4972
4973         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
4974         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
4975         in 32bit mode when XMM registers are available to avoid store
4976         forwarding stalls.
4977         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
4978         corresponding post-reload splitters.
4979
4980 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
4981
4982         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
4983         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
4984         __builtin_ia32_roundss.
4985         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
4986         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
4987         __builtin_ia32_roundss.
4988         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
4989         IX86_BUILTIN_SHUFPD here.
4990
4991 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
4992
4993         * config/i386/i386.md (plogic): New.
4994         (plogicprefix): Likewise.
4995
4996         * config/i386/mmx.md (mmx_<code><mode>3): New.
4997         (mmx_and<mode>3): Removed.
4998         (mmx_ior<mode>3): Likewise.
4999         (mmx_xor<mode>3): Likewise.
5000
5001         * config/i386/sse.md (<code><mode>3): New.
5002         (*<code><mode>3): Likewise.
5003         (*<code><mode>3): Likewise.
5004         (<code><mode>3): Likewise.
5005         (*sse_<code><mode>3): Likewise.
5006         (*sse2_<code><mode>3): Likewise.
5007         (<code>tf3): Likewise.
5008         (*<code>tf3): Likewise.
5009         (and<mode>3): Likewise.
5010         (*and<mode>3): Likewise.
5011         (ior<mode>3): Removed.
5012         (*ior<mode>3): Likewise.
5013         (xor<mode>3): Likewise.
5014         (*xor<mode>3): Likewise.
5015         (*and<mode>3): Likewise.
5016         (*ior<mode>3): Likewise.
5017         (*xor<mode>3): Likewise.
5018         (and<mode>3): Likewise.
5019         (*sse_and<mode>3): Likewise.
5020         (*sse2_and<mode>3): Likewise.
5021         (andtf3): Likewise.
5022         (*andtf3): Likewise.
5023         (ior<mode>3): Likewise.
5024         (*sse_ior<mode>3): Likewise.
5025         (*sse2_ior<mode>3): Likewise.
5026         (iortf3): Likewise.
5027         (*iortf3): Likewise.
5028         (xor<mode>3): Likewise.
5029         (*sse_xor<mode>3): Likewise.
5030         (*sse2_xor<mode>3): Likewise.
5031         (xortf3): Likewise.
5032         (*xortf3): Likewise.
5033
5034 2008-04-02  Richard Guenther  <rguenther@suse.de>
5035
5036         PR tree-optimization/14495
5037         PR tree-optimization/34793
5038         * tree-vrp.c (struct switch_update): New structure.
5039         (to_remove_edges, to_update_switch_stmts): New VECs.
5040         (simplify_switch_using_ranges): New function.  Remove not taken
5041         case labels and edges.
5042         (simplify_stmt_using_ranges): Call it.
5043         (identify_jump_threads): Mark edges we have queued for removal
5044         so we don't thread them.
5045         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
5046         case label vector.
5047         * tree-cfg.c (group_case_labels): Deal with missing default label.
5048         (tree_verify_flow_info): Allow missing default label.
5049         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
5050         (emit_case_nodes): Likewise.
5051         (expand_case): Do not rely on the default label to be present.
5052         * expr.c (try_casesi): Deal with NULL default_label.
5053         (do_tablejump): Likewise.
5054
5055 2008-04-02  Richard Guenther  <rguenther@suse.de>
5056
5057         PR tree-optimization/14495
5058         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
5059         SWITCH_EXPR here ...
5060         (vrp_visit_switch_stmt): ... but here (new function).
5061         (find_case_label_index): New helper function.
5062         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
5063
5064 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5065
5066         * fwprop.c: Fix ISO-C99ism.
5067
5068 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5069
5070         PR bootstrap/35752
5071         * Makefile.in (objdir): Set it here.
5072         * configure.ac: Not here.  Find dynamic linker characteristics.
5073         * exec-tool.in: Use them.
5074         * aclocal.m4: Regenerate.
5075         * configure: Regenerate.
5076
5077 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5078
5079         * expr.c (expand_var): Delete it.
5080         * expr.h (expand_var): Delete prototype.
5081         * function.c (expand_function_start): Use expand_decl instead.
5082         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
5083         langhook.
5084
5085 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
5086
5087         PR rtl-optimization/35542
5088         * fwprop.c (forward_propagate_and_simplify): Replace
5089         loc_reg_mentioned_in_p with reg_mentioned_p.
5090
5091 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5092
5093         PR rtl-optimization/35281
5094         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
5095         (propagate_rtx_1): Handle PR_HANDLE_MEM.
5096         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
5097         (varying_mem_p): Move above propagate_rtx.
5098         (all_uses_available_at): Do not check MEMs.
5099
5100 2008-04-02  Rafael Espindola  <espindola@google.com>
5101
5102         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
5103         (register_edge_assert_for_2): Split the cond argument.
5104         (register_edge_assert_for_1): Adjust for the change in
5105         register_edge_assert_for_2.
5106         (register_edge_assert_for): Split the cond argument.
5107         (find_switch_asserts): Adjust for the change in
5108         register_edge_assert_for.
5109
5110 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
5111
5112         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
5113         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
5114         offsets for 64-bit mingw.
5115         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
5116         abi for x86_64-pc-mingw.
5117
5118 2008-04-02  Richard Guenther  <rguenther@suse.de>
5119
5120         * tree-vrp.c (extract_range_from_assert): Make sure to not
5121         produce range min/max with TREE_OVERFOW set.
5122         If merging a anti-range and a range keep the anti-range if
5123         the range covers all values of the type.
5124         (register_edge_assert_for_2): Only allow sign-changing
5125         conversions in detecting canonical range checks.  Also
5126         register an assert for the unsigned name if useful.
5127
5128         PR tree-optimization/35787
5129         * tree-vrp.c (vrp_val_max): New function.
5130         (vrp_val_min): Likewise.
5131         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
5132         (vrp_val_is_min): Likewise.
5133         (supports_overflow_infinity): Use vrp_val_{min,max}.
5134         (negative_overflow_infinity): Likewise.
5135         (positive_overflow_infinity): Likewise.
5136         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
5137         (is_positive_overflow_infinity): Likewise.
5138         (is_overflow_infinity): Likewise.
5139         (avoid_overflow_infinity): Use vrp_val_{min,max} and
5140         vrp_val_is_{min,max}.
5141         (set_and_canonicalize_value_range): Canonicalize anti-ranges
5142         to ranges if possible.  Avoid empty ranges.
5143
5144 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5145
5146         PR middle-end/35705
5147         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
5148         the expression is a function address.
5149
5150 2008-04-01  George Helffrich  <george@gcc.gnu.org>
5151
5152         PR fortran/35154, fortran/23057
5153         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
5154         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
5155         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
5156         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
5157         in common.
5158         (dbxout_syms): Check for COMMON-based symbol and wrap in
5159         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
5160         in bracket for efficiency.
5161
5162         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
5163         using DW_TAG_common_block + member offset.
5164         (add_pubname_string): New function.
5165         (dw_expand_expr): New function to find block name and offset for
5166         COMMON var.
5167         (common_check): New function to check whether symbol in Fortran COMMON.
5168         (gen_variable_die): If COMMON, use DW_TAG_common_block.
5169
5170 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
5171
5172         PR c/35436
5173         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
5174
5175 2008-04-02  Ben Elliston  <bje@au.ibm.com>
5176
5177         * config/v850/v850.md (casesi): Remove if (0) code.
5178         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5179         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5180
5181 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
5182
5183         * config/i386/i386.md (rex64suffix): New mode attribute.
5184         (floathi<mode>2): Disable expander for SSE math.
5185         (*floathi<mode>2_1): New insn insn_and_split pattern.
5186         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
5187         corresponding post-reload splitters.
5188         (*floathi<mode>2_i387): New macroized insn pattern.
5189         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
5190         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
5191         insn_and_split pattern.
5192         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
5193         New macroized instruction patterns and corresponding post-reload
5194         splitters.
5195         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
5196         and corresponding post-reload splitters.
5197         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
5198         New macroized instruction patterns.
5199         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
5200         macroized instruction patterns and corresponding post-reload splitters.
5201         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
5202         corresponding post-reload splitters.
5203         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
5204         New macroized instruction patterns.
5205         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
5206         corresponding post-reload splitters.
5207         (*floatsi<mode>2_i387): New macroized instruction patterns.
5208
5209 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
5210
5211         * config/i386/i386.md (smaxmin): New.
5212         (umaxmin): Likewise.
5213         (maxminiprefix): Likewise.
5214         (maxminfprefix): Likewise.
5215         (<code><mode>3): Likewise.
5216         (smin<mode>3): Removed.
5217         (smax<mode>3): Likewise.
5218
5219         * config/i386/mmx.md (mmx_<code>v2sf3): New.
5220         (mmx_<code>v4hi3): Likewise.
5221         (mmx_<code>v8qi3): Likewise.
5222         (mmx_smaxv2sf3): Removed.
5223         (mmx_sminv2sf3): Likewise.
5224         (mmx_umaxv8qi3): Likewise.
5225         (mmx_smaxv4hi3): Likewise.
5226         (mmx_uminv8qi3): Likewise.
5227         (mmx_sminv4hi3): Likewise.
5228
5229         * config/i386/sse.md (<addsub><mode>3): New.
5230         (*<addsub><mode>3): Likewise.
5231         (<sse>_vm<addsub><mode>3): Likewise.
5232         (<maxmin><mode>3): Likewise.
5233         (*<maxmin><mode>3_finite): Likewise.
5234         (*<maxmin><mode>3): Likewise.
5235         (<sse>_vm<maxmin><mode>3): Likewise.
5236         (sse3_h<addsub>v4sf3): Likewise.
5237         (sse3_h<addsub>v2df3): Likewise.
5238         (<maxmin>v16qi3): Likewise.
5239         (*<maxmin>v16qi3): Likewise.
5240         (<maxmin>v8hi3): Likewise.
5241         (*<maxmin>v8hi3): Likewise.
5242         (*sse4_1_<maxmin><mode>3): Likewise.
5243         (*sse4_1_<maxmin><mode>3): Likewise.
5244         (add<mode>3): Removed.
5245         (*add<mode>3): Likewise.
5246         (<sse>_vmadd<mode>3): Likewise.
5247         (sub<mode>3): Likewise.
5248         (*sub<mode>3): Likewise.
5249         (<sse>_vmsub<mode>3): Likewise.
5250         (smin<mode>3): Likewise.
5251         (*smin<mode>3_finite): Likewise.
5252         (*smin<mode>3): Likewise.
5253         (<sse>_vmsmin<mode>3): Likewise.
5254         (smax<mode>3): Likewise.
5255         (*smax<mode>3_finite): Likewise.
5256         (*smax<mode>3): Likewise.
5257         (<sse>_vmsmax<mode>3): Likewise.
5258         (sse3_haddv4sf3): Likewise.
5259         (sse3_haddv2df3): Likewise.
5260         (sse3_hsubv4sf3): Likewise.
5261         (sse3_hsubv2df3): Likewise.
5262         (umaxv16qi3): Likewise.
5263         (*umaxv16qi3): Likewise.
5264         (smaxv8hi3): Likewise.
5265         (*smaxv8hi3): Likewise.
5266         (*sse4_1_smax<mode>3): Likewise.
5267         (*sse4_1_umax<mode>3): Likewise.
5268         (uminv16qi3): Likewise.
5269         (*uminv16qi3): Likewise.
5270         (sminv8hi3): Likewise.
5271         (*sminv8hi3): Likewise.
5272         (*sse4_1_smin<mode>3): Likewise.
5273         (*sse4_1_umin<mode>3): Likewise.
5274
5275 2008-04-01  Rafael Espindola  <espindola@google.com>
5276
5277         * tree-cfg.c (verify_expr): remove in_phi.
5278         (verify_stmt): Don't call walk_tree with verify_expr. Use
5279         is_gimple_min_invariant instead of is_gimple_val.
5280
5281 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
5282
5283         * doc/include/gpl_v3.texi: Update for manpage generation.
5284         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
5285         gpl.texi.
5286         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
5287         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
5288         gpl_v3.texi instead of gpl.texi.
5289         (gpl.pod): New.
5290
5291 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
5292
5293         PR pch/13675
5294         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
5295
5296 2008-04-01  Rafael Espindola  <espindola@google.com>
5297
5298         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
5299         (extract_code_and_val_from_cond): Use
5300         extract_code_and_val_from_cond_with_ops.
5301
5302 2008-04-01  Jan Hubicka  <jh@suse.cz>
5303
5304         * function.c (free_after_compilation): Free epilogue_delay_list.
5305         (prepare_function_start): Assert that previous compilation was freed.
5306
5307 2008-04-01  Jan Hubicka  <jh@suse.cz>
5308             Jim Wilson  <wilson@tuliptree.org>
5309             Andreas Tobler <andreast@gcc.gnu.org>
5310
5311         PR middle-end/35781
5312         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
5313         rtl.emit instead cfun->emit.
5314         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
5315         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
5316
5317 2008-04-01  Ben Elliston  <bje@au.ibm.com>
5318
5319         * doc/c-tree.texi (Function Basics): Fix grammatical error.
5320
5321 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
5322
5323         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
5324         New options
5325         (fprofile-use): Add var flag_profile_use
5326         * coverage.c (coverage_begin_output): Do not open a gcno file for
5327         output only if -ftest-coverage is set.
5328         Do not add getpwd() to gcda file path.
5329         (build_gcov_info): Check the new flag
5330         flag_profile_datafile_relative_path.
5331         (coverage_init): Use profile_data_prefix.
5332         Read profile counter only if flag_profile_use is set.
5333         * opts.c (common_handle_option): New option fprofile-use=,
5334         fprofile-dir=, fprofile-generate=.
5335         * toplev.c (profile_data_prefix): New variable definition.
5336         * toplev.h (profile_data_prefix): New declaration.
5337         * doc/invoke.tex (Option Summary, Optimization Options):
5338         Add new options.
5339
5340 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
5341
5342         * varasm.c (output_constant_pool_1): In LABEL_REF check,
5343         use tmp consistently.
5344
5345         PR target/35695
5346         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
5347         * config/ia64/ia64.c (rtx_needs_barrier): Handle
5348         UNSPEC_FR_RECIP_APPROX_RES.
5349         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
5350
5351 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
5352
5353         PR c/35750
5354         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
5355
5356 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5357
5358         PR middle-end/30186
5359         * fold-const.c (fold_indirect_ref_1): Support accessing non first
5360         element of the vector via a pointer.
5361
5362 2008-03-31  Ian Lance Taylor  <iant@google.com>
5363
5364         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
5365
5366 2008-03-31  Jan Hubicka  <jh@suse.cz>
5367
5368         * builtins.c (expand_builtin_setjmp_receiver): Update call of
5369         get_arg_pointer_save_area.
5370         * expr.c (init_expr): Just clear out rtl.expr.
5371         * function.c (free_after_compilation): Clear out whole RTL structure.
5372         (get_func_frame_size): Merge into ...
5373         (get_frame_size): ... this one.
5374         (assign_stack_local_1): Merge into ...
5375         (assign_stack_local): ... this one.
5376         (expand_function_end): Update call of get_arg_pointer_save_area.
5377         (get_art_pointer_save_area): Remove cfun argument.
5378         * function.h (emit_status): regno_pointer_align does not need length
5379         attribute. Move x_regno_reg_rtx to ...
5380         (regno_reg_rtx): ... new global array.
5381         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
5382         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
5383         apply_args_value, forced_labels, stack_pointer_delta):
5384         Update accestors.
5385         (struct varasm_status): Move here from varasm.c
5386         (struct rtl_data): New. Move here some fields from struct function.
5387         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
5388         frame_offset, stack_check_probe_note, arg_pointer_save_area,
5389         used_temp_slots avail_temp_slots, temp_slot_level,
5390         nonlocal_goto_handler_labels): Update accesstors.
5391         (rtl): New global variable.
5392         (struct function): Move some fileds to rtl_data.
5393         (get_arg_pointer_save_area): Update prototype.
5394         * emit-rtl.c (rtl): Declare.
5395         (regno_reg_rtx): Declare.
5396         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
5397         Update.
5398         (gen_reg_rtx): Update.
5399         (init_virtual_regs): Do not tate emit_status argument.
5400         (init_emit): Do not allocate emit.
5401         * varasm.c (varasm_statuc): Move to function.h.
5402         (n_deferred_constatns): Update accestor.
5403         (init_varasm_status): Do not allocate varasm_status.
5404         (force_const_mem, get_pool_size, output_constant_pool): Update.
5405         * stmt.c (force_label_rtx): Do not use x_ prefixes.
5406         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
5407
5408 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
5409
5410         PR rtl-optimization/35729
5411         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
5412         references.
5413
5414 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
5415
5416         PR target/32000
5417         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
5418         load/store if memory is unaligned.
5419         (*movti_rex64): Likewise.
5420
5421         * config/i386/predicates.md (misaligned_operand): New.
5422
5423 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
5424
5425         PR tree-opt/35431
5426         * tree-ssa-phiopt.c (conditional_replacement): Return early for
5427         complex types.
5428
5429 2008-03-31  Jan Beulich  <jbeulich@novell.com>
5430
5431         * config/ia64/constraints.md: Add 'j' constraint.
5432         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
5433         (movdi_internal): Likewise.
5434
5435 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
5436
5437         PR c/35748
5438         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
5439
5440 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
5441
5442         PR target/35757
5443         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
5444         proper error message for the third argument on blendpd and
5445         blendps.
5446
5447         * config/i386/sse.md (blendbits): New.
5448         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
5449
5450 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
5451
5452         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
5453
5454 2008-03-30  Richard Guenther  <rguenther@suse.de>
5455
5456         PR middle-end/31023
5457         * fold-const.c (fold_sign_changed_comparison): Do leave
5458         conversions to base-types alone.
5459
5460 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5461
5462         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
5463         the link register if one altivec register is be saved.
5464
5465 2008-03-30  Ben Elliston  <bje@au.ibm.com>
5466
5467         * final.c (final_scan_insn): Remove if (0) code.
5468
5469 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
5470
5471         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
5472
5473 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
5474
5475         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
5476         of V4SFmode to ix86_binary_operator_ok.
5477
5478 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
5479
5480         * config/i386/i386.c (override_options): Initialize
5481         ix86_veclib_handler to ix86_veclibabi_svml when
5482         -mveclibabi=svml is used.
5483         (ix86_veclibabi_svml): New function for SVML ABI style
5484         vectorization support.
5485         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
5486
5487 2008-03-28  Rafael Espindola  <espindola@google.com>
5488
5489         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
5490         (tree_binary_nonnegative_warnv_p): Make it public.
5491         (tree_single_nonnegative_warnv_p): Make it public.
5492         (tree_invalid_nonnegative_warnv_p): Make it public.
5493         (tree_unary_nonzero_warnv_p): Make it public.
5494         (tree_binary_nonzero_warnv_p): Make it public
5495         (tree_single_nonzero_warnv_p): Make it public.
5496         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
5497         (extract_range_from_binary_expr): Split the expr argument.
5498         (extract_range_from_unary_expr): Split the expr argument.
5499         (extract_range_from_comparison): Split the expr argument.
5500         (extract_range_from_expr): Use the new aux functions.
5501         (vrp_evaluate_conditional_warnv): Use
5502         vrp_evaluate_conditional_warnv_with_ops.
5503         * tree.h (tree_unary_nonzero_warnv_p): Declare.
5504         (tree_binary_nonzero_warnv_p): Declare.
5505         (tree_single_nonzero_warnv_p): Declare.
5506         (tree_expr_nonzero_warnv_p): Declare.
5507         (tree_unary_nonnegative_warnv_p): Declare.
5508         (tree_binary_nonnegative_warnv_p): Declare.
5509         (tree_single_nonnegative_warnv_p): Declare.
5510         (tree_invalid_nonnegative_warnv_p): Declare.
5511
5512 2008-03-28  Richard Guenther  <rguenther@suse.de>
5513
5514         PR tree-optimization/30317
5515         PR tree-optimization/30911
5516         PR tree-optimization/34793
5517         * tree-vrp.c (set_and_canonicalize_value_range): New function.
5518         (struct assert_locus_d): New member EXPR.
5519         (register_new_assert_for): Add EXPR parameter to support
5520         ASSERT_EXPR <name, expr OP limit>.
5521         (register_edge_assert_for_1): Adjust callers.
5522         (find_assert_locations): Likewise.
5523         (process_assert_insertions_for): Build condition from expression.
5524         (extract_range_from_assert): Handle ASSERT_EXPRs
5525         of the form ASSERT_EXPR <name, expr OP limit>.
5526         (register_edge_assert_for_2): New helper registering
5527         asserts for comparisons.  Recognize range tests of the form
5528         (unsigned)i - CST1 OP CST2.
5529         (register_edge_assert_for_1): Use it.
5530         (register_edge_assert_for): Likewise.
5531         (needs_overflow_infinity): Integer sub-types
5532         do not need overflow infinities.
5533         (vrp_val_is_max): The extreme values of integer sub-types
5534         are those of the base type.
5535         (vrp_val_is_min): Likewise.
5536         * tree.def (ASSERT_EXPR): Document extra allowed conditional
5537         expressions.
5538
5539 2008-03-28  Nick Clifton  <nickc@redhat.com>
5540
5541         PR target/31110
5542         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5543         Return GENERAL_REGS for stack adjustment reloads.
5544
5545 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5546
5547         PR target/31334
5548         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
5549         const_vector when all the vectors are constant.
5550
5551 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
5552
5553         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
5554         comparisons.
5555         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
5556         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
5557         (scc_sf): New.
5558         (s<code>_sf): Use new scc_sf attribute for opcode names.
5559
5560 2008-03-27  Tom Tromey  <tromey@redhat.com>
5561
5562         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
5563         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
5564         config/spu/t-spu-elf, config/i386/t-interix,
5565         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
5566         config/i386/x-darwin, config/i386/x-mingw32,
5567         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
5568         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
5569         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
5570         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
5571         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
5572         config/rs6000/x-darwin, config/rs6000/t-rs6000,
5573         config/score/t-score-elf, config/arm/t-strongarm-pe,
5574         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
5575         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
5576         Revert automatic dependency patch.
5577
5578 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5579
5580         PR target/35657
5581         * config/i386/i386.c (ix86_function_arg_boundary): Align
5582         decimal floating point to its natural boundary.
5583
5584 2008-03-27  Richard Guenther  <rguenther@suse.de>
5585
5586         PR middle-end/35716
5587         * fold-const.c (fold_comparison): Restrict distinct decl
5588         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
5589         solely rely on operand_equal_p.
5590
5591 2008-03-27  Richard Guenther  <rguenther@suse.de>
5592
5593         PR c/32511
5594         * c-common.c (handle_weak_attribute): Reject combination of
5595         weak and inline.
5596
5597 2008-03-27  Richard Guenther  <rguenther@suse.de>
5598
5599         PR tree-optimization/32810
5600         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
5601         conversions from DECL_INITIAL.
5602         (fold_const_aggregate_ref): Likewise from constructor elements.
5603
5604 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
5605
5606         * tree-affine.h (aff_combination_expand): Declare.
5607         (get_inner_reference_aff): Likewise.
5608         * tree-affine.c (aff_combination_expand): Split out from
5609         tree_to_aff_combination_expand.
5610         (get_inner_reference_aff): New function.
5611         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
5612         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
5613         (struct lim_aux_data): sm_done field removed.
5614         (mem_ref_loc_p, mem_ref_locs_p): New types.
5615         (struct mem_ref): Added id, stored, accesses_in_loop,
5616         indep_loop, dep_loop, indep_ref, dep_ref fields.
5617         Removed is_stored, locs and next fields.
5618         (memory_accesses): New variable.
5619         (movement_possibility): Do not allow moving statements
5620         that store to memory.
5621         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
5622         New functions.
5623         (determine_max_movement): For statements with memory references,
5624         find the outermost loop in that the reference is independent.
5625         (move_computations_stmt): Mark the virtual operands for renaming.
5626         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
5627         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
5628         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
5629         add_vop_ref_mapping, create_vop_ref_mapping_loop,
5630         create_vop_ref_mapping, analyze_memory_references,
5631         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
5632         get_all_locs_in_loop, ref_always_accessed_p,
5633         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
5634         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
5635         store_motion_loop, store_motion): New functions.
5636         (struct vop_to_refs_elt): New type.
5637         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
5638         memref_hash, memref_eq, hoist_memory_references): Rewritten.
5639         (schedule_sm): Replaced by...
5640         (execute_sm): ... this.
5641         (determine_lsm_ref, hoist_memory_references,
5642         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
5643         find_more_ref_vops, free_mem_ref, free_mem_refs,
5644         determine_lsm_loop, determine_lsm): Removed.
5645         (tree_ssa_lim_finalize): Free data structures used by store motion.
5646         (tree_ssa_lim): Call analyze_memory_references.  Use
5647         store_motion instead of determine_lsm.
5648
5649 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
5650
5651         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
5652         rename tmake_file to m68hc11/t-m68hc11.
5653         (mcore): Set inhibit_libc to true.
5654         * config.host (alpha*-dec-*vms*): Set extra_programs.
5655         (interix3*): Don't use host_xmake_file.
5656         * configure.ac: Let config.gcc override inhibit_libc.
5657         * configure: Regenerate.
5658
5659         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
5660         * config/t-openbsd-thread: Remove commented out lines.
5661         
5662         * config/x-interix: Remove.
5663
5664         * config/m68hc11/t-m68hc11-gas: Rename to...
5665         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
5666
5667         * config/mcore/t-mcore: Remove T_CFLAGS.
5668         * config/mcore/t-mcore-pe: Likewise.
5669
5670 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
5671
5672         * configure.ac: Replace custom __GNU_SOURCE test with
5673         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
5674         * aclocal.m4: Regenerate.
5675         * configure: Regenerate.
5676         * config.in: Regenerate.
5677
5678 2008-03-27  Richard Guenther  <rguenther@suse.de>
5679
5680         * fold-const.c (target.h): Include.
5681         (fold_comparison): Fold comparison of addresses of decls
5682         that bind locally or of constants.  Consolidate address folding code.
5683         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
5684         results from fold_binary_to_constant.
5685         (compare_values_warnv): Likewise.
5686
5687 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
5688
5689         PR middle-end/35429
5690         * fold-const.c (fold_truthop): Check for integeral types when folding
5691         a == 0 && b == 0 and a != 0 || b != 0 .
5692
5693 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
5694
5695         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
5696
5697 2008-03-26  Andreas Schwab  <schwab@suse.de>
5698
5699         * doc/invoke.texi: Fix use of @item vs. @itemx.
5700
5701 2008-03-26  Tom Tromey  <tromey@redhat.com>
5702
5703         * Makefile.in (build/gensupport.o, build/print-rtl.o,
5704         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
5705         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
5706         build/gencodes.o, build/genconditions.o, build/genconfig.o,
5707         build/genconstants.o, build/genemit.o, build/genextract.o,
5708         build/genflags.o, build/genmddeps.o, build/genopinit.o,
5709         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
5710         options.h.
5711
5712 2008-03-26  Richard Guenther  <rguenther@suse.de>
5713
5714         Revert
5715         2008-03-26  Richard Guenther  <rguenther@suse.de>
5716
5717         * fold-const.c (target.h): Include.
5718         (fold_comparison): Fold comparison of addresses of two decls
5719         that bind locally.  Consolidate address folding code.
5720
5721 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5722
5723         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
5724         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
5725         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
5726         dconstsqrt2, dconstthird, dconste and/or dconst10.
5727         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
5728         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
5729         dconstsqrt2, dconste): Delete.
5730         (init_emit_once): Likewise.  Simplify initializing dconstm1.
5731         Constify variable.
5732         * real.c (get_real_const): New.
5733         * real.h (dconst3, dconst10, dconstm2, dconstthird,
5734         dconstsqrt2, dconste): Delete.
5735         (real_value_const, get_real_const): New.
5736
5737 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
5738
5739         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
5740
5741         * config/i386/i386.c (ix86_function_arg_boundary): Check
5742         BIGGEST_ALIGNMENT instead of 128.
5743         (setup_incoming_varargs_64): Likewise.
5744
5745 2008-03-26  Tom Tromey  <tromey@redhat.com>
5746
5747         * Makefile.in (DEPFILES): Add missing '/'.
5748
5749 2008-03-26  Richard Guenther  <rguenther@suse.de>
5750
5751         * fold-const.c (target.h): Include.
5752         (fold_comparison): Fold comparison of addresses of two decls
5753         that bind locally.  Consolidate address folding code.
5754
5755 2008-03-26  Nick Clifton  <nickc@redhat.com>
5756
5757         PR target/31232
5758         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
5759         not allow INT+INT as a legitimate addressing mode.
5760
5761 2008-03-26  Richard Guenther  <rguenther@suse.de>
5762
5763         * tree-flow.h (widen_bitfield): Remove declaration.
5764         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
5765         (widen_bitfield): Remove function.
5766         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
5767         code.
5768
5769 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5770
5771         PR target/31558
5772         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
5773         error_mark_node's.
5774
5775 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
5776
5777         PR rtl-optimization/35232
5778         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
5779         (forget_old_reloads_1, forget_marked_reloads): Don't clear
5780         reg_reloaded_call_part_clobbered here.
5781         (reload_regs_reach_end_p): New function.
5782         (reload_reg_rtx_for_input): New variable.
5783         (reload_reg_rtx_for_output): Likewise.
5784         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
5785         when reassigning a pseudo register.  Load reloadreg from 
5786         reload_reg_rtx_for_input, moving the mode and register
5787         calculation to...
5788         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
5789         instead of the original when deciding whether an input reload
5790         would be a no-op or whether an output reload can be deleted.
5791         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
5792         when setting up new_spill_reg_store.  Load it from
5793         reload_reg_rtx_for_output, moving the mode and register
5794         calculation to...
5795         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
5796         instead of the original when deciding whether an output reload
5797         would be a no-op.  Do the same when modifying insn notes.
5798         Use rtx_equal_p instead of == to compare the registers.
5799         (inherit_piecemeal_p): Take a mode and two register numbers
5800         as argument.
5801         (emit_reload_insns): Clear new_spill_reg_store for every hard
5802         register in the reload register.  Remove spill registers
5803         from reg_reloaded_valid before considering whether to record
5804         inheritance information for them.  Use reload_reg_rtx_for_output
5805         instead of reg_rtx when recording output reloads.  Use
5806         reload_reg_rtx_for_input instead of reg_rtx when recording
5807         input reloads.  Set or clear reg_reloaded_call_part_clobbered
5808         at the same time as setting reg_reloaded_valid.
5809         (delete_output_reload): Add a new_reload_reg parameter and use it
5810         instead of rld[j].reg_rtx.
5811         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
5812         calls accordingly.
5813
5814 2008-03-25  Tom Tromey  <tromey@redhat.com>
5815
5816         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
5817         (build/genattr.o): Likewise.
5818         (build/genattrtab.o): Likewise.
5819         (build/gencodes.o): Likewise.
5820         (build/genconfig.o): Likewise.
5821         (build/genconstants.o): Likewise.
5822         (build/genemit.o): Likewise.
5823         (build/genextract.o): Likewise.
5824         (build/genflags.o): Likewise.
5825
5826 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
5827         
5828         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
5829         instead of size_int for integer types.
5830         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
5831         to match type of MINUS_EXPR.
5832         
5833 2008-03-25  Tom Tromey  <tromey@redhat.com>
5834
5835         * configure: Rebuilt.
5836         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
5837         Makefile.
5838
5839 2008-03-25  Tom Tromey  <tromey@redhat.com>
5840
5841         * config/x-solaris (host-solaris.o): Update.
5842         * config/x-linux (host-linux.o): Update.
5843         * config/x-hpux (host-hpux.o): Update.
5844         * config/x-darwin (host-darwin.o): Update.
5845         * config/v850/t-v850e (v850-c.o): Update.
5846         * config/v850/t-v850 (v850-c.o): Update.
5847         * config/t-vxworks (vxworks.o): Update.
5848         * config/t-sol2 (sol2-c.o, sol2.o): Update.
5849         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
5850         * config/spu/t-spu-elf (spu-c.o): Update.
5851         (spu.o): Remove.
5852         * config/sh/t-symbian (sh-c.o): Update.
5853         (symbian.o): Update.
5854         * config/sh/t-sh (sh-c.o): Update.
5855         * config/score/t-score-elf (score7.o, score3.o): Update.
5856         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
5857         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
5858         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
5859         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
5860         (rs6000.o): Remove.
5861         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
5862         * config/m32c/t-m32c (m32c-pragma.o): Update.
5863         * config/ia64/t-ia64 (ia64-c.o): Update.
5864         * config/i386/x-mingw32 (host-mingw32.o): Update.
5865         * config/i386/x-i386 (driver-i386.o): Update.
5866         * config/i386/x-darwin (host-i386-darwin.o): Update.
5867         * config/i386/x-cygwin (host-cygwin.o): Update.
5868         * config/i386/t-nwld (nwld.o): Update.
5869         * config/i386/t-netware (netware.o): Update.
5870         * config/i386/t-interix (winnt.o): Update.
5871         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
5872         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
5873         msformat-c.o): Update.
5874         * config/bfin/t-bfin-linux (generated_files): Add
5875         linux-sysroot-suffix.h.
5876         * config/arm/t-wince-pe (pe.o): Update.
5877         * config/arm/t-strongarm-pe (pe.o): Update.
5878         * config/arm/t-pe (pe.o): Update.
5879         * config/arm/t-arm (arm-c.o): Update.
5880         * doc/install.texi (Prerequisites): Require make 3.80.
5881         * Makefile.in: Remove .o targets.
5882         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
5883         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
5884         (simple_generated_h, simple_generated_c): Move earlier.
5885         (generated_files): New variable.
5886         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
5887         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
5888         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
5889         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
5890         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
5891         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
5892         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
5893         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
5894         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
5895         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
5896         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
5897         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
5898         (.c.o): Remove.
5899         (COMPILE.base, COMPILE): New variables.
5900         (%.o): New pattern rule.
5901         (ALL_HOST_OBJS): New variable.
5902         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
5903         (dummy-checksum.o, cc1-checksum.o): Remove.
5904         (DRIVER_SHLIB): New variable.
5905         (DRIVER_DEFINES): Use it.
5906         (gencondmd.c): Move out of build/.
5907         (s-conditions): Update.
5908         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
5909         (ALL_BUILD_OBJS): Likewise.
5910         (build/%.o): Use BUILDCOMPILE.
5911         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
5912         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
5913         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
5914         build/gencheck.o, build/gencodes.o, build/genconditions.o,
5915         build/genconfig.o, build/genconstants.o, build/genemit.o,
5916         build/genextract.o, build/genflags.o, build/genmddeps.o,
5917         build/genopinit.o, build/genoutput.o, build/genpeep.o,
5918         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
5919         build/gen-protos.o, build/scan.o, build/fix-header.o,
5920         build/scan-decls.o): Simplify.
5921         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
5922         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
5923         prefix.o, toplev.o): Reduce to variable setting.
5924         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
5925         ($(out_object_file), gcc-options.o): New targets.
5926         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
5927         * configure: Rebuilt.
5928         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
5929         * doc/sourcebuild.texi (Front End Directory): Document new variable.
5930
5931 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
5932
5933         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
5934         complain when we hit an error, return ERROR_MARK_NODE.
5935
5936 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
5937
5938         * config/sh/constraints.md (Pso, Psz): New constraints.
5939         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
5940         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
5941
5942 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
5943
5944         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
5945         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
5946
5947 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
5948
5949         * config/sh/sh.md (prefetch): Add condition for SH2A target.
5950         (prefetch_sh2a): New.   
5951
5952 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
5953             Naveen.H.S  <naveen.hs@kpitcummins.com>
5954
5955         * config/sh/constraints.md (I28): New constraint.
5956         * config/sh/sh.c (broken_move): Add support for movi20s.
5957         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
5958
5959 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
5960             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
5961             Naveen.H.S  <naveen.hs@kpitcummins.com>
5962
5963         * config/sh/sh.c (SH_ATTRIBUTES): Define.
5964         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
5965         (print_operand): Handle resbank in %@ operand code.
5966         (sh_encode_section_info): New.
5967         (push_regs): Add conditions for resbank.
5968         (sh_expand_epilogue): Likewise.
5969         (sh_insert_attributes): Likewise.
5970         (sh_attribute_table): Likewise.
5971         (sh_handle_resbank_handler_attribute): New.
5972         (sh2a_handle_function_vector_handler_attribute): New.
5973         (sh2a_is_function_vector_call): New.
5974         (sh2a_get_function_vector_number): New.
5975         (sh2a_function_vector_p): New.
5976         (sh_cfun_resbank_handler_p): New.
5977         * config/sh/sh.md (calli): Emit jsr/n if possible.
5978         (calli_tbr_rel): New.
5979         (calli_pcrel): Emit jsr/n if possible.
5980         (return_i): Emit rts/n if possible.
5981         (call_valuei_tbr_rel): New.
5982         (call_valuei_pcrel): Add condition for SH2A target.
5983         (call_value): Likewise.
5984         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
5985         (sh2a_get_function_vector_number): Likewise.
5986         (sh2a_is_function_vector_call): Likewise.
5987         * doc/extend.texi: Document TBR relative addressing of SH2A.
5988         (resbank): Add description for SH2A.
5989
5990 2008-03-24  Richard Guenther  <rguenther@suse.de>
5991
5992         PR c/22371
5993         * gimplify.c (gimplify_modify_expr): For frontend type-correct
5994         pointer assignments change conversions according to middle-end rules.
5995         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
5996         * configure.ac: Include type checking in yes.
5997         * configure: Regenerate.
5998
5999 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6000
6001         * diagnostic.c (diagnostic_count_diagnostic): Delete.
6002         (diagnostic_report_diagnostic): Update. Handle ICEs here.
6003         
6004 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
6005
6006         * gthr-vxworks.h (UNUSED): Define.
6007
6008 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
6009
6010         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
6011
6012 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
6013
6014         * doc/extend.texi (Function Attributes): Add missing comma in the
6015         example of the "alloc_size" attribute.
6016         
6017 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
6018
6019         Revert:
6020         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
6021
6022         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
6023         32bit host.
6024
6025         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
6026
6027         PR target/35496
6028         * stor-layout.c (update_alignment_for_field): Set minimum alignment
6029         of the underlying type of a MS bitfield layout to the natural
6030         alignment of the type.
6031
6032         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
6033
6034         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
6035         to their natural alignment to avoid store forwarding stalls.
6036
6037 2008-03-22  Richard Guenther  <rguenther@suse.de>
6038
6039         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
6040         For PHI nodes verify the address is invariant.
6041         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
6042         (get_symbol_constant_value): Use is_gimple_min_invariant.
6043         (maybe_fold_stmt_indirect): Likewise.
6044
6045 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
6046
6047         PR rtl-optimization/33927
6048         * Makefile.in (dse.o): Depend on $(TM_P_H).
6049         * expr.h (extract_low_bits): Declare.
6050         * expmed.c (extract_low_bits): New function.
6051         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
6052         * dse.c: Include tm_p.h.
6053         (find_shift_sequence): Remove the read_reg argument and return the
6054         read value.  Emit the instructions instead of returning them.
6055         Iterate on new_mode rather than calculating it each time.
6056         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
6057         source to NEW_MODE and extract_low_bits to convert the shifted
6058         value to READ_MODE.
6059         (replace_read): Allow the load and store to have different mode
6060         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
6061         or extraction instructions before trying the replacement.  Update
6062         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
6063
6064 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
6065
6066         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
6067         to their natural alignment to avoid store forwarding stalls.
6068
6069 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6070
6071         PR target/27946
6072         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
6073         encouraging but not allowing gprs for input;
6074         change the input constraint to !f#r.
6075         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
6076         gprs for output;
6077         change the output constraint to !f#r.
6078
6079 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
6080
6081         PR target/13958
6082         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
6083         corresponding post-reload splitters.
6084         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
6085         when x87 FP math is selected.
6086         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
6087         New function prototype.
6088         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
6089         unreachable function to ease macroization of insn patterns.
6090
6091 2008-03-21  Martin Jambor  <mjambor@suse.cz>
6092
6093         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
6094         reference dumps if ddr is NULL or dependence is unknown.
6095
6096 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6097
6098         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
6099         unsigned extension into account.
6100         (ATOMIC_COMPARE_AND_SWAP): Likewise.
6101         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
6102         Do computations on a scratch register.
6103
6104 2008-03-21  Richard Guenther  <rguenther@suse.de>
6105
6106         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6107         Use is_gimple_min_invariant instead of TREE_INVARIANT.
6108         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6109         * tree-ssa-dom.c (record_equality): Likewise.
6110         * tree-inline.c (copy_body_r): Likewise.
6111         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
6112         TREE_INVARIANT.
6113
6114 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6115
6116         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
6117         as 'delete_unused' argument.
6118
6119 2008-03-20  Richard Guenther  <rguenther@suse.de>
6120
6121         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
6122         special casing of constant qualifiers.
6123         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
6124         care about them in general.
6125         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
6126         regardless of their type.
6127         (fold_stmt_r): Forcefully fold *& if we end up with that.
6128
6129 2008-03-20  Paul Brook  <paul@codesourcery.com>
6130
6131         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
6132         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
6133         linker flags.
6134         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
6135         definition.
6136         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
6137         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
6138
6139 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
6140
6141         * common.opt (Wmudflap): New option.
6142         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
6143         (mx_register_decls): Likewise.
6144         (mudflap_finish_file): Likewise.
6145         * doc/invoke.texi: Document -Wno-mudflap.
6146
6147 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
6148
6149         * c-format.c (replace_format_name_to_system_name): New.
6150         (cmp_attribs): New.
6151         (convert_format_name_to_system_name): New.
6152         (decode_format_attr): Add use of convert_format_name_to_system_name.
6153         (format_types_orig): Add gnu_ prefix to names.
6154         (check_format_info_main): Special treating of \0 escaped names for
6155         supporting multi-character format specifiers as I32, I64.
6156         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
6157         (gnu_target_overrides_format_attributes): New.
6158         * c-format.h: Add structure target_ovr_attr to hold
6159         system specific formatter names.
6160         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
6161         msformat-c.o file to c_target_objs and cxx_target_objs.
6162         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
6163         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
6164         (TARGET_N_FORMAT_TYPES): New.
6165         * config/i386/msformat-c.c: New.
6166         * config/i386/t-cygming: Add build rule for msformat-c.o.
6167         * doc/extend.texi: Add new format names gnu_* and ms_* and
6168         further details.
6169         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
6170
6171 2008-03-20  Ira Rosen  <irar@il.ibm.com>
6172
6173         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
6174         optimizations turned on under -O3.
6175         (ftree-vectorize): Add that the flag is turned on with -O3.
6176
6177 2008-03-20  Ben Elliston  <bje@au.ibm.com>
6178
6179         * regmove.c (try_auto_increment): Fix spelling error in comment.
6180         * final.c (final_scan_insn): Likewise.
6181
6182 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
6183
6184         PR target/14552
6185         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
6186         allocator preferences for "y" and "r" class registers.
6187         ("*mov<mode>_internal"): Ditto.
6188         ("*movv2sf_internal_rex64"): Ditto.
6189         ("*movv2sf_internal"): Ditto.
6190
6191 2008-03-19  Michael Matz  <matz@suse.de>
6192
6193         PR middle-end/35616
6194         * calls.c (expand_call): Check overlap of arguments with call
6195         address for sibcalls.
6196
6197 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
6198
6199         PR target/35496
6200         * stor-layout.c (update_alignment_for_field): Set minimum alignment
6201         of the underlying type of a MS bitfield layout to the natural
6202         alignment of the type.
6203
6204 2008-03-19  Jan Hubicka  <jh@suse.cz>
6205
6206         PR other/35094
6207         * toplev.c (decode_d_option): Handle all CPP flags.
6208         * tree-vrp.c: Update tree_pass descriptors.
6209         * regrename.c: Update tree_pass descriptors.
6210         * fwprop.c: Update tree_pass descriptors.
6211         * doc/invoke.texi: Remove documentation of dropped -d? flags.
6212         * tree-into-ssa.c: Update tree_pass descriptors.
6213         * tree-dump.c: Update tree_pass descriptors.
6214         * tree-complex.c: Update tree_pass descriptors.
6215         * tree-dump.h: Update tree_pass descriptors.
6216         * see.c: Update tree_pass descriptors.
6217         * cgraphbuild.c: Update tree_pass descriptors.
6218         * tracer.c: Update tree_pass descriptors.
6219         * tree-loop-distribution.c: Update tree_pass descriptors.
6220         * cgraph.c: Update tree_pass descriptors.
6221         * postreload-gcse.c: Update tree_pass descriptors.
6222         * postreload.c: Update tree_pass descriptors.
6223         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
6224         * tree-tailcall.c: Update tree_pass descriptors.
6225         * tree-pass.h (tree_opt_pass): Rename to ...
6226         (opt_pass) ... this one; add "type" field and remove letter field.
6227         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
6228         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
6229         all_lowering_passes): Update declaration.
6230         * ipa-cp.c: Update tree_pass descriptors.
6231         * final.c: Update tree_pass descriptors.
6232         * omp-low.c: Update tree_pass descriptors.
6233         * tree-ssa-dse.c: Update tree_pass descriptors.
6234         * ipa-reference.c: Update tree_pass descriptors.
6235         * tree-ssa-uncprop.c: Update tree_pass descriptors.
6236         * auto-inc-dec.c: Update tree_pass descriptors.
6237         * reorg.c: Update tree_pass descriptors.
6238         * cgraphunit.c: Update tree_pass descriptors.
6239         * tree-ssa-copyrename.c: Update tree_pass descriptors.
6240         * tree-ssa-ccp.c: Update tree_pass descriptors.
6241         * df-core.c: Update tree_pass descriptors.
6242         * mode-switching.c: Update tree_pass descriptors.
6243         * tree-nomudflap.c: Update tree_pass descriptors.
6244         * modulo-sched.c: Update tree_pass descriptors.
6245         * ipa-pure-const.c: Update tree_pass descriptors.
6246         * cse.c: Update tree_pass descriptors.
6247         * web.c: Update tree_pass descriptors.
6248         * tree-stdarg.c: Update tree_pass descriptors.
6249         * tree-ssa-math-opts.c: Update tree_pass descriptors.
6250         * tree-ssa-dom.c: Update tree_pass descriptors.
6251         * tree-nrv.c: Update tree_pass descriptors.
6252         * tree-ssa-alias.c: Update tree_pass descriptors.
6253         * loop-init.c: Update tree_pass descriptors.
6254         * gimple-low.c: Update tree_pass descriptors.
6255         * ipa-inline.c: Update tree_pass descriptors.
6256         * tree-ssa-sink.c: Update tree_pass descriptors.
6257         * global.c: Update tree_pass descriptors.
6258         * ifcvt.c: Update tree_pass descriptors.
6259         * jump.c: Update tree_pass descriptors.
6260         * predict.c: Update tree_pass descriptors.
6261         * tree-ssa-loop.c: Update tree_pass descriptors.
6262         * recog.c: Update tree_pass descriptors.
6263         * dse.c: Update tree_pass descriptors.
6264         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
6265         * tree-eh.c: Update tree_pass descriptors.
6266         * regmove.c: Update tree_pass descriptors.
6267         * local-alloc.c
6268         * function.c: Update tree_pass descriptors.
6269         * tree-vectorizer.c: Update tree_pass descriptors.
6270         * gcse.c: Update tree_pass descriptors.
6271         * ipa-type-escape.c: Update tree_pass descriptors.
6272         * tree-if-conv.c: Update tree_pass descriptors.
6273         * init-regs.c: Update tree_pass descriptors.
6274         * ipa.c: Update tree_pass descriptors.
6275         * tree-ssa-phiopt.c: Update tree_pass descriptors.
6276         * rtl-factoring.c: Update tree_pass descriptors.
6277         * lower-subreg.c: Update tree_pass descriptors.
6278         * bt-load.c: Update tree_pass descriptors.
6279         * tree-dfa.c: Update tree_pass descriptors.
6280         * except.c: Update tree_pass descriptors.
6281         * emit-rtl.c: Update tree_pass descriptors.
6282         * cfgexpand.c: Update tree_pass descriptors.
6283         * tree-cfgcleanup.c: Update tree_pass descriptors.
6284         * cfgcleanup.c: Update tree_pass descriptors.
6285         * tree-ssa-pre.c: Update tree_pass descriptors.
6286         * tree-sra.c: Update tree_pass descriptors.
6287         * tree-mudflap.c: Update tree_pass descriptors.
6288         * tree-ssa-copy.c: Update tree_pass descriptors.
6289         * cfglayout.c: Update tree_pass descriptors.
6290         * tree-ssa-forwprop.c: Update tree_pass descriptors.
6291         * tree-ssa-dce.c: Update tree_pass descriptors.
6292         * tree-ssa.c: Update tree_pass descriptors.
6293         * regclass.c: Update tree_pass descriptors.
6294         * integrate.c: Update tree_pass descriptors.
6295         * tree-optimize.c: Update tree_pass descriptors.
6296         * tree-ssa-phiprop.c: Update tree_pass descriptors.
6297         * tree-object-size.c: Update tree_pass descriptors.
6298         * combine.c: Update tree_pass descriptors.
6299         * tree-outof-ssa.c: Update tree_pass descriptors.
6300         * bb-reorder.c: Update tree_pass descriptors.
6301         * stack-ptr-mod.c: Update tree_pass descriptors.
6302         * var-tracking.c: Update tree_pass descriptors.
6303         * tree-profile.c: Update tree_pass descriptors.
6304         * tree-vect-generic.c: Update tree_pass descriptors.
6305         * reg-stack.c: Update tree_pass descriptors.
6306         * sched-rgn.c: Update tree_pass descriptors.
6307         * tree-ssa-structalias.c: Update tree_pass descriptors.
6308         * tree-cfg.c: Update tree_pass descriptors.
6309         * passes.c (current_pass): Update declaration.
6310         (finish_optimization_passes): Update.
6311         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
6312         (register_one_dump_file, register_dump_files_1, next_pass_1):
6313         Update arguments.
6314         (init_optimization_passes): Update handling of new types.
6315         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
6316         * ipa-struct-reorg.c: Update tree_pass descriptors.
6317         * tree-ssa-reassoc.c: Update tree_pass descriptors.
6318         * combine-stack-adj.c: Update tree_pass descriptors.
6319         * cfgrtl.c: Update tree_pass descriptors.
6320         * dce.c: Update tree_pass descriptors.
6321         * tree-ssanames.c: Update tree_pass descriptors.
6322
6323 2008-03-19  Richard Guenther  <rguenther@suse.de>
6324
6325         PR middle-end/35609
6326         * tree-ssa.c (walk_data): New structure.
6327         (warn_uninitialized_var): If not always_executed warn with "maybe"
6328         instead of "is".
6329         (execute_early_warn_uninitialized): Compute post-dominators.
6330         Initialize always_executed before processing each basic block.
6331
6332 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
6333
6334         PR target/35504
6335         * config/i386/i386.c (x86_this_parameter): Calculate correct location
6336         of "this" pointer when "regparm = N" or "fastcall" is in effect.
6337
6338 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6339
6340         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
6341
6342 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
6343
6344         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
6345         is true.
6346         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
6347         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
6348         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
6349         target after ignore has been set, and move there also the commputation
6350         of subtarget and original_target.
6351         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6352         (LANG_HOOKS_INITIALIZER): Remove it.
6353         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
6354
6355 2008-03-18  Richard Guenther  <rguenther@suse.de>
6356
6357         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
6358         found an expression with constants, note that in the VN for the lhs.
6359         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
6360         fold them to constants if possible.  Run cleanup_cfg if done so.
6361         (execute_pre): Return todo.
6362         (do_pre): Likewise.
6363         (execute_fre): Likewise.
6364         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
6365         of constants.
6366         (get_prop_source_stmt): Look through pointer conversions.
6367
6368 2008-03-18  Jan Hubicka  <jh@suse.cz>
6369
6370         * tree-pretty-print.c: Include predict.h.
6371         (dump_generic_node): Dump predictor.
6372         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
6373         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
6374         * gimple-low.c (lower_stmt): Likewise.
6375         * expr.c (expand_expr_real): Likewise.
6376         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
6377         them.
6378         (build_predict_expr, build_predict_expr): New.
6379         * predict.h (predictor_name, build_predict_expr): Update.
6380         * c-typeck.c (c_finish_bc_stmt): Add prediction.
6381         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
6382         * predict.def (PRED_CONTINUE): Update hitrate.
6383         * tree.def (PREDICT_EXPR): Define.
6384         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
6385         do not handle BIND_EXPR.
6386         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
6387         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
6388         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
6389         operands.
6390
6391 2008-03-18  Michael Matz  <matz@suse.de>
6392
6393         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
6394
6395 2008-03-18  Richard Guenther  <rguenther@suse.de>
6396
6397         * tree-gimple.h (is_gimple_invariant_address): Declare.
6398         (is_gimple_constant): Likewise.
6399         * tree-gimple.c (is_gimple_constant): New function.
6400         (is_gimple_invariant_address): Likewise.
6401         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
6402         and is_gimple_invariant_address.
6403         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
6404         previous change.
6405         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
6406         an addressable base.
6407
6408 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6409
6410         PR middle-end/35611
6411         * gimplify.c (gimplify_expr): Gimplify second operand of
6412         OMP_ATOMIC_LOAD.
6413
6414 2008-03-17  Richard Guenther  <rguenther@suse.de>
6415
6416         PR tree-optimization/19637
6417         * fold-const.c (fold_unary): Remove restrictions of removing
6418         intermediate pointer-conversions (P2)(P1)P0.
6419         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
6420         conversion to void pointer.
6421         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
6422
6423 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
6424
6425         PR debug/31510
6426         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
6427         emulated thread local variables.
6428
6429 2008-03-16  Richard Guenther  <rguenther@suse.de>
6430
6431         PR middle-end/35607
6432         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
6433         expand TREE_INVARIANT operations that are not gimple invariant.
6434
6435 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
6436
6437         * doc/extend.texi (Alignment): Say that the ABI controls
6438         the __alignof__ for non-strict-alignment targets rather
6439         than being a recommendation.
6440
6441 2008-03-15  Paul Brook  <paul@codesourcery.com>
6442
6443         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
6444         annotations.
6445         (arm_output_fn_unwind): Mark functions that can not be unwound.
6446
6447 2008-03-15  Paul Brook  <paul@codesourcery.com>
6448
6449         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
6450         extension instructions.
6451
6452 2008-03-15  Richard Guenther  <rguenther@suse.de>
6453
6454         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
6455         and fold constant aggregate refs.
6456         (fold_const_aggregate_ref): Handle string constants
6457         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
6458         (evaluate_stmt): Simplify now that ccp_fold folds constant
6459         aggregate refs.
6460
6461 2008-03-15  Paul Brook  <paul@codesourcery.com>
6462
6463         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
6464         (extzv): Use gen_extzv_t2.
6465         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
6466
6467 2008-03-15  Richard Guenther  <rguenther@suse.de>
6468
6469         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
6470         (fold_const_aggregate_ref): Likewise.
6471         (get_value): Return NULL if we don't have any values.
6472         (ccp_finalize): Set const_val to NULL after freeing it.
6473         * tree-flow.h (get_symbol_constant_value): Declare.
6474         (fold_const_aggregate_ref): Likewise.
6475         * tree-ssa-sccvn.c (try_to_simplify): Use them.
6476
6477 2008-03-15  Richard Guenther  <rguenther@suse.de>
6478
6479         PR middle-end/35593
6480         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
6481         to not produce negative array indices if not allowed.  Add
6482         parameter to indicate that.
6483         (maybe_fold_offset_to_component_ref): Allow negative array
6484         indices only for the first member of a structure.
6485         (maybe_fold_offset_to_reference): Allow negative array indices.
6486         (maybe_fold_stmt_addition): Likewise.
6487
6488 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
6489             Anatoly Sokolov <aesok@post.ru>
6490
6491         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
6492         (avr_arch): Add ARCH_AVR6.
6493         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
6494         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
6495         instead of fixed value 2.
6496         (print_operand_address): Use gs() asm specifier instead of pm().
6497         (avr_assemble_integer): (Ditto.).
6498         (avr_output_addr_vec_elt): (Ditto.).
6499         (print_operand): Handle "!" code.
6500         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
6501         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
6502         (AVR_HAVE_EIJMP_EICALL): Define.
6503         (AVR_3_BYTE_PC): Redefine.
6504         (AVR_2_BYTE_PC): (Ditto.).
6505         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
6506         (LINK_SPEC): Add atmega2560 and atmega2561.
6507         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
6508         (crtm2561.o).
6509         * config/avr/avr.md (call_insn): Use eicall instead of icall 
6510         for 3 byte PC devices.
6511         (call_value_insn): (Ditto.).
6512         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
6513         (indirect_jump): Use only for for 2 byte PC devices.
6514         (*tablejump): (Ditto.).
6515         (*indirect_jump_avr6): Add insn.
6516         (*tablejump_rjmp): Don't use for 3 byte PC devices.
6517         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
6518         instead of ijmp for 3 byte PC devices.
6519         (__tablejump2__): (Ditto.).
6520         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
6521         (MULITLIB_DIRNAMES): (Ditto.). 
6522         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
6523
6524 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
6525
6526         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
6527         "sse2_umulsidi3".  Use V1DI mode for operand 0.
6528         ("mmx_psadbw"): Use V1DI mode for operand 0.
6529         * config/i386/i386-modes.def (V1SI): New vector mode.
6530         * config/i386/i386.c (struct builtin_description)
6531         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
6532         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
6533         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
6534         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
6535         v1di_ftype_v8qi_v8qi type.
6536         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
6537
6538         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
6539         __builtin_ia32_pmuludq]: Fix the mode of return value.
6540
6541 2008-03-15  Richard Guenther  <rguenther@suse.de>
6542
6543         PR middle-end/35595
6544         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
6545         being a PHI_NODE.
6546
6547 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
6548         
6549         * doc/invoke.texi (Option Summary, Xtensa Options): Document
6550         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
6551         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
6552         unless TARGET_SERIALIZE_VOLATILE is enabled.
6553         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
6554         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
6555         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
6556
6557 2008-03-14  Richard Guenther  <rguenther@suse.de>
6558
6559         PR tree-optimization/34172
6560         * tree-flow.h (refs_may_alias_p): Declare.
6561         (get_single_def_stmt): Likewise.
6562         (get_single_def_stmt_from_phi): Likewise.
6563         (get_single_def_stmt_with_phi): Likewise.
6564         * tree-dfa.c (refs_may_alias_p): New function.
6565         (get_single_def_stmt): Likewise.
6566         (get_single_def_stmt_from_phi): Likewise.
6567         (get_single_def_stmt_with_phi): Likewise.
6568         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
6569         (vn_reference_lookup_1): New helper function.
6570         (vn_reference_lookup): Walk the virtual use-def chain to
6571         continue searching for a match if the def does not alias the
6572         reference we are looking for.
6573
6574 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
6575
6576         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
6577         archive and Perzl.  Update The Written Word listing.
6578
6579 2008-03-14  Richard Guenther  <rguenther@suse.de>
6580
6581         PR tree-optimization/34043
6582         PR tree-optimization/33989
6583         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
6584         when doing FRE.
6585         (bitmap_find_leader): Use extra argument to verify dominance
6586         relationship inside a basic-block.
6587         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
6588         (find_leader_in_sets): Adjust.
6589         (create_component_ref_by_pieces): Take extra argument for
6590         dominance check, handle lookup failures.
6591         (find_or_generate_expression): Likewise.
6592         (create_expression_by_pieces): Likewise.
6593         (insert_into_preds_of_block): Adjust.
6594         (create_value_expr_from): If asked for, verify all operands
6595         are in the blocks AVAIL_OUT set.
6596         (make_values_for_stmt): Check for SSA_NAMEs that are life
6597         over an abnormal edge.
6598         (compute_avail): Remove such check.
6599         (do_SCCVN_insertion): New function.
6600         (eliminate): If we do not find a leader suitable for replacement
6601         insert a replacement expression from SCCVN if available.
6602         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
6603         (struct vn_ssa_aux): Add needs_insertion flag.
6604         * tree-ssa-sccvn.c (may_insert): New global flag.
6605         (copy_reference_ops_from_ref): Value-number union member access
6606         based on its size, not type and member if insertion is allowed.
6607         (visit_reference_op_load): For a weak match from union type
6608         punning lookup a view-converted value and insert a SSA_NAME
6609         for that value if that is not found.
6610         (visit_use): Make dumps shorter.  Do not disallow value numbering
6611         SSA_NAMEs that are life over an abnormal edge to constants.
6612         (free_scc_vn): Release inserted SSA_NAMEs.
6613         (run_scc_vn): New flag to specify whether insertion is allowed.
6614         Process SSA_NAMEs in forward order.
6615         * tree-ssa-loop-im.c (for_each_index): Handle invariant
6616         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
6617         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
6618         pointer type to/from integral types that do not change the
6619         precision to regular conversions.
6620
6621 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
6622
6623         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
6624         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
6625         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
6626         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
6627         input arguments and the mode of return value.  Built-in functions
6628         that operate on whole 64-bit MMX register now use V1DI mode.
6629
6630 2008-03-13  Alon Dayan  <alond@il.ibm.com>
6631             Olga Golovanevsky  <olga@il.ibm.com>
6632
6633         PR tree-optimization/35041
6634         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
6635         to locate the right position in a statement.
6636
6637 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
6638
6639         PR target/34000
6640         PR target/35553
6641         * config/i386/xmmintrin.h:  Change all static inline functions to
6642         extern inline and add __gnu_inline__ attribute.
6643         * config/i386/bmintrin.h: Ditto.
6644         * config/i386/smmintrin.h: Ditto.
6645         * config/i386/tmmintrin.h: Ditto.
6646         * config/i386/mmintrin-common.h: Ditto.
6647         * config/i386/ammintrin.h: Ditto.
6648         * config/i386/emmintrin.h: Ditto.
6649         * config/i386/pmmintrin.h: Ditto.
6650         * config/i386/mmintrin.h: Ditto.
6651         * config/i386/mm3dnow.h: Ditto.
6652
6653 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
6654
6655         PR middle-end/35185
6656         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
6657         (lower_omp_2): New function.
6658         (lower_omp_1, lower_omp): Rewritten.
6659
6660 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
6661
6662         PR 35054
6663         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
6664         with the phrase "Microsoft Windows compilers".
6665         (Push/Pop Macro Pragmas): New subsection. Document
6666         #pragma push_macro and pragma pop_macro.
6667
6668 2008-03-12  Paul Brook  <paul@codesourcery.com>
6669
6670         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
6671
6672 2008-03-12  Paul Brook  <paul@codesourcery.com>
6673
6674         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
6675         (thumb2_alusi3_short): Exclude PLUS and MINUS.
6676         (thumb2_addsi_shortim): Rename ...
6677         (thumb2_addsi_short): ... to this.  Allow register operands.
6678         (thumb2_subsi_short): New pattern.
6679         (thumb2_one_cmplsi2_short,
6680         thumb2_negsi2_short): New patterns and peepholes.
6681
6682 2008-03-12  Paul Brook  <paul@codesourcery.com>
6683
6684         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
6685
6686 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
6687
6688         * config/i386/i386.md (int_cond): New code iterator.
6689         (fp_cond): Ditto.
6690         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
6691         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
6692         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
6693         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
6694         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
6695         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
6696         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
6697         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
6698
6699 2008-03-12  Paul Brook  <paul@codesourcery.com>
6700
6701         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
6702         instead of {arm,thumb}_compute_save_reg_mask.
6703         (output_return_instruction): Ditto.
6704         (thumb_unexpanded_epilogue): Ditto.
6705         (thumb1_expand_prologue): Ditto.
6706         (thumb1_output_function_prologue): Ditto.
6707         (arm_set_return_address): Ditto.
6708         (thumb_set_return_address): Ditto.
6709         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
6710         regs to achieve stack alignment.
6711         (thumb1_compute_save_reg_mask): Fix compiler warning.
6712         (arm_output_epilogue): Use offsets->saved_regs_mask.
6713         Adjust stack pointer by poping call clobered registers.
6714         (arm_expand_prologue): Use offsets->saved_regs_mask.
6715         Adjust stack pointer by pushing extra registers.
6716         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
6717
6718 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
6719
6720         PR tree-opt/35422
6721         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
6722         conversion to the operands of a multiplication.
6723
6724 2008-03-12  Richard Guenther  <rguenther@suse.de>
6725
6726         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
6727         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
6728         * timevar.def (TV_TREE_PHIPROP): Add.
6729         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
6730         pass description.  Use TV_TREE_PHIPROP.
6731         * tree-ssa-forwprop.c: Remove phiprop code.
6732
6733 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
6734
6735         PR middle-end/35549
6736         * omp-low.c (maybe_lookup_decl): Constify first argument.
6737         (use_pointer_for_field): Change last argument from bool to
6738         omp_context *.  Disallow shared copy-in/out in nested
6739         parallel if decl is shared in outer parallel too.
6740         (build_outer_var_ref, scan_sharing_clauses,
6741         lower_rec_input_clauses, lower_copyprivate_clauses,
6742         lower_send_clauses, lower_send_shared_vars): Adjust callers.
6743
6744 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
6745             Ira Rosen  <irar@il.ibm.com>
6746
6747         * tree-vectorizer.c (free_stmt_vec_info): New function.
6748         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
6749         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
6750         * tree-vectorizer.h (free_stmt_vec_info): Declare.
6751         * tree-vect-transform.c (vectorizable_conversion): Free
6752         vec_oprnds0 if it was allocated.
6753         (vect_permute_store_chain): Remove unused VECs.
6754         (vectorizable_store): Free VECs that are allocated in the..
6755         function.
6756         (vect_transform_strided_load, vectorizable_load): Likewise.
6757         (vect_remove_stores): Simplify the code.
6758         (vect_transform_loop): Move code to vect_remove_stores().
6759         Call vect_remove_stores() and free_stmt_vec_info().
6760
6761 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6762
6763         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
6764         TARGET_HPUX.  Revise comment.
6765         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
6766         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
6767         Use sr4 variant of `be' instruction when not generating PIC code.
6768         (attr_length_call): Adjust for above change.
6769
6770 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6771
6772         * ipa-reference.c (static_execute): Remove module_statics_const and
6773         associated setting code.
6774
6775 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
6776
6777         PR target/35540
6778         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
6779         predicate for operand 1.
6780         (paritysi2_cmp): Use register_operand predicate for operand 2.
6781         Use earlyclobber modifier for operand 1.  Remove support for
6782         memory operands.
6783         (paritydi2_cmp): Use register_operand predicate for operand 3.
6784         Use earlyclobber modifier for operand 1.  Remove support for
6785         memory operands.
6786
6787 2008-03-11  Paul Brook  <paul@codesourcery.com>
6788             Vladimir Prus  <vladimir@codesourcery.com>
6789
6790         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
6791         (arm_compute_save_reg0_reg12_mask): Always
6792         check if register 11 must be saved.  Always safe hard frame pointer
6793         when frame_pointer_needeed.
6794         (arm_compute_save_reg_mask): Save IP and PC
6795         only with apcs frames.
6796         (arm_output_epilogue): Adjust Thumb2 codepath to
6797         be also invoked and work for ARM non-apcs frames.
6798         (arm_expand_prologue): Don't bother saving IP
6799         for non-apcs frame, since it's not clobbered by
6800         prologue code.  Implement non-apcs frame
6801         layout.
6802
6803 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
6804
6805         PR rtl-optimization/35281
6806         * expr.c (convert_move): Use a new pseudo for the intermediate
6807         from_mode->word_mode result.
6808
6809 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
6810
6811         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
6812         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
6813         * toplev.c (compile_file): Don't call it.
6814
6815 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
6816
6817         PR middle-end/35526
6818         * expr.c (store_expr): Call emit_block_move if the mode
6819         of "temp" RTX is BLKmode.
6820
6821 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6822             Richard Guenther  <rguenther@suse.de>
6823
6824         PR tree-optimization/31358
6825         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
6826         the step with a NULL_TREE.
6827         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
6828         to sizetype if type is a pointer type.
6829         (add_candidate_1): Don't convert the base and step to
6830         the generic type if the orginal type is a pointer type.
6831         (add_iv_value_candidates): Use sizetype for the step
6832         if type is a pointer type.
6833         (cand_value_at): Likewise.
6834         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
6835         for pointer types.
6836         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
6837         Don't convert the tem affine to the type.
6838         (add_elt_to_tree): Use sizetype for the step if a pointer.
6839         Use POINTER_PLUS_EXPR for pointers.
6840         (aff_combination_to_tree): Use sizetype for the step if a
6841         pointer.
6842
6843 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
6844
6845         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
6846         Remove commutativity hint.
6847
6848 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
6849
6850         PR c/35438
6851         PR c/35439
6852         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
6853         errorneous type.  Check that v is a VAR_DECL.
6854
6855         PR middle-end/35099
6856         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
6857
6858 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
6859
6860         PR tree-optimization/35494
6861         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
6862         may be overriden at link and run time.
6863
6864 2008-03-10  Richard Guenther  <rguenther@suse.de>
6865
6866         PR tree-optimization/34677
6867         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
6868         (poolify_tree): Likewise.
6869         (modify_expr_template): Likewise.
6870         (poolify_modify_stmt): Likewise.
6871         (insert_fake_stores): Handle all component-ref style stores
6872         in addition to INDIRECT_REF.  Also handle complex types.
6873         Do not poolify the inserted load.
6874         (realify_fake_stores): Do not rebuild the tree but only
6875         make it a SSA_NAME copy.
6876         (init_pre): Remove initialzation of modify_expr_template.
6877         Do not allocate modify_expr_node_pool.
6878         (fini_pre): Do not free modify_expr_node_pool.
6879
6880 2008-03-10  Paul Brook  <paul@codesourcery.com>
6881
6882         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
6883         to avoid conflicts.
6884
6885 2008-03-10  Paul Brook  <paul@codesourcery.com>
6886             Mark Shinwell  <shinwell@codesourcery.com>
6887
6888         * config/arm/cortex-r4.md: New.
6889         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
6890         insn attributes.
6891         * config/arm/arm.md: Include cortex-r4.md.
6892         (insn): Add smmls, sdiv and udiv values.
6893         (generic_sched): Don't use generic scheduling for Cortex-R4.
6894         (arm_issue_rate): New function.
6895         (TARGET_SCHED_ISSUE_RATE): Define.
6896
6897 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
6898
6899         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
6900
6901 2008-03-10  Richard Guenther  <rguenther@suse.de>
6902
6903         * tree-ssa-pre.c (get_sccvn_value): Simplify.
6904         (compute_avail): Do not add stmt uses to AVAIL_OUT.
6905
6906 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
6907
6908         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
6909         Set default to true.
6910
6911 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6912
6913         * c.opt (Wsynth): Deprecate.
6914         * doc/invoke.texi (Option Summary, Warning Options): Document
6915         -Wno-format-contains-nul.
6916
6917 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
6918
6919         PR target/35496
6920         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
6921         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
6922
6923 2008-03-09  Ira Rosen  <irar@il.ibm.com>
6924
6925         * config/rs6000/rs6000.c (builtin_description): Rename vector
6926         left shift operations.
6927         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
6928         (altivec_vsl<VI_char>): Rename to ...
6929         (ashl<mode>3): ... new name.
6930         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
6931         gen_ashlv4si3.
6932         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
6933
6934 2008-03-08  Richard Guenther  <rguenther@suse.de>
6935
6936         * coverage.h (tree_coverage_counter_addr): Declare.
6937         * coverage.c (tree_coverage_counter_addr): New function.
6938         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
6939         before using again.
6940         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
6941         (tree_gen_one_value_profiler): Likewise.
6942         (tree_gen_ic_profiler): Likewise.
6943         (tree_gen_average_profiler): Likewise.
6944         (tree_gen_ior_profiler): Likewise.
6945
6946 2008-03-08  Richard Guenther  <rguenther@suse.de>
6947
6948         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
6949         (vn_binary_op_insert): Likewise.
6950         (vn_unary_op_lookup): Likewise.
6951         (vn_unary_op_insert): Likewise.
6952         (vn_nary_op_lookup): Declare.
6953         (vn_nary_op_insert): Likewise.
6954         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
6955         and binary hashes, use a single obstack for unary_op_pool
6956         and binary_op_pool.
6957         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
6958         a single struct vn_nary_op_s.  Store tree code length and
6959         a variable number of operands.
6960         (struct vn_reference_op_struct): Remove unused op2.
6961         (vn_reference_op_eq): Do not compare op2.
6962         (vn_reference_op_compute_hash): Do not compute hash of op2.
6963         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
6964         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
6965         with vn_nary_op_compute_hash.
6966         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
6967         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
6968         vn_nary_op_lookup.
6969         (vn_unary_op_insert, vn_binary_op_insert): Replace with
6970         vn_nary_op_insert.
6971         (visit_unary_op): Call nary functions.
6972         (visit_binary_op): Likewise.
6973         (process_scc): Adjust for struct vn_tables_s changes.
6974         (allocate_vn_table): Likewise.
6975         (free_vn_table): Likewise.
6976         * tree-vn.c (vn_add): Call nary functions.
6977         (vn_lookup): Likewise.
6978
6979 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
6980
6981         PR target/35498
6982         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
6983         wdst back after sync_compare_and_swapqhi_internal.
6984
6985 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
6986
6987         PR target/22152
6988         * config/i386/i386-modes.def (V1DI): New vector mode.
6989         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
6990         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
6991         (MMXMODE248): Ditto.
6992         (MMXMODE): Add V1DI mode.
6993         (mmxvecsize): Change DI mode to V1DI mode.
6994         ("mov<mode>): Use MMXMODEI8 mode iterator.
6995         ("*mov<mode>_internal_rex64"): Ditto.
6996         ("*mov<mode>_internal"): Ditto.
6997         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
6998         ("mmx_sub<mode>3"): Ditto.
6999         ("mmx_adddi3"): Remove insn pattern.
7000         ("mmx_subdi3"): Ditto.
7001         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
7002         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
7003         ("mmx_ashl<mode>3"): Ditto.
7004         ("mmx_lshrdi3"): Remove insn pattern.
7005         ("mmx_ashldi3"): Ditto.
7006         * config/i386/i386.c (classify_argument): Handle V1DImode.
7007         (function_arg_advance_32): Ditto.
7008         (function_arg_32): Ditto.
7009         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
7010         mmx_addv1di3 insn pattern.
7011         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
7012         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
7013         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
7014         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
7015         Remove definitions of built-in functions.
7016         (V1DI_type_node): New node.
7017         (v1di_ftype_v1di_int): Ditto.
7018         (v1di_ftype_v1di_v1di): Ditto.
7019         (v2si_ftype_v2si_si): Ditto.
7020         (v4hi_ftype_v4hi_di): Remove node.
7021         (v2si_ftype_v2si_di): Ditto.
7022         (ix86_init_mmx_sse_builtins): Handle V1DImode.
7023         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
7024         Redefine builtins using def_builtin_const with *_ftype_*_int node.
7025         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
7026         Add new builtins using def_builtin_const.
7027         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
7028         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
7029         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
7030         * config/i386/mmintrin.h (__v1di): New typedef.
7031         (_mm_add_si64): Cast arguments to __v1di type.
7032         (_mm_sub_si64): Ditto.
7033         (_mm_sll_pi16): Cast __count to __v4hi type.
7034         (_mm_sll_pi32): Cast __count to __v2si type.
7035         (_mm_sll_si64): Cast arguments to __v1di type.
7036         (_mm_srl_pi16): Cast __count to __v4hi type.
7037         (_mm_srl_pi32): Cast __count to __v2si type.
7038         (_mm_srl_si64): Cast arguments to __v1di type.
7039         (_mm_sra_pi16): Cast __count to __v4hi type.
7040         (_mm_sra_pi32): Cast __count to __v2si type.
7041         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
7042         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
7043         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
7044         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
7045         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
7046         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
7047         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
7048         (_mm_srai_pi32): Use __builtin_ia32_psradi.
7049         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
7050         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
7051         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
7052         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
7053
7054 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
7055
7056         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
7057
7058 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
7059
7060         PR target/35373
7061         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
7062         reg+const addressing for Altivec modes.  Don't generate reg+reg
7063         addressing for TFmode or TDmode quantities.
7064
7065 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
7066
7067         * c-common.c (vector_types_convertible_p): Call langhook
7068         instead of comptypes.
7069
7070 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7071
7072         PR tree-opt/35402
7073         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
7074         integral and scalar float variables which have a
7075         NULL DECL_INITIAL.
7076
7077 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
7078
7079         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
7080         dwarf_register_span hook when emitting unwind information for
7081         register-to-memory saves.
7082         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
7083         (rs6000_frame_related): Remove call to spe_synthesize_frame.
7084
7085 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
7086
7087         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
7088         for the same VAR_DECL.
7089
7090 2008-03-06  Tom Tromey  <tromey@redhat.com>
7091
7092         * treelang: Delete.
7093         * doc/standards.texi (Standards): Don't mention treelang.
7094         * doc/invoke.texi (Overall Options): Don't mention treelang.
7095         * doc/install.texi (Prerequisites): Don't mention bison or
7096         treelang.
7097         (Configuration): Don't mention treelang.
7098         (Building): Likewise.
7099         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
7100
7101 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
7102
7103         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
7104         word-extractions out of a multi-word object.
7105
7106 2008-03-06  Richard Guenther  <rguenther@suse.de>
7107
7108         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
7109         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
7110         result type and precision.
7111         * expr.c (get_inner_reference): Set unsignedp based on the result
7112         type of BIT_FIELD_REF.
7113         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
7114         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
7115         (try_instantiate_multiple_fields): Likewise.  Use the correct type
7116         for BIT_FIELD_REF.
7117         (sra_build_assignment): Likewise.
7118         (sra_build_elt_assignment): Likewise.
7119         (sra_explode_bitfield_assignment): Likewise.
7120         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
7121         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
7122         set BIT_FIELD_REF_UNSIGNED.
7123         (vectorizable_load): Likewise.
7124
7125 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
7126
7127         * cse.c (cse_extended_basic_block): Invalidate artificial defs
7128         at bb start.
7129
7130 2008-03-06  Richard Guenther  <rguenther@suse.de>
7131
7132         * alias.c (struct alias_set_entry): Move has_zero_child field
7133         to pack with alias_set.
7134
7135 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7136
7137         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7138         32bit host.
7139
7140 2008-03-05  Ian Lance Taylor  <iant@google.com>
7141
7142         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
7143
7144 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
7145
7146         * fwprop.c (update_df): Support width and offset parameters of
7147         df_ref_create.
7148         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
7149         global_conflicts): Change DF_REF_EXTRACT to either
7150         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7151         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7152         * df-scan.c (df_ref_record, df_defs_record,
7153         df_ref_create_structure, df_def_record_1, df_uses_record,
7154         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
7155         df_bb_refs_collect, df_entry_block_defs_collect,
7156         df_exit_block_uses_collect): Support new width and offset fields.
7157         (ref_extract_pool): New storage pool.
7158         (df_free_ref): New function.
7159         (df_reg_chain_unlink, df_free_collection_rec,
7160         df_sort_and_compress_refs): Call df_free_ref.
7161         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
7162         of df_ref_extract.
7163         (df_ref_create_structure): Allocate df_ref_extract if offset and
7164         width fields are used.
7165         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
7166         (df_uses_record): Get offset and width from ZERO_EXTRACT 
7167         and SIGN_EXTRACT.
7168         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
7169         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7170         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7171         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
7172         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7173         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7174         (df_ref_extract): New structure.
7175         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
7176         (df_ref_create): Add width and offset parameters.
7177         
7178 2008-03-05  Richard Guenther  <rguenther@suse.de>
7179
7180         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7181         Use ranges_overlap_p.
7182         (offset_overlaps_with_access): Rename
7183         to ranges_overlap_p and move ...
7184         * tree-flow-inline.h (ranges_overlap_p): ... here.
7185
7186         * tree.h (get_inner_reference, handled_component_p): Update
7187         comments.
7188
7189         * tree.h (record_component_aliases, get_alias_set,
7190         alias_sets_conflict_p, alias_sets_must_conflict_p,
7191         objects_must_conflict_p): Move declarations ...
7192         * alias.h (record_component_aliases, get_alias_set,
7193         alias_sets_conflict_p, alias_sets_must_conflict_p,
7194         objects_must_conflict_p): ... here.
7195         Include coretypes.h.
7196         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
7197
7198 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
7199
7200         * cfg.c: Include tree-flow.h.
7201         (remove_edge_raw): Call redirect_edge_var_map_clear.
7202         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
7203         * tree-flow-inline.h (redirect_edge_var_map_def): New.
7204         (redirect_edge_var_map_result): New.
7205         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
7206         PENDING_STMT use with redirect_edge_var_map_*.
7207         * tree-ssa.c (edge_var_maps): New definition.
7208         (redirect_edge_var_map_add): New.
7209         (redirect_edge_var_map_clear): New.
7210         (redirect_edge_var_map_dup): New.
7211         (redirect_edge_var_map_vector): New.
7212         (redirect_edge_var_map_destroy): New.
7213         (ssa_redirect_edge): Replace PENDING_STMT use with
7214         redirect_edge_var_map_*.
7215         (flush_pending_stmts): Same.
7216         (delete_tree_ssa): Destroy edge var map.
7217         * tree-flow.h (struct _edge_var_map): New.
7218         Define edge_var_map vector type.
7219         Declare redirect_edge_var_map_* prototypes.
7220         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
7221         * tree-cfg.c (reinstall_phi_args): Replace
7222         PENDING_STMT use with redirect_edge_var_map_*.
7223
7224 2008-03-05  Richard Guenther  <rguenther@suse.de>
7225
7226         PR tree-optimization/35472
7227         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
7228         whose single use_stmt has a overlapping set of loaded and
7229         stored symbols as that use_stmt might be a noop assignment then.
7230
7231 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
7232
7233         * gthr-rtems.h: Implement __gthread_mutex_destroy.
7234
7235 2008-03-05  Richard Guenther  <rguenther@suse.de>
7236
7237         PR c++/35336
7238         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
7239         should be constants.
7240         * tree-cfg.c (verify_expr): Verify it.
7241         * fold-const.c (fold_truthop): Remove code generating
7242         BIT_FIELD_REFs of structure bases.
7243         (fold_binary): Likewise.
7244         (fold_ternary): Position and size of BIT_FIELD_REFs are
7245         always host integers.
7246         (make_bit_field_ref): Remove.
7247         (optimize_bit_field_compare): Remove.
7248         (all_ones_mask_p): Remove.
7249
7250 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
7251
7252         PR gcc/33009
7253         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
7254         (split_block_and_df_analyze): New. Split basic block and rebuild
7255         dataflow.
7256         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
7257         SPLIT_BLOCK.
7258         (split_pattern_seq): Likewise.
7259         (erase_matching_seqs): Likewise.
7260         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
7261
7262 2008-03-04  Geoff Keating  <geoffk@apple.com>
7263
7264         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
7265         declaration and code.
7266         (tree_invalid_nonnegative_warnv_p): Likewise.
7267
7268 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
7269
7270         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
7271         examples.  Truncate option-names then causing overfull hbox.
7272
7273 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7274
7275         PR target/35222
7276         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
7277         on hpux10.
7278         * configure: Rebuilt.
7279
7280 2008-03-04  Rafael Espindola  <espindola@google.com>
7281
7282         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
7283         (tree_unary_nonnegative_warnv_p): New.
7284         (tree_binary_nonnegative_warnv_p): New.
7285         (tree_single_nonnegative_warnv_p): New.
7286         (tree_invalid_nonnegative_warnv_p): New.
7287         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
7288
7289 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7290
7291         PR 28322
7292         * opts.c (handle_option): Postpone 'unknown option' errors only for
7293         warning options.
7294
7295 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
7296
7297         PR target/35453
7298         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
7299         (_SIDD_XXX): This.
7300
7301 2008-03-04  Rafael Espindola  <espindola@google.com>
7302
7303         * fold-const.c (tree_unary_nonzero_warnv_p): New.
7304         (tree_binary_nonzero_warnv_p): New.
7305         (tree_single_nonzero_warnv_p): New.
7306         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
7307
7308 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
7309
7310         PR middle-end/35456
7311         * fold-const.c (fold_cond_expr_with_comparison): Prevent
7312         transformations for modes that have signed zeros.
7313         * ifcvt.c (noce_try_abs): Ditto.
7314
7315 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
7316
7317         * config/i386/i386.c (override_options): Force
7318         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
7319
7320 2008-03-04  Jan Hubicka  <jh@suse.cz>
7321
7322         PR c++/35262
7323         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
7324         in last commit.
7325
7326 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
7327
7328         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
7329         label to probe the stack.
7330
7331 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
7332
7333         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
7334         (__gthr_win32_mutex_destroy): Declare.
7335         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
7336         __gthr_win32_mutex_destroy.
7337         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
7338
7339 2008-03-03  Jan Hubicka  <jh@suse.cz>
7340
7341         PR c++/35262
7342         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
7343         aggressive on inlining cold calls.
7344
7345 2008-03-03  Richard Guenther  <rguenther@suse.de>
7346
7347         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
7348         struct copies into the expression table.
7349         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
7350         (try_to_simplify): Likewise.
7351         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
7352         integral and pointer arguments which do not change the
7353         precision to NOP_EXPRs.
7354         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
7355         VIEW_CONVERT_EXPR case.
7356
7357 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
7358
7359         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
7360         defined in a loop at depth 0 is invariant.
7361         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
7362         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
7363         be called at loop depth 0.
7364
7365 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
7366
7367         PR driver/35420
7368         * gcc.c (process_command): Update copyright notice dates.
7369         * gcov.c (print_version): Likewise.
7370         * gcov-dump.c (print_version): Likewise.
7371         * mips-tfile.c (main): Likewise.
7372         * mips-tdump.c (main): Likewise.
7373
7374 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7375
7376         PR 24924
7377         * c-common.c (flag_permissive): Delete.
7378         (constant_expression_warnings): Check flags first.
7379         (constant_expression_error): New.
7380         * c-common.h (flag_permissive): Delete.
7381         (constant_expression_error): Declare.
7382         * flags.h (flag_permissive): Declare. Update description.
7383         * diagnostic.c (pedwarn): Update.
7384         (permerror): New.
7385         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
7386         (permissive_error_kind): New.
7387         * toplev.c (flag_permissive): Define. Update description.
7388         * toplev.h (permissive_error_kind): Declare.
7389         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
7390         (pedwarn_c90): Use pedantic_warning_kind.
7391         * c-opts.c (c_common_post_options): flag_permissive does not affect
7392         flag_pedantic_errors.
7393
7394 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
7395
7396         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
7397         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
7398         __absvsi2, __absvDI2): Use unsigned arithmetic.
7399
7400 2008-03-02  Andi Kleen  <ak@suse.de>
7401             Richard Guenther  <rguenther@suse.de>
7402
7403         * struct-equiv.c: Remove file.
7404         * cfg_cleanup.c (condjump_equiv_p): Remove.
7405         * Makefile.in (OBJS-common): Remove struct-equiv.o.
7406         (struct-equiv.o): Remove rule.
7407         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
7408         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
7409         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
7410
7411 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7412
7413         * ifcvt.c (noce_process_if_block): Try to handle only the then
7414         block if the else block exists but isn't suitable.
7415
7416 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
7417
7418         PR gcc/35063
7419         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
7420         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
7421         regression from previous patch.
7422
7423 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
7424
7425         PR gcc/35063
7426         * gthr.h: Add __gthread_mutex_destroy as a function that must be
7427         implemented.
7428         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
7429         * gthr-single.h (__gthread_mutex_destroy): Likewise.
7430         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
7431         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
7432         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
7433         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
7434         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
7435         (__gthread_mutex_destroy_function): Rename to
7436         __gthread_mutex_destroy.
7437         * gthr-dce.h (__gthread_mutex_destroy): Call
7438         pthread_mutex_destroy.
7439         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
7440         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
7441         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
7442
7443 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7444
7445         * df-scan.c (df_ref_chain_change_bb): Simplify.
7446         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
7447         set_block_for_insn if there's any change.
7448         * df.h ((df_insn_change_bb): Fix prototype.
7449         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
7450         df_insn_change_bb, don't call set_block_for_insn.
7451         * emit-rtl.c (reorder_insns): Likewise.
7452         * haifa-sched.c (move_insn): Likewise.
7453
7454 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7455
7456         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
7457
7458 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7459
7460         * tree-flow-inline.h (next_readonly_imm_use): Return
7461         NULL_USE_OPERAND_P after the end.
7462
7463 2008-03-01  Richard Guenther  <rguenther@suse.de>
7464
7465         PR tree-optimization/35411
7466         * tree-sra.c (sra_build_assignment): Split conversion to
7467         final type to a separate statement if we are not assigning
7468         to a register.
7469
7470 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
7471
7472         * fold-const.c (fold_convertible_p): Correct the logic to follow
7473         that in fold_convert().
7474
7475 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
7476
7477         PR c++/35315
7478         * tree-inline.c (build_duplicate_type): When we make a
7479         duplicate type, make it unique in the canonical types system.
7480
7481 2008-02-29  Tom Tromey  <tromey@redhat.com>
7482
7483         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
7484         input_file_stack_history, input_file_stack_restored): Remove.
7485         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
7486         * input.h (struct file_stack): Remove.
7487         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
7488         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
7489         Likewise.
7490         * diagnostic.h (struct diagnostic_context) <last_module>: Change
7491         type.
7492         (diagnostic_last_module_changed): Add 'map' argument.
7493         (diagnostic_set_last_function): Likewise.
7494         * diagnostic.c (undiagnostic_report_current_module): Iterate using
7495         line map, not input_file_stack.
7496         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
7497
7498 2008-02-29  Paul Brook  <paul@codesourcery.com>
7499
7500         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
7501
7502 2008-02-29  Paul Brook  <paul@codesourcery.com>
7503
7504         * config/arm/ieee754-df.S (muldf3): Use RET macros.
7505
7506 2008-02-29  Richard Guenther  <rguenther@suse.de>
7507
7508         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
7509         vn_lookup_or_add.
7510         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
7511         value for comparing for a store match.
7512         (simplify_unary_expression): Do nothing for SSA_NAMEs.
7513         (try_to_simplify): Do not do a full-blown reference lookup.
7514
7515 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7516
7517         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
7518         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
7519
7520         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
7521
7522 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
7523
7524         * tree-loop-linear.c (try_interchange_loops): Compare memory access
7525         strides against cache sizes.
7526
7527 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7528
7529         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
7530         constant to fpul.
7531
7532 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
7533
7534         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
7535         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
7536         is smaller than the original promoted value.
7537         (simplify_subreg): If OP is a SUBREG, try to preserve its
7538         SUBREG_PROMOTED_VAR_P information.
7539
7540 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
7541
7542         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
7543         (VN_INFO_GET): Allocate new objects on the obstack.
7544         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
7545         for rpo_numbers_temp, for consistency.
7546         (free_scc_vn): Free the obstack.
7547
7548 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
7549
7550         * doc/invoke.texi: Document -ftree-loop-distribution.
7551         * tree-loop-distribution.c: New.
7552         * tree-pass.h (pass_loop_distribution): New.
7553         * graphds.h (struct graph): Add htab_t indices.
7554         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
7555         * tree-vectorizer.c (rename_variables_in_loop): Extern.
7556         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
7557         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
7558         * tree-data-ref.c (debug_data_dependence_relations): New.
7559         (dump_data_dependence_relation): Also print data references.
7560         (free_data_ref): Extern.
7561         (same_access_functions): Moved...
7562         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
7563         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7564         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
7565         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
7566         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
7567         (stmts_from_loop): Skip LABEL_EXPR.
7568         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
7569         New.
7570         (build_rdg): Initialize rdg->indices htab.
7571         (free_rdg, stores_from_loop, ref_base_address,
7572         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
7573         have_similar_memory_accesses_1, ref_base_address_1,
7574         remove_similar_memory_refs): New.
7575         * tree-data-ref.h: Depend on tree-chrec.h.
7576         (debug_data_dependence_relations, free_data_ref): Declared.
7577         (same_access_functions): ... here.
7578         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
7579         New.
7580         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
7581         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
7582         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
7583         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7584         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
7585         rdg_vertex_for_stmt): Declared.
7586         (struct rdg_edge): Add level.
7587         (RDGE_LEVEL): New.
7588         (free_rdg, stores_from_loop, remove_similar_memory_refs,
7589         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
7590         Declared.
7591         (rdg_has_similar_memory_accesses): New.
7592         * tree-vect-analyze.c: Remove unused static decls.
7593         * lambda.h (dependence_level): New.
7594         * common.opt (ftree-loop-distribution): New.
7595         * tree-flow.h (mark_virtual_ops_in_bb, 
7596         slpeel_tree_duplicate_loop_to_edge_cfg,
7597         rename_variables_in_loop): Declared.
7598         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
7599         (OBJS-common): Add tree-loop-distribution.o.
7600         (tree-loop-distribution.o): New rule.
7601         * tree-cfg.c (mark_virtual_ops_in_bb): New.
7602         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
7603         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
7604
7605 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
7606
7607         PR target/33963
7608         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
7609         other than structures and unions.
7610
7611 2008-02-28  Richard Guenther  <rguenther@suse.de>
7612
7613         Revert:
7614         2008-02-26  Richard Guenther  <rguenther@suse.de>
7615
7616         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7617         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7618         (lookup_decl_from_uid): Declare.
7619         (remove_decl_from_map): Likewise.
7620         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7621         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7622         (decl_for_uid_map): New global hashtable mapping DECL_UID
7623         to the decl tree.
7624         (init_ttree): Allocate it.
7625         (insert_decl_to_uid_decl_map): New helper function.
7626         (make_node_stat): Insert new decls into the map.
7627         (copy_node_stat): Likewise.
7628         (lookup_decl_from_uid): New function.
7629         (remove_decl_from_map): Likewise.
7630         (print_decl_for_uid_map_statistics): New helper.
7631         (dump_tree_statistics): Call it.
7632
7633         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7634         (referenced_var_iterator): Adjust.
7635         (FOR_EACH_REFERENCED_VAR): Adjust.
7636         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7637         (num_referenced_vars): Adjust.
7638         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7639         (first_referenced_var): Remove.
7640         (end_referenced_vars_p): Likewise.
7641         (next_referenced_var): Likewise.
7642         (referenced_var_iterator_set): New helper function.
7643         * tree-dfa.c (referenced_var_lookup): Adjust.
7644         (referenced_var_check_and_insert): Likewise.
7645         (remove_referenced_var): Likewise.
7646         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7647         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7648         (verify_call_clobbering): Likewise.
7649         (verify_memory_partitions): Likewise.
7650         (init_tree_ssa): Allocate bitmap instead of hashtable for
7651         referenced_vars.
7652         (delete_tree_ssa): Adjust.
7653         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7654         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7655         (compute_tag_properties): Likewise.
7656         (set_initial_properties): Likewise.
7657         (find_partition_for): Likewise.
7658         (update_reference_counts): Likewise.
7659         (dump_may_aliases_for): Likewise.
7660         * tree-ssa-operands.c (add_virtual_operand): Likewise.
7661         (add_call_clobber_ops): Likewise.
7662         (add_call_read_ops): Likewise.
7663         (get_asm_expr_operands): Likewise.
7664         * tree-into-ssa.c (dump_decl_set): Likewise.
7665         (update_ssa): Likewise.
7666         * tree-sra.c (scan_function): Likewise.
7667         (decide_instantiations): Likewise.
7668         (scalarize_parms): Likewise.
7669         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7670         (dsa_named_for): Likewise.
7671         * tree-ssa-structalias.c (update_alias_info): Likewise.
7672         (merge_smts_into): Likewise.
7673
7674 2008-02-27  David Daney  <ddaney@avtrex.com>
7675
7676         PR target/34409
7677         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
7678         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
7679         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
7680         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
7681         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
7682
7683 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
7684
7685         PR target/25477
7686         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
7687         (BUILT_IN_NEXTTOWARD): Remove.
7688         (BUILT_IN_NEXTTOWARDF): Ditto.
7689         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
7690         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
7691
7692 2008-02-27  Tom Tromey  <tromey@redhat.com>
7693
7694         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
7695         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
7696
7697 2008-02-27  Jan Beulich  <jbeulich@novell.com>
7698
7699         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
7700         update the respective field on newdecl.
7701
7702 2008-02-27  Revital Eres  <eres@il.ibm.com>
7703
7704         PR rtl-optimization/34999
7705         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
7706         crossing edges that ends with a call insn.
7707         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
7708         call insn and clear the EDGE_CROSSING flag of the crossing edge
7709         when fixing fallthru edges.
7710
7711 2008-02-27  Richard Guenther  <rguenther@suse.de>
7712
7713         PR middle-end/35390
7714         * fold-const.c (fold_unary): Return the correct argument,
7715         converted to the result type.
7716
7717 2008-02-27  Richard Guenther  <rguenther@suse.de>
7718
7719         PR middle-end/34971
7720         * expr.c (expand_expr_real_1): Assert on rotates that operate
7721         on partial modes.
7722         * fold-const.c (fold_binary): Use the types precision, not the
7723         bitsize of the mode if folding rotate expressions.  Build rotates
7724         only for full modes.
7725
7726 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
7727
7728         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
7729         and CPP_PRAGMA_EOL.
7730         * c-pragma.c (pragma_ns_name): New typedef.
7731         (registered_pp_pragmas): New variable.
7732         (c_pp_lookup_pragma): New function.
7733         (c_register_pragma_1): If flag_preprocess_only, do nothing
7734         for non-expanded pragmas, for expanded ones push pragma's
7735         namespace and name into registered_pp_pragmas vector.
7736         (c_invoke_pragma_handler): Register OpenMP pragmas even when
7737         flag_preprocess_only, don't register GCC pch_preprocess
7738         pragma if flag_preprocess_only.
7739         * c-opts.c (c_common_init): Call init_pragma even if
7740         flag_preprocess_only.
7741         * c-pragma.c (c_pp_lookup_pragma): New prototype.
7742         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
7743         cpp_register_pragma if flag_preprocess_only.
7744
7745 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7746
7747         PR c/28800
7748         * c-parser.c (c_parser_translation_unit): Warn for empty
7749         translation unit, not empty source file.
7750
7751 2008-02-26  Paul Brook  <paul@codesourcery.com>
7752
7753         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
7754         operand for Thumb-2.
7755         * config/arm/arm.h (reg_class): Add CORE_REGS.
7756         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
7757         (BASE_REG_CLASS): Use CORE_REGS.
7758         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
7759         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
7760         (REGNO_OK_FOR_INDEX_P): Exclude SP.
7761         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
7762         ARM_REGNO_OK_FOR_INDEX_P.
7763         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
7764         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
7765         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
7766         (ldm/stm peepholes): Ditto.
7767         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
7768         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
7769         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
7770         * config/arm/constraints.md: Enable "k" constraint on ARM.
7771
7772 2008-02-27  Ben Elliston  <bje@au.ibm.com>
7773
7774         * config/rs6000/rs6000.c: Annotate cache line size field in all
7775         instances of struct processor_costs.
7776
7777 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
7778
7779         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
7780         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
7781         jump_bypass): New counters.
7782         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
7783         * dce.c (gate_ud_dce): Same.
7784         (gate_fast_dce): Same.
7785         * dse.c (gate_dse1): New function.
7786         (gate_dse2): New function.
7787         (gate_dse): Merge results of new gate functions.
7788         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
7789         (gate_handle_jump_bypass): Add dbg_cnt.
7790         (gate_handle_gcse): Add dbg_cnt.
7791         * ifcvt.c (gate_handle_if_conversion): Same.
7792         (gate_handle_if_after_combine): Same.
7793         (gate_handle_if_after_reload): Same.
7794         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
7795
7796 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
7797
7798         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
7799         line sizes.
7800         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
7801
7802 2008-02-26  Jason Merrill  <jason@redhat.com>
7803
7804         PR c++/35315
7805         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
7806         alone if it's the naming decl for the type's main variant.
7807
7808 2008-02-26  Tom Tromey  <tromey@redhat.com>
7809
7810         * system.h (USE_MAPPED_LOCATION): Poison.
7811         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
7812         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
7813         (make_goto_expr_edges): Likewise.
7814         (remove_bb): Likewise.
7815         (execute_warn_function_return): Likewise.
7816         * basic-block.h (struct edge_def) <goto_locus>: Change type to
7817         location_t.
7818         * c-common.c (fname_decl): Remove old location code.
7819         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
7820         location code.
7821         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
7822         variant.
7823         (ASM_INPUT_SOURCE_LOCATION): Likewise.
7824         (gen_rtx_ASM_INPUT): Likewise.
7825         (gen_rtx_ASM_INPUT_loc): Likewise.
7826         (get_rtx_asm_OPERANDS): Remove.
7827         * cfglayout.c (insn_locators_alloc): Remove old location code.
7828         (set_curr_insn_source_location): Likewise.
7829         (curr_insn_locator): Likewise.
7830         * print-tree.c (print_node): Remove old location code.
7831         * tree-mudflap.c (mf_varname_tree): Remove old location code.
7832         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
7833         * cfgexpand.c (expand_gimple_cond_expr): Don't use
7834         location_from_locus.
7835         (construct_exit_block): Remove old location code.
7836         * emit-rtl.c (force_next_line_note): Remove old location code.
7837         * profile.c (branch_prob): Remove old location code.
7838         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
7839         LOC_LINE): Remove old-location variants.
7840         * langhooks.c (lhd_print_error_function): Remove old location
7841         code.
7842         * configure, config.in: Rebuilt.
7843         * configure.ac (--enable-mapped-location): Remove.
7844         * c-decl.c (c_init_decl_processing): Remove old location code.
7845         (finish_function): Likewise.
7846         * recog.c (decode_asm_operands): Remove old location code.
7847         * c-pch.c (c_common_read_pch): Remove old location code.
7848         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
7849         variants.
7850         * gimple-low.c (lower_function_body): Remove old location code.
7851         * toplev.c (unknown_location): Remove.
7852         (push_srcloc): Remove old-location variant.
7853         (process_options): Remove old location code.
7854         (lang_dependent_init): Likewise.
7855         * input.h (UNKNOWN_LOCATION): Move definition.
7856         (location_t): Undeprecate.
7857         (source_locus): Remove.
7858         (location_from_locus): Remove.
7859         (struct location_s): Remove.
7860         Remove all old-location code.
7861         (input_line, input_filename): Remove.
7862         * final.c (final_scan_insn): Remove old location code.
7863         * diagnostic.c (diagnostic_build_prefix): Remove
7864         USE_MAPPED_LOCATION test.
7865         * tree.h (gimple_stmt) <locus>: Now a location_t.
7866         (tree_exp) <locus>: Likewise.
7867         (DECL_IS_BUILTIN): Remove old-location variant.
7868         (annotate_with_file_line, annotate_with_locus): Likewise.
7869         (expr_locus, set_expr_locus): Update.
7870         * tree.c (build1_stat): Remove old location code.
7871         (last_annotated_node): Remove.
7872         (annotate_with_file_line): Remove old-location variant.
7873         (annotate_with_locus): Likewise.
7874         (expr_location): Remove old location code.
7875         (set_expr_location): Likewise.
7876         (expr_has_location): Likewise.
7877         (expr_locus): Likewise.
7878         (set_expr_locus): Likewise.
7879         (expr_filename): Don't use location_from_locus.
7880         (expr_lineno): Likewise.
7881         * rtl-error.c (location_for_asm): Remove old location code.
7882         * c-lex.c (cb_line_change): Remove old location code.
7883         (fe_file_change): Likewise.
7884         (cb_def_pragma): Likewise.
7885         (c_lex_with_flags): Likewise.
7886         * gengtype.c (do_typedef): Don't special-case location types.
7887         (define_location_structures): Remove.
7888         (main): Don't call define_location_structures.
7889         * tree-pretty-print.c (dump_implicit_edges): Remove old location
7890         code.
7891
7892 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7893
7894         PR 26264
7895         * builtins.def (BUILT_IN_STDARG_START): Remove.
7896         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
7897         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
7898         * tree-inline.c (inline_forbidden_p_1): Likewise.
7899         
7900 2008-02-26  Richard Guenther  <rguenther@suse.de>
7901
7902         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7903         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7904         (lookup_decl_from_uid): Declare.
7905         (remove_decl_from_map): Likewise.
7906         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7907         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7908         (decl_for_uid_map): New global hashtable mapping DECL_UID
7909         to the decl tree.
7910         (init_ttree): Allocate it.
7911         (insert_decl_to_uid_decl_map): New helper function.
7912         (make_node_stat): Insert new decls into the map.
7913         (copy_node_stat): Likewise.
7914         (lookup_decl_from_uid): New function.
7915         (remove_decl_from_map): Likewise.
7916         (print_decl_for_uid_map_statistics): New helper.
7917         (dump_tree_statistics): Call it.
7918
7919         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7920         (referenced_var_iterator): Adjust.
7921         (FOR_EACH_REFERENCED_VAR): Adjust.
7922         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7923         (num_referenced_vars): Adjust.
7924         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7925         (first_referenced_var): Remove.
7926         (end_referenced_vars_p): Likewise.
7927         (next_referenced_var): Likewise.
7928         (referenced_var_iterator_set): New helper function.
7929         * tree-dfa.c (referenced_var_lookup): Adjust.
7930         (referenced_var_check_and_insert): Likewise.
7931         (remove_referenced_var): Likewise.
7932         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7933         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7934         (verify_call_clobbering): Likewise.
7935         (verify_memory_partitions): Likewise.
7936         (init_tree_ssa): Allocate bitmap instead of hashtable for
7937         referenced_vars.
7938         (delete_tree_ssa): Adjust.
7939         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7940         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7941         (compute_tag_properties): Likewise.
7942         (set_initial_properties): Likewise.
7943         (find_partition_for): Likewise.
7944         (update_reference_counts): Likewise.
7945         (dump_may_aliases_for): Likewise.
7946         * tree-ssa-operands.c (add_virtual_operand): Likewise.
7947         (add_call_clobber_ops): Likewise.
7948         (add_call_read_ops): Likewise.
7949         (get_asm_expr_operands): Likewise.
7950         * tree-into-ssa.c (dump_decl_set): Likewise.
7951         (update_ssa): Likewise.
7952         * tree-sra.c (scan_function): Likewise.
7953         (decide_instantiations): Likewise.
7954         (scalarize_parms): Likewise.
7955         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7956         (dsa_named_for): Likewise.
7957         * tree-ssa-structalias.c (update_alias_info): Likewise.
7958         (merge_smts_into): Likewise.
7959
7960 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7961
7962         PR 34351
7963         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
7964         * c-opts.c (c_common_handle_option): Wall enables
7965         Wvolatile-register-var.
7966         * common.opt: Move Wvolatile-register-var to...
7967         * c.opt: ...here.
7968         
7969 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7970
7971         * common.opt (Wlarger-than=): New.
7972         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
7973         -Wlarger-than=.
7974         * opts.c (common_handle_option): Handle -Wlarger-than=.
7975         * optc-gen.awk: Likewise.
7976         * opth-gen.awk: Likewise.
7977         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
7978         * tree-optimize.c (tree_rest_of_compilation): Likewise.
7979         
7980 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7981
7982         * c-common.c (match_case_to_enum_1): Add appropriate
7983         OPT_W* parameter to warning.
7984         (c_do_switch_warnings): Likewise.
7985         * c-typeck.c (warning_init): Add one more parameter following
7986         'warning' function.
7987         (push_init_level): Update call to warning_init.
7988         (pop_init_level): Likewise.
7989         (add_pending_init): Likewise.
7990         (output_init_element: Likewise.
7991
7992 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7993
7994         PR 28322
7995         * toplev.c (toplev_main): If there are warnings or error, print
7996         errors for ignored options.
7997         * opts.c (ignored_options): New static variable.
7998         (postpone_unknown_option_error): New.
7999         (print_ignored_options): New.
8000         (handle_option): Postpone errors for unknown -Wno-* options.
8001         * opts.h (print_ignored_options): Declare.
8002         
8003 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
8004
8005         * config/mips/mips.md (loadgp_blockage, blockage): Change type
8006         to "ghost".
8007
8008 2008-02-25  Richard Guenther  <rguenther@suse.de>
8009
8010         Revert:
8011         2008-02-25  Richard Guenther  <rguenther@suse.de>
8012
8013         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8014         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8015         (lookup_decl_from_uid): Declare.
8016         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8017         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8018         (decl_for_uid_map): New global hashtable mapping DECL_UID
8019         to the decl tree.
8020         (init_ttree): Allocate it.
8021         (insert_decl_to_uid_decl_map): New helper function.
8022         (make_node_stat): Insert new decls into the map.
8023         (copy_node_stat): Likewise.
8024         (lookup_decl_from_uid): New function.
8025         (print_decl_for_uid_map_statistics): New helper.
8026         (dump_tree_statistics): Call it.
8027
8028         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8029         (referenced_var_iterator): Adjust.
8030         (FOR_EACH_REFERENCED_VAR): Adjust.
8031         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8032         (num_referenced_vars): Adjust.
8033         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8034         (first_referenced_var): Remove.
8035         (end_referenced_vars_p): Likewise.
8036         (next_referenced_var): Likewise.
8037         (referenced_var_iterator_set): New helper function.
8038         * tree-dfa.c (referenced_var_lookup): Adjust.
8039         (referenced_var_check_and_insert): Likewise.
8040         (remove_referenced_var): Likewise.
8041         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8042         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8043         (verify_call_clobbering): Likewise.
8044         (verify_memory_partitions): Likewise.
8045         (init_tree_ssa): Allocate bitmap instead of hashtable for
8046         referenced_vars.
8047         (delete_tree_ssa): Adjust.
8048         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8049         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8050         (compute_tag_properties): Likewise.
8051         (set_initial_properties): Likewise.
8052         (find_partition_for): Likewise.
8053         (update_reference_counts): Likewise.
8054         (dump_may_aliases_for): Likewise.
8055         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8056         (add_call_clobber_ops): Likewise.
8057         (add_call_read_ops): Likewise.
8058         (get_asm_expr_operands): Likewise.
8059         * tree-into-ssa.c (dump_decl_set): Likewise.
8060         (update_ssa): Likewise.
8061         * tree-sra.c (scan_function): Likewise.
8062         (decide_instantiations): Likewise.
8063         (scalarize_parms): Likewise.
8064         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8065         (dsa_named_for): Likewise.
8066         * tree-ssa-structalias.c (update_alias_info): Likewise.
8067         (merge_smts_into): Likewise.
8068
8069 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
8070
8071         PR fortran/29549
8072         * doc/invoke.texi (-fcx-limited-range): Document new option.
8073         * toplev.c (process_options): Handle -fcx-fortran-rules.
8074         * common.opt: Add documentation for -fcx-fortran-rules.
8075
8076 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
8077
8078         PR c/35162
8079         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
8080         actual behaviour and C99.
8081         
8082 2008-02-26  Ben Elliston  <bje@au.ibm.com>
8083
8084         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
8085         (ASM_CPU_POWER6_SPEC): Likewise.
8086         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
8087         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
8088         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
8089
8090 2008-02-25  Richard Guenther  <rguenther@suse.de>
8091
8092         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8093         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8094         (lookup_decl_from_uid): Declare.
8095         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8096         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8097         (decl_for_uid_map): New global hashtable mapping DECL_UID
8098         to the decl tree.
8099         (init_ttree): Allocate it.
8100         (insert_decl_to_uid_decl_map): New helper function.
8101         (make_node_stat): Insert new decls into the map.
8102         (copy_node_stat): Likewise.
8103         (lookup_decl_from_uid): New function.
8104         (print_decl_for_uid_map_statistics): New helper.
8105         (dump_tree_statistics): Call it.
8106
8107         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8108         (referenced_var_iterator): Adjust.
8109         (FOR_EACH_REFERENCED_VAR): Adjust.
8110         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8111         (num_referenced_vars): Adjust.
8112         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8113         (first_referenced_var): Remove.
8114         (end_referenced_vars_p): Likewise.
8115         (next_referenced_var): Likewise.
8116         (referenced_var_iterator_set): New helper function.
8117         * tree-dfa.c (referenced_var_lookup): Adjust.
8118         (referenced_var_check_and_insert): Likewise.
8119         (remove_referenced_var): Likewise.
8120         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8121         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8122         (verify_call_clobbering): Likewise.
8123         (verify_memory_partitions): Likewise.
8124         (init_tree_ssa): Allocate bitmap instead of hashtable for
8125         referenced_vars.
8126         (delete_tree_ssa): Adjust.
8127         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8128         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8129         (compute_tag_properties): Likewise.
8130         (set_initial_properties): Likewise.
8131         (find_partition_for): Likewise.
8132         (update_reference_counts): Likewise.
8133         (dump_may_aliases_for): Likewise.
8134         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8135         (add_call_clobber_ops): Likewise.
8136         (add_call_read_ops): Likewise.
8137         (get_asm_expr_operands): Likewise.
8138         * tree-into-ssa.c (dump_decl_set): Likewise.
8139         (update_ssa): Likewise.
8140         * tree-sra.c (scan_function): Likewise.
8141         (decide_instantiations): Likewise.
8142         (scalarize_parms): Likewise.
8143         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8144         (dsa_named_for): Likewise.
8145         * tree-ssa-structalias.c (update_alias_info): Likewise.
8146         (merge_smts_into): Likewise.
8147
8148 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
8149
8150         PR target/35258
8151         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
8152         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
8153         * alias.h (nonoverlapping_memrefs_p): Likewise.
8154
8155 2008-02-25  Jan Beulich  <jbeulich@novell.com>
8156
8157         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
8158         * config/i386/netware-libgcc.exp: Add __bswap?i2,
8159         __emultls_get_address, __emultls_register_common,
8160         __floatundi?f, and _Unwind_GetIPInfo.
8161         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
8162         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
8163         (gen_regparm_prefix): Likewise.
8164         (i386_nlm_encode_section_info): Sync with
8165         config/i386/winnt.c:i386_pe_encode_section_info().
8166         (i386_nlm_maybe_mangle_decl_assembler_name): New.
8167         i386_nlm_mangle_decl_assembler_name): New.
8168         (netware_override_options): New.
8169         * config/i386/netware.h (netware_override_options): Declare.
8170         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
8171         (i386_nlm_mangle_decl_assembler_name): Declare.
8172         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
8173
8174 2008-02-25  Ben Elliston  <bje@au.ibm.com>
8175
8176         PR other/32948
8177         * c-decl.c (grokdeclarator): Remove unused local variables
8178         `typedef_type' and `type_as_written'.
8179         * bb-reorder.c
8180         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
8181         unused local variable `has_hot_blocks'.
8182         (fix_crossing_conditional_branches): Remove unused local variable
8183         `prev_bb'.
8184         
8185 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
8186
8187         PR middle-end/19984
8188         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
8189         using DEF_C99_BUILTIN.
8190         (BUILT_IN_NANF): Ditto.
8191         (BUILT_IN_NANL): Ditto.
8192
8193 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
8194             Revital Eres  <eres@il.ibm.com>
8195
8196         * modulo-sched.c (calculate_must_precede_follow): Address TODO
8197         regarding the order of two dependent insns in the same row.
8198
8199 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
8200
8201         * stor-layout.c (layout_decl): Do not bump the alignment of a
8202         bit-field to more than byte alignment if it is packed.
8203
8204 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
8205
8206         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
8207         e300c2 and e300c3.
8208
8209 2008-02-24  Diego Novillo  <dnovillo@google.com>
8210
8211         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
8212
8213         PR 33738
8214         * tree-vrp.c (vrp_evaluate_conditional): With
8215         -Wtype-limits, emit a warning when comparing against a
8216         constant outside the natural range of OP0's type.
8217         * c.opt (Wtype-limits): Move ...
8218         * common.opt (Wtype-limits): ... here.
8219
8220 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
8221
8222         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
8223         * config/rs6000/e300c2c3.md: New file.
8224         * config/rs6000/rs6000.c (processor_costs): Add new costs for
8225         e300c2 and e300c3.
8226         (rs6000_override_options): Add e300c2 and e300c3 cases to
8227         processor_target_table. Do not allow usage of Altivec or Spe
8228         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
8229         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
8230         * config/rs6000/rs6000.h (processor_type): Add
8231         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
8232         (ASM_CPU_SPEC): Add e300c2 and e300c3.
8233         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
8234         and ppce300c3. Include e300c2c3.md.
8235
8236 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
8237
8238         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
8239         instead of TARGET_STRICT_ALIGN.
8240
8241 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
8242
8243         * explow.c (memory_address): Assert that the generated address is
8244         valid.
8245
8246 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
8247
8248         PR target/25477
8249         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
8250         * config/darwin-ppc-ldouble-patch.def: New file.
8251         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
8252         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
8253         SUBTARGET_INIT_BUILTINS if defined.
8254         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
8255         New functions.
8256
8257 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8258
8259         PR rtl-opt/33512
8260         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
8261         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
8262
8263 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8264
8265         PR pch/35027
8266         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
8267         file" warning condtional on -Winvalid-PCH.
8268
8269 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
8270
8271         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
8272
8273 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
8274
8275         PR target/22076
8276         PR target/34256 
8277         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
8278         prevent reload from using MMX registers.
8279         (*mov<mode>_internal): Ditto.
8280         (*movv2sf_internal_rex64): Ditto.
8281         (*movv2sf_internal): Ditto.
8282
8283 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8284
8285         PR documentation/31569
8286         * doc/install.texi2html: Use makeinfo --no-number-sections.
8287
8288 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8289
8290         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
8291         ensure that we can address an entire entity > 8 bytes.  Don't
8292         generate reg+reg addressing for such data.
8293
8294 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8295
8296         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
8297         strings when optimizing for size, unless the target cares about
8298         alignment.
8299
8300 2008-02-22  Tom Tromey  <tromey@redhat.com>
8301
8302         * regclass.c (current_pass): Remove declaration.
8303
8304 2008-02-22  Anatoly Sokolov <aesok@post.ru>
8305
8306         * config/avr/libgcc.S (__RAMPZ__): Define.
8307         (__do_copy_data): Add for devices with 128KB code memory.
8308
8309 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8310
8311         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
8312         Use spe_abi.
8313         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
8314
8315 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
8316
8317         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
8318         GENNONACR_REGS.
8319
8320 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8321
8322         PR c/19999
8323         * c-typeck.c (build_binary_op): Warn about floating point
8324         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
8325
8326 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
8327
8328         PR target/34526
8329         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
8330         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
8331         add vrsave.
8332         (rs6000_override_options): Set altivec_abi as default, not override,
8333         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
8334         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
8335         is used; use new member spe_abi.
8336         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
8337         spe_abi and altivec_abi.
8338
8339 2008-02-22  Tomas Bily  <tbily@suse.cz>
8340
8341         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
8342
8343 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8344
8345         PR bootstrap/35273
8346         * config.build (build_file_translate): Set to `CMD //c' only if
8347         it works.
8348         * Makefile.in (build_file_translate): Improve comment.
8349
8350 2008-02-21  Jan Hubicka  <jh@suse.cz>
8351
8352         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
8353         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
8354         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
8355
8356 2008-02-21  Michael Matz  <matz@suse.de>
8357
8358         PR target/35264
8359         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
8360
8361 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
8362
8363         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
8364         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
8365         as insn constraint.
8366         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
8367         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
8368         SSE_VEC_FLOAT_MODE_P as insn constraint.
8369         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
8370         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
8371         sse4a_movntdf using MODEF mode iterator.
8372         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
8373         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
8374         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
8375         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
8376         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
8377         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
8378         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
8379
8380 2008-02-21  Richard Guenther  <rguenther@suse.de>
8381
8382         * tree.def (PAREN_EXPR): New tree code.
8383         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
8384         and PAREN_EXPR.
8385         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
8386         * expr.c (expand_expr_real_1): Likewise.
8387         * tree-inline.c (estimate_num_insns_1): Likewise.
8388         * tree-complex.c (expand_complex_move): Likewise.
8389         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
8390         as plain x.
8391
8392 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8393
8394         PR target/35225
8395         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
8396
8397 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8398
8399         PR target/35190
8400         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
8401
8402         * config/sh/sh.c (find_barrier): Don't go past
8403         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
8404
8405 2008-02-20  DJ Delorie  <dj@redhat.com>
8406
8407         * config/h8300/h8300.md (insv): Force source operand to be a register.
8408
8409         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
8410         as a jump, not as a plain insn.
8411         
8412 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
8413
8414         * doc/invoke.texi (Warning Options): Add new option
8415         -Wframe-larger-than=.
8416         (-Wframe-larger-than): Document.
8417
8418         * flags.h (warn_frame_larger_than, frame_larger_than_size):
8419         Add declarations for new option variables.
8420
8421         * final.c (final_start_function): Check the frame size
8422         before emission and issue a Wframe-larger-than warning.
8423
8424         * opts.c (warn_frame_larger_than, frame_larger_than_size):
8425         Add definitions for new option variables.
8426         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
8427
8428         * common.opt (Wframe-larger-than=): New option.
8429
8430 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
8431
8432         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
8433         (<sse>_div<mode>3): Ditto.
8434         (<sse>_vmdiv<mode>3): Ditto.
8435         (<sse>_vmsqrt<mode>2): Ditto.
8436         (*smax<mode>3): Ditto.
8437         (sse5_frcz<mode>2): Ditto.
8438         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
8439         as insn constraint.
8440
8441 2008-02-20  Richard Guenther  <rguenther@suse.de>
8442
8443         PR middle-end/35265
8444         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
8445         be happy with INTEGRAL_TYPE_P.
8446
8447 2008-02-20  Richard Guenther  <rguenther@suse.de>
8448
8449         * fold-const.c (split_tree): Associate floatig-point expressions
8450         if flag_associative_math is set.
8451
8452 2008-02-20  Richard Guenther  <rguenther@suse.de>
8453
8454         * tree.h (fold_real_zero_addition_p): Declare.
8455         * fold-const.c (fold_real_zero_addition_p): Export.
8456         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
8457         floating-point operations with zero and one.
8458
8459 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
8460
8461         * doc/install.texi: Correct references to CFLAGS, replacing them
8462         with BOOT_CFLAGS.  Document flags used during bootstrap for
8463         target libraries.
8464                                 
8465 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
8466
8467         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
8468         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
8469         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
8470         insn constraint.
8471         (smin<mode>3): Ditto from similar patterns.
8472         (smax<mode>3): Ditto.
8473         (*ieee_smin<mode>3): Ditto.
8474         (*ieee_smax<mode>3): Ditto.
8475         * config/i386/sse.md (sse): New mode attribute.
8476         (mov<mode>): Macroize expander from movv4sf and movv2df using
8477         SSEMODEF2P mode iterator.
8478         (<sse>_movnt<mode>): Ditto from similar patterns. Use
8479         SSE_VEC_FLOAT_MODE_P as insn constraint.
8480         (storent<mode>): Ditto.
8481         (storent<mode>): Macroize expander from storentsf and storentdf using
8482         MODEF mode iterator.
8483         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
8484         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
8485         (abs<mode>2): Ditto from similar patterns.
8486         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
8487         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
8488         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
8489         (<sse>_vmsqrt<mode>2): Ditto.
8490         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
8491         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
8492         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
8493         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
8494         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
8495         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
8496         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
8497         insn constraint.
8498         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
8499         iterator and SSE_FLOAT_MODE_P as insn constraint.
8500         (<sse>_ucomi): Ditto from similar patterns.
8501         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
8502         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
8503         SSE_VEC_FLOAT_MODE_P as insn constraint.
8504         (vcond<mode>): Ditto from similar patterns.
8505         (and<mode>3, *and<mode>3): Ditto.
8506         (<sse>_nand<mode>3): Ditto.
8507         (ior<mode>3, *ior<mode>3): Ditto.
8508         (xor<mode>3, *xor<mode>3): Ditto.
8509         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
8510         iterator and SSE_FLOAT_MODE_P as insn constraint.
8511         (*nand<mode>3): Ditto from similar patterns.
8512         (*ior<mode>3): Ditto.
8513         (*xor<mode>3): Ditto.
8514
8515 2008-02-20  Ira Rosen  <irar@il.ibm.com>
8516
8517         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
8518         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
8519         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
8520
8521 2008-02-19  Jan Hubicka  <jh@suse.cz>
8522
8523         * predict.c (tree_bb_level_predictions): Remove variable next
8524         mistakely introduced by previous commit.
8525
8526 2008-02-19  Jan Hubicka  <jh@suse.cz>
8527
8528         * predict.c (predict_paths_leading_to): Rewrite.
8529         (predict_paths_for_bb): New.
8530         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
8531
8532 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8533
8534         PR bootstrap/35218
8535         * Makefile.in (build_file_translate): New.
8536         (gcc-vers.texi): Use it for translating $(abs_srcdir).
8537         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
8538         * configure.ac (build_file_translate): Substitute it.
8539         * configure: Regenerate.
8540
8541 2008-02-19  Jan Hubicka  <jh@suse.cz>
8542
8543         PR rtl-optimization/34408
8544         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
8545         invalid sharing.
8546
8547 2008-02-19  Jan Hubicka  <jh@suse.cz>
8548
8549         PR middle-end/28779
8550         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
8551         call_expr.
8552
8553 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
8554
8555         PR Ada/35186
8556         * config/i386/i386-modes.def: Revert the last DI alignment
8557         change until Ada people can look into it.
8558
8559 2008-02-19  Nick Clifton  <nickc@redhat.com>
8560
8561         * opts.c (print_specific_help): Fix typo in --help text.
8562
8563 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
8564
8565         PR target/35239
8566         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
8567         32-bit inline asm without asm alternatives for host GCC < 3.0.
8568
8569 2008-02-19  Richard Guenther  <rguenther@suse.de>
8570
8571         PR tree-optimization/34989
8572         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
8573         Allow propagation to INDIRECT_REF if we can simplify only.
8574
8575 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8576
8577         * c-common.c (warn_for_collisions_1): Use appropriate option when
8578         warning.
8579
8580 2008-02-19  Nick Clifton  <nickc@redhat.com>
8581
8582         PR other/31349
8583         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
8584         (handle_options): Fix indentation.
8585         (print_filtered_help): If no language-specific options were
8586         displayed tell the user how to list all the options supported by
8587         the language's front-end.
8588         (print_specific_help): Fix indentation and remove duplicate line.
8589         (common_handle_option): Handle the -v option.
8590         For --help enable the display of undocumented options if the -v
8591         switch has been included on the command line.
8592         For --help= check for overlaps in the arguments between the option
8593         classes and the language names and issue a warning when they
8594         cannot be disambiguated.
8595         * c.opt (v): Pass on to the common option handler.
8596
8597 2008-02-19  Revital Eres  <eres@il.ibm.com> 
8598
8599         * modulo-sched.c (sms_schedule): Change dump message when
8600         create_ddg function fails.
8601         (try_scheduling_node_in_cycle): Rename row to cycle.
8602         (print_partial_schedule): Rename CYCLE to ROW.
8603
8604 2008-02-19  Christian Bruel  <christian.bruel@st.com>
8605             Zdenek Dvorak  <ook@ucw.cz>
8606
8607         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
8608
8609 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
8610
8611         PR target/33555
8612         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
8613         (*x86_movdicc_0_m1_se): Ditto.
8614
8615 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
8616
8617         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
8618         (CMPtype): Define as __gcc_CMPtype.
8619         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
8620         (CMPtype): Define as __gcc_CMPtype.
8621
8622 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
8623
8624         Support valgrind 3.3 for --enable-checking=valgrind.
8625         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
8626         here.
8627         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
8628         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
8629         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
8630         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
8631         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
8632         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
8633         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
8634         respectively.
8635         * ggc-zone.c: Similar.
8636         * ggc-page.c: Similar.
8637
8638 2008-02-19  Paul Brook  <paul@codesourcery.com>
8639
8640         PR target/35071
8641         * config/arm/ieee754-df.S: Fix do_it typo.
8642         * config/arm/ieee754-sf.S: Fix do_it typo.
8643
8644 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
8645
8646         PR target/35189
8647         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
8648         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
8649         (OPTION_MASK_ISA_SSE_SET): Likewise.
8650         (OPTION_MASK_ISA_SSE2_SET): Likewise.
8651         (OPTION_MASK_ISA_SSE3_SET): Likewise.
8652         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
8653         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
8654         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
8655         (OPTION_MASK_ISA_SSE4_SET): Likewise.
8656         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
8657         (OPTION_MASK_ISA_SSE5_SET): Likewise.
8658         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
8659         (OPTION_MASK_ISA_MMX_UNSET): Updated.
8660         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
8661         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
8662         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
8663         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
8664         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
8665         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
8666         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
8667         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
8668         (OPTION_MASK_ISA_SSE4): Removed.
8669         (ix86_handle_option): Turn on bits in ix86_isa_flags and
8670         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
8671         (override_options): Don't turn on implied SSE/MMX bits in
8672         ix86_isa_flags.
8673
8674 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
8675
8676         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
8677         32bit host.
8678
8679 2008-02-18  Joey Ye  <joey.ye@intel.com>
8680
8681         PR middle-end/34921
8682         * tree-nested.c (insert_field_into_struct): Set type alignment
8683         to field alignment if the former is less than the latter.
8684
8685 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
8686
8687         * BASE-VER: Set to 4.4.0.
8688
8689 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8690
8691         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
8692         * doc/cfg.texi: Likewise.
8693         * doc/extend.texi: Likewise.
8694         * doc/gty.texi: Likewise.
8695         * doc/invoke.texi: Likewise.
8696         * doc/loop.texi: Likewise.
8697         * doc/md.texi: Likewise.
8698         * doc/passes.texi: Likewise.
8699         * doc/rtl.texi: Likewise.
8700         * doc/sourcebuild.texi: Likewise.
8701         * doc/tm.texi: Likewise.
8702         * doc/tree-ssa.texi: Likewise.
8703
8704 2008-02-17  Richard Guenther  <rguenther@suse.de>
8705
8706         PR middle-end/35227
8707         * tree-complex.c (init_parameter_lattice_values): Handle parameters
8708         without default definition.
8709
8710 2008-02-17  Richard Guenther  <rguenther@suse.de>
8711
8712         PR tree-optimization/35231
8713         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
8714         if A | B != 1.
8715
8716 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
8717
8718         Revert:
8719         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
8720         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
8721         libgcc_cmp_return mode.
8722
8723 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8724
8725         PR c/28368
8726         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
8727
8728 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
8729
8730         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
8731         multilibs.
8732
8733 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8734
8735         * doc/c-tree.texi: Use `@.' where appropriate.
8736         * doc/extend.texi: Likewise.
8737         * doc/install.texi: Likewise.
8738         * doc/invoke.texi: Likewise.
8739         * doc/loop.texi: Likewise.
8740         * doc/makefile.texi: Likewise.
8741         * doc/md.texi: Likewise.
8742         * doc/passes.texi: Likewise.
8743         * doc/standards.texi: Likewise.
8744         * doc/tm.texi: Likewise.
8745
8746 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
8747
8748         PR middle-end/35196
8749         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
8750         in entry_bb.
8751         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
8752         rather than in entry_bb.
8753
8754 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
8755
8756         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
8757         libgcc_cmp_return mode.
8758
8759 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
8760
8761         PR middle-end/35130
8762         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
8763         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
8764
8765 2008-02-15  Richard Guenther  <rguenther@suse.de>
8766             Zdenek Dvorak  <ook@ucw.cz>
8767
8768         PR tree-optimization/35164
8769         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
8770         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
8771         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
8772         Only propagate addresses which do not have abnormal SSA_NAMEs
8773         in their operands.
8774
8775 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
8776
8777         PR target/35088
8778         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
8779
8780 2008-02-15  Jan Hubicka  <jh@suse.cz>
8781
8782         PR middle-end/35149
8783         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
8784
8785 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
8786
8787         PR middle-end/34621
8788         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
8789         when calculating alignment_pad.
8790
8791 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
8792
8793         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
8794         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
8795         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
8796         and STACK_BOUNDARY define.
8797
8798 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
8799
8800         PR preprocessor/35061
8801         * c-pragma.c (handle_pragma_pop_macro): Check that
8802         pushed_macro_table has been allocated.
8803
8804 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8805
8806         PR middle-end/35136
8807         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
8808         (force_gimple_operand): Likewise.
8809         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
8810         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
8811         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
8812         (find_interesting_uses_address): Check addressability and alignment
8813         of the base expression only after substituting bases of IVs into it.
8814
8815 2008-02-14  Michael Matz  <matz@suse.de>
8816
8817         PR target/34930
8818         * function.c (instantiate_virtual_regs_in_insn): Reload address
8819         before falling back to reloading the whole operand.
8820
8821 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
8822
8823         * config/s390/s390.c (s390_mainpool_start): Emit the pool
8824         before the first section switch note.
8825
8826 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8827
8828         * doc/bugreport.texi: Update copyright years.
8829         * doc/c-tree.texi: Likewise.
8830         * doc/cfg.texi: Likewise.
8831         * doc/cpp.texi: Likewise.
8832         * doc/cppinternals.texi: Likewise.
8833         * doc/fragments.texi: Likewise.
8834         * doc/frontends.texi: Likewise.
8835         * doc/gcc.texi: Likewise.
8836         * doc/gty.texi: Likewise.
8837         * doc/hostconfig.texi: Likewise.
8838         * doc/implement-c.texi: Likewise.
8839         * doc/libgcc.texi: Likewise.
8840         * doc/loop.texi: Likewise.
8841         * doc/makefile.texi: Likewise.
8842         * doc/options.texi: Likewise.
8843         * doc/passes.texi: Likewise.
8844         * doc/rtl.texi: Likewise.
8845         * doc/sourcebuild.texi: Likewise.
8846         * doc/standards.texi: Likewise.
8847         * doc/tree-ssa.texi: Likewise.
8848         * doc/trouble.texi: Likewise.
8849
8850         * doc/extend.texi: Use @: or add comma where appropriate.
8851         * doc/invoke.texi: Likewise.
8852         * doc/tm.texi: Likewise.
8853
8854 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
8855
8856         PR target/34393
8857         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
8858         to a reg.
8859
8860 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
8861
8862         * doc/md.texi (clz, ctz): Add reference.
8863         * doc/rtl.texi (clz, ctz): Likewise.
8864
8865 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8866
8867         PR other/35148
8868         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
8869         srcdir.
8870
8871 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
8872
8873         * config/s390/s390.c (struct constant_pool): New field
8874         emit_pool_after added.
8875         (s390_mainpool_start): Set the emit_pool_after flag according
8876         to the section switch notes.
8877         (s390_mainpool_finish): Consider emit_pool_after when emitting
8878         the literal pool at the end of the function.
8879         (s390_chunkify_start): Force literal pool splits at section
8880         switch notes.
8881
8882 2008-02-13  Michael Matz  <matz@suse.de>
8883
8884         PR debug/35065
8885         * var-tracking.c (clobber_variable_part): Correctly traverse the
8886         list.
8887
8888 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8889
8890         PR 29673
8891         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
8892         Add -fdump-ipa-inline.
8893         * tree-dump.c (dump_files): Remove tree-inlined dump.
8894         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
8895         
8896 2008-02-12  Richard Guenther  <rguenther@suse.de>
8897
8898         PR tree-optimization/35171
8899         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
8900         default defs.
8901
8902 2008-02-12  Richard Guenther  <rguenther@suse.de>
8903
8904         PR middle-end/35163
8905         * fold-const.c (fold_widened_comparison): Use get_unwidened in
8906         value-preserving mode.  Disallow final truncation.
8907
8908 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
8909
8910         PR middle-end/35136
8911         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
8912         code from here to...
8913         (force_gimple_operand): ...here.
8914
8915 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
8916
8917         PR c++/35144
8918         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
8919         non-compatible pointers.
8920         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
8921         different FIELD_DECLs, try harder by comparing field offsets, sizes
8922         and types.
8923
8924         PR inline-asm/35160
8925         * function.c (match_asm_constraints_1): Don't replace the same input
8926         multiple times.
8927
8928 2008-02-12  Anatoly Sokolov <aesok@post.ru>
8929
8930         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
8931         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
8932         (expand_epilogue): Restore RAMPZ register.
8933         * config/avr/avr.md (RAMPZ_ADDR): New constant.
8934
8935 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
8936
8937         * config/i386/cygwin.asm: (__alloca): Correct calling
8938         convention and alignment.
8939         (__chkstk): Force 8 byte stack alignment.
8940
8941 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
8942             Richard Guenther  <rguenther@suse.de>
8943
8944         PR tree-optimization/33992
8945         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
8946         the zero we compare against.
8947
8948 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
8949
8950         PR libfortran/35063
8951         * gthr-win32.h (__gthread_mutex_destroy_function): New function
8952         to CloseHandle after unlocking to prevent accumulation of handle
8953         count.
8954
8955 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8956
8957         PR middle_end/34150
8958         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
8959         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
8960         and update LABEL_NUSES during and after reload.
8961
8962 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
8963
8964         PR middle-end/34627
8965         * combine.c (simplify_if_then_else): Make sure the comparison is
8966         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
8967
8968 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
8969
8970         PR bootstrap/35051
8971         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
8972         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
8973         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
8974         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
8975         * tree.h (get_type_static_bounds): Likewise.
8976
8977 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8978
8979         * doc/invoke.texi (Option Summary, C++ Dialect Options)
8980         (Objective-C and Objective-C++ Dialect Options, Warning Options):
8981         Make -Wfoo language annotations match what the compiler outputs.
8982
8983 2008-02-08  Sa Liu  <saliu@de.ibm.com>
8984
8985         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
8986         intrinsics spu_convts, spu_convtu, spu_convtf.
8987
8988 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
8989
8990         * doc/extend.texi (Function Attributes) <noinline>: Mention
8991         asm ("") as method to keep calls.
8992
8993 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8994
8995         PR other/32754
8996         * doc/options.texi (Options): Replace references to opts.sh with
8997         optc-gen.awk.
8998         * opts-common.c: Likewise.
8999         * optc-gen.awk: Likewise.
9000         
9001 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
9002
9003         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
9004
9005 2008-02-07  Richard Henderson  <rth@redhat.com>
9006
9007         PR rtl-opt/33410
9008         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
9009         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
9010         funny mode.
9011
9012 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
9013
9014         PR tree-optimization/35085
9015         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
9016         for operand entry oe2 in addition to operand entry oe3 in order to
9017         expose more opportunities for vectorizer sum reduction.
9018
9019 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9020
9021         PR other/35107
9022         * Makefile.in (LIBS): Remove $(GMPLIBS).
9023         (cc1-dummy, cc1): Add $(GMPLIBS).
9024
9025 2008-02-06  Jan Hubicka  <jh@suse.cz>
9026
9027         PR target/23322
9028         * i386.md (moddf_integer): Do not produce partial memory stalls for
9029         targets where it hurts.
9030
9031 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
9032
9033         PR target/35083
9034         * optabs.c (expand_float): Do not check for decimal modes when
9035         expanding unsigned integer through signed conversion.
9036
9037 2008-02-06  Nick Clifton  <nickc@redhat.com>
9038
9039         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
9040         inside the clobber with a match_operand and duplicated operand
9041         number in the constraint.
9042         (ineqbranchsi): Delete redundant comment.
9043
9044 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
9045
9046         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
9047         builtin_define ("__USE_INIT_FINI__").
9048         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
9049         -msx multilibs.
9050         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
9051
9052 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9053
9054         PR documentation/30330
9055         * doc/invoke.texi (C++ Dialect Options)
9056         (Objective-C and Objective-C++ Dialect Options, Warning Options):
9057         For each warning option -Wfoo that allows -Wno-foo, ensure both
9058         -Wfoo and -Wno-foo are listed in the option index.  Fix index
9059         entry of -Wswitch-default, index -Wnormalized= including the
9060         `=', and -Wlarger-than-@var{len} including @var{len}.
9061
9062 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
9063
9064         * config/i386/i386.md (floatunssisf2): Use
9065         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
9066         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
9067         Macroize expander using MODEF mode iterator.
9068
9069 2008-02-05  Diego Novillo  <dnovillo@google.com>
9070
9071         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
9072
9073         PR 33738
9074         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
9075
9076 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9077
9078         PR other/35070
9079         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
9080
9081 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
9082
9083         PR target/35084
9084         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
9085         to indicate if a message should be generated.
9086         (init_cumulative_args): Updated.
9087         (function_value_32): Likewise.
9088
9089 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
9090
9091         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
9092
9093 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
9094
9095         PR target/35083
9096         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
9097         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
9098
9099 2008-02-04  Diego Novillo  <dnovillo@google.com>
9100
9101         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
9102
9103         PR 33738
9104         * tree-vrp.c (vrp_evaluate_conditional): With
9105         -Wtype-limits, emit a warning when comparing against a
9106         constant outside the natural range of OP0's type.
9107
9108 2008-02-04  Richard Guenther  <rguenther@suse.de>
9109
9110         PR middle-end/33631
9111         * expr.c (count_type_elements): Give for unions instead of
9112         guessing.
9113
9114 2008-02-04  Richard Guenther  <rguenther@suse.de>
9115
9116         PR middle-end/35043
9117         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
9118         to TYPE_DOMAINs base type instead of using bitsizetype here.
9119
9120 2008-02-03  Jason Merrill  <jason@redhat.com>
9121
9122         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
9123
9124 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9125
9126         PR other/29972
9127         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
9128         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
9129         (RS/6000 and PowerPC Options): Fix typos and markup.
9130         * doc/passes.texi (Tree-SSA passes): Likewise.
9131
9132 2008-02-02  Michael Matz  <matz@suse.de>
9133
9134         PR target/35045
9135         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
9136         from record_last_reg_set_info.
9137         (record_last_reg_set_info): Take an RTX argument, iterate over all
9138         constituent hardregs.
9139         (record_last_set_info, record_opr_changes): Change calls to
9140         new signature or to record_last_reg_set_info_regno.
9141
9142 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
9143
9144         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
9145
9146 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
9147
9148         PR rtl-optimization/34773
9149         * reg-notes.def (EQUAL): Mention significance of combination of
9150         REG_EQUAL and REG_RETVAL.
9151         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
9152         insn that has a REG_RETVAL.
9153
9154 2008-02-01  Roger Sayle  <roger@eyesopen.com>
9155
9156         PR bootstrap/33781
9157         * configure.ac (--enable-fixed-point): Disable unless explicitly
9158         requested on IRIX.
9159         * configure: Regenerate.
9160
9161 2008-02-01  Richard Guenther  <rguenther@suse.de>
9162
9163         PR other/35042
9164         * invoke.texi (-finline-limit): Remove no longer true parts
9165         of the documentation.  Note that there is no default value.
9166
9167 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
9168             Mark Mitchell  <mark@codesourcery.com>
9169             Ben Elliston  <bje@au.ibm.com>
9170
9171         PR c/29326
9172         * doc/extend.texi (Other Builtins): Document.
9173
9174 2008-01-31  Tom Browder <tom.browder@gmail.com>
9175
9176         * doc/c-tree.texi (Types): Fix grammar.
9177         (Expression trees): Ditto.
9178         * doc/passes.texi (Tree-SSA passes): Ditto.
9179         
9180         * doc/configterms.texi (Configure Terms): Fix typo.
9181         * doc/cpp.texi (Common Predefined Macros): Ditto.
9182         * doc/md.texi (Machine Constraints): Ditto.
9183         
9184         * doc/makefile.texi (Makefile): Add comma.
9185
9186 2008-01-31  Tom Browder  <tom.browder@gmail.com>
9187             Gerald Pfeifer  <gerald@pfeifer.com>
9188         
9189         * doc/sourcebuild.texi (Front End): Remove references to CVS
9190         and CVSROOT/modules.
9191         (Texinfo Manuals): Replace reference to CVS by one to SVN.
9192         (Back End): Remove reference to CVS.
9193
9194 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
9195
9196         PR target/34900
9197         * config/mips/mips.c (gen_load_const_gp): New function, taking a
9198         comment from...
9199         (mips16_gp_pseudo_reg): ...here.
9200         * config/mips/mips.md (load_const_gp): Replace with...
9201         (load_const_gp_<mode>): ...this :P-based insn.
9202
9203 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9204
9205         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
9206         options. Minor fixes.
9207         (-std): Move reference to standards closer to where language
9208         standards are first mentioned.
9209         
9210 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
9211
9212         PR rtl-optimization/34995
9213         * reload.c (alternative_allows_const_pool_ref): Take an rtx
9214         parameter and return a bool.  If the rtx parameter is nonnull,
9215         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
9216         (find_reloads): Update call accordingly.  Pass the new operand
9217         if it needed no address reloads, otherwise pass null.
9218
9219 2008-01-30  Richard Henderson  <rth@redhat.com>
9220
9221         PR c/34993
9222         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
9223         for unbounded arrays.
9224
9225 2008-01-30  Silvius Rus  <rus@google.com>
9226
9227         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
9228
9229 2008-01-30  Jan Hubicka  <jh@suse.cz>
9230
9231         PR target/34982
9232         * i386.c (init_cumulative_args): Use real function declaration when
9233         calling locally.
9234
9235 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
9236
9237         PR rtl-optimization/34998
9238         * global.c (build_insn_chain): Treat non-subreg_lowpart
9239         SUBREGs of pseudos as clobbering all the words covered by the
9240         SUBREG, not just all the bytes.
9241         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
9242         original df_ref rather than an extract parameter.
9243         (global_conflicts): Update call accordingly.
9244
9245 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
9246
9247         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
9248         the overflow check to make it easier to read.
9249         (__fixtfdi): Change the type of the ll member in union
9250         long_double to UDItype_x.
9251
9252 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
9253
9254         PR middle-end/34969
9255         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
9256         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
9257         * tree-inline.c (fold_marked_statements): Call
9258         cgraph_update_edges_for_call_stmt if folding a call statement.
9259         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
9260         debug_generic_stmt calls, reset it back afterwards.
9261
9262         PR c/35017
9263         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
9264         static decls.
9265         * c-typeck.c (build_external_ref): Don't pedwarn about
9266         static vars in current function's scope.
9267
9268 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
9269
9270         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
9271
9272 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
9273
9274         PR c/35002
9275         * ipa-struct-reorg.c: Fix spelling.
9276         * params.def: Ditto.
9277
9278 2008-01-29  Richard Guenther  <rguenther@suse.de>
9279
9280         PR middle-end/35006
9281         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
9282         field.
9283         * tree-inline.c (remap_type): Increment remapping_type_depth
9284         around remapping types.
9285         (copy_body_r): Only add referenced variables if they are referenced
9286         from code, not types.
9287
9288 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
9289
9290         PR c++/34055
9291         PR c++/34103
9292         PR c++/34219
9293         PR c++/34606
9294         PR c++/34753
9295         PR c++/34754
9296         PR c++/34755
9297         PR c++/34919
9298         PR c++/34961
9299         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
9300         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
9301
9302 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
9303
9304         PR target/34412
9305         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
9306         pointer for tiny stack.
9307
9308 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
9309
9310         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
9311
9312 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
9313
9314         * config/vx-common.h: Fix typo in comment.
9315
9316 2008-01-28  Ian Lance Taylor  <iant@google.com>
9317
9318         PR c++/34862
9319         PR c++/33407
9320         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9321         coalesce pointers if they have different DECL_NO_TBAA_P values.
9322         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
9323         between variables with different DECL_NO_TBAA_P values.
9324
9325 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
9326
9327         PR 31535
9328         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
9329         are not legitimate small data references on SPE targets.
9330
9331 2008-01-28  David Daney  <ddaney@avtrex.com>
9332
9333         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
9334
9335 2008-01-28  David Daney  <ddaney@avtrex.com>
9336
9337         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
9338
9339 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
9340
9341         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
9342         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
9343         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
9344         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
9345         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
9346         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
9347         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
9348         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
9349
9350 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9351
9352         * basic-block.h (condjump_equiv_p): Fix comment.
9353
9354 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9355
9356         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
9357         print_generic_stmt_indented): Fix comment.
9358
9359 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9360
9361         * configure.ac (__stack_chk_fail): Add detecion for availability
9362         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
9363         * configure: Regenerate.
9364
9365 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
9366
9367         PR middle-end/34688
9368         * final.c (output_addr_const): Handle TRUNCATE.
9369
9370 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
9371
9372         PR target/34711
9373         * tree-ssa-loop-ivopts.c (comp_cost): New type.
9374         (zero_cost, infinite_cost): New constants.
9375         (struct cost_pair): Change type of cost to comp_cost.
9376         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
9377         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
9378         New functions.
9379         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
9380         split_address_cost, ptr_difference_cost, difference_cost,
9381         get_computation_cost_at, get_computation_cost,
9382         determine_use_iv_cost_generic, determine_use_iv_cost_address,
9383         determine_use_iv_cost_condition, determine_use_iv_costs,
9384         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
9385         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
9386         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
9387         Change type of cost to comp_cost.
9388         (determine_iv_cost): Increase cost of non-original ivs, instead
9389         of decreasing the cost of original ones.
9390         (get_address_cost): Indicate the complexity of the addressing mode 
9391         in comp_cost.
9392         (try_add_cand_for): Prefer using ivs not specific to some object.
9393         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
9394
9395 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
9396             Janis Johnson  <janis187@us.ibm.com>
9397
9398         PR target/34814
9399         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
9400         (TARGET_INSTANTIATE_DECLS): Likewise.
9401         * target.h (expand_to_rtl_hook): New target hook.
9402         (instantiate_decls): Likewise.
9403         * function.c (instantiate_decl): Make non-static.  Rename to...
9404         (instantiate_decl_rtl): ... this.
9405         (instantiate_expr): Use instantiate_decl_rtl.
9406         (instantiate_decls_1): Likewise.
9407         (instantiate_decls): Likewise.
9408         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
9409         * function.h (instantiate_decl_rtl): Add prototype.
9410         * cfgexpand.c (target.h): New include.
9411         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
9412         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
9413         (TARGET_INSTANTIATE_DECLS): Likewise.
9414         (TARGET_INITIALIZER): New target hooks added.
9415         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
9416         New prototype.
9417         * config/rs6000/rs6000.c (tree-flow.h): New include.
9418         (machine_function): Add sdmode_stack_slot field.
9419         (rs6000_alloc_sdmode_stack_slot): New function.
9420         (rs6000_instantiate_decls): Likewise.
9421         (rs6000_secondary_memory_needed_rtx): Likewise.
9422         (rs6000_check_sdmode): Likewise.
9423         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
9424         (TARGET_INSTANTIATE_DECLS): Likewise.
9425         (rs6000_hard_regno_mode_ok): Allow SDmode.
9426         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
9427         (rs6000_emit_move): Handle SDmode.
9428         (function_arg_advance): Likewise.
9429         (function_arg): Likewise.
9430         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
9431         SDmode var args for 32-bit compiles.
9432         (rs6000_secondary_reload_class): Handle SDmode.
9433         (rs6000_output_function_epilogue): Likewise.
9434         (rs6000_function_value): Simplify if statement.
9435         (rs6000_libcall_value): Likewise.
9436         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
9437         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
9438         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
9439         (movsd_hardfloat): New define_insn.
9440         (movsd_softfloat): Likewise.
9441         (movsd_store): Likewise.
9442         (movsd_load): Likewise.
9443         (extendsddd2): Likewise.
9444         (extendsdtd2): Likewise.
9445         (truncddsd2): Likewise.
9446         (movdd_hardfloat64): Fixup comment.
9447         (UNSPEC_MOVSD_LOAD): New constant.
9448         (UNSPEC_MOVSD_STORE): Likewise.
9449
9450 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
9451
9452         PR c++/34965
9453         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
9454         TRUTH_XOR_EXPR.
9455         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
9456         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
9457         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
9458         and TRUTH_XOR_EXPR.
9459
9460 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
9461
9462         PR target/34794
9463         * config.gcc: Separate AIX 5.3 from AIX 6.1.
9464         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9465         __LONGDOUBLE128 too.
9466         * config/rs6000/aix61.h: New file.
9467
9468 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
9469
9470         PR rtl-optimization/34959
9471         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
9472         popcount and parity rtxes the same mode as their operand.
9473         Truncate or extend the result to the return value's mode
9474         if necessary.
9475
9476 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
9477
9478         PR target/34981
9479         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
9480         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
9481         to GOT_VERSION_REGNUM.
9482         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
9483         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
9484         * config/mips/mips.c (mips_emit_call_insn): New function.
9485         (mips_call_tls_get_addr): Call mips_expand_call directly.
9486         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
9487         emit_call_insn.
9488         (mips16_build_call_stub): Likewise.  Return the call insn or null.
9489         (mips_expand_call): Update the call to mips16_build_call_stub
9490         accordingly and a remove redundant condition.  Assert that MIPS16
9491         stubs do not use lazy binding.  Use mips_emit_call_insn and return
9492         the call insn.
9493         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
9494         TARGET_USE_GOT.
9495         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
9496         (mips_avoid_hazard): Remove hazard_set handling.
9497         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
9498         (UNSPEC_RESTORE_GP): ...this.
9499         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
9500         (FAKE_CALL_REGNO): Rename to...
9501         (GOT_VERSION_REGNUM): ...this.
9502         (type): Add "ghost" value.  Add an associated insn reservation.
9503         (hazard_set): Remove.
9504         (exception_receiver): Rename to...
9505         (restore_gp): ...this and update the unspec identifier accordingly.
9506         (exception_receiver, nonlocal_got_receiver): New expanders.
9507         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
9508         FAKE_CALL_REGNO.  Remove hazard_set attribute.
9509         (set_got_version, update_got_version): New patterns.
9510
9511 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
9512
9513         PR target/34970
9514         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
9515
9516 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
9517
9518         PR other/31955
9519         * doc/install.texi2html: Generate gcc-vers.texi.
9520
9521 2008-01-25  DJ Delorie  <dj@redhat.com>
9522
9523         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9524
9525 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
9526
9527         * config/c4x: Remove directory.
9528         * config.gcc (crx-*, mt-*): Mark obsolete.
9529         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
9530         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
9531         sh-*-rtemscoff*): Remove cases.
9532         * defaults.h (C4X_FLOAT_FORMAT): Remove.
9533         * real.c (encode_c4x_single, decode_c4x_single,
9534         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
9535         c4x_extended_format): Remove.
9536         * real.h (c4x_single_format, c4x_extended_format): Remove.
9537         * doc/extend.texi (interrupt, naked): Remove mention of attributes
9538         on C4x.
9539         (Pragmas): Remove comment about c4x pragmas.
9540         * doc/install.texi (c4x): Remove target-specific instructions.
9541         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
9542         * doc/md.texi (Machine Constraints): Remove C4x documentation.
9543         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
9544         refer to C4x source files as examples.
9545         (C4X_FLOAT_FORMAT): Remove documentation.
9546
9547 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
9548
9549         * config/bfin/bfin.c (override_options): Reorder tests so that
9550         flag_pic gets enabled for -msep-data.
9551
9552 2008-01-25  Richard Guenther  <rguenther@suse.de>
9553
9554         PR middle-end/32244
9555         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
9556         to its bitfield precision if required.
9557
9558 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
9559
9560         PR middle-end/33880
9561         * tree-nested.c (walk_omp_for): New function.
9562         (convert_nonlocal_reference, convert_local_reference): Call
9563         walk_omp_for on OMP_FOR.
9564         (convert_call_expr): Call walk_body on OMP_FOR's
9565         OMP_FOR_PRE_INIT_BODY.
9566
9567 2008-01-25  Richard Guenther  <rguenther@suse.de>
9568
9569         PR tree-optimization/34966
9570         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
9571         default defs and PHI_NODEs we have to insert after the
9572         defining statement.
9573
9574 2008-01-24  Nick Clifton  <nickc@redhat.com>
9575
9576         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
9577         Provide a default definition.
9578         (LIBGCC2_UNITS_PER_WORD): Likewise.
9579
9580         * config/stormy16/stormy16.c: Include df.h for the prototype
9581         for df_regs_ever_live_p.
9582         (xstormy16_expand_builtin_va_start): Convert the stack offset
9583         into a component_ref and then use POINTER_PLUS_EXPR to add it
9584         to the incoming_virtual_args_rtx.
9585         (xstormy16_gimplify_va_arg_expr): Rename to
9586         xstormy16_gimplify_va_arg_expr.
9587         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
9588         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
9589         xstormy16_gimplify_va_arg_expr.
9590         Fix up some formatting issues.
9591
9592         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
9593         Move to predicates.md.
9594         (xs_hi_general_operand): Likewise.
9595         (xs_hi_nonmemory_operand): Likewise.
9596         * config/stormy16/predicates.md:
9597         (xstormy16_carry_plus_operand): New predicate.
9598         (xs_hi_general_operand): New predicate.
9599         (xs_hi_nonmemory_operand): New predicate.
9600         * config/stormy16/stormy16-protos.h:
9601         (xstormy16_carry_plus_operand): Delete prototype.
9602         (xs_hi_general_operand): Likewise.
9603         (xs_hi_nonmemory_operand): Likewise.
9604
9605         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
9606         modifiers as they are no longer needed and they can trigger
9607         reload spill failures.
9608
9609         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
9610         with a match_operand in order to help reload.
9611
9612         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
9613         constraint with 'e' for the 8th alternative as this version of
9614         the mov.w instruction only accepts the lower 8 registers.
9615
9616 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
9617
9618         PR target/34856
9619         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
9620         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
9621         vector elements.
9622
9623 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
9624
9625         PR middle-end/33333
9626         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
9627
9628 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
9629
9630         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
9631         New functions.
9632         (remove_structure): Update allocations list before removing structure.
9633         
9634 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
9635
9636         * ipa-struct-reorg.c (is_safe_cond_expr, 
9637         create_new_stmts_for_cond_expr): Use integer_zerop function,
9638         that recognize not only zero-pointer, but zero-integer too.
9639
9640 2008-01-25  Ben Elliston  <bje@au.ibm.com>
9641
9642         PR other/22232
9643         * fixproto: Escape "." in sed expression that strips leading "./".
9644
9645 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9646
9647         PR driver/34904
9648         * gcc.c (SWITCH_OK): Removed.
9649         (SWITCH_LIVE): Changed to bit.
9650         (SWITCH_FALSE): Likewise.
9651         (SWITCH_IGNORE): Likewise.
9652         (switchstr): Change live_cond to unsigned int.
9653         (process_command): Replace SWITCH_OK with 0.
9654         (do_self_spec): Likewise.
9655         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
9656         (give_switch): Likewise.
9657         (used_arg): Likewise.
9658         (do_spec_1): Set the SWITCH_IGNORE bit.
9659         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
9660         bits.  Set the SWITCH_LIVE bit.
9661
9662 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
9663
9664         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
9665
9666 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
9667
9668         PR tree-optimization/34472
9669         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
9670         parameter to a "bool *" and set *DATA to false if there is
9671         an unsafe access.  Do not delete the structure here.
9672         (check_cond_exprs): Delete it here instead.
9673         (check_cond_exprs, exclude_cold_structs): Do not increase
9674         I when removing a structure.
9675
9676 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
9677
9678         PR target/34856
9679         * config/i386/i386.c (ix86_expand_vector_init): Consider only
9680         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
9681
9682 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
9683
9684         PR middle-end/34934
9685         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
9686         a fixed vector for stack.
9687
9688 2008-01-24  Ben Elliston  <bje@au.ibm.com>
9689
9690         PR c++/25701
9691         * doc/gcc.texi (Software development): Add a direntry for g++.
9692         
9693 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
9694
9695         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
9696         stale and straggling -fforce-addr comments above.
9697
9698         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
9699         define.
9700         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
9701         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
9702
9703 2008-01-23  Michael Matz  <matz@suse.de>
9704
9705         PR debug/34895
9706         * dwarf2out.c (force_type_die): Use modified_type_die instead of
9707         gen_type_die.
9708
9709 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
9710
9711         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
9712         malloc result type.
9713
9714 2008-01-23 Anatoly Sokolov <aesok@post.ru>
9715
9716         * config/avr/avr.c (avr_current_arch): New variable.
9717         (avr_arch_types): Add 'avr31' and 'avr51' entries.
9718         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
9719         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
9720         (avr_override_options): Init 'avr_current_arch'. 
9721         (base_arch_s): Move from here...
9722         * config/avr/avr.h (base_arch_s): ... here. Add new members 
9723         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
9724         'mega' to 'have_jmp_call'.
9725         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
9726         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
9727         macros.
9728         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
9729         architectures.
9730         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
9731         MULTILIB_MATCHES): (Ditto.).
9732
9733 2008-01-23  Richard Guenther  <rguenther@suse.de>
9734
9735         PR middle-end/31529
9736         * cgraphunit.c (cgraph_reset_node): Always mark the node
9737         not reachable if it is not queued already.
9738
9739 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
9740
9741         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
9742         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
9743         (cputype_selected): New static variable.
9744         (bfin_handle_option): Set it if -mcpu is used.
9745         (override_option): Select default set of workarounds if no cpu type
9746         selected on the command line.
9747         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
9748
9749         From  Michael Frysinger  <michael.frysinger@analog.com>
9750         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
9751         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
9752
9753         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
9754         for bf547, bf523, bf524, and bf526.
9755         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
9756         bf526.
9757         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
9758         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
9759         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
9760         __ADSPBF547__ and __ADSPBF54x__ for bf547.
9761         * doc/invoke.texi (Blackfin Options): Document that
9762         -mcpu now accept bf547, bf523, bf524, and bf526.
9763
9764 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
9765
9766         PR rtl-optimization/34628
9767         * combine.c (try_combine): Stop and undo after the first combination
9768         if an autoincrement side-effect on the first insn has effectively
9769         been lost.
9770
9771 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
9772
9773         PR target/34529
9774         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
9775         Offset addresses are not valid for Altivec or paired float modes.
9776
9777 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
9778
9779         PR c++/34607
9780         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
9781         if DECL_INITIAL (decl) is error_mark_node.
9782
9783         PR c++/34914
9784         * c-common.c (handle_vector_size_attribute): Only allow
9785         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
9786         the same way as pointer, array etc. types.
9787         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
9788
9789         PR c++/34917
9790         * tree.c (build_type_attribute_qual_variant): Call
9791         build_qualified_type if attributes are equal, but quals are not.
9792
9793 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9794
9795         PR 32102
9796         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
9797         * flags.h (warn_strict_aliasing): Remove.
9798         (warn_strict_overflow): Remove.
9799         * opts.c (warn_strict_aliasing): Remove.
9800         (warn_strict_overflow): Remove.
9801         * c-opts.c (c_common_handle_option): -Wall only sets
9802         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
9803         (c_common_post_options): Give default values to -Wstrict-aliasing
9804         and -Wstrict-overflow if they are uninitialized.
9805         * common.opt (Wstrict-aliasing): Specify Var and Init.
9806         (Wstrict-overflow): Likewise.
9807
9808 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
9809
9810         PR rtl-optimization/26854
9811         PR rtl-optimization/34400
9812         PR rtl-optimization/34884
9813         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
9814         DF_RD->gen.
9815         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
9816         (df_rd_bb_info.expanded_lr_out): Deleted
9817         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
9818         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
9819         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
9820         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
9821         Removed code to allocate, initialize or free expanded_lr_out.
9822         (df_rd_bb_local_compute_process_def): Restructured to make more
9823         understandable.
9824         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
9825         sets if the sets are being trimmed.
9826
9827 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
9828
9829         PR bootstrap/32287
9830         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
9831         (as_vers): Likewise.
9832         * configure: Regenerated.
9833
9834 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9835
9836         PR middle-end/33092
9837         * tree-pass.h (pass_build_alias): New pass.
9838         * tree-ssa-alias.c (gate_build_alias): New.
9839         (pass_build_alias): New.
9840         * passes.c (init_optimization_passes): Add pass_build_alias after
9841         pass_create_structure_vars.
9842
9843 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
9844
9845         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
9846         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
9847         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
9848         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
9849         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
9850         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
9851         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
9852         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
9853         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
9854         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
9855         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
9856         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
9857         * config/s390/s390.md (FP_ALL): New mode iterator.
9858         (_d): New mode attribute.
9859         ("*signbit<mode>2>"): Changed mode of first operand.
9860         ("isinf<mode>2"): Changed mode of first operand.
9861         ("*TDC_insn"): Adaptation for DFP modes.
9862
9863 2008-01-22  Ben Elliston  <bje@au.ibm.com>
9864
9865         * tree.c (check_qualified_type): Improve function description.
9866
9867 2008-01-21  Jason Merrill  <jason@redhat.com>
9868
9869         PR c++/34196
9870         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
9871         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
9872         if it is set.
9873
9874 2008-01-21  DJ Delorie  <dj@redhat.com>
9875
9876         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
9877         return zero.
9878
9879 2008-01-21  Richard Guenther  <rguenther@suse.de>
9880
9881         PR middle-end/34856
9882         * tree-cfg.c (verify_expr): Allow all invariant expressions
9883         instead of just constant class ones as reference argument.
9884         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
9885         like any other constant.
9886         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9887
9888 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
9889
9890         * regmove.c (fixup_match_1): Update call crossed frequencies.
9891
9892 2008-01-21  Richard Guenther  <rguenther@suse.de>
9893
9894         PR c/34885
9895         * tree-inline.c (setup_one_parameter): Deal with mismatched
9896         types using a VIEW_CONVERT_EXPR.
9897
9898 2008-01-21  Alon Dayan  <alond@il.ibm.com>
9899             Olga Golovanevsky  <olga@il.ibm.com>
9900         
9901         PR tree-optimization/34701
9902         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
9903         when the structure size is not a power of 2.
9904
9905 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
9906
9907         * doc/install.texi: Add doc for --enable-checking=df.
9908         
9909 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9910
9911         PR rtl-optimization/34808
9912         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
9913
9914 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
9915
9916         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
9917         input.
9918
9919 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
9920
9921         PR rtl-optimization/26854
9922         PR rtl-optimization/34400
9923         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
9924         DF_RD->gen.
9925         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
9926         (df_rd_bb_info.expanded_lr_out): New.
9927         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
9928         * loop_iv.c (iv_analysis_loop_init): Ditto.
9929         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
9930         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
9931         Added code to allocate, initialize or free expanded_lr_out.
9932         (df_rd_bb_local_compute_process_def): Restructured to make
9933         more understandable.
9934         (df_rd_confluence_n): Add code to do nothing with fake edges and
9935         code to no apply invalidate_by_call sets if the sets are being trimmed.
9936         (df_lr_local_finalize): Renamed to df_lr_finalize.
9937         (df_live_local_finalize): Renamed to df_live_finalize.
9938
9939 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
9940
9941         PR target/34831
9942         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
9943         deciding whether to use reciprocal instructions.
9944
9945 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
9946
9947         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
9948         dwarf2out_note_section_used if cold_text_section is NULL.
9949
9950 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
9951
9952         PR gcov-profile/34610
9953         * tree-cfg.c (make_edges): Mark both outgoing edges from
9954         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
9955         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
9956         from OMP_FOR and OMP_CONTINUE outgoing edges.
9957
9958         * tree-profile.c (tree_profiling): Return early if
9959         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
9960         at the end.
9961         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
9962         from cfun to child_cfun.
9963         * function.h (struct function): Add after_tree_profile bit.
9964
9965 2008-01-19 Anatoly Sokolov <aesok@post.ru>
9966
9967         * config/avr/avr.S (_exit): Disable interrupt.
9968
9969 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
9970             Steven Bosscher  <stevenb.gcc@gmail.com>
9971
9972         PR rtl-optimization/26854
9973         PR rtl-optimization/34400
9974         * df-problems.c (df_live_scratch): New scratch bitmap.
9975         (df_live_alloc): Allocate df_live_scratch when doing df_live.
9976         (df_live_reset): Clear the proper bitmaps.
9977         (df_live_bb_local_compute): Only process the artificial defs once
9978         since the order is not important.
9979         (df_live_init): Init the df_live sets only with the variables
9980         found live by df_lr.
9981         (df_live_transfer_function): Use the df_lr sets to prune the
9982         df_live sets as they are being computed.  
9983         (df_live_free): Free df_live_scratch.
9984
9985 2008-01-18  Ian Lance Taylor  <iant@google.com>
9986
9987         * common.opt: Add fmerge-debug-strings.
9988         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
9989         flag_merge_debug_strings rather than flag_merge_constants.
9990         * doc/invoke.texi (Option Summary): Mention
9991         -fmerge-debug-strings.
9992         (Debugging Options): Document -fmerge-debug-strings.
9993
9994 2008-01-18  Ian Lance Taylor  <iant@google.com>
9995
9996         PR c++/33407
9997         * tree.h (DECL_IS_OPERATOR_NEW): Define.
9998         (struct tree_function_decl): Add new field operator_new_flag.
9999         * tree-inline.c (expand_call_inline): When inlining a call to
10000         operator new, force the return value to go into a variable, and
10001         set DECL_NO_TBAA_P on that variable.
10002         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
10003
10004 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
10005
10006         PR debug/34484
10007         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
10008         DWARF2_DEBUGGING_INFO.
10009         (dwarf2out_note_section_used): Ditto.  Add prototype.
10010         (have_multiple_function_sections, text_section_used,
10011         cold_text_section_used, *cold_text_sections): Move declarations
10012         before their uses.
10013
10014 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
10015
10016         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
10017         field and add signal_ra.
10018         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
10019         assignments to frame state pc.  Move end of stack check after
10020         MD_FALLBACK_FRAME_STATE_FOR.
10021         (uw_update_context_1): Use frame state signal_regs if set, instead
10022         of checking signal_frame flag.
10023         (uw_update_context): Use frame state signal_ra if set.
10024         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
10025         * config/xtensa/linux-unwind.h: New file.
10026
10027 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
10028
10029         * modulo-sched.c (get_sched_window): Fix comment typo.
10030
10031 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
10032
10033         PR tree-optimization/34648
10034         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
10035
10036 2008-01-17  Anatoly Sokolov <aesok@post.ru>
10037
10038         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
10039         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
10040
10041 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
10042
10043         PR rtl-optimization/34400
10044         * df-core.c (df_worklist_dataflow_overeager,
10045         df_worklist_dataflow_doublequeue): New functions.
10046         (df_worklist_dataflow): Two different worklist solvers.
10047         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
10048         New param.
10049
10050 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10051
10052         PR testsuite/34821
10053         * doc/invoke.texi: Document the dependence on pthread for fopenmp
10054         and ftree-parallelize-loops.
10055
10056 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
10057
10058         PR rtl-optimization/34826
10059         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
10060
10061 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
10062
10063         * global.c (find_reg): Mark the eh regs as used if necessary.
10064         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
10065         * ra.h (struct allocno): no_eh_reg field added.  Changed
10066         no_stack_reg type to bitfield.
10067
10068 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10069
10070         * tree.c (substitute_in_expr): Add missing 'break'.
10071
10072 2008-01-17  Richard Guenther  <rguenther@suse.de>
10073
10074         PR tree-optimization/34825
10075         * tree-ssa-math-opts.c (is_division_by): Do not recognize
10076         x / x as division to handle.
10077
10078 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10079
10080         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
10081         "-pthread" is specified.
10082         * pa-hpux11.h (LIB_SPEC): Likewise.
10083
10084 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
10085             Peter Bergner  <bergner@vnet.ibm.com>
10086
10087         PR rtl-optimization/33796
10088         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
10089
10090 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10091
10092         PR libgfortran/34699
10093         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
10094         static links.
10095         * pa-hpux10.h (LINK_SPEC): Likewise.
10096         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
10097
10098 2008-01-16  Richard Guenther  <rguenther@suse.de>
10099
10100         PR middle-end/32628
10101         * fold-const.c (fold_convert_const_int_from_int): Do not
10102         set overflow if that occured only because of a sign extension
10103         change when converting from/to a sizetype with the same
10104         precision and signedness.
10105
10106 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
10107
10108         PR debug/34249
10109         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
10110         location address to the correct place.  Update copyright year.
10111
10112 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10113
10114         * lambda-code.c (lambda_transform_legal_p): Handle the case of
10115         no dependences in the dependence_relations vector.
10116
10117 2008-01-16  Jan Hubicka  <jh@suse.cz>
10118
10119         PR rtl-optimization/31396
10120         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
10121         * cfg.c (dump_reg_info): Print it.
10122         * regs.h (struct reg_info_t): add freq_calls_crossed.
10123         (REG_FREQ_CALLS_CROSSED): New macro.
10124         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
10125         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
10126         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
10127         regmove_optimize): Update call crossed frequencies.
10128         * local-alloc.c (struct qty): Add freq_calls_crossed.
10129         (alloc_qty): Copute freq_calls_crossed.
10130         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
10131         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
10132         * ra.h (struct allocno): Add freq_calls_crossed.
10133
10134 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10135
10136         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
10137         libgomp when compiling with ftree-parallelize-loops.
10138         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
10139
10140 2008-01-16  Richard Guenther  <rguenther@suse.de>
10141
10142         PR tree-optimization/34769
10143         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
10144         * tree.c (int_cst_value): Instead make this function more
10145         permissive in what it accepts as valid input.  Document this
10146         function always sign-extends the value.
10147
10148 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
10149             Richard Guenther  <rguenther@suse.de>
10150
10151         PR c/34668
10152         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
10153         (gimple_fold_indirect_ref_rhs): ... this.
10154         (gimple_fold_indirect_ref): New function with foldings
10155         that preserve lvalueness.
10156         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
10157         * tree-flow.h (gimple_fold_indirect_ref): Declare.
10158         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
10159         to fold an INDIRECT_REF, fall back to the old use of
10160         fold_indirect_ref_1.
10161
10162 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10163
10164         * tree-data-ref.c (subscript_dependence_tester_1): Call 
10165         free_conflict_function.
10166         (compute_self_dependence): Same.
10167
10168 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
10169
10170         PR debug/34249
10171         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
10172         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
10173         function global.
10174         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
10175         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
10176         for DWARF2_UNWIND_INFO targets.
10177
10178 2008-01-16  Richard Guenther  <rguenther@suse.de>
10179
10180         PR c/34768
10181         * c-typeck.c (common_pointer_type): Do not merge inconsistent
10182         type qualifiers for function types.
10183
10184 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
10185
10186         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
10187         loop_iterator li from previous commit.
10188
10189 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
10190
10191         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
10192
10193 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
10194
10195         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
10196         (parallelize_loops): Don't parallelize irreducible components.
10197
10198 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10199
10200         PR c++/24924
10201         * c-opts (c_common_post_options): Do not enable CPP
10202         flag_pedantic_errors by default.
10203         
10204 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
10205
10206         PR rtl-optimization/31944
10207         * cse.c (remove_pseudo_from_table): New function.
10208         (merge_equiv_classes): Use above function to remove pseudo-registers.
10209         (invalidate): Likewise.
10210
10211 2008-01-13  Richard Guenther  <rguenther@suse.de>
10212
10213         PR middle-end/34601
10214         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
10215         instead of TYPE_MODE to deal with calls from expand_one_error_var.
10216
10217 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
10218
10219         * gcse.c (cprop_jump): Call validate_unshare_change instead of
10220         validate_change to unshare the source of the PC set.
10221
10222 2008-01-12  Jan Hubicka  <jh@suse.cz>
10223
10224         PR middle-end/32135
10225         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
10226         references above array bounds.  This might trigger bounds checks for
10227         pointers to arrays.
10228
10229 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
10230
10231         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
10232         new_replaceable_dependencies.
10233
10234 2008-01-12  Doug Kwan  <dougkwan@google.com>
10235
10236         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
10237         instead of OPT_Wreturn_type in warning due to ignored return type
10238         qualifiers.
10239         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
10240         options included in -Wextra.
10241         * c.opt: New option -Wignored_qualifiers.
10242         * doc/invoke.texi (Warning Options, -Wextra): Add new option
10243         -Wignore_qualifiers.
10244         (-Wignored-qualifiers): Document.
10245         (-Wreturn-type): Remove description of functionality now handled
10246         by -Wignored-qualifiers.
10247
10248 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
10249
10250         PR ada/33788
10251         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
10252         NOP_EXPR if it is between integral types with the same precision.
10253
10254 2008-01-12  Jan Hubicka  <jh@suse.cz>
10255
10256         PR other/28023
10257         * invoke.texi (max-inline-recursive-depth): Fix default value.
10258
10259 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
10260
10261         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
10262         correct type.
10263
10264 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
10265         
10266         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
10267         
10268 2008-01-11  James E. Wilson  <wilson@specifix.com>
10269
10270         PR target/26015
10271         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
10272
10273 2008-01-11  Anatoly Sokolov <aesok@post.ru>
10274
10275         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
10276         save/restore frame pointer register and don't use 'call-prologues' 
10277         optimization in function with "OS_task" attribute.
10278
10279 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
10280
10281         PR middle-end/31309
10282         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
10283         when copying to memory.
10284
10285 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
10286
10287         PR rtl-optimization/30905
10288         * cfgcleanup.c: Include dce.h
10289         (crossjumps_occured): New global variable.
10290         (try_crossjump_bb): Exit loop after finding a fallthru edge.
10291         If something changed, set crossjumps_occured to true.
10292         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
10293         Don't add/remove fake edges to exit here...
10294         (cleanup_cfg): ...but do it here, when crossjumping.
10295         Run a fast DCE when successful crossjumps occured in the latest
10296         iteration of try_optimize_cfg.
10297
10298 2008-01-11  Richard Guenther  <rguenther@suse.de>
10299
10300         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
10301         (struct vn_unary_op_s): Likewise.
10302         (vn_reference_insert): Free old reference on hash collision.
10303
10304 2008-01-10  Raksit Ashok  <raksit@google.com>
10305
10306         PR rtl-optimization/27971
10307         * combine.c (find_split_point): Split PLUS expressions which are
10308         inside a MEM rtx, and whose first operand is complex.
10309
10310 2008-01-10  DJ Delorie  <dj@redhat.com>
10311
10312         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
10313         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
10314         (m32c_hard_regno_ok): Call the underlying function.
10315
10316 2008-01-10  Richard Guenther  <rguenther@suse.de>
10317
10318         PR middle-end/34683
10319         * tree-cfg.c (tree_merge_blocks): Do not go through the
10320         full-blown folding and stmt updating path if we just deal
10321         with virtual operands.
10322         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
10323         test for abnormal SSA_NAMEs.
10324
10325 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
10326
10327         PR middle-end/34641
10328         * reload.c (push_reload): Add assertions.  All constants from
10329         reg_equiv_constant should have been used for replacing the respective
10330         pseudo earlier.
10331         (find_reloads_address): Invoke find_reloads_address_part for
10332         constant taken from the reg_equiv_constant array.
10333
10334 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
10335
10336         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
10337         field (valnum) the first in the struct.  Replace bools with
10338         unit bit fields.
10339
10340 2008-01-10  Richard Guenther  <rguenther@suse.de>
10341
10342         PR tree-optimization/34651
10343         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
10344         types and ordering for masking and converting.
10345
10346 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
10347
10348         PR tree-optimization/34017
10349         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
10350         also for PHI_NODE expressions.
10351
10352 2008-01-09  Jan Hubicka  <jh@suse.cz>
10353
10354         PR tree-optimization/34708
10355         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
10356         based on number of case labels.
10357         (init_inline_once): Remove switch_cost.
10358         * tree-inline.h (eni_weights_d): Remove switch_cost.
10359
10360 2008-01-09  Richard Guenther  <rguenther@suse.de>
10361         Andrew Pinski  <andrew_pinski@playstation.sony.com>
10362
10363         PR middle-end/30132
10364         * gimplify.c (gimplify_cond_expr): Do not create an addressable
10365         temporary if an rvalue is ok or an lvalue is not required.
10366
10367 2008-01-09  Richard Guenther  <rguenther@suse.de>
10368
10369         PR middle-end/34458
10370         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
10371         adjust return type.
10372
10373 2008-01-09  Richard Guenther  <rguenther@suse.de>
10374
10375         PR middle-end/34679
10376         * tree.c (host_integerp): Check for sizetype only if the
10377         type is an integer type.
10378
10379 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
10380
10381         PR debug/26364
10382         * opts.c (decode_options): Disable inlining of functions called
10383         once if not in unit-at-a-time mode.
10384
10385 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
10386
10387         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
10388
10389 2008-01-08  Richard Guenther  <rguenther@suse.de>
10390
10391         PR middle-end/31863
10392         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
10393         out early if the result will be unused.
10394
10395 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
10396
10397         PR target/34709
10398         Revert:
10399
10400         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
10401         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
10402         for TARGET_RECIP.       
10403         
10404 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
10405         
10406         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
10407         for vectorization tuned.
10408         
10409 2008-01-08  Richard Guenther  <rguenther@suse.de>
10410
10411         PR tree-optimization/34683
10412         * tree-ssa-operands.c (operand_build_cmp): Export.
10413         * tree-ssa-operands.h (operand_build_cmp): Declare.
10414         * tree-vn.c (vuses_compare): Remove.
10415         (sort_vuses): Use operand_build_cmp.
10416         (sort_vuses_heap): Likewise.
10417         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
10418         to re-use old VEC if available.  Do not sort already sorted VUSEs.
10419         (vdefs_to_vec): Do not sort already sorted VDEFs.
10420
10421 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
10422
10423         PR middle-end/34694
10424         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
10425
10426 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
10427
10428         PR target/34702
10429         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
10430         limitations of reciprocal sequences on x86 targets.
10431
10432 2008-01-08  Richard Guenther  <rguenther@suse.de>
10433
10434         PR tree-optimization/34683
10435         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
10436
10437 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
10438
10439         PR target/34622
10440         * config/darwin.c (darwin_mergeable_string_section): Don't use
10441         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
10442
10443 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
10444
10445         PR target/34682
10446         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
10447         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
10448         predicates of op0 and op1 to register_operand.
10449         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
10450         expander using X87MODEF mode iterator.  Change predicates of
10451         op0 and op1 to register_operand.
10452         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
10453         corresponding patterns and macroize using MODEF macro.  Change
10454         predicates of op0 and op1 to register_operand and remove
10455         "m" constraint. Disparage "r" alternative with "!".
10456         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
10457         macroize using X87MODEF macro.  Change predicates of op0 and op1
10458         to register_operand and remove "m" constraint.  Disparage "r"
10459         alternative with "!".
10460         (absneg splitter with memory operands): Remove.
10461         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
10462         patterns and macroize using X87MODEF mode iterator.
10463         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
10464         Change predicate of op1 to register_operand.
10465         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
10466         for memory operands.
10467
10468 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
10469
10470         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
10471
10472 2008-01-07  Richard Guenther  <rguenther@suse.de>
10473
10474         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
10475         fields.
10476
10477 2008-01-07  Richard Guenther  <rguenther@suse.de>
10478
10479         PR tree-optimization/34683
10480         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
10481         VOPs of the needed size to save memory.  Use VEC_quick_push
10482         to save compile-time.
10483         (vdefs_to_vec): Likewise.
10484
10485 2008-01-07  Sa Liu  <saliu@de.ibm.com>
10486
10487         * config/spu/spu.md (divdf3): Genetate inline code for double
10488         division.  The implementation doesn't handle INF or NAN, therefore it
10489         only applies when -ffinite-math-only is given.
10490
10491 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
10492
10493         PR libstdc++/34680
10494         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
10495         * doc/cpp.texi ([Common Predefined Macros]): Document.
10496
10497 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
10498
10499         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
10500         order to use commutative addition instead of subtraction.
10501
10502 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10503             Mircea Namolaru  <namolaru@il.ibm.com>
10504             Vladimir Yanovsky  <yanov@il.ibm.com>
10505             Revital Eres  <eres@il.ibm.com>
10506
10507         PR tree-optimization/34263
10508         * tree-outof-ssa.c (process_single_block_loop_latch,
10509         contains_tree_r): New functions.
10510         (analyze_edges_for_bb): Call process_single_block_loop_latch
10511         function to empty single-basic-block latch block if possible.
10512
10513 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
10514
10515         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
10516         for TARGET_RECIP.
10517         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
10518
10519 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
10520
10521         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
10522
10523 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
10524
10525         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
10526
10527 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
10528
10529         PR tree-optimization/34618
10530         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
10531         flag from T.
10532
10533 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
10534
10535         PR target/34673
10536         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
10537         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
10538         Update copyright year.
10539
10540         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
10541         Update copyright year.
10542         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
10543         using NR fixup.
10544
10545 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
10546
10547         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
10548         edge does not point to current bb before changing need_assert.
10549
10550 2008-01-04  Richard Guenther  <rguenther@suse.de>
10551
10552         PR middle-end/34029
10553         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
10554         for verifying purposes if they are is_gimple_min_invariant.
10555
10556 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
10557
10558         PR tree-optimization/34448
10559         PR tree-optimization/34465
10560         * gimplify.c (gimplify_init_constructor): Add new parameter
10561         notify_temp_creation.  Use it.
10562         (gimplify_modify_expr_rhs): Take volatiles into account when
10563         optimizing constructors.
10564         Do not optimize constructors if gimplify_init_constructor will dump to
10565         memory.
10566         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
10567         * gcc.c-torture/compile/pr34448.c: New.
10568
10569 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
10570
10571         PR gcov-profile/34609
10572         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
10573         return_slot if result is TREE_ADDRESSABLE.
10574
10575 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
10576
10577         * config/mips/mips.md (sqrt_condition): Tweak comment.
10578         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
10579
10580 2008-01-03  Tom Tromey  <tromey@redhat.com>
10581
10582         PR c/34457
10583         * c-common.c (c_type_hash): Handle VLAs.
10584
10585 2008-01-03  Jan Hubicka  <jh@suse.cz>
10586
10587         PR tree-optimization/31081
10588         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
10589         0 when inlining and not inlining to first basic block.
10590         (remap_decl): When var is initialized to 0, don't set default_def.
10591         (expand_call_inline): Set entry_bb.
10592         * tree-inline.h (copy_body_data): Add entry_bb.
10593
10594 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
10595
10596         PR c++/34619
10597         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
10598         before returning.
10599
10600         PR tree-optimization/29484
10601         * tree-inline.c (inline_forbidden_p_2): New function.
10602         (inline_forbidden_p): Disallow inlining if some static var
10603         has an address of a local LABEL_DECL in its initializer.
10604         * doc/extend.texi (Labels as Values): Document &&foo behaviour
10605         vs. inlining.
10606
10607 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
10608
10609         PR tree-optimization/34635
10610         * tree-data-ref.c (add_other_self_distances): Make sure that the
10611         evolution step is constant.
10612
10613 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
10614
10615         PR middle-end/34608
10616         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
10617
10618 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
10619
10620         * tree-sra.c (scalarize_init): Insert the generate_element_init
10621         statements after the generate_element_zero statements.
10622
10623 2008-01-02  Richard Guenther  <rguenther@suse.de>
10624
10625         PR middle-end/34093
10626         PR middle-end/31976
10627         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
10628         for very large number of operands instead of ICEing.
10629
10630 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
10631
10632         PR target/34013
10633         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
10634         while stack probing.
10635
10636 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
10637
10638         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
10639         in C++0x mode.
10640
10641 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
10642
10643         PR libmudflap/26442
10644         * tree-mudflap.c (mx_register_decls): Guard warning by
10645         !DECL_ARTIFICIAL check.
10646
10647 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
10648
10649         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
10650         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
10651         sse5_perm<mode>): Fix constraints.