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