1 2008-05-18 Uros Bizjak <ubizjak@gmail.com>
3 * config/i386/i386.c (ix86_secondary_reload): New static function.
4 (TARGET_SECONDARY_RELOAD): New define.
5 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6 * config/i386/i386.md (reload_outqi): Remove.
8 2008-05-18 Xinliang David Li <davidxl@google.com>
10 * gcc/tree-ssa-dce.c: Coding style fix.
11 (check_pow): Documentation comment.
12 (check_log): Documenation comment. Coding style fix.
13 (is_unnecessary_except_errno_call): Ditto.
14 (gen_conditions_for_pow): Ditto.
15 (gen_conditions_for_log): Ditto.
16 (gen_shrink_wrap_conditions): Ditto.
17 (shrink_wrap_one_built_in_calls): Ditto.
18 * gcc/doc/invoke.texi: Better documentation string.
19 * ChangeLog: Fix wrong change log entries from
20 May 17 checkin on function call DCE.
22 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
24 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
26 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
28 * tree-inline.c (setup_one_parameter): Remove dead code.
30 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
32 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
33 a BIT_AND_EXPR only for an INTEGER_TYPE.
35 2008-05-17 Xinliang David Li <davidxl@google.com>
37 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
38 (check_pow, check_log, is_unnecessary_except_errno_call): New
39 functions to check for eliminating math functions that are pure
40 except for setting errno.
41 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
42 general condition expressions for shrink-wrapping pow/log calls.
43 (gen_shrink_wrap_conditions): Ditto.
44 (shrink_wrap_one_built_in_call): Ditto.
45 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
46 (mark_operand_necessary): If debugging, output if OP is necessary.
47 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
49 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
51 * gcc/common.opt: New user flag -ftree-builtin-dce.
52 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
54 2008-05-16 David S. Miller <davem@davemloft.net>
56 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
57 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
59 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
62 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
64 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
66 * ifcvt.c (dead_or_predicable): Rename
67 df_simulate_one_insn_backwards to df_simulate_one_insn.
68 * recog.c (peephole2_optimize): Ditto.
69 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq): Ditto.
70 * df.h: Rename df_simulate_one_insn_backwards to
71 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
72 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
73 scanning of defs and uses.
74 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
75 (df_simulate_one_insn_forwards): Removed.
77 2008-05-16 Doug Kwan <dougkwan@google.com>
79 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
81 (real_from_string): Handle NaNs and Inf as approriate.
83 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
85 * doc/gty.texi (Source Files Containing Type Information): Note
86 that headers should appear first in the gtfiles list.
88 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
90 * tree.def (COND_EXEC): Properly documented this code.
92 2008-05-16 Diego Novillo <dnovillo@google.com>
94 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
95 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
98 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
100 * tree-ssa-dse (max_stmt_uid): Removed.
101 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
102 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
103 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
104 * function.h (cfun.last_stmt_uid): New field.
105 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
106 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
108 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
109 (create_stmt_ann): Initialize the ann->uid field.
110 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
112 * tree-flow.h (renumber_gimple_stmt_uids): New function.
114 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
116 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
117 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
118 (init_empty_tree_cfg): Call it.
120 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
122 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
125 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
127 * doc/invoke.text (-fdump-tree-*-verbose): New option.
128 * tree-dump.c (dump_options): New verbose option.
129 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
131 * tree-pass.h (TDF_VERBOSE): New dump flag.
132 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
133 (tree-flow.h): Added include.
134 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
136 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
138 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
140 From Jie Zhang <jie.zhang@analog.com>
141 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
142 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
143 mcpu=bf561-none and mcpu=bf561-0.2.
144 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
145 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
146 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
147 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
148 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
149 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
150 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
152 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
153 (cputype_selected): Remove.
154 (bfin_handle_option): Don't use cputype_selected.
155 (override_options): When no mcpu option, enable all workarounds.
156 Don't use bfin_workarounds.
157 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
159 (DEFAULT_CPU_TYPE): Don't define.
161 2008-05-16 Richard Guenther <rguenther@suse.de>
163 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
164 on deletion of the last stmt.
166 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
168 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
169 V8HImode for SSE2 and V16QImode for SSE4.1.
171 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
173 * cgraph.h (compute_inline_parameters): Made public.
174 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
175 variable_generate_summary, function_write_summary,
176 variable_write_summary, variable_read_summary. Added generate_summary,
177 write_summary, read_summary.
178 * cgraphunit.c (cgraph_process_new_functions): Changed call from
179 pass_ipa_inline.function_generate_summary, to
180 compute_inline_parameters.
181 * ipa-inline.c (compute_inline_parameters): Made public and added
183 (compute_inline_parameters_for_current): New function.
184 (pass_inline_param): Now calls compute_inline_parameters_for_current.
185 (inline_generate_summary): Removed parameter and made to loop over
187 (pass_ipa_inline): Updated for new IPA_PASS structure.
188 * passes.c (execute_ipa_summary_passes): Now is called once per
189 pass rather than once per node*pass.
191 2008-05-15 Anatoly Sokolov <aesok@post.ru>
193 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
194 avr_have_mul_p, avr_asm_only_p): Remove variables.
195 (avr_override_options): Remove initialization of removed variables.
196 (avr_file_start): Convert removed variables to fields of
197 'struct base_arch_s *avr_current_arch'.
198 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
199 (AVR_HAVE_MUL): (Ditto.).
200 (AVR_HAVE_MOVW): (Ditto.).
201 (AVR_HAVE_LPMX): (Ditto.).
202 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
203 avr_asm_only_p): Remove declaration.
205 2008-05-15 Diego Novillo <dnovillo@google.com>
207 * config/arm/arm.c (arm_return_in_memory): Fix return type.
208 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
210 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
213 * combine.c (check_conversion): Rename back to check_promoted_subreg.
214 Don't call record_truncated_value from here.
215 (record_truncated_value): Turn it into a for_each_rtx callback.
216 (record_truncated_values): New function.
217 (combine_instructions): Call note_uses with record_truncated_values.
218 Change name of check_conversion to check_promoted_subreg.
220 2008-05-15 Janis Johnson <janis187@us.ibm.com>
222 * doc/sourcebuild.texi: Document support for torture tests.
224 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
226 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
227 to alternative 4 of operand 2.
229 2008-05-15 Richard Guenther <rguenther@suse.de>
231 * tree-pass.h (current_pass): Declare.
232 (get_pass_for_id): Likewise.
233 * passes.c (passes_by_id, passes_by_id_size): New globals.
234 (set_pass_for_id): New function.
235 (get_pass_for_id): Likewise.
236 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
237 (execute_function_todo): Flush per function statistics.
238 * toplev.c (compile_file): Init statistics.
239 (general_init): Do early statistics initialization.
240 (finalize): Finish statistics.
241 * statistics.h (statistics_early_init): Declare.
242 (statistics_init): Likewise.
243 (statistics_fini): Likewise.
244 (statistics_fini_pass): Likewise.
245 (statistics_counter_event): Likewise.
246 (statistics_histogram_event): Likewise.
247 * statistics.c: New file.
248 * Makefile.in (OBJS-common): Add statistics.o.
249 (statistics.o): Add dependencies.
250 * doc/invoke.texi (-fdump-statistics): Document.
252 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
254 (execute_pre): Use statistics_counter_event.
255 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
256 (substitute_and_fold): Increment it. Use statistics_counter_event.
258 2008-05-15 Diego Novillo <dnovillo@google.com>
260 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
262 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
263 * tree-ssa-alias.c (new_type_alias): Remove references to
264 sub-variables from comment.
265 * tree-ssa-operands.c (swap_tree_operands): Likewise.
267 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
269 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
270 attribute to 1 only for insertps alternative.
272 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
274 * config/bfin/bfin.md (loadbytes): New pattern.
275 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
276 (bfin_init_builtins): Initialize it.
277 (bdesc_1arg): Add it.
279 2008-05-15 Sa Liu <saliu@de.ibm.com>
281 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
282 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
283 * testsuite/lib/target-supports.exp: Add
284 check_effective_target_fortran_integer_16.
286 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
288 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
289 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
290 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
291 (TARGET_RETURN_IN_MEMORY): Define.
293 2008-05-15 Richard Guenther <rguenther@suse.de>
296 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
297 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
298 represent unmodifiable vars.
300 2008-05-15 Richard Guenther <rguenther@suse.de>
302 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
303 INDIRECT_REF and TARGET_MEM_REF.
304 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
307 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
308 H.J. Lu <hongjiu.lu@intel.com>
310 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
311 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
312 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
313 insn alternatives. Add missing alternatives.
314 (*vec_concatv2di_rex64_sse4_1): Likewise.
315 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
316 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
319 2008-05-15 Richard Guenther <rguenther@suse.de>
321 PR tree-optimization/36009
322 PR tree-optimization/36204
323 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
324 (determine_invariantness_stmt): Record the loop a store is
326 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
329 2008-05-15 Richard Guenther <rguenther@suse.de>
331 PR tree-optimization/34330
332 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
333 through the pointer will alias the SMT.
335 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
337 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
339 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
341 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
343 2008-05-14 Michael Meissner <michael.meissner@amd.com>
344 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
346 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
347 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
348 (vashl_optab): New optab for vector/vector shifts.
349 (vashr_optab): Ditto.
350 (vlshr_optab): Ditto.
351 (vrotl_optab): Ditto.
352 (vrotr_optab): Ditto.
353 (optab_subtype): New enum for optab_for_tree_code call.
354 (optab_for_tree_code): Add enum optab_subtype argument.
356 * optabs.c (optab_for_tree_code): Take an additional argument to
357 distinguish between a vector shift by a scalar and vector shift by
358 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
359 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
360 vector shift by a vector.
361 (expand_widen_pattern_expr): Pass additional argument to
364 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
365 vrotl_optab, vrotr_optab.
367 * expr.c (expand_expr_real_1): Update calls to
368 optab_for_tree_code to distinguish between vector shifted by a
369 scalar and vector shifted by a vector.
370 * tree-vectorizer.c (supportable_widening_operation): Ditto.
371 (supportable_narrowing_operation): Ditto.
372 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
373 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
374 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
375 (vect_create_epilog_for_reduction): Ditto.
376 (vectorizable_reduction): Ditto.
377 (vectorizable_operation): Ditto.
378 (vect_strided_store_supported): Ditto.
379 (vect_strided_load_supported): Ditto.
380 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
381 * expmed.c (expand_shift): Ditto.
383 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
385 (ashr@var{m}3): Ditto.
386 (vashl@var{m}3): Document new vector/vector shift standard name.
387 (vashr@var{m}3): Ditto.
388 (vlshr@var{m}3): Ditto.
389 (vrotl@var{m}3): Ditto.
390 (vrotr@var{m}3): Ditto.
392 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
393 (PPERM_INVERT): Ditto.
394 (PPERM_REVERSE): Ditto.
395 (PPERM_REV_INV): Ditto.
399 (PPERM_INV_SIGN): Ditto.
403 * config/i386/sse.md (mulv2di3): Add SSE5 support.
404 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
405 allows a memory operand to be the value being added, and split it
406 to improve vectorization.
407 (sse5_pmacsdqh_mem): Ditto.
408 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
409 (sse5_mulv2div2di3_high): Ditto.
410 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
411 (vec_pack_trunc_v4si): Ditto.
412 (vec_pack_trunc_v2di): Ditto.
413 (sse5_pcmov_<mode>): Remove code that tried to use use
414 andps/andnps instead of pcmov.
415 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
416 pmacsdqh instructions.
417 (vec_widen_smult_lo_v4si): Ditto.
419 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
420 (PPERM_INVERT): Ditto.
421 (PPERM_REVERSE): Ditto.
422 (PPERM_REV_INV): Ditto.
426 (PPERM_INV_SIGN): Ditto.
429 (ix86_expand_sse_movcc): Move the SSE5 test after the if
431 (ix86_expand_int_vcond): If SSE5 generate all possible integer
433 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
434 says ignore whether the last reference is a memory operand.
436 2008-05-14 Michael Meissner <michael.meissner@amd.com>
437 Paolo Bonzini <bonzini at gnu dot org>
439 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
442 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
443 (vlshr<mode>3): Rename from vlshr<mode>3.
444 (vashr<mode>3): Rename from vashr<mode>3.
445 (mulv4sf3): Change the names of vector shift patterns.
449 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
452 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
477 * config/spu/spu.md (v): New iterator macro to add v for vector types.
478 (floatunssidf2_internal): Change vector/vector shift names.
479 (floatunsdidf2_internal): Ditto.
486 (vashl<mode>3): Rename from ashl<mode>3.
487 (vashr<mode>3): Rename from ashr<mode>3.
488 (vlshr<mode>3): Rename from lshr<mode>3.
489 (vrotl<mode>3): Rename from rotl<mode>3.
491 2008-05-14 Michael Meissner <michael.meissner@amd.com>
494 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
495 multiply gives the wrong value when doing widening multiplies.
496 (vec_widen_smult_lo_v4si): Ditto.
498 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
500 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
501 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
502 emit_library_call_value.
503 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
504 * tree.h (ECF_LIBCALL_BLOCK): Removed.
505 * calls.c (initialize_argument_information, precompute_arguments,
506 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
507 (precompute_arguments): Removed flags parameter.
508 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
510 2008-05-14 Richard Guenther <rguenther@suse.de>
512 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
513 Make sure to register the store if the use is a PHI_NODE.
515 2008-05-14 Olivier Hainque <hainque@adacore.com>
517 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
518 memory if the component is to be referenced in BLKmode according
519 to get_inner_reference.
521 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
523 * calls.c (emit_library_call_value_1): Restore code clearing
524 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
526 2008-05-14 Olivier Hainque <hainque@adacore.com>
527 Nicolas Roche <roche@adacore.com>
529 * configure.ac: Add support for a "gcc_subdir" variable in
530 config-lang.in, to denote a subdirectory where the language/GCC
531 integration files are to be found.
532 * configure: Regenerate.
534 2008-05-14 Ira Rosen <irar@il.ibm.com>
536 PR tree-optimization/36098
537 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
538 value for the first load in the group in case of a gap.
539 (vect_build_slp_tree): Check that there are no gaps in loads.
541 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
543 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
544 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
545 expand_copysign_bit, ): Change call to emit_no_conflict_block to
546 emit_insn and remove unneeded code to construct extra args.
547 (emit_no_conflict_block): Removed.
548 * optabls.h: (emit_no_conflict_block): Removed.
549 * cse.c (cse_extended_basic_block): Remove search for
550 REG_NO_CONFLICT note.
551 * global.c: Removed incorrect comment added in revision 117.
552 * expr.c (convert_move): Change call to emit_no_conflict_block to
554 * recog.c: Change comments so that they do not mention
556 * local_alloc.c (combine_regs): Removed last parameter.
557 (no_conflict_p): Removed.
558 (block_alloc): Removed note, no_conflict_combined_regno and set
559 local vars. Removed all code to process REG_NO_CONFLICT blocks.
560 (combine_regs): Removed already_dead and code to look for
561 REG_NO_CONFLICT notes.
562 * lower_subreg (remove_retval_note): Removed code to look for
563 REG_NO_CONFLICT block.
564 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
565 (resolve_clobber): Remove code to process libcalls that have
566 REG_NO_CONFLICT notes.
567 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
569 * combine.c (can_combine_p, distribute_notes): Removed
570 REG_NO_CONFLICT case.
571 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
573 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
574 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
576 * reg-notes.def (NO_CONFLICT): Removed.
578 2008-05-14 David S. Miller <davem@davemloft.net>
580 * config/sparc/sparc.c (sparc_profile_hook): If
581 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
582 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
583 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
585 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
587 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
589 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
592 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
593 and op1 expansion before vector concat to have less live pseudos.
595 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
597 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
598 ix86_expand_vector_set if supported.
600 2008-05-13 Diego Novillo <dnovillo@google.com>
601 Kenneth Zadeck <zadeck@naturalbridge.com>
603 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
605 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
606 phinodes_print_statistics, init_ssanames, fini_ssanames,
607 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
608 release_ssa_name, release_defs, replace_ssa_name_symbol,
609 ssanames_print_statistics): Move ...
610 * tree-flow.h: ... here.
611 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
612 Use FN instead of cfun.
613 (make_ssa_name_fn): Rename from make_ssa_name.
614 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
615 * tree-flow-inline.h (make_ssa_name): Move from
616 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
617 * omp-low.c (expand_omp_parallel):
618 * tree-flow-inline.h (redirect_edge_var_map_result):
619 * tree-ssa.c (init_tree_ssa): Add argument FN.
620 Use it instead of cfun. Update all users.
622 2008-05-13 Tom Tromey <tromey@redhat.com>
624 PR preprocessor/22168:
625 * doc/cpp.texi (Top): Update menu.
626 (Alternatives to Wrapper #ifndef): New node.
627 (Other Directives): Document deprecation.
628 (Obsolete Features): Remove menu.
629 (Assertions): Merge node into Obsolete Features.
630 (Obsolete once-only headers): Move earlier; rename to Alternatives
632 * doc/cppopts.texi: Update.
633 * c.opt (Wdeprecated): Enable for C and ObjC.
634 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
635 (C++ Dialect Options): Move -Wno-deprecated from here to...
636 (Warning Options): ... here.
638 2008-05-13 Richard Guenther <rguenther@suse.de>
641 * fold-const.c (fold_sign_changed_comparison): Do not allow
642 changes in pointer-ness.
644 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
647 * config/sh/sh.c (sh_expand_prologue): Don't clear
648 RTX_FRAME_RELATED_P for push insns.
650 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
652 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
654 2008-05-12 Anatoly Sokolov <aesok@post.ru>
656 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
657 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
658 Use 'machine->is_leaf' instead of 'leaf_func_p'.
660 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
662 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
663 (*vec_concatv4sf_sse): This.
664 (*sse2_concatv2si): Renamed to ...
665 (*vec_concatv2si_sse2): This.
666 (*sse1_concatv2si): Renamed to ...
667 (*vec_concatv2si_sse): This.
668 (*vec_concatv2di_rex): Renamed to ...
669 (*vec_concatv2di_rex64): This.
670 (*vec_concatv2si_sse4_1): New.
671 (*vec_concatv2di_rex64_sse4_1): Likewise.
673 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
675 PR rtl-optimization/36111
676 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
677 that was created for swappable operands.
679 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
682 * Makefile.in: Substitute GNATMAKE and GNATBIND.
683 * configure.ac: Add call to ACX_PROG_GNAT.
685 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
687 * optc-gen.awk: Fix comment typo.
689 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
691 * pretty-print.c (pp_integer_with_precision): Use
692 HOST_LONG_LONG_FORMAT.
694 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
696 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
698 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
700 * config/i386/i386.c (bdesc_ptest): Removed.
701 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
702 (bdesc_args): Add __builtin_ia32_ptestz128,
703 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
704 (ix86_init_mmx_sse_builtins): Updated.
705 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
706 (ix86_expand_builtin): Updated.
708 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
710 * tree-cfg.c (valid_fixed_convert_types_p): New function.
711 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
713 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
715 * value-prof.c (interesting_stringop_to_profile): Do not
716 return early for BUILT_IN_MEMPCPY.
718 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
720 * calls.c (expand_call): Don't use callgraph to increase
721 preferred_stack_boundary.
723 * cgraph.h (cgraph_rtl_info): Use unsigned on
724 preferred_incoming_stack_boundary.
726 * final.c (rest_of_clean_state): Use unsigned on
727 preferred_stack_boundary.
729 2008-05-09 Tom Tromey <tromey@redhat.com>
731 PR preprocessor/22231:
732 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
735 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
737 PR tree-optimization/36129
738 * tree-ssa-ccp.c: Include value-prof.h.
739 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
740 built-in function was folded to a constant.
741 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
743 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
744 Sebastian Pop <sebastian.pop@amd.com>
746 * tree-scalar-evolution.c: Document instantiate_scev.
747 (instantiate_parameters_1): Renamed instantiate_scev_1.
748 Don't use the same loop for instantiation_loop and evolution_loop.
749 (instantiate_scev): New.
750 (instantiate_parameters): Moved...
751 (resolve_mixers): Update call to instantiate_scev_1 to pass the
752 same loop twice. Maintains the semantics for this function.
753 * tree-scalar-evolution.h (instantiate_scev): Declare.
754 (instantiate_parameters): ...here. Now static inline.
755 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
756 instead of resolve_mixers.
758 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
760 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
762 2008-05-09 Tomas Bily <tbily@suse.cz>
764 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
765 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
766 * tree-ssa-structalias.c (get_constraint_for): Likewise.
767 * c-common.c (c_common_truthvalue_conversion): Likewise.
768 * tree-object-size.c (compute_object_offset): Likewise.
769 * tree-inline.c (estimate_num_insns_1): Likewise.
770 * varasm.c (const_hash_1, compare_constant, copy_constant)
771 (compute_reloc_for_constant, output_addressed_constants)
772 (initializer_constant_valid_p): Likewise.
773 * c-omp.c (check_omp_for_incr_expr): Likewise.
774 * gimplify.c (gimplify_expr): Likewise.
775 * c-typeck.c (c_finish_return): Likewise.
776 * tree-vectorizer.c (supportable_widening_operation)
777 (supportable_narrowing_operation): Likewise.
778 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
779 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
780 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
781 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
782 (descr_info_loc): Likewise.
783 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
784 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
785 (fold_unary): Likewise.
786 * builtins.c (get_pointer_alignment): Likewise.
787 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
788 (instantiate_parameters_1): Likewise.
789 * tree.c (expr_align, stabilize_reference): Likewise.
790 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
791 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
792 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
793 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
794 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
795 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
797 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
798 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
799 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
800 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
801 (forward_propagate_comparison)
802 (tree_ssa_forward_propagate_single_use_vars): Likewise.
803 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
804 * emit-rtl.c (component_ref_for_mem_expr)
805 (set_mem_attributes_minus_bitpos): Likewise.
806 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
807 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
809 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
810 (build_function_call, pointer_diff, build_compound_expr)
811 (c_finish_return): Likewise.
812 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
813 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
815 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
816 * expr.c (is_aligning_offset): Likewise.
817 * tree-ssa-alias.c (is_escape_site): Likewise.
818 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
819 (check_all_va_list_escapes): Likewise.
820 * tree-ssa-loop-ivopts.c (determine_base_object)
821 (determine_common_wider_type): Likewise.
822 * dojump.c (do_jump): Likewise.
823 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
824 * tree-gimple.c (is_gimple_cast): Likewise.
825 * fold-const.c (decode_field_reference, )
826 (fold_sign_changed_comparison, fold_unary, fold_comparison)
827 (fold_binary): Likewise.
828 * tree-ssa-alias-warnings.c (find_alias_site_helper)
829 (already_warned_in_frontend_p): Likewise.
830 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
831 * tree.c (really_constant_p, get_unwidened): Likewise.
832 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
833 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
834 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
836 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
838 (CONVERT_EXPR_P): Define.
839 (CASE_CONVERT): Define.
841 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
844 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
845 (delete_unmarked_insns): When deleting a call, call
846 delete_unreachable_blocks.
847 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
848 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
850 2008-05-08 Richard Guenther <rguenther@suse.de>
852 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
853 (-ftree-salias): Likewise.
854 (salias-max-implicit-fields): Remove param documentation.
855 (salias-max-array-elements): Likewise.
856 * tree-pass.h (pass_create_structure_vars): Remove.
857 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
858 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
859 * tree-ssa-alias.c (create_structure_vars): Remove.
860 (gate_structure_vars): Likewise.
861 (pass_create_structure_vars): Likewise.
862 (gate_build_alias): Likewise.
863 (pass_build_alias): Adjust to run always and dump the function.
864 * common.opt (ftree-salias): Hide.
865 * passes.c (init_optimization_passes): Remove
866 pass_create_structure_vars, adjust comment.
867 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
868 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
869 * opts.c (decode_options): Do not set flag_tree_salias.
870 (common_handle_option): Add OPT_ftree_salias to the backward
871 compatibility section.
873 2008-05-08 Richard Guenther <rguenther@suse.de>
875 * tree-flow-inline.h (var_can_have_subvars): Move ...
876 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
877 * tree-flow.h (var_can_have_subvars): Remove.
878 (push_fields_onto_fieldstack): Remove.
879 (sort_fieldstack): Likewise.
880 (struct fieldoff): Move ...
881 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
882 alias_set and base_for_components fields.
883 (sort_fieldstack): Make static.
884 (push_fields_onto_fieldstack): Likewise. Remove code that
885 handles anything but RECORD_TYPEs. Remove alias_set and
886 base_for_components handling.
887 (create_variable_info_for): Adjust.
889 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
891 * common.opt (Wframe-larger-than=): Shorten the help message
893 * doc/invoke.texi (Wframe-larger-than=): Add more description.
895 2008-05-08 Rafael Espindola <espindola@google.com>
897 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
899 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
900 trap and that both operands are gimple values.
901 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
902 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
905 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
907 * read-rtl.c (join_c_conditions): Return the first string if the
908 two strings are equal.
910 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
912 * gensupport.h (pred_data): Add a "num_codes" field.
913 (add_predicate_code): Declare.
914 * gensupport.c (add_predicate_code): New function.
915 (std_pred_table): Add an "allows_const_p" field.
916 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
917 Remove the (incomplete) list of such codes from the codes field.
918 (init_predicate_table): Use add_predicate_code. Add all
919 RTX_CONST_OBJs if allows_const_p is true.
920 * genrecog.c (process_define_predicate): Use add_predicate_code.
922 2008-05-08 David Daney <ddaney@avtrex.com>
923 Richard Sandiford <rsandifo@nildram.co.uk>
925 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
926 special case of constant zero operands.
927 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
928 old and new values. Special case constant zero values.
929 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
931 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
932 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
934 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
937 * simplify-rtx.c (simplify_plus_minus): Create CONST of
938 similar RTX_CONST_OBJ before CONST_INT.
940 2008-05-08 Steve Ellcey <sje@cup.hp.com>
942 * stmt.c (expand_stack_restore): Change sa mode if needed.
944 2008-05-08 Richard Guenther <rguenther@suse.de>
946 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
948 (ix86_sol10_return_in_memory): Likewise.
949 (ix86_i386elf_return_in_memory): Likewise.
950 (ix86_i386interix_return_in_memory): Likewise.
951 * config/i386/i386.c (ix86_return_in_memory): Likewise.
952 (ix86_sol10_return_in_memory): Likewise.
953 (ix86_i386elf_return_in_memory): Likewise.
954 (ix86_i386interix_return_in_memory): Likewise.
956 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
959 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
961 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
962 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
965 2008-05-08 Richard Guenther <rguenther@suse.de>
967 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
968 * tree-data-ref.h (struct dr_alias): Remove subvars field.
969 (DR_SUBVARS): Remove.
970 * tree-dfa.c (dump_subvars_for): Remove.
971 (debug_subvars_for): Likewise.
972 (dump_variable): Do not dump subvars.
973 (remove_referenced_var): Do not remove subvars.
974 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
975 (lookup_subvars_for_var): Remove.
976 (get_subvars_for_var): Likewise.
977 (get_subvars_at): Likewise.
978 (get_first_overlapping_subvar): Likewise.
979 (overlap_subvar): Likewise.
980 * tree-flow.h (subvar_t): Remove.
981 (struct var_ann_d): Remove subvars field.
982 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
983 argument. Remove special handling of SFTs.
984 (compute_tag_properties): Likewise.
985 (set_initial_properties): Likewise.
986 (compute_call_clobbered): Likewise.
987 (count_mem_refs): Likewise.
988 (compute_memory_partitions): Likewise.
989 (compute_flow_insensitive_aliasing): Likewise.
990 (setup_pointers_and_addressables): Likewise.
991 (new_type_alias): Likewise.
992 (struct used_part): Remove.
993 (used_portions): Likewise.
994 (struct used_part_map): Likewise.
995 (used_part_map_eq): Likewise.
996 (used_part_map_hash): Likewise.
997 (free_used_part_map): Likewise.
998 (up_lookup): Likewise.
999 (up_insert): Likewise.
1000 (get_or_create_used_part_for): Likewise.
1001 (create_sft): Likewise.
1002 (create_overlap_variables_for): Likewise.
1003 (find_used_portions): Likewise.
1004 (create_structure_vars): Likewise.
1005 * tree.def (STRUCT_FIELD_TAG): Remove.
1006 * tree.h (MTAG_P): Adjust.
1007 (struct tree_memory_tag): Remove base_for_components and
1008 unpartitionable flags.
1009 (struct tree_struct_field_tag): Remove.
1010 (SFT_PARENT_VAR): Likewise.
1011 (SFT_OFFSET): Likewise.
1012 (SFT_SIZE): Likewise.
1013 (SFT_NONADDRESSABLE_P): Likewise.
1014 (SFT_ALIAS_SET): Likewise.
1015 (SFT_UNPARTITIONABLE_P): Likewise.
1016 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
1017 (union tree_node): Remove sft field.
1018 * alias.c (get_alias_set): Remove special handling of SFTs.
1019 * print-tree.c (print_node): Remove handling of SFTs.
1020 * tree-dump.c (dequeue_and_dump): Likewise.
1021 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
1022 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
1023 * tree-predcom.c (set_alias_info): Do not set subvars.
1024 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
1025 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
1026 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
1027 (add_vars_for_offset): Remove.
1028 (add_virtual_operand): Remove special handling of SFTs.
1029 (add_call_clobber_ops): Likewise.
1030 (add_call_read_ops): Likewise.
1031 (get_asm_expr_operands): Likewise.
1032 (get_modify_stmt_operands): Likewise.
1033 (get_expr_operands): Likewise.
1034 (add_to_addressable_set): Likewise.
1035 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
1036 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
1037 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
1038 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
1039 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
1040 (tree_node_structure): Likewise.
1041 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
1043 (find_what_p_points_to): Likewise.
1045 2008-05-08 Sa Liu <saliu@de.ibm.com>
1047 * config/spu/spu.md: Fixed subti3 pattern.
1049 2008-05-08 Richard Guenther <rguenther@suse.de>
1052 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
1053 sure to create a representative for trailing arrays for PTA.
1055 2008-05-08 Richard Guenther <rguenther@suse.de>
1058 * fold-const.c (operand_equal_p): Two objects which types
1059 differ in pointerness are not equal.
1061 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
1063 * calls.c (compute_argument_block_size): Add argument tree fndecl.
1064 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
1065 (emit_library_call_value_1): Add new variable fndecl initialized by
1066 NULL_TREE. It should be the decl type of orgfun, but this information
1067 seems not to be available here, so it uses the default calling abi.
1068 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
1069 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
1070 by TARGET_RETURN_IN_MEMORY.
1071 * config/i386/i386-interix.h: Likewise.
1072 * config/i386/i386.h: Likewise.
1073 * config/i386/i386elf.h: Likewise.
1074 * config/i386/ptx4-i.h: Likewise.
1075 * config/i386/sol2-10.h: Likewise.
1076 * config/i386/sysv4.h: Likewise.
1077 * config/i386/vx-common.h: Likewise.
1078 * config/cris/cris.h: Removed #if 0 clause.
1079 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
1080 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
1082 (ix86_sol10_return_in_memory): Likewise.
1083 (ix86_i386elf_return_in_memory): New.
1084 (ix86_i386interix_return_in_memory): New.
1085 * config/mt/mt-protos.h (mt_return_in_memory): New.
1086 * config/mt/mt.c: Likewise.
1087 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
1088 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
1089 * config/bfin/bfin.h: Likewise.
1090 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
1092 * config/bfin/bfin.c: Likewise.
1093 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
1094 * config/alpha/unicosmk.h: Likewise.
1095 * config/i386/cygming.h: Likewise.
1096 * config/iq2000/iq2000.h: Likewise.
1097 * config/mips/mips.h: Likewise.
1098 * config/mn10300/mn10300.h: Likewise.
1099 * config/rs6000/rs6000.h: Likewise.
1100 * config/score/score.h: Likewise.
1101 * config/spu/spu.h: Likewise.
1102 * config/v850/v850.h: Likewise.
1103 * defaults.h: Likewise.
1104 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
1105 * expr.c (emit_block_move): Adjust use of
1106 OUTGOING_REG_PARM_STACK_SPACE.
1107 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
1108 OUTGOING_REG_PARM_STACK_SPACE.
1109 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
1111 2008-05-08 Jakub Jelinek <jakub@redhat.com>
1113 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
1114 on OMP_RETURN for OMP_FOR.
1117 * dwarf2out.c (dw_expand_expr, common_check): Removed.
1118 (fortran_common): New function.
1119 (gen_variable_die): Call fortran_common instead of common_check,
1120 adjust for it returning tree instead of rtx. Formatting.
1122 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
1126 * see.c (see_copy_insn): Copy new pure const attributes for new call.
1127 * c-decl.c (merge_decls): Ditto.
1128 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
1129 to RTL_CONST_OR_PURE_CALL_P.
1130 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
1131 Initialized DECL_LOOPING_CONST_PURE.
1132 (process_call_operands): Set tree_side_effects properly.
1133 * tree.h (TREE_READONLY_DECL_P): Removed.
1134 (DECL_IS_PURE): Renamed to DECL_PURE_P.
1135 (DECL_LOOPING_OR_CONST_P): New macro.
1136 (struct tree_function_decl): Added looping_const_or_pure_p.
1138 (ECF_LOOPING_OR_CONST_P): New macro.
1139 * rtlanal.c (pure_const_p): Removed.
1140 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
1141 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
1142 to RTL_CONST_CALL_P.
1143 * ipa-pure-const.c (pure_const_state_e): Added looping field.
1144 (check_decl, check_tree, check_call, scan_function): Initialize
1146 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
1147 (static_execute): Set looping true for recursive functions.
1148 Undo setting state to IPA_NEITHER for recursive functions.
1150 * ifcvt.c (noce_can_store_speculate_p): Changed
1151 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
1152 RTL_CONST_OR_PURE_CALL_P.
1153 * dse.c (scan_insn): Ditto.
1154 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
1155 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
1156 RTL_CONST_OR_PURE_CALL_P.
1157 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
1158 pure_call_p to RTL_CONST_CALL_P.
1159 * gimplify.c (gimplify_call_expr): Clear side effects for
1160 non-looping pure and constant calls.
1161 * calls.c (emit_call_1): Set rtl flags from ecf flags.
1162 (flags_from_decl_or_type): Set ecf flags from decl flags.
1163 (initialize_argument_information): Turn off
1164 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
1165 Change const to pure if callee_copies is true rather than just
1167 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
1168 way of marking pure calls.
1169 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
1170 Remove hack that was supposed to fix pr7335 and remove old
1171 way of marking pure calls.
1172 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
1173 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
1174 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
1175 RTL_CONST_OR_PURE_CALL_P.
1176 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
1177 * loop-invariant.c (find_exits, find_invariant_bb): Changed
1178 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
1179 * sched-deps.c (schedule_analyze): Ditto.
1180 * rtl.h (struct rtx_def): Use call field, unchanging field, and
1181 return_val field of calls to represent pure and const function info.
1182 (CONST_OR_PURE_CALL_P): Deleted macro.
1183 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
1184 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
1185 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
1187 * tree-optimize.c (execute_fixup_cfg): Added test for
1188 ECF_LOOPING_CONST_OR_PURE.
1189 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
1191 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
1192 effects for looping pure or const calls.
1193 (verify_gimple_expr): Added verification code.
1194 * config/alpha/alpha.c (alpha_legitimize_address,
1195 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
1197 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
1198 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
1199 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
1200 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
1201 RTL_CONST_OR_PURE_CALL_P.
1202 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
1203 and const calls to be deleted.
1205 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
1208 * config/i386/mmx.md (mmx_subv2sf3): New expander.
1209 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
1210 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
1211 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
1212 to handle nonimmediate operands.
1213 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
1214 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
1215 to handle nonimmediate operands.
1216 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
1217 (mmx_pmulhrwv4hi3): New expander. Use
1218 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1219 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
1220 (sse2_umulv1siv1di3): New expander. Use
1221 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1222 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
1223 (mmx_eq<mode>3): New expander. Use
1224 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1225 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
1226 (mmx_uavgv8qi3): New expander. Use
1227 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1228 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
1229 (mmx_uavgv4hi3): New expander. Use
1230 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1232 * config/i386/sse.md
1233 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
1234 to handle nonimmediate operands.
1235 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
1236 to handle nonimmediate operands.
1237 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
1238 to handle nonimmediate operands.
1239 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
1240 to handle nonimmediate operands.
1241 (sse2_unpckhpd_exp): New expander. Use
1242 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1243 (sse2_unpcklpd_exp): New expander. Use
1244 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1245 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
1246 to handle nonimmediate operands.
1247 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
1248 to handle nonimmediate operands.
1249 (*sse2_<plusminus_insn><mode>3): Rename from
1250 sse2_<plusminus_insn><mode>3 insn pattern.
1251 (sse2_<plusminus_insn><mode>3): New expander. Use
1252 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1253 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
1254 (sse2_umulv2siv2di3): New expander. Use
1255 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1256 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
1257 (sse4_1_mulv2siv2di3): New expander. Use
1258 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1259 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
1260 (sse2_pmaddwd): New expander. Use
1261 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1262 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
1263 (sse2_eq<mode>3): New expander. Use
1264 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1265 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
1266 (sse4_1_eqv2di3): New expander. Use
1267 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1268 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
1269 (sse2_uavgv16qi3): New expander. Use
1270 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1271 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
1272 (sse2_uavgv16qi3): New expander. Use
1273 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1274 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
1275 (sse2_uavgv8hi3): New expander. Use
1276 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1277 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
1278 (ssse3_pmulhrswv8hi3): New expander. Use
1279 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1280 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
1281 (ssse3_pmulhrswv4hi3): New expander. Use
1282 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1284 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
1285 (<sse>_vmmul<mode>3): Ditto.
1286 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
1288 (ssse3_pmaddubsw128): Use register_operand for operand 1.
1289 (ssse3_pmaddubsw): Ditto.
1291 * config/i386/i386.c (struct_builtin_description)
1292 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
1293 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
1294 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
1295 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
1296 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
1297 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
1298 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
1299 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
1300 (ix86_fixup_binary_operands): Assert that src1
1301 and src2 must have the same mode when swapped.
1302 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
1303 and ix86_binary_operator_ok. Do not force operands in registers
1306 2008-05-07 Jan Hubicka <jh@suse.cz>
1308 * cgraph.c (dump_cgraph_node): Update.
1309 * cgraph.h (cgraph_local_info): Break out inline summary.
1310 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
1312 * ipa-inline (inline_summary): New accestor function.
1313 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
1314 cgraph_decide_inlining, compute_inline_parameters): Update.
1315 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
1317 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
1319 Cleanup ColdFire scheduling support and add V4 pipeline model.
1321 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
1322 (define_attr cpu): Add cfv4 value.
1323 (define_attr type, define_attr type1): Merge into a single 'type'
1324 attribute. Update all uses.
1325 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
1326 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
1328 (define_attr opx_mem, define_attr opy_mem): Remove.
1329 (define_attr op_mem): Clean up, update comment.
1330 (define_attr size): Use specific values instead of general int.
1331 (define_attr guess, define_attr split): Remove. Update all uses.
1332 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
1333 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
1334 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
1335 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
1336 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
1337 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
1338 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
1339 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
1340 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
1341 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
1342 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
1343 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
1344 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
1345 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
1346 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
1347 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
1348 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
1349 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
1350 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
1351 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
1352 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
1353 Update or set attributes.
1354 (stack_tie): New fake instruction.
1356 * config/m68k/m68k.h (TUNE_CFV4): New macro.
1357 (m68k_sched_attr_size): Update declaration.
1358 (m68k_sched_attr_type2): Remove.
1359 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
1360 Declare new bypass predicates.
1362 * config/m68k/m68k.c (m68k_sched_issue_rate,
1363 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
1365 (TARGET_SCHED_ISSUE_RATE,
1366 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
1367 (override_options): Handle scheduling for ColdFire V4 core.
1368 (m68k_expand_prologue): Emit stack_tie.
1369 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
1370 'OP_TYPE_FPN'. Update all uses.
1371 (sched_guess_p): Remove.
1372 (sched_address_type): Handle symbolic addresses.
1373 (sched_get_operand): New static function.
1374 (sched_operand_type): Merge into sched_attr_op_type.
1375 (sched_attr_op_type): Handle FP registers, handle quick constants,
1377 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
1378 (m68k_sched_attr_size): Update. Move logic to ...
1379 (sched_get_attr_size_int): New static function.
1380 (sched_get_opxy_mem_type): New static function.
1381 (m68k_sched_attr_op_mem): Update.
1382 (m68k_sched_attr_type2): Remove.
1383 (sched_cfv4_bypass_data): New static variable.
1384 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
1385 (m68k_sched_issue_rate): Implement scheduler hook.
1386 (struct _sched_ib: enabled_p): New field.
1387 (m68k_sched_variable_issue): Update. Handle V4.
1388 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
1389 sched_dump_class_func_t, sched_dump_split_class,
1390 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
1391 sched_dump_dfa_class, m68k_sched_dump): Remove.
1392 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
1394 (m68k_sched_init_global): Remove statisctics dumping, introduce
1395 sanity check that all instructions have pipeline reservations. Handle
1397 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
1398 Handle ColdFire V4 core.
1399 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
1400 New static functions.
1401 (m68k_sched_address_bypass_p): New bypass predicate.
1402 (sched_get_indexed_address_scale): New static function.
1403 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
1405 * cf.md: Update comments.
1406 (define_attr type2): Remove. Use 'type' attribute instead.
1408 (cf_ib): Rename to cfv123_ib. Update all uses.
1409 (cf_oep): Rename to cfv123_oep. Update all uses.
1410 (cf_chr): Rename to cfv123_chr. Update all uses.
1411 (cf_mem): Rename to cfv123_mem. Update all uses.
1412 (cf_mac): Move to more appropriate place.
1413 (cfv123_guess): New automaton and cpu_unit.
1414 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
1415 Update uses of 'size' attribute. Handle before reload scheduling.
1416 (cfv123_guess): New dummy reservation for unhandled instructions.
1417 (cfv4_*): Pipeline description of ColdFire V4 core.
1418 (ignore): New reservation to handle 'ignore' type.
1420 2008-05-07 Ian Lance Taylor <iant@google.com>
1423 * gimplify.c (find_single_pointer_decl_1): Don't look through
1425 (find_single_pointer_decl): Adjust comments.
1427 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1430 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
1431 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
1434 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
1435 integral type rather than floating point, then VIEW_CONVERT_EXPR
1436 to the floating point type.
1438 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
1440 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
1441 TFmode op0 to register.
1443 2008-05-07 Alan Modra <amodra@bigpond.net.au>
1445 * c-decl.c (grokdeclarator): Comment typo.
1447 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
1449 * tree-flow.h: Remove prototype for computed_goto_p.
1450 * tree-cfg.c (computed_goto_p): Make static.
1452 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
1455 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
1456 (contains_aligned_value_p): This. Handle _Decimal128.
1457 (ix86_function_arg_boundary): Only align _Decimal128 to its
1458 natural boundary and handle it properly.
1460 2008-05-06 Martin Jambor <mjambor@suse.cz>
1462 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
1463 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
1464 (ipcp_method_set_orig_node): Removed.
1465 (ipcp_cval_get_cvalue_type): Removed.
1466 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
1467 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
1468 (ipcp_cval_set_cvalue_type): Removed.
1469 (ipcp_cval_get_cvalue): Removed.
1470 (ipcp_cval_set_cvalue): Removed.
1471 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
1472 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
1473 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
1474 (ipcp_cval_meet): Renamed to ipa_lattice_meet
1475 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
1476 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
1477 (ipcp_get_ith_lattice): Changed parameters.
1478 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
1479 (ipcp_lattice_from_jfunc): Changed parameters.
1480 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
1481 (ipcp_method_cval_print): Added temporary variable info.
1482 (ipcp_redirect): Removed already unused local variable caller.
1483 (ipcp_redirect): New temporary variable orig_callee_info
1484 (ipcp_redirect): Removed newly unused local variable callee.
1485 (ipcp_redirect): Removed (a bit confusing) local variable type.
1486 (ipcp_insert_stage): Added local variable info.
1487 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
1489 (ipcp_formal_create): Removed.
1490 (ipcp_method_cval_set): Removed.
1491 (ipcp_propagate_stage): Renamed lattice variables.
1492 (ipcp_method_cval_set_cvalue_type): Removed.
1493 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
1494 (ipcp_print_all_lattices): Changed printed strings to refer to
1495 lattices rather than cvals.
1496 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
1497 (ipcp_propagate_const): Changed formal parameters.
1498 (build_const_val): Changed formal parameters.
1499 (ipcp_insert_stage): Removed useless variable cvalue
1500 (build_const_val): Changed formal parameters.
1501 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
1502 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
1503 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
1504 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
1505 (ipcp_print_func_profile_counts): Changed string from "method" to
1507 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
1508 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
1509 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
1510 (ipcp_structures_print): Renamed to ipcp_print_all_structures
1511 (ipcp_profile_print): Renamed to ipcp_print_profile_data
1512 (ipcp_lat_is_const): Changed parameters and made inline.
1513 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
1514 (ipcp_redirect): Renamed to ipcp_need_redirect_p
1515 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
1516 the predicate condition directly
1517 (ipcp_propagate_stage): Added local variable args. Removed local
1518 variable callee. (Both are mere code simplifications.)
1519 (ipcp_method_dont_insert_const): Renamed to
1520 ipcp_node_not_modifiable_p.
1521 (ipcp_node_not_modifiable_p): Made inline.
1522 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
1523 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
1524 (ipcp_print_all_lattices): Removed variable cvalue
1525 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
1528 2008-05-06 Olivier Hainque <hainque@adacore.com>
1530 * tree-sra.c (try_instantiate_multiple_fields): Early return
1531 if field has POINTER_TYPE.
1533 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
1535 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
1536 by using 'q' specifier for instruction.
1537 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
1539 2008-05-06 Anatoly Sokolov <aesok@post.ru>
1541 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
1542 Change mode of zero_extract from QImode to HImode.
1543 (sign bit tests peepholes): (Ditto.).
1545 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
1547 * config/i386/mmx.md: Remove double backslashes from asm templates.
1548 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
1549 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
1550 to handle nonimmediate operands.
1551 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
1552 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
1553 to handle nonimmediate operands.
1554 (*mmx_<code>v2sf3_finite): New insn pattern.
1555 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
1556 (mmx_<code>v2sf3): New expander. Use
1557 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1558 (mmx_<plusminus_insn><mode>3): New expander. Use
1559 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1560 (*mmx_<plusminus_insn><mode>3): New insn pattern.
1561 (mmx_add<mode>3): Removed.
1562 (mmx_ssadd<mode>3): Ditto.
1563 (mmx_usadd<mode>3): Ditto.
1564 (mmx_sub<mode>3): Ditto.
1565 (mmx_sssub<mode>3): Ditto.
1566 (mmx_ussub<mode>3): Ditto.
1567 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
1568 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
1569 to handle nonimmediate operands.
1570 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
1572 (mmx_smulv4hi3_highpart): New expander. Use
1573 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1574 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
1576 (mmx_umulv4hi3_highpart): New expander. Use
1577 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1578 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
1579 (mmx_<code>v4hi3): New expander. Use
1580 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1581 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
1582 (mmx_<code>v8qi3): New expander. Use
1583 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1584 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
1585 (mmx_<code><mode>3): New expander. Use
1586 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1588 2008-05-05 Jan Hubicka <jh@suse.cz>
1590 PR tree-optimization/36118
1591 * passes.c (pass_init_dump_file): Fix dump header.
1593 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1596 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
1597 VCE for function decls.
1599 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
1601 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
1603 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
1605 * config/i386/i386.md (sat_plusminus): New.
1606 (plusminus_insn): Likewise.
1607 (plusminus_mnemonic): Likewise.
1609 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
1610 (*<addsub><mode>3_cc_overflow): Renamed to ...
1611 (*<plusminus_insn><mode>3_cc_overflow): This.
1612 (*<addsub>si3_zext_cc_overflow): Renamed to ...
1613 (*<plusminus_insn>si3_zext_cc_overflow): This.
1615 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
1616 (<plusminus_insn><mode>3): This.
1617 (*<addsub><mode>3): Renamed to ...
1618 (*<plusminus_insn><mode>3): This.
1619 (<sse>_vm<addsub><mode>3): Renamed to ...
1620 (<sse>_vm<plusminus_insn><mode>3): This.
1621 (sse3_h<addsub>v4sf3): Renamed to ...
1622 (sse3_h<plusminus_insn>v4sf3): This.
1623 (sse3_h<addsub>v2df3): Renamed to ...
1624 (sse3_h<plusminus_insn>v2df3): This.
1625 (<plusminus_insn><mode>3): New.
1626 (*<plusminus_insn><mode>3): Likewise.
1627 (sse2_<plusminus_insn><mode>3): Likewise.
1628 (add<mode>): Removed.
1629 (*add<mode>3): Likewise.
1630 (sse2_ssadd<mode>3): Likewise.
1631 (sse2_usadd<mode>3): Likewise.
1632 (sub<mode>3): Likewise.
1633 (*sub<mode>3): Likewise.
1634 (sse2_sssub<mode>3): Likewise.
1635 (sse2_ussub<mode>3): Likewise.
1637 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
1639 * gthr-single.h: Add in required interface elements as per gthr.h.
1640 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
1641 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
1642 Generalize UNUSED macro.
1643 (__gthread_once): Add.
1644 (__gthread_key_create): Add.
1645 (__gthread_key_delete): Add.
1646 (__gthread_getspecific): Add.
1647 (__gthread_setspecific): Add.
1649 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
1651 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
1652 the same size types for the indirect reference on the rhs, then
1655 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
1657 * config/i386/i386.md
1658 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
1659 one insn template instead of template series.
1660 (*xordi_1_rex64): Ditto.
1661 (*xordi_2_rex64): Ditto.
1663 2008-05-05 Ira Rosen <irar@il.ibm.com>
1665 PR tree-optimization/36119
1666 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
1669 2008-06-04 Jan Hubicka <jh@suse.cz>
1671 tree-optimization/36100
1672 * tree-pass.h (pass_O0_always_inline): Declare.
1673 * ipa-inline.c (inline_transform): Remove dead code.
1674 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1675 pass_O0_always_inline): New.
1676 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
1678 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
1680 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
1681 mnemonic in this_param move for TARGET_64BIT.
1683 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
1685 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
1686 (*strmovsi_rex_1): Ditto.
1687 (*strsetsi_1): Ditto.
1688 (*strsetsi_rex_1): Ditto.
1690 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
1691 adddicc expanders using SWI mode iterator.
1693 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
1696 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
1699 2008-05-04 David S. Miller <davem@davemloft.net>
1701 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
1702 (sparc*-*-linux*): Use linux.h in tm_file.
1703 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
1704 compiler defaulting to 32-bit.
1705 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
1707 * config/sparc/linux.h: Remove definitions now obtained
1708 properly from linux.h
1709 * config/sparc/linux64.h: Likewise.
1710 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
1711 don't want this setting for 32-bit builds in a biarch compiler.
1712 * doc/install.texi: Add sparc-linux to list of targets
1713 supporting --enable-targets=all.
1715 2008-05-03 Andrew Pinski <pinskia@gmail.com>
1717 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
1719 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
1721 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
1722 after V4SI_FTYPE_V8HI.
1723 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
1724 case V4SI_FTYPE_V2DF.
1726 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
1728 * doc/invoke.texi (max-flow-memory-locations): Removed.
1729 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
1731 2008-05-03 Richard Guenther <rguenther@suse.de>
1734 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
1736 2008-05-02 David S. Miller <davem@davemloft.net>
1738 * config.gcc (need_64bit_hwint): Document libcpp dependency.
1740 2008-05-02 Simon Baldwin <simonb@google.com>
1743 * c-common.h (warn_array_subscript_range): Removed.
1744 * c-common.c (warn_array_subscript_range): Ditto.
1745 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
1746 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
1748 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
1750 * config/i386/i386.c (ix86_special_builtin_type): New.
1751 (bdesc_special_args): Likewise.
1752 (ix86_expand_special_args_builtin): Likewise.
1753 (ix86_init_mmx_sse_builtins): Updated.
1754 (ix86_expand_builtin): Updated.
1755 (ix86_expand_store_builtin): Removed.
1756 (ix86_expand_unop_builtin): Likewise.
1758 * config/i386/mm3dnow.h (__v2sf): Moved to ...
1759 * config/i386/mmintrin.h (__v2sf): Here.
1761 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
1763 (_mm_loadl_pi): Likewise.
1764 (_mm_storeh_pi): Replace __v2si with __v2sf.
1765 (_mm_storel_pi): Likewise.
1767 * doc/extend.texi: Correct __builtin_ia32_loadhps,
1768 __builtin_ia32_loadlps, __builtin_ia32_storehps,
1769 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
1770 __builtin_ia32_loadlpd.
1772 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
1774 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
1775 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
1776 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
1777 (ix86_init_mmx_sse_builtins): Updated.
1778 (ix86_expand_args_builtin): Likewise.
1779 (ix86_expand_builtin): Likewise.
1780 (ix86_expand_unop1_builtin): Renamed to ...
1781 (ix86_expand_unop_vec_merge_builtin): This.
1783 2008-05-01 Jan Hubicka <jh@suse.cz>
1786 * ipa-inline.c (inline_generate_summary): Make static.
1787 (inline_transform): Do not call inlining at -O0; make static.
1788 * passes.c (execute_todo): Add sanity check.
1789 (execute_one_ipa_transform_pass): Execute proper flags.
1791 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
1793 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
1794 (DECL_NONADDRESSABLE_P): Likewise.
1795 * alias.c (record_component_aliases): Fix comment.
1797 2008-05-01 Simon Baldwin <simonb@google.com>
1799 * c-common.h (warn_array_subscript_range): New function.
1800 * c-common.c (warn_array_subscript_range): Ditto.
1801 * tree-vrp.c (check_array_ref): Corrected code to agree with
1802 comment, ignoring only arrays of size 0 or size 1.
1803 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
1805 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1807 * config/i386/i386.c (ix86_builtin_type): Replace
1808 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
1809 (bdesc_args): Updated.
1810 (ix86_init_mmx_sse_builtins): Likewise.
1811 (ix86_expand_args_builtin): Likewise.
1813 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
1816 * doc/extend.texi: Correct __builtin_ia32_palignr.
1818 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1821 * config/i386/i386.c (bdesc_crc32): Removed.
1822 (ix86_expand_crc32): Likewise.
1823 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
1824 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
1825 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
1826 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
1827 UINT_FTYPE_UINT_UCHAR.
1828 (bdesc_args): Updated. Add crc32 builtins.
1829 (ix86_init_mmx_sse_builtins): Updated.
1830 (ix86_expand_args_builtin): Updated to support subreg.
1832 * doc/extend.texi: Correct __builtin_ia32_crc32di.
1834 2008-05-01 Jan Hubicka <jh@suse.cz>
1836 * tree-pass.h (opt_pass): Add IPA_PASS.
1837 (varpool_node, cgraph_node): Forward declare.
1838 (ipa_opt_pass): Define.
1839 (pass_ipa_inline): Turn into ipa_opt_pass.
1840 (pass_apply_inline): Remove.
1841 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
1842 (apply_inline): Turn into ....
1843 (inline_transform): ... this one.
1844 (inline_generate_summary): New function.
1845 (pass_apply_inline): Remove.
1846 * function.h (ipa_opt_pass): Forward declare structure; typedef;
1848 (struct function): Add ipa_transforms_to_apply.
1849 * passes.c (register_one_dump_file): Work on IPA_PASS.
1850 (init_optimization_passes): Remove pass_inline_parameters and
1852 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
1853 (execute_one_pass) ... here; apply transforms when possible.
1854 (add_ipa_transform_pass, execute_ipa_summary_asses,
1855 execute_one_ipa_transform_pass): New.
1856 (execute_ipa_pass_list): Update for IPA_PASS type.
1858 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1860 * config/i386/i386.c (ix86_builtin_type): Add
1861 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
1862 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
1863 (bdesc_args): Add SSE4a builtins.
1864 (ix86_init_mmx_sse_builtins): Updated.
1865 (ix86_expand_args_builtin): Likewise.
1866 (ix86_expand_builtin): Likewise.
1868 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1870 * config/i386/i386.c (ix86_builtin_type): Add
1871 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
1872 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
1873 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
1874 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
1875 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
1876 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
1877 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
1878 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
1879 and DI_FTYPE_DI_DI_INT.
1880 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
1881 (ix86_init_mmx_sse_builtins): Updated.
1882 (ix86_expand_args_builtin): Likewise.
1883 (ix86_expand_builtin): Likewise.
1884 (ix86_expand_binop_imm_builtin): Removed.
1886 * doc/extend.texi: Correct __builtin_ia32_palignr128.
1888 2008-04-30 Richard Guenther <rguenther@suse.de>
1890 PR tree-optimization/32921
1891 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
1893 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
1895 * config/arm/arm.c (arm_unwind_emit): Use
1896 crtl->all_throwers_are_sibcalls instead of
1897 cfun->all_throwers_are_sibcalls.
1898 (arm_output_fn_unwind): Likewise.
1899 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
1900 instead of cfun->uses_pic_offset_table.
1901 (frv_expand_prologue): Likewise.
1902 (frv_frame_pointer_required): Likewise.
1903 (frv_expand_fdpic_call): Likewise.
1904 (frv_emit_movsi): Likewise.
1905 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
1906 cfun->returns_pcc_struct instead of
1907 current_function_returns_pcc_struct.
1908 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
1909 instead of cfun->calls_eh_return.
1910 (m32c_pushm_popm): Likewise.
1911 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
1912 "extern" declaration.
1914 2008-04-30 Richard Guenther <rguenther@suse.de>
1916 PR tree-optimization/21636
1917 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
1919 (evaluate_stmt): Print the likely value.
1920 (ccp_visit_stmt): Avoid excessive vertical spacing.
1922 2008-04-30 Rafael Espindola <espindola@google.com>
1924 * builtins.c (fold_call_expr): Return realret.
1925 * tree-ssa-threadedge.c
1926 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
1927 __builtin_object_size.
1929 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
1931 * gcc.c (wrapper_string): New variable.
1932 (insert_wrapper): New function.
1933 (execute): New option -wrapper.
1934 * doc/invoke.texi (Overall Options): New driver option -wrapper.
1936 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
1938 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
1939 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
1940 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
1942 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
1943 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
1944 config/rs6000/e500crtres64gprctr.asm,
1945 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
1946 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
1947 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
1948 config/rs6000/e500crtsav64gprctr.asm,
1949 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
1950 config/rs6000/e500crtsavg64gprctr.asm: New files.
1951 * config/rs6000/t-ppccomm: Add build rules for new files.
1952 (LIB2FUNCS_STATIC_EXTRA): Add new files.
1953 * config/rs6000/t-netbsd: Add build rules for new files.
1954 (LIB2FUNCS_STATIC_EXTRA): New variable.
1955 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
1956 (CRTSAVRES_DEFAULT_SPEC): Likewise.
1957 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
1959 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
1961 * config/i386/i386.c (ix86_builtin_type): Add
1962 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
1963 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
1964 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
1965 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
1966 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
1967 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
1968 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
1969 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
1970 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
1971 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
1972 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
1973 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
1974 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
1975 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
1976 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
1977 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
1978 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
1979 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
1980 V1DI_FTYPE_V2SI_V2SI.
1981 (bdesc_2arg): Moved to ...
1983 (ix86_init_mmx_sse_builtins): Updated.
1984 (ix86_expand_args_builtin): Updated. Take a pointer
1985 to const struct builtin_description. Handle comparison
1987 (ix86_expand_sse_compare): Take a new argument for swapping operands.
1988 (ix86_expand_builtin): Updated.
1990 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
1991 (ssse3_pmaddubsw128): This.
1992 (ssse3_pmaddubswv4hi3): Renamed to ...
1993 (ssse3_pmaddubsw): This.
1995 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
1996 (__builtin_ia32_packssdw128): Likewise.
1997 (__builtin_ia32_packuswb128): Likewise.
1998 (__builtin_ia32_pmaddubsw): Likewise.
1999 (__builtin_ia32_pmaddubsw128): Likewise.
2001 2008-04-30 Richard Guenther <rguenther@suse.de>
2003 PR tree-optimization/14847
2004 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
2005 (recognize_bits_test): Use it.
2006 (recognize_single_bit_test): Likewise.
2008 2008-04-30 Martin Jambor <mjambor@suse.cz>
2010 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
2011 instead of setting number of formal parameters to zero.
2012 (ipcp_init_stage): Do not set the number of actual parameters to zero
2014 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
2015 which are called with variable number of arguments.
2016 (ipcp_insert_stage): Explicitely skipping all nodes which are
2017 called with variable number of arguments.
2018 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
2019 number of parameters.
2021 * ipa-prop.h (struct ipa_node_params): Added flag
2022 called_with_var_arguments
2023 (ipa_set_param_count): Added. Changed sole setter to use it.
2024 (ipa_get_param_count): Added. All readers of param_count
2025 converted to use it instead.
2026 (ipa_set_called_with_variable_arg): Added.
2027 (ipa_is_called_with_var_arguments): Added.
2028 (ipa_get_ith_param): Added. All readers of param_decls converted
2030 (ipa_set_cs_argument_count): Added, sole writer to argument_count
2032 (ipa_get_cs_argument_count): Added, all readers of argument_count
2034 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
2037 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
2038 (struct ipcp_lattice): Renamed cval_type to type
2039 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
2041 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
2042 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
2043 (ipcp_insert_stage): Changed the type of variable cvalue to tree
2044 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
2045 (build_const_val): Changed the type of parameter cvalue to tree
2046 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
2047 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
2049 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
2052 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
2053 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
2054 (ipa_add_method): Renamed to ipa_push_func_to_list
2055 (ipa_remove_method): Renamed to ipa_pop_func_from_list
2056 (ipa_callsite_param_count): Removed.
2057 (ipa_callsite_param_count_set): Removed.
2058 (ipa_callsite_param): Removed.
2059 (ipa_callsite_callee): Removed.
2060 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
2061 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
2062 (ipa_method_formal_count): Removed.
2063 (ipa_method_formal_count_set): Removed.
2064 (ipa_method_get_tree): Removed.
2065 (ipa_method_tree_map_create): Removed.
2066 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
2067 (ipa_create_param_decls_array): Creates the array itself
2068 (ipa_create_param_decls_array): Temporary variable info instead of
2070 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
2071 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
2072 (get_type): Removed.
2073 (ipa_jf_get_info_type): Removed.
2074 (ipa_node_create): Renamed to ipa_create_node_params
2075 (ipa_free): Renamed to ipa_free_all_node_params
2076 (ipa_nodes_create): Renamed to ipa_create_all_node_params
2077 (ipa_edges_create): Renamed to ipa_create_all_edge_args
2078 (ipa_edges_free): Renamed to ipa_free_all_edge_args
2079 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
2080 (ipa_free_all_node_params): Deallocation to jump_functions moved to
2081 ipa_free_all_edge_args
2082 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
2083 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
2084 (ipa_create_methodlist_node): Removed.
2085 (ipa_methodlist_method): Removed.
2086 (ipa_methodlist_method_set): Removed.
2087 (ipa_methodlist_next_method): Removed.
2088 (ipa_methodlist_next_method_set): Removed.
2089 (ipa_method_is_modified): Removed.
2090 (ipa_method_modify_create): Removed.
2091 (ipa_method_modify_init): Temporary variable info instead of a few
2093 (ipa_detect_param_modifications): Temporary variable info instead of
2095 (ipa_compute_jump_functions): Temporary variable info instead of
2097 (ipa_method_modify_set): Removed.
2098 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
2099 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
2100 than craph_node as the first parameter.
2101 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
2102 (ipa_method_modify_init): Removed.
2103 (ipa_compute_jump_functions): Added a temp variable instead of
2104 repeatadly dereferencing the cgraph_edge.aux pointer
2105 (ipa_callsite_param_set_type): Removed.
2106 (ipa_compute_jump_functions): i renamed to index and moved to
2108 (ipa_callsite_param_set_info_type_formal): Removed.
2109 (ipa_callsite_param_set_info_type): Removed.
2110 (ipa_callsite_param_map_create): Removed.
2111 (ipa_callsite_tree): Removed.
2112 (ipa_callsite_caller): Removed.
2113 (ipa_pop_func_from_list): return_method removed to return_func
2115 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
2116 prefixed all values with IPA_. Changed all users.
2117 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
2118 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
2119 and FORMAL_IPATYPE IPA_PASS_THROUGH.
2120 (union parameter_info): Renamed to jump_func_value.
2121 (union jump_func_value): Renamed value to constant
2122 (struct ipa_jump_func): Renamed info_type to value
2123 (struct ipa_node): Renamed to ipa_node_params
2124 (struct ipa_node_params): Renamed ipa_arg_num to param_count
2125 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
2126 (struct ipa_node_params): Renamed ipa_mod to modified_flags
2127 (struct ipa_edge): Renamed to ipa_edge_args
2128 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
2129 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
2130 (struct ipa_methodlist): Renamed to ipa_func_list
2131 (struct ipa_func_list): method_p renamed to node, next_method
2133 (ipa_methodlist_p): Removed, switched all users to struct pointer
2134 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
2136 2008-04-30 Alan Modra <amodra@bigpond.net.au>
2138 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
2139 (rs6000_emit_epilogue): Use backchain to restore only when we
2140 have a large frame. Make use of frame pointer to restore if we
2141 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
2143 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
2145 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
2146 Add mode to zero_extract.
2147 (sign bit tests peepholes): (Ditto.).
2149 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
2151 * config/i386/i386.c (ix86_builtins): Replace Prescott New
2152 Instructions in comments with SSE3.
2153 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
2154 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
2155 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
2156 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
2157 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
2158 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
2159 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
2160 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
2161 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
2162 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
2163 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
2164 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
2165 (bdesc_sse_args): Renamed to ...
2166 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
2167 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
2168 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
2170 (bdesc_1arg): Moved to ...
2172 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
2173 Instructions in comments with SSE3.
2174 (ix86_expand_sse_operands_builtin): Renamed to ...
2175 (ix86_expand_args_builtin): This. Updated.
2176 (ix86_expand_unop1_builtin): Update comments.
2177 (ix86_expand_builtin): Updated.
2179 2008-04-29 Richard Guenther <rguenther@suse.de>
2181 PR tree-optimization/36078
2182 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
2183 Update virtual SSA form after cleaning up the CFG.
2185 2008-04-29 Richard Guenther <rguenther@suse.de>
2188 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
2190 2008-04-29 Richard Guenther <rguenther@suse.de>
2192 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
2193 (compute_may_aliases): Do not call finalize_ref_all_pointers.
2194 (compute_flow_insensitive_aliasing): Do not treat
2195 PTR_IS_REF_ALL pointers special.
2196 (get_smt_for): Likewise.
2197 (may_alias_p): Re-structure.
2198 (is_escape_site): A ref-all pointer conversion is not an escape site.
2199 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
2200 PTR_IS_REF_ALL pointers special.
2201 * tree-ssa-structalias.h (struct alias_info): Remove
2202 ref_all_symbol_mem_tag field.
2203 (PTR_IS_REF_ALL): Remove.
2205 2008-04-29 Richard Guenther <rguenther@suse.de>
2208 * fold-const.c (extract_muldiv_1): In combining division constants
2209 make sure to never overflow.
2211 2008-04-29 Nick Clifton <nickc@redhat.com>
2213 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
2215 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2218 * optc-gen.awk: Work around HP-UX/IA awk bug.
2220 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
2222 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
2225 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
2228 * config/i386/i386.md
2229 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
2230 Change operand 1 predicate to nonimmediate_operand.
2232 2008-04-28 Jakub Jelinek <jakub@redhat.com>
2235 * dwarf2out.c (struct die_struct): Mark as chain_circular through
2237 * gengtype.c (walk_type, write_func_for_structure): Handle
2239 * doc/gty.texi: Document chain_circular.
2241 2008-04-28 Richard Guenther <rguenther@suse.de>
2243 PR tree-optimization/36066
2244 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
2247 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
2250 * config/i386/i386.md
2251 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
2252 Use match_scratch instead of match_operand for operands 3 and 4.
2254 2008-04-27 Richard Guenther <rguenther@suse.de>
2256 PR tree-optimization/18754
2257 PR tree-optimization/34223
2258 * tree-pass.h (pass_complete_unrolli): Declare.
2259 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
2260 loop size before and after unconditionally of UL_NO_GROWTH in effect.
2261 Rewrite loop into loop closed SSA form if it is not already.
2262 (tree_unroll_loops_completely): Re-structure to iterate over
2263 innermost loops with intermediate CFG cleanups.
2264 Unroll outermost loops only if requested or the code does not grow
2266 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
2267 loops are available.
2268 (tree_vectorize): Instead do so here.
2269 (tree_complete_unroll): Also unroll outermost loops.
2270 (tree_complete_unroll_inner): New function.
2271 (gate_tree_complete_unroll_inner): Likewise.
2272 (pass_complete_unrolli): New pass.
2273 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
2274 uses outside of the loop.
2275 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
2276 form if it is available.
2277 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
2278 * passes.c (init_optimization_passes): Schedule complete inner
2279 loop unrolling pass before the first CCP pass after final inlining.
2281 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
2283 * targhooks.h (default_emutls_var_fields,
2284 default_emutls_var_init): Declare.
2285 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
2286 * target.h (struct gcc_target): Add struct emutls member.
2287 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
2288 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
2289 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
2290 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
2291 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
2292 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
2293 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
2294 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
2295 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
2296 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
2297 emit debug information.
2298 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
2299 * varasm.c: Include targhooks.h.
2300 (emutls_object_section, emutls_tmpl_section): New.
2301 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
2302 (EMUTLS_SEPARATOR): New.
2304 (get_emutls_object_name): New.
2305 (default_emutls_var_fields): New, broken out of ...
2306 (get_emutls_object_type): ... here. Adjust to use target hooks.
2307 (get_emutls_init_templ_addr): Adjust to use target hooks.
2308 (emutls_decl): Adjust to use target hooks.
2309 (emutls_finish): Likewise.
2310 (default_emutls_var_init): New, broken out of ...
2311 (assemble_variable): ... here. Adjust to use target hooks.
2312 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
2314 * c-common.c (handle_section_attribute): Prevent overriding
2315 sections for emulated tls with special sections.
2316 * config/i386/i386.c (x86_64_elf_select_section): Add
2317 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
2318 (x86_64_elf_unique_section): Likewise.
2319 * config/vxworks.c: Include tree.h.
2320 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
2321 (vxworks_override_options): Set TLS scheme.
2322 * doc/tm.texi (Emulated TLS): New node.
2324 2008-04-26 Simon Baldwin <simonb@google.com>
2327 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
2328 with propagated string constants.
2330 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
2332 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
2333 constraint for operand 2 when operand 0 is memory operand.
2334 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
2335 operand 0 is memory operand.
2336 (fix_trunc<mode>_i387_with_temp): Ditto.
2337 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
2338 operand 2 when operand 1 is memory operand.
2339 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
2340 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
2341 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
2342 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
2343 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
2344 operands 2,3 and 4 when operand 1 is memory operand.
2345 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
2347 (fistdi2_floor_with_temp): Ditto.
2348 (fist<mode>2_floor_with_temp): Ditto.
2349 (fistdi2_ceil_with_temp): Ditto.
2350 (fist<mode>2_ceil_with_temp): Ditto.
2351 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
2353 2008-04-26 David Daney <ddaney@avtrex.com>
2355 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
2357 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
2358 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
2359 UNSPEC_UPDATE_GOT_VERSION): Renumber.
2360 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
2361 (compare_and_swap_12): New insn.
2362 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
2363 * config/mips/mips.c (mips_force_binary): New function.
2364 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
2365 (mips_expand_compare_and_swap_12): New function.
2366 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
2368 2008-04-25 Jan Hubicka <jh@suse.cz>
2371 * cfgexpand.c (pass_expand): Turn into RTL pass.
2372 * passes.c (execute_one_pass): Do pass typechecking after execution.
2373 * tree-pass.h (pass_expand): Turn into RTL pass.
2375 * function.h (struct rtl_data): Move here fields
2376 accesses_prior_frames, calls_eh_return, saves_all_registers,
2377 has_nonlocal_goto, has_asm_statement, is_thunk,
2378 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
2379 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
2380 arg_pointer_save_area_init from struct function; turn into bool.
2381 (struct function): Move
2382 calls_eh_return, saves_all_registers, has_nonlocal_goto,
2383 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
2384 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
2385 tail_call_emit, arg_pointer_save_area_init
2386 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
2387 (current_function_returns_struct, current_function_returns_pcc_struct,
2388 current_function_calls_setjmp, current_function_calls_alloca,
2389 current_function_accesses_prior_frames,
2390 current_function_calls_eh_return, current_function_is_thunk,
2391 current_function_stdarg, current_function_profile,
2392 current_function_limit_stack, current_function_uses_pic_offset_table,
2393 current_function_uses_const_pool, current_function_has_nonlocal_label,
2394 current_function_saves_all_registers,
2395 current_function_has_nonlocal_goto,
2396 current_function_has_asm_statement): Remove accesor macros.
2397 * ra-conflict.c (global_conflicts): Update.
2398 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
2399 (suitable_for_tail_call_opt_p): Update.
2400 * builtins.c (expand_builtin_return_addr): Update.
2401 (expand_builtin_setjmp_setup): Update.
2402 (expand_builtin_nonlocal_goto): Update.
2403 * final.c (final_start_function): Update.
2404 (profile_function): Update.
2405 (leaf_function_p): Update.
2406 (only_leaf_regs_used): Update.
2407 * df-scan.c (df_get_exit_block_use_set): Update.
2408 * dojump.c (clear_pending_stack_adjust): Update.
2409 * tree-stdarg.c (gate_optimize_stdarg): Update.
2410 * gimple-low.c (lower_function_body): Update.
2411 * global.c (compute_regsets): Update.
2412 (global_alloc): Update.
2413 * dwarf2out.c (dwarf2out_begin_prologue): Update.
2414 * expr.c (expand_assignment): Update.
2415 * dse.c (dse_step0): Update.
2416 (dse_step1): Update.
2417 * c-decl.c (store_parm_decls): Update.
2418 * local-alloc.c (combine_regs): Update.
2419 (find_free_reg): Update.
2420 * function.c (assign_parms_augmented_arg_list): Update.
2421 (assign_parm_find_data_types): Update.
2422 (assign_parms): Update.
2423 (allocate_struct_function): Update.
2424 (expand_function_start): Update.
2425 (expand_function_end): Update.
2426 (get_arg_pointer_save_area): Update.
2427 (thread_prologue_and_epilogue_insns): Update.
2428 (rest_of_match_asm_constraints): Update.
2429 * stor-layout.c (variable_size): Update.
2430 * gcse.c (gcse_main): Update.
2431 (bypass_jumps): Update.
2432 * gimplify.c (gimplify_function_tree): Update.
2433 * calls.c (emit_call_1): Update.
2434 (expand_call): Update.
2435 * bt-load.c (compute_defs_uses_and_gen): Update.
2436 * except.c (sjlj_assign_call_site_values): Update.
2437 (sjlj_emit_function_enter): Update.
2438 (can_throw_external): Update.
2439 (set_nothrow_function_flags): Update.
2440 (expand_builtin_unwind_init): Update.
2441 (expand_eh_return): Update.
2442 (convert_to_eh_region_ranges): Update.
2443 (output_function_exception_table): Update.
2444 * emit-rtl.c (gen_tmp_stack_mem): Update.
2445 * cfgexpand.c (expand_used_vars): Update.
2446 (tree_expand_cfg): Update.
2447 * cfgcleanup.c (rest_of_handle_jump): Update.
2448 * explow.c (allocate_dynamic_stack_space): Update.
2449 * varasm.c (assemble_start_function): Update.
2450 (force_const_mem): Update.
2451 (mark_constant_pool): Update.
2452 * tree-optimize.c (tree_rest_of_compilation): Update.
2453 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
2454 * tree-cfg.c (notice_special_calls): Update.
2455 (is_ctrl_altering_stmt): Update.
2456 (tree_can_make_abnormal_goto): Update.
2457 (tree_purge_dead_abnormal_call_edges): Update.
2458 * config/alpha/predicates.md: Update.
2459 * config/alpha/alpha.c (alpha_sa_mask): Update.
2460 (alpha_sa_size): Update.
2461 (alpha_does_function_need_gp): Update.
2462 (alpha_expand_prologue): Update.
2463 (alpha_start_function): Update.
2464 (alpha_output_function_end_prologue): Update.
2465 (alpha_expand_epilogue): Update.
2466 * config/frv/frv.c (frv_stack_info): Update.
2467 (frv_expand_epilogue): Update.
2468 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
2469 (s390_register_info): Update.
2470 (s390_frame_info): Update.
2471 (s390_init_frame_layout): Update.
2472 (s390_can_eliminate): Update.
2473 (save_gprs): Update.
2474 * config/spu/spu.c (spu_split_immediate): Update.
2475 (need_to_save_reg): Update.
2476 (spu_expand_prologue): Update.
2477 (spu_expand_epilogue): Update.
2478 * config/sparc/sparc.md: Update.
2479 * config/sparc/sparc.c (eligible_for_return_delay): Update.
2480 (sparc_tls_got): Update.
2481 (legitimize_pic_address): Update.
2482 (sparc_emit_call_insn): Update.
2483 (sparc_expand_prologue): Update.
2484 (output_return): Update.
2485 (print_operand): Update.
2486 (sparc_function_ok_for_sibcall): Update.
2487 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
2488 * config/m32r/m32r.md: Update.
2489 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
2490 (m32r_compute_frame_size): Update.
2491 (m32r_expand_prologue): Update.
2492 (m32r_expand_epilogue): Update.
2493 (m32r_legitimize_pic_address): Update.
2494 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
2495 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
2496 * config/i386/i386.c (ix86_frame_pointer_required): Update.
2498 (ix86_save_reg): Update.
2499 (ix86_compute_frame_layout): Update.
2500 (ix86_expand_prologue): Update.
2501 (ix86_expand_epilogue): Update.
2502 * config/sh/sh.c (output_stack_adjust): Update.
2503 (calc_live_regs): Update.
2504 (sh5_schedule_saves): Update.
2505 (sh_expand_prologue): Update.
2506 (sh_expand_epilogue): Update.
2507 (sh_setup_incoming_varargs): Update.
2508 (sh_allocate_initial_value): Update.
2509 (sh_get_pr_initial_val): Update.
2510 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
2511 * config/sh/sh.md (label:): Update.
2512 * config/avr/avr.c (out_movhi_mr_r): Update.
2513 * config/crx/crx.h (enum): Update.
2514 * config/xtensa/xtensa.h (along): Update.
2515 * config/stormy16/stormy16.c Update.
2516 (xstormy16_compute_stack_layout): Update.
2517 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
2518 (fr30_expand_prologue): Update.
2519 * config/cris/cris.c (cris_conditional_register_usage): Update.
2520 (cris_reg_saved_in_regsave_area): Update.
2521 (cris_initial_frame_pointer_offset): Update.
2522 (cris_simple_epilogue): Update.
2523 (cris_expand_prologue): Update.
2524 (cris_expand_epilogue): Update.
2525 (cris_expand_pic_call_address): Update.
2526 (cris_asm_output_symbol_ref): Update.
2527 (cris_asm_output_label_ref): Update.
2528 * config/cris/cris.md Update.
2529 * config/iq2000/iq2000.c (compute_frame_size): Update.
2530 (iq2000_expand_epilogue): Update.
2531 * config/mt/mt.h (save_direction): Update.
2532 * config/mn10300/mn10300.c (mn10300_function_value): Update.
2533 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
2534 (ia64_secondary_reload_class): Update.
2535 * config/m68k/m68k.c (m68k_save_reg): Update.
2536 (m68k_expand_prologue): Update.
2537 (m68k_expand_epilogue): Update.
2538 (legitimize_pic_address): Update.
2539 * config/rs6000/rs6000.c (rs6000_got_register): Update.
2540 (first_reg_to_save): Update.
2541 (first_altivec_reg_to_save): Update.
2542 (compute_vrsave_mask): Update.
2543 (compute_save_world_info): Update.
2544 (rs6000_stack_info): Update.
2545 (spe_func_has_64bit_regs_p): Update.
2546 (rs6000_ra_ever_killed): Update.
2547 (rs6000_emit_eh_reg_restore): Update.
2548 (rs6000_emit_allocate_stack): Update.
2549 (rs6000_emit_prologue): Update.
2550 (rs6000_emit_epilogue): Update.
2551 (rs6000_output_function_epilogue): Update.
2552 (output_profile_hook): Update.
2553 (rs6000_elf_declare_function_name): Update.
2554 * config/rs6000/rs6000.h (rs6000_args): Update.
2555 * config/rs6000/rs6000.md: Update.
2556 * config/mcore/mcore.c (mcore_expand_prolog): Update.
2557 * config/arc/arc.c (arc_output_function_epilogue): Update.
2558 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
2559 * config/darwin.c (machopic_function_base_name): Update.
2560 * config/score/score3.c (score3_compute_frame_size): Update.
2563 (score3_epilogue): Update.
2564 * config/score/score7.c (score7_compute_frame_size): Update.
2565 (score7_prologue): Update.
2566 (score7_epilogue): Update.
2567 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
2568 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
2569 * config/arm/arm.c (use_return_insn): Update.
2570 (require_pic_register): Update.
2571 (arm_load_pic_register): Update.
2572 (arm_compute_save_reg0_reg12_mask): Update.
2573 (arm_compute_save_reg_mask): Update.
2574 (thumb1_compute_save_reg_mask): Update.
2575 (output_return_instruction): Update.
2576 (arm_output_function_prologue): Update.
2577 (arm_output_epilogue): Update.
2578 (arm_get_frame_offsets): Update.
2579 (arm_expand_prologue): Update.
2580 (thumb_pushpop): Update.
2581 (thumb_exit): Update.
2582 (thumb1_expand_prologue): Update.
2583 (thumb1_expand_epilogue): Update.
2584 (arm_unwind_emit): Update.
2585 (arm_output_fn_unwind): Update.
2586 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
2587 * config/arm/arm.md: Update.
2588 * config/pa/pa.md: Update.
2589 * config/pa/pa.c (legitimize_pic_address): Update.
2590 (compute_frame_size): Update.
2591 (hppa_expand_prologue): Update.
2592 (hppa_expand_epilogue): Update.
2593 (borx_reg_operand): Update.
2594 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
2595 (HARD_REGNO_RENAME_OK): Update.
2596 * config/mips/mips.c (mips_global_pointer): Update.
2597 (mips_save_reg_p): Update.
2598 (mips_compute_frame_info): Update.
2599 (mips_frame_pointer_required): Update.
2600 (mips_expand_prologue): Update.
2601 (mips_expand_epilogue): Update.
2602 (mips_can_use_return_insn): Update.
2603 (mips_reorg_process_insns): Update.
2604 * config/v850/v850.c (compute_register_save_size): Update.
2605 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
2606 * config/mmix/mmix.c (along): Update.
2607 (mmix_expand_epilogue): Update.
2608 * config/bfin/bfin.c (legitimize_pic_address): Update.
2609 (must_save_p): Update.
2610 (stack_frame_needed_p): Update.
2611 (add_to_reg): Update.
2612 (bfin_expand_prologue): Update.
2613 * stmt.c (expand_asm_operands): Update.
2614 * reload1.c (reload): Update.
2615 (init_elim_table): Update.
2617 2008-04-25 Bob Wilson <bob.wilson@acm.org>
2619 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
2621 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
2623 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
2624 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
2625 (mov<mode>): Removed.
2626 (*movv4sf_internal): Likewise.
2627 (*movv2df_internal): Likewise.
2629 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
2631 * config.gcc (crx-*-elf): Remove deprecation.
2633 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2635 * config/i386/cygming-crtend.c (register_frame_ctor): Register
2636 __gcc_deregister_frame with atexit.
2637 (deregister_frame_dtor): Remove.
2639 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
2640 Nathan Sidwell <nathan@codesourcery.com>
2642 * config/rs6000/rs6000.opt (mspe): Remove Var property.
2644 * config/rs6000/rs6000.h (rs6000_spe): Declare.
2645 (rs6000_isel): Likewise.
2646 * config/rs6000/rs6000.c (rs6000_spe): New variable.
2647 (rs6000_isel): New variable.
2648 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
2650 2008-04-24 Jakub Jelinek <jakub@redhat.com>
2653 * c-common.c (handle_vector_size_attribute): Call
2654 lang_hooks.types.reconstruct_complex_type instead of
2655 reconstruct_complex_type.
2656 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
2657 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
2658 * langhooks.h (struct lang_hooks_for_types): Add
2659 reconstruct_complex_type hook.
2660 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
2661 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
2663 2008-04-24 Richard Guenther <rguenther@suse.de>
2665 * c-common.h (check_builtin_function_arguments): Declare.
2666 * c-common.c (validate_nargs): New function.
2667 (check_builtin_function_arguments): Likewise.
2668 * c-typeck.c (build_function_call): Call
2669 check_builtin_function_arguments.
2670 * builtins.c (fold_builtin_classify): Remove error reporting code.
2671 (fold_builtin_unordered_cmp): Likewise.
2672 (fold_builtin_1): Likewise.
2673 (fold_builtin_n): Likewise.
2675 2008-04-24 Jakub Jelinek <jakub@redhat.com>
2677 PR tree-optimization/36008
2678 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
2679 the original op1, rather than delta by step.
2681 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
2682 Sebastian Pop <sebastian.pop@amd.com>
2684 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
2685 eliminate_local_variables_stmt, eliminate_local_variables,
2686 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
2687 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
2688 of code delimited by two edges in the CFG.
2689 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
2690 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
2691 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
2692 the case of parallelisation of reductions.
2693 (expr_invariant_in_region_p): New.
2695 * tree-flow.h (gather_blocks_in_sese_region): Declared.
2696 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
2698 2008-04-24 Ira Rosen <irar@il.ibm.com>
2699 Richard Guenther <rguenther@suse.de>
2701 PR tree-optimization/36034
2702 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
2703 incapable of dealing with loads with gaps.
2705 2008-04-24 Rafael Espindola <espindola@google.com>
2707 * tree-flow.h (vrp_evaluate_conditional): Change signature.
2708 * tree-ssa-propagate.c (fold_predicate_in): Update call to
2709 vrp_evaluate_conditional.
2710 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
2711 (vrp_evaluate_conditional): Split the cond argument.
2712 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
2713 (simplify_stmt_for_jump_threading): Update call to
2714 vrp_evaluate_conditional.
2716 2008-04-24 Ira Rosen <irar@il.ibm.com>
2718 PR tree-optimization/35982
2719 * tree-vect-analyze.c (vect_check_interleaving): Check that the
2720 interleaved data-refs are of the same type.
2722 2008-04-24 Danny Smith <dannysmith@users.net>
2724 * c-format.c (check_format_info_main): Use strncmp rather than a
2725 magic prefix to handle multichar length specs.
2726 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
2727 Don't prefix "I64" and "I32" with '\0'.
2729 2008-04-24 Jakub Jelinek <jakub@redhat.com>
2732 * config/i386/i386.c (init_cumulative_args): Don't pass anything
2733 in registers for -m32 only if stdarg_p (fntype).
2735 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
2737 PR rtl-optimization/36006
2738 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
2739 temp to op0 in order to avoid invalid rtx sharing.
2741 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
2743 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
2744 check TREE_INVARIANT.
2745 * tree-gimple.c (is_gimple_address): New.
2746 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
2747 * tree-gimple.h (is_gimple_address): New.
2748 * tree.h (decl_address_invariant_p): New.
2749 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
2750 (build_string): Likewise.
2751 (decl_address_invariant_p): New, from is_gimple_invariant_address.
2752 (tree_invariant_p_1): Likewise.
2753 (save_expr): Use it.
2754 (tree_invariant_p): New.
2755 (skip_simple_arithmetic): Use it.
2756 (stabilize_reference_1): Use it.
2757 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
2759 (build1_stat): Drop code to compute TREE_INVARIANT.
2760 (build2_stat): Drop code to compute TREE_INVARIANT.
2761 (build3_stat): Drop code to compute TREE_INVARIANT.
2762 (build4_stat): Drop code to compute TREE_INVARIANT.
2763 (build5_stat): Drop code to compute TREE_INVARIANT.
2764 (build7_stat): Drop code to compute TREE_INVARIANT.
2765 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
2766 * tree.h (struct tree_base): Remove invariant_flag.
2767 (TREE_INVARIANT): Remove.
2768 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
2769 (fold_builtin_expect): Check TREE_CONSTANT.
2770 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
2771 * c-tree.h (c_expr_to_decl): Drop third parameter.
2772 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
2773 (build_c_cast): Don't set TREE_INVARIANT.
2774 (pop_init_level): Don't set TREE_INVARIANT.
2775 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
2776 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
2778 (gimplify_init_constructor): Don't set TREE_INVARIANT.
2779 (gimplify_addr_expr): Adjust comment.
2780 * tree-mudflap.c (mf_build_string):
2781 * print-tree.c (print_node): Don't print TREE_INVARIANT.
2782 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
2783 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
2784 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
2785 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
2786 * langhooks.h (struct lang_hooks): Drop third parameter from
2789 2008-04-23 Richard Guenther <rguenther@suse.de>
2791 PR tree-optimization/27799
2792 PR tree-optimization/32921
2793 PR tree-optimization/32624
2794 * tree-ssa-structalias.c (merge_smts_into): Only merge the
2795 SMTs aliases and the tag itself into the solution.
2796 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
2797 merge the points-to solution back into the SMT aliases.
2798 (may_alias_p): Use alias_set_subset_of instead of
2799 aliases_conflict_p. A pointer which points to
2800 memory with alias set zero may access any variable.
2802 2008-04-23 Richard Guenther <rguenther@suse.de>
2804 * alias.c (alias_set_subset_of): Correctly handle asking
2805 if zero is a subset of an alias set with zero child.
2806 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
2807 (compute_flow_insensitive_aliasing): Correctly walk all
2808 pointers. Do not unnecessarily union sets.
2810 2008-04-23 Richard Guenther <rguenther@suse.de>
2813 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
2815 2008-04-22 Tomas Bily <tbily@suse.cz>
2817 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
2819 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
2821 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2822 * tree-ssa-structalias.c (get_constraint_for): Likewise.
2823 * tree-inline.c (estimate_num_insns_1): Likewise.
2824 * varasm.c (const_hash_1, compare_constant, copy_constant)
2825 (compute_reloc_for_constant, output_addressed_constants): Likewise.
2826 * emit-rtl.c (component_ref_for_mem_expr)
2827 (set_mem_attributes_minus_bitpos): Likewise.
2828 * expr.c (highest_pow2_factor, expand_expr_real_1, )
2829 (is_aligning_offset): Likewise.
2830 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
2831 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2832 * dojump.c (do_jump): Likewise.
2833 * builtins.c (get_pointer_alignment, get_memory_rtx)
2834 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
2835 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
2837 2008-04-23 Jakub Jelinek <jakub@redhat.com>
2839 PR rtl-optimization/36017
2840 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
2841 expanding the library call.
2843 2008-04-22 Ian Lance Taylor <iant@google.com>
2845 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
2848 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
2850 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
2851 of LR/CTR moves for Power6.
2853 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2856 * passes.c (init_optimization_passes): Remove
2857 pass_fast_rtl_byte_dce.
2859 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
2862 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
2863 builtin functions to generate faster code.
2864 (_mm_cvtpu16_ps): Ditto.
2865 (_mm_cvtpi32x2_ps): Ditto.
2867 2008-04-22 Nick Clifton <nickc@redhat.com>
2869 * common.opt (ftree-loop-distribution): Add Optimization
2872 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
2873 (frv_expand_builtin_va_start): Likewise.
2875 * config/arm/arm.c (thumb_find_work_register): Fix location of
2876 argument register count.
2878 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
2880 Support scheduling for ColdFire V1 and V3 microarchitecture.
2881 Improve scheduling of multiplication instructions.
2883 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
2884 (mac): New instruction attribute.
2885 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
2886 (m68k_sched_mac): New variable.
2887 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
2888 Handle cfv1 and cfv3.
2889 (max_insn_size): New static variable.
2890 (struct _sched_ib): New type.
2891 (sched_ib): New static variable.
2892 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
2893 to fields of 'struct _sched_ib sched_ib'. Update all uses.
2894 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
2896 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
2897 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
2898 new variables. Update.
2899 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2900 Add modeling of cfv3 instruction buffer. Update.
2901 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
2902 * config/m68k/m68k.h (TUNE_CFV3): New macro.
2903 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
2904 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
2905 a particular reservation applies to.
2906 (type2): Reorganize attribute values. Rename alu to alu_reg,
2907 alu_l to alu, move_l to omove. Join move to alu. Split mul
2909 (cf_ib_*): Simplify description of instruction buffer.
2910 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
2911 (cf_mem): Split into cf_mem1 and cf_mem2.
2912 (cf_v2_move_??): Rename to cfv12_alu_??.
2913 (cf_v2_move_l_??): Rename to cfv12_omove_??.
2914 (cf_v2_mul_??): Remove reservations.
2915 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
2916 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
2917 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
2919 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
2920 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
2921 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
2922 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
2923 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
2924 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
2925 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
2926 expansions of the above reservations for instructions of sizes
2929 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
2931 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
2933 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
2935 * coverage.c: Include tree-pass.h.
2936 (coverage_counter_alloc): Print da_file_name to the dump file.
2938 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
2940 * sbitmap.c (sbitmap_range_empty_p): New function.
2941 * sbitmap.h (sbitmap_range_empty_p): New function.
2942 * bitmap.h: Now includes obstack.h.
2944 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
2945 Kenneth Zadeck <zadeck@naturalbridge.com>
2947 * dbgcnt.def (ra_byte_scan): Added.
2948 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
2949 when the last hit happens for a counter.
2950 * timevar.def (TV_DF_BYTE_LR): New variable.
2951 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
2952 * passes.c (pass_fast_rtl_byte_dce): New pass.
2953 * fwprop.c (update_df): Added mode to call df_ref_create.
2954 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2955 DF_REF_EXTRACT_OFFSET.
2956 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
2957 DF_BYTE_LR_OUT, df_byte_lr): New macro.
2959 (df_ref_extract): Added mode field.
2960 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
2961 DF_REF_EXTRACT_OFFSET.
2962 (DF_REF_EXTRACT_MODE): New macro.
2963 (df_byte_lr_bb_info): New structure.
2964 (df_print_byte_regset, df_compute_accessed_bytes,
2965 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
2966 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
2967 df_byte_lr_simulate_uses,
2968 df_byte_lr_simulate_artificial_refs_at_top,
2969 df_byte_lr_simulate_artificial_refs_at_end,
2970 df_compute_accessed_bytes): New function.
2971 (df_ref_create): Add parameter.
2972 (df_byte_lr_get_bb_info): New inline function.
2973 * df-scan.c (df_ref_record, df_uses_record,
2974 df_ref_create_structure): Added mode parameter.
2975 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
2976 df_defs_record, df_uses_record, df_get_conditional_uses,
2977 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
2978 df_entry_block_defs_collect, df_exit_block_uses_collect):
2979 Added mode parameter to calls to df_ref_record, df_uses_record,
2980 df_ref_create_structure.
2981 (df_ref_equal_p, df_ref_compare): Added test for modes.
2982 (df_ref_create_structure): Added code to set mode. Renamed
2983 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2984 DF_REF_EXTRACT_OFFSET.
2985 * df-core.c (df_print_byte_regset): New function.
2986 * df-byte-scan.c: New file.
2987 * df-problems.c (df_rd_transfer_function): Removed unnecessary
2988 calls to BITMAP_FREE.
2989 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
2990 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
2991 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
2992 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
2993 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
2994 df_byte_lr_local_compute, df_byte_lr_init,
2995 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
2996 df_byte_lr_transfer_function, df_byte_lr_free,
2997 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
2998 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
2999 df_byte_lr_simulate_uses,
3000 df_byte_lr_simulate_artificial_refs_at_top,
3001 df_byte_lr_simulate_artificial_refs_at_end): New function.
3002 * dce.c (byte_dce_process_block): New function.
3003 (dce_process_block): au is now passed in rather than computed
3004 locally. Changed loops that look at artificial defs to not look
3005 for conditional or partial ones, because there never are any.
3006 (fast_dce): Now is able to drive byte_dce_process_block or
3007 dce_process_block depending on the kind of dce being done.
3008 (rest_of_handle_fast_dce): Add parameter to fast_dce.
3009 (rest_of_handle_fast_byte_dce): New function.
3010 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
3011 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
3013 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
3016 * gcc.h: Added fortran options that take arguments to
3017 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
3020 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
3022 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
3023 scalarization if on the LHS and not a full access.
3025 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3027 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
3029 2008-04-18 Rafael Espindola <espindola@google.com>
3031 * tree-vrp.c (find_case_label_index): Fix the binary search.
3032 (find_case_label_range): New.
3033 (vrp_visit_switch_stmt): Use find_case_label_range.
3034 (simplify_switch_using_ranges): Use find_case_label_range.
3036 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
3038 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
3039 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
3041 2008-04-18 Tom Tromey <tromey@redhat.com>
3044 * doc/cpp.texi (Implementation-defined behavior): Mention
3047 2008-04-18 Ian Lance Taylor <iant@google.com>
3049 * fold-const.c (pointer_may_wrap_p): New static function.
3050 (fold_comparison): Add another test for pointer overflow. Use
3051 pointer_may_wrap_p to disable some false positives.
3053 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
3055 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
3056 (fname_as_string): Match updated cpp_interpret_string prototype.
3057 (fix_string_type): Support char16_t* and char32_t*.
3058 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
3059 derivative) nodes. Register as builtin if C++0x.
3060 (c_parse_error): Support CPP_CHAR{16,32}.
3061 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
3062 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
3063 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
3064 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
3065 CTI_CHAR32_ARRAY_TYPE>: New elements.
3066 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
3067 char32_type_node, signed_char32_type_node, char16_array_type_node,
3068 char32_array_type_node): New defines.
3069 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
3070 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
3071 (lex_string): Support CPP_STRING{16,32}, match updated
3072 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
3073 (lex_charconst): Support CPP_CHAR{16,32}.
3074 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
3075 and CPP_STRING{16,32}.
3077 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
3080 * aclocal.m4: Regenerate.
3081 * configure: Regenerate.
3083 2008-04-18 Jan Hubicka <jh@suse.cz>
3085 * except.c (dw2_size_of_call_site_table,
3086 sjlj_size_of_call_site_table): Use vector API for call_site_record.
3088 * cgraphbuild.c (build_cgraph_edges): Update.
3089 * tree-pass.h: Update comment.
3090 * final.c (leaf_function_p): Update.
3091 (leaf_renumber_regs): Update.
3092 (rest_of_clean_state): Update.
3093 * omp-low.c (expand_omp_parallel): Update.
3094 * ipa-reference.c (analyze_function): Update.
3095 * reorg.c (find_end_label): Update.
3096 (optimize_skip): Update.
3097 (fill_simple_delay_slots): Update.
3098 (fill_simple_delay_slots): Update.
3099 (make_return_insns): Update.
3100 (dbr_schedule): Update.
3101 * gimple-low.c (record_vars_into): Update.
3102 * cfgbuild.c (make_edges): Update.
3103 * function.c (assign_stack_local): Update.
3104 (assign_parm_adjust_stack_rtl): Update.
3105 (locate_and_pad_parm): Update.
3106 (allocate_struct_function): Do not initialize stack_alignment_needed
3107 and preferred_stack_boundary here.
3108 (stack_protect_prologue): Update.
3109 (stack_protect_epilogue): Update.
3110 (expand_function_start): Initialize stack_alignment_needed,
3111 preferred_stack_boundary and max_jumptable_ents.
3112 (expand_function_end): Update.
3113 (free_after_compilation): Do not NULLify epilogue_delay_list.
3114 * function.h (struct rtl_data): Add stack_protect_guard,
3115 stack_alignment_needed,
3116 preferred_stack_boundary, epilogue_delay_list.
3117 (struct function): Remove value_histograms, stack_alignment_needed,
3118 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
3120 unexpanded_var_list, stack_protect_guard.
3121 (current_function_epilogue_delay_list): Remove.
3122 * ipa-type-escape.c (analyze_function): Update.
3123 * gimplify.c (pop_gimplify_context): Update comment.
3124 * calls.c (expand_call): Update.
3125 (emit_library_call_value_1): Update.
3126 * except.c (set_nothrow_function_flags): Update.
3127 * cfgexpand.c (get_decl_align_unit): Update.
3128 (create_stack_guard): Update.
3129 (estimated_stack_frame_size): Update.
3130 (expand_used_vars): Update.
3131 (tree_expand_cfg): Free histogram earliers, init expansion variables.
3132 * explow.c (allocate_dynamic_stack_space): Update.
3133 * tree-ssa-live.c (remove_unused_locals): Update.
3134 * varasm.c (mark_constant_pool): Update.
3135 * tree-inline.c (remap_decls): Update.
3136 (initialize_cfun): Update.
3137 (declare_return_variable): Update.
3138 (inline_forbidden_p): Update.
3139 (expand_call_inline): Update.
3140 (declare_inline_vars): Update.
3141 (tree_function_versioning): Update.
3142 * tree-flow.h (value_histograms): New.
3143 (VALUE_HISTOGRAMS): New macro.
3144 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
3146 * tree-cfg.c (set_bb_for_stmt): Update.
3147 (replace_by_duplicate_decl): Update.
3148 (move_block_to_fn): Update.
3149 (new_label_mapper): Update.
3150 (dump_function_to_file): Update.
3151 * ipa-struct-reorg.c (build_data_structure): Update.
3152 * cfgrtl.c (print_rtl_with_bb): Update.
3153 * reload1.c (reload): Update.
3155 * config/i386/i386.c (setup_incoming_varargs_64,
3156 ix86_compute_frame_layout): Update.
3157 * config/arc/arc.c (arc_output_function_epilogue): Update.
3159 2008-04-18 Marius Strobl <marius@FreeBSD.org>
3161 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
3162 for FreeBSD as well.
3163 * gthr-posix95.h: Likewise.
3165 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
3167 PR rtl-optimization/35838
3168 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
3169 out the byte offset of the first subreg.
3171 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
3173 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
3174 to split_ti instead of three separate calls with single member arrays.
3175 (subti3 splitter): Ditto.
3176 (adddi3 splitter): Ditto with split_di.
3177 (subdi3 splitter): Ditto.
3178 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
3179 two separate calls with single member arrays. Swap match_dup
3180 operands 1 and 2 to better fit into the array.
3181 (negdi2 splitter): Ditto with split_di.
3182 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
3183 two separate calls with single member arrays. Swap match_dup operands
3184 6 and 7 to better fit into the array.
3186 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
3188 * config/i386/i386.c (sse_builtin_type): New.
3189 (bdesc_sse_args): Likewise.
3190 (bdesc_sse_3arg): Removed.
3191 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
3192 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
3193 IX86_BUILTIN_ROUNDPS.
3194 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
3195 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
3196 IX86_BUILTIN_ROUNDPS.
3197 (ix86_expand_sse_4_operands_builtin): Removed.
3198 (ix86_expand_sse_operands_builtin): New.
3199 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
3200 and CODE_FOR_sse4_1_roundps.
3201 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
3202 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
3204 2008-04-17 Alan Modra <amodra@bigpond.net.au>
3207 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
3208 regs before frame pop when needed. If use_backchain_to_restore_sp
3209 then load backchain into a temp reg to restore vr and vrsave. Add
3210 code to restore vr after frame pop if possible.
3212 2008-04-17 Richard Guenther <rguenther@suse.de>
3214 * tree-vn.c (expressions_equal_p): Do not check type
3215 equality or compatibility before calling operand_equal_p.
3216 * fold-const.c (operand_equal_p): Check equivalence of
3217 integer constants before bailing out due to signedness or
3218 precision differences.
3219 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
3220 spurious differences in type qualification. Ignore types
3221 for COMPONENT_REFs at all.
3223 2008-04-17 Christian Bruel <christian.bruel@st.com>
3225 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
3226 msw_skip comparison.
3228 2008-04-16 Jakub Jelinek <jakub@redhat.com>
3231 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
3234 PR tree-optimization/35899
3235 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
3236 rather than TREE_OPERAND.
3238 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
3241 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
3242 temporary registers. Change operand predicate to general_operand.
3243 (remainderxf3): Ditto.
3245 2008-04-16 Richard Guenther <rguenther@suse.de>
3247 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
3248 * tree-affine.c (aff_combination_expand): Look through some
3251 2008-04-15 Doug Kwan <dougkwan@google.com>
3253 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
3255 * tree-pretty-print.c (dump_generic_node): Ditto.
3256 * final.c (output_addr_const): Ditto.
3257 * dwarf2out.c (output_cfi): Ditto.
3258 * c-pretty-print.c (pp_c_integer_constant): Ditto.
3259 * print-rtl.c (print_rtx): Ditto.
3260 * print-tree.c (print_node_brief, print_node): Ditto.
3261 * c-common.c (match_case_to_enum_1): Ditto.
3262 * sched-vis.c (print_value): Ditto.
3263 * config/i386/i386.c (print_operand): Cast to long unsigned int
3266 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
3267 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
3268 MS Windows VirtualProtect function.
3270 2008-04-15 Jan Hubicka <jh@suse.cz>
3272 * gengtype.c (write_root): Param_is argument is OK.
3273 * expr.c (expand_expr_real_1): Update call of get_exception_*.
3274 * function.h: Include varray.h
3275 (rtl_eh): New stucture based on except.c one.
3276 (call_site_record): New forward declaration and vector type.
3277 * calls.c (emit_call_1): Do not call
3278 note_current_region_may_contain_throw.
3279 * except.c (eh_status): Remove cur_region, try_region since they are
3281 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
3282 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
3283 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
3284 Remove call_site_data_used, call_site_data_size.
3285 Turn call_site_record into vector in function.h.
3286 (note_current_region_may_contain_throw): Remove.
3287 (get_exception_pointer, get_exception_filter): Do not take struct
3288 function argument; update.
3289 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
3290 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
3291 build_post_landing_pads, dw2_build_landing_pads,
3292 sjlj_assign_call_site_values, sjlj_mark_call_sites,
3293 sjlj_emit_function_enter, sjlj_emit_function_enter,
3294 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
3295 sjlj_build_landing_pads, finish_eh_generation,
3296 remove_exception_handler_label, remove_eh_handler,
3297 maybe_remove_eh_handler, add_reachable_handler,
3298 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
3299 add_action_record, collect_one_action_chain, add_call_site,
3300 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
3301 sjlj_output_call_site_table, output_function_exception_table,
3302 * except.h (note_current_region_may_contain_throw): Remove
3303 (get_exception_pointer, get_exception_filter): Do not take struct
3305 * Makefile.in (GTFILES): Put varargs before struct function.
3307 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
3309 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
3310 punt for STRING_CST.
3311 (get_constraint_for): Deal with STRING_CST here instead.
3313 2008-04-15 Richard Guenther <rguenther@suse.de>
3315 * tree-ssa-propagate.c (substitute_and_fold): Substitute
3316 statements in a basic-block with a backward walk. Do not
3317 substitute into dead statements but instead remove those.
3319 2008-04-15 Richard Guenther <rguenther@suse.de>
3321 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
3322 to zero, thus disable creation of SFTs.
3324 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
3326 * tree-predcom.c (suitable_reference_p): Return false if the
3327 reference can throw.
3329 2008-04-15 Jakub Jelinek <jakub@redhat.com>
3332 * c-decl.c (finish_decl): If extern or static var has variable
3333 size, set TREE_TYPE (decl) to error_mark_node.
3335 2008-04-15 Rafael Espindola <espindola@google.com>
3337 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
3340 2008-04-15 Richard Guenther <rguenther@suse.de>
3342 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
3343 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
3344 (visit_reference_op_load): Do walk vuse-vdef chains on
3345 vn_reference_lookup.
3346 (visit_reference_op_store): But do not here.
3347 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
3348 vn_reference_lookup.
3349 (vn_lookup_with_vuses): But do so here.
3351 2008-04-14 Ian Lance Taylor <iant@google.com>
3353 * fold-const.c (fold_overflow_warning): Remove assertion.
3355 2008-04-15 Ben Elliston <bje@au.ibm.com>
3357 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
3358 temp1 local variables.
3360 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
3363 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
3364 ".text.unlikely" section as executable.
3366 2008-04-14 James E. Wilson <wilson@tuliptree.org>
3368 * config/ia64/ia64.c (rtx_needs_barrier): Handle
3369 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
3370 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
3371 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
3372 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
3373 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,