OSDN Git Service

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