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