1 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
3 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
5 From Jie Zhang <jie.zhang@analog.com>
6 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
8 mcpu=bf561-none and mcpu=bf561-0.2.
9 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
10 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
11 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
15 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for
17 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
19 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
20 (cputype_selected): Remove.
21 (bfin_handle_option): Don't use cputype_selected.
22 (override_options): When no mcpu option, enable all workarounds.
23 Don't use bfin_workarounds.
24 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
26 (DEFAULT_CPU_TYPE): Don't define.
28 2008-05-16 Richard Guenther <rguenther@suse.de>
30 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
31 on deletion of the last stmt.
33 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
35 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
36 V8HImode for SSE2 and V16QImode for SSE4.1.
38 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
40 * cgraph.h (compute_inline_parameters): Made public.
41 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
42 variable_generate_summary, function_write_summary,
43 variable_write_summary, variable_read_summary. Added
44 generate_summary, write_summary, read_summary.
45 * cgraphunit.c (cgraph_process_new_functions): Changed call from
46 pass_ipa_inline.function_generate_summary, to
47 compute_inline_parameters.
48 * ipa-inline.c (compute_inline_parameters): Made public and added
50 (compute_inline_parameters_for_current): New function.
51 (pass_inline_param): Now calls
52 compute_inline_parameters_for_current.
53 (inline_generate_summary): Removed parameter and made to loop over
55 (pass_ipa_inline): Updated for new IPA_PASS structure.
56 * passes.c (execute_ipa_summary_passes): Now is called once per
57 pass rather than once per node*pass.
59 2008-05-15 Anatoly Sokolov <aesok@post.ru>
61 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
62 avr_have_mul_p, avr_asm_only_p): Remove variables.
63 (avr_override_options): Remove initialization of removed variables.
64 (avr_file_start): Convert removed variables to fields of
65 'struct base_arch_s *avr_current_arch'.
66 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
67 (AVR_HAVE_MUL): (Ditto.).
68 (AVR_HAVE_MOVW): (Ditto.).
69 (AVR_HAVE_LPMX): (Ditto.).
70 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
71 avr_asm_only_p): Remove declaration.
73 2008-05-15 Diego Novillo <dnovillo@google.com>
75 * config/arm/arm.c (arm_return_in_memory): Fix return
77 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
79 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
82 * combine.c (check_conversion): Rename back to check_promoted_subreg.
83 Don't call record_truncated_value from here.
84 (record_truncated_value): Turn it into a for_each_rtx callback.
85 (record_truncated_values): New function.
86 (combine_instructions): Call note_uses with
87 record_truncated_values. Change name of check_conversion to
88 check_promoted_subreg.
90 2008-05-15 Janis Johnson <janis187@us.ibm.com>
92 * doc/sourcebuild.texi: Document support for torture tests.
94 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
96 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
97 to alternative 4 of operand 2.
99 2008-05-15 Richard Guenther <rguenther@suse.de>
101 * tree-pass.h (current_pass): Declare.
102 (get_pass_for_id): Likewise.
103 * passes.c (passes_by_id, passes_by_id_size): New globals.
104 (set_pass_for_id): New function.
105 (get_pass_for_id): Likewise.
106 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
107 (execute_function_todo): Flush per function statistics.
108 * toplev.c (compile_file): Init statistics.
109 (general_init): Do early statistics initialization.
110 (finalize): Finish statistics.
111 * statistics.h (statistics_early_init): Declare.
112 (statistics_init): Likewise.
113 (statistics_fini): Likewise.
114 (statistics_fini_pass): Likewise.
115 (statistics_counter_event): Likewise.
116 (statistics_histogram_event): Likewise.
117 * statistics.c: New file.
118 * Makefile.in (OBJS-common): Add statistics.o.
119 (statistics.o): Add dependencies.
120 * doc/invoke.texi (-fdump-statistics): Document.
122 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
124 (execute_pre): Use statistics_counter_event.
125 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
126 (substitute_and_fold): Increment it. Use statistics_counter_event.
128 2008-05-15 Diego Novillo <dnovillo@google.com>
130 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
132 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
133 * tree-ssa-alias.c (new_type_alias): Remove references to
134 sub-variables from comment.
135 * tree-ssa-operands.c (swap_tree_operands): Likewise.
137 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
139 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
140 attribute to 1 only for insertps alternative.
142 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
144 * config/bfin/bfin.md (loadbytes): New pattern.
145 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
146 (bfin_init_builtins): Initialize it.
147 (bdesc_1arg): Add it.
149 2008-05-15 Sa Liu <saliu@de.ibm.com>
151 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
152 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
153 * testsuite/lib/target-supports.exp: Add
154 check_effective_target_fortran_integer_16.
156 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
158 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
159 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
160 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
161 (TARGET_RETURN_IN_MEMORY): Define.
163 2008-05-15 Richard Guenther <rguenther@suse.de>
166 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
167 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
168 represent unmodifiable vars.
170 2008-05-15 Richard Guenther <rguenther@suse.de>
172 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
173 INDIRECT_REF and TARGET_MEM_REF.
174 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
177 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
178 H.J. Lu <hongjiu.lu@intel.com>
180 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
181 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
182 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
183 insn alternatives. Add missing alternatives.
184 (*vec_concatv2di_rex64_sse4_1): Likewise.
185 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
186 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
189 2008-05-15 Richard Guenther <rguenther@suse.de>
191 PR tree-optimization/36009
192 PR tree-optimization/36204
193 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
194 (determine_invariantness_stmt): Record the loop a store is
196 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
199 2008-05-15 Richard Guenther <rguenther@suse.de>
201 PR tree-optimization/34330
202 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
203 through the pointer will alias the SMT.
205 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
207 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
209 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
211 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
213 2008-05-14 Michael Meissner <michael.meissner@amd.com>
214 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
216 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
217 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
218 (vashl_optab): New optab for vector/vector shifts.
219 (vashr_optab): Ditto.
220 (vlshr_optab): Ditto.
221 (vrotl_optab): Ditto.
222 (vrotr_optab): Ditto.
223 (optab_subtype): New enum for optab_for_tree_code call.
224 (optab_for_tree_code): Add enum optab_subtype argument.
226 * optabs.c (optab_for_tree_code): Take an additional argument to
227 distinguish between a vector shift by a scalar and vector shift by
228 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
229 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
230 vector shift by a vector.
231 (expand_widen_pattern_expr): Pass additional argument to
234 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
235 vrotl_optab, vrotr_optab.
237 * expr.c (expand_expr_real_1): Update calls to
238 optab_for_tree_code to distinguish between vector shifted by a
239 scalar and vector shifted by a vector.
240 * tree-vectorizer.c (supportable_widening_operation): Ditto.
241 (supportable_narrowing_operation): Ditto.
242 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
243 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
244 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
245 (vect_create_epilog_for_reduction): Ditto.
246 (vectorizable_reduction): Ditto.
247 (vectorizable_operation): Ditto.
248 (vect_strided_store_supported): Ditto.
249 (vect_strided_load_supported): Ditto.
250 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
251 * expmed.c (expand_shift): Ditto.
253 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
255 (ashr@var{m}3): Ditto.
256 (vashl@var{m}3): Document new vector/vector shift standard name.
257 (vashr@var{m}3): Ditto.
258 (vlshr@var{m}3): Ditto.
259 (vrotl@var{m}3): Ditto.
260 (vrotr@var{m}3): Ditto.
262 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
263 (PPERM_INVERT): Ditto.
264 (PPERM_REVERSE): Ditto.
265 (PPERM_REV_INV): Ditto.
269 (PPERM_INV_SIGN): Ditto.
273 * config/i386/sse.md (mulv2di3): Add SSE5 support.
274 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
275 allows a memory operand to be the value being added, and split it
276 to improve vectorization.
277 (sse5_pmacsdqh_mem): Ditto.
278 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
279 (sse5_mulv2div2di3_high): Ditto.
280 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
281 (vec_pack_trunc_v4si): Ditto.
282 (vec_pack_trunc_v2di): Ditto.
283 (sse5_pcmov_<mode>): Remove code that tried to use use
284 andps/andnps instead of pcmov.
285 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
286 pmacsdqh instructions.
287 (vec_widen_smult_lo_v4si): Ditto.
289 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
290 (PPERM_INVERT): Ditto.
291 (PPERM_REVERSE): Ditto.
292 (PPERM_REV_INV): Ditto.
296 (PPERM_INV_SIGN): Ditto.
299 (ix86_expand_sse_movcc): Move the SSE5 test after the if
301 (ix86_expand_int_vcond): If SSE5 generate all possible integer
303 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
304 says ignore whether the last reference is a memory operand.
306 2008-05-14 Michael Meissner <michael.meissner@amd.com>
307 Paolo Bonzini <bonzini at gnu dot org>
309 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
312 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
313 (vlshr<mode>3): Rename from vlshr<mode>3.
314 (vashr<mode>3): Rename from vashr<mode>3.
315 (mulv4sf3): Change the names of vector shift patterns.
319 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
322 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
347 * config/spu/spu.md (v): New iterator macro to add v for vector types.
348 (floatunssidf2_internal): Change vector/vector shift names.
349 (floatunsdidf2_internal): Ditto.
356 (vashl<mode>3): Rename from ashl<mode>3.
357 (vashr<mode>3): Rename from ashr<mode>3.
358 (vlshr<mode>3): Rename from lshr<mode>3.
359 (vrotl<mode>3): Rename from rotl<mode>3.
361 2008-05-14 Michael Meissner <michael.meissner@amd.com>
364 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
365 multiply gives the wrong value when doing widening multiplies.
366 (vec_widen_smult_lo_v4si): Ditto.
368 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
370 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
371 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
372 emit_library_call_value.
373 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
374 * tree.h (ECF_LIBCALL_BLOCK): Removed.
375 * calls.c (initialize_argument_information, precompute_arguments,
376 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
377 (precompute_arguments): Removed flags parameter.
378 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
380 2008-05-14 Richard Guenther <rguenther@suse.de>
382 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
383 Make sure to register the store if the use is a PHI_NODE.
385 2008-05-14 Olivier Hainque <hainque@adacore.com>
387 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
388 memory if the component is to be referenced in BLKmode according
389 to get_inner_reference.
391 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
393 * calls.c (emit_library_call_value_1): Restore code clearing
394 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
396 2008-05-14 Olivier Hainque <hainque@adacore.com>
397 Nicolas Roche <roche@adacore.com>
399 * configure.ac: Add support for a "gcc_subdir" variable in
400 config-lang.in, to denote a subdirectory where the language/GCC
401 integration files are to be found.
402 * configure: Regenerate.
404 2008-05-14 Ira Rosen <irar@il.ibm.com>
406 PR tree-optimization/36098
407 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
408 value for the first load in the group in case of a gap.
409 (vect_build_slp_tree): Check that there are no gaps in loads.
411 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
413 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
414 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
415 expand_copysign_bit, ): Change call to emit_no_conflict_block to
416 emit_insn and remove unneeded code to construct extra args.
417 (emit_no_conflict_block): Removed.
418 * optabls.h: (emit_no_conflict_block): Removed.
419 * cse.c (cse_extended_basic_block): Remove search for
420 REG_NO_CONFLICT note.
421 * global.c: Removed incorrect comment added in revision 117.
422 * expr.c (convert_move): Change call to emit_no_conflict_block to
424 * recog.c: Change comments so that they do not mention
426 * local_alloc.c (combine_regs): Removed last parameter.
427 (no_conflict_p): Removed.
428 (block_alloc): Removed note, no_conflict_combined_regno and set
429 local vars. Removed all code to process REG_NO_CONFLICT blocks.
430 (combine_regs): Removed already_dead and code to look for
431 REG_NO_CONFLICT notes.
432 * lower_subreg (remove_retval_note): Removed code to look for
433 REG_NO_CONFLICT block.
434 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
435 (resolve_clobber): Remove code to process libcalls that have
436 REG_NO_CONFLICT notes.
437 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
439 * combine.c (can_combine_p, distribute_notes): Removed
440 REG_NO_CONFLICT case.
441 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
443 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
444 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
446 * reg-notes.def (NO_CONFLICT): Removed.
448 2008-05-14 David S. Miller <davem@davemloft.net>
450 * config/sparc/sparc.c (sparc_profile_hook): If
451 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
452 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
453 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
455 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
457 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
459 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
462 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
463 and op1 expansion before vector concat to have less live pseudos.
465 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
467 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
468 ix86_expand_vector_set if supported.
470 2008-05-13 Diego Novillo <dnovillo@google.com>
471 Kenneth Zadeck <zadeck@naturalbridge.com>
473 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
475 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
476 phinodes_print_statistics, init_ssanames, fini_ssanames,
477 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
478 release_ssa_name, release_defs, replace_ssa_name_symbol,
479 ssanames_print_statistics): Move ...
480 * tree-flow.h: ... here.
481 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
482 Use FN instead of cfun.
483 (make_ssa_name_fn): Rename from make_ssa_name.
484 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
485 * tree-flow-inline.h (make_ssa_name): Move from
486 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
487 * omp-low.c (expand_omp_parallel):
488 * tree-flow-inline.h (redirect_edge_var_map_result):
489 * tree-ssa.c (init_tree_ssa): Add argument FN.
490 Use it instead of cfun. Update all users.
492 2008-05-13 Tom Tromey <tromey@redhat.com>
494 PR preprocessor/22168:
495 * doc/cpp.texi (Top): Update menu.
496 (Alternatives to Wrapper #ifndef): New node.
497 (Other Directives): Document deprecation.
498 (Obsolete Features): Remove menu.
499 (Assertions): Merge node into Obsolete Features.
500 (Obsolete once-only headers): Move earlier; rename to Alternatives
502 * doc/cppopts.texi: Update.
503 * c.opt (Wdeprecated): Enable for C and ObjC.
504 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
505 (C++ Dialect Options): Move -Wno-deprecated from here to...
506 (Warning Options): ... here.
508 2008-05-13 Richard Guenther <rguenther@suse.de>
511 * fold-const.c (fold_sign_changed_comparison): Do not allow
512 changes in pointer-ness.
514 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
517 * config/sh/sh.c (sh_expand_prologue): Don't clear
518 RTX_FRAME_RELATED_P for push insns.
520 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
522 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
524 2008-05-12 Anatoly Sokolov <aesok@post.ru>
526 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
527 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
528 Use 'machine->is_leaf' instead of 'leaf_func_p'.
530 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
532 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
533 (*vec_concatv4sf_sse): This.
534 (*sse2_concatv2si): Renamed to ...
535 (*vec_concatv2si_sse2): This.
536 (*sse1_concatv2si): Renamed to ...
537 (*vec_concatv2si_sse): This.
538 (*vec_concatv2di_rex): Renamed to ...
539 (*vec_concatv2di_rex64): This.
540 (*vec_concatv2si_sse4_1): New.
541 (*vec_concatv2di_rex64_sse4_1): Likewise.
543 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
545 PR rtl-optimization/36111
546 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
547 that was created for swappable operands.
549 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
552 * Makefile.in: Substitute GNATMAKE and GNATBIND.
553 * configure.ac: Add call to ACX_PROG_GNAT.
555 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
557 * optc-gen.awk: Fix comment typo.
559 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
561 * pretty-print.c (pp_integer_with_precision): Use
562 HOST_LONG_LONG_FORMAT.
564 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
566 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
568 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
570 * config/i386/i386.c (bdesc_ptest): Removed.
571 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
572 (bdesc_args): Add __builtin_ia32_ptestz128,
573 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
574 (ix86_init_mmx_sse_builtins): Updated.
575 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
576 (ix86_expand_builtin): Updated.
578 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
580 * tree-cfg.c (valid_fixed_convert_types_p): New function.
581 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
583 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
585 * value-prof.c (interesting_stringop_to_profile): Do not
586 return early for BUILT_IN_MEMPCPY.
588 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
590 * calls.c (expand_call): Don't use callgraph to increase
591 preferred_stack_boundary.
593 * cgraph.h (cgraph_rtl_info): Use unsigned on
594 preferred_incoming_stack_boundary.
596 * final.c (rest_of_clean_state): Use unsigned on
597 preferred_stack_boundary.
599 2008-05-09 Tom Tromey <tromey@redhat.com>
601 PR preprocessor/22231:
602 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
605 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
607 PR tree-optimization/36129
608 * tree-ssa-ccp.c: Include value-prof.h.
609 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
610 built-in function was folded to a constant.
611 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
613 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
614 Sebastian Pop <sebastian.pop@amd.com>
616 * tree-scalar-evolution.c: Document instantiate_scev.
617 (instantiate_parameters_1): Renamed instantiate_scev_1.
618 Don't use the same loop for instantiation_loop and evolution_loop.
619 (instantiate_scev): New.
620 (instantiate_parameters): Moved...
621 (resolve_mixers): Update call to instantiate_scev_1 to pass the
622 same loop twice. Maintains the semantics for this function.
623 * tree-scalar-evolution.h (instantiate_scev): Declare.
624 (instantiate_parameters): ...here. Now static inline.
625 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
626 instead of resolve_mixers.
628 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
630 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
632 2008-05-09 Tomas Bily <tbily@suse.cz>
634 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
635 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
636 * tree-ssa-structalias.c (get_constraint_for): Likewise.
637 * c-common.c (c_common_truthvalue_conversion): Likewise.
638 * tree-object-size.c (compute_object_offset): Likewise.
639 * tree-inline.c (estimate_num_insns_1): Likewise.
640 * varasm.c (const_hash_1, compare_constant, copy_constant)
641 (compute_reloc_for_constant, output_addressed_constants)
642 (initializer_constant_valid_p): Likewise.
643 * c-omp.c (check_omp_for_incr_expr): Likewise.
644 * gimplify.c (gimplify_expr): Likewise.
645 * c-typeck.c (c_finish_return): Likewise.
646 * tree-vectorizer.c (supportable_widening_operation)
647 (supportable_narrowing_operation): Likewise.
648 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
649 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
650 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
651 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
652 (descr_info_loc): Likewise.
653 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
654 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
655 (fold_unary): Likewise.
656 * builtins.c (get_pointer_alignment): Likewise.
657 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
658 (instantiate_parameters_1): Likewise.
659 * tree.c (expr_align, stabilize_reference): Likewise.
660 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
661 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
662 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
663 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
664 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
665 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
667 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
668 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
669 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
670 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
671 (forward_propagate_comparison)
672 (tree_ssa_forward_propagate_single_use_vars): Likewise.
673 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
674 * emit-rtl.c (component_ref_for_mem_expr)
675 (set_mem_attributes_minus_bitpos): Likewise.
676 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
677 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
679 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
680 (build_function_call, pointer_diff, build_compound_expr)
681 (c_finish_return): Likewise.
682 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
683 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
685 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
686 * expr.c (is_aligning_offset): Likewise.
687 * tree-ssa-alias.c (is_escape_site): Likewise.
688 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
689 (check_all_va_list_escapes): Likewise.
690 * tree-ssa-loop-ivopts.c (determine_base_object)
691 (determine_common_wider_type): Likewise.
692 * dojump.c (do_jump): Likewise.
693 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
694 * tree-gimple.c (is_gimple_cast): Likewise.
695 * fold-const.c (decode_field_reference, )
696 (fold_sign_changed_comparison, fold_unary, fold_comparison)
697 (fold_binary): Likewise.
698 * tree-ssa-alias-warnings.c (find_alias_site_helper)
699 (already_warned_in_frontend_p): Likewise.
700 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
701 * tree.c (really_constant_p, get_unwidened): Likewise.
702 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
703 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
704 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
706 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
708 (CONVERT_EXPR_P): Define.
709 (CASE_CONVERT): Define.
711 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
714 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
715 (delete_unmarked_insns): When deleting a call, call
716 delete_unreachable_blocks.
717 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
718 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
720 2008-05-08 Richard Guenther <rguenther@suse.de>
722 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
723 (-ftree-salias): Likewise.
724 (salias-max-implicit-fields): Remove param documentation.
725 (salias-max-array-elements): Likewise.
726 * tree-pass.h (pass_create_structure_vars): Remove.
727 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
728 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
729 * tree-ssa-alias.c (create_structure_vars): Remove.
730 (gate_structure_vars): Likewise.
731 (pass_create_structure_vars): Likewise.
732 (gate_build_alias): Likewise.
733 (pass_build_alias): Adjust to run always and dump the function.
734 * common.opt (ftree-salias): Hide.
735 * passes.c (init_optimization_passes): Remove
736 pass_create_structure_vars, adjust comment.
737 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
738 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
739 * opts.c (decode_options): Do not set flag_tree_salias.
740 (common_handle_option): Add OPT_ftree_salias to the backward
741 compatibility section.
743 2008-05-08 Richard Guenther <rguenther@suse.de>
745 * tree-flow-inline.h (var_can_have_subvars): Move ...
746 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
747 * tree-flow.h (var_can_have_subvars): Remove.
748 (push_fields_onto_fieldstack): Remove.
749 (sort_fieldstack): Likewise.
750 (struct fieldoff): Move ...
751 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
752 alias_set and base_for_components fields.
753 (sort_fieldstack): Make static.
754 (push_fields_onto_fieldstack): Likewise. Remove code that
755 handles anything but RECORD_TYPEs. Remove alias_set and
756 base_for_components handling.
757 (create_variable_info_for): Adjust.
759 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
761 * common.opt (Wframe-larger-than=): Shorten the help message
763 * doc/invoke.texi (Wframe-larger-than=): Add more description.
765 2008-05-08 Rafael Espindola <espindola@google.com>
767 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
769 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
770 trap and that both operands are gimple values.
771 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
772 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
775 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
777 * read-rtl.c (join_c_conditions): Return the first string if the
778 two strings are equal.
780 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
782 * gensupport.h (pred_data): Add a "num_codes" field.
783 (add_predicate_code): Declare.
784 * gensupport.c (add_predicate_code): New function.
785 (std_pred_table): Add an "allows_const_p" field.
786 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
787 Remove the (incomplete) list of such codes from the codes field.
788 (init_predicate_table): Use add_predicate_code. Add all
789 RTX_CONST_OBJs if allows_const_p is true.
790 * genrecog.c (process_define_predicate): Use add_predicate_code.
792 2008-05-08 David Daney <ddaney@avtrex.com>
793 Richard Sandiford <rsandifo@nildram.co.uk>
795 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
796 special case of constant zero operands.
797 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
798 old and new values. Special case constant zero values.
799 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
801 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
802 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
804 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
807 * simplify-rtx.c (simplify_plus_minus): Create CONST of
808 similar RTX_CONST_OBJ before CONST_INT.
810 2008-05-08 Steve Ellcey <sje@cup.hp.com>
812 * stmt.c (expand_stack_restore): Change sa mode if needed.
814 2008-05-08 Richard Guenther <rguenther@suse.de>
816 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
818 (ix86_sol10_return_in_memory): Likewise.
819 (ix86_i386elf_return_in_memory): Likewise.
820 (ix86_i386interix_return_in_memory): Likewise.
821 * config/i386/i386.c (ix86_return_in_memory): Likewise.
822 (ix86_sol10_return_in_memory): Likewise.
823 (ix86_i386elf_return_in_memory): Likewise.
824 (ix86_i386interix_return_in_memory): Likewise.
826 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
829 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
831 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
832 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
835 2008-05-08 Richard Guenther <rguenther@suse.de>
837 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
838 * tree-data-ref.h (struct dr_alias): Remove subvars field.
839 (DR_SUBVARS): Remove.
840 * tree-dfa.c (dump_subvars_for): Remove.
841 (debug_subvars_for): Likewise.
842 (dump_variable): Do not dump subvars.
843 (remove_referenced_var): Do not remove subvars.
844 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
845 (lookup_subvars_for_var): Remove.
846 (get_subvars_for_var): Likewise.
847 (get_subvars_at): Likewise.
848 (get_first_overlapping_subvar): Likewise.
849 (overlap_subvar): Likewise.
850 * tree-flow.h (subvar_t): Remove.
851 (struct var_ann_d): Remove subvars field.
852 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
853 argument. Remove special handling of SFTs.
854 (compute_tag_properties): Likewise.
855 (set_initial_properties): Likewise.
856 (compute_call_clobbered): Likewise.
857 (count_mem_refs): Likewise.
858 (compute_memory_partitions): Likewise.
859 (compute_flow_insensitive_aliasing): Likewise.
860 (setup_pointers_and_addressables): Likewise.
861 (new_type_alias): Likewise.
862 (struct used_part): Remove.
863 (used_portions): Likewise.
864 (struct used_part_map): Likewise.
865 (used_part_map_eq): Likewise.
866 (used_part_map_hash): Likewise.
867 (free_used_part_map): Likewise.
868 (up_lookup): Likewise.
869 (up_insert): Likewise.
870 (get_or_create_used_part_for): Likewise.
871 (create_sft): Likewise.
872 (create_overlap_variables_for): Likewise.
873 (find_used_portions): Likewise.
874 (create_structure_vars): Likewise.
875 * tree.def (STRUCT_FIELD_TAG): Remove.
876 * tree.h (MTAG_P): Adjust.
877 (struct tree_memory_tag): Remove base_for_components and
878 unpartitionable flags.
879 (struct tree_struct_field_tag): Remove.
880 (SFT_PARENT_VAR): Likewise.
881 (SFT_OFFSET): Likewise.
882 (SFT_SIZE): Likewise.
883 (SFT_NONADDRESSABLE_P): Likewise.
884 (SFT_ALIAS_SET): Likewise.
885 (SFT_UNPARTITIONABLE_P): Likewise.
886 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
887 (union tree_node): Remove sft field.
888 * alias.c (get_alias_set): Remove special handling of SFTs.
889 * print-tree.c (print_node): Remove handling of SFTs.
890 * tree-dump.c (dequeue_and_dump): Likewise.
891 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
892 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
893 * tree-predcom.c (set_alias_info): Do not set subvars.
894 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
895 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
896 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
897 (add_vars_for_offset): Remove.
898 (add_virtual_operand): Remove special handling of SFTs.
899 (add_call_clobber_ops): Likewise.
900 (add_call_read_ops): Likewise.
901 (get_asm_expr_operands): Likewise.
902 (get_modify_stmt_operands): Likewise.
903 (get_expr_operands): Likewise.
904 (add_to_addressable_set): Likewise.
905 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
906 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
907 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
908 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
909 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
910 (tree_node_structure): Likewise.
911 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
913 (find_what_p_points_to): Likewise.
915 2008-05-08 Sa Liu <saliu@de.ibm.com>
917 * config/spu/spu.md: Fixed subti3 pattern.
919 2008-05-08 Richard Guenther <rguenther@suse.de>
922 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
923 sure to create a representative for trailing arrays for PTA.
925 2008-05-08 Richard Guenther <rguenther@suse.de>
928 * fold-const.c (operand_equal_p): Two objects which types
929 differ in pointerness are not equal.
931 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
933 * calls.c (compute_argument_block_size): Add argument tree fndecl.
934 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
935 (emit_library_call_value_1): Add new variable fndecl initialized by
936 NULL_TREE. It should be the decl type of orgfun, but this information
937 seems not to be available here, so it uses the default calling abi.
938 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
939 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
940 by TARGET_RETURN_IN_MEMORY.
941 * config/i386/i386-interix.h: Likewise.
942 * config/i386/i386.h: Likewise.
943 * config/i386/i386elf.h: Likewise.
944 * config/i386/ptx4-i.h: Likewise.
945 * config/i386/sol2-10.h: Likewise.
946 * config/i386/sysv4.h: Likewise.
947 * config/i386/vx-common.h: Likewise.
948 * config/cris/cris.h: Removed #if 0 clause.
949 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
950 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
952 (ix86_sol10_return_in_memory): Likewise.
953 (ix86_i386elf_return_in_memory): New.
954 (ix86_i386interix_return_in_memory): New.
955 * config/mt/mt-protos.h (mt_return_in_memory): New.
956 * config/mt/mt.c: Likewise.
957 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
958 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
959 * config/bfin/bfin.h: Likewise.
960 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
962 * config/bfin/bfin.c: Likewise.
963 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
964 * config/alpha/unicosmk.h: Likewise.
965 * config/i386/cygming.h: Likewise.
966 * config/iq2000/iq2000.h: Likewise.
967 * config/mips/mips.h: Likewise.
968 * config/mn10300/mn10300.h: Likewise.
969 * config/rs6000/rs6000.h: Likewise.
970 * config/score/score.h: Likewise.
971 * config/spu/spu.h: Likewise.
972 * config/v850/v850.h: Likewise.
973 * defaults.h: Likewise.
974 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
975 * expr.c (emit_block_move): Adjust use of
976 OUTGOING_REG_PARM_STACK_SPACE.
977 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
978 OUTGOING_REG_PARM_STACK_SPACE.
979 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
981 2008-05-08 Jakub Jelinek <jakub@redhat.com>
983 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
984 on OMP_RETURN for OMP_FOR.
987 * dwarf2out.c (dw_expand_expr, common_check): Removed.
988 (fortran_common): New function.
989 (gen_variable_die): Call fortran_common instead of common_check,
990 adjust for it returning tree instead of rtx. Formatting.
992 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
996 * see.c (see_copy_insn): Copy new pure const attributes for new call.
997 * c-decl.c (merge_decls): Ditto.
998 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
999 to RTL_CONST_OR_PURE_CALL_P.
1000 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
1001 Initialized DECL_LOOPING_CONST_PURE.
1002 (process_call_operands): Set tree_side_effects properly.
1003 * tree.h (TREE_READONLY_DECL_P): Removed.
1004 (DECL_IS_PURE): Renamed to DECL_PURE_P.
1005 (DECL_LOOPING_OR_CONST_P): New macro.
1006 (struct tree_function_decl): Added looping_const_or_pure_p.
1008 (ECF_LOOPING_OR_CONST_P): New macro.
1009 * rtlanal.c (pure_const_p): Removed.
1010 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
1011 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
1012 to RTL_CONST_CALL_P.
1013 * ipa-pure-const.c (pure_const_state_e): Added looping field.
1014 (check_decl, check_tree, check_call, scan_function): Initialize
1016 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
1017 (static_execute): Set looping true for recursive functions.
1018 Undo setting state to IPA_NEITHER for recursive functions.
1020 * ifcvt.c (noce_can_store_speculate_p): Changed
1021 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
1022 RTL_CONST_OR_PURE_CALL_P.
1023 * dse.c (scan_insn): Ditto.
1024 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
1025 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
1026 RTL_CONST_OR_PURE_CALL_P.
1027 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
1028 pure_call_p to RTL_CONST_CALL_P.
1029 * gimplify.c (gimplify_call_expr): Clear side effects for
1030 non-looping pure and constant calls.
1031 * calls.c (emit_call_1): Set rtl flags from ecf flags.
1032 (flags_from_decl_or_type): Set ecf flags from decl flags.
1033 (initialize_argument_information): Turn off
1034 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
1035 Change const to pure if callee_copies is true rather than just
1037 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
1038 way of marking pure calls.
1039 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
1040 Remove hack that was supposed to fix pr7335 and remove old
1041 way of marking pure calls.
1042 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
1043 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
1044 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
1045 RTL_CONST_OR_PURE_CALL_P.
1046 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
1047 * loop-invariant.c (find_exits, find_invariant_bb): Changed
1048 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
1049 * sched-deps.c (schedule_analyze): Ditto.
1050 * rtl.h (struct rtx_def): Use call field, unchanging field, and
1051 return_val field of calls to represent pure and const function info.
1052 (CONST_OR_PURE_CALL_P): Deleted macro.
1053 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
1054 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
1055 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
1057 * tree-optimize.c (execute_fixup_cfg): Added test for
1058 ECF_LOOPING_CONST_OR_PURE.
1059 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
1061 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
1062 effects for looping pure or const calls.
1063 (verify_gimple_expr): Added verification code.
1064 * config/alpha/alpha.c (alpha_legitimize_address,
1065 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
1067 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
1068 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
1069 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
1070 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
1071 RTL_CONST_OR_PURE_CALL_P.
1072 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
1073 and const calls to be deleted.
1075 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
1078 * config/i386/mmx.md (mmx_subv2sf3): New expander.
1079 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
1080 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
1081 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
1082 to handle nonimmediate operands.
1083 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
1084 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
1085 to handle nonimmediate operands.
1086 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
1087 (mmx_pmulhrwv4hi3): New expander. Use
1088 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1089 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
1090 (sse2_umulv1siv1di3): New expander. Use
1091 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1092 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
1093 (mmx_eq<mode>3): New expander. Use
1094 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1095 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
1096 (mmx_uavgv8qi3): New expander. Use
1097 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1098 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
1099 (mmx_uavgv4hi3): New expander. Use
1100 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1102 * config/i386/sse.md
1103 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
1104 to handle nonimmediate operands.
1105 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
1106 to handle nonimmediate operands.
1107 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
1108 to handle nonimmediate operands.
1109 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
1110 to handle nonimmediate operands.
1111 (sse2_unpckhpd_exp): New expander. Use
1112 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1113 (sse2_unpcklpd_exp): New expander. Use
1114 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1115 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
1116 to handle nonimmediate operands.
1117 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
1118 to handle nonimmediate operands.
1119 (*sse2_<plusminus_insn><mode>3): Rename from
1120 sse2_<plusminus_insn><mode>3 insn pattern.
1121 (sse2_<plusminus_insn><mode>3): New expander. Use
1122 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1123 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
1124 (sse2_umulv2siv2di3): New expander. Use
1125 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1126 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
1127 (sse4_1_mulv2siv2di3): New expander. Use
1128 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1129 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
1130 (sse2_pmaddwd): New expander. Use
1131 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1132 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
1133 (sse2_eq<mode>3): New expander. Use
1134 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1135 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
1136 (sse4_1_eqv2di3): New expander. Use
1137 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1138 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
1139 (sse2_uavgv16qi3): New expander. Use
1140 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1141 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
1142 (sse2_uavgv16qi3): New expander. Use
1143 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1144 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
1145 (sse2_uavgv8hi3): New expander. Use
1146 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1147 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
1148 (ssse3_pmulhrswv8hi3): New expander. Use
1149 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1150 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
1151 (ssse3_pmulhrswv4hi3): New expander. Use
1152 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1154 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
1155 (<sse>_vmmul<mode>3): Ditto.
1156 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
1158 (ssse3_pmaddubsw128): Use register_operand for operand 1.
1159 (ssse3_pmaddubsw): Ditto.
1161 * config/i386/i386.c (struct_builtin_description)
1162 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
1163 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
1164 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
1165 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
1166 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
1167 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
1168 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
1169 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
1170 (ix86_fixup_binary_operands): Assert that src1
1171 and src2 must have the same mode when swapped.
1172 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
1173 and ix86_binary_operator_ok. Do not force operands in registers
1176 2008-05-07 Jan Hubicka <jh@suse.cz>
1178 * cgraph.c (dump_cgraph_node): Update.
1179 * cgraph.h (cgraph_local_info): Break out inline summary.
1180 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
1182 * ipa-inline (inline_summary): New accestor function.
1183 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
1184 cgraph_decide_inlining, compute_inline_parameters): Update.
1185 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
1187 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
1189 Cleanup ColdFire scheduling support and add V4 pipeline model.
1191 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
1192 (define_attr cpu): Add cfv4 value.
1193 (define_attr type, define_attr type1): Merge into a single 'type'
1194 attribute. Update all uses.
1195 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
1196 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
1198 (define_attr opx_mem, define_attr opy_mem): Remove.
1199 (define_attr op_mem): Clean up, update comment.
1200 (define_attr size): Use specific values instead of general int.
1201 (define_attr guess, define_attr split): Remove. Update all uses.
1202 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
1203 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
1204 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
1205 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
1206 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
1207 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
1208 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
1209 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
1210 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
1211 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
1212 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
1213 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
1214 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
1215 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
1216 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
1217 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
1218 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
1219 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
1220 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
1221 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
1222 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
1223 Update or set attributes.
1224 (stack_tie): New fake instruction.
1226 * config/m68k/m68k.h (TUNE_CFV4): New macro.
1227 (m68k_sched_attr_size): Update declaration.
1228 (m68k_sched_attr_type2): Remove.
1229 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
1230 Declare new bypass predicates.
1232 * config/m68k/m68k.c (m68k_sched_issue_rate,
1233 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
1235 (TARGET_SCHED_ISSUE_RATE,
1236 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
1237 (override_options): Handle scheduling for ColdFire V4 core.
1238 (m68k_expand_prologue): Emit stack_tie.
1239 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
1240 'OP_TYPE_FPN'. Update all uses.
1241 (sched_guess_p): Remove.
1242 (sched_address_type): Handle symbolic addresses.
1243 (sched_get_operand): New static function.
1244 (sched_operand_type): Merge into sched_attr_op_type.
1245 (sched_attr_op_type): Handle FP registers, handle quick constants,
1247 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
1248 (m68k_sched_attr_size): Update. Move logic to ...
1249 (sched_get_attr_size_int): New static function.
1250 (sched_get_opxy_mem_type): New static function.
1251 (m68k_sched_attr_op_mem): Update.
1252 (m68k_sched_attr_type2): Remove.
1253 (sched_cfv4_bypass_data): New static variable.
1254 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
1255 (m68k_sched_issue_rate): Implement scheduler hook.
1256 (struct _sched_ib: enabled_p): New field.
1257 (m68k_sched_variable_issue): Update. Handle V4.
1258 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
1259 sched_dump_class_func_t, sched_dump_split_class,
1260 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
1261 sched_dump_dfa_class, m68k_sched_dump): Remove.
1262 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
1264 (m68k_sched_init_global): Remove statisctics dumping, introduce
1265 sanity check that all instructions have pipeline reservations. Handle
1267 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
1268 Handle ColdFire V4 core.
1269 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
1270 New static functions.
1271 (m68k_sched_address_bypass_p): New bypass predicate.
1272 (sched_get_indexed_address_scale): New static function.
1273 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
1275 * cf.md: Update comments.
1276 (define_attr type2): Remove. Use 'type' attribute instead.
1278 (cf_ib): Rename to cfv123_ib. Update all uses.
1279 (cf_oep): Rename to cfv123_oep. Update all uses.
1280 (cf_chr): Rename to cfv123_chr. Update all uses.
1281 (cf_mem): Rename to cfv123_mem. Update all uses.
1282 (cf_mac): Move to more appropriate place.
1283 (cfv123_guess): New automaton and cpu_unit.
1284 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
1285 Update uses of 'size' attribute. Handle before reload scheduling.
1286 (cfv123_guess): New dummy reservation for unhandled instructions.
1287 (cfv4_*): Pipeline description of ColdFire V4 core.
1288 (ignore): New reservation to handle 'ignore' type.
1290 2008-05-07 Ian Lance Taylor <iant@google.com>
1293 * gimplify.c (find_single_pointer_decl_1): Don't look through
1295 (find_single_pointer_decl): Adjust comments.
1297 2008-05-07 Jakub Jelinek <jakub@redhat.com>
1300 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
1301 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
1304 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
1305 integral type rather than floating point, then VIEW_CONVERT_EXPR
1306 to the floating point type.
1308 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
1310 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
1311 TFmode op0 to register.
1313 2008-05-07 Alan Modra <amodra@bigpond.net.au>
1315 * c-decl.c (grokdeclarator): Comment typo.
1317 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
1319 * tree-flow.h: Remove prototype for computed_goto_p.
1320 * tree-cfg.c (computed_goto_p): Make static.
1322 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
1325 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
1326 (contains_aligned_value_p): This. Handle _Decimal128.
1327 (ix86_function_arg_boundary): Only align _Decimal128 to its
1328 natural boundary and handle it properly.
1330 2008-05-06 Martin Jambor <mjambor@suse.cz>
1332 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
1333 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
1334 (ipcp_method_set_orig_node): Removed.
1335 (ipcp_cval_get_cvalue_type): Removed.
1336 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
1337 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
1338 (ipcp_cval_set_cvalue_type): Removed.
1339 (ipcp_cval_get_cvalue): Removed.
1340 (ipcp_cval_set_cvalue): Removed.
1341 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
1342 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
1343 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
1344 (ipcp_cval_meet): Renamed to ipa_lattice_meet
1345 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
1346 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
1347 (ipcp_get_ith_lattice): Changed parameters.
1348 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
1349 (ipcp_lattice_from_jfunc): Changed parameters.
1350 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
1351 (ipcp_method_cval_print): Added temporary variable info.
1352 (ipcp_redirect): Removed already unused local variable caller.
1353 (ipcp_redirect): New temporary variable orig_callee_info
1354 (ipcp_redirect): Removed newly unused local variable callee.
1355 (ipcp_redirect): Removed (a bit confusing) local variable type.
1356 (ipcp_insert_stage): Added local variable info.
1357 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
1359 (ipcp_formal_create): Removed.
1360 (ipcp_method_cval_set): Removed.
1361 (ipcp_propagate_stage): Renamed lattice variables.
1362 (ipcp_method_cval_set_cvalue_type): Removed.
1363 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
1364 (ipcp_print_all_lattices): Changed printed strings to refer to
1365 lattices rather than cvals.
1366 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
1367 (ipcp_propagate_const): Changed formal parameters.
1368 (build_const_val): Changed formal parameters.
1369 (ipcp_insert_stage): Removed useless variable cvalue
1370 (build_const_val): Changed formal parameters.
1371 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
1372 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
1373 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
1374 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
1375 (ipcp_print_func_profile_counts): Changed string from "method" to
1377 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
1378 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
1379 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
1380 (ipcp_structures_print): Renamed to ipcp_print_all_structures
1381 (ipcp_profile_print): Renamed to ipcp_print_profile_data
1382 (ipcp_lat_is_const): Changed parameters and made inline.
1383 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
1384 (ipcp_redirect): Renamed to ipcp_need_redirect_p
1385 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
1386 the predicate condition directly
1387 (ipcp_propagate_stage): Added local variable args. Removed local
1388 variable callee. (Both are mere code simplifications.)
1389 (ipcp_method_dont_insert_const): Renamed to
1390 ipcp_node_not_modifiable_p.
1391 (ipcp_node_not_modifiable_p): Made inline.
1392 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
1393 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
1394 (ipcp_print_all_lattices): Removed variable cvalue
1395 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
1398 2008-05-06 Olivier Hainque <hainque@adacore.com>
1400 * tree-sra.c (try_instantiate_multiple_fields): Early return
1401 if field has POINTER_TYPE.
1403 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
1405 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
1406 by using 'q' specifier for instruction.
1407 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
1409 2008-05-06 Anatoly Sokolov <aesok@post.ru>
1411 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
1412 Change mode of zero_extract from QImode to HImode.
1413 (sign bit tests peepholes): (Ditto.).
1415 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
1417 * config/i386/mmx.md: Remove double backslashes from asm templates.
1418 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
1419 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
1420 to handle nonimmediate operands.
1421 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
1422 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
1423 to handle nonimmediate operands.
1424 (*mmx_<code>v2sf3_finite): New insn pattern.
1425 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
1426 (mmx_<code>v2sf3): New expander. Use
1427 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1428 (mmx_<plusminus_insn><mode>3): New expander. Use
1429 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1430 (*mmx_<plusminus_insn><mode>3): New insn pattern.
1431 (mmx_add<mode>3): Removed.
1432 (mmx_ssadd<mode>3): Ditto.
1433 (mmx_usadd<mode>3): Ditto.
1434 (mmx_sub<mode>3): Ditto.
1435 (mmx_sssub<mode>3): Ditto.
1436 (mmx_ussub<mode>3): Ditto.
1437 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
1438 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
1439 to handle nonimmediate operands.
1440 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
1442 (mmx_smulv4hi3_highpart): New expander. Use
1443 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1444 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
1446 (mmx_umulv4hi3_highpart): New expander. Use
1447 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1448 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
1449 (mmx_<code>v4hi3): New expander. Use
1450 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1451 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
1452 (mmx_<code>v8qi3): New expander. Use
1453 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1454 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
1455 (mmx_<code><mode>3): New expander. Use
1456 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1458 2008-05-05 Jan Hubicka <jh@suse.cz>
1460 PR tree-optimization/36118
1461 * passes.c (pass_init_dump_file): Fix dump header.
1463 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1466 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
1467 VCE for function decls.
1469 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
1471 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
1473 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
1475 * config/i386/i386.md (sat_plusminus): New.
1476 (plusminus_insn): Likewise.
1477 (plusminus_mnemonic): Likewise.
1479 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
1480 (*<addsub><mode>3_cc_overflow): Renamed to ...
1481 (*<plusminus_insn><mode>3_cc_overflow): This.
1482 (*<addsub>si3_zext_cc_overflow): Renamed to ...
1483 (*<plusminus_insn>si3_zext_cc_overflow): This.
1485 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
1486 (<plusminus_insn><mode>3): This.
1487 (*<addsub><mode>3): Renamed to ...
1488 (*<plusminus_insn><mode>3): This.
1489 (<sse>_vm<addsub><mode>3): Renamed to ...
1490 (<sse>_vm<plusminus_insn><mode>3): This.
1491 (sse3_h<addsub>v4sf3): Renamed to ...
1492 (sse3_h<plusminus_insn>v4sf3): This.
1493 (sse3_h<addsub>v2df3): Renamed to ...
1494 (sse3_h<plusminus_insn>v2df3): This.
1495 (<plusminus_insn><mode>3): New.
1496 (*<plusminus_insn><mode>3): Likewise.
1497 (sse2_<plusminus_insn><mode>3): Likewise.
1498 (add<mode>): Removed.
1499 (*add<mode>3): Likewise.
1500 (sse2_ssadd<mode>3): Likewise.
1501 (sse2_usadd<mode>3): Likewise.
1502 (sub<mode>3): Likewise.
1503 (*sub<mode>3): Likewise.
1504 (sse2_sssub<mode>3): Likewise.
1505 (sse2_ussub<mode>3): Likewise.
1507 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
1509 * gthr-single.h: Add in required interface elements as per gthr.h.
1510 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
1511 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
1512 Generalize UNUSED macro.
1513 (__gthread_once): Add.
1514 (__gthread_key_create): Add.
1515 (__gthread_key_delete): Add.
1516 (__gthread_getspecific): Add.
1517 (__gthread_setspecific): Add.
1519 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
1521 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
1522 the same size types for the indirect reference on the rhs, then
1525 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
1527 * config/i386/i386.md
1528 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
1529 one insn template instead of template series.
1530 (*xordi_1_rex64): Ditto.
1531 (*xordi_2_rex64): Ditto.
1533 2008-05-05 Ira Rosen <irar@il.ibm.com>
1535 PR tree-optimization/36119
1536 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
1539 2008-06-04 Jan Hubicka <jh@suse.cz>
1541 tree-optimization/36100
1542 * tree-pass.h (pass_O0_always_inline): Declare.
1543 * ipa-inline.c (inline_transform): Remove dead code.
1544 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1545 pass_O0_always_inline): New.
1546 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
1548 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
1550 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
1551 mnemonic in this_param move for TARGET_64BIT.
1553 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
1555 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
1556 (*strmovsi_rex_1): Ditto.
1557 (*strsetsi_1): Ditto.
1558 (*strsetsi_rex_1): Ditto.
1560 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
1561 adddicc expanders using SWI mode iterator.
1563 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
1566 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
1569 2008-05-04 David S. Miller <davem@davemloft.net>
1571 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
1572 (sparc*-*-linux*): Use linux.h in tm_file.
1573 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
1574 compiler defaulting to 32-bit.
1575 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
1577 * config/sparc/linux.h: Remove definitions now obtained
1578 properly from linux.h
1579 * config/sparc/linux64.h: Likewise.
1580 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
1581 don't want this setting for 32-bit builds in a biarch compiler.
1582 * doc/install.texi: Add sparc-linux to list of targets
1583 supporting --enable-targets=all.
1585 2008-05-03 Andrew Pinski <pinskia@gmail.com>
1587 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
1589 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
1591 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
1592 after V4SI_FTYPE_V8HI.
1593 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
1594 case V4SI_FTYPE_V2DF.
1596 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
1598 * doc/invoke.texi (max-flow-memory-locations): Removed.
1599 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
1601 2008-05-03 Richard Guenther <rguenther@suse.de>
1604 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
1606 2008-05-02 David S. Miller <davem@davemloft.net>
1608 * config.gcc (need_64bit_hwint): Document libcpp dependency.
1610 2008-05-02 Simon Baldwin <simonb@google.com>
1613 * c-common.h (warn_array_subscript_range): Removed.
1614 * c-common.c (warn_array_subscript_range): Ditto.
1615 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
1616 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
1618 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
1620 * config/i386/i386.c (ix86_special_builtin_type): New.
1621 (bdesc_special_args): Likewise.
1622 (ix86_expand_special_args_builtin): Likewise.
1623 (ix86_init_mmx_sse_builtins): Updated.
1624 (ix86_expand_builtin): Updated.
1625 (ix86_expand_store_builtin): Removed.
1626 (ix86_expand_unop_builtin): Likewise.
1628 * config/i386/mm3dnow.h (__v2sf): Moved to ...
1629 * config/i386/mmintrin.h (__v2sf): Here.
1631 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
1633 (_mm_loadl_pi): Likewise.
1634 (_mm_storeh_pi): Replace __v2si with __v2sf.
1635 (_mm_storel_pi): Likewise.
1637 * doc/extend.texi: Correct __builtin_ia32_loadhps,
1638 __builtin_ia32_loadlps, __builtin_ia32_storehps,
1639 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
1640 __builtin_ia32_loadlpd.
1642 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
1644 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
1645 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
1646 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
1647 (ix86_init_mmx_sse_builtins): Updated.
1648 (ix86_expand_args_builtin): Likewise.
1649 (ix86_expand_builtin): Likewise.
1650 (ix86_expand_unop1_builtin): Renamed to ...
1651 (ix86_expand_unop_vec_merge_builtin): This.
1653 2008-05-01 Jan Hubicka <jh@suse.cz>
1656 * ipa-inline.c (inline_generate_summary): Make static.
1657 (inline_transform): Do not call inlining at -O0; make static.
1658 * passes.c (execute_todo): Add sanity check.
1659 (execute_one_ipa_transform_pass): Execute proper flags.
1661 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
1663 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
1664 (DECL_NONADDRESSABLE_P): Likewise.
1665 * alias.c (record_component_aliases): Fix comment.
1667 2008-05-01 Simon Baldwin <simonb@google.com>
1669 * c-common.h (warn_array_subscript_range): New function.
1670 * c-common.c (warn_array_subscript_range): Ditto.
1671 * tree-vrp.c (check_array_ref): Corrected code to agree with
1672 comment, ignoring only arrays of size 0 or size 1.
1673 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
1675 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1677 * config/i386/i386.c (ix86_builtin_type): Replace
1678 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
1679 (bdesc_args): Updated.
1680 (ix86_init_mmx_sse_builtins): Likewise.
1681 (ix86_expand_args_builtin): Likewise.
1683 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
1686 * doc/extend.texi: Correct __builtin_ia32_palignr.
1688 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1691 * config/i386/i386.c (bdesc_crc32): Removed.
1692 (ix86_expand_crc32): Likewise.
1693 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
1694 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
1695 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
1696 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
1697 UINT_FTYPE_UINT_UCHAR.
1698 (bdesc_args): Updated. Add crc32 builtins.
1699 (ix86_init_mmx_sse_builtins): Updated.
1700 (ix86_expand_args_builtin): Updated to support subreg.
1702 * doc/extend.texi: Correct __builtin_ia32_crc32di.
1704 2008-05-01 Jan Hubicka <jh@suse.cz>
1706 * tree-pass.h (opt_pass): Add IPA_PASS.
1707 (varpool_node, cgraph_node): Forward declare.
1708 (ipa_opt_pass): Define.
1709 (pass_ipa_inline): Turn into ipa_opt_pass.
1710 (pass_apply_inline): Remove.
1711 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
1712 (apply_inline): Turn into ....
1713 (inline_transform): ... this one.
1714 (inline_generate_summary): New function.
1715 (pass_apply_inline): Remove.
1716 * function.h (ipa_opt_pass): Forward declare structure; typedef;
1718 (struct function): Add ipa_transforms_to_apply.
1719 * passes.c (register_one_dump_file): Work on IPA_PASS.
1720 (init_optimization_passes): Remove pass_inline_parameters and
1722 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
1723 (execute_one_pass) ... here; apply transforms when possible.
1724 (add_ipa_transform_pass, execute_ipa_summary_asses,
1725 execute_one_ipa_transform_pass): New.
1726 (execute_ipa_pass_list): Update for IPA_PASS type.
1728 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1730 * config/i386/i386.c (ix86_builtin_type): Add
1731 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
1732 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
1733 (bdesc_args): Add SSE4a builtins.
1734 (ix86_init_mmx_sse_builtins): Updated.
1735 (ix86_expand_args_builtin): Likewise.
1736 (ix86_expand_builtin): Likewise.
1738 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
1740 * config/i386/i386.c (ix86_builtin_type): Add
1741 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
1742 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
1743 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
1744 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
1745 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
1746 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
1747 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
1748 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
1749 and DI_FTYPE_DI_DI_INT.
1750 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
1751 (ix86_init_mmx_sse_builtins): Updated.
1752 (ix86_expand_args_builtin): Likewise.
1753 (ix86_expand_builtin): Likewise.
1754 (ix86_expand_binop_imm_builtin): Removed.
1756 * doc/extend.texi: Correct __builtin_ia32_palignr128.
1758 2008-04-30 Richard Guenther <rguenther@suse.de>
1760 PR tree-optimization/32921
1761 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
1763 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
1765 * config/arm/arm.c (arm_unwind_emit): Use
1766 crtl->all_throwers_are_sibcalls instead of
1767 cfun->all_throwers_are_sibcalls.
1768 (arm_output_fn_unwind): Likewise.
1769 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
1770 instead of cfun->uses_pic_offset_table.
1771 (frv_expand_prologue): Likewise.
1772 (frv_frame_pointer_required): Likewise.
1773 (frv_expand_fdpic_call): Likewise.
1774 (frv_emit_movsi): Likewise.
1775 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
1776 cfun->returns_pcc_struct instead of
1777 current_function_returns_pcc_struct.
1778 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
1779 instead of cfun->calls_eh_return.
1780 (m32c_pushm_popm): Likewise.
1781 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
1782 "extern" declaration.
1784 2008-04-30 Richard Guenther <rguenther@suse.de>
1786 PR tree-optimization/21636
1787 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
1789 (evaluate_stmt): Print the likely value.
1790 (ccp_visit_stmt): Avoid excessive vertical spacing.
1792 2008-04-30 Rafael Espindola <espindola@google.com>
1794 * builtins.c (fold_call_expr): Return realret.
1795 * tree-ssa-threadedge.c
1796 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
1797 __builtin_object_size.
1799 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
1801 * gcc.c (wrapper_string): New variable.
1802 (insert_wrapper): New function.
1803 (execute): New option -wrapper.
1804 * doc/invoke.texi (Overall Options): New driver option -wrapper.
1806 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
1808 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
1809 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
1810 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
1812 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
1813 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
1814 config/rs6000/e500crtres64gprctr.asm,
1815 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
1816 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
1817 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
1818 config/rs6000/e500crtsav64gprctr.asm,
1819 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
1820 config/rs6000/e500crtsavg64gprctr.asm: New files.
1821 * config/rs6000/t-ppccomm: Add build rules for new files.
1822 (LIB2FUNCS_STATIC_EXTRA): Add new files.
1823 * config/rs6000/t-netbsd: Add build rules for new files.
1824 (LIB2FUNCS_STATIC_EXTRA): New variable.
1825 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
1826 (CRTSAVRES_DEFAULT_SPEC): Likewise.
1827 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
1829 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
1831 * config/i386/i386.c (ix86_builtin_type): Add
1832 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
1833 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
1834 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
1835 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
1836 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
1837 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
1838 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
1839 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
1840 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
1841 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
1842 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
1843 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
1844 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
1845 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
1846 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
1847 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
1848 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
1849 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
1850 V1DI_FTYPE_V2SI_V2SI.
1851 (bdesc_2arg): Moved to ...
1853 (ix86_init_mmx_sse_builtins): Updated.
1854 (ix86_expand_args_builtin): Updated. Take a pointer
1855 to const struct builtin_description. Handle comparison
1857 (ix86_expand_sse_compare): Take a new argument for swapping operands.
1858 (ix86_expand_builtin): Updated.
1860 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
1861 (ssse3_pmaddubsw128): This.
1862 (ssse3_pmaddubswv4hi3): Renamed to ...
1863 (ssse3_pmaddubsw): This.
1865 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
1866 (__builtin_ia32_packssdw128): Likewise.
1867 (__builtin_ia32_packuswb128): Likewise.
1868 (__builtin_ia32_pmaddubsw): Likewise.
1869 (__builtin_ia32_pmaddubsw128): Likewise.
1871 2008-04-30 Richard Guenther <rguenther@suse.de>
1873 PR tree-optimization/14847
1874 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
1875 (recognize_bits_test): Use it.
1876 (recognize_single_bit_test): Likewise.
1878 2008-04-30 Martin Jambor <mjambor@suse.cz>
1880 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
1881 instead of setting number of formal parameters to zero.
1882 (ipcp_init_stage): Do not set the number of actual parameters to zero
1884 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
1885 which are called with variable number of arguments.
1886 (ipcp_insert_stage): Explicitely skipping all nodes which are
1887 called with variable number of arguments.
1888 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
1889 number of parameters.
1891 * ipa-prop.h (struct ipa_node_params): Added flag
1892 called_with_var_arguments
1893 (ipa_set_param_count): Added. Changed sole setter to use it.
1894 (ipa_get_param_count): Added. All readers of param_count
1895 converted to use it instead.
1896 (ipa_set_called_with_variable_arg): Added.
1897 (ipa_is_called_with_var_arguments): Added.
1898 (ipa_get_ith_param): Added. All readers of param_decls converted
1900 (ipa_set_cs_argument_count): Added, sole writer to argument_count
1902 (ipa_get_cs_argument_count): Added, all readers of argument_count
1904 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
1907 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
1908 (struct ipcp_lattice): Renamed cval_type to type
1909 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
1911 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
1912 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
1913 (ipcp_insert_stage): Changed the type of variable cvalue to tree
1914 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
1915 (build_const_val): Changed the type of parameter cvalue to tree
1916 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
1917 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
1919 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
1922 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
1923 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
1924 (ipa_add_method): Renamed to ipa_push_func_to_list
1925 (ipa_remove_method): Renamed to ipa_pop_func_from_list
1926 (ipa_callsite_param_count): Removed.
1927 (ipa_callsite_param_count_set): Removed.
1928 (ipa_callsite_param): Removed.
1929 (ipa_callsite_callee): Removed.
1930 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
1931 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
1932 (ipa_method_formal_count): Removed.
1933 (ipa_method_formal_count_set): Removed.
1934 (ipa_method_get_tree): Removed.
1935 (ipa_method_tree_map_create): Removed.
1936 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
1937 (ipa_create_param_decls_array): Creates the array itself
1938 (ipa_create_param_decls_array): Temporary variable info instead of
1940 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
1941 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
1942 (get_type): Removed.
1943 (ipa_jf_get_info_type): Removed.
1944 (ipa_node_create): Renamed to ipa_create_node_params
1945 (ipa_free): Renamed to ipa_free_all_node_params
1946 (ipa_nodes_create): Renamed to ipa_create_all_node_params
1947 (ipa_edges_create): Renamed to ipa_create_all_edge_args
1948 (ipa_edges_free): Renamed to ipa_free_all_edge_args
1949 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
1950 (ipa_free_all_node_params): Deallocation to jump_functions moved to
1951 ipa_free_all_edge_args
1952 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
1953 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
1954 (ipa_create_methodlist_node): Removed.
1955 (ipa_methodlist_method): Removed.
1956 (ipa_methodlist_method_set): Removed.
1957 (ipa_methodlist_next_method): Removed.
1958 (ipa_methodlist_next_method_set): Removed.
1959 (ipa_method_is_modified): Removed.
1960 (ipa_method_modify_create): Removed.
1961 (ipa_method_modify_init): Temporary variable info instead of a few
1963 (ipa_detect_param_modifications): Temporary variable info instead of
1965 (ipa_compute_jump_functions): Temporary variable info instead of
1967 (ipa_method_modify_set): Removed.
1968 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
1969 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
1970 than craph_node as the first parameter.
1971 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
1972 (ipa_method_modify_init): Removed.
1973 (ipa_compute_jump_functions): Added a temp variable instead of
1974 repeatadly dereferencing the cgraph_edge.aux pointer
1975 (ipa_callsite_param_set_type): Removed.
1976 (ipa_compute_jump_functions): i renamed to index and moved to
1978 (ipa_callsite_param_set_info_type_formal): Removed.
1979 (ipa_callsite_param_set_info_type): Removed.
1980 (ipa_callsite_param_map_create): Removed.
1981 (ipa_callsite_tree): Removed.
1982 (ipa_callsite_caller): Removed.
1983 (ipa_pop_func_from_list): return_method removed to return_func
1985 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
1986 prefixed all values with IPA_. Changed all users.
1987 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
1988 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
1989 and FORMAL_IPATYPE IPA_PASS_THROUGH.
1990 (union parameter_info): Renamed to jump_func_value.
1991 (union jump_func_value): Renamed value to constant
1992 (struct ipa_jump_func): Renamed info_type to value
1993 (struct ipa_node): Renamed to ipa_node_params
1994 (struct ipa_node_params): Renamed ipa_arg_num to param_count
1995 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
1996 (struct ipa_node_params): Renamed ipa_mod to modified_flags
1997 (struct ipa_edge): Renamed to ipa_edge_args
1998 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
1999 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
2000 (struct ipa_methodlist): Renamed to ipa_func_list
2001 (struct ipa_func_list): method_p renamed to node, next_method
2003 (ipa_methodlist_p): Removed, switched all users to struct pointer
2004 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
2006 2008-04-30 Alan Modra <amodra@bigpond.net.au>
2008 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
2009 (rs6000_emit_epilogue): Use backchain to restore only when we
2010 have a large frame. Make use of frame pointer to restore if we
2011 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
2013 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
2015 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
2016 Add mode to zero_extract.
2017 (sign bit tests peepholes): (Ditto.).
2019 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
2021 * config/i386/i386.c (ix86_builtins): Replace Prescott New
2022 Instructions in comments with SSE3.
2023 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
2024 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
2025 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
2026 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
2027 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
2028 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
2029 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
2030 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
2031 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
2032 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
2033 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
2034 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
2035 (bdesc_sse_args): Renamed to ...
2036 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
2037 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
2038 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
2040 (bdesc_1arg): Moved to ...
2042 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
2043 Instructions in comments with SSE3.
2044 (ix86_expand_sse_operands_builtin): Renamed to ...
2045 (ix86_expand_args_builtin): This. Updated.
2046 (ix86_expand_unop1_builtin): Update comments.
2047 (ix86_expand_builtin): Updated.
2049 2008-04-29 Richard Guenther <rguenther@suse.de>
2051 PR tree-optimization/36078
2052 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
2053 Update virtual SSA form after cleaning up the CFG.
2055 2008-04-29 Richard Guenther <rguenther@suse.de>
2058 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
2060 2008-04-29 Richard Guenther <rguenther@suse.de>
2062 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
2063 (compute_may_aliases): Do not call finalize_ref_all_pointers.
2064 (compute_flow_insensitive_aliasing): Do not treat
2065 PTR_IS_REF_ALL pointers special.
2066 (get_smt_for): Likewise.
2067 (may_alias_p): Re-structure.
2068 (is_escape_site): A ref-all pointer conversion is not an escape site.
2069 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
2070 PTR_IS_REF_ALL pointers special.
2071 * tree-ssa-structalias.h (struct alias_info): Remove
2072 ref_all_symbol_mem_tag field.
2073 (PTR_IS_REF_ALL): Remove.
2075 2008-04-29 Richard Guenther <rguenther@suse.de>
2078 * fold-const.c (extract_muldiv_1): In combining division constants
2079 make sure to never overflow.
2081 2008-04-29 Nick Clifton <nickc@redhat.com>
2083 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
2085 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2088 * optc-gen.awk: Work around HP-UX/IA awk bug.
2090 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
2092 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
2095 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
2098 * config/i386/i386.md
2099 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
2100 Change operand 1 predicate to nonimmediate_operand.
2102 2008-04-28 Jakub Jelinek <jakub@redhat.com>
2105 * dwarf2out.c (struct die_struct): Mark as chain_circular through
2107 * gengtype.c (walk_type, write_func_for_structure): Handle
2109 * doc/gty.texi: Document chain_circular.
2111 2008-04-28 Richard Guenther <rguenther@suse.de>
2113 PR tree-optimization/36066
2114 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
2117 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
2120 * config/i386/i386.md
2121 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
2122 Use match_scratch instead of match_operand for operands 3 and 4.
2124 2008-04-27 Richard Guenther <rguenther@suse.de>
2126 PR tree-optimization/18754
2127 PR tree-optimization/34223
2128 * tree-pass.h (pass_complete_unrolli): Declare.
2129 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
2130 loop size before and after unconditionally of UL_NO_GROWTH in effect.
2131 Rewrite loop into loop closed SSA form if it is not already.
2132 (tree_unroll_loops_completely): Re-structure to iterate over
2133 innermost loops with intermediate CFG cleanups.
2134 Unroll outermost loops only if requested or the code does not grow
2136 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
2137 loops are available.
2138 (tree_vectorize): Instead do so here.
2139 (tree_complete_unroll): Also unroll outermost loops.
2140 (tree_complete_unroll_inner): New function.
2141 (gate_tree_complete_unroll_inner): Likewise.
2142 (pass_complete_unrolli): New pass.
2143 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
2144 uses outside of the loop.
2145 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
2146 form if it is available.
2147 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
2148 * passes.c (init_optimization_passes): Schedule complete inner
2149 loop unrolling pass before the first CCP pass after final inlining.
2151 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
2153 * targhooks.h (default_emutls_var_fields,
2154 default_emutls_var_init): Declare.
2155 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
2156 * target.h (struct gcc_target): Add struct emutls member.
2157 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
2158 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
2159 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
2160 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
2161 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
2162 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
2163 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
2164 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
2165 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
2166 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
2167 emit debug information.
2168 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
2169 * varasm.c: Include targhooks.h.
2170 (emutls_object_section, emutls_tmpl_section): New.
2171 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
2172 (EMUTLS_SEPARATOR): New.
2174 (get_emutls_object_name): New.
2175 (default_emutls_var_fields): New, broken out of ...
2176 (get_emutls_object_type): ... here. Adjust to use target hooks.
2177 (get_emutls_init_templ_addr): Adjust to use target hooks.
2178 (emutls_decl): Adjust to use target hooks.
2179 (emutls_finish): Likewise.
2180 (default_emutls_var_init): New, broken out of ...
2181 (assemble_variable): ... here. Adjust to use target hooks.
2182 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
2184 * c-common.c (handle_section_attribute): Prevent overriding
2185 sections for emulated tls with special sections.
2186 * config/i386/i386.c (x86_64_elf_select_section): Add
2187 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
2188 (x86_64_elf_unique_section): Likewise.
2189 * config/vxworks.c: Include tree.h.
2190 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
2191 (vxworks_override_options): Set TLS scheme.
2192 * doc/tm.texi (Emulated TLS): New node.
2194 2008-04-26 Simon Baldwin <simonb@google.com>
2197 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
2198 with propagated string constants.
2200 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
2202 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
2203 constraint for operand 2 when operand 0 is memory operand.
2204 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
2205 operand 0 is memory operand.
2206 (fix_trunc<mode>_i387_with_temp): Ditto.
2207 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
2208 operand 2 when operand 1 is memory operand.
2209 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
2210 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
2211 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
2212 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
2213 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
2214 operands 2,3 and 4 when operand 1 is memory operand.
2215 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
2217 (fistdi2_floor_with_temp): Ditto.
2218 (fist<mode>2_floor_with_temp): Ditto.
2219 (fistdi2_ceil_with_temp): Ditto.
2220 (fist<mode>2_ceil_with_temp): Ditto.
2221 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
2223 2008-04-26 David Daney <ddaney@avtrex.com>
2225 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
2227 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
2228 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
2229 UNSPEC_UPDATE_GOT_VERSION): Renumber.
2230 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
2231 (compare_and_swap_12): New insn.
2232 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
2233 * config/mips/mips.c (mips_force_binary): New function.
2234 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
2235 (mips_expand_compare_and_swap_12): New function.
2236 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
2238 2008-04-25 Jan Hubicka <jh@suse.cz>
2241 * cfgexpand.c (pass_expand): Turn into RTL pass.
2242 * passes.c (execute_one_pass): Do pass typechecking after execution.
2243 * tree-pass.h (pass_expand): Turn into RTL pass.
2245 * function.h (struct rtl_data): Move here fields
2246 accesses_prior_frames, calls_eh_return, saves_all_registers,
2247 has_nonlocal_goto, has_asm_statement, is_thunk,
2248 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
2249 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
2250 arg_pointer_save_area_init from struct function; turn into bool.
2251 (struct function): Move
2252 calls_eh_return, saves_all_registers, has_nonlocal_goto,
2253 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
2254 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
2255 tail_call_emit, arg_pointer_save_area_init
2256 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
2257 (current_function_returns_struct, current_function_returns_pcc_struct,
2258 current_function_calls_setjmp, current_function_calls_alloca,
2259 current_function_accesses_prior_frames,
2260 current_function_calls_eh_return, current_function_is_thunk,
2261 current_function_stdarg, current_function_profile,
2262 current_function_limit_stack, current_function_uses_pic_offset_table,
2263 current_function_uses_const_pool, current_function_has_nonlocal_label,
2264 current_function_saves_all_registers,
2265 current_function_has_nonlocal_goto,
2266 current_function_has_asm_statement): Remove accesor macros.
2267 * ra-conflict.c (global_conflicts): Update.
2268 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
2269 (suitable_for_tail_call_opt_p): Update.
2270 * builtins.c (expand_builtin_return_addr): Update.
2271 (expand_builtin_setjmp_setup): Update.
2272 (expand_builtin_nonlocal_goto): Update.
2273 * final.c (final_start_function): Update.
2274 (profile_function): Update.
2275 (leaf_function_p): Update.
2276 (only_leaf_regs_used): Update.
2277 * df-scan.c (df_get_exit_block_use_set): Update.
2278 * dojump.c (clear_pending_stack_adjust): Update.
2279 * tree-stdarg.c (gate_optimize_stdarg): Update.
2280 * gimple-low.c (lower_function_body): Update.
2281 * global.c (compute_regsets): Update.
2282 (global_alloc): Update.
2283 * dwarf2out.c (dwarf2out_begin_prologue): Update.
2284 * expr.c (expand_assignment): Update.
2285 * dse.c (dse_step0): Update.
2286 (dse_step1): Update.
2287 * c-decl.c (store_parm_decls): Update.
2288 * local-alloc.c (combine_regs): Update.
2289 (find_free_reg): Update.
2290 * function.c (assign_parms_augmented_arg_list): Update.
2291 (assign_parm_find_data_types): Update.
2292 (assign_parms): Update.
2293 (allocate_struct_function): Update.
2294 (expand_function_start): Update.
2295 (expand_function_end): Update.
2296 (get_arg_pointer_save_area): Update.
2297 (thread_prologue_and_epilogue_insns): Update.
2298 (rest_of_match_asm_constraints): Update.
2299 * stor-layout.c (variable_size): Update.
2300 * gcse.c (gcse_main): Update.
2301 (bypass_jumps): Update.
2302 * gimplify.c (gimplify_function_tree): Update.
2303 * calls.c (emit_call_1): Update.
2304 (expand_call): Update.
2305 * bt-load.c (compute_defs_uses_and_gen): Update.
2306 * except.c (sjlj_assign_call_site_values): Update.
2307 (sjlj_emit_function_enter): Update.
2308 (can_throw_external): Update.
2309 (set_nothrow_function_flags): Update.
2310 (expand_builtin_unwind_init): Update.
2311 (expand_eh_return): Update.
2312 (convert_to_eh_region_ranges): Update.
2313 (output_function_exception_table): Update.
2314 * emit-rtl.c (gen_tmp_stack_mem): Update.
2315 * cfgexpand.c (expand_used_vars): Update.
2316 (tree_expand_cfg): Update.
2317 * cfgcleanup.c (rest_of_handle_jump): Update.
2318 * explow.c (allocate_dynamic_stack_space): Update.
2319 * varasm.c (assemble_start_function): Update.
2320 (force_const_mem): Update.
2321 (mark_constant_pool): Update.
2322 * tree-optimize.c (tree_rest_of_compilation): Update.
2323 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
2324 * tree-cfg.c (notice_special_calls): Update.
2325 (is_ctrl_altering_stmt): Update.
2326 (tree_can_make_abnormal_goto): Update.
2327 (tree_purge_dead_abnormal_call_edges): Update.
2328 * config/alpha/predicates.md: Update.
2329 * config/alpha/alpha.c (alpha_sa_mask): Update.
2330 (alpha_sa_size): Update.
2331 (alpha_does_function_need_gp): Update.
2332 (alpha_expand_prologue): Update.
2333 (alpha_start_function): Update.
2334 (alpha_output_function_end_prologue): Update.
2335 (alpha_expand_epilogue): Update.
2336 * config/frv/frv.c (frv_stack_info): Update.
2337 (frv_expand_epilogue): Update.
2338 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
2339 (s390_register_info): Update.
2340 (s390_frame_info): Update.
2341 (s390_init_frame_layout): Update.
2342 (s390_can_eliminate): Update.
2343 (save_gprs): Update.
2344 * config/spu/spu.c (spu_split_immediate): Update.
2345 (need_to_save_reg): Update.
2346 (spu_expand_prologue): Update.
2347 (spu_expand_epilogue): Update.
2348 * config/sparc/sparc.md: Update.
2349 * config/sparc/sparc.c (eligible_for_return_delay): Update.
2350 (sparc_tls_got): Update.
2351 (legitimize_pic_address): Update.
2352 (sparc_emit_call_insn): Update.
2353 (sparc_expand_prologue): Update.
2354 (output_return): Update.
2355 (print_operand): Update.
2356 (sparc_function_ok_for_sibcall): Update.
2357 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
2358 * config/m32r/m32r.md: Update.
2359 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
2360 (m32r_compute_frame_size): Update.
2361 (m32r_expand_prologue): Update.
2362 (m32r_expand_epilogue): Update.
2363 (m32r_legitimize_pic_address): Update.
2364 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
2365 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
2366 * config/i386/i386.c (ix86_frame_pointer_required): Update.
2368 (ix86_save_reg): Update.
2369 (ix86_compute_frame_layout): Update.
2370 (ix86_expand_prologue): Update.
2371 (ix86_expand_epilogue): Update.
2372 * config/sh/sh.c (output_stack_adjust): Update.
2373 (calc_live_regs): Update.
2374 (sh5_schedule_saves): Update.
2375 (sh_expand_prologue): Update.
2376 (sh_expand_epilogue): Update.
2377 (sh_setup_incoming_varargs): Update.
2378 (sh_allocate_initial_value): Update.
2379 (sh_get_pr_initial_val): Update.
2380 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
2381 * config/sh/sh.md (label:): Update.
2382 * config/avr/avr.c (out_movhi_mr_r): Update.
2383 * config/crx/crx.h (enum): Update.
2384 * config/xtensa/xtensa.h (along): Update.
2385 * config/stormy16/stormy16.c Update.
2386 (xstormy16_compute_stack_layout): Update.
2387 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
2388 (fr30_expand_prologue): Update.
2389 * config/cris/cris.c (cris_conditional_register_usage): Update.
2390 (cris_reg_saved_in_regsave_area): Update.
2391 (cris_initial_frame_pointer_offset): Update.
2392 (cris_simple_epilogue): Update.
2393 (cris_expand_prologue): Update.
2394 (cris_expand_epilogue): Update.
2395 (cris_expand_pic_call_address): Update.
2396 (cris_asm_output_symbol_ref): Update.
2397 (cris_asm_output_label_ref): Update.
2398 * config/cris/cris.md Update.
2399 * config/iq2000/iq2000.c (compute_frame_size): Update.
2400 (iq2000_expand_epilogue): Update.
2401 * config/mt/mt.h (save_direction): Update.
2402 * config/mn10300/mn10300.c (mn10300_function_value): Update.
2403 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
2404 (ia64_secondary_reload_class): Update.
2405 * config/m68k/m68k.c (m68k_save_reg): Update.
2406 (m68k_expand_prologue): Update.
2407 (m68k_expand_epilogue): Update.
2408 (legitimize_pic_address): Update.
2409 * config/rs6000/rs6000.c (rs6000_got_register): Update.
2410 (first_reg_to_save): Update.
2411 (first_altivec_reg_to_save): Update.
2412 (compute_vrsave_mask): Update.
2413 (compute_save_world_info): Update.
2414 (rs6000_stack_info): Update.
2415 (spe_func_has_64bit_regs_p): Update.
2416 (rs6000_ra_ever_killed): Update.
2417 (rs6000_emit_eh_reg_restore): Update.
2418 (rs6000_emit_allocate_stack): Update.
2419 (rs6000_emit_prologue): Update.
2420 (rs6000_emit_epilogue): Update.
2421 (rs6000_output_function_epilogue): Update.
2422 (output_profile_hook): Update.
2423 (rs6000_elf_declare_function_name): Update.
2424 * config/rs6000/rs6000.h (rs6000_args): Update.
2425 * config/rs6000/rs6000.md: Update.
2426 * config/mcore/mcore.c (mcore_expand_prolog): Update.
2427 * config/arc/arc.c (arc_output_function_epilogue): Update.
2428 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
2429 * config/darwin.c (machopic_function_base_name): Update.
2430 * config/score/score3.c (score3_compute_frame_size): Update.
2433 (score3_epilogue): Update.
2434 * config/score/score7.c (score7_compute_frame_size): Update.
2435 (score7_prologue): Update.
2436 (score7_epilogue): Update.
2437 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
2438 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
2439 * config/arm/arm.c (use_return_insn): Update.
2440 (require_pic_register): Update.
2441 (arm_load_pic_register): Update.
2442 (arm_compute_save_reg0_reg12_mask): Update.
2443 (arm_compute_save_reg_mask): Update.
2444 (thumb1_compute_save_reg_mask): Update.
2445 (output_return_instruction): Update.
2446 (arm_output_function_prologue): Update.
2447 (arm_output_epilogue): Update.
2448 (arm_get_frame_offsets): Update.
2449 (arm_expand_prologue): Update.
2450 (thumb_pushpop): Update.
2451 (thumb_exit): Update.
2452 (thumb1_expand_prologue): Update.
2453 (thumb1_expand_epilogue): Update.
2454 (arm_unwind_emit): Update.
2455 (arm_output_fn_unwind): Update.
2456 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
2457 * config/arm/arm.md: Update.
2458 * config/pa/pa.md: Update.
2459 * config/pa/pa.c (legitimize_pic_address): Update.
2460 (compute_frame_size): Update.
2461 (hppa_expand_prologue): Update.
2462 (hppa_expand_epilogue): Update.
2463 (borx_reg_operand): Update.
2464 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
2465 (HARD_REGNO_RENAME_OK): Update.
2466 * config/mips/mips.c (mips_global_pointer): Update.
2467 (mips_save_reg_p): Update.
2468 (mips_compute_frame_info): Update.
2469 (mips_frame_pointer_required): Update.
2470 (mips_expand_prologue): Update.
2471 (mips_expand_epilogue): Update.
2472 (mips_can_use_return_insn): Update.
2473 (mips_reorg_process_insns): Update.
2474 * config/v850/v850.c (compute_register_save_size): Update.
2475 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
2476 * config/mmix/mmix.c (along): Update.
2477 (mmix_expand_epilogue): Update.
2478 * config/bfin/bfin.c (legitimize_pic_address): Update.
2479 (must_save_p): Update.
2480 (stack_frame_needed_p): Update.
2481 (add_to_reg): Update.
2482 (bfin_expand_prologue): Update.
2483 * stmt.c (expand_asm_operands): Update.
2484 * reload1.c (reload): Update.
2485 (init_elim_table): Update.
2487 2008-04-25 Bob Wilson <bob.wilson@acm.org>
2489 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
2491 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
2493 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
2494 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
2495 (mov<mode>): Removed.
2496 (*movv4sf_internal): Likewise.
2497 (*movv2df_internal): Likewise.
2499 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
2501 * config.gcc (crx-*-elf): Remove deprecation.
2503 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
2505 * config/i386/cygming-crtend.c (register_frame_ctor): Register
2506 __gcc_deregister_frame with atexit.
2507 (deregister_frame_dtor): Remove.
2509 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
2510 Nathan Sidwell <nathan@codesourcery.com>
2512 * config/rs6000/rs6000.opt (mspe): Remove Var property.
2514 * config/rs6000/rs6000.h (rs6000_spe): Declare.
2515 (rs6000_isel): Likewise.
2516 * config/rs6000/rs6000.c (rs6000_spe): New variable.
2517 (rs6000_isel): New variable.
2518 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
2520 2008-04-24 Jakub Jelinek <jakub@redhat.com>
2523 * c-common.c (handle_vector_size_attribute): Call
2524 lang_hooks.types.reconstruct_complex_type instead of
2525 reconstruct_complex_type.
2526 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
2527 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
2528 * langhooks.h (struct lang_hooks_for_types): Add
2529 reconstruct_complex_type hook.
2530 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
2531 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
2533 2008-04-24 Richard Guenther <rguenther@suse.de>
2535 * c-common.h (check_builtin_function_arguments): Declare.
2536 * c-common.c (validate_nargs): New function.
2537 (check_builtin_function_arguments): Likewise.
2538 * c-typeck.c (build_function_call): Call
2539 check_builtin_function_arguments.
2540 * builtins.c (fold_builtin_classify): Remove error reporting code.
2541 (fold_builtin_unordered_cmp): Likewise.
2542 (fold_builtin_1): Likewise.
2543 (fold_builtin_n): Likewise.
2545 2008-04-24 Jakub Jelinek <jakub@redhat.com>
2547 PR tree-optimization/36008
2548 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
2549 the original op1, rather than delta by step.
2551 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
2552 Sebastian Pop <sebastian.pop@amd.com>
2554 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
2555 eliminate_local_variables_stmt, eliminate_local_variables,
2556 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
2557 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
2558 of code delimited by two edges in the CFG.
2559 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
2560 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
2561 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
2562 the case of parallelisation of reductions.
2563 (expr_invariant_in_region_p): New.
2565 * tree-flow.h (gather_blocks_in_sese_region): Declared.
2566 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
2568 2008-04-24 Ira Rosen <irar@il.ibm.com>
2569 Richard Guenther <rguenther@suse.de>
2571 PR tree-optimization/36034
2572 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
2573 incapable of dealing with loads with gaps.
2575 2008-04-24 Rafael Espindola <espindola@google.com>
2577 * tree-flow.h (vrp_evaluate_conditional): Change signature.
2578 * tree-ssa-propagate.c (fold_predicate_in): Update call to
2579 vrp_evaluate_conditional.
2580 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
2581 (vrp_evaluate_conditional): Split the cond argument.
2582 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
2583 (simplify_stmt_for_jump_threading): Update call to
2584 vrp_evaluate_conditional.
2586 2008-04-24 Ira Rosen <irar@il.ibm.com>
2588 PR tree-optimization/35982
2589 * tree-vect-analyze.c (vect_check_interleaving): Check that the
2590 interleaved data-refs are of the same type.
2592 2008-04-24 Danny Smith <dannysmith@users.net>
2594 * c-format.c (check_format_info_main): Use strncmp rather than a
2595 magic prefix to handle multichar length specs.
2596 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
2597 Don't prefix "I64" and "I32" with '\0'.
2599 2008-04-24 Jakub Jelinek <jakub@redhat.com>
2602 * config/i386/i386.c (init_cumulative_args): Don't pass anything
2603 in registers for -m32 only if stdarg_p (fntype).
2605 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
2607 PR rtl-optimization/36006
2608 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
2609 temp to op0 in order to avoid invalid rtx sharing.
2611 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
2613 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
2614 check TREE_INVARIANT.
2615 * tree-gimple.c (is_gimple_address): New.
2616 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
2617 * tree-gimple.h (is_gimple_address): New.
2618 * tree.h (decl_address_invariant_p): New.
2619 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
2620 (build_string): Likewise.
2621 (decl_address_invariant_p): New, from is_gimple_invariant_address.
2622 (tree_invariant_p_1): Likewise.
2623 (save_expr): Use it.
2624 (tree_invariant_p): New.
2625 (skip_simple_arithmetic): Use it.
2626 (stabilize_reference_1): Use it.
2627 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
2629 (build1_stat): Drop code to compute TREE_INVARIANT.
2630 (build2_stat): Drop code to compute TREE_INVARIANT.
2631 (build3_stat): Drop code to compute TREE_INVARIANT.
2632 (build4_stat): Drop code to compute TREE_INVARIANT.
2633 (build5_stat): Drop code to compute TREE_INVARIANT.
2634 (build7_stat): Drop code to compute TREE_INVARIANT.
2635 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
2636 * tree.h (struct tree_base): Remove invariant_flag.
2637 (TREE_INVARIANT): Remove.
2638 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
2639 (fold_builtin_expect): Check TREE_CONSTANT.
2640 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
2641 * c-tree.h (c_expr_to_decl): Drop third parameter.
2642 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
2643 (build_c_cast): Don't set TREE_INVARIANT.
2644 (pop_init_level): Don't set TREE_INVARIANT.
2645 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
2646 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
2648 (gimplify_init_constructor): Don't set TREE_INVARIANT.
2649 (gimplify_addr_expr): Adjust comment.
2650 * tree-mudflap.c (mf_build_string):
2651 * print-tree.c (print_node): Don't print TREE_INVARIANT.
2652 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
2653 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
2654 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
2655 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
2656 * langhooks.h (struct lang_hooks): Drop third parameter from
2659 2008-04-23 Richard Guenther <rguenther@suse.de>
2661 PR tree-optimization/27799
2662 PR tree-optimization/32921
2663 PR tree-optimization/32624
2664 * tree-ssa-structalias.c (merge_smts_into): Only merge the
2665 SMTs aliases and the tag itself into the solution.
2666 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
2667 merge the points-to solution back into the SMT aliases.
2668 (may_alias_p): Use alias_set_subset_of instead of
2669 aliases_conflict_p. A pointer which points to
2670 memory with alias set zero may access any variable.
2672 2008-04-23 Richard Guenther <rguenther@suse.de>
2674 * alias.c (alias_set_subset_of): Correctly handle asking
2675 if zero is a subset of an alias set with zero child.
2676 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
2677 (compute_flow_insensitive_aliasing): Correctly walk all
2678 pointers. Do not unnecessarily union sets.
2680 2008-04-23 Richard Guenther <rguenther@suse.de>
2683 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
2685 2008-04-22 Tomas Bily <tbily@suse.cz>
2687 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
2689 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
2691 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2692 * tree-ssa-structalias.c (get_constraint_for): Likewise.
2693 * tree-inline.c (estimate_num_insns_1): Likewise.
2694 * varasm.c (const_hash_1, compare_constant, copy_constant)
2695 (compute_reloc_for_constant, output_addressed_constants): Likewise.
2696 * emit-rtl.c (component_ref_for_mem_expr)
2697 (set_mem_attributes_minus_bitpos): Likewise.
2698 * expr.c (highest_pow2_factor, expand_expr_real_1, )
2699 (is_aligning_offset): Likewise.
2700 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
2701 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2702 * dojump.c (do_jump): Likewise.
2703 * builtins.c (get_pointer_alignment, get_memory_rtx)
2704 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
2705 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
2707 2008-04-23 Jakub Jelinek <jakub@redhat.com>
2709 PR rtl-optimization/36017
2710 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
2711 expanding the library call.
2713 2008-04-22 Ian Lance Taylor <iant@google.com>
2715 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
2718 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
2720 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
2721 of LR/CTR moves for Power6.
2723 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
2726 * passes.c (init_optimization_passes): Remove
2727 pass_fast_rtl_byte_dce.
2729 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
2732 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
2733 builtin functions to generate faster code.
2734 (_mm_cvtpu16_ps): Ditto.
2735 (_mm_cvtpi32x2_ps): Ditto.
2737 2008-04-22 Nick Clifton <nickc@redhat.com>
2739 * common.opt (ftree-loop-distribution): Add Optimization
2742 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
2743 (frv_expand_builtin_va_start): Likewise.
2745 * config/arm/arm.c (thumb_find_work_register): Fix location of
2746 argument register count.
2748 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
2750 Support scheduling for ColdFire V1 and V3 microarchitecture.
2751 Improve scheduling of multiplication instructions.
2753 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
2754 (mac): New instruction attribute.
2755 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
2756 (m68k_sched_mac): New variable.
2757 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
2758 Handle cfv1 and cfv3.
2759 (max_insn_size): New static variable.
2760 (struct _sched_ib): New type.
2761 (sched_ib): New static variable.
2762 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
2763 to fields of 'struct _sched_ib sched_ib'. Update all uses.
2764 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
2766 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
2767 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
2768 new variables. Update.
2769 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2770 Add modeling of cfv3 instruction buffer. Update.
2771 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
2772 * config/m68k/m68k.h (TUNE_CFV3): New macro.
2773 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
2774 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
2775 a particular reservation applies to.
2776 (type2): Reorganize attribute values. Rename alu to alu_reg,
2777 alu_l to alu, move_l to omove. Join move to alu. Split mul
2779 (cf_ib_*): Simplify description of instruction buffer.
2780 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
2781 (cf_mem): Split into cf_mem1 and cf_mem2.
2782 (cf_v2_move_??): Rename to cfv12_alu_??.
2783 (cf_v2_move_l_??): Rename to cfv12_omove_??.
2784 (cf_v2_mul_??): Remove reservations.
2785 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
2786 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
2787 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
2789 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
2790 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
2791 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
2792 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
2793 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
2794 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
2795 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
2796 expansions of the above reservations for instructions of sizes
2799 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
2801 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
2803 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
2805 * coverage.c: Include tree-pass.h.
2806 (coverage_counter_alloc): Print da_file_name to the dump file.
2808 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
2810 * sbitmap.c (sbitmap_range_empty_p): New function.
2811 * sbitmap.h (sbitmap_range_empty_p): New function.
2812 * bitmap.h: Now includes obstack.h.
2814 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
2815 Kenneth Zadeck <zadeck@naturalbridge.com>
2817 * dbgcnt.def (ra_byte_scan): Added.
2818 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
2819 when the last hit happens for a counter.
2820 * timevar.def (TV_DF_BYTE_LR): New variable.
2821 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
2822 * passes.c (pass_fast_rtl_byte_dce): New pass.
2823 * fwprop.c (update_df): Added mode to call df_ref_create.
2824 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2825 DF_REF_EXTRACT_OFFSET.
2826 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
2827 DF_BYTE_LR_OUT, df_byte_lr): New macro.
2829 (df_ref_extract): Added mode field.
2830 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
2831 DF_REF_EXTRACT_OFFSET.
2832 (DF_REF_EXTRACT_MODE): New macro.
2833 (df_byte_lr_bb_info): New structure.
2834 (df_print_byte_regset, df_compute_accessed_bytes,
2835 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
2836 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
2837 df_byte_lr_simulate_uses,
2838 df_byte_lr_simulate_artificial_refs_at_top,
2839 df_byte_lr_simulate_artificial_refs_at_end,
2840 df_compute_accessed_bytes): New function.
2841 (df_ref_create): Add parameter.
2842 (df_byte_lr_get_bb_info): New inline function.
2843 * df-scan.c (df_ref_record, df_uses_record,
2844 df_ref_create_structure): Added mode parameter.
2845 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
2846 df_defs_record, df_uses_record, df_get_conditional_uses,
2847 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
2848 df_entry_block_defs_collect, df_exit_block_uses_collect):
2849 Added mode parameter to calls to df_ref_record, df_uses_record,
2850 df_ref_create_structure.
2851 (df_ref_equal_p, df_ref_compare): Added test for modes.
2852 (df_ref_create_structure): Added code to set mode. Renamed
2853 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2854 DF_REF_EXTRACT_OFFSET.
2855 * df-core.c (df_print_byte_regset): New function.
2856 * df-byte-scan.c: New file.
2857 * df-problems.c (df_rd_transfer_function): Removed unnecessary
2858 calls to BITMAP_FREE.
2859 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
2860 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
2861 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
2862 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
2863 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
2864 df_byte_lr_local_compute, df_byte_lr_init,
2865 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
2866 df_byte_lr_transfer_function, df_byte_lr_free,
2867 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
2868 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
2869 df_byte_lr_simulate_uses,
2870 df_byte_lr_simulate_artificial_refs_at_top,
2871 df_byte_lr_simulate_artificial_refs_at_end): New function.
2872 * dce.c (byte_dce_process_block): New function.
2873 (dce_process_block): au is now passed in rather than computed
2874 locally. Changed loops that look at artificial defs to not look
2875 for conditional or partial ones, because there never are any.
2876 (fast_dce): Now is able to drive byte_dce_process_block or
2877 dce_process_block depending on the kind of dce being done.
2878 (rest_of_handle_fast_dce): Add parameter to fast_dce.
2879 (rest_of_handle_fast_byte_dce): New function.
2880 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
2881 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
2883 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
2886 * gcc.h: Added fortran options that take arguments to
2887 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
2890 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
2892 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
2893 scalarization if on the LHS and not a full access.
2895 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2897 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
2899 2008-04-18 Rafael Espindola <espindola@google.com>
2901 * tree-vrp.c (find_case_label_index): Fix the binary search.
2902 (find_case_label_range): New.
2903 (vrp_visit_switch_stmt): Use find_case_label_range.
2904 (simplify_switch_using_ranges): Use find_case_label_range.
2906 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2908 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
2909 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
2911 2008-04-18 Tom Tromey <tromey@redhat.com>
2914 * doc/cpp.texi (Implementation-defined behavior): Mention
2917 2008-04-18 Ian Lance Taylor <iant@google.com>
2919 * fold-const.c (pointer_may_wrap_p): New static function.
2920 (fold_comparison): Add another test for pointer overflow. Use
2921 pointer_may_wrap_p to disable some false positives.
2923 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
2925 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
2926 (fname_as_string): Match updated cpp_interpret_string prototype.
2927 (fix_string_type): Support char16_t* and char32_t*.
2928 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
2929 derivative) nodes. Register as builtin if C++0x.
2930 (c_parse_error): Support CPP_CHAR{16,32}.
2931 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
2932 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
2933 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
2934 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
2935 CTI_CHAR32_ARRAY_TYPE>: New elements.
2936 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
2937 char32_type_node, signed_char32_type_node, char16_array_type_node,
2938 char32_array_type_node): New defines.
2939 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
2940 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
2941 (lex_string): Support CPP_STRING{16,32}, match updated
2942 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
2943 (lex_charconst): Support CPP_CHAR{16,32}.
2944 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
2945 and CPP_STRING{16,32}.
2947 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
2950 * aclocal.m4: Regenerate.
2951 * configure: Regenerate.
2953 2008-04-18 Jan Hubicka <jh@suse.cz>
2955 * except.c (dw2_size_of_call_site_table,
2956 sjlj_size_of_call_site_table): Use vector API for call_site_record.
2958 * cgraphbuild.c (build_cgraph_edges): Update.
2959 * tree-pass.h: Update comment.
2960 * final.c (leaf_function_p): Update.
2961 (leaf_renumber_regs): Update.
2962 (rest_of_clean_state): Update.
2963 * omp-low.c (expand_omp_parallel): Update.
2964 * ipa-reference.c (analyze_function): Update.
2965 * reorg.c (find_end_label): Update.
2966 (optimize_skip): Update.
2967 (fill_simple_delay_slots): Update.
2968 (fill_simple_delay_slots): Update.
2969 (make_return_insns): Update.
2970 (dbr_schedule): Update.
2971 * gimple-low.c (record_vars_into): Update.
2972 * cfgbuild.c (make_edges): Update.
2973 * function.c (assign_stack_local): Update.
2974 (assign_parm_adjust_stack_rtl): Update.
2975 (locate_and_pad_parm): Update.
2976 (allocate_struct_function): Do not initialize stack_alignment_needed
2977 and preferred_stack_boundary here.
2978 (stack_protect_prologue): Update.
2979 (stack_protect_epilogue): Update.
2980 (expand_function_start): Initialize stack_alignment_needed,
2981 preferred_stack_boundary and max_jumptable_ents.
2982 (expand_function_end): Update.
2983 (free_after_compilation): Do not NULLify epilogue_delay_list.
2984 * function.h (struct rtl_data): Add stack_protect_guard,
2985 stack_alignment_needed,
2986 preferred_stack_boundary, epilogue_delay_list.
2987 (struct function): Remove value_histograms, stack_alignment_needed,
2988 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
2990 unexpanded_var_list, stack_protect_guard.
2991 (current_function_epilogue_delay_list): Remove.
2992 * ipa-type-escape.c (analyze_function): Update.
2993 * gimplify.c (pop_gimplify_context): Update comment.
2994 * calls.c (expand_call): Update.
2995 (emit_library_call_value_1): Update.
2996 * except.c (set_nothrow_function_flags): Update.
2997 * cfgexpand.c (get_decl_align_unit): Update.
2998 (create_stack_guard): Update.
2999 (estimated_stack_frame_size): Update.
3000 (expand_used_vars): Update.
3001 (tree_expand_cfg): Free histogram earliers, init expansion variables.
3002 * explow.c (allocate_dynamic_stack_space): Update.
3003 * tree-ssa-live.c (remove_unused_locals): Update.
3004 * varasm.c (mark_constant_pool): Update.
3005 * tree-inline.c (remap_decls): Update.
3006 (initialize_cfun): Update.
3007 (declare_return_variable): Update.
3008 (inline_forbidden_p): Update.
3009 (expand_call_inline): Update.
3010 (declare_inline_vars): Update.
3011 (tree_function_versioning): Update.
3012 * tree-flow.h (value_histograms): New.
3013 (VALUE_HISTOGRAMS): New macro.
3014 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
3016 * tree-cfg.c (set_bb_for_stmt): Update.
3017 (replace_by_duplicate_decl): Update.
3018 (move_block_to_fn): Update.
3019 (new_label_mapper): Update.
3020 (dump_function_to_file): Update.
3021 * ipa-struct-reorg.c (build_data_structure): Update.
3022 * cfgrtl.c (print_rtl_with_bb): Update.
3023 * reload1.c (reload): Update.
3025 * config/i386/i386.c (setup_incoming_varargs_64,
3026 ix86_compute_frame_layout): Update.
3027 * config/arc/arc.c (arc_output_function_epilogue): Update.
3029 2008-04-18 Marius Strobl <marius@FreeBSD.org>
3031 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
3032 for FreeBSD as well.
3033 * gthr-posix95.h: Likewise.
3035 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
3037 PR rtl-optimization/35838
3038 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
3039 out the byte offset of the first subreg.
3041 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
3043 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
3044 to split_ti instead of three separate calls with single member arrays.
3045 (subti3 splitter): Ditto.
3046 (adddi3 splitter): Ditto with split_di.
3047 (subdi3 splitter): Ditto.
3048 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
3049 two separate calls with single member arrays. Swap match_dup
3050 operands 1 and 2 to better fit into the array.
3051 (negdi2 splitter): Ditto with split_di.
3052 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
3053 two separate calls with single member arrays. Swap match_dup operands
3054 6 and 7 to better fit into the array.
3056 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
3058 * config/i386/i386.c (sse_builtin_type): New.
3059 (bdesc_sse_args): Likewise.
3060 (bdesc_sse_3arg): Removed.
3061 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
3062 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
3063 IX86_BUILTIN_ROUNDPS.
3064 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
3065 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
3066 IX86_BUILTIN_ROUNDPS.
3067 (ix86_expand_sse_4_operands_builtin): Removed.
3068 (ix86_expand_sse_operands_builtin): New.
3069 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
3070 and CODE_FOR_sse4_1_roundps.
3071 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
3072 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
3074 2008-04-17 Alan Modra <amodra@bigpond.net.au>
3077 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
3078 regs before frame pop when needed. If use_backchain_to_restore_sp
3079 then load backchain into a temp reg to restore vr and vrsave. Add
3080 code to restore vr after frame pop if possible.
3082 2008-04-17 Richard Guenther <rguenther@suse.de>
3084 * tree-vn.c (expressions_equal_p): Do not check type
3085 equality or compatibility before calling operand_equal_p.
3086 * fold-const.c (operand_equal_p): Check equivalence of
3087 integer constants before bailing out due to signedness or
3088 precision differences.
3089 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
3090 spurious differences in type qualification. Ignore types
3091 for COMPONENT_REFs at all.
3093 2008-04-17 Christian Bruel <christian.bruel@st.com>
3095 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
3096 msw_skip comparison.
3098 2008-04-16 Jakub Jelinek <jakub@redhat.com>
3101 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
3104 PR tree-optimization/35899
3105 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
3106 rather than TREE_OPERAND.
3108 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
3111 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
3112 temporary registers. Change operand predicate to general_operand.
3113 (remainderxf3): Ditto.
3115 2008-04-16 Richard Guenther <rguenther@suse.de>
3117 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
3118 * tree-affine.c (aff_combination_expand): Look through some
3121 2008-04-15 Doug Kwan <dougkwan@google.com>
3123 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
3125 * tree-pretty-print.c (dump_generic_node): Ditto.
3126 * final.c (output_addr_const): Ditto.
3127 * dwarf2out.c (output_cfi): Ditto.
3128 * c-pretty-print.c (pp_c_integer_constant): Ditto.
3129 * print-rtl.c (print_rtx): Ditto.
3130 * print-tree.c (print_node_brief, print_node): Ditto.
3131 * c-common.c (match_case_to_enum_1): Ditto.
3132 * sched-vis.c (print_value): Ditto.
3133 * config/i386/i386.c (print_operand): Cast to long unsigned int
3136 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
3137 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
3138 MS Windows VirtualProtect function.
3140 2008-04-15 Jan Hubicka <jh@suse.cz>
3142 * gengtype.c (write_root): Param_is argument is OK.
3143 * expr.c (expand_expr_real_1): Update call of get_exception_*.
3144 * function.h: Include varray.h
3145 (rtl_eh): New stucture based on except.c one.
3146 (call_site_record): New forward declaration and vector type.
3147 * calls.c (emit_call_1): Do not call
3148 note_current_region_may_contain_throw.
3149 * except.c (eh_status): Remove cur_region, try_region since they are
3151 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
3152 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
3153 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
3154 Remove call_site_data_used, call_site_data_size.
3155 Turn call_site_record into vector in function.h.
3156 (note_current_region_may_contain_throw): Remove.
3157 (get_exception_pointer, get_exception_filter): Do not take struct
3158 function argument; update.
3159 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
3160 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
3161 build_post_landing_pads, dw2_build_landing_pads,
3162 sjlj_assign_call_site_values, sjlj_mark_call_sites,
3163 sjlj_emit_function_enter, sjlj_emit_function_enter,
3164 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
3165 sjlj_build_landing_pads, finish_eh_generation,
3166 remove_exception_handler_label, remove_eh_handler,
3167 maybe_remove_eh_handler, add_reachable_handler,
3168 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
3169 add_action_record, collect_one_action_chain, add_call_site,
3170 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
3171 sjlj_output_call_site_table, output_function_exception_table,
3172 * except.h (note_current_region_may_contain_throw): Remove
3173 (get_exception_pointer, get_exception_filter): Do not take struct
3175 * Makefile.in (GTFILES): Put varargs before struct function.
3177 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
3179 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
3180 punt for STRING_CST.
3181 (get_constraint_for): Deal with STRING_CST here instead.
3183 2008-04-15 Richard Guenther <rguenther@suse.de>
3185 * tree-ssa-propagate.c (substitute_and_fold): Substitute
3186 statements in a basic-block with a backward walk. Do not
3187 substitute into dead statements but instead remove those.
3189 2008-04-15 Richard Guenther <rguenther@suse.de>
3191 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
3192 to zero, thus disable creation of SFTs.
3194 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
3196 * tree-predcom.c (suitable_reference_p): Return false if the
3197 reference can throw.
3199 2008-04-15 Jakub Jelinek <jakub@redhat.com>
3202 * c-decl.c (finish_decl): If extern or static var has variable
3203 size, set TREE_TYPE (decl) to error_mark_node.
3205 2008-04-15 Rafael Espindola <espindola@google.com>
3207 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
3210 2008-04-15 Richard Guenther <rguenther@suse.de>
3212 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
3213 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
3214 (visit_reference_op_load): Do walk vuse-vdef chains on
3215 vn_reference_lookup.
3216 (visit_reference_op_store): But do not here.
3217 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
3218 vn_reference_lookup.
3219 (vn_lookup_with_vuses): But do so here.
3221 2008-04-14 Ian Lance Taylor <iant@google.com>
3223 * fold-const.c (fold_overflow_warning): Remove assertion.
3225 2008-04-15 Ben Elliston <bje@au.ibm.com>
3227 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
3228 temp1 local variables.
3230 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
3233 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
3234 ".text.unlikely" section as executable.
3236 2008-04-14 James E. Wilson <wilson@tuliptree.org>
3238 * config/ia64/ia64.c (rtx_needs_barrier): Handle
3239 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
3240 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
3241 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
3242 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
3243 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
3244 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
3246 2008-04-14 Ian Lance Taylor <iant@google.com>
3248 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
3249 * fold-const.c (fold_comparison): If appropriate, test
3250 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
3251 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
3252 reassociating a pointer type.
3253 * doc/invoke.texi (Optimize Options): Document that
3254 -fstrict-overflow applies to pointer wraparound.
3256 2008-04-13 Jan Hubicka <jh@suse.cz>
3258 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
3260 2008-04-12 Andrew Pinski <pinskia@gmail.com>
3262 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
3263 we are going to "save the world".
3265 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
3267 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
3268 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
3269 operand 0 constraint, not "=".
3271 2008-04-11 James E. Wilson <wilson@tuliptree.org>
3273 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
3275 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
3277 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
3278 of size of positions_needed * CHAR_BIT.
3280 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
3283 * dse.c (store_info): Change positions_needed to unsigned
3285 (lowpart_bitmask): New.
3286 (record_store): Cast to unsigned HOST_WIDE_INT for
3287 positions_needed. Assert width <= size of positions_needed *
3288 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
3289 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
3290 lowpart_bitmask to set mask.
3292 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
3294 * config/bfin/constraints.md: New file.
3295 * config/bfin/bfin.md: Include it.
3296 (adddi3): Use satisfies_constraint functions instead of the old macros.
3297 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
3298 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
3299 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
3300 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
3301 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
3302 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
3303 EXTRA_CONSTRAINT): Delete.
3304 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
3305 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
3307 * config/bfin/bfin.c: Include "tm-constrs.h".
3308 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
3309 Use satisfies_constraint functions instead of the old macros.
3310 * doc/md.texi (Blackfin Constraints): Update file name reference.
3312 2008-04-11 Richard Guenther <rguenther@suse.de>
3314 PR tree-optimization/35869
3315 * tree-vrp.c (execute_vrp): Move switch statement update after
3316 jump threading. Schedule another cfg cleanup run.
3318 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
3321 * attribs.c (decl_attributes): Return early on errorneous node.
3323 2008-04-10 Oleg Ryjkov <olegr@google.com>
3325 * tree.h (struct tree_base): Added a new flag default_def_flag.
3326 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
3328 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
3330 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
3332 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3335 * pa.md: Define mode iterator P. Define mode attribute dwc.
3336 (dcacheflush): Update pattern to use iterator P and attribute dwc.
3337 (icacheflush): Likewise.
3338 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
3339 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
3341 2008-04-11 Ben Elliston <bje@au.ibm.com>
3343 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
3345 2008-04-10 Rafael Espindola <espindola@google.com>
3347 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
3348 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
3349 (extract_range_from_expr): The same.
3351 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
3353 * config/mips/mips.md (GPR2): New mode iterator.
3355 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
3356 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
3357 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
3358 Rewrite these to take two modes, the mode of comparison and the
3359 mode of the destination.
3360 * config/mips/mips.c (mips_expand_scc): Instead of having
3361 paradoxical subreg as destination, expand "narrowing" scc if mode
3362 of comparison is SI and target is requested in DI mode.
3363 (mips_emit_int_order_test): Update comment. Make mode of
3364 comparison match CMP0 rather than TARGET. When creating inverse
3365 target use mode of TARGET.
3367 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
3369 * gcov-dump.c (tag_summary): Only print summaries for the first
3370 GCOV_COUNTERS_SUMMABLE counters.
3372 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
3374 * config/i386/i386.md (absneg): New code iterator.
3375 (absnegprefix): New code attribute.
3376 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
3377 patterns using absneg code iterator.
3378 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
3379 using absneg code iterator.
3380 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
3381 *neg<mode>2 patterns using absneg code iterator.
3382 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
3383 *negextendsfdf2 patterns using absneg code iterator.
3384 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
3385 *negextendsfxf2 patterns using absneg code iterator.
3386 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
3387 *negextendsfdf2 patterns using absneg code iterator.
3388 * config/i386/sse.md (<code><mode>2): Macroize expander from
3389 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
3391 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
3393 * config/s390/s390.h: Remove the remains of the recent search
3394 & replace action of current_function_outgoing_args_size.
3396 2008-04-10 Ira Rosen <irar@il.ibm.com>
3398 PR tree-optimization/35821
3399 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
3400 NEW_STMT_LIST is not NULL.
3402 2008-04-09 David Edelsohn <edelsohn@gnu.org>
3405 * toplev.c (process_options): Remove -ffunction-sections debugging
3408 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
3410 PR middle-end/PR28690
3411 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
3412 than gen_rtx_fmt_ee to perform more canonicalizations.
3414 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3417 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
3419 2008-04-09 Richard Guenther <rguenther@suse.de>
3421 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
3422 (dump_function_to_file): Dump function arguments with types.
3424 2008-04-08 Richard Guenther <rguenther@suse.de>
3426 * fold-const.c (fold_widened_comparison): Do not allow
3427 sign-changes that change the result.
3429 2008-04-08 Janis Johnson <janis187@us.ibm.com>
3432 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
3433 kinds of indirect references.
3435 2008-04-08 David Edelsohn <edelsohn@gnu.org>
3437 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
3438 GNU Fortran language string.
3440 2008-04-08 Rafael Espindola <espindola@google.com>
3442 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
3443 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
3444 * tree.h (tree_call_nonnegative_warnv_p): New.
3446 2008-04-08 Jan Hubicka <jh@suse.cz>
3448 * function.c (free_after_compilation): Clear out regno_reg_rtx
3451 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
3454 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
3456 PR middle-end/PR28690
3457 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
3458 same precedence as REG_POINTER and MEM_POINTER operands.
3460 2008-04-08 Richard Guenther <rguenther@suse.de>
3463 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
3464 for adding index to base.
3466 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
3468 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
3469 (MINGW_ENABLE_EXECUTE_STACK): New.
3470 (IN_LIBGCC2): For libgcc include windows.h file for
3471 function declarations.
3473 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
3475 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
3476 and tem2 if tem1 is not a REG or MULT.
3478 2008-04-08 Jan Hubicka <jh@suse.cz>
3480 * function.h (incomming_args): Break out of struct function.
3481 (function_subsections): Break out of struct function.
3482 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
3483 return_rtx and hard_reg_initial_vals from struct function.
3484 Kill inl_max_label_num.
3485 (current_function_pops_args, current_function_args_info,
3486 current_function_args_size, current_function_args_size,
3487 current_function_pretend_args_size,
3488 current_function_outgoing_args_size,
3489 current_function_internal_arg_pointer, current_function_return_rtx):
3490 Kill compatibility accestor macros.
3491 * builtins.c (expand_builtin_apply_args_1): Update.
3492 (expand_builtin_next_arg): Update.
3493 * df-scan.c (df_get_call_refs): Update.
3494 * dbxout.c (dbxout_function_end): Update.
3495 * dwarf2out.c (dwarf2out_switch_text_section): Update.
3496 (output_line_info): Update.
3497 (secname_for_decl): Update.
3498 (dwarf2out_var_location): Update.
3499 * function.c (free_after_compilation): Update.
3500 (assign_parm_find_stack_rtl): Update.
3501 (assign_parms): Update.
3502 (expand_dummy_function_end): Update.
3503 (expand_function_end): Update.
3504 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
3505 (expand_call): Update.
3506 (emit_library_call_value_1): Update.
3507 (store_one_arg): Update.
3508 * varasm.c (initialize_cold_section_name): Update.
3509 (unlikely_text_section): Update.
3510 (unlikely_text_section_p): Update.
3511 (assemble_start_function): Update.
3512 (assemble_end_function): Update.
3513 (default_section_type_flags): Update.
3514 (switch_to_section): Update.
3515 * integrate.c (set_decl_abstract_flags): Update.
3516 (get_hard_reg_initial_val): Update.
3517 (has_hard_reg_initial_val): Update.
3518 (allocate_initial_values): Update.
3519 * resource.c (init_resource_info): Update.
3520 * config/alpha/alpha.c (NUM_ARGS): Update.
3521 (direct_return): Update.
3522 (alpha_va_start): Update.
3523 (alpha_sa_size): Update.
3524 (alpha_initial_elimination_offset): Update.
3525 (alpha_expand_prologue): Update.
3526 (alpha_start_function): Update.
3527 (alpha_expand_epilogue): Update.
3528 (unicosmk_initial_elimination_offset):
3529 * config/alpha/alpha.md (call expander): Update.
3530 * config/s390/s390.c (s390_register_info): Update.
3531 (s390_register_info): Update.
3532 (s390_frame_info): Update.
3533 (s390_initial_elimination_offset): Update.
3534 (s390_build_builtin_va_list): Update.
3535 (s390_va_start): Update.
3536 * config/spu/spu.c (direct_return): Update.
3537 (spu_expand_prologue): Update.
3538 (spu_initial_elimination_offset): Update.
3539 (spu_build_builtin_va_list): Update.
3540 (spu_va_start): Update.
3541 * config/sparc/sparc.c (sparc_init_modes): Update.
3542 (sparc_compute_frame_size): Update.
3543 (function_value): Update.
3544 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
3545 * config/i386/i386.md (return expander): Update.
3546 * config/i386/i386.c (ix86_va_start): Update.
3547 (ix86_can_use_return_insn_p): Update.
3548 (ix86_compute_frame_layout): Update.
3549 (ix86_expand_epilogue): Update.
3550 * config/sh/sh.c (output_stack_adjust): Update.
3551 (calc_live_regs): Update.
3552 (sh_expand_prologue): Update.
3553 (sh_builtin_saveregs): Update.
3554 (sh_va_start): Update.
3555 (initial_elimination_offset): Update.
3556 (sh_allocate_initial_value): Update.
3557 (sh_function_ok_for_sibcall): Update.
3558 (sh_get_pr_initial_val): Update.
3559 * config/sh/sh.md (return expander): Update.
3560 * config/avr/avr.c (frame_pointer_required_p): UPdate.
3561 * config/crx/crx.c (crx_compute_frame): UPdate.
3562 (crx_initial_elimination_offset): UPdate.
3563 * config/xtensa/xtensa.c (compute_frame_size): Update
3564 (xtensa_builtin_saveregs): Update.
3565 (xtensa_va_start): Update.
3566 (order_regs_for_local_alloc): Update.
3567 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
3568 (xstormy16_expand_builtin_va_start): Update.
3569 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
3570 * config/m68hc11/m68hc11.md (return expanders): Update.
3571 * config/m68hc11/m68hc11.c (expand_prologue): Update.
3572 (expand_epilogue): Update.
3573 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
3574 (cris_simple_epilogue): Update.
3575 (cris_expand_prologue): Update.
3576 (cris_expand_epilogue): Update.
3577 * config/iq2000/iq2000.c (iq2000_va_start): Update.
3578 (compute_frame_size): Update.
3579 * config/mt/mt.c (mt_compute_frame_size): Update.
3580 * config/mn10300/mn10300.c (expand_prologue): Update.
3581 (expand_epilogue): Update.
3582 (initial_offset): Update.
3583 (mn10300_builtin_saveregs):
3584 * config/mn10300/mn10300.md (return expander): Update.
3585 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
3586 (ia64_initial_elimination_offset): Update.
3587 (ia64_initial_elimination_offset): Update.
3588 (ia64_expand_prologue): Update.
3589 * config/m68k/m68k.md (return expander): Update.
3590 * config/rs6000/rs6000.c (rs6000_va_start): Update.
3591 (rs6000_stack_info): Update.
3592 * config/mcore/mcore.c (layout_mcore_frame): Update.
3593 (mcore_expand_prolog): Update.
3594 * config/arc/arc.c (arc_compute_frame_size): Update.
3595 * config/score/score3.c (score3_compute_frame_size): Update.
3596 * config/score/score7.c (score7_compute_frame_size): Update.
3597 * config/arm/arm.c (use_return_insn): Update.
3598 (thumb_find_work_register): Update.
3599 (arm_compute_save_reg_mask): Update.
3600 (arm_output_function_prologue): Update.
3601 (arm_output_epilogue): Update.
3602 (arm_size_return_regs): Update.
3603 (arm_get_frame_offsets): Update.
3604 (arm_expand_prologue): Update.
3605 (thumb_exit): Update.
3606 (thumb_unexpanded_epilogue): Update.
3607 (thumb1_output_function_prologue): Update.
3608 * config/pa/pa.md (return expander): Update.
3609 * config/pa/pa.c (compute_frame_size): Update.
3610 (hppa_builtin_saveregs): Update.
3611 * config/mips/mips.c (mips_va_start): Update.
3612 (mips16_build_function_stub): Update.
3613 (mips_compute_frame_info): Update.
3614 (mips_restore_gp): Update.
3615 (mips_output_function_prologue): Update.
3616 (mips_expand_prologue): Update.
3617 * config/v850/v850.c (compute_frame_size): Update.
3618 (expand_prologue): * config/mmix/mmix.c (along): update.
3619 (mmix_initial_elimination_offset): update.
3620 (mmix_reorg): update.
3621 (mmix_use_simple_return): update.
3622 (mmix_expand_prologue): update.
3623 (mmix_expand_epilogue): Update.
3624 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
3625 (emit_link_insn): Update.
3627 2008-04-08 Anatoly Sokolov <aesok@post.ru>
3629 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
3630 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
3632 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
3635 2008-04-07 Jan Hubicka <jh@suse.cz>
3637 * function.h (rtl): Rename to x_rtl.
3639 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
3640 frame_offset, stack_check_probe_note, arg_pointer_save_area,
3641 used_temp_slots avail_temp_slots, temp_slot_level,
3642 nonlocal_goto_handler_labels): Update accesstors.
3643 (rtl): New global variable.
3644 (struct function): Move some fileds to rtl_data.
3645 (get_arg_pointer_save_area): Update prototype.
3646 * builtins.c (expand_builtin_setjmp_receiver): Update call of
3647 get_arg_pointer_save_area.
3648 * expr.c (init_expr): Update
3649 * function.c (get_frame_size): Update
3650 (assign_stack_local): Update
3651 (expand_function_end): Update.
3652 (get_art_pointer_save_area): Update
3654 * emit-rtl.c (rtl): Declare.
3655 (regno_reg_rtx): Declare.
3656 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
3658 (gen_reg_rtx): Update.
3659 * varasm.c (n_deferred_constatns): Update accestor.
3660 (init_varasm_status): Do not allocate varasm_status.
3661 (force_const_mem, get_pool_size, output_constant_pool): Update.
3662 * stmt.c (force_label_rtx): Do not use x_ prefixes.
3663 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
3664 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
3665 * sparc/sparc.h (INIT_EXPANDERS): Update.
3666 * ia64/ia64.h (INIT_EXPANDERS): Update.
3668 2008-04-07 James E. Wilson <wilson@tuliptree.org>
3670 * reload.c (push_secondary_reload): Add missing break to for loop.
3672 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
3674 PR middle-end/PR28690
3675 * rtlanal.c: Update copyright years.
3676 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
3677 as REG_POINTER and MEM_POINTER operands.
3678 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
3679 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
3680 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
3681 * gcse.c: Update copyright years.
3682 (pre_delete): Call gen_reg_rtx_and_attrs.
3683 (hoist_code): Likewise.
3684 (build_store_vectors): Likewise.
3685 (delete_store): Likewise.
3686 * loop-invariant.c (move_invariant_reg): Likewise.
3687 Update copyright years.
3689 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
3691 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
3692 control string instead of quoted.
3694 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
3696 * doc/rtl.texi: Rewrite of subreg section.
3698 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
3701 * config/i386/i386.c (legitimize_pic_address): Add treating
3702 of dllimport SYM_REF's.
3703 (legitimize_dllimport_symbol): Add prototype.
3705 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3707 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
3708 reference in constructor with non self-referential type.
3710 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3712 Removal of Return with Depressed Stack Pointer support
3713 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
3714 (ECF_SP_DEPRESSED): Likewise.
3715 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
3716 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
3717 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3718 (expand_call): Do not test ECF_SP_DEPRESSED.
3719 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3720 * function.c (keep_stack_depressed): Delete.
3721 (handle_epilogue_set): Likewise.
3722 (update_epilogue_consts): Likewise.
3723 (emit_equiv_load): Likewise.
3724 (thread_prologue_and_epilogue_insns): Remove support for Return with
3725 Depressed Stack Pointer.
3726 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3728 2008-04-06 Richard Guenther <rguenther@suse.de>
3730 PR tree-optimization/35400
3731 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
3732 information from SSA_NAMEs.
3734 2008-04-06 Anatoly Sokolov <aesok@post.ru>
3736 * config/avr/avr.h (avr_mega_p): Remove declaration.
3737 (AVR_MEGA): Remove macro.
3738 * config/avr/avr.c (avr_mega_p): Remove variable.
3739 (avr_override_options): Remove inicializion of avr_mega_p.
3740 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3741 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3742 (avr_jump_mode): (Ditto.).
3743 (avr_output_progmem_section_asm_op): (Ditto.).
3744 (avr_asm_init_sections): (Ditto.).
3745 (avr_asm_init_sections): (Ditto.).
3746 (avr_rtx_costs): (Ditto.).
3747 * config/avr/avr.md: (Ditto.).
3748 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
3751 2008-04-06 Richard Guenther <rguenther@suse.de>
3753 PR tree-optimization/35842
3754 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
3755 is_gimple_invariant_address.
3757 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3759 * gcc.c (default_compilers): Sync Fortran extensions list with
3760 that in fortran/lang-specs.h.
3761 * doc/invoke.texi: Likewise.
3762 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
3763 * dwarf2out.c (gen_compile_unit_die): Likewise.
3765 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
3767 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
3769 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
3772 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
3773 attribute is used for nested functions.
3775 2008-04-05 Jan Hubicka <jh@suse.cz>
3777 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
3779 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
3781 (dump_files): Update.
3782 (enable_rtl_dump_file): Do not accept letter argument.
3783 * tree-pass.h (dump_file_info): Remove letter argument.
3784 * toplev.c (decode_d_option): Update -da handling.
3785 * toplev.h (enable_rtl_dump_file): Update prototype.
3786 * passes.c (register_one_dump_file): Do not accept IPA argument; work
3787 it out based on pass type.
3788 (register_dump_files_1): Likewise.
3789 (init_optimization_passes): Update register_one_dump_file calls.
3790 (execute_one_pass): Sanity check that IPA passes are called at IPA
3791 level and RTL passes at RTL level.
3792 (execute_pass_list): IPA pass can not be after or subpass of
3794 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
3795 disallov RTL subpasses of IPA subpasses.
3797 2008-04-05 Ben Elliston <bje@au.ibm.com>
3799 * tree-cfg.c (need_fake_edge_p): Return false for calls to
3800 builtins that return exactly once and do not throw. Cache call to
3803 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
3805 PR rtl-optimization/34916
3807 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
3808 between instruction pairs.
3810 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
3812 * doc/invoke.texi: Document -mbitops for SH.
3813 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
3814 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
3815 * config/sh/sh.c (print_operand): Add %t operand code.
3816 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
3817 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
3818 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
3819 (extendqihi2): Likewise.
3820 (movqi_i): Likewise.
3821 (insv): Use bset, bclr and bst instructions for SH2A if possible.
3822 (extv): Use bld instruction for SH2A if possible.
3824 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
3825 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
3826 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
3827 (bset.b, bclr.b): Define peepholes.
3828 * config/sh/sh.opt (mbitops): New option.
3830 2008-04-04 Janis Johnson <janis187@us.ibm.com>
3833 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
3834 and view convert expression.
3836 2008-04-04 Jakub Jelinek <jakub@redhat.com>
3839 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3841 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
3843 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
3845 * config/i386/cpuid.h (bit_AES): New.
3846 (bit_PCLMUL): Likewise.
3848 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
3849 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
3850 SSE2 if AES or PCLMUL is enabled.
3851 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
3852 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3853 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
3854 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
3855 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
3856 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
3857 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3858 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
3859 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
3860 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
3861 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
3862 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
3863 __builtin_ia32_aeskeygenassist128 and
3864 __builtin_ia32_pclmulqdq128.
3865 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
3866 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
3867 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
3869 * config/i386/i386.h (TARGET_AES): New.
3870 (TARGET_PCLMUL): Likewise.
3871 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
3873 * config/i386/i386.md (UNSPEC_AESENC): New.
3874 (UNSPEC_AESENCLAST): Likewise.
3875 (UNSPEC_AESDEC): Likewise.
3876 (UNSPEC_AESDECLAST): Likewise.
3877 (UNSPEC_AESIMC): Likewise.
3878 (UNSPEC_AESKEYGENASSIST): Likewise.
3879 (UNSPEC_PCLMUL): Likewise.
3881 * config/i386/i386.opt (maes): New.
3882 (mpclmul): Likewise.
3884 * config/i386/sse.md (aesenc): New pattern.
3885 (aesenclast): Likewise.
3887 (aesdeclast): Likewise.
3889 (aeskeygenassist): Likewise.
3890 (pclmulqdq): Likewise.
3892 * config/i386/wmmintrin.h: New.
3894 * doc/extend.texi: Document AES and PCLMUL built-in function.
3896 * doc/invoke.texi: Document -maes and -mpclmul.
3898 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
3900 * function.c (free_after_parsing): Replace with
3901 cxx_push_function_context from C++ front-end.
3902 (allocate_struct_function): Don't call langhook.
3903 * langhooks.h (struct lang_hooks_for_functions): Delete.
3904 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
3906 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
3907 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
3908 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
3909 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
3910 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
3911 remove LANG_HOOKS_FUNCTION_INITIALIZER.
3912 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
3914 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
3915 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
3917 2008-04-04 Jakub Jelinek <jakub@redhat.com>
3920 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
3923 2008-04-04 Richard Guenther <rguenther@suse.de>
3926 * fold-const.c (optimize_minmax_comparison): Use the correct
3927 type for the constant in the simplified comparison.
3929 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
3931 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
3932 Pass L2 size as "--param l2-cache-size" to the compiler.
3933 (decode_l2_cache): New function to decode L2 cache parameters using
3934 0x8000006 extended cpuid function.
3935 (detect_caches_amd): Determine parameters of L2 cache using
3936 decode_l2_caches function.
3937 (decode_caches_intel): Decode L2 cache parameters.
3938 (detect_caches_intel): Determine L2 cache parameters using
3939 decode_caches_intel and decode_l2_caches functions.
3941 2008-04-03 Bob Wilson <bob.wilson@acm.org>
3943 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
3944 secondary input reload for subword loads from the constant pool.
3946 2008-04-03 Janis Johnson <janis187@us.ibm.com>
3949 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer