OSDN Git Service

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