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