]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
2006-12-13 Richard Guenther <rguenther@suse.de>
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
d735c391 12006-12-13 Richard Guenther <rguenther@suse.de>
2
3 PR tree-optimization/17687
4 * builtins.def (BUILT_IN_CEXPI, BUILT_IN_CEXPIF, BUILT_IN_CEXPIL):
5 New builtins for imaginary argument cexp.
6 * builtin-types.def (BT_FN_COMPLEX_FLOAT_FLOAT,
7 BT_FN_COMPLEX_DOUBLE_DOUBLE, BT_FN_COMPLEX_LONGDOUBLE_LONGDOUBLE):
8 New required builtin types.
9 * builtins.c (expand_builtin_cexpi): Declare.
10 (mathfn_built_in): Handle BUILT_IN_CEXPI.
11 (expand_builtin_cexpi): New static helper.
12 (expand_builtin): Call it.
13 (do_mpfr_sincos): Adjust for CEXPI evaluation.
14 (fold_builtin_sincos): New function to fold sincos to cepxi.
15
2eb5c889 162006-12-13 Richard Guenther <rguenther@suse.de>
17
18 * ipa-reference.c (scan_for_static_refs): Also scan
19 tcc_comparison class trees.
20
a9a4d6d9 212006-12-12 David Daney <ddaney@avtrex.com>
22
23 * config/mips/mips.h (ASM_OUTPUT_EXTERNAL): Undefine it before
24 define.
25
58a7751f 262006-12-12 Andrew Pinski <pinskia@gmail.com>
27
28 * tree-vect-transform.c (vect_permute_load_chain):
29 Set DECL_GIMPLE_REG_P to true for the vect_perm_*
30 temp variables.
31
8ddfcaa9 322006-12-13 Sa Liu <saliu@de.ibm.com>
33 Ben Elliston <bje@au.ibm.com>
34
35 * config/spu/spu.h (C_COMMON_OVERRIDE_OPTIONS): Define.
36 (REGISTER_TARGET_PRAGMAS): Don't zero warn_main flag.
37 * config/spu/spu-protos.h (spu_c_common_override_options):
38 Declare.
39 * config/spu/spu-c.c (spu_c_common_override_options): New.
40 * config/spu/spu.c (spu_override_options): Whitespace fix.
41
b01a6dc3 422006-12-12 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
43
44 * config/spu/spu.c (cpat_info): Fix an incorrectly identified case.
45
819bacb1 462006-12-12 Geoffrey Keating <geoffk@apple.com>
47
29d774d0 48 * mips-tdump.c: Replace CROSS_COMPILE with
49 CROSS_DIRECTORY_STRUCTURE.
50 * mips-tfile.c: Likewise.
51 * gcc.c: Likewise.
52 * configure.ac: Likewise.
53 * cppdefault.c: Likewise.
54 * Makefile.in: Likewise.
55 * config/alpha/osf.h: Likewise.
56 * config/i386/cygwin.h: Likewise.
57 * config/i386/beos-elf.h: Likewise.
58 * config/i386/nto.h: Likewise.
59 * config/fr30/fr30.h: Likewise.
60 * config/svr4.h: Likewise.
61 * config/rs6000/aix.h: Likewise.
62 * config/rs6000/sysv4.h: Likewise.
63 * config/pa/pa64-hpux.h: Likewise.
64 * config/pa/pa-hpux10.h: Likewise.
65 * config/pa/pa-hpux11.h: Likewise.
66 * collect2.c: Likewise.
67 * configure: Regenerate.
68
819bacb1 69 * doc/tm.texi (Alignment Output): Document that ASM_OUTPUT_SKIP
70 actually takes an unsigned HOST_WIDE_INT for its second parameter.
71
69ced2d6 722006-12-13 Ulrich Weigand <uweigand@de.ibm.com>
73
74 * config/spu/spu.c (TARGET_ENCODE_SECTION_INFO): Define.
75 (spu_encode_section_info): New.
76 * config/spu/spu.h (ALIGNED_SYMBOL_REF_P): Adjust.
77 (SYMBOL_FLAG_ALIGN1): New.
78
76af66a6 792006-12-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
80
81 PR tree-opt/28624
82 * tree-ssa-dom.c (eliminate_degenerate_phis): Use a temporary
83 bitmap for EXECUTE_IF_SET_IN_BITMAP.
84
8ea8de24 852006-12-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
86
87 PR tree-opt/28436
88 * tree.h (DECL_COMPLEX_GIMPLE_REG_P): Rename to ...
89 (DECL_GIMPLE_REG_P): This.
90 * fold-const.c (fold_indirect_ref_1): Fold *(foo *)&vectorfoo into
91 using BIT_FIELD_REF.
92 * omp-low.c (omp_copy_decl_2): Use the renamed DECL_GIMPLE_REG_P.
93 * tree-gimple.c (is_gimple_reg): Use the renamed DECL_GIMPLE_REG_P
94 and check for VECTOR_TYPE.
95 * expr.c (get_inner_reference): Set the mode for BIT_FIELD_REF with
96 vector types.
97 * tree-flow-inline.h (var_can_have_subvars): Use the renamed
98 DECL_GIMPLE_REG_P.
99 * gimplify.c (internal_get_tmp_var): Use the renamed DECL_GIMPLE_REG_P
100 and check for VECTOR_TYPE.
101 (gimplify_bind_expr): Likewise.
102 (gimplify_function_tree): Likewise.
103 * expmed.c: Include target.h.
104 (extract_bit_field): For vector mode, try find a better mode first.
105 If that fails use gen_lowpart (for vectors only).
106 * tree-dfa.c (make_rename_temp): Use the renamed DECL_GIMPLE_REG_P
107 and check for VECTOR_TYPE.
108 * tree-ssa-pre.c (create_expressions_by_pieces): Likewise.
109 (insert_into_preds_of_block): Likewise.
110 (insert_fake_stores): Create gimple register store_tmps for
111 vector types.
112 * tree-sra.c (sra_elt): New field, is_vector_lhs.
113 (sra_walk_expr <case BIT_FIELD_REF>): For vector types that
114 are the left hand side, set the element's is_vector_lhs to true.
115 (instantiate_element): For vector types which were on the left
116 hand size, set DECL_GIMPLE_REG_P to false.
117 * tree-nested.c (create_tmp_var_for): Use the renamed DECL_GIMPLE_REG_P. * tree-inline.c (declare_return_variable): Use the renamed
118 DECL_GIMPLE_REG_P
119 and check for VECTOR_TYPE.
120 (copy_decl_to_var): Use the renamed DECL_GIMPLE_REG_P.
121 (copy_result_decl_to_var): Likewise.
122 * tree-vect-transform.c (vect_get_new_vect_var): For vector types,
123 create a gimple register variable.
124 (vect_permute_store_chain): Set DECL_GIMPLE_REG_P to true for the
125 vect_inter_* temp variables.
126 * Makefile.in (expmed.o): Update dependencies.
127
6f38a66d 1282006-12-12 Peter Bergner <bergner@vnet.ibm.com>
129
130 * reload1.c (eliminate_regs_in_insn): Merge the plus_src "else" and
131 the offset == 0 "then" clauses.
132 * config/rs6000/predicates.md (gpc_reg_operand): Check for
133 reload_in_progress.
134
237461fa 1352006-12-12 Marcin Dalecki <martin@dalecki.de>
136
137 * doc/passes.texi: remove docs about "redundant PHI removal".
c5a4df25 138 * tree-pass.h: remove orphaned declaration of pass_redundant_phi,
139 remove redundant pass_partition_blocks declaration.
237461fa 140
b53267a3 1412006-12-12 Andrew Macleod <amacleod@redhat.com>
142
143 PR tree-optimization/30159
144 * tree-ssa-coalesce.c (coalesce_ssa_name): Process single ssa_name
145 functions in case a default_def coalesce is required.
146
86b36930 1472006-12-12 Jakub Jelinek <jakub@redhat.com>
148
149 PR libstdc++/11953
150 * gthr-posix.h (_REENTRANT): Only define if __osf__ is defined.
151
152 * config/ia64/linux.h (CPP_SPEC): Define.
153 * config/s390/linux.h (CPP_SPEC): Define.
154
b6896428 1552006-12-12 Jim Wilson <wilson@specifix.com>
156 Jakub Jelinek <jakub@redhat.com>
157
158 PR rtl-optimization/27761
159 * combine.c (try_combine): Don't create a useless garbage SET
160 if PATTERN (i2) is a PARALLEL. If added_sets_1, save
161 PATTERN (i1) resp. SET from i1src to i1dest in i1pat
162 and use it to prevent accidental modification of i1src.
163
3c26fc92 1642006-12-12 Ira Rosen <irar@il.ibm.com>
165
166 * tree-vect-analyze.c (vect_analyze_data_ref_access): Add another check
167 for stores with gaps.
168 * tree-vect-transform.c (vect_permute_store_chain): Create
169 interleave_high or interleave_low according to the endianess.
170
dd824901 1712006-12-12 Richard Guenther <rguenther@suse.de>
172
173 PR middle-end/30147
174 * fold-const.c (fold_read_from_constant_string): Only fold read
175 from constant string if the result type is integer.
176
7086c80a 1772006-12-12 Olivier Hainque <hainque@adacore.com>
178
179 * config/rs6000/t-vxworks: Remove assignment to LIB2FUNCS_EXTRA.
180
73e68f91 1812006-12-12 Olivier Hainque <hainque@adacore.com>
182
183 * config/vxlib.c: Extract tls related routines into ...
184 * config/vxlib-tls.c: New file.
185 * config/t-vxworks: Add vxlib-tls.c to LIB2FUNCS_EXTRA.
186
c7b91b14 1872006-12-12 Sa Liu <saliu@de.ibm.com>
188 Ben Elliston <bje@au.ibm.com>
189
190 * config/spu/spu.opt (mfixed-range): New option.
191 * config/spu/spu.h (spu_fixed_range_string): Declare.
192 * config/spu/spu.c (spu_override_options): Handle -mfixed-range.
193 (fix_range): New function.
194 * doc/invoke.texi (SPU Options): Document -mfixed-range.
195 * testsuite/gcc.target/spu/fixed-range.c: New.
196 * testsuite/gcc.target/spu/fixed-range-bad.c: Ditto.
197
44b23e05 1982006-12-11 H.J. Lu <hongjiu.lu@intel.com>
199
200 PR middle-end/17982
201 PR middle-end/20218
202 * cgraphunit.c (cgraph_optimize): Remove call to
203 process_pending_assemble_externals.
204
205 * config/elfos.h (ASM_OUTPUT_EXTERNAL): New.
206
207 * config/ia64/hpux.h (TARGET_ASM_FILE_END): Removed.
208
209 * config/ia64/ia64.c (ia64_asm_output_external): Rewritten.
210 (ia64_hpux_add_extern_decl): Removed.
211 (ia64_hpux_file_end): Likewise.
212 (extern_func_list): Likewise.
213 (extern_func_head): Likewise.
214
215 * output.h (assemble_external): Update comments.
216 (default_elf_asm_output_external): New.
217 (maybe_assemble_visibility): New.
218
219 * toplev.c (compile_file): Update comment.
220
221 * varasm.c (assemble_external): Always put it on
222 pending_assemble_externals.
223 (maybe_assemble_visibility): Make it extern and return int.
224 (default_elf_asm_output_external): New.
225
5974d46f 2262006-12-11 Daniel Berlin <dberlin@dberlin.org>
227
228 * tree-ssa-structalias.c (handle_ptr_arith): Return false when we
229 can't handle the pointer arithmetic.
230
4fb5e5ca 2312006-12-11 Diego Novillo <dnovillo@redhat.com>
232
233 * doc/tree-ssa.texi: Update documentation for virtual operands
234 and the use of push_stmt_changes/pop_stmt_changes.
235 * doc/invoke.texi: Remove documentation for params
236 global-var-threshold.
237 Update documentation on max-aliased-vops.
238
239 * tree-into-ssa.c: Cleanup comments, variables and
240 spacing in various functions.
241 (regs_to_rename): Declare.
242 (mem_syms_to_rename): Declare.
243 (dump_update_ssa): Declare.
244 (debug_update_ssa): Declare.
245 (dump_names_replaced_by): Declare.
246 (debug_names_replaced_by): Declare.
247 (dump_def_blocks): Declare.
248 (debug_def_blocks): Declare.
249 (dump_defs_stack): Declare.
250 (debug_defs_stack): Declare.
251 (dump_currdefs): Declare.
252 (debug_currdefs): Declare.
253 (mark_def_sites): Do not handle virtual operands.
254 (compute_idf): Rename from find_idf. Update users.
255 (register_new_def): Make local. Convert second argument
256 to 'tree'.
257 Use BLOCK_DEFS_STACK directly.
258 If pushing a non-register, also push the underlying
259 symbol.
260 (rewrite_stmt): Do not handle virtual operands.
261 (dump_tree_ssa): Call dump_def_blocks, dump_defs_stack,
262 dump_currdefs and dump_tree_ssa_stats.
263 (dump_tree_ssa_stats): Also dump REPL_TBL.
264 (replace_use): Remove. Update all users to call SET_USE
265 instead.
266 (rewrite_blocks): Move code to free memory to
267 fini_ssa_renamer.
268 (mark_def_site_blocks): Move initialization code to
269 init_ssa_renamer.
270 (init_ssa_renamer): New.
271 (fini_ssa_renamer): New.
272 (rewrite_into_ssa): Call them.
273 (prepare_block_for_update): Process SSA_OP_ALL_USES first
274 and SSA_OP_ALL_DEFS later. Do not process virtual
275 operands separately.
276 (dump_update_ssa): Call dump_decl_set.
277 (init_update_ssa): Initialize regs_to_rename and
278 mem_syms_to_rename.
279 Call init_ssa_renamer.
280 (delete_update_ssa): Call fini_ssa_renamer.
281 Free blocks_with_phis_to_rewrite.
282 (mark_sym_for_renaming): If the variable has
283 sub-variables, also mark them.
284 If the variable belongs to a partition, also mark it.
285 (mark_set_for_renaming): Call mark_sym_for_renaming on
286 every symbol in the set.
287 (switch_virtuals_to_full_rewrite): Call
288 mark_set_for_renaming.
289 (update_ssa): Separate syms_to_rename into regs_to_rename
290 and mem_syms_to_rename.
291
292 * tree-dump.c (dump_options): Add TDF_MEMSYMS.
293 * tree-pretty-print.c (debug_generic_expr): Add TDF_MEMSYMS.
294 (debug_generic_stmt): Likewise.
295 (debug_tree_chain): Likewise.
296 (dump_symbols): New.
297 (dump_generic_node): Check for TDF_MEMSYMS.
298 Handle MEMORY_PARTITION_TAG.
299 If the statement references memory and TDF_MEMSYMS is
300 given, call dump_symbols.
301 Indicate default names with (D).
302 (dump_vops): Update for new virtual operator format.
303
304 * tree.c (init_ttree): Add MEMORY_PARTITION_TAG to
305 tree_contains_struct.
306 (tree_code_size): Handle MEMORY_PARTITION_TAG.
307 (tree_node_structure): Likewise.
308 (needs_to_live_in_memory): Handle SSA names.
309 * tree.h (MTAG_P): Likewise.
310 (struct tree_memory_partition_tag): Declare.
311 (MPT_SYMBOLS): Define.
312 (union tree_node): Add field 'mpt'.
313 * treestruct.def (TS_MEMORY_PARTITION_TAG): Define.
314 * tree.def (MEMORY_PARTITION_TAG): Define.
315
316 * tree-pass.h (TDF_MEMSYMS): Define.
317
318 * params.h (GLOBAL_VAR_THRESHOLD): Remove.
319
320 * tree-ssa-alias.c: Include pointer-set.h
321 (struct alias_map_d): Remove fields total_alias_vops,
322 grouped_p and may_aliases. Update all users.
323 (struct mp_info_def): Declare.
324 (mp_info_t): New type.
325 (get_smt_for): Rename from get_tmt_for. Update all
326 users.
327 (add_may_alias): Add argument ALREADY_ADDED. If given,
328 use it to avoid adding duplicate entries to alias sets.
329 (replace_may_alias): Remove. Update all users.
330 (total_alias_vops_cmp): Remove. Update all users.
331 (group_aliases_into): Remove. Update all users.
332 (tree_pointer_compare): Remove. Update all users.
333 (compact_name_tags): Remove. Update all users.
334 (group_aliases): Remove. Update all users.
335 (mark_non_addressable): Move from tree-flow-inline.h.
336 Remove the symbol from the partition holding it, if
337 needed.
338 (dump_mp_info): New.
339 (debug_mp_info): New.
340 (sort_mp_info): New.
341 (create_partition_for): New.
342 (rewrite_alias_set_for): New.
343 (compute_memory_partitions): New.
344 (compute_may_aliases): Call it.
345 (init_alias_info): If computing aliases for the first
346 time, mark every memory symbol for renaming.
347 (have_common_aliases_p): New.
348 (compute_flow_insensitive_aliasing): Call it.
349 (setup_pointers_and_addressables): Do not cache
350 num_referenced_vars.
351 For register promoted symbols, mark their former
352 partition for renaming.
353 (maybe_create_global_var): Only create .GLOBAL_VAR if
354 there are no call-clobbered variables and a mix of pure
355 and non-pure functions were found.
356 (may_alias_p): Tidy comments.
357 (create_tag_raw): Remove unused variable new_type.
358 (dump_alias_info): call dump_memory_partitions.
359 (dump_points_to_info_for): Call dump_decl_set.
360 (may_be_aliased): Tidy comments and formatting.
361
362 * timevar.def (TV_MEMORY_PARTITIONING): Define.
363 * tree-vectorizer.c (vect_memsyms_to_rename): Rename from
364 vect_vnames_to_rename. Set DECL_UIDs instead of SSA name
365 versions in it.
366 (slpeel_update_phi_nodes_for_guard1): Ignore memory PHIs.
367 * tree-vect-transform.c (vect_transform_loop): Call
368 mark_set_for_renaming with vect_memsyms_to_rename.
369 * tree-flow-inline.h (zero_imm_uses_p): New.
370 (memory_partition): New.
371 (set_memory_partition): New.
372 (factoring_name_p): New.
373 (symbol_mem_tag): New. Update every function that used
374 to access the annotation directly.
375 (set_symbol_mem_tag): Likewise.
376
377 * tree-ssa-copy.c (may_propagate_copy): Allow copies
378 between a partition and a symbol as long as the symbol
379 belongs to the partition.
380 (merge_alias_info): Ignore merge requests when memory
381 partitions are involved.
382
383 * tree-ssa.c (verify_ssa_name): Check that default
384 definitions have empty defining statements.
385 (verify_use): Remove argument IS_VIRTUAL.
386 Don't call verify_ssa_name.
387 (verify_phi_args): Call verify_ssa_name.
388 (verify_flow_insensitive_alias_info): Handle MPTs.
389 (verify_flow_sensitive_alias_info): Likewise.
390 (verify_name_tags): Likewise.
391 (verify_call_clobbering): Likewise.
392 (verify_ssa): Check for VOPs only after aliasing
393 information is available.
394 Check virtuals and real operands separately.
395 Call verify_ssa_name on every operand.
396 (stmt_references_memory_p): Move to tree-ssa-operands.c.
397 (walk_use_def_chains_1): Guard against NULL PHI
398 arguments.
399
400 * tree-ssa-operands.c (stmt_references_memory_p): Move from
401 tree-ssa.c.
402 (get_mpt_for): New.
403 (dump_memory_partitions): New.
404 (debug_memory_partitions): New.
405
406 * tree-flow.h (struct var_ann_d): Add field mpt.
407 (struct stmt_ann_d): Add bitfield references_memory.
408 * Makefile.in (tree-ssa-structalias.o): Include
409 pointer-set.h
410 (tree-ssa-alias.o): Likewise.
411 * tree-ssa-structalias.c: (update_alias_info): Use
412 STORED_SYMS to determine which variables are being
413 written to by the store operation.
414 * tree-ssa-structalias.h (struct alias_info)
415 <total_alias_vops>: Remove. Update all users.
416 <written_vars>: Change to a pointer set. Update all
417 users.
418 <dereferenced_ptrs_store>: Likewise.
419 <dereferenced_ptrs_load>: Likewise.
420 (NUM_REFERENCES): Remove. Update all users.
421 (NUM_REFERENCES_CLEAR): Remove. Update all users.
422 (NUM_REFERENCES_INC): Remove. Update all users.
423 (NUM_REFERENCES_SET): Remove. Update all users.
424
425 * params.def (PARAM_GLOBAL_VAR_THRESHOLD): Remove.
426 Update all users.
427 (PARAM_MAX_ALIASED_VOPS): Set to 10.
428 * tree-ssanames.c (make_ssa_name): Initialize
429 SSA_NAME_IS_DEFAULT_DEF to 0.
430
4312006-12-11 Aldy Hernandez <aldyh@redhat.com>
432
433 * tree-ssa-dse.c (aggregate_vardecl_d): New.
434 (dse_global_data): Add aggregate_vardecl field.
435 (dse_possible_dead_store_p): New.
436 Add prev_defvar variable.
437 Allow immediate uses and previous immediate uses to differ
438 if they are setting different parts of the whole.
439 (get_aggregate_vardecl): New.
440 (dse_record_partial_aggregate_store): New.
441 (dse_whole_aggregate_clobbered_p): New.
442 (dse_partial_kill_p): New.
443 (dse_optimize_stmt): Abstract code checking a possible dead store
444 into new function dse_possible_dead_store_p().
445 Call dse_maybe_record_aggregate_store().
446 When checking whether a STMT and its USE_STMT refer to the
447 same memory address, check also for partial kills that clobber
448 the whole.
449 Move some variable definitions to the block where they are used.
450 (aggregate_vardecl_hash): New.
451 (aggregate_vardecl_eq): New.
452 (aggregate_vardecl_free): New.
453 (aggregate_whole_store_p): New.
454 (tree_ssa_dse): Initialize and free aggregate_vardecl.
455 Mark which aggregate stores we care about.
456
4572006-12-11 Andrew Macleod <amacleod@redhat.com>
458
459 * tree-ssa-operands.h (struct vuse_element_d): Declare.
460 (vuse_element_t): Declare.
461 (struct vuse_vec_d): Declare.
462 (vuse_vec_p): Declare.
463 (VUSE_VECT_NUM_ELEM): Define.
464 (VUSE_VECT_ELEMENT_NC): Define.
465 (VUSE_ELEMENT_PTR_NC): Define.
466 (VUSE_ELEMENT_VAR_NC): Define.
467 (VUSE_VECT_ELEMENT): Define.
468 (VUSE_ELEMENT_PTR): Define.
469 (VUSE_ELEMENT_VAR): Define.
470 (struct maydef_optype_d) <use_var>: Remove.
471 <use_ptr>: Remove.
472 <usev>: Add.
473 (struct vuse_optype_d) <kill_var>: Remove.
474 <use_ptr>: Remove.
475 <usev>: Add.
476 (struct mustdef_optype_d) <kill_var>: Remove.
477 <use_ptr>: Remove.
478 <usev>: Add.
479 (VUSE_OP_PTR): Add argument. Use VUSE_ELEMENT_PTR.
480 (VUSE_OP): Add argument. Use VUSE_ELEMENT_PTR.
481 (VUSE_NUM): Define.
482 (VUSE_VECT): Define.
483 (MAYDEF_OP_PTR): Add argument. Use VUSE_OP_PTR.
484 (MAYDEF_OP): Add argument. Use VUSE_OP.
485 (MAYDEF_NUM): Define.
486 (MAYDEF_VECT): Define.
487 (MUSTDEF_KILL_PTR): Use VUSE_OP_PTR.
488 (MUSTDEF_KILL): Use VUSE_OP.
489 (MUSTDEF_NUM): Define.
490 (MUSTDEF_VECT): Define.
491 (realloc_maydef): Declare.
492 (realloc_vuse): Declare.
493 (struct ssa_operand_iterator_d) <vuse_index>: Add.
494 <mayuse_index>: Add.
495 (LOADED_SYMS): Define.
496 (STORED_SYMS): Define.
497 (FOR_EACH_SSA_MUSTDEF_OPERAND): Call op_iter_next_mustdef.
498 * tree-into-ssa.c: Adapt for multi-operand V_MAY_DEF and VUSE
499 operators.
500 * tree-pretty-print.c: Likewise.
501 * tree-ssa-dse.c: Likewise.
502 * tree-flow-inline.h: Likewise.
503 (op_iter_next_mustdef): New.
504 * tree-ssa-operands.c: Likewise.
505 (ALLOC_OPTYPE): Remove.
506 Update all users.
507 (alloc_def): New.
508 (alloc_use): New.
509 (alloc_maydef): New.
510 (alloc_vuse): New.
511 (alloc_mustdef): New.
512 (realloc_maydef): New.
513 (realloc_vuse): New.
514
5152006-12-11 Aldy Hernandez <aldyh@redhat.com>
516
517 * tree-ssa-operands.c: Remove build_v_must_defs.
518 (init_ssa_operands): Delete build_v_must_defs.
519 (finalize_ssa_v_must_def_ops): Remove.
520 (finalize_ssa_v_must_defs): Remove.
521 (finalize_ssa_stmt_operands): Do not call
522 finalize_ssa_v_must_defs.
523 (start_ssa_stmt_operands): Do not check build_v_must_defs.
524 (append_v_must_def): Delete.
525 (copy_virtual_operands): Do not copy V_MUST_DEFs.
526 (get_modify_expr_operands): Remove reference to V_MUST_DEF from
527 comment. Remove opf_kill_def.
528 (build_ssa_operands): Remove references to v_must_defs.
529 (copy_virtual_operands): Same.
530 (copy_virtual_operands): Same.
531 (fini_ssa_operands): Same.
532 (free_ssa_operands): Same.
533 (add_mustdef_op): Remove.
534 Remove mustdef_optype_p.
535 (alloc_mustdef): Remove.
536 Remove references to V_MUST_DEFs in comment at top of file.
537 (get_expr_operands): Remove opf_kill_def.
538 (opf_kill_def): Remove.
539 (add_virtual_operand): Remove opf_kill_def.
540 (get_indirect_ref_operands): Same.
541 (get_tmr_operands): Same.
542
543 * tree-vectorizer.c (rename_variables_in_bb): Remove
544 SSA_OP_ALL_KILLS.
545
546 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Remove
547 SSA_OP_ALL_KILLS.
548 (check_loop_closed_ssa_stmt): Same.
549
550 * tree-ssa.c (verify_def): Remove V_MUST_DEF from comment.
551 (verify_use): Same.
552 (verify_ssa): Remove V_MUST_DEFs traces.
553 (verify_ssa): Remove SSA_OP_ALL_KILLS.
554
555 * tree-into-ssa.c (mark_def_sites): Change SSA_OP_VMUSTDEF to
556 SSA_OP_VMAYDEF.
557 (rewrite_update_stmt): Remove SSA_OP_VIRTUAL_KILLS.
558 (rewrite_stmt): Remove SSA_OP_ALL_KILLS.
559
560 * tree-ssa-operands.h (struct stmt_operands_d): Remove V_MUST_DEF
561 references.
562 (MUSTDEF_OPS): Remove.
563 (SSA_OP_VMUSTDEF): Remove.
564 (FOR_EACH_SSA_MUSTDEF_OPERAND): Remove.
565 (struct mustdef_optype_d): Remove.
566 Remove mustdef_optype_p.
567 (struct stmt_operands_d): Remove mustdef_ops.
568 (ssa_operand_iterator_d): Remove mustdefs and mustkills.
569 (SSA_OP_VIRTUAL_DEFS): Remove SSA_OP_VMUSTDEF.
570 (MUSTDEF_RESULT_PTR): Remove.
571 (MUSTDEF_RESULT): Remove.
572 (MUSTDEF_KILL_PTR): Remove.
573 (MUSTDEF_KILL): Remove.
574 (MUSTDEF_NUM): Remove.
575 (MUSTDEF_VECT): Remove.
576 (SSA_OP_VIRTUAL_KILLS): Remove.
577 (SSA_OP_ALL_VIRTUALS): Remove SSA_OP_VIRTUAL_KILLS.
578 (SSA_OP_VMUSTKILL): Remove.
579 (SSA_OP_ALL_KILLS): Remove.
580 (SSA_OP_ALL_OPERANDS): Remove SSA_OP_ALL_KILLS.
581
582 * tree-flow-inline.h (op_iter_init_def): Remove
583 SSA_OP_VIRTUAL_KILLS.
584 (delink_stmt_imm_use): Remove SSA_OP_ALL_KILLS.
585
586 * tree-ssa-pre.c (compute_rvuse_and_antic_safe): Remove
587 SSA_OP_VIRTUAL_KILLS.
588
589 * tree-ssa-loop-im.c (determine_max_movement): Remove
590 SSA_OP_VIRTUAL_KILLS.
591 (gather_mem_refs_stmt): Same.
592 (gather_mem_refs_stmt): Same.
593
594 * tree-ssa-dce.c (mark_really_necessary_kill_operand_phis): Delete.
595 (perform_tree_ssa_dce): Remove call to
596 mark_really_necessary_kill_operand_phis.
597
598 * tree-flow-inline.h (op_iter_init): Remove setting of mustdefs
599 and mustkills.
600 (op_iter_next_use): Do not check mustkills.
601 (op_iter_next_def): Do not check mustdefs.
602 (op_iter_next_tree): Do not check mustkills or mustdefs.
603 (clear_and_done_ssa_iter): Do not set mustdefs or mustkills.
604 (op_iter_next_maymustdef): Do not check mustkills.
605 (op_iter_init_must_and_may_def): Remove SSA_OP_VMUSTKILL.
606 (op_iter_init_mustdef): Remove.
607
608 * tree-ssa-live.c (create_ssa_var_map): Change SSA_OP_VMUSTDEF to
609 SSA_OP_VMAYDEF.
610
611 * tree-ssa-dse.c (dse_optimize_stmt): Remove SSA_OP_VMUSTDEF.
612
613 * tree-ssa-ccp.c: Remove V_MUST_DEF traces from comments.
614 (visit_assignment): Same.
615
616 * tree-ssa-copy.c (copy_prop_visit_assignment): Same.
617
618 * tree-sra.c (mark_all_v_defs_1): Remove V_MUST_DEF from comment.
619
620 * tree-outof-ssa.c (check_replaceable): Remove SSA_OP_VMUSTDEF.
621
622 * tree-pretty-print.c (dump_vops): Remove printing of V_MUST_DEF.
623 Remove kill_p variable.
624
625 * tree-dfa.c (struct dfa_stats_d): Remove num_v_must_defs.
626 (dump_dfa_stats): Remove code related to V_MUST_DEFs.
627 (collect_dfa_stats_r): Do not set num_v_must_defs.
628 (mark_new_vars_to_rename): Remove v_must_defs_{before,after}
629 code.
630
631 * tree-into-ssa.c (mark_def_sites): Change SSA_OP_VMUSTKILL to
632 SSA_OP_VMAYUSE.
633
634 * tree-ssa-pre.c (compute_rvuse_and_antic_safe): Remove
635 SSA_OP_VMUSTDEF and SSA_OP_VMUSTKILL.
636
637 * tree-ssa-propagate.c (stmt_makes_single_store): Remove
638 SSA_OP_VMUSTDEF.
639
873983a1 6402006-12-11 Zdenek Dvorak <dvorakz@suse.cz>
641
642 PR rtl-optimization/30113
643 * loop-iv.c (implies_p): Require the mode of the operands to be
644 scalar.
645
de6ed584 6462006-12-11 Diego Novillo <dnovillo@redhat.com>
647
648 * tree-ssa-operands.h (create_ssa_artificial_load_stmt):
649 Rename from create_ssa_artficial_load_stmt. Update all users.
650 * tree-into-ssa.c (register_new_def): Make static.
651 * tree.c (is_global_var): Handle SSA_NAMEs.
652 * tree.h (SSA_NAME_IS_DEFAULT_DEF): Define. Update all users
653 that used to call gimple_default_def.
654 * tree-ssa-operands.c (push_stmt_changes): New.
655 (pop_stmt_changes): New. Update every pass that modifies
656 statements to bracket modifications with
657 push_stmt_changes/pop_stmt_changes.
658 (discard_stmt_changes): New.
659 * tree-ssa-dom.c (stmts_to_rescan): Change to stack of
660 'tree *' instead of 'tree'. Update all users.
661 * tree-flow-inline.h (zero_imm_uses_p): New.
662 (symbol_mem_tag): New. Update every function that used
663 to access the annotation directly.
664 (set_symbol_mem_tag): Likewise.
665 * tree-dfa.c (dump_variable): Always show the escape mask.
666 (mark_symbols_for_renaming): Rename from
667 mark_new_vars_to_rename. Update all users.
668 Only mark to rename naked symbols in real and virtual
669 operands.
670
ff831d3c 6712006-12-11 Andreas Schwab <schwab@suse.de>
672
673 * varasm.c (elf_record_gcc_switches): Cast second argument of
ee4ab97c 674 ASM_OUTPUT_SKIP to unsigned HOST_WIDE_INT.
ff831d3c 675
17889f9d 6762006-12-11 Diego Novillo <dnovillo@redhat.com>
677
678 * tree-scalar-evolution.c (scev_const_prop):
679 * tree-phinodes.c (remove_phi_node): Add argument
680 RELEASE_LHS_P. If given, release the SSA name on the LHS of
681 the PHI node.
682 Update all users.
683 * tree-ssa-dce.c: Remove forward declarations for static
684 functions. Re-arrange functions bodies as needed.
685 (find_obviously_necessary_stmts): Never mark PHI nodes as
686 obviously necessary.
687
c69b8abd 6882006-12-11 Carlos O'Donell <carlos@codesourcery.com>
689
690 * config/arm/elf.h (MAX_OFILE_ALIGNMENT): Remove definition.
691
f656b751 6922006-12-11 Jan Hubicka <jh@suse.cz>
693
694 * value-prof.c (tree_stringops_transform): New.
695 (tree_value_profile_transformations): Require count to be non-zero;
696 call stringop transform; reset stmt BSI after BB changed.
697 (tree_divmod_fixed_value, tree_mod_pow2): Don't emit unnecesary label.
698 (interesting_stringop_to_profile_p, tree_stringop_fixed_value): New.
699 (tree_stringops_values_to_profile): New.
700 (tree_values_to_profile): Call tree_stringops_values_to_profile.
701 * tree.h (build_string_literal): Tidy prototype.
702 (validate_arglist, builtin_memset_read_str, get_pointer_alignment):
703 Declare.
704 * builtins.c (validate_arglist, builtin_memset_read_str,
705 get_pointer_alignment): Export.
706
bae5345b 7072006-12-11 Uros Bizjak <ubizjak@gmail.com>
708
709 PR target/30120
710 Revert:
711 2006-11-15 Uros Bizjak <ubizjak@gmail.com>
712
713 * config/i386/i386.opt: New target option -mx87regparm.
714
715 * config/i386/i386.h (struct ix86_args): Add x87_nregs, x87_regno,
716 float_in_x87: Add new variables. mmx_words, sse_words: Remove.
717 (X87_REGPARM_MAX): Define.
718
719 * config/i386/i386.c (override_options): Error out for
720 -mx87regparm but no 80387 support.
721 (ix86_attribute_table): Add x87regparm.
722 (ix86_handle_cconv_attribute): Update comments for x87regparm.
723 (ix86_comp_type_attributes): Check for mismatched x87regparm types.
724 (ix86_function_x87regparm): New function.
725 (ix86_function_arg_regno_p): Add X87_REGPARM_MAX 80387 floating
726 point registers.
727 (init_cumulative_args): Initialize x87_nregs and float_in_x87
728 variables.
729 (function_arg_advance): Process x87_nregs and x87_regno when
730 floating point argument is to be passed in 80387 register.
731 (function_arg): Pass XFmode arguments in 80387 registers for local
732 functions. Pass SFmode and DFmode arguments to local functions
733 in 80387 registers when flag_unsafe_math_optimizations is set.
734
735 * reg-stack.c (convert_regs_entry): Disable NaN load for
736 stack registers that are used for argument passing.
737
738 * doc/extend.texi: Document x87regparm function attribute.
739 * doc/invoke.texi: Document -mx87regparm.
740
1d416bd7 7412006-12-11 Jan Hubicka <jh@suse.cz>
742
743 Move all varpool routines out of cgraph/cgraphunit to varpool.c
744 * cgraph.c: Update comments.
745 (cgraph_varpool_hash,
746 cgraph_varpool_nodes, cgraph_varpool_last_needed_node
747 cgraph_varpool_node_name, cgraph_varpool_node,
748 cgraph_varpol_mode_for_asm, cgraph_varpool_mark_needed_node,
749 cgraph_variable_initializer_availability): Move to
750 varpool.c and drop cgraph_ prefixes.
751 (cgraph_varpool_enqueue_needed_node, cgraph_varpool_reset_queue,
752 cgraph_varpool_first_unanalyzed_node, cgraph_varpool_finalize_decl):
753 move to varpool.c; drop cgraph_ prefix; make static.
754 (dump_cgraph_varpool_node): Move to varpool.c under name
755 dump_varpool_node.
756 (dump_varpool, hash_varpool_node, eq_varpool_node,
757 decide_is_variable_needed): Move to varpool.c
758 (decl_assembler_name_equal): Move to tree.c.
759 (availability_names): Rename to ...
760 (cgraph_availability_names): ... this one.
761 (dump_cgraph_node): Update.
762 * cgraph.h: Reorder declarations now in varpool.c
763 (cgraph_vailablity_names): Declare.
764 (struct cgraph_varpool_node): Rename to ...
765 (struct varpool_node): ... this one.
766 (cgraph_varpool_first_unanalyzed_node, cgraph_varpool_nodes_queue,
767 cgraph_varpool_first_unanalyzed_node, cgraph_varpool_node,
768 cgraph_varpool_node_for_asm, cgraph_varpool_mark_needed_node,
769 cgraph_varpool_finalize_decl, cgraph_varpool_enqueue_needed_node,
770 cgraph_varpool_reset_queue, cgraph_varpool_assemble_pending_decls,
771 cgraph_variable_initializer_availability): Rename to ...
772 (varpool_first_unanalyzed_node, varpool_nodes_queue,
773 varpool_first_unanalyzed_node, varpool_node,
774 varpool_node_for_asm, varpool_mark_needed_node,
775 varpool_finalize_decl, varpool_enqueue_needed_node,
776 varpool_assemble_pending_decls, variable_initializer_availability):
777 Rename to ...
778 * tree.c (decl_assembler_name_equal): Move here from cgraph.c.
779 * tree.h (decl_assembler_name_equal): Declare.
780 * omp-low.c (lower_omp_critical): Update.
781 * ipa-reference (analyze_variable, static_execute): Likewise.
782 * toplev.c (wrapup_global_declaration_2, compile_file): Update.
783 * cgraphunit.c: Update comments.
784 (cgraph_varpool_assembled_nodes_queue): Move to varpool.c under name
785 varpool_assembled_nodes_queue.
786 (cgraph_varpool_analyze_pending_decls): Move to varpool.c under name
787 varpool_analyze_pending_decls.
788 (cgraph_varpool_remove_unreferenced_decls): Move to varpool.c under name
789 varpool_remove_unreferenced_decls.
790 (record_reference): Update.
791 (cgraph_create_edges): Update.
792 (record_referneces_in_initializer): New function.
793 (cgraph_varpool_assemble_decl): Move to varpool.c under name
794 varpool_assemble_decl; make global.
795 (cgraph_varpool_assemble_pending_decls): Move to varpool.c under name
796 varpool_assemble_pending_decls.
797 (process_function_and_variable_attributes, cgraph_finalize_compilation_unit,
798 struct cgraph_order_sort, cgraph_output_in_order,
799 cgraph_function_and_variable_invisibility, cgraph_optimize,
800 cgraph_increase_alignment): Update.
801 * dwarf2out.c (decls_for_scope): Likewise.
802 * ipa-type-escape.c (analyze_variable, type_escape_execute): Likewise.
803 * except.c (output_ttype): Likewise.
804 * varasm.c (mark_decl_referenced): Likewise.
805 (find_decl_and_mark_referenced, assemble_alias): update.
806 * Makefile.in: Add varpool.c, gt-varpool.c and remove gt-cgraphunit.c
807 * passes.c (rest_of_decl_compilation): Update.
808
596e8f40 8092006-12-11 Ira Rosen <irar@il.ibm.com>
810
811 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Use
812 GIMPLE_STMT_OPERAND.
813 * tree-vect-transform.c (vect_permute_store_chain): Likewise.
814 (vect_setup_realignment): Likewise.
815
3faa52bc 8162006-12-11 Sa Liu <saliu@de.ibm.com>
817 Ben Elliston <bje@au.ibm.com>
818
819 * config/spu/spu-elf.h (STARTFILE_SPEC): Update.
820 (ENDFILE_SPEC): Likewise.
821 * config/spu/spu.opt (mstdmain): New option.
822 * config/spu/crti.asm: Remove.
823 * config/spu/crtn.asm: Likewise.
824 * config/spu/crt0.c: Likewise.
825 * config/spu/crtend.c: Likewise.
826 * config/spu/t-spu-elf (EXTRA_MULTILIB_PARTS): Remove crt0 files
827 listed above.
828 ($(T)crti.o, $(T)crtn.o, $(T)crt1.o, $(T)crtend1.o): Remove.
829 * doc/invoke.texi (SPU Options): Document -mstdmain.
830
0c3c2e56 8312006-12-10 Zdenek Dvorak <dvorakz@suse.cz>
832
833 * doc/loop.texi: Document number_of_latch_executions and
834 number_of_cond_exit_executions.
835 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
836 chrec_is_positive, number_of_iterations_for_all_loops,
837 scev_const_prop): Use number_of_latch_executions.
838 (set_nb_iterations_in_loop): Do not increase the value of the
839 number of iterations.
840 (number_of_iterations_in_loop): Renamed to ...
841 (number_of_latch_executions): ... this.
842 (number_of_exit_cond_executions): New function.
843 * tree-scalar-evolution.h (number_of_iterations_in_loop): Declaration
844 removed.
845 (number_of_latch_executions, number_of_exit_cond_executions): Declare.
846 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Use
847 number_of_latch_executions.
848 * tree-data-ref.c (get_number_of_iters_for_loop): Use
849 number_of_exit_cond_executions.
850 * tree-vect-analyze.c (vect_get_loop_niters): Ditto.
851 * cfgloop.h (struct loop): Improve description of the nb_iterations
852 field.
853
fee18fdb 8542006-12-10 Daniel Berlin <dberlin@dberlin.org>
855
856 * tree-ssa-alias.c (compact_name_tags): Use sort_tags_by_id.
857 (tree_pointer_compare): Remove.
858
17519ba0 8592006-12-10 Zdenek Dvorak <dvorakz@suse.cz>
860
861 * tree-vrp.c (adjust_range_with_scev): Use get_chrec_loop.
862 * loop-unswitch.c (unswitch_loops): Use FOR_EACH_LOOP.
863 * tree-loop-linear.c (linear_transform_loops): Ditto.
864 * tree-ssa-loop-im.c (determine_lsm): Ditto.
865 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations,
866 free_numbers_of_iterations_estimates): Ditto.
867 * tree_ssa_unswitch_loops (tree_ssa_unswitch_loops): Ditto.
868 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
869 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Ditto.
870 * modulo-sched.c (sms_schedule): Ditto.
871 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables,
872 tree_unroll_loops_completely): Ditto.
873 * predict.c (predict_loops): Ditto.
874 * tree-if-conv.c (main_tree_if_conversion): Ditto.
875 * loop-unroll.c (unroll_and_peel_loops, peel_loops_completely,
876 decide_unrolling_and_peeling): Ditto.
877 * cfgloopmanip.c (unloop): Use delete_loop.
878 (place_new_loop): Access larray vector instead of parray.
879 (create_preheaders, force_single_succ_latches,
880 fix_loop_structure): Use FOR_EACH_LOOP and delete_loop..
881 * loop-doloop.c (doloop_optimize_loops): Ditto.
882 * loop-invariant.c (move_loop_invariants): Ditto.
883 * tree-cfg.c (replace_uses_by): Ditto.
884 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Ditto.
885 * tree-chrec.h (CHREC_VAR, CHREC_LEFT, CHREC_RIGHT, CHREC_VARIABLE):
886 Moved to ...
887 * tree.h (CHREC_VAR, CHREC_LEFT, CHREC_RIGHT, CHREC_VARIABLE):
888 ... here.
889 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
890 compute_overall_effect_of_inner_loop, chrec_is_positive): Use
891 get_loop and get_chrec_loop.
892 (number_of_iterations_for_all_loops): Use number_of_loops.
893 (scev_initialize, scev_reset, scev_const_prop): Use FOR_EACH_LOOP.
894 * tree-scalar-evolution.h (get_chrec_loop): New inline function.
895 * cfgloopanal.c (mark_irreducible_loops): Use number_of_loops,
896 and FOR_EACH_LOOP.
897 * tree-chrec.c (evolution_function_is_invariant_rec_p,
898 chrec_convert_1): Use get_loop and get_chrec_loop.
899 * loop-init.c (loop_optimizer_init): Use number_of_loops.
900 (loop_optimizer_init): Use FOR_EACH_LOOP.
901 * tree-vectorizer.c (vect_loops_num): Removed.
902 (vectorize_loops): Store number of loops locally. Use
903 FOR_EACH_LOOP and get_loop.
904 * tree-vectorizer.h (vect_loops_num): Removed.
905 * tree-data-ref.c (get_number_of_iters_for_loop): Use get_loop.
906 (find_data_references_in_loop): Do not set parallel_p.
907 * tree-data-ref.h: Do not declare VEC(loop_p).
908 * cfgloop.c (flow_loops_dump, mark_single_exit_loops,
909 verify_loop_structure): Use FOR_EACH_LOOP.
910 (flow_loops_free): Use FOR_EACH_LOOP, free larray vector.
911 (initialize_loops_parallel_p): Removed.
912 (flow_loops_find): Push the loops into a vector.
913 (delete_loop): New function.
914 (cancel_loop): Use delete_loop.
915 * cfgloop.h: Declare VEC(loop_p).
916 (struct loop): Remove parallel_p field.
917 (struct loops): Replace num and parray field by larray vector.
918 Remove shared_headers field.
919 (delete_loop): Declare.
920 (get_loop, get_loops, number_of_loops, fel_next, fel_init,
921 FOR_EACH_LOOP): New.
922 * doc/loop.tex: Document new accessor functions.
923
2d043327 9242006-12-10 Andrew MacLeod <amacleod@redhat.com>
925
926 * common.opt (-ftree-lrs): Remove live range splitting option.
927 * makefile.in: Add tree-ssa-coalesce.o and reduce header dependancies.
928 * opts.c (decode_options): Remove flag_tree_live_range_split.
929 * tree-flow.h (struct var_ann_d): Rename fields from root_ to base_.
930 * tree-flow-inline.h (single_imm_use_p): New. Check for single use.
931 * tree-outof-ssa.c: Remove header files which aren't needed.
932 (SSANORM_*): Remove flags.
933 (print_exprs_edge, coalesce_abnormal_edges, coalesce_phi_operands,
934 coalesce_result_decls_and_copies, coalesce_asm_operands): Remove.
935 (coalesce_ssa_name): Move to tree-ssa-coalesce.c.
936 (assign_vars): Use Basevar instead of root_var structure.
937 (replace_def_variable): Dont do anything if def is replaceable.
938 (remove_ssa_form): Integrate functional changes.
939 (rewrite_out_of_ssa): Remove live-range_split option.
940 * tree-ssa-coalesce.c: New File for ssa-name coalescing.
941 (coalesce_cost): Calculate the cost of a coalesce.
942 (coalesce_cost_bb): Calculate the coalesce cost within a BB.
943 (coalesce_cost_edge): Calculate the coalesce cost on an edge.
944 (pop_cost_one_pair): Remove the best coalesce with cost 1 from the list.
945 (pop_best_coalesce): Remove the best coalesce from the list.
946 (coalesce_pair_map_hash): Calculate coalesce pair hash.
947 (coalesce_pair_map_eq): Compare 2 coalesce pairs for hash function.
948 (create_coalesce_list): Create a coalesce list object.
949 (delete_coalesce_list): Free a coalesce list object.
950 (find_coalesce_pair): Find matching pair in the coalesce list.
951 (add_cost_one_coalesce): Add a coalesce to the "cost one" list.
952 (add_coalesce): Add a coalesce to the coalesce list.
953 (compare_pairs): Comparision function to determine pair sorted order.
954 (num_coalesce_pairs): Number of coalesced pairs.
955 (first_coalesce_pair, end_coalesce_pair_p, next_coalesce_pair):
956 Coalesce pair iterator functions.
957 (sort_coalesce_list): Sort coalesce pairs in order of expense.
958 (dump_coalesce_list): Show coalesce list.
959 (ssa_conflicts_new): Create an SSA conflict graph.
960 (ssa_conflicts_delete): Delete an SSA conflict graph.
961 (ssa_conflicts_test_p): Test for conflicts.
962 (ssa_conflicts_add_one): Add a single conflict.
963 (ssa_conflicts_add): Add a conflict pair.
964 (ssa_conflicts_merge): Merge conflicts.
965 (struct live_track_d): Struct for tracking live partitions.
966 (new_live_track): Create new live_track object.
967 (delete_live_track): Delete a live_track object.
968 (live_track_remove_partition): Remove a partition from the live list.
969 (live_track_add_partition): Add a partition from the live list.
970 (live_track_clear_var): Take VAR from the live list.
971 (live_track_live_p): Is var live?
972 (live_track_process_use): Make var come alive.
973 (live_track_process_def): Make var go dead, add conflicts.
974 (live_track_init): Initialize to a live on exit set.
975 (live_track_clear_base_vars): Clear live partitions.
976 (build_ssa_conflict_graph): Build a conflict graph.
977 (print_exprs): Common debug output routine.
978 (abnormal_corrupt): Output info about a failed coalesce across an
979 abnormal edge.
980 (fail_abnormal_edge_coalesce): Output info about a failed MUST_COALESCE.
981 (create_outofssa_var_map): Create a var map and coalesce list.
982 (attempt_coalesce): Coalesce a pair.
983 (coalesce_partitions): Coalesce all pairs in a coalesce list.
984 (coalesce_ssa_name): Entry point. Determine what ssa_names to coalesce.
985 * tree-ssa-live.c: Remove header files which aren't needed.
986 (var_map_base_init): New. Initialize a basevar list.
987 (var_map_base_fini): New. Finish a basevar list.
988 (init_var_map): Initialize new fields.
989 (delete_var_map): Free new fields.
990 (var_union): Use renamed fields.
991 (compact_var_map): Remove.
992 (partition_to_view_init): Use renamed fields, change order of an if.
993 (partition_view_fini): Use renamed fields.
994 (partition_view_normal): Create basevar list if requested.
995 (partition_view_bitmap): Create a view based on a bitmap of partitions.
996 (change_partition_var): Use renamed fields.
997 (create_ssa_var_map): Remove.
998 (tpa_init, tpa_remove_partition, tpa_delete, tpa_compact,
999 root_var_init): Remove.
1000 (partition_pair_map_hash, partition_pair_map_eq, create_coalesce_list,
1001 delete_coalesce_list, find_partition_pair, coalesce_cost, add_coalesce,
1002 compare_pairs, num_coalesce_pairs, first_partition_pair,
1003 end_partition_pair_p, next_partition_pair, sort_coalesce_list,
1004 pop_best_coalesce, add_conflicts_if_valid, set_if_valid,
1005 build_tree_conflict_graph, coalesce_tpa_members, dump_coalesce_list,
1006 tpa_dump): Moved to tree-ssa-coalesce.c and/or renamed there.
1007 (dump_var_map): Use renamed fields.
1008 * tree-ssa-live.h (struct _var_map): Modify fields.
1009 (partition_to_var, version_to_var, var_to_partition): Use renamed
1010 fields.
1011 (basevar_index): New. Index of the base variable of a partition.
1012 (num_basevars): New. Number of unique base variables in partition map.
1013 (register_ssa_partition): Use renamed fields.
1014 (struct tree_partition_associator_d): Remove.
1015 (tpa_num_trees, tpa_tree, tpa_first_partition, tpa_next_partition,
1016 tpa_find_tree, tpa_decompact, root_var_init, root_var_num,
1017 root_var, root_var_first_partition, root_var_next_partition,
1018 root_var_dump, root_var_delete, root_var_remove_partition,
1019 root_var_find, root_var_compact, root_var_decompact): Remove.
1020 (struct partition_pair, struct coalesce_list_d): Moved to
1021 tree-ssa-coalesce.c
1022 * tree-ssa-ter.c: Remove header files which aren't needed.
1023
be22716f 10242006-12-10 Steven Bosscher <steven@gcc.gnu.org>
1025
1026 * cse.c: (struct cse_basic_block_data): Remove LAST field.
1027 (struct branch_path): Remove BRANCH and TAKEN fields. Add new
1028 BB field.
1029 (cse_visited_basic_blocks): New static bitmap.
1030 (cse_end_of_basic_block, cse_basic_block): Remove.
1031 (cse_find_path, cse_dump_path, cse_prescan_path,
1032 cse_extended_basic_block): New static functions.
1033 (cse_insn): Don't CSE over setjmp calls. Use the CFG to find
1034 basic block boundaries. Don't record jump equivalences here.
1035 Update the CFG after doing in-place replacement of the SET_SRC.
1036 (cse_main): Rewrite. Look for extended basic block headers
1037 and call cse_extended_basic_block on them until all paths that
1038 start at this header are exhausted.
1039 (rest_of_handle_cse): Verify that the CFG is incrementally updated
1040 and correct after cse_main.
1041 Don't call delete_trivially_dead_insns, let cfgcleanup do that.
1042 (rest_of_handle_cse2): Verify the CFG here, too, after cse_main.
1043 (pass_cse): Add TODO_verify_flow.
1044 (pass_cse2): Likewise.
1045
0fe7e658 10462006-12-10 Rask Ingemann Lambertsen <rask@sygehus.dk>
1047
1048 * reload1.c (choose_reload_regs): Don't set byte offset when
1049 resolving subregs of hard regs.
1050
8e332e0e 10512006-12-09 Zack Weinberg <zackw@panix.com>
1052
1053 * c-opts.c (c_common_parse_file): Unconditionally give a warning,
1054 suitable for the language, if set_yydebug is true.
1055 * c-pragma.h: Define enum pragma_omp_clause here. Don't define
1056 YYDEBUG or declare yydebug.
1057 * c-parser.c (yydebug, enum pragma_omp_clause): Delete.
1058
b326746d 10592006-12-09 Jan Hubicka <jh@suse.cz>
1060
1061 * cgraph.c: Update copyright.
1062 * cgraph.h: Likewise
1063 (cgraph_update_pending_function): Remove prototype.
1064 * cgraphunit.c: Update copyright; update overall comment.
1065 (cgraph_assemble_pending_functions): Make local.
1066
e99de389 10672006-12-09 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1068
1069 * haifa-sched.c (schedule_block): Remove excessive sanity check.
1070
dea01258 10712006-12-08 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1072
1073 * config/spu/spu-protos.h (spu_split_immediate): Renamed from
1074 spu_split_address.
1075 (cpat_const_p, gen_cpat_const): Add.
1076 * config/spu/spu.c (immediate_class): New enum.
1077 (cpat_info, classify_immediate): New.
1078 (print_operand): Use S, D, T instead of F, G, H. Use
1079 classify_immediate. Handle cpat cases.
1080 (spu_split_immediate): Renamed from spu_split_address. Split all
1081 immediates that can be split.
1082 (immediate_load_p): Use classify_immediate.
1083 (spu_legitimate_constant_p): Accept everything except some cases of
1084 CONST_VECTOR.
1085 (spu_expand_move): Use spu_split_immedate.
1086 (fsmbi_const_p): Use classify_immediate.
1087 (cpat_const_p): New.
1088 (gen_cpat_const: New.
1089 * config/spu/constraints.md (j,k,l): New constraints for cpat
1090 instructions.
1091 * config/spu/spu.md (unnamed splitter): Change address splitter to
1092 handle all immediates.
1093 (_mov<mode>, _movdi, _movti): Handle i, j, k constraints for cpat
1094 instructions.
1095 (cpat, _cpat, splitter): Generate a TImode constant for cpat patterns
1096 when possible.
1097
b26090ec 10982006-12-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1099
1100 PR target/30039
1101 * pa.md (high:DI and lo_sum:DI): Handle 64-bit CONST_INTs in 32-bit
1102 patterns. Correct length of high:DI instruction sequence.
1103
9afd7ce4 11042006-12-08 Mike Stump <mrs@apple.com>
1105
1106 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Build
1107 libgcc with -mmacosx-version-min=10.4.
1108 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Default to
1109 G4 for 10.5+ unless doing kernel builds.
1110
59ae5d2f 11112006-12-08 Uros Bizjak <ubizjak@gmail.com>
1112
1113 PR target/30120
1114 * reg-stack.c (convert_regs_entry): Mark current argument passing
1115 registers as live.
1116
1117 * config/i386/i386.h (X87_REGPARM_MAX): Set to 0 to disable passing
1118 of float arguments in x87 registers.
1119
4f2e9ceb 11202006-12-08 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
1121
1122 * pa.h (LEGITIMATE_CONSTANT_P): Simplify.
1123
cad2a6b5 11242006-12-08 Mark Shinwell <shinwell@codesourcery.com>
1125
1126 * recog.c (mode_dependent_address_p): Identify pre-increment,
1127 pre-decrement, post-increment and post-decrement addressing as always
1128 being mode-dependent.
1129 * config/m32c/m32c.c (m32c_mode_dependent_address): Delete.
1130 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1131 * config/m32c/m32c-protos.h (m32c_mode_dependent_address): Delete.
1132 * config/m32r/m32r.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete PRE_DEC,
1133 PRE_INC and POST_INC checks.
1134 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1135 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1136 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1137 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1138 * config/c4x/c4x.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete PRE_DEC,
1139 PRE_INC, POST_DEC and POST_INC cases.
1140 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
1141 Delete POST_INC and PRE_DEC cases.
1142 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to
1143 no-op.
1144 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1145 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to
1146 no-op.
1147 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1148 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1149 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Delete
1150 PRE_INC and PRE_DEC cases.
1151 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1152 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1153 * config/arm/arm.h (ARM_GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1154 (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1155 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1156 * config/vax/vax.c (vax_mode_dependent_address_p): Delete
1157 auto-increment cases.
1158 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete
1159 auto-increment cases.
1160 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1161
bdf50f60 11622006-12-08 Andrew MacLeod <amacleod@redhat.com>
1163
1164 * Makefile.in: Add new file tree-ssa-ter.c.
8e332e0e 1165 * tree-outof-ssa.c (struct temp_expr_table_d, new_temp_expr_table,
1166 free_temp_expr_table, add_value_to_version_list,
1167 add_value_to_partition_list, remove_value_from_partition_list,
1168 add_dependence, check_replaceable, finish_expr, mark_replaceable,
1169 kill_expr, kill_virtual_exprs, find_replaceable_in_bb,
bdf50f60 1170 find_replaceable_exprs, dump_replaceable_exprs): Move to tree-ssa-ter.c.
1171 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs): Add
1172 prototypes.
1173 * tree-ssa-ter.c: New file using code moved from tree-outof-ssa.c.
1174 (struct value_expr_d): Remove.
1175 (struct temp_expr_table_d): Rename fields, add explicit vector of
8e332e0e 1176 replaceable expressions instead of sharing. Change value_expr_p's to
bdf50f60 1177 bitmap. Delete free_list.
1178 (new_temp_expr_table): Rename fields, count number of ssa_names in
1179 each partition.
1180 (free_temp_expr_table): Rename field, free new fields.
1181 (new_value_expr, free_value_expr, find_value_in_list, add_value_to_list,
1182 add_info_to_list, remove_value_from_list): Delete.
1183 (version_to_be_replaced_p): New. Is an ssa-name replaceable?
1184 (make_dependent_on_partition): New. Set bit in version list, allocating
1185 a bitmap if need be.
1186 (add_to_partition_kill_list): New. Set bit in the partition list,
1187 allocating a bitmap if need be.
1188 (remove_from_partition_kill_list): New. Remove a bit from the
1189 partition list, free the bitmap if it is empty.
1190 (add_dependence): Use renamed field, cleanup. Don't add a dependence
1191 on partitions with only one member.
8e332e0e 1192 (is_replaceable_p): New. Split out replaceability check from
bdf50f60 1193 check_replaceable.
1194 (process_replaceable): New. Code split from check_replaceable.
1195 (check_replaceable): Removed.
1196 (finished_with_expr): Renamed from finish_expr.
1197 (kill_expr): Use renamed fields and less parameters.
1198 (kill_virtual_exprs): Less parameters.
1199 (mark_replaceable): Use renamed fields.
1200 (find_replaceable_in_bb): Use renamed fields, cleanup.
1201 (find_replaceable_exprs): Use renamed routines, cleanup.
1202 (dump_replaceable_exprs): Don't go past end of ssa_names list.
1203 (debug_ter): New. Debug routine to dump state.
1204
4c359296 12052006-12-08 Bernd Schmidt <bernd.schmidt@analog.com>
1206
1207 * config/bfin/bfin.c (effective_address_32bit_p): Return true for
1208 anything involving the GOT.
1209 (bfin_adjust_cost): Don't take the REGNO of a MEM.
1210 (trapping_loads_p): Look inside the pattern of an insn to find the
1211 SET.
1212 * config/bfin/bfin.md (attr "type"): Add movcc.
1213 (insn_reservation "alu"): Likewise.
1214 (movsicc_insn1, movsicc_insn2): Change type to movcc.
1215
828ce6b1 12162006-12-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
1217
1218 * config/spu/spu-c.c (spu_build_overload_builtin): Delete.
1219 (spu_resolve_overloaded_builtin): Check for non scalar instead
aab193ac 1220 of vector type and check the function call argument type also for
1221 non scalar.
828ce6b1 1222 Call build_function_call instead of spu_build_overload_builtin.
1223
171b6d22 12242006-12-07 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1225
1226 * config/spu/spu.c (array_to_constant): Correct the order of arguments
1227 to the calls of hwint_to_const_double.
1228
729dff88 12292006-12-07 Nick Clifton <nickc@redhat.com>
1230
1231 * config/elfos.h (TARGET_ASM_RECORD_GCC_SWITCHES): Set to
1232 elf_record_gcc_switches.
1233
de556b32 12342006-12-07 Andrew Macleod <amacleod@redhat.com>
1235
1236 * expr.c (string_constant): Account for non-zero lower bound arrays.
1237
5a84ba55 12382006-12-07 Richard Guenther <rguenther@suse.de>
1239
1240 * builtins.c (expand_builtin_pow): Adjust predicates for
1241 pow to cbrt expansion to unsafe math and !HONOR_NANS for
1242 negative base.
1243
c43a8a1a 12442006-12-07 Jan Hubicka <jh@suse.cz>
1245
1246 * i386.c (nocona_cost, pentium4_cost): Update preffered memcpy/memset
1247 codegen.
1248
14dc13e5 12492006-12-07 Jan Hubicka <jh@suse.cz>
1250
1251 * tree-vrp.c (compare_values): Short circuit INTEGER_CST;
1252 use fold_constant_to_binary; tolerate wrong type constants.
1253 (value_intersect_p): Do just two tests.
1254
5af6d8d8 12552006-12-07 Bernd Schmidt <bernd.schmidt@analog.com>
1256
1257 * config/bfin/bfin.c (print_operand): New modifier 'N' for constants.
1258 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
1259 lshifthi3): Use it, and fix the order of alternatives.
1260
7c6733e8 12612006-12-07 Nick Clifton <nickc@redhat.com>
1262
1263 * common.opt (record-gcc-switches): New command line switch.
1264 * target.h (print_switch_type): New enum.
1265 (print_switch_fn_type): New typedef for a function pointer.
1266 (struct gcc_target): Add record_gcc_switches and
1267 record_gcc_switches_section fields.
1268 * target-def.h (TARGET_ASM_RECORD_GCC_SWITCHES): Provide a
8e332e0e 1269 default definition.
7c6733e8 1270 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Provide a default
1271 definition.
1272 * toplev.c (print_single_switch): Simplify by providing a
1273 pointer to function that will format and output the switch
1274 appropriately.
1275 (print_switch_values): Likewise.
1276 (print_to_asm_out_file): New function.
1277 (print_to_stderr): New function.
1278 (init_asm_output): If flag_record_gcc_switches is set then if
8e332e0e 1279 the target supports recording the switches then emit them into
1280 the assembler output file, otherwise tell the user that the
1281 switch is not supported.
7c6733e8 1282 * varasm.c (eld_record_gcc_switches): New function. Example
1283 handler for the record_gcc_switches target hook.
1284 * doc/tm.texi (TARGET_ASM_RECORD_GCC_SWITCHES): Document the new
1285 target hook.
1286 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Likewise.
1287 * doc/invoke.texi (-frecord-gcc-switches): Document.
1288
90bf0a00 12892006-12-07 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1290
1291 PR target/29794
1292 * sched-rgn.c (add_block1): Use correct initializer.
1293
8c143b64 12942006-12-07 Richard Guenther <rguenther@suse.de>
1295
1296 * tree-vect-transform.c (vectorizable_call): Fix leftover of
1297 TREE_OPERAND to GIMPLE_STMT_OPERAND conversion.
1298
33b1284b 12992006-12-06 Aldy Hernandez <aldyh@redhat.com>
1300
1301 PR/30079
1302 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Build MODIFY_EXPR
1303 not GIMPLE_MODIFY_STMT.
1304
7e8bc5b6 13052006-12-06 Jan Hubicka <jh@suse.cz>
1306
1307 * tree-vrp.c (operand_less_p): New.
1308 (compare_values, value_inside_range): Rewrite in terms of
1309 operand_less_p.
1310
69858f81 13112006-12-06 Uros Bizjak <ubizjak@gmail.com>
1312
1313 * config/i386/i386.md (DIRFLAG_REG): Remove constant.
1314 (type): Remove cld.
1315 (length_immediate): Do not depend on cld type attribute.
1316 (length_address): Ditto.
1317 (modrm): Ditto.
1318 (memory): Ditto.
1319 (cld): Remove insn pattern.
1320 (strmov_singleop): Do not use DIRFLAG_REG.
1321 (*strmovdi_rex_1): Ditto.
1322 (*strmovsi_1): Ditto.
1323 (*strmovsi_rex_1): Ditto.
1324 (*strmovhi_1): Ditto.
1325 (*strmovhi_rex_1): Ditto.
1326 (*strmovqi_1): Ditto.
1327 (*strmovqi_rex_1): Ditto.
1328 (rep_mov): Ditto.
1329 (*rep_movdi_rex64): Ditto.
1330 (*rep_movsi): Ditto.
1331 (*rep_movsi_rex64): Ditto.
1332 (*rep_movqi): Ditto.
1333 (*rep_movqi_rex64): Ditto.
1334 (strset_singleop): Ditto.
1335 (*strsetdi_rex_1): Ditto.
1336 (*strsetsi_1): Ditto.
1337 (*strsetsi_rex_1): Ditto.
1338 (*strsethi_1): Ditto.
1339 (*strsethi_rex_1): Ditto.
1340 (*strsetqi_1): Ditto.
1341 (*strsetqi_rex_1): Ditto.
1342 (rep_stos): Ditto.
1343 (*rep_stosdi_rex64): Ditto.
1344 (*rep_stossi): Ditto.
1345 (*rep_stossi_rex64): Ditto.
1346 (*rep_stosqi): Ditto.
1347 (*rep_stosqi_rex64): Ditto.
1348 (cmpstrnsi): Do not generate cld insn.
1349 (cmpstrnqi_nz_1): Do not use DIRFLAG_REG.
1350 (*cmpstrnqi_nz_1): Ditto.
1351 (*cmpstrnqi_nz_rex_1): Ditto.
1352 (cmpstrnqi_1): Ditto.
1353 (*cmpstrnqi_1): Ditto.
1354 (*cmpstrnqi_rex_1): Ditto.
1355 (strlenqi_1): Ditto.
1356 (*strlenqi_1): Ditto.
1357 (*strlenqi_rex_1): Ditto.
1358
1359 * config/i386/geode.md (shift): Do not depend on cld type attribute.
1360 * config/i386/pentium.md (pent_cld): Remove insn reservation.
1361 * config/i386/athlon.md (athlon_decode): Do not depend on cld
1362 type attribute.
1363 * config/i386/ppro.md (ppro_cld): Remove insn reservation.
1364 * config/i386/k6.md (k6_alux_only): Do not depend on cld type
1365 attribute.
1366 (k6_alux_only_load): Ditto.
1367 (k6_alux_only_store): Ditto.
1368
1369 * config/i386/i386.c (ix86_expand_movmem): Remove cld_done boolean.
1370 Do not emit cld instruction.
1371 (ix86_expand_setmem): Ditto.
1372 (ix86_expand_strlen): Do not emit cld instruction.
1373
f84f5dae 13742006-12-06 Bernd Schmidt <bernd.schmidt@analog.com>
1375
1376 * config/bfin/bfin.c (bfin_rtx_costs): Add a number of new cases, tweak
1377 old ones.
1378
979f9661 13792006-12-06 Diego Novillo <dnovillo@redhat.com>
1380
1381 * gdbinit.in: Set complaints to 0.
1382
f65ffe0d 13832006-12-06 Jan Hubicka <jh@suse.cz>
1384
1385 * statistics.h (ALONE_PASS_MEM_STAT, ALONE_MEM_STAT_INFO,
1386 ALONE_MEM_STAT_DECL): New macros.
1387 * bitmap.h: Include statistics.h
1388 (struct bitmap_head_def): Add variant with pointer to bitmap descriptor.
1389 (bitmap_initialize_stat): Rename from bitmap_initialize; add statistics.
1390 (bitmap_obstack_alloc_stat, bitmap_gc_alloc_stat): Declare.
1391 * bitmap.c: Include hashtab.h
1392 (bitmap_descriptor): New.
1393 (bitmap_hash): New static variable
1394 (hash_descriptor, eq_descriptor, bitmap_descriptor, register_overhead):
1395 New static functions.
1396 (bitmap_register): New.
1397 (bitmap_element_free, bitmap_element_allocate, bitmap_elt_clear_from,
1398 bitmap_obstack_release): Do accounting.
1399 (bitmap_obstack_alloc_stat): Rename from bitmap_obstack_alloc ; do
1400 accounting.
1401 (bitmap_gc_alloc_stat): Likewise.
1402 (bitmap_obstack_free, bitmap_find_bit): Do statictics.
1403 (print_statistics, dump_bitmap_statistics): New functions.
1404 * toplev.c (finalize): Dump bitmap statistics.
1405
ac6a6c76 14062006-12-06 Bernd Schmidt <bernd.schmidt@analog.com>
1407
1408 * reload1.c (delete_output_reload): Count occurrences in
1409 CALL_INSN_FUNCTION_USAGE.
1410 * rtlanal.c (count_occurrences): Handle EXPR_LIST nodes without
1411 crashing at the end of the list.
1412
60f34e6a 14132006-12-05 Daniel Berlin <dberlin@dberlin.org>
1414
1415 * tree-ssa-structalias.c (set_used_smts): Re-fix pr29156.
1416 Optimize to avoid marking more SMT's as used when they aren't.
1417
b04b3710 14182006-12-05 Eric Christopher <echristo@apple.com>
1419
1420 * config/i386/i386.c (x86_output_aligned_bss): Move out
1421 of COMMON_ASM_OP ifdef.
1422
0be93128 14232006-12-05 Eric Christopher <echristo@apple.com>
1424
1425 * config/darwin.h (DARWIN_EXTRA_SPECS): New.
1426 (STARTFILE_SPEC): Use.
1427 (DARWIN_DYLIB1_SPEC): New.
1428 (DARWIN_CRT1_SPEC): New.
1429 * config/i386/darwin64.h (SUBTARGET_EXTRA_SPECS): Use
1430 DARWIN_EXTRA_SPECS.
1431 * config/i386/darwin.h: Ditto.
1432 * config/rs6000/darwin.h: Ditto.
1433
cfd24df1 14342006-12-05 Daniel Berlin <dberlin@dberlin.org>
1435
1436 * tree-vrp.c (pass_vrp): Remove PROP_smt_usage.
1437 * tree-complex.c (pass_lower_complex): Ditto.
1438 * tree-ssa-ccp.c (pass_ccp): Ditto.
1439 (pass_store_ccp): Ditto.
1440 * tree-ssa-dom.c (pass_dominator): Ditto.
1441 (pass_phi_only_cprop): Ditto.
1442 * tree-sra.c (pass_sra): Ditto.
1443 * tree-ssa-forwprop.c (pass_forwprop): Ditto.
1444 * tree-flow.h (updating_used_alone): Remove.
1445 (updating_used_alone): Ditto.
1446 * tree-ssa-alias.c (updating_used_alone): Remove variable.
1447 (lhs_may_store_to): Remove function.
1448 (recalculate_used_alone): Ditto.
1449 (compute_may_aliases): Remove used_alone calculation.
1450 * tree.h (struct tree_memory_tag): Remove is_used_alone and
1451 old_used_alone. Remove SMT_USED_ALONE and SMT_OLD_USED_ALONE.
1452 * tree-pass.h (PROP_smt_usage): Remove.
1453 * passes.c (execute_todo): Remove used alone recalculation.
1454 (execute_one_pass): Ditto.
1455 * tree-ssa-operands.c (add_virtual_operand): Remove used_alone
1456 stuff.
1457
8bb2c2a2 14582006-12-05 Brooks Moses <brooks.moses@codesourcery.com>
1459
1460 * doc/include/texinfo.tex: Update to version 2006-11-08.17.
1461
5ad82f18 14622006-12-05 Zdenek Dvorak <dvorakz@suse.cz>
1463
1464 PR tree-optimization/14784
1465 * tree-ssa-operands.c (access_can_touch_variable): Unrevert the fix.
1466
35cc02b5 14672006-12-05 Aldy Hernandez <aldyh@redhat.com>
1468
1469 Merge from gimple-tuples-branch.
1470
1471 2006-12-04 Aldy Hernandez <aldyh@redhat.com>
1472
6b75d5f9 1473 * config/s390/s390.c (s390_va_start): Replace MODIFY_EXPR with
1474 GIMPLE_MODIFY_STMT.
1475 (s390_gimplify_va_arg): Same.
1476 * config/sparc/sparc.c (sparc_gimplify_va_arg): Same.
1477 * config/sh/sh.c (sh_va_start): Same.
1478 (sh_gimplify_va_arg_expr): Same.
1479 * config/xtensa/xtensa.c (xtensa_va_start): Same.
1480 (xtensa_gimplify_va_arg_expr): Same.
1481 * config/ia64/ia64.c (ia64_gimplify_va_arg): Same.
1482 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Same.
1483 * config/mips/mips.c (mips_va_start): Same.
1484 (mips_gimplify_va_arg_expr): Same.
35cc02b5 1485
1486 2006-12-04 Aldy Hernandez <aldyh@redhat.com>
1487
6b75d5f9 1488 * Merge from mainline at revision 119445.
35cc02b5 1489
1490 2006-12-04 Aldy Hernandez <aldyh@redhat.com>
1491
6b75d5f9 1492 * config/spu/spu.c (spu_va_start): Change MODIFY_EXPR to
1493 GIMPLE_MODIFY_STMT.
1494 (spu_gimplify_va_arg_expr): Same.
35cc02b5 1495
1496 2006-12-04 Aldy Hernandez <aldyh@redhat.com>
1497
6b75d5f9 1498 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1499 Change uses of MODIFY_EXPR to GIMPLE_MODIFY_STMT.
1500 (xstormy16_expand_builtin_va_arg): Same.
35cc02b5 1501
1502 2006-12-04 Aldy Hernandez <aldyh@redhat.com>
1503
6b75d5f9 1504 * config/frv/frv.c (frv_expand_builtin_va_start): Change MODIFY_EXPR
1505 to GIMPLE_MODIFY_STMT.
35cc02b5 1506
1507 2006-12-04 Aldy Hernandez <aldyh@redhat.com>
1508
6b75d5f9 1509 * config/alpha/alpha.c (va_list_skip_additions): Change all
35cc02b5 1510 occurrences of MODIFY_EXPR to GIMPLE_MODIFY_STMT.
6b75d5f9 1511 (alpha_va_start): Same.
1512 (alpha_gimplify_va_arg_1): Same.
1513 (alpha_gimplify_va_arg): Same.
35cc02b5 1514
1515 2006-12-01 Aldy Hernandez <aldyh@redhat.com>
1516
1517 * gimplify.c (gimplify_modify_expr): Remove FIXME comment.
1518
1519 2006-12-01 Aldy Hernandez <aldyh@redhat.com>
1520
6b75d5f9 1521 * tree-ssa-loop-im.c: Rename all PROTECTED_TREE_OPERAND to
1522 GENERIC_TREE_OPERAND, and all PROTECTED_TREE_TYPE to
1523 GENERIC_TREE_TYPE.
1524 * tree-complex.c: Same.
1525 * tree-pretty-print.c: Same.
1526 * tree.c: Same.
1527 * tree.h: Same.
1528 * builtins.c: Same.
1529 * fold-const.c: Same.
1530 * tree-ssa-dom.c: Same.
1531 * tree-ssa-propagate.c: Same.
1532 * tree-ssa-alias.c: Same.
1533 * gimple-low.c: Same.
1534 * dwarf2out.c: Same.
1535 * c-pretty-print.c: Same.
1536 * gimplify.c: Same.
1537 * tree-inline.c: Same.
1538 * tree-outof-ssa.c: Same.
1539 * tree-ssa-structalias.c: Same.
1540 * tree-ssa-reassoc.c: Same.
1541 * stmt.c: Same.
35cc02b5 1542
1543 2006-11-16 Aldy Hernandez <aldyh@redhat.com>
1544
6b75d5f9 1545 * tree.c (build2_stat): Fix comment.
35cc02b5 1546
1547 2006-11-13 Aldy Hernandez <aldyh@redhat.com>
1548
6b75d5f9 1549 * tree-ssa-propagate.c (get_rhs): Use GIMPLE_MODIFY_STMT and
1550 TREE_OPERAND when appropriate.
35cc02b5 1551
1552 2006-11-04 Aldy Hernandez <aldyh@redhat.com>
1553
6b75d5f9 1554 * java/java-tree.h (lang_tree_node): Handle gimple tuples.
1555 (EXPR_WFL_EMIT_LINE_NOTE): Look inside base.
1556 (EXPR_WFL_LINECOL): Use EXPR_LOCUS macro instead of exp.locus.
1557 * java/java-gimplify.c (java_gimplify_expr): Comment on why we do
1558 not handle GIMPLE_MODIFY_STMT in the switch statement.
1559 (java_gimplify_modify_expr): Call build2 with GIMPLE_MODIFY_STMT.
1560 (java_gimplify_new_array_init): Same.
35cc02b5 1561
1562 2006-11-03 Aldy Hernandez <aldyh@redhat.com>
1563
6b75d5f9 1564 * gimplify.c (gimplify_omp_for): Allow gimple statements.
1565 * tree-outof-ssa.c (check_replaceable): Use PROTECTED_TREE_OPERAND.
1566 * fold-const.c (fold_binary): Allow gimple statements.
1567 (fold): Same.
1568 * fortran/trans-array.c (gfc_conv_descriptor_data_set_internal):
1569 Rename from gfc_conv_descriptor_data_set.
1570 Call gfc_add_modify instead of gfc_add_modify_expr.
1571 * fortran/trans-array.h (gfc_conv_descriptor_data_set_internal):
1572 Rename from gfc_conv_descriptor_data_set.
1573 (gfc_conv_descriptor_data_set): New macro.
1574 (gfc_conv_descriptor_data_set_tuples): New macros.
1575 * fortran/trans-openmp.c (gfc_omp_clause_default_ctor): Call
1576 gfc_conv_descriptor_data_set_tuples.
1577 * fortran/trans.c (gfc_add_modify): Rename from gfc_add_modify_expr.
1578 Generate GIMPLE_MODIFY_STMT when appropriate.
1579 * fortran/trans.h (gfc_add_modify): Rename from gfc_add_modify_expr.
1580 (gfc_add_modify_expr): New macro.
1581 (gfc_add_modify_stmt): New macro.
1582 * fortran/f95-lang.c (lang_tree_node): Handle gimple statements.
35cc02b5 1583
35cc02b5 1584 2006-11-01 Aldy Hernandez <aldyh@redhat.com>
1585
1586 * Merge from mainline at revision 118200.
1587
1588 2006-10-09 Aldy Hernandez <aldyh@redhat.com>
1589
1590 * tree-inline.c (copy_bb): Check for GIMPLE_MODIFY_STMT, and adjust
1591 accordingly.
1592
1593 2006-10-09 Aldy Hernandez <aldyh@redhat.com>
1594
6b75d5f9 1595 * tree.h (TREE_CHAIN, TREE_TYPE): Add versions for non GCC or not
35cc02b5 1596 enable checking.
6b75d5f9 1597 Also, add __extension__ to GCC versions.
1598 * tree-mudflap.c (mf_xform_derefs_1): Add parentheses around TREE_TYPE.
1599 * tree-inline.c (copy_tree_r): Initialize chain to assuage the warning
35cc02b5 1600 patrol.
1601
1602 2006-10-05 Aldy Hernandez <aldyh@redhat.com>
1603
1604 * tree-complex.c (expand_complex_libcall): Adjust for
1605 GIMPLE_MODIFY_STMT.
1606 (expand_complex_comparison): Same.
1607 * tree-pretty-print.c (dump_generic_node): Is_expr should include
1608 GIMPLE_STMT_P statements.
1609 * value-prof.c (tree_divmod_fixed_value_transform): Adjust for
1610 GIMPLE_MODIFY_STMT.
1611 (tree_mod_pow2_value_transform): Same.
1612 (tree_mod_subtract_transform): Same.
1613 * tree.c (build2_stat): Check for gimplified function in cfun.
1614 * tree.h (DECL_GIMPLIFIED): Delete.
1615 (struct tree_function_decl): Remove gimplified_flag.
1616 * omp-low.c (lower_omp_for): Adjust for GIMPLE_MODIFY_STMT.
1617 * cp/cp-gimplify.c (cp_gimplify_expr): Adjust for GIMPLE_MODIFY_STMT.
1618 (cxx_omp_clause_apply_fn): Adjust for GIMPLE_MODIFY_STMT.
1619 (cxx_omp_clause_copy_ctor): Same.
1620 (cxx_omp_clause_assign_op): Same.
1621 * c-pretty-print.c (pp_c_conditional_expression): Same.
1622 (pp_c_expression): Same.
1623 * langhooks.c (lhd_omp_predetermined_sharing): Same.
1624 * function.h (struct function): Add gimplified field.
1625 * tree-if-conv.c (add_to_dst_predicate_list): Adjust for
1626 GIMPLE_MODIFY_STMT.
1627 (find_phi_replacement_condition): Same.
1628 * gimplify.c (gimplify_modify_expr_to_memcpy): Same.
1629 (gimplify_modify_expr_to_memset): Same.
1630 (gimplify_init_ctor_eval_range): Same.
1631 (gimplify_modify_expr_complex_part): Same.
1632 (tree_to_gimple_tuple): Same.
1633 (gimplify_modify_expr): Same.
1634 (gimple_push_cleanup): Same.
1635 (gimplify_omp_for): Same.
1636 (gimplify_omp_atomic_pipeline): Same.
1637 (gimplify_omp_atomic_mutex): Same.
1638 (gimplify_expr): Same.
1639 (gimplify_one_sizepos): Same.
1640 (gimplify_function_tree): Same.
1641 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Same.
1642 (vect_recog_widen_sum_pattern): Same.
1643 * tree-vect-transform.c (get_initial_def_for_reduction): Same.
1644 (vect_create_epilog_for_reduction): Same.
1645 (vectorizable_reduction): Same.
1646
1647 2006-09-28 Aldy Hernandez <aldyh@redhat.com>
1648
6b75d5f9 1649 * tree-ssa-math-opts.c (replace_reciprocal): Use GIMPLE_STMT_OPERAND.
1650 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p): Same.
1651 (ifc_temp_var): Same.
1652 * tree-vect-analyze.c (vect_determine_vectorization_factor): Check
35cc02b5 1653 for gimple statements.
6b75d5f9 1654 (vect_analyze_operations): Same.
1655 (exist_non_indexing_operands_for_use_p): Use GIMPLE_STMT_OPERAND.
1656 * gimplify.c (gimplify_return_expr): Handle gimple statements.
1657 * lambda-code.c (can_put_in_inner_loop): Same.
1658 (can_put_after_inner_loop): Same.
1659 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Same.
1660 (vect_create_data_ref_ptr): Same.
1661 (vect_init_vector): Same.
1662 (vect_get_vec_def_for_operand): Same.
1663 (vect_create_epilog_for_reduction): Same.
1664 (vectorizable_reduction): Same.
1665 (vectorizable_assignment): Same.
1666 (vectorizable_operation): Same.
1667 (vectorizable_load): Same.
1668 (vectorizable_condition): Same.
1669 * config/rs6000/rs6000.c (rs6000_va_start): Do not create MODIFY_EXPRs.
1670 (rs6000_gimplify_va_arg): Same.
35cc02b5 1671
1672 2006-09-25 Aldy Hernandez <aldyh@redhat.com>
1673
6b75d5f9 1674 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use
1675 GIMPLE_STMT_OPERAND.
1676 (simplify_abs_using_ranges): Same.
1677 * tree-complex.c (expand_complex_operations_1): Use
1678 PROTECTED_TREE_OPERAND.
1679 * tree-ssa-loop-niter.c (simplify_replace_tree): Check for gimple
1680 stmt.
1681 (get_val_for): Use GIMPLE_STMT_OPERAND.
1682 * tree-tailcall.c (adjust_accumulator_values): Same.
1683 (adjust_return_value): Same.
1684 * tree.c (walk_tree): Use IS_GIMPLE_STMT_CODE_CLASS on default
1685 case. Remove special case for tcc_gimple_stmt.
1686 * tree.h (CAN_HAVE_LOCATION_P): New.
1687 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Check for
1688 GIMPLE_STMT_P.
1689 * tree-stdarg.c (va_list_counter_bump): Use GIMPLE_STMT_OPERAND.
1690 * tree-ssa-dom.c (propagate_rhs_into_lhs): Same.
1691 * tree-nrv.c (execute_return_slot_opt): Same.
1692 * tree-ssa-alias.c (count_uses_and_derefs): Check for GIMPLE_STMT_P.
1693 * tree-vn.c (set_value_handle): Same.
1694 (get_value_handle): Same.
1695 * c-decl.c (add_stmt): Use CAN_HAVE_LOCATION_P.
1696 * tree-vectorizer.c (find_loop_location): Same.
1697 * c-typeck.c (c_process_expr_stmt): Same.
1698 (c_finish_stmt_expr): Same.
1699 * gimplify.c (should_carry_locus_p): Same.
1700 (tree_to_gimple_tuple): Delete definition and use of unecessary
1701 variable save_tree_block.
1702 * tree-ssa-pre.c (phi_translate): Check for GIMPLE_STMT_P.
1703 (create_expression_by_pieces): Use GIMPLE_STMT_OPERAND.
1704 (realify_fake_stores): Same.
1705 * tree-ssa-forwprop.c (forward_propagate_addr_into_variable_arr):
1706 Use TREE_OPERAND.
1707 * tree-inline.c (copy_body_r): Check for EXPR_P and GIMPLE_STMT_P.
1708 (copy_tree_r): Check for IS_GIMPLE_STMT_CODE_CLASS.
1709 * tree-cfg.c (move_stmt_r): Use EXPR_P. Check for GIMPLE_STMT_P.
1710 * c-parser.c (c_parser_typeof_specifier): Use CAN_HAVE_LOCATION_P.
1711 (c_parser_statement_after_labels): Same.
1712 (c_parser_paren_condition): Same.
1713 (c_parser_for_statement): Same.
1714 (c_parser_omp_for_loop): Same.
1715 * tree-ssa-reassoc.c (linearize_expr): Use GIMPLE_STMT_OPERAND.
1716 (linearize_expr_tree): Same.
1717 * dwarf2out.c (reference_to_unused): Check for GIMPLE_STMT_P.
1718 * function.c (instantiate_expr): Same.
35cc02b5 1719
1720 2006-09-22 Aldy Hernandez <aldyh@redhat.com>
1721
6b75d5f9 1722 * tree.c (expr_location): Use GIMPLE_STMT_LOCUS.
1723 (set_expr_location): Same.
1724 (expr_locus): Same.
1725 (set_expr_locus): Same.
1726 (expr_filename): Same.
1727 (expr_lineno): Same.
1728 (tree_block): Use GIMPLE_STMT_BLOCK.
1729 (protected_tree_operand): Use GIMPLE_STMT_OPERAND.
1730 * tree.h (struct gimple_stmt): Remove prev and next.
1731 (GIMPLE_STMT_OPERAND_CHECK): New.
1732 (TREE_TO_GIMPLE_STMT): Delete.
1733 (GIMPLE_STMT_TO_TREE): Delete.
1734 (GIMPLE_STMT_OPERAND): Use union, not cast.
1735 (GIMPLE_STMT_LOCUS): New.
1736 (GIMPLE_STMT_BLOCK): New.
1737 * gimplify.c (tree_to_gimple_tuple): Use union. Do not cast
1738 to tree_base.
1739 * tree-cfg.c (verify_gimple_tuples_1): Call gcc_unreachable.
35cc02b5 1740
1741 2006-09-21 Aldy Hernandez <aldyh@redhat.com>
1742
6b75d5f9 1743 * tree-into-ssa.c (REGISTER_DEFS_IN_STMT): Change common.base
1744 to base.
1745 * tree-tailcall.c (adjust_return_value): Same.
1746 * tree.c (tree_code_size): Remove GIMPLE_STATEMENT_LIST case.
1747 (copy_node_stat): Change common.base to base.
1748 (tree_node_structure): Return TS_GIMPLE_STATEMENT for tcc_gimple_stmt.
1749 Remove GIMPLE_STATEMENT_LIST case.
1750 * tree.h (struct gimple_stmt): Make operands of type tree.
1751 (TREE_CODE, TREE_SET_CODE, TREE_ADDRESSABLE, CALL_EXPR_TAILCALL,
1752 CASE_LOW_SEEN, TREE_STATIC, CLEANUP_EH_ONLY, CASE_HIGH_SEEN,
1753 TREE_NO_WARNING, TREE_CONSTANT_OVERFLOW, TREE_SYMBOL_REFERENCED,
1754 TYPE_REF_CAN_ALIAS_ALL, TREE_OVERFLOW, TREE_PUBLIC,
1755 TYPE_CACHED_VALUES_P, TREE_SIDE_EFFECTS, FORCED_LABEL,
1756 TREE_THIS_VOLATILE, TREE_THIS_NOTRAP, TREE_READONLY,
1757 TREE_CONSTANT, TYPE_SIZES_GIMPLIFIED, DECL_UNSIGNED,
1758 BIT_FIELD_REF_UNSIGNED, TYPE_UNSIGNED, TREE_ASM_WRITTEN, TREE_USED,
1759 TREE_NOTHROW, CALL_EXPR_RETURN_SLOT_OPT, DECL_BY_REFERENCE,
1760 CALL_FROM_THUNK_P, TYPE_ALIGN_OK, TREE_PRIVATE, TREE_PROTECTED,
1761 TREE_DEPRECATED, IDENTIFIER_TRANSPARENT_ALIAS, TREE_INVARIANT,
1762 TREE_LANG_FLAG_*, SSA_NAME_OCCURS_IN_ABNORMAL_PHI,
1763 SSA_NAME_IN_FREE_LIST, TYPE_VOLATILE, TYPE_READONLY, BINFO_VIRTUAL_P):
1764 Change common.base to base.
1765 (GIMPLE_STATEMENT_LIST*): Remove.
1766 (union tree_node): Add base. Remove gimple_statement_list.
1767 Remove pointer from gstmt.
1768 * tree-ssa-propagate.c (set_rhs): Change common.base to base.
1769 * treestruct.def: Add TS_BASE. Remove TS_GIMPLE_STATEMENT_LIST.
1770 * tree-vn.c (vn_compute): Change common.base to base.
1771 * tree-eh.c (verify_eh_throw_stmt_node): Same.
1772 * tree-flow-inline.h (var_ann): Same.
1773 (function_ann): Same.
1774 (stmt_ann): Same.
1775 (mark_non_addressable): Same.
1776 * gimplify.c (tree_to_gimple_tuple): Same.
1777 * tree.def (DEFTREECODE): Remove GIMPLE_STATEMENT_LIST.
1778 * tree-dfa.c (create_var_ann): Change common.base to base.
1779 (create_function_ann): Same.
1780 (create_stmt_ann): Same.
1781 (create_tree_ann): Same.
1782 (collect_dfa_stats_r): Same.
1783 * tree-ssa-pre.c (NECESSARY): Change common.base to base.
1784 * tree-ssa-dce.c (NECESSARY): Same.
1785 * tree-ssa.c (delete_tree_ssa): Same.
1786 * tree-optimize.c (execute_free_cfg_annotations): Same.
1787 * tree-flow.h: Same.
35cc02b5 1788
1789 2006-09-19 Aldy Hernandez <aldyh@redhat.com>
1790
6b75d5f9 1791 * tree.c (tree_code_size): Handle GIMPLE_STATEMENT_LIST.
1792 (tree_node_structure): Handle GIMPLE_STATEMENT_LIST and
35cc02b5 1793 GIMPLE_MODIFY_STMT.
6b75d5f9 1794 * tree.h (struct gimple_stmt): Add prev and next fields.
35cc02b5 1795 (GIMPLE_STMT_TO_TREE): Cast, do not call GIMPLE_STMT_CHECK.
1796 (GIMPLE_STATEMENT_LIST_HEAD): New.
1797 (GIMPLE_STATEMENT_LIST_TAIL): New.
1798 (struct gimple_statement_list): New.
1799 (union tree_node): Add gimple_stmt_list and gstmt.
6b75d5f9 1800 * treestruct.def: Add TS_GIMPLE_STATEMENT_LIST, TS_GIMPLE_STATEMENT.
1801 * tree.def: Add GIMPLE_STATEMENT_LIST.
35cc02b5 1802
1803 2006-09-06 Aldy Hernandez <aldyh@redhat.com>
1804
1805 * tree-dump.c (dequeue_and_dump): Handle GIMPLE_MODIFY_STMT.
1806 * tree-vrp.c (build_assert_expr_for): Change uses of
1807 MODIFY_EXPR to GIMPLE_MODIFY_STMT and adjust accordingly.
1808 (find_assert_locations): Same.
1809 (remove_range_assertions): Same.
1810 (stmt_interesting_for_vrp): Same.
1811 (vrp_visit_assignment): Same.
1812 (vrp_visit_stmt): Same.
1813 (simplify_cond_using_ranges): Same.
1814 * tree-into-ssa.c (REGISTER_DEFS_IN_THIS_STMT): Adjust for new
1815 tree structure.
1816 * tree-ssa-loop-im.c (movement_possibility): Change uses of
1817 MODIFY_EXPR to GIMPLE_MODIFY_STMT and adjust accordingly.
1818 (stmt_cost): Same.
1819 (determine_invariantness_stmt): Same.
1820 (schedule_sm): Same.
1821 (gather_mem_refs_stmt): Same.
1822 * tree-complex.c (init_dont_simulate_again): Same.
1823 (complex_visit_stmt): Same.
1824 (set_component_ssa_name): Same.
1825 (expand_complex_move): Same.
1826 (expand_complex_div_wide): Same.
1827 (expand_complex_comparison): Same.
1828 (expand_complex_operations_1): Same.
1829 * tree-ssa-loop-niter.c (expand_simple_operations): Same.
1830 (chain_of_csts_start): Same.
1831 (infer_loop_bounds_from_undefined): Same.
1832 * tree-pretty-print.c (dump_generic_node): Same.
1833 (op_prio): Same.
1834 (op_symbol_1): Same.
1835 * tree-ssa-loop-manip.c (create_iv): Same.
1836 * value-prof.c (tree_divmod_fixed_value): Same.
1837 (tree_divmod_fixed_value_transform): Same.
1838 (tree_mod_pow2): Same.
1839 (tree_mod_pow2_value_transform): Same.
1840 (tree_mod_subtract): Same.
1841 (tree_mod_subtract_transform): Same.
1842 (tree_divmod_values_to_profile): Same.
1843 * tree-tailcall.c (process_assignment): Same.
1844 (find_tail_calls): Same.
1845 (adjust_accumulator_values): Same.
1846 (adjust_return_value): Same.
1847 (eliminate_tail_call): Same.
1848 * tree.c (tree_code_size): Handle tcc_gimple_stmt.
1849 (make_node_stat): Same.
1850 (copy_node_stat): Handle gimple tuples.
1851 (expr_align): Handle GIMPLE_MODIFY_STMT. Abort on MODIFY_EXPR.
1852 (tree_node_structure): Handle tcc_gimple_stmt.
1853 (build2_stat): Abort on MODIFY_EXPR after gimplification. Handle
1854 tcc_gimple_stmt.
1855 (build2_gimple_stat): New.
1856 (expr_location): New.
1857 (set_expr_location): New.
1858 (expr_has_location): New.
1859 (expr_locus): New.
1860 (set_expr_locus): New.
1861 (expr_filename): New.
1862 (expr_lineno): New.
1863 (walk_tree): Handle tcc_gimple_stmt.
1864 (tree_block): New.
1865 (protected_tree_operand): New.
1866 (protected_tree_type): New.
1867 (tree_code_kind): Add gimple statements.
1868 * tree.h (tree_code_class): Add tcc_gimple_stmt.
1869 (IS_GIMPLE_STMT_CODE_CLASS): New.
1870 (struct tree_base): New.
1871 (struct tree_common): Shrink.
1872 (struct gimple_stmt): New.
1873 (struct gimple_expr): New.
1874 (TREE_SET_CODE, TREE_ADDRESSABLE, CALL_EXPR_TAILCALL,
1875 CASE_LOW_SEEN, TREE_STATIC, CLEANUP_EH_ONLY, CASE_HIGH_SEEN,
1876 TREE_NO_WARNING, TREE_CONSTANT_OVERFLOW, TREE_SYMBOL_REFERENCED,
1877 TYPE_REF_CAN_ALIAS_ALL, TREE_OVERFLOW, TREE_PUBLIC,
1878 TYPE_CACHED_VALUES_P, SAVE_EXPR_RESOLVED_P, TREE_SIDE_EFFECTS,
1879 FORCED_LABEL, TREE_THIS_VOLATILE, TREE_THIS_NOTRAP, TREE_READONLY,
1880 TREE_CONSTANT, TYPE_SIZES_GIMPLIFIED, DECL_UNSIGNED,
1881 BIT_FIELD_REF_UNSIGNED, TYPE_UNSIGNED, TREE_ASM_WRITTEN,
1882 TREE_USED, TREE_NOTHROW, CALL_EXPR_RETURN_SLOT_OPT,
1883 DECL_BY_REFERENCE, CALL_FROM_THUNK_P, TYPE_ALIGN_OK,
1884 TREE_PRIVATE, TREE_PROTECTED, TREE_DEPRECATED,
1885 IDENTIFIER_TRANSPARENT_ALIAS, TREE_INVARIANT,
1886 TREE_LANG_FLAG_[0-6], SSA_NAME_CHECK, SSA_NAME_IN_FREE_LIST,
1887 TYPE_VOLATILE, TYPE_READONLY, TREE_VISITED, BINFO_VIRTUAL_P):
1888 Adjust for new `common' layout.
1889 (struct tree_function_decl): Add gimplified_flag.
1890 (DECL_GIMPLIFIED): NEW.
1891 (EXPR_LOCATION, SET_EXPR_LOCUS, EXPR_FILENAME, EXPR_LOCUS,
1892 SET_EXPR_LOCUS, SET_EXPR_LOCATION, EXPR_LINENO,
1893 EXPR_HAS_LOCATION): Call corresponding function.
1894 (GIMPLE_STMT_CHECK): New.
1895 (TREE_OPERAND_CHECK, TREE_TYPE, TREE_CHAIN): Abort on gimple tuples.
1896 (TREE_BLOCK): Call tree_block.
1897 (GIMPLE_STMT_P): New.
1898 (GIMPLE_TUPLE_P): New.
1899 (TREE_TO_GIMPLE_STMT): New.
1900 (GIMPLE_STMT_TO_TREE): New.
1901 (GIMPLE_STMT_OPERAND): New.
1902 (GIMPLE_TUPLE_HAS_LOCUS_P): New.
1903 (PROTECTED_TREE_OPERAND): New.
1904 (PROTECTED_TREE_TYPE): New.
1905 (build2_gimple_stat): Protoize.
1906 (build2_gimple): New.
1907 (expr_location): Protoize.
1908 (set_expr_location): Protoize.
1909 (expr_has_location): Protoize.
1910 (expr_locus): Protoize.
1911 (set_expr_locus): Protoize.
1912 (expr_filename): Protoize.
1913 (expr_lineno): Protoize.
1914 (tree_block): Protoize.
1915 (protected_tree_operand): Protoize.
1916 (protected_tree_type): Protoize.
1917 (enum tree_node_kind): Add gimple_stmt_kind.
1918 * c-decl.c (union lang_tree_node): Tuples do not have a
1919 TREE_CHAIN.
1920 * ipa-cp.c (constant_val_insert): Change uses of MODIFY_EXPR to
1921 GIMPLE_MODIFY_STMT and adjust accordingly.
1922 * tree-scalar-evolution.c (follow_ssa_edge): Same.
1923 (interpret_condition_phi): Same.
1924 (pointer_used_p): Same.
1925 (analyze_scalar_evolution_1): Same.
1926 (scev_const_prop): Same.
1927 (interpret_rhs_modify_stmt): Rename from
1928 interpret_rhs_modify_expr.
1929 * builtins.c (std_expand_builtin_va_start): Change uses of
1930 MODIFY_EXPR to GIMPLE_MODIFY_STMT and adjust accordingly.
1931 (std_gimplify_va_arg_expr): Same.
1932 (expand_builtin_va_copy): Same.
1933 (integer_valued_real_p): Same.
1934 * fold-const.c (maybe_lvalue_p): Same.
1935 (fold_unary): Same.
1936 (tree_expr_nonnegative_p): Same.
1937 (tree_expr_nonzero_p): Same.
1938 * omp-low.c (extract_omp_for_data): Same.
1939 (lower_rec_input_clauses): Same.
1940 (lower_reduction_clauses): Same.
1941 (lower_copyprivate_clauses): Same.
1942 (lower_send_clauses): Same.
1943 (lower_send_shared_vars): Same.
1944 (expand_parallel_call): Same.
1945 (expand_omp_parallel): Same.
1946 (expand_omp_for_generic): Same.
1947 (expand_omp_for_static_nochunk): Same.
1948 (expand_omp_for_static_chunk): Same.
1949 (expand_omp_sections): Same.
1950 (lower_omp_single_copy): Same.
1951 (lower_omp_parallel): Same.
1952 * tree-ssa-dse.c (memory_address_same): Same.
1953 (dse_optimize_stmt): Same.
1954 * ipa-reference.c (scan_for_static_refs): Same.
1955 * tree-gimple.c (is_gimple_reg_rhs): Same.
1956 (get_call_expr_in): Same.
1957 (recalculate_side_effects): Same.
1958 * cgraphunit.c (cgraph_create_edges): Same.
1959 * tree-ssa-copyrename.c (rename_ssa_copies): Same.
1960 * tree-ssa-ccp.c (get_default_value): Same.
1961 (likely_value): Same.
1962 (visit_assignment): Same.
1963 (ccp_visit_stmt): Same.
1964 (get_maxval_strlen): Same.
1965 (ccp_fold_builtin): Same.
1966 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Same.
1967 (find_givs_in_stmt): Same.
1968 (find_interesting_uses_op): Same.
1969 (find_interesting_uses_stmt): Same.
1970 (rewrite_use_nonlinear_expr): Same.
1971 * ipa-pure-const.c (scan_function): Same.
1972 * tree-stdarg.c (va_list_counter_bump): Same.
1973 (check_all_va_list_escapes): Same.
1974 (execute_optimize_stdarg): Same.
1975 * tree-ssa-math-opts.c (compute_merit): Same.
1976 (insert_reciprocals): Same.
1977 (execute_cse_reciprocals): Same.
1978 * tree-ssa-dom.c (initialize_hash_element): Same.
1979 (simple_iv_increment_p): Same.
1980 (record_equivalences_from_stmt): Same.
1981 (optimize_stmt): Same.
1982 (remove_stmt_or_phi): Same.
1983 (get_rhs_or_phi_arg): Same.
1984 (get_lhs_or_phi_result): Same.
1985 (propagate_rhs_into_lhs): Same.
1986 * tree-nrv.c (tree_nrv): Same.
1987 (execute_return_slot_opt): Same.
1988 * tree-ssa-propagate.c (get_rhs): Same.
1989 (set_rhs): Same.
1990 (stmt_makes_single_load): Same.
1991 (stmt_makes_single_store): Same.
1992 (replace_vuses_in): Same.
1993 (fold_predicate_in): Same.
1994 (substitute_and_fold): Same.
1995 * tree-ssa-alias.c (compute_call_clobbered): Same.
1996 (recalculate_used_alone): Same.
1997 (count_uses_and_derefs): Same.
1998 (is_escape_site): Same.
1999 (find_used_portions): Same.
2000 * gimple-low.c (lower_stmt): Same.
2001 (block_may_fallthru): Same.
2002 (lower_return_expr): Same.
2003 * tree-ssa-sink.c (is_hidden_global_store): Same.
2004 (statement_sink_location): Same.
2005 * dwarf2out.c (loc_descriptor_from_tree_1): Same.
2006 * expr.c (safe_from_p): Same.
2007 (expand_expr_real): Same.
2008 (expand_expr_real_1): Same.
2009 * tree-ssa-loop-ivcanon.c (empty_loop_p): Same.
2010 * predict.c (expr_expected_value): Same.
2011 (strip_builtin_expect): Same.
2012 (apply_return_prediction): Same.
2013 (tree_bb_level_predictions): Same.
2014 (tree_estimate_probability): Same.
2015 * tree-vn.c (vn_compute): Same.
2016 * tree-eh.c (add_stmt_to_eh_region_fn): Same.
2017 (remove_stmt_from_eh_region_fn): Same.
2018 (do_return_redirection): Same.
2019 (honor_protect_cleanup_actions): Same.
2020 (lower_try_finally_switch): Same.
2021 (lower_eh_constructs_1): Same.
2022 (tree_could_throw_p): Same.
2023 (verify_eh_throw_stmt_node): Same.
2024 * function.c (gimplify_parameters): Same.
2025 * tree-vectorizer.c (vect_is_simple_use): Same.
2026 (vect_is_simple_reduction): Same.
2027 * ipa-type-escape.c (scan_for_refs): Same.
2028 * tree-if-conv.c (tree_if_conversion): Same.
2029 (tree_if_convert_stmt): Same.
2030 (if_convertible_gimplify_modify_stmt_p): Rename from
2031 if_convertible_modify_expr_p.
2032 (if_convertible_stmt_p): Adjust for GIMPLE_MODIFY_STMT.
2033 (ifc_temp_var): Same.
2034 (replace_phi_with_cond_modify_stmt): Rename from
2035 replace_phi_with_cond_modify_expr.
2036 (process_phi_nodes): Call replace_phi_with_cond_modify_stmt.
2037 * tree.def (DEFTREECODE): Add GIMPLE_MODIFY_STMT.
2038 * tree-data-ref.c (find_data_references_in_loop): Adjust for
2039 GIMPLE_MODIFY_STMT.
2040 * tree-flow-inline.h (var_ann): Same.
2041 (function_ann): Same.
2042 (stmt_ann): Same.
2043 (mark_non_addressable): Same.
2044 * tree-vect-analyze.c (vect_determine_vectorization_factor): Same.
2045 * gimplify.c (tree_to_gimple_tuple): New.
2046 (build_stack_save_restore): Adjust for GIMPLE_MODIFY_STMT.
2047 (gimplify_return_expr): Same.
2048 (gimplify_decl_expr): Same.
2049 (gimplify_self_mod_expr): Same.
2050 (gimplify_cond_expr): Same.
2051 (gimplify_init_constructor): Same.
2052 (gimplify_modify_expr): Same.
2053 (gimplify_expr): Same.
2054 (gimplify_function_tree): Same.
2055 (force_gimple_operand): Same.
2056 * tree-ssa-phiopt.c (conditional_replacement): Same.
2057 (minmax_replacement): Same.
2058 (abs_replacement): Same.
2059 * tree-dfa.c (create_var_ann): Same.
2060 (create_function_ann): Same.
2061 (create_stmt_ann): Same.
2062 (create_tree_ann): Same.
2063 (collect_dfa_stats_r): Same.
2064 * tree-ssa-pre.c (find_or_generate_expression): Same.
2065 (create_expression_by_pieces): Same.
2066 (try_look_through_load): Same.
2067 (insert_fake_stores): Same.
2068 (realify_fake_stores): Same.
2069 (compute_avail): Same.
2070 (eliminate): Same.
2071 (init_pre): Same.
2072 (poolify_modify_stmt): Rename from poolify_modify_stmt.
2073 Adjust for GIMPLE_MODIFY_STMT.
2074 (NECESSARY): Adjust for new `common' layout.
2075 * tree-ssa-live.c (build_tree_conflict_graph): Adjust for
2076 GIMPLE_MODIFY_STMT.
2077 * tree-sra.c (sra_walk_modify_stmt): Rename from
2078 sra_walk_modify_expr.
2079 (sra_walk_function): Adjust for GIMPLE_MODIFY_STMT.
2080 (generate_copy_inout): Same.
2081 (generate_element_copy): Same.
2082 (generate_element_zero): Same.
2083 (scalarize_copy): Same.
2084 * tree-mudflap.c (mf_decl_cache_locals): Same.
2085 (mf_build_check_statement_for): Same.
2086 (mf_xform_derefs): Same.
2087 * ipa-prop.c (ipa_method_modify_stmt): Same.
2088 * print-tree.c (print_node): Handle gimple tuples.
2089 Add case for tcc_gimple_stmt.
2090 * tree-ssa-copy.c (stmt_may_generate_copy): Adjust for
2091 GIMPLE_MODIFY_STMT.
2092 (copy_prop_visit_assignment): Same.
2093 (copy_prop_visit_stmt): Same.
2094 (init_copy_prop): Same.
2095 * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): Same.
2096 (forward_propagate_into_cond_1): Same.
2097 (find_equivalent_equality_comparison): Same.
2098 (tidy_after_forward_propagate_addr): Same.
2099 (forward_propagate_addr_expr_1): Same.
2100 (simplify_not_neg_expr): Same.
2101 (simplify_switch_expr): Same.
2102 * tree-ssa-dce.c (find_pdom): Same.
2103 (mark_stmt_if_obviously_necessary): Same.
2104 (NECESSARY): Adjust for new `common' layout.
2105 * tree-flow.h: Same.
2106 * tree-vect-patterns.c (widened_name_p): Adjust for
2107 GIMPLE_MODIFY_STMT.
2108 (vect_recog_dot_prod_pattern): Same.
2109 (vect_recog_widen_sum_pattern): Same.
2110 (vect_pattern_recog_1): Same.
2111 * tree-nested.c (init_tmp_var): Same.
2112 (save_tmp_var): Same.
2113 (walk_stmts): Same.
2114 (convert_call_expr): Same.
2115 (finalize_nesting_tree_1): Same.
2116 * tree-ssa.c (verify_ssa): Same.
2117 (delete_tree_ssa): Same.
2118 * lambda-code.c (lbv_to_gcc_expression): Same.
2119 (lle_to_gcc_expression): Same.
2120 (lambda_loopnest_to_gcc_loopnest): Same.
2121 (can_put_in_inner_loop): Same.
2122 (can_convert_to_perfect_nest): Same.
2123 (perfect_nestify): Same.
2124 * tree-ssa-loop-prefetch.c (gather_memory_references): Same.
2125 * tree-inline.c (copy_body_r): Same.
2126 (setup_one_parameter): Same.
2127 (initialize_inlined_parameters): Same.
2128 (estimate_num_insns_1): Same.
2129 (expand_call_inline): Same.
2130 (gimple_expand_calls_inline): Same.
2131 (copy_tree_r): Same.
2132 * tree-optimize.c (execute_free_cfg_annotations): Same.
2133 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Same.
2134 (vect_align_data_ref): Same.
2135 (vect_create_data_ref_ptr): Same.
2136 (vect_init_vector): Same.
2137 (vect_create_epilog_for_reduction): Same.
2138 (vectorizable_reduction): Same.
2139 (vectorizable_assignment): Same.
2140 (vectorizable_operation): Same.
2141 (vectorizable_store): Same.
2142 (vectorizable_load): Same.
2143 (vectorizable_live_operation): Same.
2144 (vectorizable_condition): Same.
2145 (vect_generate_tmps_on_preheader): Same.
2146 (vect_create_cond_for_align_checks): Same.
2147 * tree-object-size.c (collect_object_sizes_for): Same.
2148 (check_for_plus_in_loops_1): Same.
2149 (check_for_plus_in_loops): Same.
2150 * tree-outof-ssa.c (insert_copy_on_edge): Same.
2151 (replace_use_variable): Same.
2152 (check_replaceable): Same.
2153 (rewrite_trees): Same.
2154 (identical_copies_p): Same.
2155 (insert_backedge_copies): Same.
2156 * tree-profile.c (tree_gen_edge_profiler): Same.
2157 * tree-vect-generic.c (expand_vector_operations_1): Same.
2158 * tree-ssa-structalias.c (update_alias_info): Same.
2159 (find_func_aliases): Same.
2160 * tree-cfg.c (factor_computed_gotos): Same.
2161 (make_edges): Same.
2162 (make_goto_expr_edges): Same.
2163 (tree_merge_blocks): Same.
2164 (remove_useless_stmts_cond): Same.
2165 (remove_useless_stmts_1): Same.
2166 (tree_find_edge_insert_loc): Same.
2167 (verify_expr): Same.
2168 (gimplify_val): Same.
2169 (verify_gimple_tuples_1): New.
2170 (verify_gimple_tuples): New.
2171 (verify_stmts): Call verify_gimple_tuples.
2172 * tree-ssa-reassoc.c (get_rank): Adjust for GIMPLE_MODIFY_STMT.
2173 (get_unary_op): Same.
2174 (linearize_expr): Same.
2175 (get_single_immediate_use): Same.
2176 (negate_value): Same.
2177 (should_break_up_subtract): Same.
2178 (break_up_subtract): Same.
2179 (repropagate_negates): Same.
2180 (break_up_subtract_bb): Same.
2181 (reassociate_bb): Same.
2182 * config/i386/i386.c (ix86_va_start): Same.
2183 (ix86_gimplify_va_arg): Same.
2184 * stmt.c (expand_expr_stmt): Same.
2185 (warn_if_unused_value): Same.
2186 (expand_return): Same.
2187 * tree-ssanames.c (make_ssa_name): Same.
2188 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Same.
2189 * tree-ssa-operands.c (finalize_ssa_defs): Same.
2190 (add_virtual_operand): Same.
2191 (get_expr_operands): Same.
2192 (parse_ssa_operands): Same.
2193 (get_modify_stmt_operands): Rename from get_modify_expr_operands.
2194
fc297ba4 21952006-12-05 H.J. Lu <hongjiu.lu@intel.com>
2196
2197 * config.host: Remove extra blank line.
2198
f097fe9c 21992006-12-05 Bernd Schmidt <bernd.schmidt@analog.com>
2200
2201 * config.host (i[34567]86-*-*, x86-64-*-*): Use driver-i386.o only if
2202 target is also an x86 variant.
2203
fcd2028f 22042006-12-05 Richard Guenther <rguenther@suse.de>
2205
2206 * config/i386/i386.c (ix86_builtin_vectorized_function): Declare.
2207 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define.
2208 (ix86_builtin_vectorized_function): New function to vectorize
2209 sqrt.
2210
25d323e6 22112006-12-05 Bernd Schmidt <bernd.schmidt@analog.com>
2212
2213 * config/bfin/bfin.c (output_file_start): Fix comment which referred to
2214 ia64_override_options.
2215
15083ac3 22162006-12-04 Jan Hubicka <jh@suse.cz>
2217
2218 * cfgexpand.c (expand_one_var): Guard expand_one_stack_var by
2219 really_expand.
2220
48df5a7f 22212006-12-04 Bernd Schmidt <bernd.schmidt@analog.com>
2222
2223 * rtlanal.c (note_uses): Deal with SEQUENCEs.
2224 * config/bfin/bfin.c: Include "timevar.h".
2225 (bfin_flag_schedule_insns2, splitting_for_sched,
2226 bfin_flag_var_tracking): New variables.
2227 (print_operand): Handle '%!'.
2228 (override_options): Disable normal sched2 pass, instead set
2229 bfin_flag_schedule_insns2 for reorg to handle it.
2230 (output_file_start): Likewise for var-tracking.
2231 (bfin_optimize_loop): Take some care not to stumble over SEQUENCEs.
2232 (gen_one_bundle, bfin_gen_bundles, type_for_anomaly, trapping_loads_p):
2233 New functions.
2234 (bfin_reorg): Do second scheduling pass here, and call
2235 bfin_gen_bundles. Use type_for_anomaly and trapping_loads_p instead
2236 of examining insns directly. If bfin_flag_var_tracking, call
2237 var-tracking pass when done with everything else.
2238 * config/bfin/bfin.h (PRINT_OPERAND_PUNCT_VALID_P): '!' is valid.
2239 * config/bfin/bfin.md (UNSPEC_32BIT): New constant.
2240 (movsi_insn32): New pattern, with two new splits to create it
2241 before the final scheduling pass.
2242 (neghi2): Not a dsp32 insn, rather alu0.
2243 (movbi, pushsi_insn, popsi_insn, movsi_insn, movv2hi_insn, movhi_insn,
2244 movqi_insn, movsf_insn, movsi_insv, extendhisi2, zero_extendhisi2,
2245 extendqihi2, extendqisi2, zero_extendqihi2, zero_extendqisi2,
2246 mulhisi3, umulhisi3, ssadsi3, sssubsi3, smaxsi3, sminsi3, abssi2,
2247 ssnegsi2, signbitssi2, smaxhi3, sminhi3, abshi2, ssneghi2, signbitshi2,
2248 movhi_low2high, movhi_high2high, movhi_low2low, movhi_high2low,
2249 movhiv2hi_low, movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
2250 ssaddhi3, sssubhi3, addv2hi3, ssaddv2hi3, subv2hi3, sssubv2hi3,
2251 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3, sublohiv2hi3,
2252 subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3, addlohiv2hi3,
2253 addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3, sminv2hi3, smaxv2hi3,
2254 flag_mulhi, flag_mulhisi, flag_mulhisi_parts, flag_machi,
2255 flag_machi_acconly, flag_macinithi, flag_macinit1hi, mulv2hi3,
2256 flag_mulv2hi, flag_mulv2hi_parts, flag_macv2hi_parts,
2257 flag_macv2hi_parts_acconly, flag_macinitv2hi_parts,
2258 flag_macinit1v2hi_parts, mulhisi_ll, mulhisi_lh, mulhisi_hl,
2259 mulhisi_hh, ssnegv2hi2, absv2hi2, ssashiftv2hi3, ssashifthi3,
2260 lshiftv2hi3, lshifthi3): Use '%!' to terminate all dsp32/load/store
2261 variants instead of ';'.
2262 (ror_one, rol_one): Likewise. Make them dsp32 insns.
2263 (ashlsi3_insn, ashrsi3, lshrsi3): Add dsp32 variants.
2264 (align8, align16, align24): Now named patterns; also using '%!'.
2265 (mnop): New insn.
2266
9505a73b 22672006-12-05 Kazu Hirata <kazu@codesourcery.com>
2268
2269 * config/i386/darwin.h, config/spu/spu.c, tree-ssa-live.c,
2270 tree-vect-generic.c, tree-vect-transform.c: Fix comment typos.
2271
c8befdb9 22722006-12-04 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
2273
2274 * config/spu/spu-protos.c (spu_split_address): Add.
2275 * config/spu/spu.c (spu_split_address): Add.
2276 (print_operand): Handle HIGH.
2277 (spu_legitimate_address): Don't test for aligned CONST.
2278 (spu_expand_mov): Don't split addresses here.
2279 * config/spu/constraints.md (A): Don't test legitimate_const.
2280 * config/spu/spu.md: Add split of movsi patterns for PIC mode.
2281 (ceq_di): Use correct predicates.
2282
44308069 22832006-12-04 Eric Christopher <echristo@apple.com>
2284
2285 * config/darwin.h: Update copyright notice.
2286 * config/i386/darwin.h: Ditto.
2287
92552a26 22882006-12-04 Jan Hubicka <jh@suse.cz>
2289
2290 * builtins.c (fold_builtin_memory_op): Check that expr_size match.
2291 * explow.c (expr_size, int_expr_size): Assert that size is non_NULL.
2292
dcead90e 22932006-12-04 Daniel Berlin <dberlin@dberlin.org>
2294
2295 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Call
2296 set_used_smts.
2297 * tree-ssa-structalias.c (set_used_smts): Export.
2298 (find_what_p_points_to): Don't call set_used_smts here.
2299 * tree-ssa-structalias.h (set_used_smts): Add prototype.
2300
7d1f52b2 23012006-12-04 Daniel Berlin <dberlin@dberlin.org>
44308069 2302
7d1f52b2 2303 * tree-ssa-alias.c (compute_may_aliases):
2304 Compute flow sensitive before flow insensitive.
2305 (compute_flow_sensitive_aliasing): Don't try to add
2306 a symbol memory tag to itself.
44308069 2307
7d1f52b2 2308 * alias.h (alias_set_subset_of): New prototype.
dcead90e 2309
7d1f52b2 2310 * alias.c (alias_set_subset_of): New function.
dcead90e 2311
7d1f52b2 2312 * tree-ssa-structalias.c: Update comments.
2313 (struct variable_info): Add finished_solution.
2314 (new_varinfo): Set finished solution to NULL.
2315 (var_escaped_vars): Remove.
2316 (escaped_vars_tree): Remove.
2317 (escaped_vars_id): Remove.
dcead90e 2318 (nonlocal_vars_id): Remove.
7d1f52b2 2319 (constraint_expr_type): Add INCLUDES.
2320 (graph_size): Removed.
2321 (dump_constraint): Support INCLUDES.
2322 (build_constraint_graph): Ditto.
2323 (collapse_nodes): Add merge_solutions argument.
2324 Don't merge attributes.
2325 (process_unification_queue): Just use collapse_nodes.
2326 (perform_var_substitution): Update call to collapse_nodes.
2327 (get_constraint_exp_from_ssa_var): Use INCLUDES.
2328 (process_constraint): Fix non-field sensitive handling
2329 Handle includes.
2330 (get_constraint_for): Use INCLUDES.
dcead90e 2331 (make_constraint_from_anything): Renamed from
2332 make_constraint_from_escaped.
7d1f52b2 2333 (make_constraint_to_escaped): Removed.
2334 (find_global_initializers): Removed.
2335 (create_variable_info_for): Do not make constraints to escaped
2336 vars anymore.
2337 (dump_solution_for_var): Don't print out the equivalent points-to
2338 sets, just use the name of the variable it shares it with.
2339 (intra_create_variable_infos): Use INCLUDES.
dcead90e 2340 Change nonlocal variable sets to anything sets.
2341 (init_base_vars): Remove escaped_vars and nonlocal_var
44308069 2342 initialization.
7d1f52b2 2343 (find_escape_constraints): Removed.
2344 (delete_points_to_sets): Remove dead code.
2345 (used_smt_calculated): New variable.
2346 (set_used_smts): New function.
2347 (merge_smts_into): New function.
2348 (find_what_p_points_to): Modify to use SMTs.
dcead90e 2349 (create_nonlocal_var): Remove.
44308069 2350
7d1f52b2 2351 * tree-ssa-operands.c (access_can_touch_variable): Remove
44308069 2352 reference to nonlocal_all.
dcead90e 2353
7d1f52b2 2354 * tree-ssa.c (verify_name_tags): Remove.
44308069 2355
f7e93dc7 23562006-12-04 Carlos O'Donell <carlos@codesourcery.com>
2357
2358 * config/arm/unwind-arm.c: Adjust __cxa_type_match declaration.
2359 (__gnu_unwind_pr_common): Pass is_reference to __cxa_type_match.
2360
30928c44 23612006-12-04 Andrew MacLeod <amacleod@redhat.com>
2362
2363 * tree-outof-ssa.c (coalesce_ssa_name): Use calculate_live_ranges.
2364 * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info): Update.
2365 (add_livein_if_notdef): Delete.
2366 (loe_visit_block): New. Propogate live on entry info for a block into
2367 each predecessor. If it changes, make sure it is visited again.
44308069 2368 (live_worklist): Visit every block and update the live on entry info
30928c44 2369 for preds. Iterate over any that changed.
2370 (set_var_live_on_entry): Populate the live on entry blocks with bits
2371 based on the immediate uses of a var.
2372 (calculate_live_on_entry): Remove.
2373 (calculate_live_on_exit): Calculate live on exit based on the newly
2374 oriented live on entry bits.
2375 (calculate_live_ranges): Build live on entry and exit vectors.
2376 (dump_live_info): Use new orientation of live on entry bitmaps.
2377 (verify_live_on_entry): New. Split out verification code from old
2378 calculate_live_on_entry routine.
2379 * tree-ssa-live.h (struct tree_live_info_d): Add Working stack.
2380 (live_entry_blocks): Rename to live_on_entry and return bitmap for a
2381 basic_block instead of for a partition.
2382 (live_merge_and_clear): Add asserts.
2383 (make_live_on_entry): Set partition bit in basic block vector.
2384
03ed154b 23852006-12-04 Jakub Jelinek <jakub@redhat.com>
2386
497f2858 2387 PR libgomp/29947
2388 * omp-low.c (expand_omp_for_static_nochunk,
2389 expand_omp_for_static_chunk): Do all arithmetics in signed rather than
2390 unsigned type.
2391
03ed154b 2392 PR middle-end/29965
2393 * omp-low.c (determine_parallel_type): Don't try to optimize combined
2394 parallels if region->exit or region->inner->exit is NULL.
2395 (expand_omp_parallel): Handle NULL region->exit even if cfg is already
2396 built.
2397 (expand_omp_for_generic): Handle NULL region->cond and region->exit.
2398 (expand_omp_for): Use expand_omp_for_generic if either region->cond
2399 or region->exit is NULL.
2400 (expand_omp_sections): Handle NULL region->cond or region->exit.
44308069 2401 (expand_omp_synch):
03ed154b 2402
8469434f 24032006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2404
2405 * config/sparc/sp64-elf.h (JUMP_TABLES_IN_TEXT_SECTION): Delete.
2406 * config/sparc/sysv4.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2407
89c5cfdc 24082006-12-04 Eric Botcazou <ebotcazou@adacore.com>
2409
2410 * tree.c (walk_type_fields): Do not handle TYPE_MIN_VALUE and
2411 TYPE_MAX_VALUE for scalar types here but...
2412 (walk_tree): ...there instead. Return NULL_TREE if the TYPE_DECL
2413 is attached an error mark, and the return value of the callback
2414 if it is not NULL_TREE.
2415
d88ed439 24162006-12-04 Ben Elliston <bje@au.ibm.com>
2417
2418 * config/spu/spu.md (_mulv4si3): Remove unused local variables.
2419
a47cd786 24202006-12-03 Eric Christopher <echristo@apple.com>
2421
2422 PR target/24598
2423 * config/t-slibgcc-darwin: Pass -install_name.
2424 * config/darwin.h (LINK_COMMAND_SPEC): Remove use of
2425 libtool. Only pass through options that the linker recognizes.
2426 (LINK_SPEC): Update comment. Translate options.
2427 (STARTFILE_SPEC): Add dylib1.o for shared libraries.
2428 * config/darwin9.h (LINK_COMMAND_SPEC): Ditto above.
2429
4fe49efc 24302006-12-03 Dorit Nuzman <dorit@il.ibm.com>
2431
2432 * config/spu/spu.md (smaxv4sf3, sminv4sf3): New.
2433
bc0af4ae 24342006-12-03 Uros Bizjak <ubizjak@gmail.com>
2435
2436 PR target/30041
2437 * config/i386/sse.md ("*sse3_movddup"): Use operands[0] and
2438 operands[1] in insn constraint. Correct type attribute to sselog1.
2439
10e818c2 24402006-12-02 H.J. Lu <hongjiu.lu@intel.com>
2441
2442 PR target/30040
2443 * config/i386/driver-i386.c: Include "coretypes.h" and "tm.h".
2444 (bit_SSSE3): New.
2445 (host_detect_local_cpu): Check -mtune= vs. -march=. Rewrite
2446 processor detection.
2447
2448 * config/i386/i386.h (CC1_CPU_SPEC): Add -mtune=native for
2449 -march=native if there is no -mtune=*.
2450
2451 * config/i386/x-i386 (driver-i386.o): Also depend on $(TM_H)
2452 coretypes.h.
2453
4af4078c 24542006-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2455
2456 * doc/install.texi: Update recommended MPFR version. Remove
2457 obsolete reference to cumulative patch.
2458
9db402ec 24592006-12-02 Lee Millward <lee.millward@codesourcery.com>
2460
2461 PR c/27953
2462 * c-decl.c (store_parm_decls_oldstyle): Robustify.
a47cd786 2463
71229c28 24642006-11-30 Jan Hubicka <jh@suse.cz>
2465 Uros Bizjak <ubizjak@gmail.com>
2466
2467 * config/i386/i386.c (pentium4_cost, nocona_cost): Update
2468 32bit memcpy/memset decriptors.
2469 (decide_alg): With -minline-all-stringops and sizes that are best
2470 to be copied via libcall still work hard enough to pick non-libcall
2471 strategy.
2472
b5fb9cbe 24732006-12-02 Kazu Hirata <kazu@codesourcery.com>
2474
2475 * doc/extend.texi, doc/invoke.texi, doc/md.texi: Fix typos.
2476
fa7637bd 2477 * builtins.c, cfgloop.h, cgraph.h, config/arm/arm.c,
2478 config/i386/i386.c, config/i386/i386.h, config/mips/mips.h,
2479 config/rs6000/cell.md, config/rs6000/rs6000.c, config/sh/sh.c,
2480 config/sh/sh4-300.md, config/spu/spu-builtins.def,
2481 config/spu/spu-c.c, config/spu/spu-modes.def,
2482 config/spu/spu.c, config/spu/spu.md,
2483 config/spu/spu_internals.h, config/spu/vmx2spu.h,
2484 fold-const.c, fwprop.c, predict.c, tree-data-ref.h,
2485 tree-flow.h, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
2486 tree-ssa-pre.c, tree-vect-analyze.c, tree-vect-transform.c,
2487 tree-vectorizer.c, tree-vrp.c: Fix comment typos. Follow
2488 spelling conventions.
2489
8b0aea64 2490 * config/i386/i386.c: Fix a comment typo.
2491
99369027 24922006-12-01 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
2493
2494 * config/spu/spu.c (spu_immediate): Remove trailing comma.
2495 (reloc_diagnostic): Call warning when -mwarn-reloc is specified.
2496 * config/spu/spu.md: (zero_extendhisi2): Expand instead of split for
2497 better optimization.
2498 (floatv4siv4sf2): New.
2499 (fix_truncv4sfv4si2): New.
2500 (floatunsv4siv4sf2): New.
2501 (fixuns_truncv4sfv4si2): New.
2502 (addv16qi3): New.
2503 (subv16qi3): New.
2504 (negv16qi2): New.
2505 (mulv8hi3): New.
2506 (mulsi3): Remove.
2507 (mul<mode>3): New.
2508 (_mulv4si3): New.
2509 (cmp<mode>): Don't accept constant arguments for DI, TI and SF.
2510 * config/spu/spu_internals.h: Handle overloaded intrinsics in C++ with
2511 spu_resolve_overloaded_builtin instead of static inline functions.
2512
8aa01816 25132006-12-01 Eric Botcazou <ebotcazou@adacore.com>
2514
2515 * fold-const.c (fold_binary) <LT_EXPR>: Use the precision of the
2516 type instead of the size of its mode to compute the highest and
2517 lowest possible values. Still check the size of the mode before
2518 flipping the signedness of the comparison.
2519
e04cf423 25202006-12-01 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
2521
2522 * config/spu/predicates.md (spu_mov_operand): Add.
2523 * config/spu/spu.c (spu_expand_extv): Remove unused code.
2524 (print_operand_address, print_operand): Handle addresses containing AND.
2525 (spu_split_load, spu_split_store): Use updated movti pattern.
2526 * config/spu/spu.md: (_mov<mode>, _movdi, _movti): Handle loads and
2527 stores in mov patterns for correct operation of reload.
2528 (lq, lq_<mode>, stq, stq_<mode>): Remove.
2529
7accad14 25302006-12-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2531
2532 PR c++/30021
2533 * c-common.c (check_main_parameter_types): Check for error_mark_node.
2534
ad3a58c8 25352006-12-01 Andrew MacLeod <amacleod@redhat.com>
2536
2537 * common.opt (ftree-combine-temps): Remove.
2538 * tree-outof-ssa.c (SSANORM_COMBINE_TEMPS): Remove.
2539 (coalesce_ssa_name): Don't check for combine-temps.
2540 (coalesce_vars): Remove.
2541 (check_replaceable): Use num_imm_uses.
a47cd786 2542 (remove_ssa_form, insert_backedge_copies, rewrite_out_of_ssa): Don't
ad3a58c8 2543 check for combine-temps.
2544 (rewrite_out_of_ssa): Never create a ref_count in the var_map.
2545 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Change parms
2546 to register_ssa_partition calls.
2547 * tree-ssa-live.c (register_ssa_partition): Remove prototype.
2548 (init_var_map, delete_var_map): remove refernces to ref_count.
2549 (create_ssa_var_map): Never calculate a ref count.
2550 (type_var_init): Remove.
2551 * tree-ssa-live.h (typedef struct _var_map): Remove ref_count.
2552 (SSA_VAR_MAP_REF_COUNT): Delete.
2553 (create_ssa_var_map): Change Prototype to have no parameters.
2554 (version_ref_count): Delete.
2555 (register_ssa_partition): Remove 'is_use' paramater and don't set the
2556 ref_count vector.
2557 (type_var_num, type_var, type_var_first_partition,
2558 type_var_next_partition, type_var_dump, type_var_delete,
2559 type_var_remove_partition, type_var_find, type_var_compact,
2560 type_var_decompact): Remove.
2561
9a1bbdb5 25622006-12-01 Bernd Schmidt <bernd.schmidt@analog.com>
2563
2564 * config/bfin/bfin.md (pushsi_insn, popsi_insn): Set correct addrtype
2565 attribute.
2566
52570507 25672006-12-01 Richard Guenther <rguenther@suse.de>
2568
2569 PR c++/29433
2570 * dwarf2out.c (struct pubname_struct): Make name const.
2571 (add_pubtype): Do not xstrdup identifiers.
2572
351ae60b 25732006-12-01 Bernd Schmidt <bernd.schmidt@analog.com>
2574
2575 * config/bfin/bfin.c (bfin_valid_add): Fix the logic that ensures
2576 multiword accesses are in range.
2577
b31eb493 25782006-12-01 Zdenek Dvorak <dvorakz@suse.cz>
2579
2580 PR tree-optimization/29921
2581 * tree-ssa-ccp.c (canonicalize_float_value): New function.
2582 (set_lattice_value): Use canonicalize_float_value.
2583
6352eedf 25842006-11-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
2585
2586 * config/spu/spu.c (spu_builtin_range): Move from spu-c.c
2587 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Delete.
2588 (spu_cpu_cpp_builtins): Remove.
2589 (spu_override_options): Don't set warn_main.
2590 (spu_force_reg): Move from spu-c.c.
2591 (spu_check_builtin_parm): Likewise.
2592 (expand_builtin_args): Likewise.
2593 (spu_expand_builtin_1): Likewise.
2594 (spu_expand_builtin): Likewise.
2595 * config/spu/spu.h (REGISTER_TARGET_PRAGMAS): Define, set
2596 warn_main and targetm.resolve_overloaded_builtin.
2597 * config/spu/spu-c.c (spu_builtin_range): Remove.
2598 (spu_check_builtin_parm): Remove.
2599 (expand_builtin_args): Remove.
2600 (spu_expand_builtin_1): Remove.
2601 (spu_expand_builtin): Remove.
2602 (spu_cpu_cpp_builtins): Moved from spu.c
2603 (spu_force_reg): Remove.
2604
695595bc 26052006-12-01 Joseph Myers <joseph@codesourcery.com>
6b75d5f9 2606 David Edelsohn <edelsohn@gnu.org>
695595bc 2607
2608 PR target/24036
2609 * doc/tm.texi (HARD_REGNO_NREGS_HAS_PADDING,
2610 HARD_REGNO_NREGS_WITH_PADDING): Document new target macros.
2611 * defaults.h (HARD_REGNO_NREGS_HAS_PADDING,
2612 HARD_REGNO_NREGS_WITH_PADDING): Define.
2613 * config/i386/i386.h (HARD_REGNO_NREGS_HAS_PADDING,
2614 HARD_REGNO_NREGS_WITH_PADDING): Define.
2615 * rtlanal.c (subreg_regno_offset, subreg_offset_representable_p):
2616 Use new macros to detect modes with holes; do not look at integer
2617 units.
2618 (subreg_offset_representable_p): Check for and disallow cases
2619 where the modes use different numbers of bits from registers.
2620 * config/rs6000/rs6000.c (rs6000_emit_move): Handle TFmode
2621 constant for soft-float.
2622 (rs6000_hard_regno_nregs): Use UNITS_PER_FP_WORD for e500 GPRs
2623 containing doubles.
2624 (rs6000_split_multireg_move): Use DFmode reg_mode for TFmode moves
2625 in E500 double case.
2626 * config/rs6000/rs6000.md (movtf): Allow soft-float.
2627 (movtf_softfloat): New.
2628
068ca2c8 26292006-11-30 Richard Sandiford <richard@codesourcery.com>
2630
2631 * simplify-rtx.c (simplify_rtx): Use simplify_subreg rather than
2632 simplify_gen_subreg.
2633
c3292d42 26342006-11-30 Andrew Macleod <amacleod@redhat.com>
2635
2636 * tree-ssa-live.c (create_coalesce_list): Create a hash table.
2637 (COALESCE_HASH_FN): New. Define hash function.
2638 (partition_pair_map_hash): New. Hash value for a partition pair.
2639 (partition_pair_map_eq): New. Equality for hash pairs.
2640 (create_coalesce_list): Create hash table.
2641 (delete_coalesce_list): Free hash table.
2642 (find_partition_pair): Find/create pairs in hash table.
2643 (compare_pairs): Sort pairs in ascending order now.
2644 (num_coalesce_pairs): New. Number of pairs in hash table.
2645 (struct partition_pair_iterator): Iterator struct for pair table.
2646 (first_partition_pair): Iterator function for first pair.
2647 (end_partition_pair_p): Iterator function for end of iteration.
2648 (next_partition_pair): Iterator function for next pair.
2649 (FOR_EACH_PARTITION_PAIR): Macro for iterating over pairs.
2650 (sort_coalesce_list): Sort pairs from hash table into an array.
2651 (pop_best_coalesce): Take pairs from the array.
2652 (dump_coalesce_list): Update to use hash table or sorted array.
2653 * tree-ssa-live.h (struct partition_pair_d): Remove next field.
2654 (struct coalesce_list_d): Add hash table related fields.
2655
b4fc673b 26562006-11-30 Jan Hubicka <jh@suse.cz>
2657
2658 PR middle-end/30028
2659 * builtins.c (fold_builtin_memory_op): Fix typo in the check for
2660 memmove/bcopy->memcpy conversion.
2661
6d557294 26622006-11-30 Carlos O'Donell <carlos@codesourcery.com>
2663
2664 * doc/tm.texi (MAX_OFILE_ALIGNMENT): Document default.
a47cd786 2665 * config/elfos.h [!MAX_OFILE_ALIGNMENT] (MAX_OFILE_ALIGNMENT):
2666 Default is the largest alignment supported for 32-bit ELF and
6d557294 2667 representable on a 32-bit host.
2668
04a763b7 26692006-11-30 Janis Johnson <janis187@us.ibm.com>
2670
2671 * config/dfp-bit.c (DFP_TO_INT): Use wider precision.
2672
fcbe34ba 26732006-11-30 Jan Hubicka <jh@suse.cz>
2674
2675 * tree-ssa-operands.h (struct ssa_operands): New.
2676 * tree-flow-inline.h (gimple_ssa_operands): New function.
2677 * tree-flow.h: (struct gimple_df): Add ssa_operands.
2678 * Makefile.in: Remove gt-tree-ssa-operands.h
2679 * tree-ssa-operands.c: Do not include gt-tree-ssa-operands.h
2680 (free_defs, free_uses, free_vuses, free_maydefs, free_mustdefs,
2681 operand_memory, operand_memory_index, ops_active): Remove statics.
2682 (ALLOC_OPTYPE): Update.
2683 (operand_build_sort_virtual): Update.
2684 (ssa_operands_active): Update.
2685 (init_ssa_operands): Update.
2686 (fini_ssa_operands): Update.
2687 (ssa_operand_alloc): Update.
2688 (INITIALIZE_USE): Update.
2689 (finalize_ssa_use_ops): Update.
2690 (finalize_ssa_v_may_def_ops): Update.
2691 (finalize_ssa_vuse_ops): Update.
2692 (finalize_ssa_v_must_def_ops): Update.
2693
4957645d 26942006-11-30 Richard Guenther <rguenther@suse.de>
2695
2696 * tree-vectorizer.h (vectorizable_function): Export.
2697 * tree-vect-transform.c (vectorizable_function): Likewise.
6b75d5f9 2698 * tree-vect-patterns.c (vect_recog_pow_pattern): Set
2699 type_in to scalar type in recognition of squaring.
4957645d 2700 Make sure the target can vectorize sqrt in recognition
2701 of sqrt, set type_in to vector type in this case.
2702
8a355d81 27032006-11-30 Uros Bizjak <ubizjak@gmail.com>
2704
2705 * config/i386/i386.md (R10_REG): New constant.
2706 * config/i386/i386.c (pro_epilogue_adjust_stack): Use R11_REG.
2707 (ix86_emit_restore_regs_using_mov): Ditto.
2708 (ix86_expand_call): Ditto.
2709 (x86_output_mi_thunk): Ditto. Also use R10_REG.
2710
67837170 27112006-11-30 Steven Bosscher <steven@gcc.gnu.org>
2712
2713 * cselib.c (cselib_init): Use special MEM rtx form for callmem.
2714 * alias.c (canon_true_dependence): Update comment.
2715
3471582e 27162006-11-30 Steven Bosscher <steven@gcc.gnu.org>
2717
2718 * cgraphunit.c (cgraph_finalize_compilation_unit): Add a newline
2719 at the end of a diagnostics message.
2720
2721 * alloc-pool.c (pool_free): Postpone clearing the pool entry
2722 until after asserting that it was allocated in the right pool.
2723
2724 * cfgrtl.c (print_rtl_with_bb): Print predecessor and
2725 successor edge information as well. Make output of live regs
2726 on exit consistent with live regs on entry.
2727
8d13d95a 27282006-11-30 Uros Bizjak <ubizjak@gmail.com>
2729
2730 PR target/29852
2731 * config/i386/i386.md (*truncxfsf2_mixed, *truncxfdf2_mixed): Enable
2732 insn patterns for TARGET_80387.
2733 (*truncxfsf2_i387, *truncxfdf2_i387): Remove.
2734 (*truncxfsf2_i387_1): Rename to *truncxfsf2_i387.
2735 (*truncxfdf2_i387_1): Rename to *truncxfdf2_i387.
2736 (fmod<mode>3, remainder<mode>3): Enable expaders for SSE math.
2737 Generate truncxf<mode>2 insn patterns for strict SSE math.
2738
a5336510 27392006-11-30 Uros Bizjak <ubizjak@gmail.com>
2740
2741 * config/i386/i386.md (movsf_1): Enable pattern for standard
2742 80387 constants before reload when optimizing for size.
2743 (*movdf_nointeger, *movdf_integer): Ditto.
2744 (*movxf_nointeger, *movxf_integer): Disable patterns for standard
2745 80387 constants before reload when not optimizing for size.
2746
2747 (*fop_xf_4_i387, *fop_xf_5_i387, *fop_xf_6_i387): Avoid float
2748 extension of XFmode input operands.
2749
6af7e307 27502006-11-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
2751
2752 * config/spu/crt0.c (__dso_handle): Define.
2753
764f640f 27542006-11-30 Kaz Kojima <kkojima@gcc.gnu.org>
2755
2756 * emit-rtl.c (verify_rtl_sharing): Handle SEQUENCE specially
2757 when clearing the used flags.
2758
1ead9a2d 27592006-11-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
2760
2761 * config/spu/spu.md (extend_compare): Fix whitespace formatting.
2762
32cd7599 27632006-11-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
2764
2765 PR target/29945
2766 * config/spu/spu.md (extend_compare<mode>): New pattern.
2767 (extend_compare): Change to expand and use the above pattern.
a47cd786 2768
9dfa4821 27692006-11-29 Janis Johnson <janis187@us.ibm.com>
2770
d25c4bbc 2771 * config/dfp-bit.c (DFP_TO_INT): Fix rounding mode.
2772
9dfa4821 2773 * config/dfp-bit.h (CONTEXT_ROUND): Delete.
2774 (DFP_INIT_ROUNDMODE): Define.
2775 * config/dfp-bit.c: Replace CONTEXT_ROUND with DFP_INIT_ROUNDMODE.
2776 * mklibgcc.in: Fix dependencies for dfp-bit.c.
2777
3953ee1c 27782006-11-29 Tehila Meyzels <tehila@il.ibm.com>
2779
2780 * haifa-sched.c: Remove define LINE_NOTE(INSN). Remove line_note_head.
2781 Update documentation.
2782 (associate_line_notes_with_blocks): Kill.
a47cd786 2783 (extend_bb): Remove basic block argument, put void instead.
2784 Remove line number handling for each bb.
3953ee1c 2785 (save_line_notes): Kill.
2786 (restore_line_notes): Kill.
2787 (sched_init): Remove line_note_head initialization.
2788 Change extend_bb call.
2789 (sched_finish): Remove free of line_note_head.
2790 (add_block): Change extend_bb call.
2791 * sched-ebb.c (schedule_ebb): Remove save_line_notes,
2792 rm_line_notes and restore_line_notes calls.
2793 (schedule_ebbs): Remove rm_redundant_line_notes.
2794 * sched-int.h (struct haifa_insn_data): Remove line_note.
2795 (save_line_notes): Remove declaration.
2796 (restore_line_notes): Remove declaration.
a47cd786 2797 * modulo-sched.c (loop_canon_p): Update debug info printing
3953ee1c 2798 by using insn locators instead of line note.
a47cd786 2799 (sms_schedule): Update debug info printing, by using insn
3953ee1c 2800 locators instead of line note.
a47cd786 2801 * sched-rgn.c (debug_dependencies): Remove handling of case
3953ee1c 2802 n>0 (line number), since it's a dead code.
a47cd786 2803 (schedule_region): Remove save_line_notes and
3953ee1c 2804 restore_line_notes calls.
2805
90489f58 28062006-11-29 Joseph Myers <joseph@codesourcery.com>
2807
2808 * config/rs6000/predicates.md (gpc_reg_operand): Check
2809 invalid_e500_subreg.
2810 * config/rs6000/rs6000.c (invalid_e500_subreg): Don't allow any
2811 SImode subregs of SPE vectors.
2812 * config/rs6000/rs6000.md (insv): Fail for invalid E500 subregs.
2813 * jump.c (true_regnum): Require subregs to satisfy
2814 subreg_offset_representable_p.
2815
1938ef46 28162006-11-29 Daniel Berlin <dberlin@dberlin.org>
2817 Steven Bosscher <stevenb.gcc@gmail.com>
2818
2819 * Makefile.in (tree-ssanames.o): Remove gt-tree-ssanames.h,
2820 since it no longer exists.
a47cd786 2821
ab37e731 28222006-11-29 Duncan Sands <baldrick@free.fr>
2823
2824 PR tree-optimization/23744
2825 * tree-vrp.c (vrp_meet): do not require ranges to intersect.
2826
28272006-11-29 Duncan Sands <baldrick@free.fr>
2828
2829 PR tree-optimization/23744
2830 * testsuite/gcc.dg/tree-ssa/pr23744.c: new test.
2831
28322006-11-29 Duncan Sands <baldrick@free.fr>
2833
2834 PR tree-optimization/23744
2835 * testsuite/gcc.dg/tree-ssa/update-threading.c: xfail.
2836
fda0d99d 28372006-11-29 Jie Zhang <jie.zhang@analog.com>
2838
2839 * doc/tm.texi (NO_PROFILE_COUNTERS): Document more accurately.
2840
bc3f5c21 28412006-11-29 J"orn Rennecke <joern.rennecke@st.com>
2842
2843 * sh.opt (minline-ic_invalidate): New option.
2844 (musermode): Adjust comment.
2845 * sh.c (sh_initialize_trampoline): Emit library call unless
2846 is set; if it is set, don't emit library call if we can use icbi
2847 instead.
2848 * sh.md (ic_invalidate_line, ic_invalidate_line_sh4a): Also use
2849 icbi for TARGET_SH4_300.
2850 * t-sh (LIB1ASMFUNCS_CACHE): Set.
2851 * doc/invoke.texi: Document -minline-ic_invalidate; Update
2852 -musermode documentation.
2853
179848c3 28542006-11-29 Jim Tison <jtison@us.ibm.com>
2855
2856 * gthr-tpf.h (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION,
2857 __gthread_recursive_mutex_init): Define.
2858
206fcb76 28592006-11-29 Joseph Myers <joseph@codesourcery.com>
2860
2861 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): If
2862 STRICT_ALIGNMENT and the type is more aligned than the saved
2863 registers, copy via a temporary.
2864
91543a50 28652006-11-28 Andrew Pinski <pinskia@gmail.com>
2866
2867 PR tree-opt/29984
2868 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Handle MAX_EXPR
2869 and MIN_EXRP.
2870
2ffd77eb 28712006-11-28 Bob Wilson <bob.wilson@acm.org>
2872
2873 * config/xtensa/lib1funcs.asm (__umulsidi3): Restore a12-a15 on exit.
2874
2d04fd8d 28752006-11-28 Jan Hubicka <jh@suse.cz>
2876
2877 Privatize SSA variables into gimple_df.
2878 * tree-flow-inline.h
2879 (gimple_in_ssa_p, gimple_aliases_computed_p, gimple_addressable_vars,
2880 gimple_call_clobbered_vars, gimple_referenced_vars, gimple_global_var,
2881 gimple_nonlocal_all): New accessors.
2882 (first_referenced_var): Update.
2883 (mark_stmt_modified): Update.
2884 (is_call_clobbered): Update.
2885 (mark_call_clobbered): Update.
2886 (clear_call_clobbered): Update.
2887 (mark_non_addressable): Update.
2888 * tree-vrp.c (get_value_range): Update.
2889 * tree-into-ssa.c (in_ssa_p): Kill.
2890 (get_default_def_for): Update.
2891 (rewrite_into_ssa): Update.
2892 * tree-complex.c (init_parameter_lattice_values): Update.
2893 (update_complex_assignment): Update.
2894 (update_parameter_components): Update.
2895 (expand_complex_libcall): Update.
2896 (expand_complex_operations_1): Update.
2897 * tree-tailcall.c (arg_needs_copy_p): Update.
2898 (add_virtual_phis): Update.
2899 (tree_optimize_tail_calls_1): Update.
2900 * tree-ssa-dse.c (memory_ssa_name_same): Update.
2901 * tree-ssa-copyrename.c
2902 (copy_rename_partition_coalesce): Update.
2903 * tree-ssa-math-opts.c (execute_cse_reciprocals): Update.
2904 * tree-ssa-propagate.c (set_rhs): Update.
2905 * tree-ssa-alias.c (aliases_computed_p, call_clobbered_vars,
2906 addressable_vars, global_var):Kill.
2907 (set_initial_properties): Update.
2908 (init_alias_info): Update.
2909 (finalize_ref_all_pointers): Update.
2910 (setup_pointers_and_addressables): Update.
2911 (maybe_create_global_var): Update.
2912 (create_global_var): Update.
2913 (dump_points_to_info): Update.
2914 * function.h (struct gimple_df): Forward declare.
2915 (struct function): Add GIMPLE_DF field.
2916 * gimplify.c (force_gimple_operand): Update.
2917 * tree-dfa.c (referenced_vars, default_defs): KIll.
2918 (make_rename_temp): Update.
2919 (dump_variable): Update.
2920 (referenced_var_lookup): Update.
2921 (referenced_var_check_and_insert): Update.
2922 (default_def): Rename to ...
2923 (gimple_default_def): ... this one; accept cfun argument.
2924 (set_default_def): Update.
2925 * tree-cfgcleanup.c (modified_noreturn_calls): Kill.
2926 (cleanup_control_flow): Update.
2927 * tree-ssa-pre.c (compute_avail): Update
2928 * tree-ssa-live.c (calculate_live_on_entry): Update.
2929 * tree-ssa.c (verify_use): Update.
2930 (verify_call_clobbering): Update.
2931 (verify_call_clobbering): Update.
2932 (init_tree_ssa): Update.
2933 (delete_tree_ssa): Update.
2934 * tree-outof-ssa.c (coalesce_ssa_name): Update.
2935 (rewrite_out_of_ssa): Update.
2936 * tree-flow.h (gimple_df): New structure collecting dataflow variables.
2937 (FREE_SSANAMES, SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS): New
2938 private accessors.
2939 (in_ssa_p, modified_noreturn_calls, referenced_vars, default_defs,
2940 ssa_names, global_var, nonlocal_all, call_clobbered_vars,
2941 addressable_vars, aliases_computed_p): Kill.
2942 (default_def): Rename to...
2943 (gimple_default_def): ... this one.
2944 (defaule_def_fn): Kill.
2945 (num_referenced_vars, ssa_names, num_ssa_names): Update.
2946 * tree-ssa-structalias.c (nonlocal_all): Kill.
2947 (get_constraint_exp_from_ssa_var): Update.
2948 (create_nonlocal_var): Update.
2949 (get_constraint_for): Update.
2950 (update_alias_info): Update.
2951 (find_global_initializers): Update.
2952 (intra_create_variable_infos): Update.
2953 (intra_create_variable_infos):
2954 (find_what_p_points_to): Update.
2955 (init_alias_heapvars): Update.
2956 * tree-cfg.c (remove_bb): Update.
2957 (gimplify_val): Update.
2958 * tree-ssa-reassoc.c (get_rank): Update.
2959 (init_reassoc): Update.
2960 * tree-ssanames.c: Do not include gt-tree-ssanames.h
2961 (ssa_names, free_ssanames): Kill.
2962 (init_ssanames): Update.
2963 (make_ssa_name): Update.
2964 (release_ssa_name): Update.
2965 (release_defs): Update.
2966 (replace_ssa_name_symbol): Update.
2967 * tree-ssa-operands.c (access_can_touch_variable): Update.
2968 (add_virtual_operand): Update.
2969 (add_call_clobber_ops): Update.
2970 (add_call_read_ops): Update.
2971 (get_call_expr_operands): Update.
2972 (get_asm_expr_operands): Update.
2973
5a84fdd6 29742006-11-28 Jan Hubicka <jh@suse.cz>
2975
2976 * builtins.c: Include tree-flow.h.
2977 (fold_builtin_memory_op): Be more aggressive on converting memcpy to
2978 assignment; convert memmove to memcpy for sizes greater than 1 where
2979 alignment of operands prohibit the partial overlap.
2980
5a02d67b 29812006-11-28 Jan Hubicka <jh@suse.cz>
2982
2983 * invoke.texi (large-stack-frame, large-stack-frame-growth): New params.
2984 * cgraph.c (dump_cgraph_node): Dump stack usage.
2985 * cgraph.h (cgraph_local_info): Add estimated_self_stack_size.
2986 (cgraph_global_info): Add estimated_stack_size and stack_frame_offset.
2987 * cgraphunit.c (cgraph_analyze_function): Analyze stack sizes.
2988 * ipa-inline.c (cgraph_clone_inlined_nodes): Propagate stack usage.
2989 (cgraph_check_inline_limits): Limit stack growth.
2990 * cfgexpand.c: Include tree-inline.h.
2991 (account_stack_vars): New function.
2992 (expand_one_var): New param to just account the stack; return estimated
2993 size.
2994 (expand_used_vars_for_block): Update call of expand_one_var.
2995 (account_used_vars_for_block): New function.
2996 (estimated_stack_frame_size): Likewise.
2997 (init_vars_expansion, fini_vars_expansion): Break out from..
2998 (expand_used_vars): ... here.
2999 * tree-inline.h (estimated_stack_frame_size): Declare.
3000 * params.def (PARAM_LARGE_STACK_FRAME, PARAM_STACK_FRAME_GROWTH): New.
3001
31061589 30022006-11-28 Richard Guenther <rguenther@suse.de>
3003
3004 * ggc-page.c (ggc_print_statistics): Use %ul and a cast to
3005 unsigned long for printing OBJECT_SIZE.
3006
025fc294 30072006-11-27 Steven Bosscher <steven@gcc.gnu.org>
3008
3009 * alias.c (init_alias_analysis): Remove simplification loop
3010 after propagating pointers.
3011
8db6e0d0 30122006-11-27 Uros Bizjak <ubizjak@gmail.com>
3013
3014 * config/i386/i386.c (x86_ext_80387_constants): Add m_K8, m_CORE2
3015 and m_GENERIC64.
3016
4b2042e8 30172006-11-27 Bob Wilson <bob.wilson@acm.org>
3018
3019 * config/xtensa/xtensa.h (XCHAL_HAVE_MUL32_HIGH): Provide default.
3020
da1fb07b 30212006-11-27 Roger Sayle <roger@eyesopen.com>
3022 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
a5336510 3023
da1fb07b 3024 * c-common.c (constant_fits_type_p): Delete.
3025 (unsigned_conversion_warning): Delete.
3026 (conversion_warning): Integrate Wconversion warning from
3027 unsigned_conversion_warning.
3028 (convert_and_check): Integrate Woverflow warning from
3029 unsigned_conversion_warning. Reorganize and simplify to avoid
3030 dependence upon the middle-end setting TREE_OVERFLOW on integral
3031 conversions, by using int_fits_type_p directly.
3032
95b190b9 30332006-11-27 Tobias Burnus <burnus@net-b.de>
3034
3035 * doc/invoke.texi: Fixed typo.
3036
240fd4a0 30372006-11-27 Michael Matz <matz@suse.de>
a5336510 3038 Andreas Krebbel <krebbel1@de.ibm.com>
240fd4a0 3039
3040 PR target/29319
3041 * config/s390/predicates.md (larl_operand): Check addend of larl
3042 operand to be in range of -/+2GB.
a47cd786 3043 * config/s390/s390.c (legitimize_pic_address): Likewise.
240fd4a0 3044 Changed type of variable even to HOST_WIDE_INT.
3045
ab608690 30462006-11-27 Jan Hubicka <jh@suse.cz>
3047
3048 * expr.c (emit_block_move_via_libcall): Export.
3049 (clear_storage_via_libcall): Rename to ...
3050 (set_storage_via_libcall): ... this one; handle arbitrary value to set.
3051 (clear_storage): Update to set_storage_via_libcall.
3052 * expr.h (emit_block_move_via_libcall): Declare
3053 * config/i386/i386.h (stringop_alg): New enum.
3054 (MAX_STRINGOP_ALGS): New constant.
3055 (stringop_algs): New struct.
3056 (processor_costs): Add memcpy/memset descriptors.
3057 (TARGET_REP_MOVEL_OPTIMAL): Remove.
3058 * config/i386/i386.md (movsi_insv_1_rex64): New pattern.
3059 (strmovsi, strmovdi, strsetsi, strsetdi): Update; accept all operands
3060 for memset.
3061 * config/i386/i386.opt (minline-stringops-dynamically,
3062 mstringop-strategy): New
3063 parameters.
3064 * config/i386/i386-prostos.h (ix86_expand_movmem): Update prototype.
3065 (ix86_expand-clrmem): Rename to ...
3066 (ix86_expand_setmem): ... this one; update prototype.
3067 * config/i386/i386.c (DUMMY_STRINGOP_ALGS): New constant.
3068 (size_cost, i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
3069 geode_cost, k6_cost, athlon_cost, k8_cost, pentium4_cost,
3070 nocona_cost, core2_cost, generic_cost, generic64_cost,
3071 generic32_cost): Add memcpy/memset descriptors.
3072 (x86_rep_movl_optimal): Remove.
3073 (stringop_alg): New static variable.
3074 (ix86_expand_aligntest): Handle predictions.
3075 (override_options): Add strgop_alg handling.
3076 (predict_jump): New function.
3077 (scale_counter): New function.
3078 (expand_set_or_movmem_via_loop): New function.
3079 (expand_movmem_via_rep_mov): New function.
3080 (expand_setmem_via_rep_stots): New function.
3081 (emit_strmov): New function.
3082 (expand_movmem_epilogue): New function.
3083 (expand_setmem_epilogue_via_loop): New function.
3084 (expand_setmem_epilogue): New function.
3085 (expand_movmem_prologue): New function.
3086 (expand_setmem_prologue): New function.
3087 (decide_alg): New function.
3088 (decide_alignment): New function.
3089 (ix86_exand_movmem): Rewrite.
3090 (promote_duplicated_reg): New function.
3091 (ix86_expand_clrmem): Rename to ...
3092 (ix86_expand_setmem): ... this one. Rewrite.
3093
3094 * invoke.texi (minline-stringops-dynamically): New command line option.
3095 (mstringop-strategy): Likewise.
3096
737251e7 30972006-11-27 Jan Hubicka <jh@suse.cz>
3098
3099 * cfgexpand.c (construct_exit_block): Don't disturb end of last BB.
3100 * rtl.texi (NOTE_INSN_FUNCTION_END): Remove.
3101 * final.c (final_scan_insn): Don't scan NOTE_INSN_FUNCTION_END.
3102 * insn-notes.def (FUNCTION_END): Remove.
3103 * jump.c (delete_related_insns): Don't worry about FUNCTION_END.
3104 (redicect_jump_2): Don't accept -1 parameter to remove FUNCTION_END
3105 note.
3106 * ifcvt.c (dead_or_predictable): Update call of redirect_jump_2.
3107 * function.c (expand_function_end): Don't emit NOTE_INSN_FUNCTION_END
3108 * cfglayout.c (duplicate_insn_chain): Don't worry about
3109 NOTE_FUNCTION_END.
3110
22c2f6bd 31112006-11-27 Richard Guenther <rguenther@suse.de>
a5336510 3112 Zdenek Dvorak <dvorakz@suse.cz>
22c2f6bd 3113
3114 * target.h (struct gcc_target): Add builtin_vectorized_function
3115 target hook.
3116 * target-def.h (TARGET_VECTORIZE): Likewise.
3117 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
3118 Document new target hook.
3119 * targhooks.h (default_builtin_vectorized_function): Declare.
3120 * targhooks.c (default_builtin_vectorized_function): Define.
3121 * tree-vectorizer.h (stmt_vec_info_type): Add call_vec_info_type.
3122 (vectorizable_call): Declare.
3123 * tree-vect-analyze.c (vect_analyze_operations): Call
3124 vectorizable_call.
3125 * tree-vect-transform.c (vectorizable_function): New static function.
3126 (build_vectorized_function_call): Likewise.
3127 (vectorizable_call): New function.
3128 (vect_transform_stmt): Handle vectorizable calls.
3129
1c4709b4 31302006-11-27 Richard Guenther <rguenther@suse.de>
3131
3132 PR middle-end/25620
3133 * builtins.c (expand_builtin_pow): Optimize non integer valued
3134 constant exponents using sqrt or cbrt if possible. Always fall back
3135 to expanding via optabs.
3136
54831b9a 31372006-11-27 Ira Rosen <irar@il.ibm.com>
3138
3139 PR tree-optimization/22372
3140 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Convert
3141 the type of the base address.
3142 (vect_create_data_ref_ptr): Add an argument, type of the data-ref. Use
3143 it in the data-ref pointer creation.
3144 (vect_init_vector): Add an argument, type of the init vector. Use it in
3145 the stmt creation.
3146 (vect_get_vec_def_for_operand): Fix calls to vect_init_vector.
3147 (get_initial_def_for_reduction): Likewise.
3148 (vect_create_epilog_for_reduction): Change type of MODIFY_EXPR to
3149 void_type_node.
3150 (vectorizable_assignment, vect_permute_store_chain): Likewise.
3151 (vectorizable_store): Fix call to vect_create_data_ref_ptr. Use the
3152 correct type in stmt creation.
3153 (vect_setup_realignment): Use the correct type in stmt creation.
3154 (vect_permute_load_chain): Change type of MODIFY_EXPR to
3155 void_type_node.
3156 (vectorizable_load): Fix calls to vect_create_data_ref_ptr. Change type
3157 of MODIFY_EXPR to void_type_node.
3158 (vectorizable_condition): Change type of MODIFY_EXPR to
3159 void_type_node.
3160 (vect_update_ivs_after_vectorizer): Use the correct type in stmt
3161 creation.
3162
f309fd62 31632006-11-27 Uros Bizjak <ubizjak@gmail.com>
3164
3165 Revert:
3166 2006-05-08 Uros Bizjak <uros@kss-loka.si>
3167 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
3168 standard 80387 constants, raise the cost to prevent
3169 compress_float_constant() to generate load from memory.
3170
3171 * config/i386/i386.md: Add new splitter pattern to split
3172 float_extended load of constant from constant pool into
3173 pure constant load.
3174
61fe3555 31752006-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3176
69c937e1 3177 * doc/install.texi: Move GMP/MPFR configure options from Fortran
3178 section to general section. Remove documentation for
3179 --with-mpfr-dir and --with-gmp-dir, add documentation for
3180 --with-mpfr-include, --with-mpfr-lib, --with-gmp-include and
3181 --with-gmp-lib.
3182
61fe3555 3183 * builtins.c (fold_builtin_fmin_fmax): Handle NaN arguments.
3184
a47cd786 31852006-11-26 Razya Ladklesky <razya@il.ibm.com>
14f46a5e 3186
f309fd62 3187 * testsuite/gcc.dg/ipa/ipa-6.c: New.
3188
e81e6331 31892006-11-26 Razya Ladklesky <razya@il.ibm.com>
a47cd786 3190
e81e6331 3191 PR tree-optimization/29122
a47cd786 3192 * tree-inline.c (tree_function_versioning): Update DECL_ASSEMBLER_NAME
3193 for the new version. Assign NULL to DECL_RTL of the new version.
e81e6331 3194
738a6975 31952006-11-25 Uros Bizjak <ubizjak@gmail.com>
3196
3197 * reg-stack.c (get_true_reg): Fix UNSPEC_TRUNC_NOOP handling.
3198
bbe0b6d7 31992006-11-25 Steven Bosscher <steven@gcc.gnu.org>
3200
3201 * cse.c (cse_altered): Remove.
3202 (record_jump_equiv): Make true/false argument a bool instead
3203 of an int.
3204 (cse_insn): Don't set cse_altered. Use delete_insn_and_edges
3205 where appropriate. Emit a new jump before the existing one
3206 instead of after so that delete_insn_and_edges removes the
3207 dead edges properly. Check any_condjump_p before calling
3208 record_jump_equiv.
3209 (cse_basic_block): Check any_condjump_p before calling
3210 record_jump_equiv.
3211 (cse_main): Don't set/check cse_altered. Remove USE_C_ALLOCA.
3212
8706d7a3 32132006-11-25 Brooks Moses <brooks.moses@codesourcery.com>
3214
3215 * c.opt: Remove -ffixed-form, -ffixed-line-length-none, and
3216 -ffixed-line-length-* options.
3217
d605b9b2 32182006-11-25 Uros Bizjak <ubizjak@gmail.com>
3219
738a6975 3220 * config/i386/i386.md (fpremxf4): Rename to fpremxf4_i387.
d605b9b2 3221 (fprem1xf4): Rename to fprem1xf4_i387.
3222
3223 (fmodsf3, fmoddf3): Macroize patterns using X87MODEF12 mode macro.
3224 Rename patterns to fmod<mode>3. Use general_operand operand
3225 constraint for operands 1 and 2. Use SSE_FLOAT_MODE_P to disable
3226 patterns for SSE math.
3227 (remaindersf3, remainderdf3): Ditto.
3228
c5159852 32292006-11-25 Joseph Myers <joseph@codesourcery.com>
3230
3231 * function.c (instantiate_virtual_regs_in_insn): Call force_reg
3232 inside start_sequence / end_sequence pair.
3233
eea7b156 32342006-11-25 Steven Bosscher <steven@gcc.gnu.org>
3235
3236 * jump.c (mark_all_labels): Work in cfglayout mode.
3237 * cfgcleanup.c (cleanup_cfg): Do not call delete_dead_jumptables
3238 when in cfglayout mode, because there are no dead jumptables
3239 visible.
3240 * cfgrtl.c (commit_one_edge_insertion): Don't set bb->aux when
3241 in cfglayout mode.
3242 (commit_edge_insertions): Do not allow insertion of instructions
3243 with control flow insns when in cfglayout mode.
3244
7194de72 32452006-11-25 Zdenek Dvorak <dvorakz@suse.cz>
3246
3247 * tree-vrp.c (execute_vrp): Do not pass loops structure through
3248 arguments.
3249 * loop-unswitch.c (unswitch_loops, unswitch_single_loop,
3250 unswitch_loop): Ditto.
3251 * tree-loop-linear.c (linear_transform_loops): Ditto.
3252 * tree-ssa-loop-im.c (determine_lsm, tree_ssa_lim_initialize,
3253 tree_ssa_lim): Ditto.
3254 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations,
3255 free_numbers_of_iterations_estimates): Ditto.
3256 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops,
3257 tree_unswitch_single_loop, tree_unswitch_loop): Ditto.
3258 * cfgloopmanip.c (fix_bb_placement, fix_bb_placements,
3259 remove_path, add_loop, loopify, unloop, fix_loop_placements,
3260 place_new_loop, duplicate_loop, duplicate_subloops,
3261 update_single_exit_for_duplicated_loops, copy_loops_to,
3262 duplicate_loop_to_header_edge, create_preheaders,
3263 force_single_succ_latches, loop_version, fix_loop_structure):
3264 Ditto.
3265 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge,
3266 tree_unroll_loop): Ditto.
3267 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
3268 * tree-scalar-evolution.c (select_loops_exit_conditions,
3269 scev_initialize, scev_analysis): Ditto.
3270 * tree-scalar-evolution.h (scev_initialize): Ditto.
3271 * cfghooks.c (cfg_hook_duplicate_loop_to_header_edge): Ditto.
3272 * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
3273 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Ditto.
3274 * modulo-sched.c (sms_schedule): Ditto.
3275 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Ditto.
3276 * loop-init.c (loop_optimizer_init, rtl_move_loop_invariants,
3277 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): Ditto.
3278 * ifcvt.c (if_convert): Ditto.
3279 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely,
3280 canonicalize_loop_induction_variables,
3281 canonicalize_induction_variables,
3282 tree_unroll_loops_completely, remove_empty_loops): Ditto.
3283 * tree-ssa-loop.c (tree_ssa_loop_init, tree_ssa_loop_im,
3284 tree_ssa_loop_unswitch, tree_vectorize, tree_linear_transform,
3285 tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
3286 tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts,
3287 tree_ssa_loop_done): Ditto.
3288 * predict.c (predict_loops, tree_estimate_probability, estimate_loops,
3289 estimate_bb_frequencies): Ditto.
3290 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
3291 slpeel_tree_peel_loop_to_edge, vectorize_loops): Ditto.
3292 * loop-unroll.c (unroll_and_peel_loops, peel_loops_completely,
3293 decide_unrolling_and_peeling, peel_loop_completely,
3294 unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
3295 peel_loop_simple, unroll_loop_stupid): Ditto.
3296 * loop-doloop.c (doloop_optimize_loops): Ditto.
3297 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Ditto.
3298 * loop-invariant.c (move_loop_invariants): Ditto.
3299 * tree-ssa-dce.c (tree_ssa_dce_loop): Ditto.
3300 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays,
3301 tree_ssa_prefetch_arrays): Ditto.
3302 * lambda-code.c (gcc_loopnest_to_lambda_loopnest, perfect_nestify):
3303 Ditto.
3304 * tree-vect-transform.c (vect_do_peeling_for_loop_bound,
3305 vect_do_peeling_for_alignment, vect_transform_loop): Ditto.
3306 * cfgloop.c (flow_loops_cfg_dump, flow_loops_dump,
3307 mark_single_exit_loops, cancel_loop, cancel_loop_tree,
3308 verify_loop_structure): Ditto.
3309 * tree-flow.h (vectorize_loops, tree_ssa_lim, tree_ssa_unswitch_loops,
3310 canonicalize_induction_variables, tree_unroll_loops_completely,
3311 tree_ssa_prefetch_arrays, remove_empty_loops, tree_ssa_iv_optimize,
3312 estimate_numbers_of_iterations, free_numbers_of_iterations_estimates,
3313 tree_duplicate_loop_to_header_edge, tree_ssa_loop_version,
3314 tree_unroll_loop, linear_transform_loops): Declaration changed.
3315 * basic-block.h: Remove declaration of struct loops.
3316 * cfghooks.h (struct cfg_hooks): Change type of
3317 cfg_hook_duplicate_loop_to_header_edge.
3318 (cfg_hook_duplicate_loop_to_header_edge): Declaration changed.
3319 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge,
3320 vect_transform_loop): Declaration changed.
3321 * lambda.h (gcc_loopnest_to_lambda_loopnest): Declaration changed.
3322 * cfgloop.h (flow_loops_dump, fix_loop_structure,
3323 mark_irreducible_loops, mark_single_exit_loops, mark_loop_exit_edges,
3324 cancel_loop_tree, create_preheaders, force_single_succ_latches,
3325 verify_loop_structure, duplicate_loop, duplicate_loop_to_header_edge,
3326 loopify, loop_version, remove_path, unswitch_loops,
3327 unroll_and_peel_loops, doloop_optimize_loops, move_loop_invariants):
3328 Declaration changed.
3329
fafa4a36 33302006-11-24 Uros Bizjak <ubizjak@gmail.com>
3331
7194de72 3332 * config/i386/i386.md (UNSPEC_TRUNC_NOOP): New unspec definition.
fafa4a36 3333 (X87MODEF): New mode macro.
3334 (ssemodefsuffix): New mode attribute.
3335 (truncxf<mode>2_i387_noop_unspec): New insn pattern.
3336 (sqrt_extend<mode>xf2_i387): New insn pattern.
3337 (sqrt<mode>2): For non-SSE sqrt, emit sqrt_extend<mode>xf2_i387
3338 insn and truncate result back to original mode using
3339 UNSPEC_TRUNC_NOOP truncation.
3340 (*sqrt<mode>2_sse): Implement using SSEMODEF mode macro and
3341 ssemodefsuffix mode attribute.
3342 (*sqrtsf2_mixed, *sqrtsf2_i387, *sqrtdf2_mixed, *sqrtdf2_i387)
3343 (*sqrtextendsfdf2_i387, *sqrtextendsfxf2_i387)
3344 (*sqrtextenddfxf2_i387): Remove insn patterns.
3345
3346 (fmodsf3, fmoddf3, remaindersf3, remainderdf3): Use noop
3347 truncation patterns.
3348
a47cd786 3349 * reg-stack.c (get_true_reg): Handle UNSPEC_TRUNC_NOOP.
3350
5ceb27aa 33512006-11-24 Jakub Jelinek <jakub@redhat.com>
3352
96faf93e 3353 PR c/29955
3354 * c-tree.h (c_maybe_initialize_eh): New prototype.
3355 * c-decl.c (finish_decl): Move EH initialization...
3356 (c_maybe_initialize_eh): ... here. New function.
3357 * c-parser.c (c_parser_omp_construct): Call c_maybe_initialize_eh
3358 if not #pragma omp atomic.
3359
5ceb27aa 3360 PR c/29736
3361 * c-common.c (handle_vector_size_attribute): Disallow VECTOR_TYPE
3362 or UNION_TYPE inner types.
3363
dcccac3e 33642006-11-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3365
3366 PR tree-opt/29964
3367 * ipa-pure-const.c (check_tree): If the original tree
3368 is volatile return early and say the function is not pure
a47cd786 3369 nor const. Remove the volatile check for writes.
dcccac3e 3370 (analyze_function): Print out the result of the local
3371 analysis pass.
3372
220692e4 33732006-11-24 Joseph Myers <joseph@codesourcery.com>
3374
3375 * config/rs6000/eabispe.h (TARGET_DEFAULT): Include
3376 MASK_STRICT_ALIGN.
3377 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Likewise.
3378 * config/rs6000/rs6000.c (rs6000_override_options): Use
3379 MASK_STRICT_ALIGN for 8540 and 8548. Add MASK_STRICT_ALIGN to
3380 POWERPC_MASKS.
3381
db1f11e3 33822006-11-24 Andreas Krebbel <krebbel1@de.ibm.com>
3383
3384 * config/s390.c (s390_emit_compare_and_swap): New function.
a47cd786 3385 (s390_expand_cs_hqi, s390_expand_atomic): Call
db1f11e3 3386 s390_emit_compare_and_swap.
3387
560c4bcb 33882006-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3389
3390 * pa.c (return_addr_rtx): Change 0xe0400002 to -532676606.
3391
d31d55f0 33922006-11-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3393
3394 PR c/2707
3395 PR c++/26167
3396 * c-common.c (conversion_warning): New.
3397 (convert_and_check): Call conversion_warning unless there is an
3398 overflow warning.
3399 * doc/invoke.texi (-Wconversion): Update description.
3400
44a2bb4a 34012006-11-23 Daniel Berlin <dberlin@dberlin.org>
3402
3403 * tree-ssa-alias.c (tree_pointer_compare): New function.
3404 (compact_name_tags): New function.
3405 (group_aliases): Call compact_name_tags.
3406
0570334c 34072006-11-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3408
3409 * real.h (real_isinteger): Declare.
3410 * real.c (real_isinteger): Define.
3411 * builtins.c (integer_valued_real_p): Use it.
3412
583272a2 34132006-11-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3414
a47cd786 3415 PR c/9072
583272a2 3416 * c.opt (Wtraditional-conversion): New.
3417 (Wconversion): Update description.
3418 * c-typeck.c (convert_arguments): Warnings for prototypes causing
3419 type conversions different from what would happen in the absence
3420 of prototype are now handled by Wtraditional-conversion.
3421 * doc/invoke.texi (Wtraditional-conversion): New.
3422 (Wconversion): Update description.
3423 * doc/trouble.texi (Wconversion): Replace Wconversion by
3424 Wtraditional-conversion.
3425
0732b809 34262006-11-23 Andrew Pinski <pinskia@gmail.com>
3427
3428 * predict.c (tree_estimate_probability): Check to make
3429 sure current_loops is non null before calling flow_loops_dump.
3430
1441be6b 34312006-11-23 Bernd Schmidt <bernd.schmidt@analog.com>
3432
3433 * var-tracking.c (emit_note_insn_var_location): Revert previous patch.
3434
4ec596ee 34352006-11-23 David Ung <davidu@mips.com>
3436
3437 * config/mips/mips.h (ISA_HAS_FP4): Add MIPS32R2 + 64bit fpu
3438 combination.
3439 (ISA_HAS_MXHC1): True if ISA supports mfhc1 and mthc1 opcodes.
3440 (ASM_SPEC): Pass along -mfp32 and -mfp64.
3441 * config/mips/mips.c (mips_split_64bit_move): Use gen_mthc1 to set
3442 high part of FP register when in 64-bit FP register mode. Similarly
3443 use gen_mfhc1 to load high part of FP register.
3444 (override_options): Allow -mgp32 and -mfp64 combination if
3445 ISA_HAS_MXHC1 (currently for O32 only).
3446 (mips_cannot_change_mode_class): If floating-point registers are
3447 bigger than word size. disallow conversion of float register from a
3448 large integer mode to a float mode smaller than the float register
3449 size.
3450 (mips_class_max_nregs): Handle float registers case seperately.
3451 * config/mips/mips.md (define_constants): Add UNSPEC_MFHC1,
3452 UNSPEC_MTHC1.
3453 (movdi_32bit): Use !TARGET_FLOAT64 in condition pattern.
3454 (movdf_hardfloat_32bit): Similarly.
3455 (movdi_gp32_fp64): New DImode pattern for MIPS32R2 which optionally
3456 support a full 64-bit fpu.
3457 (mthc1): New pattern to generate MTHC1 instruction.
3458 (mfhc1): New pattern to generate MFHC1 instruction.
3459 * doc/invoke.texi (MIPS Options): Document the -mgp32 -mfp64
3460 option for the MIPS32R2 and mention its use under O32 ABI.
3461
2e55eac6 34622006-11-23 Bernd Schmidt <bernd.schmidt@analog.com>
3463
3464 * var-tracking.c (emit_note_insn_var_location): Take care not to
3465 cause verify_flow_info failures.
3466
eb68f239 34672006-11-22 Daniel Berlin <dberlin@dberlin.org>
3468
3469 * tree-ssa-structalias.c: Remove edge weights in favor of just
3470 processing them as complex constraints.
3471 (struct constraint_graph): Remove weighted succs and preds. Rename
3472 nonweighted succs and preds.
3473 (constraint_edge): Removed.
3474 (constraint_edge_t): Ditto.
3475 (constraint_edge_pool): Ditto.
3476 (new_constraint_edge): Ditto.
3477 (constraint_edge_equal): Ditto.
3478 (constraint_edge_less): Ditto.
3479 (constraint_edge_vec_find): Ditto.
3480 (erase_self_graph_edge): Ditto.
3481 (add_graph_edge): Removed.
3482 (get_graph_weights): Ditto.
d605b9b2 3483 (allocate_graph_weights): Ditto.
eb68f239 3484 (valid_weighted_graph_edge): Ditto
3485 (bitmap_other_than_zero_bit_set): Ditto.
3486 (int_add_graph_edge): Renamed to add_graph_edge.
3487 (clear_edges_for_node): Remove support for weighted edges.
3488 (merge_graph_nodes): Ditto.
3489 (valid_graph_edge): Ditto.
3490 (build_constraint_graph): Ditto.
3491 (scc_visit): Ditto.
3492 (collapse_nodes): Ditto.
3493 (process_unification_queue): Ditto.
3494 (topo_visit): Ditto.
3495 (do_ds_constraint): Ditto.
3496 (perform_var_subsitution): Ditto.
3497 (solve_graph): Ditto.
3498 (init_alias_vars): Ditto.
3499 (delete_points_to_sets): Ditto.
3500 (do_complex_constraint): Support offsetted copies here.
3501
7d8df04f 35022006-11-23 Ulrich Weigand <uweigand@de.ibm.com>
3503
3504 * config/spu/spu_intrinsics.h (SPU_RdEventStatMask): Rename to
3505 SPU_RdEventMask.
3506 * config/spu/spu_mfcio.h (spu_read_event_mask): Update.
2efea1f7 3507
c720acbb 3508 * config/spu/spu_mfcio.h (struct mfc_list_element): Change width
3509 of size bitfield.
3510
7d8df04f 35112006-11-23 Ben Elliston <bje@au.ibm.com>
3512
2efea1f7 3513 * config/spu/spu-elf.h (LIB_SPEC): Do not link with -lc_p.
3514
90b56f40 35152006-11-23 Zdenek Dvorak <dvorakz@suse.cz>
3516
3517 PR tree-optimization/29921
3518 * fold-const.c (operand_equal_p): Without HONOR_SIGNED_ZEROS, consider
3519 signed and unsigned zero equal.
3520
376fbe04 35212006-11-22 Peter Bergner <bergner@vnet.ibm.com>
3522
3523 * config/rs6000/rs6000.c (get_store_dest): New.
3524 (adjacent_mem_locations): Use get_store_dest() to get
3525 the rtl of the store destination.
3526
fdf1c510 35272006-11-22 Joseph Myers <joseph@codesourcery.com>
3528
3529 * config/rs6000/spe.md (SPE64): New mode macro.
3530 (mov_sidf_e500_subreg0): Change to mov_si<mode>_e500_subreg0. Add
3531 memory load.
3532 (mov_si<mode>_e500_subreg0_2): New.
3533 (mov_sidf_e500_subreg4): Change to mov_si<mode>_e500_subreg4. Add
3534 memory load.
3535 (mov_si<mode>_e500_subreg4_2): New.
3536 * config/rs6000/predicates.md (input_operand): Do not allow
3537 invalid E500 subregs.
3538 (rs6000_nonimmediate_operand): Check for invalid E500 subregs also
3539 if TARGET_SPE.
3540 * config/rs6000/rs6000.c (invalid_e500_subreg): Check for subregs
3541 involving DFmode if TARGET_E500_DOUBLE. Check for subregs
3542 involving vector modes if TARGET_SPE.
3543
b50e8f45 35442006-11-22 Kaz Kojima <kkojima@gcc.gnu.org>
3545
3546 Revert
3547 2006-11-12 Kaz Kojima <kkojima@gcc.gnu.org>
3548 * reorg.c (emit_delay_sequence): Copy the delay slot insn.
3549
9aa0222b 35502006-11-22 Bernd Schmidt <bernd.schmidt@analog.com>
3551
3552 * config/bfin/predicates.md (d_register_operand, mem_p_address_operand,
3553 mem_i_address_operand): New predicates.
3554 * config/bfin/bfin.c (bfin_issue_rate): New function.
3555 (TARGET_SCHED_ISSUE_RATE): New macro.
3556 * config/bfin/bfin.md (addrtype): New attribute.
3557 (slot0, slot1, slot2, store, pregs): New cpu_units.
3558 (core): Now a define_reservation.
3559 (alu): Remove some insn types from this reservation.
3560 (dsp32, load32, loadp, loadi, store32, storep, storei, multi): New
3561 insn reservations.
3562 (dummy reservation): Don't trigger for mcld insns.
3563 (absence_sets): Two new absence sets to enforce slot ordering.
3564 (popsi_insn): Set addrtype.
3565
6b8dbb53 35662006-11-22 Ira Rosen <irar@il.ibm.com>
3567
3568 * doc/c-tree.texi: Document new tree codes.
3569 * doc/md.texi: Document new optabs.
3570 * tree-pretty-print.c (dump_generic_node): Handle print of new tree
3571 codes.
3572 * optabs.c (optab_for_tree_code, init_optabs): Handle new optabs.
3573 * optabs.h (optab_index): Add new.
3574 (vec_extract_even_optab, vec_extract_odd_optab,
3575 vec_interleave_high_optab, vec_interleave_low_optab): New optabs.
3576 * genopinit.c (vec_extract_even_optab, vec_extract_odd_optab,
3577 vec_interleave_high_optab, vec_interleave_low_optab): Initialize
3578 new optabs.
3579 * expr.c (expand_expr_real_1): Add implementation for new tree codes.
3580 * tree-vectorizer.c (new_stmt_vec_info): Initialize new fields.
3581 * tree-vectorizer.h (stmt_vec_info): Add new fields for interleaving
3582 along with macros for their access.
3583 * tree-data-ref.h (first_location_in_loop, data_reference): Update
3584 comment.
3585 * tree-vect-analyze.c (toplev.h): Include.
3586 (vect_determine_vectorization_factor): Fix indentation.
3587 (vect_insert_into_interleaving_chain,
3588 vect_update_interleaving_chain, vect_equal_offsets): New functions.
3589 (vect_analyze_data_ref_dependence): Add argument for interleaving
3590 check. Check for interleaving if it's true.
3591 (vect_check_dependences): New function.
3592 (vect_analyze_data_ref_dependences): Call vect_check_dependences for
3593 every ddr. Call vect_analyze_data_ref_dependence with new argument.
3594 (vect_update_misalignment_for_peel): Update for interleaving.
3595 (vect_verify_datarefs_alignment): Check only first data-ref for
3596 interleaving.
3597 (vect_enhance_data_refs_alignment): Update for interleaving. Check
3598 only first data-ref for interleaving.
3599 (vect_analyze_data_ref_access): Check interleaving, update
3600 interleaving data.
3601 (vect_analyze_data_refs): Call compute_data_dependences_for_loop
3602 with different parameters.
3603 * tree.def (VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR,
3604 VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR): New tree codes.
3605 * tree-inline.c (estimate_num_insns_1): Add cases for new codes.
3606 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
3607 Update step in case of interleaving.
3608 (vect_strided_store_supported, vect_permute_store_chain): New
3609 functions.
3610 (vectorizable_store): Handle strided stores.
3611 (vect_strided_load_supported, vect_permute_load_chain,
3612 vect_transform_strided_load): New functions.
3613 (vectorizable_load): Handle strided loads.
3614 (vect_transform_stmt): Add argument. Handle strided stores. Check
3615 that vectorized stmt exists for patterns.
3616 (vect_gen_niters_for_prolog_loop): Update calculation for
3617 interleaving.
3618 (vect_transform_loop): Remove stmt_vec_info for strided stores after
3619 whole chain vectorization.
3620 * config/rs6000/altivec.md (UNSPEC_EXTEVEN, UNSPEC_EXTODD,
3621 UNSPEC_INTERHI, UNSPEC_INTERLO): New constants.
3622 (vpkuhum_nomode, vpkuwum_nomode, vec_extract_even<mode>,
3623 vec_extract_odd<mode>, altivec_vmrghsf, altivec_vmrglsf,
3624 vec_interleave_high<mode>, vec_interleave_low<mode>): Implement.
3625
5c03e3d6 36262006-11-22 Steven Bosscher <steven@gcc.gnu.org>
3627
3628 * cse.c (enum taken): Remove PATH_AROUND.
3629 (addr_affects_sp_p, invalidate_skipped_set,
3630 invalidate_skipped_block): Remove.
3631 (cse_end_of_basic_block): Remove skip_blocks and related code.
3632 (cse_main): Don't test for flag_cse_skip_blocks.
3633 Update cse_end_of_basic_block call.
3634 (cse_basic_block): Likewise. Remove PATH_AROUND case. Remove
3635 code to lengthen the path if a jump was simplified.
3636
d6a1bbdb 36372006-11-22 Zdenek Dvorak <dvorakz@suse.cz>
3638
3639 PR rtl-optimization/29924
3640 * loop-unroll.c (split_edge_and_insert): Handle the case insns is NULL.
3641 (unroll_loop_runtime_iterations): Assert that the argument passed to
3642 split_edge_and_insert is not NULL.
3643 * loop-doloop.c (add_test): Ditto.
3644
d9e7e1a2 36452006-11-22 Zdenek Dvorak <dvorakz@suse.cz>
3646
3647 * tree-loop-linear.c (linear_transform_loops): Use single_exit accessor
3648 functions.
3649 * tree-ssa-loop-niter.c (loop_only_exit_p): Ditto.
3650 * cfgloopmanip.c (update_single_exits_after_duplication,
3651 update_single_exit_for_duplicated_loop, loop_version): Ditto.
3652 * tree-scalar-evolution.c (get_loop_exit_condition,
3653 get_exit_conditions_rec, loop_closed_phi_def,
3654 number_of_iterations_in_loop, scev_const_prop): Ditto.
3655 * tree-ssa-loop-ivopts.c (single_dom_exit): Ditto.
3656 * modulo-sched.c (generate_prolog_epilog, loop_canon_p, sms_schedule):
3657 Ditto.
3658 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
3659 Ditto.
3660 * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
3661 slpeel_update_phi_nodes_for_guard1, slpeel_update_phi_nodes_for_guard2,
3662 slpeel_make_loop_iterate_ntimes,
3663 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_can_duplicate_loop_p,
3664 slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
3665 Ditto.
3666 * tree-if-conv.c (if_convertible_loop_p): Ditto.
3667 * tree-vect-analyze.c (vect_analyze_operations, vect_stmt_relevant_p,
3668 vect_analyze_loop_form): Ditto.
3669 * lambda-code.c (lambda_loopnest_to_gcc_loopnest, exit_phi_for_loop_p,
3670 can_convert_to_perfect_nest, perfect_nestify): Ditto.
3671 * tree-vect-transform.c (vect_create_epilog_for_reduction,
3672 vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
3673 vect_transform_loop): Ditto.
3674 * cfgloop.c (mark_single_exit_loops, verify_loop_structure): Ditto.
3675 (single_exit, set_single_exit): New functions.
3676 * cfgloop.h (struct loop): Rename single_exit field to single_exit_.
3677 (single_exit, set_single_exit): Declare.
3678 * doc/loop.texi: Undocument single_exit field. Document single_exit
3679 accessor function.
3680
07392428 36812006-11-22 Zdenek Dvorak <dvorakz@suse.cz>
3682
3683 PR tree-optimization/29902
3684 * tree-ssa-loop-manip.c (can_unroll_loop_p): Return false if
3685 any involved ssa name appears in abnormal phi node.
3686
eb472ecb 36872006-11-21 Bob Wilson <bob.wilson@acm.org>
3688
3689 * config/xtensa/xtensa.c (xtensa_char_to_class): Delete.
3690 (xtensa_const_ok_for_letter_p): Delete.
3691 (xtensa_extra_constraint): Delete.
3692 (override_options): Delete xtensa_char_to_class initialization.
3693 * config/xtensa/xtensa.h (REG_CLASS_FROM_LETTER): Delete.
3694 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3695 (EXTRA_CONSTRAINT): Delete.
3696 * config/xtensa/xtensa.md: Include constraints.md.
3697 (call_internal): Combine alternatives.
3698 (call_value_internal): Likewise, and remove invalid constraints.
3699 * config/xtensa/constraints.md: New file.
3700 * config/xtensa/xtensa-protos.h (xtensa_const_ok_for_letter_p): Delete.
3701 (xtensa_extra_constraint): Delete.
3702 * doc/md.texi (Machine Constraints): Refer to constraints.md for
3703 Xtensa constraints.
3704
e02b70bd 37052006-11-21 Janis Johnson <janis187@us.ibm.com>
3706
e66f4b82 3707 * config/dfp-bits.c (DFP_TO_INT): Remove code to saturate result
07392428 3708 of conversion that doesn't fit.
e66f4b82 3709
7ef78c0e 3710 * config/dfp-bit.h (CONTEXT_TRAPS, CONTEXT_ERRORS, DFP_RAISE): Delete.
3711 * config/dfp-bit.c (dfp_unary_op, dfp_binary_op, dfp_compare_op,
3712 DFP_TO_DFP, INT_TO_DFP, BFP_TO_DFP): Remove calls to DFP_RAISE.
3713
e02b70bd 3714 * config/dfp-bit.c (dfp_binary_func): Fix typedef.
3715
37162006-11-21 Douglas Gregor <doug.gregor@gmail.com>
df1683c2 3717
07392428 3718 * c-common.h (enum rid): Add RID_STATIC_ASSERT.
df1683c2 3719
c37bea13 37202006-11-21 Richard Guenther <rguenther@suse.de>
3721
3722 * tree-vectorizer.h (NUM_PATTERNS): Increase.
3723 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3724 vect_recog_pow_pattern.
3725 (vect_recog_pow_pattern): New function.
3726
6295e560 37272006-11-21 Bernd Schmidt <bernd.schmidt@analog.com>
3728
3729 * config/bfin/bfin.opt (mstack-check-l1): New.
3730 * doc/invoke.texi (Blackfin Options): Document it.
3731 * config/bfin/bfin.c (bfin_expand_prologue): Generate code to use
3732 stack bounds in L1 memory if the new option is enabled.
3733 (override_options): Don't allow combinations of -fstack-limit and
3734 -mstack-check-l1.
3735 (add_to_reg): Renamed from add_to_sp. All callers changed. Lose some
3736 dead code.
3737
cd36b2c0 3738 * config/bfin/bfin.c (hard_regno_mode_ok): Only allow first 31
3739 regs for DImode.
3740 (bfin_register_move_cost): Bump costs if trying to move plain
3741 integer values through accumulators.
3742
790c536c 37432006-11-21 Ben Elliston <bje@au.ibm.com>
3744
3745 * config/spu/spu.c (spu_expand_vector_init): Initialise x.
3746
644459d0 37472006-11-20 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
db375b8e 3748 Russell Olsen <Russell_Olsen@playstation.sony.com>
3749 Dmitri Makarov <Dmitri_Makarov@playstation.sony.com>
3750 Yukishige Shibata <shibata@rd.scei.sony.co.jp>
3751 Nobuhisa Fujinami <fnami@rd.scei.sony.co.jp>
3752 Takeaki Fukuoka <fukuoka@rd.scei.sony.co.jp>
3753 Andrew Pinski <Andrew_Pinski@playstation.sony.com>
644459d0 3754
db375b8e 3755 * config.gcc: Add target for SPU.
3756 * config/spu/constraints.md: New file.
3757 * config/spu/crt0.c: New file.
3758 * config/spu/crtend.c: New file.
3759 * config/spu/crti.asm: New file.
3760 * config/spu/crtn.asm: New file.
3761 * config/spu/float_unsdidf.c: New file.
3762 * config/spu/float_unssidf.c: New file.
3763 * config/spu/predicates.md: New file.
3764 * config/spu/spu-builtins.def: New file.
3765 * config/spu/spu-builtins.h: New file.
3766 * config/spu/spu-builtins.md: New file.
3767 * config/spu/spu-c.c: New file.
3768 * config/spu/spu-elf.h: New file.
3769 * config/spu/spu-modes.def: New file.
3770 * config/spu/spu-protos.h: New file.
3771 * config/spu/spu.c: New file.
3772 * config/spu/spu.h: New file.
3773 * config/spu/spu.md: New file.
3774 * config/spu/spu.opt: New file.
3775 * config/spu/spu_internals.h: New file.
3776 * config/spu/spu_intrinsics.h: New file.
3777 * config/spu/spu_mfcio.h: New file.
3778 * config/spu/t-spu-elf: New file.
3779 * config/spu/vec_types.h: New file.
3780 * config/spu/vmx2spu.h: New file.
3781 * doc/contrib.texi: Document SPU contributor.
3782 * doc/extend.texi: Document SPU extensions.
3783 * doc/invoke.texi: Document SPU options.
3784 * doc/md.texi: Document SPU constraints.
644459d0 3785
8543a448 37862006-11-21 Zdenek Dvorak <dvorakz@suse.cz>
3787
3788 * cfgloopmanip.c (add_loop, duplicate_loop): Do not set level
3789 of the loop.
3790 * cfgloop.c (flow_loop_level_compute, flow_loops_level_compute):
3791 Removed.
3792 (flow_loop_dump): Do not dump loop level.
3793 (flow_loops_find): Do not call flow_loops_level_compute.
3794 * cfgloop.h (struct loop): Remove level field.
3795
749ea85f 37962006-11-21 Zdenek Dvorak <dvorakz@suse.cz>
3797
3798 * tree-ssa-loop-im.c (schedule_sm, determine_lsm_ref,
3799 hoist_memory_references, loop_suitable_for_sm, determine_lsm_loop):
3800 Use vector of edges instead of array.
3801 * tree-ssa-loop-niter.c (find_loop_niter, find_loop_niter_by_eval,
3802 estimate_numbers_of_iterations_loop): Ditto.
3803 * predict.c (predict_loops): Ditto.
3804 * loop-unroll.c (analyze_insns_in_loop): Ditto.
3805 * tree-ssa-threadupdate.c: Remove declaration of heap allocation for
3806 edge vectors.
3807 * basic-block.h: Declare heap allocation for edge vectors.
3808 * tree-outof-ssa.c: Ditto.
3809 * cfgloop.c (get_loop_exit_edges): Return vector of edges.
3810 * cfgloop.h (get_loop_exit_edges): Declaration changed.
3811
f6680037 38122006-11-20 Zack Weinberg <zackw@panix.com>
3813
3814 * gengtype.c (process_gc_options): Remove unnecessary forward decl.
3815 Add another out parameter, "skip".
3816 (set_gc_used_type): Adjust calls to process_gc_options. If a field
3817 is tagged "skip", do not mark its type used.
3818
192903eb 38192006-11-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
3820
3821 PR tree-opt/25500
3822 * tree-sra.c (single_scalar_field_in_record_p): New function.
3823 (decide_block_copy): Use it.
3824
c40205b6 38252006-11-20 David Daney <ddaney@avtrex.com>
3826
3827 * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
3828 PC to point to following instruction.
3829
02b0e64d 38302006-11-20 Anatoly Sokolov <aesok@post.ru>
3831
3832 PR target/18553
3833 PR target/29449
3834 * config/avr/avr.h (OBJECT_FORMAT_ELF): Define.
3835
3836 * config/avr/avr.h (DWARF2_DEBUGGING_INFO): Define.
3837
eee267bf 38382006-11-20 J"orn Rennecke <joern.rennecke@st.com>
3839
3840 * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
3841 Add sh/superh.h to tm_file.
3842
e9ed62b6 38432006-11-20 Carlos O'Donell <carlos@codesourcery.com>
3844 Mark Mitchell <mark@codesourcery.com>
3845
a47cd786 3846 * cppdefault.c: Define cpp_PREFIX, cpp_PREFIX_len, and
e9ed62b6 3847 gcc_exec_prefix.
3848 (cpp_relocated): New function.
a47cd786 3849 * cppdefault.h: Declare cpp_PREFIX, cpp_PREFIX_len, gcc_exec_prefix
3850 and cpp_relocated.
e9ed62b6 3851 * Makefile.in (PREPROCESSOR_DEFINES): Add -DPREFIX option.
3852 * c-incpath.c (add_standard_paths): Call cpp_relocated. If relocated,
a47cd786 3853 replace configured prefix with gcc_exec_prefix.
e9ed62b6 3854
cf63c743 38552006-11-20 Bernd Schmidt <bernd.schmidt@analog.com>
3856
3857 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Call
3858 bfin_legitimate_constant_p.
3859 * config/bfin/bfin.md (movsi expander): Check return value of
3860 expand_mvoe.
3861 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Declare.
3862 (expand_move): Adjust prototype.
3863 * config/bfin/bfin.c (expand_move): Now returns bool. Handle
3864 invalid constants specially.
3865 (bfin_cannot_force_const_mem, bfin_legitimate_constant_p): New
3866 functions.
3867 (TARGET_CANNOT_FORCE_CONST_MEM): New macro.
3868
40831b00 3869 * config/bfin/bfin.md (call_symbol, call_value_symbol, sibcall_symbol,
3870 sibcall_value_symbol): Allow these patterns if
3871 TARGET_LEAF_ID_SHARED_LIBRARY.
3872 * config/bfin/bfin.c (bfin_expand_call): Allow them here as well.
3873 (override_options): Turn on id shared library flags if -msep-data,
3874 but disallow the combination of these options on the command line.
3875 * config/bfin/bfin.h (TARGET_LEAF_ID_SHARED_LIBRARY, MASK_SEP_DATA
3876 MASK_LEAF_ID_SHARED_LIBRARY, TARGET_SEP_DATA): New macros.
3877 (DRIVER_SELF_SPECS): -mleaf-id-shared-library implies
3878 -mid-shared-library.
3879 (TARGET_SWITCHES): Add -mleaf-id-shared-library and -msep-data.
3880 * doc/invoke.texi (Blackfin Options): Document new switches.
3881
f9ecc035 3882 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Handle some
3883 edge cases with local functions and TARGET_ID_SHARED_LIBRARY.
3884
aedcc7e0 3885 * tree-ssa-loop-ivopts.c (get_address_cost): Do not artificially
3886 inflate costs for addresses with an out-of-bounds address.
3887
725b196e 38882006-11-19 Andrew Pinski <pinskia@gmail.com>
3889
3890 PR rtl-opt/29879
3891 * fwprop.c (loops): Remove.
3892 (forward_propagate_into): Use current_loops instead of
3893 loops.
3894 (fwprop_init): Call loop_optimizer_init instead of
3895 flow_loops_find.
3896 (fwprop_done): Call loop_optimizer_finalize instead of
3897 flow_loops_free.
3898 (fwprop): Use current_loops instead of loops.
3899
25b4f149 39002006-11-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
3901
3902 PR c++/8586
3903 * c-opts.c (c_common_handle_option): Enable -Wwrite-strings if -Wall.
3904
58cac6ba 39052006-11-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3906
3907 PR target/29114
3908 * pa.c (emit_move_sequence): Don't split constants with PLUS for modes
3909 larger than BITS_PER_WORD.
3910
63f8dfe5 39112006-11-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3912
3913 PR fortran/27885
3914 PR middle-end/28176
3915 * stor-layout.c (set_sizetype): Limit precision of *bitsizetypes types
3916 to MAX_FIXED_MODE_SIZE.
3917
b145cb59 39182006-11-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3919
d4a43a03 3920 * builtins.c (integer_valued_real_p): Handle fmin/fmax.
3921 (fold_builtin_fmin_fmax): New.
3922 (fold_builtin_1): Use it.
3923
b145cb59 3924 * fold-const.c (fold_strip_sign_ops): Handle copysign.
3925
320f4404 39262006-11-18 Richard Guenther <rguenther@suse.de>
3927
3928 * config/i386/i386.c (ix86_builtins): New array for ix86
3929 builtin function decls.
3930 (def_builtin): New function.
3931 (def_builtin_const): Likewise.
3932 (ix86_init_mmx_sse_builtins): Mark sqrt and cvt builtins const.
3933
11361ecb 39342006-11-18 Vladimir Makarov <vmakarov@redhat.com>
3935
3936 * doc/invoke.texi (core2): Add item.
3937
3938 * config/i386/i386.h (TARGET_CORE2, TARGET_CPU_DEFAULT_core2): New
3939 macros.
3940 (TARGET_CPU_CPP_BUILTINS): Add code for core2.
3941 (TARGET_CPU_DEFAULT_generic): Change value.
3942 (TARGET_CPU_DEFAULT_NAMES): Add core2.
3943 (processor_type): Add new constant PROCESSOR_CORE2.
3944
3945 * config/i386/i386.md (cpu): Add core2.
3946
3947 * config/i386/i386.c (core2_cost): New initialized variable.
3948 (m_CORE2): New macro.
3949 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
3950 x86_deep_branch, x86_partial_reg_stall, x86_use_simode_fiop,
3951 x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
3952 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
3953 x86_partial_reg_dependency, x86_memory_mismatch_stall,
3954 x86_accumulate_outgoing_args, x86_prologue_using_move,
3955 x86_epilogue_using_move, x86_arch_always_fancy_math_387,
3956 x86_sse_partial_reg_dependency, x86_rep_movl_optimal,
3957 x86_use_incdec, x86_four_jump_limit, x86_schedule,
3958 x86_pad_returns): Add m_CORE2.
3959 (override_options): Add entries for Core2.
3960 (ix86_issue_rate): Add case for Core2.
a47cd786 3961
85767aea 39622006-11-18 Aldy Hernandez <aldyh@redhat.com>
3963
3964 * doc/invoke.texi: Fix mno-isel typo.
3965
2439fb7d 39662006-11-18 Joseph Myers <joseph@codesourcery.com>
3967
3968 * config/rs6000/spe.md (movv4hi_internal): Add alternative for
3969 easy vector constant loads.
3970
ac951330 39712006-11-18 Joseph Myers <joseph@codesourcery.com>
3972
3973 * config/rs6000/rs6000.h (TARGET_NO_LWSYNC): Define.
3974 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3975 __NO_LWSYNC__ if TARGET_NO_LWSYNC.
3976 * config/rs6000/sync.md (lwsync): Emit plain sync if
3977 TARGET_NO_LWSYNC.
3978
a7f41594 39792006-11-17 DJ Delorie <dj@redhat.com>
3980
3981 * reload1.c (reloads_unique_chain): New.
3982 (reloads_conflict): Call it.
3983
3c0ca649 39842006-11-17 Bob Wilson <bob.wilson@acm.org>
3985
3986 * config/xtensa/predicates.md (addsubx_operand): New.
3987 * config/xtensa/xtensa.c (xtensa_emit_branch): New.
3988 (xtensa_emit_bit_branch): New.
3989 (xtensa_emit_movcc): New.
3990 * config/xtensa/xtensa.md (any_minmax): New code macro.
3991 (minmax): New code attribute.
3992 (any_cond, any_scc, any_scc_sf): New code macros.
3993 (*addx2, *addx4, *addx8): Delete.
3994 (*addx): New.
3995 (*subx2, *subx4, *subx8): Delete.
3996 (*subx): New.
3997 (sminsi3, uminsi3, smaxsi3, umaxsi3): Use any_minmax macro.
3998 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Use any_cond.
3999 (*btrue, *bfalse, *ubtrue, *ubfalse): Use xtensa_emit_branch.
4000 (*bittrue, *bitfalse): Use xtensa_emit_bit_branch.
4001 (seq, sne, sgt, sge, slt, sle): Use any_scc macro.
4002 (movsicc_internal0, movsicc_internal1): Use xtensa_emit_movcc.
4003 (movsfcc_internal0, movsfcc_internal1): Likewise.
4004 (seq_sf, slt_sf, sle_sf): Use any_scc_sf macro.
4005 * config/xtensa/xtensa-protos.h: (xtensa_emit_branch): New.
4006 (xtensa_emit_bit_branch): New.
4007 (xtensa_emit_movcc): New.
4008 (function_arg_boundary): Add missing prototype.
4009
3eabfe6f 40102006-11-17 Bob Wilson <bob.wilson@acm.org>
4011
4012 * config/xtensa/xtensa.md (tstsi): Delete
4013
7fe1a201 40142006-11-17 Bob Wilson <bob.wilson@acm.org>
4015
4016 * config/xtensa/xtensa.md (entry): Do not emit .frame directive.
4017
c028f70d 40182006-11-17 Bob Wilson <bob.wilson@acm.org>
4019
4020 * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4021
2fc9d9ad 40222006-11-17 Bob Wilson <bob.wilson@acm.org>
4023
4024 * config/xtensa/lib1funcs.asm (__umulsidi3): Restore a0 on exit.
4025
88e6f696 40262006-11-17 Zdenek Dvorak <dvorakz@suse.cz>
4027
4028 * tree-vrp.c (execute_vrp): Do not update current_loops.
4029 * loop-unswitch.c (unswitch_loop): Do not use loop_split_edge_with.
4030 * doc/loop.texi: Remove documentation for cancelled functions.
4031 * tree-ssa-loop-im.c (loop_commit_inserts): Removed.
4032 (move_computations, determine_lsm): Use bsi_commit_edge_inserts
4033 instead.
4034 * cfgloopmanip.c (remove_bbs): Do not update loops explicitly.
4035 (remove_path): Ensure that in delete_basic_blocks, the loops
4036 are still allocated.
4037 (add_loop): Work on valid loop structures.
4038 (loopify): Modify call of add_loop.
4039 (mfb_update_loops): Removed.
4040 (create_preheader): Do not update loops explicitly.
4041 (force_single_succ_latches, loop_version): Do not use
4042 loop_split_edge_with.
4043 (loop_split_edge_with): Removed.
4044 * tree-ssa-loop-manip.c (create_iv, determine_exit_conditions):
4045 Do not use bsi_insert_on_edge_immediate_loop.
4046 (split_loop_exit_edge, tree_unroll_loop): Do not use
4047 loop_split_edge_with.
4048 (bsi_insert_on_edge_immediate_loop): Removed.
4049 * tree-ssa-loop-ch.c (copy_loop_headers): Use current_loops. Do not
4050 use loop_split_edge_with.
4051 * cfghooks.c: Include cfgloop.h.
4052 (verify_flow_info): Verify that loop_father is filled iff current_loops
4053 are available.
4054 (redirect_edge_and_branch_force, split_block, delete_basic_block,
4055 split_edge, merge_blocks, make_forwarder_block, duplicate_block):
4056 Update cfg.
4057 * cfgloopanal.c (mark_irreducible_loops): Work if the function contains
4058 no loops.
4059 * modulo-sched.c (generate_prolog_epilog, canon_loop): Do not use
4060 loop_split_edge_with.
4061 (sms_schedule): Use current_loops.
4062 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Use current_loops.
4063 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Set
4064 current_loops.
4065 (rtl_loop_init, rtl_loop_done): Do not set current_loops.
4066 * tree-ssa-sink.c (execute_sink_code): Use current_loops.
4067 * ifcvt.c (if_convert): Ditto.
4068 * predict.c (predict_loops): Do not clear current_loops.
4069 (tree_estimate_probability): Use current_loops.
4070 (propagate_freq): Receive head of the region to propagate instead of
4071 loop.
4072 (estimate_loops_at_level): Do not use shared to_visit bitmap.
4073 (estimate_loops): New function. Handle case current_loops == NULL.
4074 (estimate_bb_frequencies): Do not allocate tovisit. Use
4075 estimate_loops.
4076 * tree-ssa-loop.c (current_loops): Removed.
4077 (tree_loop_optimizer_init): Do not return loops.
4078 (tree_ssa_loop_init, tree_ssa_loop_done): Do not set current_loops.
4079 * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard1,
4080 slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge):
4081 Do not update loops explicitly.
4082 * function.h (struct function): Add x_current_loops field.
4083 (current_loops): New macro.
4084 * tree-if-conv.c (combine_blocks): Do not update loops explicitly.
4085 * loop-unroll.c (split_edge_and_insert): New function.
4086 (unroll_loop_runtime_iterations, analyze_insns_in_loop): Do not
4087 use loop_split_edge_with.
4088 * loop-doloop.c (add_test, doloop_modify): Ditto.
4089 * tree-ssa-pre.c (init_pre, fini_pre): Do not set current_loops.
4090 * cfglayout.c (copy_bbs): Do not update loops explicitly.
4091 * lambda-code.c (perfect_nestify): Do not use loop_split_edge_with.
4092 * tree-vect-transform.c (vect_transform_loop): Do not update loops
4093 explicitly.
4094 * cfgloop.c (flow_loops_cfg_dump): Do not dump dfs_order and rc_order.
4095 (flow_loops_free): Do not free dfs_order and rc_order.
4096 (flow_loops_find): Do not set dfs_order and rc_order in loops
4097 structure. Do not call loops and flow info verification.
4098 (add_bb_to_loop, remove_bb_from_loops): Check whether the block
4099 already belongs to some loop.
4100 * cfgloop.h (struct loops): Remove struct cfg.
4101 (current_loops, loop_split_edge_with): Declaration removed.
4102 (loop_optimizer_init, loop_optimizer_finalize): Declaration changed.
4103 * tree-flow.h (loop_commit_inserts, bsi_insert_on_edge_immediate_loop):
4104 Declaration removed.
4105 * Makefile.in (cfghooks.o): Add CFGLOOP_H dependency.
4106 * basic-block.h (split_edge_and_insert): Declare.
4107 * tree-cfg.c (remove_bb): Do not update loops explicitly.
4108
aecfc21d 41092006-11-17 Zdenek Dvorak <dvorakz@suse.cz>
4110
4111 PR tree-optimization/29801
4112 * tree-ssa-ccp.c (get_symbol_constant_value): New function.
4113 (get_default_value): Use get_symbol_constant_value.
4114 (set_lattice_value): ICE when the value of the constant is
4115 changed.
4116 (visit_assignment): Ignore VDEFs of read-only variables.
4117
20400b0b 41182006-11-17 Zdenek Dvorak <dvorakz@suse.cz>
4119
4120 * tree-vect-transform.c (vect_create_epilog_for_reduction): Fix
4121 formating.
4122 (vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
4123 vect_gen_niters_for_prolog_loop): Fold the emited expressions.
4124
2520aaad 41252006-11-17 Zdenek Dvorak <dvorakz@suse.cz>
4126
4127 * tree-ssa-alias.c (new_type_alias): Do not use offset of expr to
4128 select subvars of var.
4129
c5237b8b 41302006-11-17 Jakub Jelinek <jakub@redhat.com>
4131
4132 PR middle-end/29584
4133 * tree-ssa-forwprop.c (simplify_switch_expr): Don't
4134 optimize if DEF doesn't have integral type.
4135
650c26dc 41362006-11-16 Mike Stump <mrs@apple.com>
4137
4138 * config/darwin.h (LINK_COMMAND_SPEC): Don't do dwarf stuff on
4139 pre-darwin9 system, unless the user asks for it directly.
4140 (PREFERRED_DEBUGGING_TYPE): Likewise.
4141 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Likewise.
4142 * config.gcc: Add suppport for darwin9.h.
4143 * config/darwin9.h: Add.
4144 * doc/install.texi (Specific): Clarify darwin documentation.
a47cd786 4145
c3c9825d 41462006-11-16 Richard Earnshaw <rearnsha@arm.com>
4147
4148 * arm.h (CONSTANT_ALIGNMENT): Don't over-align strings when
4149 optimizing for size.
4150
76e0f190 41512006-11-16 Mike Stump <mrs@apple.com>
4152
4153 * Makefile.in (targhooks.o): Add $(OPTABS_H).
4154
43959b95 41552006-11-16 Dirk Mueller <dmueller@suse.de>
4156
4157 * tree-vrp.c (get_value_range): Use XCNEW instead
4158 of XNEW and memset.
4159 (insert_range_assertions): Use XCNEWVEC instead
4160 of XNEWVEC and memset.
4161 (vrp_initialize): Same.
4162 (vrp_finalize): Same.
4163 * tree-ssa-ccp.c (ccp_initialize): Same.
4164 * predict.c (tree_bb_level_predictions): Same.
4165 * calls.c (expand_call): Same.
4166 * tree-ssa-copy.c (init_copy_prop): Same.
4167 (fini_copy_prop): Same.
4168 * tree-ssa-alias.c (get_ptr_info): Use GGC_CNEW instead
4169 of GGC_NEW and memset.
4170
feb12e1f 41712006-11-16 Eric Botcazou <ebotcazou@adacore.com>
4172
4173 PR middle-end/26306
4174 * gimplify.c (gimplify_expr): Only force a load for references to
4175 non-BLKmode volatile values.
4176 * doc/implement-c.texi (Qualifiers implementation): Document the
4177 interpretation of what a volatile access is.
4178 * doc/extend.texi (C++ Extensions): Rework same documentation.
4179
e28b9c25 41802006-11-16 Joseph Myers <joseph@codesourcery.com>
4181
4182 * config/rs6000/spe.md (frob_di_df_2): Handle non-offsettable
4183 memory operand.
4184
ba156559 41852006-11-16 Richard Earnshaw <rearnsha@arm.com>
4186
4187 * arm.md (abssi2): Allow Thumb as well. Use an SImode scratch for
4188 Thumb.
4189 (arm_neg_abssi2): Renamed from neg_abssi2.
4190 (thumb_abssi2, thumb_neg_abssi2): New patterns with splitters.
4191
56a575a5 41922006-11-16 Uros Bizjak <ubizjak@gmail.com>
4193
4194 * config/i386/i386.c (ix86_function_sseregparm): Fix comment:
4195 number of arguments passed to local functions in SSE registers is 3.
4196
4197 * doc/invoke.texi (Function Attributes) [sseregparm]: Correct
4198 number of arguments passed in SSE registers to 3.
4199
5d65a39c 42002006-11-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
4201
4202 PR target/29201
4203 * cfgrtl.c (rtl_delete_block): Move the code for getting last insn of
4204 bb to ...
4205 (get_last_bb_insn): ... new global function.
4206 (basic_block.h): Declare it.
4207 * haifa-sched.c (create_recovery_block): Use it.
4208
cada1670 42092006-11-15 H.J. Lu <hongjiu.lu@intel.com>
4210
4211 PR middle-end/29862
4212 * real.c (mpfr_from_real): Call mpfr_set_str before gcc_assert.
4213
df5e9c68 42142006-11-15 Paul Brook <paul@codesourcery.com>
4215
4216 * config/arm/unwind-arm.c (_Unwind_GetDataRelBase,
4217 _Unwind_GetTextRelBase): Move from here ...
4218 * config/arm/pr-support.c (_Unwind_GetDataRelBase,
4219 _Unwind_GetTextRelBase): ... To here.
4220
e90b35db 42212006-11-15 Bernd Schmidt <bernd.schmidt@analog.com>
4222
4223 * tree-ssa-loop-ivopts.c (get_address_cost): Make sure memory
4224 addresses we generate for testing are aligned.
4225
2350f40c 42262006-11-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
4227
4228 PR tree-opt/29788
4229 * fold-const.c (fold_indirect_ref_1): Fold *&CONST_DECL down
4230 to what is the const decl is a place holder for.
4231
e92554cb 42322006-11-15 Uros Bizjak <ubizjak@gmail.com>
4233
4234 * config/i386/i386.opt: New target option -mx87regparm.
4235
56a575a5 4236 * config/i386/i386.h (struct ix86_args): Add x87_nregs, x87_regno
4237 and float_in_x87 variables. mmx_words, sse_words: Remove.
e92554cb 4238 (X87_REGPARM_MAX): Define.
4239
4240 * config/i386/i386.c (override_options): Error out for
4241 -mx87regparm but no 80387 support.
4242 (ix86_attribute_table): Add x87regparm.
4243 (ix86_handle_cconv_attribute): Update comments for x87regparm.
4244 (ix86_comp_type_attributes): Check for mismatched x87regparm types.
4245 (ix86_function_x87regparm): New function.
4246 (ix86_function_arg_regno_p): Add X87_REGPARM_MAX 80387 floating
4247 point registers.
4248 (init_cumulative_args): Initialize x87_nregs and float_in_x87
4249 variables.
4250 (function_arg_advance): Process x87_nregs and x87_regno when
4251 floating point argument is to be passed in 80387 register.
4252 (function_arg): Pass XFmode arguments in 80387 registers for local
4253 functions. Pass SFmode and DFmode arguments to local functions
4254 in 80387 registers when flag_unsafe_math_optimizations is set.
4255
4256 * reg-stack.c (convert_regs_entry): Disable NaN load for
4257 stack registers that are used for argument passing.
4258
4259 * doc/extend.texi: Document x87regparm function attribute.
4260 * doc/invoke.texi: Document -mx87regparm.
4261
e7f482a0 42622006-11-15 Bernd Schmidt <bernd.schmidt@analog.com>
4263
4264 * tree-flow.h (multiplier_allowed_in_address_p): Adjust prototype.
4265 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): New
4266 arg MODE; all callers changed. Use it to determine validity per
4267 machine mode instead of using Pmode for all memory references.
4268 (get_address_cost): Likewise add and use new arg MEM_MODE.
4269
1403633e 42702006-11-15 Rask Ingemann Lambertsen <rask@sygehus.dk>
4271 J"orn Rennecke <joern.rennecke@st.com>
4272
4273 * combine.c (likely_spilled_retval_1): Fix masking operation.
4274 (likely_spilled_retval_p): Use proper pattern for call to
4275 likely_spilled_retval_1.
4276
ee9e7ecf 42772006-11-15 Bernd Schmidt <bernd.schmidt@analog.com>
4278
4279 * tree-ssa-loop-ivopts.c (determine_iv_costs): Fix formatting.
4280
e80283bd 4281 * config/bfin/bfin.c (legitimize_pic_address): Lose dead code
4282 that tests for CONSTANT_POOL_ADDRESS_P.
4283
9d4e9316 42842006-11-15 Jakub Jelinek <jakub@redhat.com>
4285
4286 PR tree-optimization/29581
4287 * lambda-code.c (replace_uses_equiv_to_x_with_y): Add YINIT,
4288 REPLACEMENTS, FIRSTBSI arguments. If initial condition or
4289 type is different between Y and USE, create a temporary
4290 variable, initialize it at the beginning of the body bb
4291 and use it as replacement instead of Y.
4292
9ba2a8d4 42932006-11-15 Paolo Bonzini <bonzini@gnu.org>
4294
4295 PR middle-end/29753
4296 * gimplify.c (fold_indirect_ref_rhs): Use
4297 STRIP_USELESS_TYPE_CONVERSION rather than STRIP_NOPS.
4298
595d88b5 42992006-11-14 Richard Earnshaw <rearnsha@arm.com>
4300
4301 * expmed.c (emit_store_flag_1): New function.
4302 (emit_store_flag): Call it. If we can't find a suitable scc insn,
4303 try a cstore insn.
4304 * expr.c (do_store_flag): If we can't find a scc insn, try cstore.
4305 Use do_compare_rtx_and_jump.
4306 * arm.h (BRANCH_COST): Increase to 2 on Thumb.
4307 * arm.md (cstoresi4): New define_expand.
4308 (cstoresi_eq0_thumb, cstoresi_ne0_thumb): Likewise.
4309 (cstoresi_eq0_thumb_insn, cstore_ne0_thumb_insn): New patterns.
4310 (cstoresi_nltu_thumb, thumb_addsi3_addgeu): New patterns.
4311
af84796a 43122006-11-14 Caroline Tice <ctice@apple.com>
a47cd786 4313
af84796a 4314 * dwarf2out.c (debug_pubtypes_section): New static global variable.
4315 (pubname_entry): Add DEF_VEC_O and DEF_VEC_ALLOC_O statements for
4316 this type.
4317 (pubname_table): Redefine as a vector.
4318 (pubtype_table): New static global variable, defined as a vector.
4319 (pubname_table_allocated): Remove static global variable.
4320 (pubname_table_in_use): Remove static global variable.
4321 (PUBNAME_TABLE_INCREMENT): Remove constant.
a47cd786 4322 (size_of_pubnames): Add parameter to deal with either pubnames or
af84796a 4323 pubtypes, and change code to deal with table being a vector.
4324 (add_pubname): Change to deal with table being a vector.
4325 (add_pubtype): New function.
a47cd786 4326 (output_pubnames): Add parameter to deal with either pubnames or
af84796a 4327 pubtypes, and change code to deal with table being a vector.
4328 (gen_array_type_die): Add call to add_pubtype.
4329 (gen_enumeration_type_die): Add call to add_pubtype.
4330 (gen_struct_or_union_type_die): Add call to add_pubtype.
4331 (gen_subroutine_type_die): Add call to add_pubtype.
4332 (gen_typedef_die): Add call to add_pubtype.
a47cd786 4333 (dwarf2out_init): Add code to initialize pubname_table and
af84796a 4334 pubtype_table vectors; also initialize debug_pubtypes_section.
4335 (prune_unused_types): Change to deal with pubnames being a vector.
a47cd786 4336 (dwarf2out_finish): Change to deal with pubnames being a vector; add
4337 pubnames table to call to output_pubnames; Add code to output pubtypes
af84796a 4338 table if DEBUG_PUBTYPES_SECTION is defined.
a47cd786 4339 * config/darwin.c (darwin_file_start): Add DEBUG_PUBTYPES_SECTION to
af84796a 4340 debugnames.
4341 * config/darwin.h (DEBUG_PUBTYPES_SECTION): Define new global variable.
4342
fb39b3a2 43432006-11-14 Joseph Myers <joseph@codesourcery.com>
4344
4345 * config/arm/arm.h (FUNCTION_ARG_ADVANCE): Only adjust
4346 iwmmxt_nregs if TARGET_IWMMXT_ABI.
4347 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
4348 movv2si_internal): Support moves between core registers.
4349
0713dc29 43502006-11-14 Eric Christopher <echristo@apple.com>
4351
4352 * configure: Regenerate with autoconf 2.59.
4353
2c1575a0 43542006-11-14 Daniel Berlin <dberlin@dberlin.org>
4355
4356 Fix PR tree-optimization/27755
4357
4358 * tree-ssa-pre.c: Update comments.
4359 (bb_bitmap_sets): Add pa_in and deferred member.
4360 (BB_DEFERRED): New macro.
4361 (maximal_set): New variable.
4362 (pre_stats): Add pa_insert member.
4363 (bitmap_set_and): Short circuit orig == dest.
4364 (bitmap_set_subtract_values): New function.
4365 (bitmap_set_contains_expr): Ditto.
4366 (translate_vuses_through_block): Add phiblock argument.
4367 (dependent_clean): New function.
4368 (compute_antic_aux): Update for maximal_set changes.
4369 (compute_partial_antic_aux): New function.
4370 (compute_antic): Handle partial anticipation.
4371 (do_partial_partial_insertion): New function.
4372 (insert_aux): Handle partial anticipation.
4373 (add_to_sets): Add to maximal set.
4374 (compute_avail): Ditto.
4375 (init_pre): Initialize maximal_set.
4376 (execute_pre): Do partial anticipation if -O3+.
4377
a39fe687 43782006-11-14 Paolo Bonzini <bonzini@gnu.org>
4379
4380 PR rtl-optimization/29798
4381
4382 * fwprop.c (use_killed_between): Check that DEF_INSN dominates
4383 TARGET_INSN before any other check.
4384 (fwprop_init): Always calculate dominators.
4385 (fwprop_done): Always free them.
4386
2c26730b 43872006-11-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4388
4389 * fold-const.c (fold_strip_sign_ops): Handle COMPOUND_EXPR and
4390 COND_EXPR.
4391
db049e78 43922006-11-13 DJ Delorie <dj@redhat.com>
4393
4394 * config/m32c/m32c.c (m32c_prepare_shift): Use a separate
4395 temporary for intermediates.
4396
98446e99 43972006-11-13 Kaz Kojima <kkojima@gcc.gnu.org>
4398
4399 * config/sh/sh.c (expand_cbranchdi4): Initialize skip_label.
4400 (sh_optimize_target_register_callee_saved): #if 0 the code
4401 using NOTE_INSN_LOOP_{BEG,END}.
4402
ec672145 44032006-11-13 Roger Sayle <roger@eyesopen.com>
4404
4405 * fold-const.c (optimize_bit_field_compare): Recursively call
4406 fold when simplifying non-constant comparisons between bit-fields.
4407
dfce740a 44082006-11-13 Jakub Jelinek <jakub@redhat.com>
4409
4410 * configure.ac: Add changequote around __LONG_DOUBLE_MATH_OPTIONAL
4411 test.
4412 * configure: Rebuilt.
4413
cd21f4e0 44142006-11-13 Andrew Pinski <andrew_pinski@playstation.sony.com>
4415
4416 * config/rs6000/cell.md: New file.
0713dc29 4417 * config/rs6000/rs6000.c (rs6000_cell_dont_microcode): New
cd21f4e0 4418 variable.
4419 (ppccell_cost): New cost matrix.
4420 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
4421 (rs6000_override_options): Set rs6000_always_hint to false
4422 for cell. Also align functions/lables/loops to 8byte
4423 for the Cell. Use PROCESSOR_CELL.
4424 (rs6000_emit_epilogue): Rename using_mfcr_multiple to
4425 using_mtcr_multiple.
4426 (rs6000_variable_issue): If the insn is a nonpipelined instruction
4427 on the Cell, return 0.
4428 (rs6000_adjust_cost): Add Cell cost adjustments.
4429 (is_microcoded_insn): Return true for Cell microcoded
4430 instructions.
4431 (is_nonpipeline_insn): New function.
4432 (rs6000_issue_rate): Add PROCESSOR_CELL.
4433 (rs6000_use_sched_lookahead): If Cell, then we should look ahead 8
4434 instructions.
4435 (rs6000_use_sched_lookahead_guard): New function.
4436 (rs6000_sched_reorder): Reorder the ready list, if the second
4437 to last ready insn is a nonepipeline insn on the Cell.
4438 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_CELL.
4439 (ASM_CPU_SPEC): Add Cell.
4440 * config/rs6000/rs6000.md (cpu): Add Cell.
4441 (cell_micro): New Attr.
4442 Include cell.md
4443
ad6fbe2d 44442006-11-13 Jakub Jelinek <jakub@redhat.com>
4445
4446 * configure.ac (ld_vers): Parse GNU ld version 2.17.50.0.3-6 20060715
4447 style versions.
4448 * configure: Rebuilt.
4449
bc3b5798 44502006-11-13 Richard Guenther <rguenther@suse.de>
4451
4452 * config/i386/i386.c (ix86_expand_lround): Handle expand_simple_binop
4453 return value.
4454 (ix86_expand_lfloorceil): Likewise.
4455 (ix86_expand_rint): Likewise.
4456 (ix86_expand_floorceildf_32): Likewise.
4457 (ix86_expand_floorceil): Likewise.
4458 (ix86_expand_rounddf_32): Likewise.
4459 (ix86_expand_truncdf_32): Likewise.
4460 (ix86_expand_round): Likewise.
4461
c4328bcc 44622006-11-13 Carlos O'Donell <carlos@codesourcery.com>
4463 Mark Mitchell <mark@codesourcery.com>
4464
4465 * gcc.c: Organize search path variables into $prefix relative,
4466 and well-known native. Add comments.
4467 (add_sysrooted_prefix): Add comment.
4468 (process_command): If !gcc_exec_prefix add $prefix based paths.
4469 If *cross_compile == '0', add native well-known paths.
4470 Assert tooldir_base_prefix is always relative.
4471 (main): If print_search_dirs, and if gcc_exec_prefix is set,
4472 use this value for 'install:' path.
4473 * Makefile.in: Add GCC_EXEC_PREFIX to generated site.exp.
4474
05822dac 44752006-11-13 H.J. Lu <hongjiu.lu@intel.com>
4476
4477 * config/i386/i386.c: Fix a typo in comment.
4478
4671d3de 44792006-11-13 Michael Matz <matz@suse.de>
4480
4481 * genemit.c (gen_expand): Allocate enough memory.
4482
c5c7f3cc 44832006-11-13 Joseph Myers <joseph@codesourcery.com>
4484
4485 * config/arm/bpapi.h (TARGET_BPABI_CPP_BUILTINS): Define
4486 __GXX_TYPEINFO_EQUALITY_INLINE but not
4487 __GXX_MERGED_TYPEINFO_NAMES.
4488 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Define
4489 __GXX_MERGED_TYPEINFO_NAMES.
4490 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
4491 __GXX_TYPEINFO_EQUALITY_INLINE.
4492
c83f795d 44932006-11-13 H.J. Lu <hongjiu.lu@intel.com>
4494 Zdenek Dvorak <dvorakz@suse.cz>
4495
4496 PR tree-optimization/29680
4497 * tree-ssa-operands.c (access_can_touch_variable): Revert fix for
4498 PR 14784.
4499
96d5c2e2 45002006-11-12 Jason Merrill <jason@redhat.com>
4501 Andrew Pinski <pinskia@physics.uc.edu>
4502
4503 PR middle-end/28915
4504 * gimplify.c (gimplify_init_constructor): Don't reduce TREE_CONSTANT
4505 vector ctors.
4506 * tree-cfg.c (verify_expr): Don't look into TREE_CONSTANT
4507 vector ctors.
4508 * expmed.c (make_tree): Handle CONST, SYMBOL_REF.
4509 * tree.c (build_vector): Handle non-_CST elements.
4510
778725bb 45112006-11-12 Kaz Kojima <kkojima@gcc.gnu.org>
4512
4513 * genemit.c (gen_insn): Call gen_exp with a non-null used
4514 when handling multiple insns.
4515 (gen_expand): Likewise.
4516 * reorg.c (emit_delay_sequence): Copy the delay slot insn.
4517 * config/sh/sh.md (ashrsi2_31+1): Copy operands[0].
4518 (movsi_const_16bit+1): Copy operands[1].
4519 (call_pcrel): Copy the call_site pattern.
4520 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
4521
2815dfde 45222006-11-12 Roger Sayle <roger@eyesopen.com>
4523
4524 * fold-const.c (negate_expr_p) <PLUS_EXPR, MINUS_EXPR>: Correct/refine
4525 condition for transformations. Use !HONOR_SIGN_DEPENDENT_ROUNDING
4526 && !HONOR_SIGNED_ZEROS instead of flag_unsafe_math_optimizations.
4527 (fold_negate_expr) <PLUS_EXPR, MINUS_EXPR>: Likewise.
4528
79ef6a30 45292006-11-12 Daniel Berlin <dberlin@dberlin.org>
4530
4531 Fix PR tree-optimization/29587
4532 * tree-ssa-structalias.c (process_constraint): Don't
4533 mark address taken due only to escaped vars constraint.
4534
1d75ed51 45352006-11-12 Michael Matz <matz@suse.de>
4536 Roger Sayle <roger@eyesopen.com>
4537
4538 PR rtl-optimization/29797
4539 * ifcvt.c (noce_try_bitop): Correct calculation of bitnum on
4540 BITS_BIG_ENDIAN targets.
4541
cacdc1af 45422006-11-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4543
4544 * builtins.c (fold_builtin_cosh): New.
4545 (fold_builtin_1): Use it.
4546 * fold-const.c (negate_mathfn_p): Add llround, lround, round,
4547 trunc to the list of "odd" functions. Also add llrint, lrint,
4548 rint and nearbyint when flag_rounding_math is false.
4549
4c64356a 45502006-11-12 Zdenek Dvorak <dvorakz@suse.cz>
4551
4552 * tree-flow.h (name_mappings_registered_p): Declare.
4553 * tree-into-ssa.c (name_mappings_registered_p): New function.
4554 * tree-cfg.c (tree_can_merge_blocks_p): Check
4555 name_mappings_registered_p instead of need_ssa_update_p.
4556
d4ec02d0 45572006-11-12 Zdenek Dvorak <dvorakz@suse.cz>
4558
4559 * tree-ssa-loop.c (tree_vectorize): Return the result of
4560 vectorize_loops.
4561 * tree-vectorizer.c (vectorize_loops): Return TODO_cleanup_cfg
4562 if anything changed.
4563 * tree-vectorizer.h (vectorize_loops): Declaration removed.
4564 * tree-flow.h (vectorize_loops): Declaration changed.
4565
53d4d5cc 45662006-11-12 Zdenek Dvorak <dvorakz@suse.cz>
4567
4568 * tree-ssa-loop-prefetch.c (schedule_prefetches): Cleanup and improve
4569 comments.
4570 (issue_prefetch_ref): Move assignment to write_p out of loop.
4571 (determine_unroll_factor): Do not take PARAM_MAX_UNROLL_TIMES and
4572 SIMULTANEOUS_PREFETCHES into account.
4573 (loop_prefetch_arrays): Do not pass ahead to determine_unroll_factor.
4574 * lambda-code.c (lcm): Renamed to ...
4575 (least_common_multiple): ... and exported.
4576 * tree-flow.h (least_common_multiple): Declare.
4577
faa56cf9 45782006-11-12 Zdenek Dvorak <dvorakz@suse.cz>
4579
4580 * Makefile.in (tree-data-ref.o): Add langhooks.h dependency.
4581 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Follow
4582 ud-chains. Handle AND_EXPR.
4583 (record_estimate): Record whether the estimate is realistic
4584 and whether it is derived from a loop exit.
4585 (record_nonwrapping_iv, idx_infer_loop_bounds, infer_loop_bounds_from_ref,
4586 infer_loop_bounds_from_array, infer_loop_bounds_from_signedness): New
4587 functions.
4588 (compute_estimated_nb_iterations): Take only realistic bounds into
4589 account. Set estimate_state. Use double_ints.
4590 (infer_loop_bounds_from_undefined): Call infer_loop_bounds_from_array
4591 and infer_loop_bounds_from_signedness. Do not consider basic blocks
4592 that do not have to be always executed.
4593 (estimate_numbers_of_iterations_loop): Set estimate_state, and use it
4594 to determine whether to call infer_loop_bounds_from_undefined
4595 and compute_estimated_nb_iterations.
4596 (n_of_executions_at_most): Use double_ints.
4597 (free_numbers_of_iterations_estimates_loop): Set estimate_state.
4598 (substitute_in_loop_info): Do not replace in estimated_nb_iterations.
4599 * double-int.c (double_int_to_tree): Improve comment.
4600 (double_int_fits_to_tree_p): New function.
4601 * double-int.h (double_int_fits_to_tree_p): Declare.
4602 * tree-data-ref.c: Include langhooks.h.
4603 (estimate_niter_from_size_of_data, estimate_iters_using_array): Removed.
4604 (analyze_array_indexes): Do not call estimate_niter_from_size_of_data.
4605 (analyze_array): Do not pass estimate_only argument to
4606 analyze_array_indexes.
4607 (get_number_of_iters_for_loop): Build tree from the stored double_int
4608 value.
4609 (get_references_in_stmt, find_data_references_in_stmt): New functions.
4610 (find_data_references_in_loop): Use find_data_references_in_stmt.
4611 * tree-data-ref.h (struct data_ref_loc_d): New.
4612 (get_references_in_stmt): Declare.
4613 (estimate_iters_using_array): Declaration removed.
4614 * cfgloop.h (struct nb_iter_bound): Change type of bound to
4615 double_int. Improve comments. Add is_exit and realistic
4616 fields.
4617 (struct loop): Changed type of estimated_nb_iterations to double_int.
4618 Added estimate_state field.
4619 (record_estimate): Declaration removed.
4620
07804af5 46212006-11-12 Zdenek Dvorak <dvorakz@suse.cz>
4622
4623 * params.c (set_param_value): Initialize the "set" field.
4624 * params.h (struct param_info): Add "set" field.
4625 (PARAM_SET_P): New macro.
4626 (PREFETCH_LATENCY, SIMULTANEOUS_PREFETCHES, L1_CACHE_SIZE,
4627 L1_CACHE_LINE_SIZE): New macros.
4628 * toplev.c (DEFPARAM): Initialize the "set" field.
4629 * tree-ssa-loop-prefetch.c (PREFETCH_LATENCY,
4630 SIMULTANEOUS_PREFETCHES): Removed.
4631 (PREFETCH_BLOCK): Use L1_CACHE_LINE_SIZE.
4632 (tree_ssa_prefetch_arrays): Dump the values of the parameters.
4633 * config/sparc/sparc.c: Include params.h.
4634 (sparc_override_options): Set SIMULTANEOUS_PREFETCHES and
4635 L1_CACHE_LINE_SIZE parameters.
4636 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
4637 Removed.
4638 * config/i386/i386.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
4639 Removed.
4640 * config/i386/i386.c: Include params.h.
4641 (k8_cost): Change default value for SIMULTANEOUS_PREFETCHES.
4642 (override_options): Set SIMULTANEOUS_PREFETCHES and
4643 L1_CACHE_LINE_SIZE parameters.
4644 * config/sh/sh.h (SIMULTANEOUS_PREFETCHES): Removed.
4645 (OPTIMIZATION_OPTIONS): Set SIMULTANEOUS_PREFETCHES and
4646 L1_CACHE_LINE_SIZE parameters.
4647 * config/ia64/ia64.c (ia64_optimization_options): Set
4648 SIMULTANEOUS_PREFETCHES and L1_CACHE_LINE_SIZE parameters.
4649 * config/ia64/ia64.h (SIMULTANEOUS_PREFETCHES, PREFETCH_BLOCK):
4650 Removed.
4651 * params.def (PARAM_PREFETCH_LATENCY, PARAM_SIMULTANEOUS_PREFETCHES,
4652 PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE): New params.
4653 * doc/invoke.texi: Document new params.
4654
32484276 46552006-11-12 Roger Sayle <roger@eyesopen.com>
4656
4657 PR tree-optimization/13827
4658 * fold-const.c (fold_binary) <EQ_EXPR, NE_EXPR>: Fold (X&C) op (Y&C)
4659 as ((X^Y)&C) op 0.
4660
56743459 46612006-11-12 Zdenek Dvorak <dvorakz@suse.cz>
4662
4663 * cfgloopmanip.c (update_single_exit_for_duplicated_loop,
4664 update_single_exit_for_duplicated_loops): New functions.
4665 (duplicate_loop_to_header_edge): Use
4666 update_single_exit_for_duplicated_loops.
4667 * tree-ssa-loop-manip.c (tree_unroll_loop): Call verification
4668 functions only with ENABLE_CHECKING.
4669
637f9626 46702006-11-12 Andreas Schwab <schwab@suse.de>
4671
4672 * except.c (sjlj_emit_function_enter): Remove unused variable.
4673
2455d3ef 46742006-11-11 Roger Sayle <roger@eyesopen.com>
4675
4676 * fold-const.c (int_binop_types_match_p): New function.
4677 (size_binop): Relax constraint that both arguments must both have
4678 exactly the same sizetype type. Instead use int_binop_types_match_p.
4679 (size_diffop): Likewise.
4680
4681 (make_range): Use build_int_cst instead of fold_convert.
4682 (fold_cond_expr_with_comparison): Use build_int_cst to construct
4683 integer constants of the correct type.
4684 (fold_div_compare): Likewise.
4685 (fold_single_bit_test): Likewise.
4686 (fold_binary): Likewise.
4687 * stor-layout.c (layout_type) <VECTOR_TYPE>: Ensure that TYPE_SIZE
4688 has type bitsizetype and TYPE_SIZE_UNIT has type sizetype.
4689
91605b2e 46902006-11-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
4691
4692 PR rtl-opt/28812
4693 * alias.c (fixed_scalar_and_varying_struct_p): Don't return a
4694 non null value if the struct memory access is in the 0th
4695 aliasing set.
4696
e525e3ec 46972006-11-12 Jie Zhang <jie.zhang@analog.com>
4698
4699 Revert
4700 2006-11-11 Jie Zhang <jie.zhang@analog.com>
4701 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __bfin__
4702 and __BFIN__.
4703
4704 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Use builtin_define_std
4705 instead of builtin_define for bfin and BFIN.
4706
1ba0f40a 47072006-11-11 Jie Zhang <jie.zhang@analog.com>
4708
4709 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __bfin__
4710 and __BFIN__.
4711
5a74f77e 47122006-11-11 Jan Hubicka <jh@suse.cz>
4713
eea7b156 4714 * extend.texi (__builtin_expect): We no longer require second argument
5a74f77e 4715 to be constant.
4716 * gengtype.c (adjust_field_rtx_def): Drop NOTE_INSN_EXPECTED_VALUE.
4717 * builtins.c (expand_builtin_expect): Simplify.
4718 (expand_builtin_expect_jump): Kill.
4719 * final.c (final_scan_insn): Do not skip the removed notes.
4720 * insn-notes.def (LOOP_BEG, LOOP_END, REPEATED_LINE_NUMBER,
4721 EXPECTED_VALUE): Remove.
4722 * dojump.c (do_jump): Do not care about __builtin_expect.
4723 * predict.c (expected_value_to_br_prob): Kill.
4724 * function.c (expand_function_end): Do not expand
4725 NOTE_INSN_REPEATED_LINE_NUMBER.
4726 * print-rtl.c (print_rtx): Do not pretty print the removed notes.
4727 * expect.c (sjlj_emit_function_enter): Emit directly branch probability.
4728 * cfgexpand.c (add_reg_br_prob_note): Export.
4729 * cfgcleanup.c (rest_of_handle_jump2): Do not call
4730 expected_value_to_br_prob.
4731 * cfglayout.c (duplicate_insn_chain): Do not deal with removed notes.
4732 * rtl.h (add_reg_br_prob_note): Declare.
4733
3cfd6525 47342006-11-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4735
4736 * tree-pretty-print.c (dump_generic_node): Print sign of Inf.
4737
3b0b2309 47382006-11-11 Jan Hubicka <jh@suse.cz>
4739
4740 * predict.c (predict_loops): Kill RTL variant.
4741
f2aa2401 47422006-11-11 Jan Hubicka <jh@suse.cz>
4743
4744 * tree-pass.h (pass_purge_lineno_notes): Remove declaration.
4745 * modulo-sched.c (find_line_note): Remove.
4746 (loop_canon_p): Do not worry about line number notes.
4747 (sms_schedule): Likewise.
4748 * cse.c (cse_main): Likewise.
4749 * regmove.c (fixup_match_1): Likewise
4750 * function.c (emit_return_info_block): Likewise.
4751 (expand_function_end): Likewise.
4752 (thread_prologue_an_epilogue_insns): Likewise.
4753 * cfgrtl.c (try_redirect_by_replacing_jump, rtl_tidy_fallthru_edge):
4754 Likewise.
4755 * emit-rtl.c (find_line_note, emit_insn_after_with_line_notes,
4756 emit_note_copy_after): Kill.
4757 (emit_note_copy): Do not worry about line numbers.
4758 * jump.c (purge_line_number_notes): Kill.
4759 (pass_purge_lineno_notes): Kill.
4760 * cfgcleanup.c (rest_of_handle_jump2): Kill purge_line_number_notes
4761 call.
4762 * rtl.h (emit_note_copy_after, emit_insn_after_with_line_notes): Kill.
4763 * passes.c (init_optimization_passes): Don't purge_lineno_notes.
4764 * sched-ebb.c (schedule_ebbs): Don't do rm_redundant_line_notes.
4765 * tree-pass.h (pass_purge_lineno_notes): Kill.
4766 * sched-ebb.c (schedule_ebb): Don't rm_line_notes,
4767 rm_redundant_line_notes.
4768 * sched-rgb.c (schedule_region): Don't rm_line_notes,
4769 rm_redundant_line_notes.
4770 * sched-int.h (rm_line_notes, rm_redundant_line_notes): Kill.
4771 * haifa-sched.c: Update comment about handling notes.
4772 (unlink_line_notes): Kill.
4773 (rm_line_notes): Kill.
4774 (save_line_notes): Simplify.
4775 (rm_redundant_line_notes): Kill.
4776
8a1417cb 47772006-11-11 Richard Guenther <rguenther@suse.de>
4778
4779 * tree.def (FIX_CEIL_EXPR, FIX_FLOOR_EXPR, FIX_ROUND_EXPR):
4780 Remove unused tree codes.
4781 * tree-vrp.c (extract_range_from_unary_expr): Remove handling
4782 of FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
4783 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
4784 * tree.c (stabilize_reference): Likewise.
4785 * fold-const.c (fold_convert_const_int_from_real, operand_equal_p,
4786 fold_unary): Likewise.
4787 * tree-gimple.c (is_gimple_cast): Likewise.
4788 * dwarf2out.c (loc_descriptor_from_tree_1): Likewise.
4789 * expr.c (expand_expr_real_1): Likewise.
4790 * tree-eh.c (tree_could_trap_p): Likewise.
4791 * gimplify.c (gimplify_expr): Likewise.
4792 * tree-inline.c (estimate_num_insns_1): Likewise.
4793 * tree-cfg.c (verify_expr): Likewise.
4794
1da72d7c 47952006-11-11 Zdenek Dvorak <dvorakz@suse.cz>
4796
4797 * tree-ssa-loop.c (pass_loop_prefetch): Change name to aprefetch.
4798 * tree-ssa-loop-prefetch.c (dump_mem_ref): Fix target file.
4799 (tree_ssa_prefetch_arrays): Do not dump for removed loops.
4800
41527000 48012006-11-11 Richard Sandiford <richard@codesourcery.com>
4802
4803 PR middle-end/27528
4804 * stmt.c (expand_asm_operands): Use EXPAND_INITIALIZER if the
4805 constraints accept neither registers or memories.
4806
65722ae2 48072006-11-11 Jie Zhang <jie.zhang@analog.com>
4808
4809 * config/bfin/bfin.h (FUNCTION_PROFILER): Don't use LABELNO.
4810 (NO_PROFILE_COUNTERS): Define as 1.
4811
bdb135dc 48122006-11-10 Roger Sayle <roger@eyesopen.com>
4813
4814 * fold-const.c (operand_equal_p) <INTEGER_CST, REAL_CST, VECTOR_CST>:
4815 Don't check for TREE_CONSTANT_OVERFLOW when comparing constants.
4816
c23c6f48 48172006-11-10 Peter Bergner <bergner@vnet.ibm.com>
4818
4819 * rtl.h (MEM_COPY_ATTRIBUTES): Copy MEM_POINTER.
4820
582d745a 48212006-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4822
e6ab33d8 4823 * builtins.c (fold_builtin_cos): Use fold_strip_sign_ops().
4824 (fold_builtin_hypot): Likewise.
4825 * fold-const.c (fold_strip_sign_ops): Handle "odd" builtins.
4826
582d745a 4827 * fold-const.c (negate_mathfn_p): Add BUILT_IN_ERF.
4828
aae57ecf 48292006-11-10 Roger Sayle <roger@eyesopen.com>
4830
4831 * tree.c (build_int_cst_wide): Add an assertion (gcc_unreachable)
4832 when attempting to build INTEGER_CSTs of non-integral types.
4833 * expmed.c (make_tree): Use the correct type, i.e. the inner
4834 type, when constructing the individual elements of a CONST_VECTOR.
4835
cdf37bc1 48362006-11-10 Jan Hubicka <jh@suse.cz>
4837
4838 * cse.c (cse_process_notes): Copy the propagated value.
4839 * local-alloc.c (update_equiv_regs): Copy the memory RTX to be used
4840 in REG_EQUIV notes.
4841 * gcse.c (try_replace_reg): Copy the replacement.
3b0b2309 4842 * i386.c (emit_i387_cw_initialization): Copy stored_mode.
cdf37bc1 4843 (assign_386_stack_local): Always return copied memory expression
4844 * function.c (instantiate_virtual_regs_in_insn): Copy the operand
4845 duplicates.
4846
b55d87cc 48472006-11-10 Jan Hubicka <jh@suse.cz>
4848
4849 * final.c (final): Walk from first instruction.
4850 * cfglayout.c (insn_locators_initialize): Remove line number notes.
4851
1f428eb0 48522006-11-10 Uros Bizjak <ubizjak@gmail.com>
4853
4854 PR target/29777
4855 * config/i386/sse.md (smulv8hi3_highpart): Change from define_insn
4856 to define_expand.
4857 (umulv8hi3_highpart): Ditto.
4858 (vec_widen_smult_hi_v8hi): New expander.
4859 (vec_widen_smult_lo_v8hi): Ditto.
4860
9917422b 48612006-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4862
3bac4338 4863 PR middle-end/29335
9917422b 4864 * builtins.c (do_mpfr_arg3): New.
4865 (fold_builtin_1): Handle builtins fma, fmin and fmax.
4866
84eba009 48672006-11-09 Eric Christopher <echristo@apple.com>
4868
4869 PR bootstrap/26892
4870 PR bootstrap/27814
4871 PR other/28994
4872 * configure.ac: Match powerpc*-*-darwin* for powerpc darwin checks.
4873 * config.gcc (powerpc64-*-darwin*): New target.
4874 * config.host: Ditto.
4875 * config/rs6000/darwin64.h: New file.
4876 * config/rs6000/x-darwin64: Ditto.
4877 * config/rs6000/host-ppc64-darwin.c: Ditto.
4878
f1ada0df 48792006-11-09 Steve Ellcey <sje@cup.hp.com>
4880
4881 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Use HP-UX millicode
4882 routines for integer division.
4883
dc2942ef 48842006-11-09 Daniel Jacobowitz <dan@codesourcery.com>
4885
4886 * config/arm/t-linux (LIBGCC2_DEBUG_CFLAGS): Delete.
4887
6b651543 48882006-11-09 Serge Belyshev <belyshev@depni.sinp.msu.ru>
4889
4890 PR middle-end/29726
4891 * fold-const.c (fold_binary) <EQ_EXPR>: Fix typo in variable name.
4892
8187c3ba 48932006-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
4894
84eba009 4895 * simplify-rtx.c (avoid_constant_pool_reference): Avoid calling
8187c3ba 4896 simplify_subreg with BLKmode outer mode.
4897
7a8cf5f4 48982006-11-08 Brooks Moses <brooks.moses@codesourcery.com>
4899
4900 * doc/invoke.texi: Minor formatting fixes in option lists.
4901
bfa30570 49022006-11-08 Zdenek Dvorak <dvorakz@suse.cz>
4903
4904 PR tree-optimization/29738
4905 * tree-ssa-ccp.c: Remove UNKNOWN_VAL from comments.
4906 (ccp_lattice_t): Remove UNKNOWN_VAL.
4907 (dump_lattice_value, ccp_lattice_meet, ccp_visit_phi_node):
4908 Do not handle UNKNOWN_VAL.
4909 (get_default_value): Set initial value of virtual operands to
4910 VARYING.
4911 (get_value): Always use get_default_value on uninitialized
4912 operands.
4913 (set_value_varying, surely_varying_stmt_p): New functions.
4914 (set_lattice_value): Do not pass argument to get_value.
4915 Do not handle UNKNOWN_VAL.
4916 (likely_value): Follow the semantics described in the comment.
4917 (ccp_initialize): Use surely_varying_stmt_p. Do not mark
4918 phi nodes DONT_SIMULATE_AGAIN.
4919 (ccp_fold): Do not pass argument to get_value.
4920 (fold_const_aggregate_ref, visit_assignment): Ditto. Do not
4921 handle UNKNOWN_VAL.
4922
e4a7b8dc 49232006-11-08 Andrew Pinski <Andrew_Pinski@playstation.sony.com>
4924
84eba009 4925 * tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: Use
e4a7b8dc 4926 HOST_WIDE_INT_PRINT_DOUBLE_HEX instead of format buffer.
4927
f2532264 49282006-11-08 Roger Sayle <roger@eyesopen.com>
4929
4930 * tree-ssa-propagate.c (set_rhs): Restructure validity tests as a
4931 test for inclusion rather than as a test for exclusion.
4932 * tree-ssa-ccp.c (fold_stmt_r) <COND_EXPR>: Use set_rhs to modify
4933 the condition after calling fold_binary.
4934 * fold-const.c (fold_inf_compare): Remove in_gimple_form check.
4935 (fold_binary) <LT_EXPR, GT_EXPR, LE_EXPR, GE_EXPR>: Likewise.
4936 * builtins.c (fold_builtin_isascii): Likewise.
4937 (fold_builtin_isdigit): Likewise.
4938
41c555b5 49392006-11-08 Carlos O'Donell <carlos@codesourcery.com>
4940
4941 * configure.ac: Do not set PREFIX_INCLUDE_DIR if $prefix is NONE.
4942 * configure: Regenerate.
4943
c6c91d61 49442006-11-08 Dorit Nuzman <dorit@il.ibm.com>
4945
84eba009 4946 * tree-vect-analyze.c (vect_mark_relevant, vect_stmt_relevant_p): Take
c6c91d61 4947 enum argument instead of bool.
4948 (vect_analyze_operations): Call vectorizable_type_promotion.
4949 * tree-vectorizer.h (type_promotion_vec_info_type): New enum
4950 stmt_vec_info_type value.
4951 (supportable_widening_operation, vectorizable_type_promotion): New
4952 function declarations.
4953 * tree-vect-transform.c (vect_gen_widened_results_half): New function.
4954 (vectorizable_type_promotion): New function.
4955 (vect_transform_stmt): Call vectorizable_type_promotion.
4956 * tree-vect-analyze.c (supportable_widening_operation): New function.
84eba009 4957 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
c6c91d61 4958 Add implementation.
4959 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
4960 mode.
84eba009 4961
c6c91d61 4962 * tree.def (VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR):
4963 (VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR): New tree-codes.
84eba009 4964 * tree-inline.c (estimate_num_insns_1): Add cases for above new
c6c91d61 4965 tree-codes.
4966 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
4967 * expr.c (expand_expr_real_1): Likewise.
4968 * optabs.c (optab_for_tree_code): Likewise.
4969 (init_optabs): Initialize new optabs.
4970 * genopinit.c (vec_widen_umult_hi_optab, vec_widen_smult_hi_optab,
4971 vec_widen_smult_hi_optab, vec_widen_smult_lo_optab,
4972 vec_unpacks_hi_optab, vec_unpacks_lo_optab, vec_unpacku_hi_optab,
4973 vec_unpacku_lo_optab): Initialize new optabs.
4974 * optabs.h (OTI_vec_widen_umult_hi, OTI_vec_widen_umult_lo):
4975 (OTI_vec_widen_smult_h, OTI_vec_widen_smult_lo, OTI_vec_unpacks_hi,
84eba009 4976 OTI_vec_unpacks_lo, OTI_vec_unpacku_hi, OTI_vec_unpacku_lo): New
c6c91d61 4977 optab indices.
4978 (vec_widen_umult_hi_optab, vec_widen_umult_lo_optab):
4979 (vec_widen_smult_hi_optab, vec_widen_smult_lo_optab):
4980 (vec_unpacks_hi_optab, vec_unpacku_hi_optab, vec_unpacks_lo_optab):
4981 (vec_unpacku_lo_optab): New optabs.
84eba009 4982 * doc/md.texi (vec_unpacks_hi, vec_unpacks_lo, vec_unpacku_hi):
4983 (vec_unpacku_lo, vec_widen_umult_hi, vec_widen_umult_lo):
c6c91d61 4984 (vec_widen_smult_hi, vec_widen_smult_lo): New.
4985 * doc/c-tree.texi (VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR):
4986 (VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR, VEC_UNPACK_HI_EXPR):
4987 (VEC_UNPACK_LO_EXPR, VEC_PACK_MOD_EXPR, VEC_PACK_SAT_EXPR): New.
84eba009 4988
c6c91d61 4989 * config/rs6000/altivec.md (UNSPEC_VMULWHUB, UNSPEC_VMULWLUB):
4990 (UNSPEC_VMULWHSB, UNSPEC_VMULWLSB, UNSPEC_VMULWHUH, UNSPEC_VMULWLUH):
4991 (UNSPEC_VMULWHSH, UNSPEC_VMULWLSH): New.
4992 (UNSPEC_VPERMSI, UNSPEC_VPERMHI): New.
4993 (vec_vperm_v8hiv4si, vec_vperm_v16qiv8hi): New patterns used to
4994 implement the unsigned unpacking patterns.
4995 (vec_unpacks_hi_v16qi, vec_unpacks_hi_v8hi, vec_unpacks_lo_v16qi):
4996 (vec_unpacks_lo_v8hi): New signed unpacking patterns.
4997 (vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi):
4998 (vec_unpacku_lo_v8hi): New unsigned unpacking patterns.
4999 (vec_widen_umult_hi_v16qi, vec_widen_umult_lo_v16qi):
84eba009 5000 (vec_widen_smult_hi_v16qi, vec_widen_smult_lo_v16qi):
c6c91d61 5001 (vec_widen_umult_hi_v8hi, vec_widen_umult_lo_v8hi):
5002 (vec_widen_smult_hi_v8hi, vec_widen_smult_lo_v8hi): New widening
5003 multiplication patterns.
5004
5005 * target.h (builtin_mul_widen_even, builtin_mul_widen_odd): New.
5006 * target-def.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN):
5007 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
5008 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): New.
5009 (rs6000_builtin_mul_widen_odd): New.
5010 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Defined.
5011 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Defined.
5012 * tree-vectorizer.h (enum vect_relevant): New enum type.
5013 (_stmt_vec_info): Field relevant chaned from bool to enum
5014 vect_relevant.
5015 (STMT_VINFO_RELEVANT_P): Updated.
5016 (STMT_VINFO_RELEVANT): New.
5017 * tree-vectorizer.c (new_stmt_vec_info): Use STMT_VINFO_RELEVANT
5018 instead of STMT_VINFO_RELEVANT_P.
5019 * tree-vect-analyze.c (vect_mark_relevant, vect_stmt_relevant_p):
5020 Replace calls to STMT_VINFO_RELEVANT_P with STMT_VINFO_RELEVANT,
5021 and boolean variable with enum vect_relevant.
5022 (vect_mark_stmts_to_be_vectorized): Likewise + update documentation.
5023 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
5024 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
5025
5026 2006-11-08 Richard Henderson <rth@redhat.com>
5027
5028 * config/i386/sse.md (vec_widen_umult_hi_v8hi,
5029 vec_widen_umult_lo_v8hi): New.
5030 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si,
5031 vec_widen_umult_hi_v4si, vec_widen_umult_lo_v4si): New.
5032
84eba009 5033 * config/i386/i386.c (ix86_expand_sse_unpack): New.
5034 * config/i386/i386-protos.h (ix86_expand_sse_unpack): New.
c6c91d61 5035 * config/i386/sse.md (vec_unpacku_hi_v16qi, vec_unpacks_hi_v16qi,
5036 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi, vec_unpacku_hi_v8hi,
5037 vec_unpacks_hi_v8hi, vec_unpacku_lo_v8hi, vec_unpacks_lo_v8hi,
5038 vec_unpacku_hi_v4si, vec_unpacks_hi_v4si, vec_unpacku_lo_v4si,
5039 vec_unpacks_lo_v4si): New.
5040
5041 2006-11-08 Dorit Nuzman <dorit@il.ibm.com>
5042
5043 * tree-vect-transform.c (vectorizable_type_demotion): New function.
5044 (vect_transform_stmt): Add case for type_demotion_vec_info_type.
5045 (vect_analyze_operations): Call vectorizable_type_demotion.
84eba009 5046 * tree-vectorizer.h (type_demotion_vec_info_type): New enum
c6c91d61 5047 stmt_vec_info_type value.
5048 (vectorizable_type_demotion): New function declaration.
5049 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
5050 mode.
5051
5052 * tree.def (VEC_PACK_MOD_EXPR, VEC_PACK_SAT_EXPR): New tree-codes.
5053 * expr.c (expand_expr_real_1): Add case for VEC_PACK_MOD_EXPR and
5054 VEC_PACK_SAT_EXPR.
5055 * tree-iniline.c (estimate_num_insns_1): Likewise.
5056 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
5057 * optabs.c (optab_for_tree_code): Likewise.
5058
84eba009 5059 * optabs.c (expand_binop): In case of vec_pack_*_optabs the mode
5060 compared against the predicate of the result is not 'mode' (the input
c6c91d61 5061 to the function) but a mode with half the size of 'mode'.
5062 (init_optab): Initialize new optabs.
5063 * optabs.h (OTI_vec_pack_mod, OTI_vec_pack_ssat, OTI_vec_pack_usat):
5064 New optab indices.
5065 (vec_pack_mod_optab, vec_pack_ssat_optab, vec_pack_usat_optab): New
5066 optabs.
5067 * genopinit.c (vec_pack_mod_optab, vec_pack_ssat_optab):
5068 (vec_pack_usat_optab): Initialize new optabs.
5069 * doc/md.texi (vec_pack_mod, vec_pack_ssat, vec_pack_usat): New.
5070 * config/rs6000/altivec.md (vec_pack_mod_v8hi, vec_pack_mod_v4si): New.
5071
5072 2006-11-08 Richard Henderson <rth@redehat.com>
5073
5074 * config/i386/sse.md (vec_pack_mod_v8hi, vec_pack_mod_v4si):
5075 (vec_pack_mod_v2di, vec_interleave_highv16qi, vec_interleave_lowv16qi):
5076 (vec_interleave_highv8hi, vec_interleave_lowv8hi):
5077 (vec_interleave_highv4si, vec_interleave_lowv4si):
5078 (vec_interleave_highv2di, vec_interleave_lowv2di): New.
5079
5080 2006-11-08 Dorit Nuzman <dorit@il.ibm.com>
5081
84eba009 5082 * tree-vect-transform.c (vectorizable_reduction): Support multiple
c6c91d61 5083 datatypes.
5084 (vect_transform_stmt): Removed redundant code.
5085
5086 2006-11-08 Dorit Nuzman <dorit@il.ibm.com>
5087
84eba009 5088 * tree-vect-transform.c (vectorizable_operation): Support multiple
c6c91d61 5089 datatypes.
5090
5091 2006-11-08 Dorit Nuzman <dorit@il.ibm.com>
5092
5093 * tree-vect-transform.c (vect_align_data_ref): Removed.
84eba009 5094 (vect_create_data_ref_ptr): Added additional argument - ptr_incr.
c6c91d61 5095 Updated function documentation. Return the increment stmt in ptr_incr.
5096 (bump_vector_ptr): New function.
5097 (vect_get_vec_def_for_stmt_copy): New function.
5098 (vect_finish_stmt_generation): Create a stmt_info to newly created
5099 vector stmts.
5100 (vect_setup_realignment): Call vect_create_data_ref_ptr with additional
5101 argument.
5102 (vectorizable_reduction, vectorizable_assignment): Not supported yet if
5103 VF is greater than the number of elements that can fit in one vector
5104 word.
5105 (vectorizable_operation, vectorizable_condition): Likewise.
5106 (vectorizable_store, vectorizable_load): Support the case that the VF
5107 is greater than the number of elements that can fit in one vector word.
5108 (vect_transform_loop): Don't fail in case of multiple data-types.
84eba009 5109 * tree-vect-analyze.c (vect_determine_vectorization_factor): Don't fail
c6c91d61 5110 in case of multiple data-types; the smallest type determines the VF.
5111 (vect_analyze_data_ref_dependence): Don't record datarefs as same_align
5112 if they are of different sizes.
5113 (vect_update_misalignment_for_peel): Compare misalignments in terms of
5114 number of elements rather than number of bytes.
5115 (vect_enhance_data_refs_alignment): Fix/Add dump printouts.
5116 (vect_can_advance_ivs_p): Fix a dump printout
5117
5a06917c 51182006-11-07 Eric Christopher <echristo@apple.com>
5119
5120 * libgcc2.c (__bswapdi2): Rename from bswapDI2.
5121 (__bswapsi2): Ditto.
5122 * libgcc2.h: Remove transformation of bswap routines.
5123 * config/i386/i386.md (bswapsi2): New.
5124 (bswapdi2): Ditto.
5125
541e4101 51262006-11-07 Jakub Jelinek <jakub@redhat.com>
5127
5128 * c-common.c (c_common_attributes): Add gnu_inline attribyte.
5129 (handle_gnu_inline_attribute): New function.
5130 * c-decl.c (diagnose_mismatched_decls): Handle gnu_inline attribute.
5131 (merge_decls, start_decl, start_function): Likewise.
5132 * doc/extend.texi: Document gnu_inline attribute.
5133
09969f33 51342006-11-07 Steve Ellcey <sje@cup.hp.com>
5135
5136 PR other/25028
5137 * config/ia64/t-hpux (LIB1ASMFUNCS): Filter out _fixtfdi,
5138 _fixunstfdi, and _floatditf
5139
ab3a6ef8 51402006-11-06 Anatoly Sokolov <aesok@post.ru>
5141
5a06917c 5142 * config/avr/avr-protos.h (mask_one_bit_p, const_int_pow2_p): Remove
ab3a6ef8 5143 prototype.
5144 * config/avr/avr.c (mask_one_bit_p, const_int_pow2_p): Remove.
5145 (output_movhi, ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out,
5146 lshrhi3_out, lshrsi3_out): Remove unnecessary code for handling value
5147 which start in an odd register.
5148
b17207c0 51492006-11-07 Richard Sandiford <richard@codesourcery.com>
5150
5151 * config/mips/mips.h (ISA_HAS_PREFETCHX): Fix typo.
5152
ea18f022 51532006-11-07 Josh Conner <jconner@apple.com>
5154
5155 * doc/invoke.texi (fstrict-aliasing): Move implementation
5156 details...
5157 * doc/tree-ssa.texi (Alias analysis): ...here.
5158
fc78ca67 51592006-11-07 Richard Guenther <rguenther@suse.de>
5160
5161 PR tree-optimization/29610
5162 * tree-cfgcleanup.c (cleanup_control_flow): Honor return value
5163 of tree_purge_dead_eh_edges as it may free dominators.
5164
5165 * g++.dg/other/pr29610.C: New testcase.
5166
c8c043b2 51672006-11-07 David Ung <davidu@mips.com>
5168
5169 * config/mips/mips.c (mips_rtx_cost_optimize_size): New table of
5170 costs when optimizing for size.
5171 (override_options): Use mips_rtx_cost_optimize_size table for cost
5172 calculations.
5173
fb244a46 51742006-11-07 Jie Zhang <jie.zhang@analog.com>
5175
5176 * gcc.c (process_command): Treat -b as normal switch if its argument
5177 has no dash.
5a06917c 5178
832474fe 51792006-11-07 David Ung <davidu@mips.com>
5a06917c 5180
832474fe 5181 * config/mips/mips.h (ISA_HAS_PREFETCHX): Add ISA_MIPS32R2 to the
5182 list.
5183
4a839b30 51842006-11-06 Eric Christopher <echristo@apple.com>
5185
5186 * config.gcc: Add x86_64-darwin host support.
5187 * config.host: Ditto.
5188 * config/i386/darwin64.h: New file.
5189 * config/i386/t-darwin64: Ditto.
5190
3dfef819 51912006-11-06 Janis Johnson <janis187@us.ibm.com>
5192
5193 * gcc/doc/sourcebuild.texi (Test Directives): Add output-exists
5194 and output-exists-not.
5195
9fbc4e9e 51962006-11-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
5197
5198 PR tree-opt/29439
5199 * tree-vrp.c (vrp_int_const_binop): Use the correct tree when
5200 checking for overflow.
5201
55a5bb1e 52022006-11-06 Jan van Dijk <jan@etpmod.phys.tue.nl>
5203
5204 * configure.ac: Fixed typo in case statement: :: changed to ;;
5205
8e8c0c04 52062006-11-06 Bob Wilson <bob.wilson@acm.org>
5207
5208 * longlong.h (__xtensa__): Add definitions for umul_ppmm, __umulsidi3,
5209 count_leading_zeros, and count_trailing_zeros.
5210 * config/xtensa/xtensa.c (TARGET_INIT_BUILTINS): Define.
5211 (TARGET_FOLD_BUILTIN): Define.
5212 (TARGET_EXPAND_BUILTIN): Define.
5213 (xtensa_init_builtins): New.
5214 (xtensa_fold_builtin): New.
5215 (xtensa_expand_builtin): New.
5216 (xtensa_rtx_costs): Add CTZ and CLZ. Adjust costs for MULT.
5217 * config/xtensa/xtensa.h (TARGET_MUL32_HIGH): Define.
5218 (CLZ_DEFINED_VALUE_AT_ZERO): Define.
5219 (CTZ_DEFINED_VALUE_AT_ZERO): Define.
5220 * config/xtensa/xtensa.md (UNSPEC_NSAU): Remove.
5221 (any_extend): New code macro.
5222 (u, su): New code attributes.
5223 (<u>mulsidi3, <u>mulsi3_highpart, clzsi2, ctzsi2): New.
5224 (nsau): Remove; replaced by clzsi2.
5225 (ffssi2): Use clzsi2.
5226 * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add _umulsidi3,
5227 _clzsi2, _ctzsi2, and _ffssi2. Rename _nsau to _clz.
5228 * config/xtensa/lib1funcs.asm (__mulsi3): Support Mul32 option.
5229 (__umulsidi3, __clzsi2, __ctzsi2, __ffssi2): New.
5230 (__nsau_data): Guard with ifdef L_clz instead of L_nsau.
5231
28e7852b 52322006-11-06 Vladimir Prus <vladimir@codesourcery.com>
5233
5234 * config/arm/t-strongarm-pe: (TARGET_LIBGCC2_CFLAGS): Do no
5235 set inhibit_libc.
5236 * config/arm/t-strongarm-elf: Likewise.
5237 * config/arm/t-pe: Likewise.
5238 * config/arm/t-arm-elf: Likewise.
5239 * config/arm/t-xscale-elf: Likewise.
5240 * config/arm/t-arm-coff: Likewise.
5241 * config/arm/t-xscale-coff: Likewise.
5242 * config/arm/t-wince-pe: Likewise.
4a839b30 5243
517e1e47 52442006-11-05 Kaz Kojima <kkojima@gcc.gnu.org>
5245
5246 * config/sh/lib1funcs-4-300.asm: Guard entire file with
f309fd62 5247 #if !__SHMEDIA__ .
517e1e47 5248
71f1bd0c 52492006-11-05 Jakub Jelinek <jakub@redhat.com>
5250
5251 PR middle-end/29695
5252 * fold-const.c (fold_ternary): Fix A < 0 ? <sign bit of A> : 0
5253 simplification.
5254
9463bbd3 52552006-11-04 Uros Bizjak <ubizjak@gmail.com>
5256
5257 PR target/26915
5258 * config/i386/i386.c (standard_80387_constant_p): Treat -0.0 and -1.0
5259 as a valid 80387 constant.
5260 (standard_80387_constant_opcode): Return "#" for -0.0 and -1.0.
5261 * config/i386/i386.md (unnamed splitter): Split the load of
5262 constant -0.0 or -1.0 into the load of 0.0 or 1.0, followed
5263 by negation.
5264
2e9ff3c0 52652006-11-04 Richard Earnshaw <rearnsha@arm.com>
5266
5267 * arm.c (thumb_legitimate_addres_p): Allow any constant offset
5268 from the soft-frame, argument and virtual registers.
5269
a348d038 52702006-11-04 Uros Bizjak <ubizjak@gmail.com>
5271
5272 * config/i386/i386.md (*movxf_nointeger, *movxf_integer): Enable
5273 patterns for standard 80387 constants.
5274
42a3a38b 52752006-11-03 Paolo Bonzini <bonzini@gnu.org>
a348d038 5276 Steven Bosscher <steven@gcc.gnu.org>
5277
5278 * fwprop.c: New file.
5279 * Makefile.in: Add fwprop.o.
5280 * tree-pass.h (pass_rtl_fwprop, pass_rtl_fwprop_with_addr): New.
5281 * passes.c (init_optimization_passes): Schedule forward propagation.
5282 * rtlanal.c (loc_mentioned_in_p): Support NULL value of the second
5283 parameter.
5284 * timevar.def (TV_FWPROP): New.
5285 * common.opt (-fforward-propagate): New.
5286 * opts.c (decode_options): Enable forward propagation at -O2.
5287 * gcse.c (one_cprop_pass): Do not run local cprop unless touching jumps.
5288 * cse.c (fold_rtx_subreg, fold_rtx_mem, fold_rtx_mem_1, find_best_addr,
5289 canon_for_address, table_size): Remove.
5290 (new_basic_block, insert, remove_from_table): Remove references to
5291 table_size.
5292 (fold_rtx): Process SUBREGs and MEMs with equiv_constant, make
5293 simplification loop more straightforward by not calling fold_rtx
5294 recursively.
5295 (equiv_constant): Move here a small part of fold_rtx_subreg,
5296 do not call fold_rtx. Call avoid_constant_pool_reference
5297 to process MEMs.
5298 * recog.h (canonicalize_change_group): New.
5299
5300 * doc/invoke.texi (Optimization Options): Document fwprop.
5301 * doc/passes.texi (RTL passes): Document fwprop.
42a3a38b 5302
b8dcd8a1 53032006-11-03 Geoffrey Keating <geoffk@apple.com>
5304
5305 * c-decl.c (WANT_C99_INLINE_SEMANTICS): New, set to 1.
5306 (merge_decls): Implement WANT_C99_INLINE_SEMANTICS.
5307 (grokdeclarator): Likewise.
5308
15b8fe07 53092006-11-03 Steven Bosscher <steven@gcc.gnu.org>
5310
5311 * tree-dump.c (dump_enable_all): Rename local variable
5312 ir_type to avoid name conflicts.
5313 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Check for IR_GIMPLE
5314 instead of using ir_type().
5315 * profile.c (tree_register_profile_hooks): Likewise.
5316 * value-prof.c (tree_register_value_prof_hooks): Likewise.
5317 * basic-block.h (struct edge_def): Likewise.
5318 * config/arm/arm.c (legitimize_pic_address): Likewise.
5319 * coretypes.h (ir_type): New enum of all intermediate languages
5320 used in GCC.
5321 * cfghooks.c (ir_type): Rename to...
5322 (current_ir_type): ...this. Distinguish between cfgrtl and
5323 cfglayout mode when the current IR is RTL. Return enum ir_type.
5324 * cfghooks.h (ir_type): Replace with current_ir_type prototype.
5325
5fad5123 53262006-11-03 Paul Brook <paul@codesourcery.com>
5327
5fad5123 5328 * config/arm/arm.c (arm_file_start): New function.
5329 (TARGET_ASM_FILE_START): Define.
5330 (arm_default_cpu): New variable.
5331 (arm_override_options): Set arm_default_cpu.
5332
6a84bf76 53332006-11-03 David Ung <davidu@mips.com>
4a839b30 5334
0fa429d4 5335 * config/mips/mips.h (processor_type): Removed PROCESSOR_24K, add
5336 PROCESSOR_24KC and PROCESSOR_24KF.
5337 * config/mips/mips.c (mips_cpu_info_table): Add processor names
5338 and aliases for 4kec/4kem/4kep/24kec/24kef/24kex/34kc/34kf/34kx.
5339 (mips_rtx_cost_data): Add costs for the 24kc.
5340 * config/mips/mips.md ("cpu"): Remove 24k, add 24kc and 24kf.
5341 * config/mips/24k.md: Remove references to 24k and replace with
5342 uses of 24kc/24kf in the appropriate reservations.
4a839b30 5343 * doc/invoke.texi (MIPS Options): Updated.
5344
5be30882 53452006-11-03 J"orn Rennecke <joern.rennecke@st.com>
5346
5347 * config/sh/crt1.asm: Fix #ifdef indent.
5348
53492006-11-03 J"orn Rennecke <joern.rennecke@st.com>
5350 Merged from STMicroelectronics sources:
5351 2006-10-06 Andrew Stubbs <andrew.stubbs@st.com>
5352 * config/sh/crt1.asm (vbr_600): Add missing #if.
5353 2006-08-03 J"orn Rennecke <joern.rennecke@st.com>
5354 * sh.opt (mfused-madd): New option.
5355 * sh.md (mac_media, macsf3): Make conditional on TARGET_FMAC.
5356 2006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
5357 * config/sh/crt1.asm (vbr_start): Move to new section .test.vbr.
5358 Remove pointless handler at VBR+0.
5359 (vbr_200, vbr_300, vbr_500): Remove pointless handler.
5360 (vbr_600): Save and restore mach and macl, fpul and fpscr and fr0 to
5361 fr7. Make sure the timer handler is called with the correct FPU
5362 precision setting, according to the ABI.
5363 2006-06-14 J"orn Rennecke <joern.rennecke@st.com>
5364 * config/sh/sh.opt (m2a-single, m2a-single-only): Fix Condition.
5365 * config/sh/sh.h (SUPPORT_SH2A_NOFPU): Fix condition.
5366 (SUPPORT_SH2A_SINGLE_ONLY, SUPPORT_SH2A_SINGLE_ONLY): Likewise.
5367 2006-06-09 J"orn Rennecke <joern.rennecke@st.com>
5368 * sh.md (cmpgeusi_t): Change into define_insn_and_split. Accept
5369 zero as second operand.
5370 2006-04-28 J"orn Rennecke <joern.rennecke@st.com>
5371 * config/sh/divtab-sh4-300.c, config/sh/lib1funcs-4-300.asm:
5372 Fixed some bugs related to negative values, in particular -0
5373 and overflow at -0x80000000.
5374 * config/sh/divcost-analysis: Added sh4-300 figures.
5375 2006-04-27 J"orn Rennecke <joern.rennecke@st.com>
5376 * config/sh/t-sh (MULTILIB_MATCHES): Add -m4-300* / -m4-340 options.
5377 2006-04-26 J"orn Rennecke <joern.rennecke@st.com>
5378 * config/sh/t-sh (OPT_EXTRA_PARTS): Add libgcc-4-300.a.
5379 ($(T)div_table-4-300.o, $(T)libgcc-4-300.a): New rules.
5380 * config/sh/divtab-sh4-300.c, config/sh/lib1funcs-4-300.asm:
5381 New files.
5382 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-4-300 for -m4-300* /
5383 -m4-340.
5384 2006-04-24 J"orn Rennecke <joern.rennecke@st.com>
5385 SH4-300 scheduling description & fixes to SH4-[12]00 description:
5386 * sh.md: New instruction types: fstore, movi8, fpscr_toggle, gp_mac,
5387 mac_mem, mem_mac, dfp_mul, fp_cmp.
5388 (insn_class, dfp_comp, any_fp_comp): Update.
5389 (push_fpul, movsf_ie, fpu_switch, toggle_sz, toggle_pr): Update type.
5390 (cmpgtsf_t, "cmpeqsf_t, cmpgtsf_t_i4, cmpeqsf_t_i4): Likewise.
5391 (muldf3_i): Likewise.
5392 (movsi_i): Split rI08 alternative into two separate alternatives.
5393 Update type.
5394 (movsi_ie, movsi_i_lowpart): Likewise.
5395 (movqi_i): Split ri alternative into two separate alternatives.
5396 Update type.
5397 * sh1.md (sh1_load_store, sh1_fp): Update.
5398 * sh4.md (sh4_store, sh4_mac_gp, fp_arith, fp_double_arith): Update.
5399 (mac_mem, sh4_fpscr_toggle): New insn_reservations.
5400 * sh4a.md (sh4a_mov, sh4a_load, sh4a_store, sh4a_fp_arith): Update.
5401 (sh4a_fp_double_arith): Likewise.
5402 * sh4-300.md: New file.
5403 * sh.c (sh_handle_option): Handle m4-300* options.
5404 (sh_adjust_cost): Fix latency of auto-increments.
5405 Handle SH4-300 differently than other SH4s. Check for new insn types.
5406 * sh.h (OVERRIDE_OPTIONS): Initilize sh_branch_cost if it has not
5407 been set by an option.
5408 * sh.opt (m4-300, m4-100-nofpu, m4-200-nofpu): New options.
5409 (m4-300-nofpu, -m4-340, m4-300-single, m4-300-single-only): Likewise.
5410 (mbranch-cost=): Likewise.
5411 * superh.h (STARTFILE_SPEC): Take -m4-340 into account.
5412
5413 * sh.md (mulsf3): Remove special expansion code.
5414 (mulsf3_ie): Now a define_insn_and_split.
5415 (macsf3): Allow for TARGET_SH4.
5416
5417 * sh.md (cbranchsi4, cbranchdi4, cbranchdi4_i): New patterns.
5418 * sh.c (prepare_cbranch_operands, expand_cbranchsi4): New functions.
5419 (expand_cbranchdi4): Likewise.
5420 (sh_rtx_costs): Give lower cost for certain CONST_INT values and for
5421 CONST_DOUBLE if the outer code is COMPARE.
5422 * sh.h (OPTIMIZATION_OPTIONS): If not optimizing for size, set
5423 TARGET_CBRANCHDI4 and TARGET_EXPAND_CBRANCHDI4.
5424 (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, clear TARGET_CBRANCHDI4.
5425 (LEGITIMATE_CONSTANT_P): Also allow DImode and VOIDmode CONST_DOUBLEs.
5426 Remove redundant fp_{zero,one}_operand checks.
5427 * sh.opt (mcbranchdi, mexpand-cbranchdi, mcmpeqdi): New options.
5428 * sh-protos.h (prepare_cbranch_operands, expand_cbranchsi4): Declare.
5429 (expand_cbranchdi4): Likewise.
5430 2006-04-20 J"orn Rennecke <joern.rennecke@st.com>
5431 * sh.h (LOCAL_ALIGNMENT): Use DATA_ALIGNMENT.
5432
7c12eaee 54332006-11-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
5434
5435 * doc/md.texi (RS6000 constraints): Document H, Z, a, t, and W
5436 constraints.
5437
ebe0b5dd 54382006-11-02 Brooks Moses <brooks.moses@codesourcery.com>
5439
5440 * doc/invoke.texi: Fix mfp-trap-mode typo.
5441
9ffe2f5a 54422006-11-02 Carlos O'Donell <carlos@codesourcery.com>
5443
5444 * config/arm/linux-elf.h (NEED_INDICATE_EXEC_STACK): Define as 1.
4a839b30 5445 * arm.c (arm_file_end): If NEED_INDICATE_EXEC_STACK call
5446 file_end_indicate_exec_stack.
5447 * arm.h [!NEED_INDICATE_EXEC_STACK] (NEED_INIDCATE_EXEC_STACK):
9ffe2f5a 5448 Define as 0.
5449 * lib1funcs.asm [__ELF__ && __linux__]: Emit .note.GNU-stack section
5450 for a non-executable stack.
5451 * crti.asm: Likewise.
5452 * crtn.asm: Likewise.
4a839b30 5453 * libunwind.S: Likewise.
9ffe2f5a 5454
960217d2 54552006-11-02 Ben Elliston <bje@au.ibm.com>
5456
5457 * tree-ssa.c (warn_uninit): Use expand_location variables for
5458 locus and declaration locus.
5459
cae0e216 54602006-11-02 Kaz Kojima <kkojima@gcc.gnu.org>
5461
5462 PR target/27405
5463 * config/sh/sh.md (cmp{eq,gt,gtu}{si,di}_media): Remove.
5464 (cmpsi{eq,gt,gtu}{si,di}_media): Rename to
5465 cmp{eq,gt,gtu}{si,di}_media.
5466 (*cmpne0si_media): Remove.
5467 (*movsicc_umin): Adjust gen_cmp*_media call.
5468 (unordered): Change the mode of unordered and operands[1] to
5469 SImode.
5470 (seq): Adjust gen_cmp*_media calls. Make the mode of
5471 a temporary result of compare SImode if needed. If the mode
5472 of operands[0] is DImode, extend the temporary result to DImode.
5473 (slt, sle, sgt, sge, sgtu, sltu, sleu, sgue, sne): Likewise.
5474 (sunorderd): Change the mode of match_operand and unorderd to
5475 SImode.
5476 (cmpeq{sf,df}_media): Remove.
5477 (cmpsieq{sf,df}_media): Rename to cmpeq{sf,df}_media.
5478 (cmp{gt,ge,un}{sf,df}_media): Change the mode of match_operand
5479 and compare operation to SImode.
5480
f057a173 54812006-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
5482
5483 * doc/install.texi (sparc-sun-solaris2*): Update GMP/MPFR build
5484 instructions.
5485 (sparc64-sun-solaris2*): Likewise.
5486
df816ae6 54872006-11-02 Paul Brook <paul@codesourcery.com>
5488
df816ae6 5489 * config/arm/arm.c (arm_elf_asm_constructor): Remove ATTRIBUTE_UNUSED
5490 from priority argument. Use different section for non-default
5491 priority.
5492 * config/arm/elf.h: Remove definition of SUPPORTS_INIT_PRIORITY.
5493
f1d76faf 54942006-11-02 Eric Botcazou <ebotcazou@adacore.com>
5495
5496 PR other/29639
5497 * except.c (switch_to_exception_section): Do not cache the section
5498 if named sections are supported and HAVE_LD_EH_GC_SECTIONS is defined
5499 and flag_function_sections is set.
5500
d92f994c 55012006-11-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5502
5503 PR middle-end/29335
5504 * builtins.c (do_mpfr_sincos): New.
5505 (fold_builtin_1): Use it to fold builtin sincos.
5506
34553227 55072006-11-01 Roger Sayle <roger@eyesopen.com>
5508
5509 * config/darwin.h (CPP_SPEC): Handle -pthread, transforming
5510 it into -D_REENTRANT.
5511
95792072 55122006-11-01 Roger Sayle <roger@eyesopen.com>
5513
5514 * configure.ac (HAVE_AS_IX86_DIFF_SECT_DELTA): New test to determine
5515 whether the assembler supports taking the difference of symbols in
5516 different sections. On x86/Solaris, GAS does but Solaris as doesn't.
5517 * configure: Regenerate.
5518 * config.in: Regenerate.
5519 * config/i386/sol2-10.h (JUMP_TABLES_IN_TEXT_SECTION): Define if
5520 the assembler doesn't support taking the difference of symbols in
5521 different sections, i.e. we're using the native solaris assembler.
5522
c15fcd1f 55232006-11-01 Pete Steinmetz <steinmtz@us.ibm.com>
5524 Peter Bergner <bergner@vnet.ibm.com>
5525
5526 * doc/invoke.texi: Add cpu_type power6x
5527 (RS/6000 and PowerPC Options): Add -mmfpgpr.
5528 * config.gcc: Add cpu_type power6x.
5529 * configure.ac: Add test for mf{t,f}gpr instructions.
5530 (HAVE_AS_MFPGPR): New.
5531 * config.in: Regenerate.
5532 * configure: Regenerate.
5533 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6x.
5534 * config/rs6000/rs6000.md (define_attr "type"): Add insert_dword,
5535 shift,trap,var_shift_rotate,cntlz,exts, var_delayed_compare, mffgpr
5536 and mftgpr attributes.
5537 (define_attr "cpu"): Add power6.
5538 Change instruction sequences to use new attributes.
5539 (floatsidf2,fix_truncdfsi2): use TARGET_MFPGPR.
5540 (fix_truncdfsi2_mfpgpr): New.
5541 (floatsidf_ppc64_mfpgpr): New.
5542 (floatsidf_ppc64): Added !TARGET_MFPGPR condition.
5543 (movdf_hardfloat64_mfpgpr,movdi_mfpgpr): New.
5544 (movdf_hardfloat64): Added !TARGET_MFPGPR condition.
5545 (movdi_internal64): Added !TARGET_MFPGPR and related conditions.
5546 (fix_truncdfsi2): Use gpc_reg_operand constraint.
5547 * config/rs6000/{6xx.md,power4.md,8540.md,603.md,mpc.md,
5548 7xx.md,rios2.md,7450.md,440.md,rios1.md,rs64.md,power5.md,40x.md}:
5549 Add descriptions for insert_dword, shift,trap,var_shift_rotate,
5550 cntlz,exts and var_delayed_compare.
5551 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5552 _ARCH_PWR6X, if features enabled.
5553 * config/rs6000/rs6000.opt (mmfpgpr): New.
5554 * config/rs6000/rs6000.c (rs6000_align_branch_targets): New variable.
5555 (cached_can_issue_more): New variable.
5556 (processor_costs): Add power6_cost.
5557 (rs6000_sched_init): New function.
5558 (is_dispatch_slot_restricted): Deleted.
5559 (set_to_load_agen): New function.
5560 (is_load_insn,is_store_insn): New functions.
5561 (adjacent_mem_locations): New function.
5562 (insn_must_be_first_in_group): New function.
5563 (insn_must_be_last_in_group): New function.
5564 (rs6000_sched_reorder): New function.
5565 (rs6000_sched_reorder2): New function.
5566 (TARGET_SCHED_INIT,TARGET_SCHED_REORDER,
5567 TARGET_SCHED_REORDER2): Define.
5568 (processor_target_table): Use PROCESSOR_POWER6 for power6.
5569 Add power6x. Add MASK_MFPGPR for power6x.
5570 (POWERPC_MASKS): Add MASK_MFPGPR.
5571 (rs6000_override_options): Set rs6000_always_hint to false
5572 for power6. Set rs6000_align_branch_targets. Replace
5573 rs6000_sched_groups check with rs6000_align_branch_targets.
5574 Use PROCESSOR_POWER6.
5575 (last_scheduled_insn): New variable.
5576 (load_store_pendulum): New variable.
5577 (rs6000_variable_issue): Set last_scheduled_insn and
5578 cached_can_issue_more.
5579 (rs6000_adjust_cost): Add power6 cost adjustments.
5580 (rs6000_adjust_priority): Replace is_dispatch_slot_restricted
5581 with insn_must_be_first_in_group. Add power6 priority adjustments.
5582 (rs6000_issue_rate): Add CPU_POWER6.
5583 (insn_terminates_group_p): Use insn_must_be_{first,last}_in_group.
5584 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER6.
5585 (TARGET_MFPGPR): New.
5586 (SECONDARY_MEMORY_NEEDED): Use TARGET_MFPGPR.
5587 (ASM_CPU_SPEC): Add power6x.
5588 (SECONDARY_MEMORY_NEEDED): Added mode!=DFmode and mode!=DImode
5589 conditions.
5590 * config/rs6000/power6.md: New file.
5591
75997a0c 55922006-11-01 Adam Nemet <anemet@caviumnetworks.com>
5593
5594 * tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: Use
5595 HOST_WIDE_INT_PRINT to print high and low parts. Use
5596 HOST_BITS_PER_WIDE_INT for the width of HOST_WIDE_INT. When
5597 printing a hexadecimal number prefix it with 0x.
5598
83e5b8a1 55992006-11-01 Chris Johns <chris@contemporary.net.au>
5600
5601 PR bootstrap/28400
5602 * Makefile.in (install-driver): Use exeext when installing
5603 $target-gcc-$version.
5604
7737bfbc 56052006-11-01 Douglas Gregor <doug.gregor@gmail.com>
5606
5607 * c-common.c (flag_cpp0x): New.
5608 * c-common.h (flag_cpp0x): New.
5609 * c-cppbuiltin.c (c_cpp_builtins): If C++0x extensions are
5610 supported, define __GXX_EXPERIMENTAL_CPP0X__.
5611 * c-opts.c (set_std_cxx0x): New.
5612 (c_common_handle_option): Handle -std=c++0x, -std=gnu++0x.
5613 * c.opt (std=c++0x): Document.
5614 (std=gnu++0x): Ditto.
5615 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CPP0X__.
5616 * doc/invoke.texi: Document -std=c++0x, -std=gnu++0x.
5617
f70c02e6 56182006-11-01 Richard Guenther <rguenther@suse.de>
5619
5620 * config/i386/i386.c (ix86_expand_rint): Fix issues with
5621 signed zeros.
5622 (ix86_expand_floorceildf_32): Likewise.
5623 (ix86_expand_floorceil): Likewise.
5624 (ix86_expand_trunc): Likewise.
5625
e4f4c49b 56262006-10-31 Andrew Pinski <pinskia@gmail.com>
5627
5628 * doc/invoke.texi (-fkeep-inline-functions): Change "GNU C"
5629 to "GNU C89".
5630
d91ef9b0 56312006-11-01 Danny Smith <dannysmith@users.sourceforge.net>
5632
5633 * target.h (targetm.cxx.use_atexit_for_cxa_atexit): New target
5634 hook.
5635 * target-def.h: (TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT): Define
5636 default.
5637 * config/i386/mingw32.h (TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT):
5638 Override default.
5639 * doc/tm.texi (TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT): Document.
5640 * configure.ac (use_cxa_atexit): As a special case, don't test
5641 for libc definition of __cxa_atexit on mingw32
5642 * configure: Regenerate.
5643 * config.gcc (i[34567]86-pc-mingw32): Default to
5644 enable__cxa_atexit=yes.
5645
8a56a029 56462006-11-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5647
5648 * builtins.def (gamma, lgamma): Use ATTR_MATHFN_FPROUNDING_STORE.
5649
c8dfb8ef 56502006-10-31 Geoffrey Keating <geoffk@apple.com>
5651
5652 PR 23067
5653 * c-decl.c (start_struct): Don't create self-containing
5654 structures.
5655 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
5656 New.
5657 * config/rs6000/rs6000-protos.h
5658 (darwin_rs6000_special_round_type_align): New.
5659 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Rewrite.
5660 (ROUND_TYPE_ALIGN): Use darwin_rs6000_special_round_type_align.
5661
15daca6e 56622006-10-31 Geoffrey Keating <geoffk@apple.com>
5663
5664 * toplev.c (compile_file): Call final_write_globals
5665 even if there have been errors.
4a839b30 5666
15daca6e 56672006-10-31 Eric Christopher <echristo@apple.com>
42791117 5668 Falk Hueffner <falk@debian.org>
5669
5670 * doc/extend.texi (__builtin_bswap32): Document.
5671 (__builtin_bswap64): Ditto.
5672 * doc/libgcc.texi (bswapsi2): Document.
5673 (bswapdi2): Ditto.
5674 * doc/rtl.texi (bswap): Document.
5675 * optabs.c (expand_unop): Don't widen a bswap.
5676 (init_optabs): Init bswap. Set libfuncs explicitly
5677 for bswapsi2 and bswapdi2.
5678 * optabs.h (OTI_bswap): New.
5679 (bswap_optab): Ditto.
5680 * genopinit.c (optabs): Handle bswap_optab.
5681 * tree.h (tree_index): Add TI_UINT32_TYPE and
5682 TI_UINT64_TYPE.
5683 (uint32_type_node): New.
5684 (uint64_type_node): Ditto.
5685 * tree.c (build_common_tree_nodes_2): Initialize
5686 uint32_type_node and uint64_type_node.
5687 * builtins.c (expand_builtin_bswap): New.
5688 (expand_builtin): Call.
5689 (fold_builtin_bswap): New.
5690 (fold_builtin_1): Call.
5691 * fold-const.c (tree_expr_nonnegative_p): Return true
5692 for bswap.
5693 * builtin-types.def (BT_UINT32): New.
5694 (BT_UINT64): Ditto.
5695 (BT_FN_UINT32_UINT32): Ditto.
5696 (BT_FN_UINT64_UINT64): Ditto.
5697 * builtins.def (BUILT_IN_BSWAP32): New.
5698 (BUILT_IN_BSWAP64): Ditto.
5699 * rtl.def (BSWAP): New.
5700 * genattrtab.c (check_attr_value): New.
5701 * libgcc2.c (__bswapSI2): New.
5702 (__bswapDI2): Ditto.
5703 * libgcc2.h (__bswapSI2): Declare.
5704 (__bswapDI2): Ditto.
5705 * mklibgcc.in (lib2funcs): Add _bswapsi2 and _bswapdi2.
5706 * simplify-rtx.c (simplify_const_unary_operation): Return
5707 0 for BSWAP.
5708 * libgcc-std.ver (__bwapsi2): Add.
5709 (__bswapdi2): Ditto.
5710 * reload1.c (eliminate_regs_1): Add bswap.
5711 (elimination_effects): Ditto.
5712 * config/i386/i386.h (x86_bswap): New.
5713 (TARGET_BSWAP): Use.
5714 * config/i386/i386.c (x86_bswap): Set.
5715
db85cc4f 57162006-10-31 Geoffrey Keating <geoffk@apple.com>
5717
5718 * coverage.c (coverage_checksum_string): Update comment.
5719 * dwarf2out.c (switch_to_eh_frame_section): Update for removal
5720 of get_file_function_name.
5721 * cgraphunit.c (cgraph_build_static_cdtor): Update for rename
5722 of get_file_function_name_long.
5723 * tree.c (get_file_function_name): Rename from
5724 get_file_function_name_long; improve comment; handle 'I' and 'D'
5725 specially when the target has ctor/dtor support; remove special
5726 handling for 'F'.
5727 (get_file_function_name): Remove.
5728 * tree.h (get_file_function_name): Rename from
a348d038 5729 get_file_function_name_long.
db85cc4f 5730 (get_file_function_name): Remove prototype.
5731
079363c6 57322006-10-31 Geoffrey Keating <geoffk@apple.com>
5733
5734 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Remove.
5735 * config/darwin.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
5736
5737 * config/darwin.h (LINK_COMMAND_SPEC): Don't do weird things with -@.
5738 Call dsymutil when compiling and linking one or more source files
5739 in one step.
5740
b67620c6 57412006-10-31 Geoffrey Keating <geoffk@apple.com>
5742
5743 PR 15834
5744 * config/darwin.h (NO_IMPLICIT_EXTERN_C): Define.
5745
c42cc79e 57462006-10-31 Geoffrey Keating <geoffk@apple.com>
5747
5748 * c-decl.c (grokdeclarator): Don't set DECL_EXTERNAL on
5749 inline static functions in c99 mode.
5750
5751 PR 16622
5752 * doc/extend.texi (Inline): Update.
5753 * c-tree.h (struct language_function): Remove field 'extern_inline'.
5754 * c-decl.c (current_extern_inline): Delete.
5755 (pop_scope): Adjust test for an undefined nested function.
5756 Add warning about undeclared inline function.
5757 (diagnose_mismatched_decls): Update comments. Disallow overriding
5758 of inline functions in a translation unit in C99. Allow inline
5759 declarations in C99 at any time.
5760 (merge_decls): Boolize variables. Handle C99 'extern inline'
5761 semantics.
5762 (grokdeclarator): Set DECL_EXTERNAL here for functions. Handle
5763 C99 inline semantics.
5764 (start_function): Don't clear current_extern_inline. Don't set
5765 DECL_EXTERNAL.
5766 (c_push_function_context): Don't push current_extern_inline.
5767 (c_pop_function_context): Don't restore current_extern_inline.
5768
5769 PR 11377
5770 * c-typeck.c (build_external_ref): Warn about static variables
5771 used in extern inline functions.
5772 * c-decl.c (start_decl): Warn about static variables declared
5773 in extern inline functions.
5774
cd29ee4b 57752006-10-31 Roger Sayle <roger@eyesopen.com>
5776
5777 PR middle-end/23470
5778 * tree.h (tree_expr_nonnegative_p): Return "bool" instead of "int".
5779 * fold-const.c (tree_expr_nonnegative_p): Likewise. Consider
5780 pow(x,y) and powi(x,y) to be nonnegative if either x is nonnegative
5781 or y is an even integer.
5782
2f9d7fdd 57832006-10-31 Eric Botcazou <ebotcazou@libertysurf.fr>
5784
5785 PR target/24071
5786 * gthr-posix.h (__gthread_active_p): New implementation on Solaris.
5787 * gthr-posix95.h (__gthread_active_p): Likewise.
5788
803734b5 57892006-10-31 Richard Guenther <rguenther@suse.de>
5790
5791 * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
5792 acossf2, acosxf2, log1psf2, log1pdf2, log1pxf2, ilogbsi2,
5793 expsf2, expdf2, expxf2, exp10sf2, exp10df2, exp10xf2,
5794 exp2sf2, exp2df2, exp2xf2, expm1df2, expm1sf2, expm1xf2,
5795 ldexpdf3, ldexpsf3, ldexpxf3, rintxf2, rintdf2, rintsf2,
5796 lround<mode>di2, lround<mode>si2, floorxf2, floordf2, floorsf2,
5797 lfloor<mode>di2, lfloor<mode>si2, ceilxf2, ceildf2, ceilsf2,
5798 btruncxf2, btruncdf2, btruncsf2): Conditionalize expansion on
5799 !optimize_size.
5800
0cca903a 58012006-10-31 Steven Bosscher <steven@gcc.gnu.org>
5802
5803 * opts.c (decode_options): Disable CSE skip blocks.
5804
3f08e399 58052006-10-30 Dirk Mueller <dmueller@suse.de>
5806
5807 * c-common.h (strict_aliasing_warning): Fix whitespace.
5808 * c-decl (start_function): Move code for main decl warning ..
5809 * c-common.c (check_main_parameter_types): .. here.
5810 * c-common.h (check_main_parameter_types): Declare.
a348d038 5811
32dba52b 58122006-10-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5813
5814 PR middle-end/29335
5815 * builtins.c (fold_builtin_1): Evaluate tgamma using MPFR.
5816
bdfa3a48 58172006-10-30 Pete Steinmetz <steinmtz@us.ibm.com>
5818
5819 * recog.c (store_data_bypass_p): Add support to allow IN_INSN to
5820 be a PARALLEL containing sets. Return false when out_pat is not
5821 a PARALLEL insn.
5822
1f0fdcb3 58232006-10-30 Richard Sandiford <richard@codesourcery.com>
5824
5825 * config/mips/mips.md (mul<mode>3): Split into...
5826 (mulsi3, muldi3): ...these separate patterns.
5827
bfdafea3 58282006-10-30 Richard Sandiford <richard@codesourcery.com>
5829
5830 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use a single spec,
5831 but with each set of options separated by spaces.
5832
aff39734 58332006-10-30 J"orn Rennecke <joern.rennecke@st.com>
5834
5835 * unwind-dw2.c (uw_init_context_1): Fix test that checks if
5836 dwarf_reg_size_table has been initialized.
5837
7d4c98bc 58382006-10-30 Roger Sayle <roger@eyesopen.com>
5839
5840 * builtins.c (expand_builtin_mathfn_3): Correct coding style.
5841 * ddg.c (print_ddg_edge): Likewise.
5842 * dwarf2out.c (prune_unused_types_walk): Likewise.
5843 * ifcvt.c (noce_try_cmove_arith): Likewise.
5844 * langhooks.c (add_builtin_function): Likewise.
5845 * reg-stack.c (subst_stack_regs_pat): Likewise.
5846 * tree.c (expanded_location): Likewise.
5847 * tree-dump.c (dequeue_and_dump): Likewise.
5848
78f87101 58492006-10-30 David Daney <ddaney@avtrex.com>
5850
5851 * config/mips/linux.h (NO_SHARED_SPECS): Correct syntax error.
5852
b2d81d54 58532006-10-30 Jakub Jelinek <jakub@redhat.com>
5854
5855 PR tree-optimization/29637
5856 * tree.c (make_vector_type): Don't recurse if TYPE_MAIN_VARIANT
5857 of the innertype is the innertype itself.
5858
8defa33e 58592006-10-30 Danny Smith <dannysmith@users.sourceforge.net>
5860
5861 * dwarf2out.c (file_name_acquire): Correct typo.
5862
a3fde7e1 58632006-10-29 Daniel Berlin <dberlin@dberlin.org>
5864
4a839b30 5865 * tree.h (tree_value_handle): Remove struct value_set declaration.
a3fde7e1 5866 Change value_set to bitmap_set.
5867 * tree-pretty-print.c (dump_generic_node): Use has_stmt_ann.
5868 * tree-vn.c (get_value_handle): Made inline and moved to
5869 tree-flow-inline.h.
5870 * tree-flow-inline.h: (has_stmt_ann): New function.
5871 * tree-ssa-pre.c (expressions): New variable.
5872 (next_expression_id): Ditto.
5873 (alloc_expression_id): New function.
5874 (struct value_set): Remove.
5875 (get_expression_id): New function.
5876 (get_or_alloc_expression_id): Ditto.
5877 (expression_for_id): Ditto.
5878 (clear_expression_ids): Ditto.
5879 (FOR_EACH_EXPR_ID_IN_SET): New macro.
5880 (bb_value_sets): Renamed to bb_bitmap_sets.
5881 All value sets replaced with bitmap_sets.
5882 Add visited member.
5883 (BB_VISITED): New macro.
5884 (postorder): New variable.
5885 (add_to_value): Removed.
5886 (value_exists_in_set_bitmap): Ditto.
5887 (value_insert_into_set_bitmap): Ditto.
5888 (set_new): Ditto.
5889 (set_copy): Ditto.
5890 (set_remove): Ditto.
5891 (set_contains_value): Ditto.
5892 (insert_into_set): Ditto.
5893 (set_equal): Ditto.
5894 (find_leader): Ditto.
5895 (bitmap_set_subtract_from_value_set): Ditto.
5896 (value_insert_into_set): Ditto.
5897 (print_value_set): Ditto.
5898 (debug_value_set): Ditto.
5899 (constant_expr_p): New function.
5900 (bitmap_remove_from_set): Ditto.
5901 (bitmap_insert_into_set): Ditto.
5902 (bitmap_set_free): Ditto.
5903 (vh_compare): Ditto.
5904 (sorted_array_from_bitmap_set): Ditto.
5905 (bitmap_set_subtract): Ditto.
5906 (bitmap_set_equal): Ditto.
5907 (debug_bitmap_set): Ditto.
5908 (find_leader_in_sets): Ditto.
5909 (bitmap_set_replace_value): Modify for bitmapped sets.
5910 (phi_translate): Ditto.
5911 (phi_translate_set): Ditto.
5912 (bitmap_find_leader): Ditto.
5913 (valid_in_sets): Ditto.
5914 (union_contains_value): Ditto.
5915 (clean): Ditto.
5916 (compute_antic_aux): Ditto. Mark changed blocks.
5917 (compute_antic): Ditto. Iterate in postorder and only over
5918 changing blocks.
5919 (compute_rvuse_and_antic_safe): Reuse postorder.
5920 (create_component_ref_by_pieces): Modify for bitmapped sets.
5921 (find_or_generate_expression): Ditto.
5922 (create_expression_by_pieces): Ditto.
5923 (insert_into_preds_of_block): Ditto.
5924 (changed_blocks): New variable.
5925 (do_regular_insertion): Broken out from insert_aux.
5926 (insert_aux): Modified for bitmapped sets.
5927 (find_existing_value_expr): New function.
5928 (create_value_expr_from): Use it.
5929 (insert_extra_phis): Removed.
5930 (print_bitmap_set): Renamed from bitmap_print_value_set.
5931 (compute_avail): Handle RETURN_EXPR.
5932 (init_pre): Modify for bitmapped sets.
5933 * tree-flow.h (has_stmt_ann): New function.
4a839b30 5934
30fe8286 59352006-10-29 Roger Sayle <roger@eyesopen.com>
5936
5937 * builtins.c (fold_builtin_floor): Check for the availability of
5938 the C99 trunc function before transforming floor into trunc.
5939
6c95f21c 59402006-10-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5941
5942 * builtins.c (fold_builtin_hypot): Rearrange recursive
5943 transformation before others, and also do ABS_EXPR. When
5944 necessary, check flag_unsafe_math_optimizations. When necessary,
5945 add fabs.
5946
746443a2 59472006-10-29 Roger Sayle <roger@eyesopen.com>
5948
5949 * fold-const.c (fold_comparison): Fold ~X op ~Y as Y op X.
5950 Fold ~X op C as X op' ~C, where op' is the swapped comparison.
5951 (fold_binary): ~X eq/ne C is now handled in fold_comparison.
5952 Fold -X eq/ne -Y as X eq/ne Y.
5953
425e1c96 59542006-10-29 Richard Sandiford <richard@codesourcery.com>
5955
5956 * config/mips/mips.md (mul<mode>3): Check ISA_HAS_MUL3 rather than
5957 GENERATE_MULT3_<MODE>. Restrict the test to SImode. Use ISA_HAS_MUL3
5958 rather than GENERATE_MULT3_SI in the various define_peephole2s.
5959 (mulsi3_mult3): Depend on ISA_HAS_MUL3 rather than GENERATE_MULT3_SI.
5960 Use an inclusive test for "mult" rather than "mul".
5961 (rotr<mode>3): Depend on ISA_HAS_ROR.
5962 * config/mips/mips.h (GENERATE_MULT3_SI): Delete in favor of
5963 ISA_HAS_MUL3.
5964 (GENERATE_MULT3_DI): Delete.
5965 (ISA_HAS_64BIT_REGS): Use consistent formatting.
5966 (ISA_HAS_MUL3): New macro.
5967 (ISA_HAS_CONDMOVE, ISA_HAS_8CC): Use consistent formatting.
5968 (ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB): Likewise.
5969 (ISA_HAS_CLZ_CLO): Likewise.
5970 (ISA_HAS_DCLZ_DCLO): Delete.
5971 (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC): Require !TARGET_MIPS16.
5972 (ISA_HAS_MACC): Require !TARGET_MIPS16 for all ISAs, not just
5973 the VR4120 and VR4130.
5974 (ISA_HAS_MACCHI): Use consistent formatting.
5975 (ISA_HAS_ROTR_SI, ISA_HAS_ROTR_DI): Delete in favor of...
5976 (ISA_HAS_ROR): ...this new macro.
5977 (ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX): Use consistent formatting.
5978 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS): Likewise.
5979 (ISA_HAS_LOAD_DELAY): Use ISA_MIPS1.
5980
1518c00b 59812006-10-29 Roger Sayle <roger@eyesopen.com>
5982
5983 PR tree-optimization/15458
5984 * fold-const.c (fold_binary): Optimize ~X ^ C as X ^ ~C, where C
5985 is a constant.
5986
f78b4bc1 59872006-10-29 Richard Guenther <rguenther@suse.de>
5988
5989 * config/i386/i386-protos.h (ix86_expand_trunc): Declare.
5990 (ix86_expand_truncdf_32): Likewise.
5991 * config/i386/i386.c (ix86_expand_trunc): New function expanding
5992 trunc inline for SSE math and -fno-trapping-math and if not
5993 optimizing for size.
5994 (ix86_expand_truncdf_32): Same for DFmode on 32bit archs.
5995 * config/i386/i386.md (btruncsf2, btruncdf2): Adjust expanders
5996 for expanding btrunc inline for SSE math.
5997
54bb64fb 59982006-10-29 Joseph Myers <joseph@codesourcery.com>
5999
6000 * config.gcc (i[34567]86-*-linux*): Handle --enable-targets=all.
6001 Handle tuning for bi-arch i[34567]86-*-linux* like that for
6002 i[34567]86-*-solaris2.1[0-9]*.
6003 * config/i386/linux64.h (TARGET_VERSION, MULTILIB_DEFAULTS):
6004 Define conditionally depending on TARGET_64BIT_DEFAULT.
6005 (SPEC_32, SPEC_64): Define.
6006 (LINK_SPEC): Use them.
6007 * doc/install.texi (--enable-targets=all): Document for x86-linux.
6008
c3faca24 60092006-10-29 Richard Guenther <rguenther@suse.de>
6010
6011 * config/i386/i386-protos.h (ix86_expand_round): Declare.
6012 (ix86_expand_rounddf_32): Likewise.
6013 * config/i386/i386.c (ix86_expand_round): New function expanding
6014 round inline for SSE math and -fno-trapping-math and if not
6015 optimizing for size.
6016 (ix86_expand_rounddf_32): Same for DFmode on 32bit archs.
6017 * config/i386/i386.md (rounddf2, roundsf2): New pattern expanding
6018 round via ix86_expand_round.
6019
e7fdb903 60202006-10-29 Richard Guenther <rguenther@suse.de>
6021
6022 * config/i386/i386-protos.h (ix86_expand_floorceil): Declare.
6023 (ix86_expand_floorceildf_32): Likewise.
6024 * config/i386/i386.c (ix86_expand_sse_compare_mask): New
6025 static helper function.
6026 (ix86_expand_floorceil): Expander for floor and ceil to SSE
6027 math.
6028 (ix86_expand_floorceildf_32): Same for DFmode on 32bit archs.
6029 * config/i386/i386.md (floordf2): Adjust to enable floor
6030 expansion via ix86_expand_floorceil if TARGET_SSE_MATH and
6031 -fno-trapping-math is enabled and if not optimizing for size.
6032 (floorsf2, ceildf2, ceilsf2): Likewise.
6033 * config/i386/sse.md (sse_maskcmpsf3): New insn.
6034 (sse2_maskcmpdf3): Likewise.
6035
0ddf4ad9 60362006-10-29 Richard Guenther <rguenther@suse.de>
6037
6038 * builtins.c (expand_builtin_mathfn): Expand nearbyint as
6039 rint in case -fno-trapping-math is enabled.
6040 * config/i386/i386-protos.h (ix86_expand_rint): Declare.
6041 * config/i386/i386.c (ix86_gen_TWO52): New static helper function.
6042 (ix86_expand_sse_fabs): Likewise.
6043 (ix86_expand_rint): New function expanding rint to x87 or SSE math.
6044 * config/i386/i386.md (rintdf2): Enable for SSE math if
6045 -fno-trapping-math is enabled, use ix86_expand_rint for expansion.
6046 (rintsf2): Likewise.
6047
9c42dd28 60482006-10-29 Richard Guenther <rguenther@suse.de>
6049
6050 * genopinit.c (optabs): Change lfloor_optab and lceil_optab
6051 to conversion optabs.
6052 * optabs.c (init_optabs): Initialize lfloor_optab and lceil_optab
6053 as conversion optab.
6054 * optabs.h (enum optab_index): Remove OTI_lfloor and OTI_lceil.
6055 (enum convert_optab_index): Add COI_lfloor and COI_lceil.
6056 (lfloor_optab, lceil_optab): Adjust defines.
6057 * builtins.c (expand_builtin_int_roundingfn): Adjust for
6058 lfloor and lceil optabs now being conversion optabs.
6059 * config/i386/i386-protos.h (ix86_expand_lfloorceil): Declare.
6060 * config/i386/i386.c (ix86_expand_sse_compare_and_jump):
6061 New static helper function.
6062 (ix86_expand_lfloorceil): New function to expand lfloor and
6063 lceil inline.
6064 * config/i386/i386.md (lfloor<mode>2): Split into ...
6065 (lfloorxf<mode>2): ... x87 variant
6066 (lfloor<mode>di2, lfloor<mode>si2): ... and SSE variants
6067 using ix86_expand_lfloorceil.
6068 (lceil<mode>2, lceilxf<mode>2, lceil<mode>di2, lceil<mode>si2):
6069 Likewise.
6070 * doc/md.texi (lfloorMN, lceilMN): Document.
6071
f863d3e3 60722006-10-29 Richard Sandiford <richard@codesourcery.com>
6073
6074 * configure.ac (HAVE_AS_NO_SHARED): New AC_DEFINE. Test for the
6075 -mno-shared assembler option on mips targets.
6076 * configure, config.in: Regenerate.
6077 * config/mips/linux.h (NO_SHARED_SPECS): New macro.
6078 (DRIVER_SELF_SPECS): Define to NO_SHARED_SPECS if non-empty.
6079 * config/mips/linux64.h (DRIVER_SELF_SPECS): Include NO_SHARED_SPECS.
6080
b760a034 60812006-10-29 Richard Sandiford <richard@codesourcery.com>
6082
6083 * config/mips/mips.c (mips_classify_symbol): Test DECL_WEAK as well
6084 as TREE_PUBLIC when deciding whether to return SYMBOL_GOT_GLOBAL.
6085
26ac986e 60862006-10-29 Kazu Hirata <kazu@codesourcery.com>
6087
6088 * config/darwin.c, config/darwin.opt, config/ia64/itanium1.md,
6089 config/ia64/itanium2.md, real.c, tree-ssa-structalias.c: Fix
6090 comment typos.
6091
f0c477f2 60922006-10-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6093
6094 PR middle-end/29335
6095 * builtins.c (do_mpfr_arg2, fold_builtin_hypot): New.
6096 (fold_builtin_pow): Evaluate constant arguments at compile-time
6097 using MPFR.
6098 (fold_builtin_1): Handle BUILT_IN_ATAN2 and BUILT_IN_HYPOT.
6099 (do_mpfr_ckconv): New helper function.
6100 (do_mpfr_arg1): Use do_mpfr_ckconv.
6101 (do_mpfr_arg2): New.
6102
b4b47825 61032006-10-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
6104
6105 PR tree-opt/29271
6106 * doc/invoke.texi (-fdump-rtl-sched2) Fix file extension number.
6107 (-fdump-rtl-sched): Rename to ..
6108 (-fdump-rtl-sched1): here. Also fix file extension number.
6109
a6d701f9 61102006-10-28 Richard Guenther <rguenther@suse.de>
6111
6112 * fold-const.c (maybe_canonicalize_comparison): Fix code
6113 to match comment.
6114
3cc68209 61152006-10-28 Uros Bizjak <uros@kss-loka.si>
6116
6117 * config/i386/i386.h (GENERAL_REGNO_P): Use STACK_POINTER_REGNUM.
6118 (NON_QI_REG_P): Use IN_RANGE.
6119 (REX_INT_REGNO_P): Use IN_RANGE.
6120 (FP_REGNO_P): Use IN_RANGE.
6121 (SSE_REGNO_P): Use IN_RANGE.
6122 (REX_SSE_REGNO_P): Use IN_RANGE.
6123 (MMX_REGNO_P): Use IN_RANGE.
6124 (STACK_REGNO_P): New macro.
6125 (STACK_REG_P): Use STACK_REGNO_P.
6126 (NON_STACK_REG_P): Use STACK_REGNO_P.
6127 (REGNO_OK_FOR_INDEX_P): Use REX_INT_REGNO_P.
6128 (REGNO_OK_FOR_BASE_P): Use GENERAL_REGNO_P.
6129 (REG_OK_FOR_INDEX_NONSTRICT_P): Use REX_INT_REGNO_P.
6130 (REG_OK_FOR_BASE_NONSTRICT_P): Use GENERAL_REGNO_P.
6131 (HARD_REGNO_RENAME_OK): Use !IN_RANGE.
6132
0a011112 61332006-10-28 Eric Botcazou <ebotcazou@adacore.com>
6134
6135 * except.h (output_function_exception_table): Add 'const char*' param.
6136 * except.c (switch_to_exception_section): Add 'const char*' param.
6137 If named sections are supported and HAVE_LD_EH_GC_SECTIONS is defined
6138 and flag_function_sections is set, use a function-specific section.
6139 (output_function_exception_table): Add 'const char*' param.
6140 Adjust call to switch_to_exception_section.
6141 * final.c (rest_of_handle_final): Adjust calls to
6142 output_function_exception_table.
6143 * configure.ac (HAVE_LD_EH_GC_SECTIONS): New check.
6144 * config.in: Regenerate.
6145 * configure: Likewise.
6146
26e1261a 61472006-10-28 Richard Guenther <rguenther@suse.de>
6148
6149 PR middle-end/26899
6150 * fold-const.c (maybe_canonicalize_comparison_1): Helper
6151 for maybe_canonicalize_comparison.
6152 (maybe_canonicalize_comparison): New function for canonicalizing
6153 comparison trees.
6154 (fold_comparison): Call it to canonicalize comparisons with
6155 constants involved.
6156
ef2f1a10 61572006-10-28 Richard Guenther <rguenther@suse.de>
6158
6159 PR target/28806
6160 * builtins.c (expand_builtin_int_roundingfn_2): Expand
6161 BUILT_IN_LROUND and BUILT_IN_LLROUND from here.
6162 (expand_builtin): Adjust likewise.
6163 * genopinit.c (optabs[]): Add lround optab.
6164 * optabs.c (init_optabs): Initialize lround_optab.
6165 * optabs.h (enum convert_optab_index): Add COI_lround.
6166 (lround_optab): Define.
6167 * config/i386/i386-protos.h (ix86_expand_lround): Declare.
6168 * config/i386/i386.c (ix86_sse_copysign_to_positive): New
6169 static function.
6170 (ix86_expand_lround): New function.
6171 * config/i386/i386.md (lround<mode>di2, lround<mode>si2):
6172 New expanders.
6173 * doc/md.texi (lroundMN2): Document.
6174
959e2f12 61752006-10-28 Uros Bizjak <uros@kss-loka.si>
6176
6177 PR target/29377
6178 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Change "size"
6179 argument to HOST_WIDE_INT. Update function prototype.
6180 (round_frame_size): Change return type to HOST_WIDE_INT. Change
6181 "size" argument to HOST_WIDE_INT. Update function prototype.
6182
ce26e70f 61832006-10-28 Uros Bizjak <uros@kss-loka.si>
6184
6185 * config/i386/i386.c (output_387_ffreep): Create output from a
6186 template string for !HAVE_AS_IX86_FFREEP.
4a839b30 6187
c4f8e01f 61882006-10-27 Eric Christopher <echristo@apple.com>
6189
6190 * config/darwin.c: Fix formatting and grammar.
6191
a280136a 61922006-10-27 Jan Hubicka <jh@suse.cz>
6193
6194 * builtins.c (fold_builtin): Don't generate NOP_EXPR that is going
6195 to be thrown away soon when IGNORE is set.
6196 * tree-ssa-ccp.c (convert_to_gimple_builtin): Add IGNORE argument
6197 indicating when return value shall not be computed.
6198 * gimplify.c (internal_get_tmp_var): Avoid random tree sharing.
6199
5c34451e 62002006-10-27 Vladimir Makarov <vmakarov@redhat.com>
6201
6202 * config/i386/i386.h (TARGET_GEODE):
6203 (TARGET_CPU_CPP_BUILTINS): Add code for geode.
6204 (TARGET_CPU_DEFAULT_geode): New macro.
6205 (TARGET_CPU_DEFAULT_k6, TARGET_CPU_DEFAULT_k6_2,
6206 TARGET_CPU_DEFAULT_k6_3, TARGET_CPU_DEFAULT_athlon,
6207 TARGET_CPU_DEFAULT_athlon_sse, TARGET_CPU_DEFAULT_k8,
6208 TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_prescott,
6209 TARGET_CPU_DEFAULT_nocona, TARGET_CPU_DEFAULT_generic): Increase
6210 the macro values.
6211 (TARGET_CPU_DEFAULT_NAMES): Add geode.
6212 (processor_type): Add PROCESSOR_GEODE.
6213
6214 * config/i386/i386.md: Include geode.md.
6215 (cpu): Add geode.
6216
6217 * config/i386/i386.c (geode_cost): New initialized global
6218 variable.
6219 (m_GEODE, m_K6_GEODE): New macros.
6220 (x86_use_leave, x86_push_memory, x86_deep_branch, x86_use_sahf,
6221 x86_use_himode_fiop, x86_promote_QImode, x86_add_esp_4,
6222 x86_add_esp_8, x86_rep_movl_optimal, x86_ext_80387_constants,
6223 x86_schedule): Use m_K6_GEODE instead of m_K6.
6224 (x86_movx, x86_cmove): Set up m_GEODE.
6225 (x86_integer_DFmode_moves): Clear m_GEODE.
6226 (processor_target_table): Add entry for geode.
6227 (processor_alias_table): Ditto.
6228
6229 * config/i386/geode.md: New file.
6230
6231 * doc/invoke.texi: Add entry about geode processor.
c4f8e01f 6232
fbe52fc9 62332006-10-27 Mike Stump <mrs@apple.com>
6234
6235 * config/darwin-c.c (darwin_cpp_builtins): Move __STATIC__ and
6236 __DYNAMIC__ from here back to ...
6237 * config/darwin.h (CPP_SPEC): ... here.
6238
3a1e1e08 62392006-10-26 Nathan Froyd <froydnj@codesourcery.com>
a348d038 6240 Nathan Sidwell <nathan@codesourcery.com>
3a1e1e08 6241
6242 * ggc-common.c (ggc_min_heapsize_heuristic): Be more conservative
6243 when choosing the minimum heapsize.
6244
ad430e37 62452006-10-26 Nathan Froyd <froydnj@codesourcery.com>
6246
6247 * gcc/unwind-dw2.h: Move cfa-related variables into
6248 struct frame_state_reg_info to ensure that the CFA is properly
6249 handled when executing DW_CFA_{remember,restore}_state.
6250 * gcc/unwind-dw2.c, gcc/config/alpha/linux-unwind.h,
6251 gcc/config/alpha/vms-unwind.h, gcc/config/s390/tpf-unwind.h
6252 gcc/config/s390/linux-unwind.h, gcc/config/sparc/linux-unwind.h
6253 gcc/config/i386/linux-unwind.h, gcc/config/sh/linux-unwind.h
6254 gcc/config/rs6000/linux-unwind.h,
6255 gcc/config/rs6000/darwin-fallback.c, gcc/config/pa/linux-unwind.h,
6256 gcc/config/pa/hpux-unwind.h, gcc/config/mips/linux-unwind.h:
6257 Modify to use new cfa_* fields.
6258
3ea2a559 62592006-10-26 Andreas Krebbel <krebbel1@de.ibm.com>
6260
6261 * config/s390/s390.c (s390_init_frame_layout): Check positive
6262 frame_size.
6263
07f6cb77 62642006-10-26 Ben Elliston <bje@au.ibm.com>
6265
6266 * gimplify.c (get_name): Remove extraneous break.
6267 (gimplify_omp_for): Initialise ret with GS_OK.
6268
2fa6c4e5 62692006-10-25 Steve Ellcey <sje@cup.hp.com>
6270
6271 * config/ia64/hpux.h: Define _INCLUDE__STDC_A1_SOURCE in C++.
6272 Add unix98.o to link line.
6273
29f4cd78 62742006-10-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6275
6276 PR middle-end/29335
6277 * builtins.c (fold_builtin_cbrt, fold_builtin_logarithm):
6278 Calculate compile-time constants using MPFR.
6279 (fold_builtin_1): Likewise handle BUILT_IN_ERF, BUILT_IN_ERFC,
6280 BUILT_IN_EXPM1 and BUILT_IN_LOG1P.
6281
d33ad8b2 62822006-10-25 Bob Wilson <bob.wilson@acm.org>
6283
6284 * config/xtensa/lib2funcs.S: Use C-style comments.
6285
974a92fe 62862006-10-24 Nathan Froyd <froydnj@codesourcery.com>
6287
a348d038 6288 * dwarf2out.c (gen_compile_unit_die): Use IS_ABSOLUTE_PATH.
6289 (file_table_relative_p): Likewise.
6290 (dwarf2out_finish): Likewise.
6291 (file_name_acquire): Use DIR_SEPARATOR and DIR_SEPARATOR_2.
974a92fe 6292
1767be1e 62932006-10-25 Daniel Berlin <dberlin@dberlin.org>
6294
6295 * tree-ssa-structalias.c (intra_create_variable_infos):
6296 Don't recreate nonlocal_all if it already exists.
6297
5f51ee59 62982006-10-25 Richard Guenther <rguenther@suse.de>
6299
6300 PR target/28803
6301 * optabs.h (enum optab_index): Remove OTI_lrint.
6302 (enum convert_optab_index): Add COI_lrint.
6303 (lrint_optab): Adjust.
6304 (expand_sfix_optab): Declare.
6305 * optabs.c (expand_sfix_optab): New function.
6306 (init_optabs): Init lrint_optab as conversion optab.
6307 * genopinit.c (lrint_optab): Change to a conversion optab.
6308 * builtins.c (expand_builtin_int_roundingfn_2): Adjust to
6309 expansion via conversion optab.
6310 * config/i386/i386.md (*fistdi2_1): Remove
6311 flag_unsafe_math_optimizations guard.
6312 (fistdi2, fistdi2_with_temp, *fist<mode>2_1, fist<mode>2,
6313 fist<mode>2_with_temp): Likewise.
6314 (lrint<mode>2): Split into...
6315 (lrintxf<mode>2): ... x87 part
6316 (lrint<mode>di2, lrint<mode>si2): ... and SSE parts.
6317 * config/i386/sse.md (sse_cvtss2si_2, sse_cvtss2_siq_2,
6318 sse2_cvtsd2si_2, sse2_cvtsd2siq_2): New insns for
6319 UNSPEC_FIX_NOTRUNC matching non-vector float modes.
6320 * doc/md.texi (lrintMN2): Document.
6321
08a09524 63222006-10-25 Uros Bizjak <uros@kss-loka.si>
6323
6324 PR target/28909
6325 * config/i386/sync.md ("sync_add<mode>", "sync_sub<mode>"):
6326 Use inc and dec instructions for TARGET_USE_INCDEC.
6327 ("*sync_compare_and_swap<mode>"): Fix -masm=intel template.
6328 ("sync_double_compare_and_swap<mode>"): Likewise.
6329 ("*sync_double_compare_and_swapdi_pic"): Likewise.
6330 ("*sync_compare_and_swap_cc<mode>"): Likewise.
6331 ("sync_double_compare_and_swap_cc<mode>"): Likewise.
6332 ("*sync_double_compare_and_swap_ccdi_pic"): Likewise.
6333 ("sync_old_add<mode>"): Likewise.
6334 ("sync_lock_test_and_set<mode>"): Likewise.
6335 ("sync_lock_test_and_set<mode>"): Likewise.
6336 ("sync_add<mode>"): Likewise.
6337 ("sync_sub<mode>"): Likewise.
6338 ("sync_ior<mode>"): Likewise.
6339 ("sync_and<mode>"): Likewise.
6340 ("sync_xor<mode>"): Likewise.
6341
ef722005 63422006-10-25 Uros Bizjak <uros@kss-loka.si>
6343
6344 * optabs.h (enum optab_index): Rename OTI_drem to OTI_remainder.
6345 (remainder_optab): Define corresponding macro.
6346 (drem_optab): Remove.
6347 * optabs.c (init_optabs): Initialize remainder_optab. Remove
6348 drem_optab initialization.
6349 * genopinit.c (optabs): Implement remainder_optab using
6350 remainder?f3 patterns. Remove drem_optab.
6351 * builtins.c (expand_builtin_mathfn_2): Handle
6352 BUILT_IN_REMAINDER{,F,L} using remainder_optab.
6353 (expand_builtin): Expand BUILT_IN_REMAINDER{,F,L} using
6354 expand_builtin_mathfn_2.
6355
6356 (expand_builtin) [BUILT_IN_FMOD, BUILT_IN_DREM]: Do not
6357 depend on flag_unsafe_math_optimizations.
6358
6359 * config/i386/i386.md ("remaindersf3", "remainderdf3")
6360 ("remainderxf3"): Renamed from "drem{s,d,x}f3" expanders.
6361 Do not depend on flag_unsafe_math_optimizations. Use
6362 truncxf?f expander instead of truncxf?f_i387_noop.
6363
6364 ("fpremxf4", "fprem1xf4"): Do not depend on
6365 flag_unsafe_math_optimizations.
6366 ("fmodsf3", "fmoddf3", "fmodxf3"): Do not depend on
6367 flag_unsafe_math_optimizations. Use truncxf?f expander
6368 instead of truncxf?f_i387_noop.
6369
6370 * doc/md.texi (fmod, remainder): Document standard named pattern.
6371
49e98091 63722006-10-24 Richard Sandiford <richard@codesourcery.com>
6373 David Daney <ddaney@avtrex.com>
6374
6375 PR middle-end/29519
6376 * rtlanal.c (nonzero_address_p): Remove check for values wrapping.
6377
b44d6960 63782006-10-25 Ben Elliston <bje@au.ibm.com>
6379
6380 * doc/extend.texi (Variable Attributes): Typo fix.
6381
d1918706 63822006-10-24 Uros Bizjak <uros@kss-loka.si>
6383
6384 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Define to 54.
6385 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add fpcr register.
6386 (REG_ALLOC_ORDER): Add one element to allocate fpcr register.
6387 (FRAME_POINTER_REGNUM): Update register number to 21.
6388 (REG_CLASS_CONTENTS): Update contents for added fpcr register.
6389 (HI_REGISTER_NAMES): Add "fpcr" for fpcr register.
6390
6391 * config/i386/i386.c (regclass_map): Add fpcr entry.
6392 (dbx_register_map, dbx64_register_map, svr4_dbx_register_map):
6393 Add fpcr entry.
6394 (print_reg): Assert REGNO (x) != FPCR_REG.
6395
6396 * config/i386/i386.md (FPCR_REG, R11_REG): New constants.
6397 (DIRFLAG_REG): Renumber.
6398 (x86_fnstcw_1, x86_fldcw_1): Use FPCR_REG instead of FPSR_REG.
6399 (*sibcall_1_rex64_v, *sibcall_value_1_rex64_v): Use R11_REG.
6400 (sse_prologue_save, *sse_prologue_save_insn): Renumber
6401 hardcoded SSE register numbers.
6402
6403 * config/i386/mmx.md (mmx_emms, mmx_femms): Renumber
6404 hardcoded MMX register numbers.
6405
728bac60 64062006-10-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6407
6408 PR middle-end/29335
6409 * builtins.c (fold_builtin_sin, fold_builtin_atan): Remove.
6410 (do_mpfr_arg1): Add `min', `max' and `inclusive' arguments.
6411 Update all callers.
6412 (BUILT_IN_SIN, BUILT_IN_ATAN): Handle in main switch.
6413 (BUILT_IN_ASIN, BUILT_IN_ACOS, BUILT_IN_ATAN, BUILT_IN_ASINH,
6414 BUILT_IN_ACOSH, BUILT_IN_ATANH, BUILT_IN_SINH, BUILT_IN_COSH,
6415 BUILT_IN_TANH): Calculate compile-time arguments using MPFR.
6416
b70bfd00 64172006-10-24 Richard Guenther <rguenther@suse.de>
6418
6419 PR middle-end/28796
6420 * builtins.c (fold_builtin_classify): Use HONOR_INFINITIES
6421 and HONOR_NANS instead of MODE_HAS_INFINITIES and MODE_HAS_NANS
6422 for deciding optimizations in consistency with fold-const.c
6423 (fold_builtin_unordered_cmp): Likewise.
6424
acc2b92e 64252006-10-24 Richard Guenther <rguenther@suse.de>
6426
6427 * builtins.c (fold_builtin_floor): Fold floor (x) where
6428 x is nonnegative to trunc (x).
6429 (fold_builtin_int_roundingfn): Fold lfloor (x) where x is
6430 nonnegative to FIX_TRUNC_EXPR.
6431
13f7fd91 64322006-10-24 Richard Guenther <rguenther@suse.de>
6433
6434 PR tree-optimization/29567
6435 * tree-vrp.c (register_edge_assert_for_1): Fix wrong logic
6436 for TRUTH_NOT_EXPR. Clarify comments.
6437
debf9994 64382006-10-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6439
728bac60 6440 PR middle-end/29335
debf9994 6441 * builtins.c (fold_builtin_exponent): Evaluate constant arguments
6442 at compile-time using MPFR. Change parameter VALUE to FUNC,
6443 update all callers.
6444 (do_mpfr_arg1): Rename `exact' to `inexact'. Carefully check
6445 for overflow and underflow at all times and avoid folding in
6446 those cases.
6447
7e806a89 64482006-10-24 Ben Elliston <bje@au.ibm.com>
6449
6450 * reload1.c: Formatting fixes.
6451
e9503646 64522006-10-23 Zdenek Dvorak <dvorakz@suse.cz>
6453
6454 PR tree-optimization/14784
6455 * tree-flow.h (struct var_ann_d): Add is_heapvar bit.
6456 * tree-ssa-structalias.c (get_constraint_for,
6457 intra_create_variable_infos): Set is_heapvar.
6458 * tree-ssa-operands.c (access_can_touch_variable): Do not handle
6459 non-heapvar pointer variables specially.
6460
bffb7645 64612006-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6462
6463 PR middle-end/29335
6464 * builtins.c (fold_builtin_sin, fold_builtin_cos,
6465 fold_builtin_tan): Fold all constant arguments. Take a "type"
6466 argument as necessary.
6467 (do_mpfr_arg1): New.
6468 * real.c, real.h (real_from_mpfr, mpfr_from_real): New.
6469
021f0557 64702006-10-23 Bob Wilson <bob.wilson@acm.org>
6471
6472 * config/xtensa/lib1funcs.asm: Use C-style comments.
6473
54be5d7e 64742006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
6475
6476 * tree.c (local_define_builtin): Replace calls to
6477 lang_hooks.builtin_function with add_builtin_function.
6478 * c-objc-common.h (LANG_HOOKS_BUILTIN_FUNCTION): Define as
6479 c_builtin_function.
6480 * c-tree.h (builtin_function): Rename to c_builtin_function. Change
6481 the signature.
6482 * c-decl.c (builtin_function): Rename to c_builtin_function. Move
6483 common code to add_builtin_function.
6484 * langhooks.c (add_builtin_function): New function.
6485 (lhd_builtin_function): New function.
6486 * langhooks.h (struct lang_hooks): Change the signature of
6487 builtin_function.
6488 (add_builtin_function): New function.
6489 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Replace
6490 calls to lang_hooks.builtin_function with add_builtin_function.
6491 * c-common.c (decl_builtin_1): Replace calls to
6492 lang_hooks.builtin_function with add_builtin_function.
6493 * config/alpha/alpha.c (alpha_init_builtins): Replace calls to
6494 lang_hooks.builtin_function with add_builtin_function.
6495 * config/frv/frv.c (def_builtin): Replace calls to
6496 lang_hooks.builtin_function with add_builtin_function.
6497 * config/s390/s390.c (s390_init_builtins): Replace calls to
6498 lang_hooks.builtin_function with add_builtin_function.
6499 * config/sparc/sparc.c (def_builtin): Replace calls to
6500 lang_hooks.builtin_function with add_builtin_function.
6501 * config/i386/i386.c (def_builtin): Replace calls to
6502 lang_hooks.builtin_function with add_builtin_function.
6503 * config/sh/sh.c (sh_media_init_builtins): Replace calls to
6504 lang_hooks.builtin_function with add_builtin_function.
6505 * config/c4x/c4x.c (c4x_init_builtins): Replace calls to
6506 lang_hooks.builtin_function with add_builtin_function.
6507 * config/stormy16/stormy16.c (xstormy16_init_builtins):
6508 Replace calls to lang_hooks.builtin_function with
6509 add_builtin_function.
6510 * config/iq2000/iq2000.c (def_builtin):
6511 Replace calls to lang_hooks.builtin_function with
6512 add_builtin_function.
6513 * config/ia64/ia64.c (def_builtin): Replace calls to
6514 lang_hooks.builtin_function with add_builtin_function.
6515 * config/rs6000/rs6000.c (def_builtin): Replace calls to
6516 lang_hooks.builtin_function with add_builtin_function.
6517 (altivec_init_builtins): Replace calls to
6518 lang_hooks.builtin_function with add_builtin_function.
6519 * config/arm/arm.c (def_mbuiltin): Replace calls to
6520 lang_hooks.builtin_function with add_builtin_function.
6521 (arm_init_tls_builtins): Replace calls to
6522 lang_hooks.builtin_function with add_builtin_function.
6523 * config/mips/mips.c (mips_init_builtins): Replace calls to
6524 lang_hooks.builtin_function with add_builtin_function.
6525 * config/bfin/bfin.c (def_builtin): Replace calls to
6526 lang_hooks.builtin_function with add_builtin_function.
6527 * langhooks-def.h (lhd_builtin_function): New function.
6528 (LANG_HOOKS_BUILTIN_FUNCTION): Define as lhd_builtin_function.
6529
b356dfef 65302006-10-23 Jakub Jelinek <jakub@redhat.com>
6531
6532 * builtins.c (expand_builtin, maybe_emit_chk_warning): Handle
6533 BUILT_IN_STRNCAT_CHK.
6534
3b1757a2 65352006-10-23 Jan Hubicka <jh@suse.cz>
6536
6537 * builtins.c (expand_builtin_memmove): Remove ORIG_EXP argument;
6538 don't do conversion from memmove to memcpy here.
6539 (expand_builtin_bcopy, expand_builtin): Update call of
6540 expand_builtin_memmove.
6541 (fold_builtin_memory_op): Do folding of memmove to memcpy here.
6542
546e12a7 65432006-10-23 Paul Brook <paul@codesourcery.com>
6544
6545 * stor-layout.c (start_record_layout): maximum_field_alignment
6546 overrides STRUCTURE_SIZE_BOUNDARY.
6547
88f9884f 65482006-10-23 Ulrich Weigand <uweigand@de.ibm.com>
6549
6550 * config/s390/predicates.md ("bras_sym_operand"): Do not accept
6551 nonlocal function symbols if flag_pic.
6552
8a7907c1 65532006-10-23 Richard Guenther <rguenther@suse.de>
6554
6555 PR middle-end/27132
6556 PR middle-end/23295
6557 * builtins.c (fold_binary): Remove checks for flag_wrapv
6558 and flag_trapv where negate_expr_p covers these cases.
6559
65602006-10-23 Richard Guenther <rguenther@suse.de>
6561
6562 PR middle-end/29548
6563 * fold-const.c (fold_plusminus_mult_expr): Check exact power
6564 of two on the absolute value.
6565 (fold_binary): Fold x * -C to -x * C if x is easily negatable
6566 and negating -C does not overflow.
6567
6d9936db 65682006-10-23 Richard Guenther <rguenther@suse.de>
6569
6570 PR middle-end/21032
6571 * convert.c (convert_to_real): Fold (float)-x to -(float)x
6572 only if not flag_rounding_math.
6573
23b81129 65742006-10-22 Richard Sandiford <richard@codesourcery.com>
6575 Kaz Kojima <kkojima@gcc.gnu.org>
6576
6577 PR target/28232
6578 * config/sh/sh.c (expand_block_move): Use a BLKmode rather than
6579 SImode memory reference for the source of a movua.
6580 * config/sh/sh.md (UNSPEC_MOVUA): New macro.
6581 (movua): Use an unspec instead of sign_extract. Expect the source
6582 to have mode BLKmode.
6583 (extv, insv): Use a BLKmode rather than SImode memory reference
6584 for the source of a movua.
6585
fecf3b39 65862006-10-22 Jeff Law <law@redhat.com>
6587 Richard Guenther <rguenther@suse.de>
6588
6589 PR tree-optimization/15911
6590 * tree-vrp.c (extract_code_and_val_from_cond): New function.
6591 (register_edge_assert_for_1): Likewise.
6592 (register_edge_assert_for): Handle &&/&/||/| in conditionals.
6593 (find_conditional_asserts): Adjust for new function signature.
6594 (find_assert_locations): Likewise.
6595
b6a0d8da 65962006-10-22 H.J. Lu <hongjiu.lu@intel.com>
6597
6598 * config/i386/tmmintrin.h: Remove the duplicated content.
6599
2b4894c5 66002006-10-22 H.J. Lu <hongjiu.lu@intel.com>
6601
6602 * config.gcc (i[34567]86-*-*): Add tmmintrin.h to extra_headers.
6603 (x86_64-*-*): Likewise.
6604
6605 * config/i386/i386.c (pta_flags): Add PTA_SSSE3.
6606 (override_options): Check SSSE3.
6607 (ix86_builtins): Add IX86_BUILTIN_PHADDW, IX86_BUILTIN_PHADDD,
6608 IX86_BUILTIN_PHADDSW, IX86_BUILTIN_PHSUBW, IX86_BUILTIN_PHSUBD,
6609 IX86_BUILTIN_PHSUBSW, IX86_BUILTIN_PMADDUBSW,
6610 IX86_BUILTIN_PMULHRSW, IX86_BUILTIN_PSHUFB,
6611 IX86_BUILTIN_PSIGNB, IX86_BUILTIN_PSIGNW, IX86_BUILTIN_PSIGND,
6612 IX86_BUILTIN_PALIGNR, IX86_BUILTIN_PABSB, IX86_BUILTIN_PABSW,
6613 IX86_BUILTIN_PABSD, IX86_BUILTIN_PHADDW128,
6614 IX86_BUILTIN_PHADDD128, IX86_BUILTIN_PHADDSW128,
6615 IX86_BUILTIN_PHSUBW128, IX86_BUILTIN_PHSUBD128,
6616 IX86_BUILTIN_PHSUBSW128, IX86_BUILTIN_PMADDUBSW128,
6617 IX86_BUILTIN_PMULHRSW128, IX86_BUILTIN_PSHUFB128,
6618 IX86_BUILTIN_PSIGNB128, IX86_BUILTIN_PSIGNW128,
6619 IX86_BUILTIN_PSIGND128, IX86_BUILTIN_PALIGNR128,
6620 IX86_BUILTIN_PABSB128, IX86_BUILTIN_PABSW128 and
6621 IX86_BUILTIN_PABSD128.
6622 (bdesc_2arg): Add SSSE3.
6623 (bdesc_1arg): Likewise.
6624 (ix86_init_mmx_sse_builtins): Support SSSE3.
6625 (ix86_expand_builtin): Likewise.
6626 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Likewise.
6627
6628 * config/i386/i386.md (UNSPEC_PSHUFB): New.
6629 (UNSPEC_PSIGN): Likewise.
6630 (UNSPEC_PALIGNR): Likewise.
6631 Include mmx.md before sse.md.
6632
6633 * config/i386/i386.opt: Add -mssse3.
6634
6635 * config/i386/sse.md (ssse3_phaddwv8hi3): New pattern for SSSE3.
6636 (ssse3_phaddwv4hi3): Likewise.
6637 (ssse3_phadddv4si3): Likewise.
6638 (ssse3_phadddv2si3): Likewise.
6639 (ssse3_phaddswv8hi3): Likewise.
6640 (ssse3_phaddswv4hi3): Likewise.
6641 (ssse3_phsubwv8hi3): Likewise.
6642 (ssse3_phsubwv4hi3): Likewise.
6643 (ssse3_phsubdv4si3): Likewise.
6644 (ssse3_phsubdv2si3): Likewise.
6645 (ssse3_phsubswv8hi3): Likewise.
6646 (ssse3_phsubswv4hi3): Likewise.
6647 (ssse3_pmaddubswv8hi3): Likewise.
6648 (ssse3_pmaddubswv4hi3): Likewise.
6649 (ssse3_pmulhrswv8hi3): Likewise.
6650 (ssse3_pmulhrswv4hi3): Likewise.
6651 (ssse3_pshufbv16qi3): Likewise.
6652 (ssse3_pshufbv8qi3): Likewise.
6653 (ssse3_psign<mode>3): Likewise.
6654 (ssse3_psign<mode>3): Likewise.
6655 (ssse3_palignrti): Likewise.
6656 (ssse3_palignrdi): Likewise.
6657 (abs<mode>2): Likewise.
6658 (abs<mode>2): Likewise.
6659
6660 * config/i386/tmmintrin.h: New file.
6661
6662 * doc/extend.texi: Document SSSE3 built-in functions.
6663
6664 * doc/invoke.texi: Document -mssse3/-mno-ssse3 switches.
6665
5f3637fb 66662006-10-22 Ira Rosen <irar@il.ibm.com>
6667
a348d038 6668 * tree-vect-transform.c (vectorizable_load): Use the type of the
6669 return value of the mask_for_load builtin to create realign_load
6670 stmt.
5f3637fb 6671
e30d194b 66722006-10-22 Richard Sandiford <richard@codesourcery.com>
6673
6674 * config/mips/mips.c (mips_split_const): Don't accept bare PLUS
6675 expressions.
6676
eda715e5 66772006-10-21 H.J. Lu <hongjiu.lu@intel.com>
6678
6679 * config/i386/i386.md (UNSPEC_LDQQU): Renamed to ...
6680 (UNSPEC_LDDQU): This.
6681 * config/i386/sse.md (sse3_lddqu): Updated.
6682
7d3afc77 66832006-10-21 Richard Guenther <rguenther@suse.de>
6684
6685 * builtins.c (expand_builtin_int_roundingfn_2): New function.
6686 (expand_builtin): Use it to expand lrint instead of
6687 expand_builtin_mathfn.
6688
feb5b3eb 66892006-10-21 Uros Bizjak <uros@kss-loka.si>
6690
6691 PR middle-end/28252
6692 * builtins.c (fold_builtin): Fold pow(x,1.0/3.0) as cbrt(x) if
6693 flag_unsafe_math_optimizations is set.
6694
fb2989a9 66952006-10-21 Uros Bizjak <uros@kss-loka.si>
6696
6697 PR target/19398
6698 * config/i386/i386.md (fix_trunc?f?i_sse): Add peephole2
6699 patterns to use memory input operand in x87->mem->XMM
6700 reload sequences. Skip transformation for TARGET_K8.
6701
08513917 67022006-10-21 Uros Bizjak <uros@kss-loka.si>
6703
6704 * config/i386/i386.md (extendsfdf2, extendsfxf2, extenddfxf2): Do not
6705 force operand1 to register if both operands are memory operands.
6706 (*extendsfdf2_mixed, *extendsfdf2_sse, *extendsfdf2_i387)
6707 (*extendsfxf2_i387, *extenddfxf2_i387): Do not disable pattern
6708 if both operands are memory operands.
6709 (truncdfsf2): Do not force operand1 to register if both operands
6710 are memory operands.
6711
6a086156 67122006-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6713
6714 * Makefile.in (LIBS): Add $(GMPLIBS).
6715 * doc/install.texi: Update GMP and MPFR requirements.
6716 * doc/sourcebuild.texi (need_gmp): Delete.
6717
cc06222a 67182006-10-21 Richard Guenther <rguenther@suse.de>
6719
6720 PR tree-optimization/3511
6721 * tree-ssa-pre.c (phi_translate): Fold CALL_EXPRs that
6722 got new invariant arguments during PHI translation.
6723
91ceb6b7 67242006-10-21 Richard Guenther <rguenther@suse.de>
6725
6726 PR middle-end/26898
6727 * fold-const.c (fold_comparison): Fold signed comparisons
6728 of the form X +- C1 CMP Y +- C2.
6729
b503e57c 67302006-10-21 Richard Guenther <rguenther@suse.de>
6731
6732 PR target/19116
6733 * config/i386/i386.c (override_options): Do not set MASK_IEEE_FP
6734 if flag_unsafe_math_optimizations is specified. We have
6735 flag_finite_math_only for that.
6736 * config/i386/i386.md (sqrtxf2): Do not require TARGET_IEEE_FP
6737 or flag_unsafe_math_optimizations.
6738
34709e02 67392006-10-21 Richard Guenther <rguenther@suse.de>
6740
6741 * builtins.c (fold_builtin_classify): Fix typo.
6742
b5518e7e 67432006-10-21 Richard Guenther <rguenther@suse.de>
6744
6745 PR middle-end/28796
6746 * simplify-rtx.c (simplify_const_relational_operation):
6747 Do not constant-fold ORDERED and UNORDERED for
6748 flag_unsafe_math_optimizations but only we do not need to
6749 honor NaNs for the given mode.
6750
d11b55fd 67512006-10-21 Richard Guenther <rguenther@suse.de>
6752
6753 PR target/29512
6754 * config/i386/i386.c (classify_argument): Remove redundant
6755 walking of the BINFOs.
6756 (contains_128bit_aligned_vector_p): Likewise.
6757
782f6c8b 67582006-10-20 Mark Mitchell <mark@codesourcery.com>
6759
6760 * BASE-VER: Set to 4.3.0.
6761
91fbe448 67622006-10-20 Daniel Berlin <dberlin@dberlin.org>
6763
6764 * tree.h (DECL_PTA_ARTIFICIAL): Remove.
6765 (tree_decl_with_vis): Remove artificial_pta_var flag.
6766 * tree-flow.h (referenced_var_check_and_insert): Expose.
6767 (nonlocal_all): New prototype.
6768 * tree-ssa-structalias.c (nonlocal_for_type): Remove.
6769 (nonlocal_all): Make global.
6770 (nonlocal_lookup): Remove.
6771 (nonlocal_insert): Ditto.
6772 (create_nonlocal_var): Do not call nonlocal_insert.
6773 (get_nonlocal_id_for_type): Remove.
6774 (find_global_initializers): Mark new vars we find for renaming.
6775 (intra_create_variable_infos): Only create one nonlocal.
6776 (expand_nonlocal_solutions): Remove.
6777 (compute_points_to_sets): Don't call it.
6778 (ipa_pta_execute): Ditto.
6779 (init_alias_heapvars): Don't create nonlocal_for_type.
6780 (delete_alias_heapvars): Don't remove it.
6781 * tree-ssa-operands.c (access_can_touch_variable): Don't prune
6782 nonlocal_all.
6783
91f0ba79 67842006-10-19 Brooks Moses <bmoses@stanford.edu>
6785
6786 * doc/install.texi (Downloading GCC): Clarify mention of
6787 Fortran in the "full distribution" description.
6788
499be8ef 67892006-10-19 Daniel Berlin <dberlin@dberlin.org>
6790
6791 Fix PR tree-optimization/28778
6792 Fix PR tree-optimization/29156
6793 Fix PR tree-optimization/29415
6794 * tree.h (DECL_PTA_ARTIFICIAL): New macro.
6795 (tree_decl_with_vis): Add artificial_pta_var flag.
6796 * tree-ssa-alias.c (is_escape_site): Remove alias info argument,
6797 pushed into callers.
6798 * tree-ssa-structalias.c (nonlocal_for_type): New variable.
6799 (nonlocal_all): Ditto.
6800 (struct variable_info): Add directly_dereferenced member.
6801 (var_escaped_vars): New variable.
6802 (escaped_vars_tree): Ditto.
6803 (escaped_vars_id): Ditto.
6804 (nonlocal_vars_id): Ditto.
6805 (new_var_info): Set directly_dereferenced.
6806 (graph_size): New variable
6807 (build_constraint_graph): Use graph_size.
6808 (solve_graph): Don't process constraints that cannot change the
6809 solution, don't try to propagate an empty solution to our
6810 successors.
6811 (process_constraint): Set directly_dereferenced.
6812 (could_have_pointers): New function.
6813 (get_constraint_for_component_ref): Don't process STRING_CST.
6814 (nonlocal_lookup): New function.
6815 (nonlocal_insert): Ditto.
6816 (create_nonlocal_var): Ditto.
6817 (get_nonlocal_id_for_type): Ditto.
6818 (get_constraint_for): Allow results vector to be empty in the case
6819 of string constants.
6820 Handle results of calls properly.
6821 (update_alias_info): Update alias info stats on number and type of
6822 calls.
6823 (find_func_aliases): Use could_have_pointers.
6824 (make_constraint_from_escaped): Renamed from
6825 make_constraint_to_anything, and changed to make constraints from
6826 escape variable.
6827 (make_constraint_to_escaped): New function.
6828 (find_global_initializers): Ditto.
6829 (create_variable_info_for): Make constraint from escaped to any
6830 global variable, and from any global variable to the set of
6831 escaped vars.
6832 (intra_create_variable_infos): Deal with escaped instead of
6833 pointing to anything.
6834 (set_uids_in_ptset): Do type pruning on directly dereferenced
6835 variables.
6836 (find_what_p_points_to): Adjust call to set_uids_with_ptset.
6837 (init_base_vars): Fix comment, and initialize escaped_vars.
6838 (need_to_solve): Removed.
6839 (find_escape_constraints): New function.
6840 (expand_nonlocal_solutions): Ditto.
6841 (compute_points_to_sets): Call find_escape_constraints and
6842 expand_nonlocal_solutions.
6843 (delete_points_to_sets): Don't fall off the end of the graph.
6844 (init_alias_heapvars): Initialize nonlocal_for_type and
6845 nonlocal_all.
6846 (delete_alias_heapvars): Free nonlocal_for_type and null out
c4f8e01f 6847 nonlocal_all.
499be8ef 6848
81035ec1 68492006-10-19 Eric Botcazou <ebotcazou@adacore.com>
6850
6851 * fold-const.c (add_double): Rename to add_double_with_sign.
6852 Add 'unsigned_p' parameter and take it into account for the overflow.
c4f8e01f 6853 (mul_double): Rename to mul_double_with_sign.
81035ec1 6854 Add 'unsigned_p' parameter and take it into account for the overflow.
6855 (fold_div_compare): Call add_double_with_sign instead of add_double
6856 and mul_double_with_sign instead of mul_double, passing them the
6857 unsignedness of the type.
6858 * tree.h (add_double): Macroize.
6859 (add_double_with_sign): New prototype.
6860 (mul_double): Macroize.
6861 (mul_double_with_sign): New prototype.
6862
ee0ff922 68632006-10-19 Chen Liqin <liqin@sunnorth.com.cn>
6864
a348d038 6865 * config/score/crti.asm: New file.
6866 * config/score/crtn.asm: New file.
6867 * config/score/elf.h: New file.
6868 * config/score/mac.md: New file.
6869 * config/score/misc.md: New file.
6870 * config/score/mul-div.S: New file.
6871 * config/score/predicates.md: New file.
6872 * config/score/score7.md: New file.
6873 * config/score/score.c: New file.
6874 * config/score/score-conv.h: New file.
6875 * config/score/score.h: New file.
6876 * config/score/score.md: New file.
6877 * config/score/score-mdaux.c: New file.
6878 * config/score/score-mdaux.h: New file.
6879 * config/score/score-modes.def: New file.
6880 * config/score/score.opt: New file.
6881 * config/score/score-protos.h: New file.
6882 * config/score/score-version.h: New file.
6883 * config/score/t-score-elf: New file.
6884 * config.gcc: Add score*-*-* configurations(Update before).
6885 * doc/invoke.texi (Score Options): New section.
6886 * doc/md.texi (Score family): New section to document constraints.
ee0ff922 6887
15b00d63 68882006-10-19 Nick Clifton <nickc@redhat.com>
6889
6890 * config/arm/arm.c: Fix spelling typo.
6891
b5a464e0 68922006-10-18 Tom Tromey <tromey@redhat.com>
6893
6894 * doc/install.texi (Prerequisites): Mention automake 1.9.6.
6895
9aba3cd4 68962006-10-18 Jan Hubicka <jh@suse.cz>
6897
6898 PR middle-end/29299
6899 * cfgexpand.c (expand_used_vars_for_block): Vars marked used by user
6900 are used.
6901
ef9de318 69022006-10-18 Marcin Dalecki <martin@dalecki.de>
6903
6904 * omp-low.c (expand_parallel_call): Use BSI_SAME_STMT instead of
6905 TSI_SAME_STMT, since that's the desired entity.
6906
59bc01b3 69072006-10-17 Wolfgang Gellerich <gellerich@de.ibm.com>
6908
6909 * config/s390/contraints.md: New file.
a348d038 6910 * config/s390/s390-protos.h (s390_mem_constraint,
c4f8e01f 6911 s390_O_constraint_str, s390_N_constraint_str,
59bc01b3 6912 s390_float_const_zero_p): Function prototypes added.
c4f8e01f 6913 * config/s390/s390.c (s390_extra_constraint_str,
6914 s390_const_double_ok_for_constraint_p,
59bc01b3 6915 s390_const_ok_for_constraint_p): Functions removed.
a348d038 6916 (s390_mem_constraint, s390_O_constraint_str, s390_N_constraint_str,
59bc01b3 6917 s390_float_const_zero_p): New functions.
6918 * config/s390/s390.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_CONSTRAINT_P,
c4f8e01f 6919 CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR,
6920 EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT, CONSTRAINT_LEN):
59bc01b3 6921 Macro definitions removed.
6922 (s390_const_ok_for_constraint_p, s390_const_double_ok_for_constraint_p,
6923 s390_extra_constraint_str): Functions removed.
6924
06eca8b8 69252006-10-17 Andrew Pinsiki <pinskia@gmail.com>
6926 Richard Sandiford <richard@codesourcery.com>
6927
1c67998a 6928 PR target/29413
06eca8b8 6929 * config/mips/linux.h (SUBTARGET_CC1_SPEC): Override.
6930 * config/mips/mips.h (CC1_SPEC): Override any earlier definition.
6931
bc5c9982 69322006-10-16 Geoffrey Keating <geoffk@apple.com>
6933
6934 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Move to rs6000.h.
6935 (DWARF2_FRAME_REG_OUT): Likewise.
6936 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Move from sysv4.h.
6937 (DWARF2_FRAME_REG_OUT): Likewise.
6938
bd7a45c4 69392006-10-17 Paul Brook <paul@codesourcery.com>
6940
6941 * config/arm/arm.c (arm_rtx_costs_1): Handle multiply-accumulate.
6942
0d0147a5 69432006-10-16 Brooks Moses <bmoses@stanford.edu>
6944
6945 * doc/contrib.texi, doc/install.texi, doc/standards.texi:
6946 Standardize on "GNU Fortran" as the official name of the Fortran
6947 compiler.
6948
5b182752 69492006-10-16 Mike Stump <mrs@apple.com>
6950
89e055a8 6951 * doc/invoke.texi (Darwin Options): Document -mkernel.
5b182752 6952 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Add
6953 -mkernel support.
6954 (C_COMMON_OVERRIDE_OPTIONS): Add -mkernel support. Add
6955 SUBTARGET_C_COMMON_OVERRIDE_OPTIONS callout.
6956 (CC1_SPEC): Don't turn on -fPIC when -mkernel is given.
6957 (OS_MISSING_ALTIVEC): Add.
6958 * config/i386/i386.c (override_options): Add
6959 SUBSUBTARGET_OVERRIDE_OPTIONS callout.
6960 * config/i386/darwin.h (CC1_SPEC): Don't turn on -fPIC when
6961 -mkernel, -static or -mdynamic-no-pic is given.
6962 (C_COMMON_OVERRIDE_OPTIONS): Add.
6963 * config/darwin.opt (fapple-kext): Add.
6964 (mkernel): Add.
6965 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add
6966 -fapple-kext, -findirect-virtual-calls, -fterminated-vtables and
6967 -mkernel support.
6968 (SUBSUBTARGET_OVERRIDE_OPTIONS): Add.
6969 (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Add.
6970 (CPP_SPEC): Move defines for __DYNAMIC__ and __STATIC__ from here...
6971 (SUBTARGET_ATTRIBUTE_TABLE): Add apple_kext_compatibility.
6972 (TARGET_CXX_CDTOR_RETURNS_THIS): Add.
6973 (flag_mkernel): Add.
6974 (flag_apple_kext): Add.
6975 (TARGET_KEXTABI): Add.
6976 * config/darwin.c (darwin_handle_kext_attribute): Add.
6977 (DARWIN_VTABLE_P): Add.
6978 (darwin_binds_local_p): Add partial support for rebinding vtables
6979 in kexts.
6980 (darwin_kextabi_p): Add.
6981 (darwin_override_options): Add.
6982 * config/darwin-protos.h (darwin_handle_kext_attribute): Add.
6983 (darwin_kextabi_p): Add.
6984 (darwin_override_options): Add.
6985 * config/darwin-c.c (darwin_cpp_builtins): ... move defines for
6986 __DYNAMIC__ and __STATIC__ here.
6987
bf8eaea9 69882006-10-16 Brooks Moses <bmoses@stanford.edu>
6989
6990 * doc/sourcebuild.texi, doc/makefile.texi, doc/install.texi:
6991 Added mention of "make pdf" target, and Texinfo requirements for
6992 same.
6993
5c61fcb6 69942006-10-16 DJ Delorie <dj@redhat.com>
6995
6996 * config/s390/s390.c (s390_decompose_address): Allow symbol+offset
6997 into the GOT in case we need a subreg of the address.
6998
e2d5ef68 69992006-10-16 Richard Guenther <rguenther@suse.de>
7000
7001 PR target/25519
7002 * doc/extend.texi (X86 Built-in Functions): Fix typos in
7003 SSE builtin documentation. Document SSE2 builtins.
7004
4699015f 70052006-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7006
22ae655f 7007 * pa64-hpux.h (LINK_SPEC): Force __cxa_finalize to be an undefined
7008 symbol in the output file for non-shared links when -nostdlib or
7009 -nodefaultlibs isn't specified.
7010
4699015f 7011 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*): Default to
7012 posix thread support.
7013
46b2c17d 70142006-10-15 Jan Hubicka <jh@suse.cz>
7015
7016 PR middle-end/29241
7017 * cgraphunit.c (cgraph_preserve_function_body_p): Preserve functions
7018 declared always_inline even when not inlining.
7019
189575ff 70202006-10-15 Eric Botcazou <ebotcazou@libertysurf.fr>
a348d038 7021 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7022 Andrew Pinski <pinskia@gmail.com>
189575ff 7023
7024 PR middle-end/29111
7025 * builtins.c (get_pointer_alignment): Return 0 if TER is not run.
7026
c17d0de1 70272006-10-15 Jan Hubicka <jh@suse.cz>
a348d038 7028 Richard Guenther <rguenther@suse.de>
c17d0de1 7029
7030 PR middle-end/29299
7031 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
7032 process_function_and_variable_attributes on all variables, including
7033 those discovered during cgraph construction phase.
7034
312f4798 70352006-10-15 Bernhard Fischer <aldot@gcc.gnu.org>
7036
7037 * final.c: Update Copyright year. Commentary typo fix. Fix whitespace
7038
33f5c1b6 70392006-10-14 Uros Bizjak <uros@kss-loka.si>
7040
7041 * config/i386/athlon.md (athlon_fist): Add fisttp.
7042
17e11d99 70432006-10-13 David Edelsohn <edelsohn@gnu.org>
7044 Ian Lance Taylor <ian@airs.com>
7045
7046 PR middle-end/29250
7047 * expr.c (expand_expr_real_1) <NON_LVALUE_EXPR, NOP_EXPR,
7048 CONVERT_EXPR>: Change EXPAND_SUM modifier to EXPAND_NORMAL when
7049 recursing.
7050
c5c5ead9 70512006-10-14 Kazu Hirata <kazu@codesourcery.com>
7052
7053 * config/score/score.c, config/score/score.h: Fix comment
7054 typos.
7055
424b35f3 70562006-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7057
7058 PR bootstrap/29402
7059 * Makefile.in (ALL_GTFILES_H): Use $(sort ...) instead of
7060 shell pipeline.
7061
119bf763 70622006-10-13 Eric Christopher <echristo@apple.com>
7063
7064 * config/darwin.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7065
d42924e0 70662006-10-13 Carlos O'Donell <carlos@codesourcery.com>
7067
7068 Revert this change:
7069 2006-10-13 Carlos O'Donell <carlos@codesourcery.com>
7070 * config/elfos.h (MAX_OFILE_ALIGNMENT): Default to largest
7071 alignment supported by 32-bit ELF.
7072
3469b0cf 70732006-10-13 Eric Christopher <echristo@apple.com>
7074
7075 * config/darwin.c (darwin_emit_unwind_label): Strip
7076 name encoding. Use DECL_ASSEMBLER_NAME_SET_P.
7077
79f0a894 70782006-10-13 Richard Guenther <rguenther@suse.de>
7079
7080 PR tree-optimization/29446
7081 * tree-vrp.c (fix_equivalence_set): Remove.
7082 (extract_range_from_assert): Do not call fix_equivalence_set.
7083 (debug_value_range): Print a newline.
7084 (compare_name_with_value): For equivalence sets with
7085 inconsistent value ranges conservatively bail out.
7086 (compare_names): Likewise.
7087
7fe61202 70882006-10-13 David Edelsohn <edelsohn@gnu.org>
7089
7090 * doc/install.texi (*-ibm-aix*): Add comment about 32-bit GMP
7091 and MPFR for gfortran.
7092
ef37832c 70932006-10-13 Carlos O'Donell <carlos@codesourcery.com>
7094
7095 * config/elfos.h (MAX_OFILE_ALIGNMENT): Default to largest
7096 alignment supported by 32-bit ELF.
7097
b7d1b569 70982006-10-13 Paolo Bonzini <bonzini@gnu.org>
7099
7100 PR c/29092
7101
ca2832e4 7102 * c-typeck.c (digest_init): Always allow initializing vectors
b7d1b569 7103 that have static storage duration with compound literals.
7104 * tree.c (build_type_attribute_qual_variant): New, based on
7105 build_type_attribute_variant.
7106 (build_type_attribute_variant): Rewrite using the former.
7107 (make_vector_type): Use build_type_attribute_qual_variant to build
7108 type variants. Use type_hash_canon on the others.
7109
28661157 71102006-10-13 Daniel Berlin <dberlin@dberlin.org>
7111 Ramana Radhakrishnan <ramana.radhakrishnan@celunite.com>
7112
7113 * tree-flow-inline.h (zero_ssa_operands): Fix comment.
7114
c902ba74 71152006-10-12 Jan Hubicka <jh@suse.cz>
7116
7117 PR c/28419
7118 * c-decl.c (c_make_fname_decl): Do not segfault in case where
7119 current_function_decl is set but current_function_scope is not.
7120
acc51120 71212006-10-12 Jie Zhang <jie.zhang@analog.com>
7122
7123 * config/bfin/bfin.md (eh_return): Call emit_jump_insn instead of
7124 emit_insn to emit eh_return_internal instruction.
7125 (eh_return_internal): Explicitly set pc.
7126
e3625844 71272006-10-11 Richard Guenther <rguenther@suse.de>
7128
7129 PR tree-optimization/28230
7130 * tree-vrp.c (vrp_int_const_binop): Move flag_wrapv handling
7131 to the correct place.
7132
4948a3d6 71332006-10-11 Richard Guenther <rguenther@suse.de>
7134
7135 PR inline-asm/29119
7136 * gimplify.c (gimplify_asm_expr): Mark the gimplified lvalue
7137 addressable.
7138
51f93521 71392006-10-10 Brooks Moses <bmoses@stanford.edu>
7140
7141 * configure.ac: Added pdf to "Make-hooks"
7142 * Makefile.in: Added TEXI2PDF definition, and various pdf-file
7143 targets and *.pdf file patterns in cleanup targets.
7144 * configure: Regenerated.
7145
dbe3755b 71462006-10-10 Anatoly Sokolov <aesok@post.ru>
7147
7148 * config/avr/predicates.md: New file.
7149 * config/avr/avr.md: Include it.
7150 (REG_SP): New constant.
7151 (peepholes): Use predicates.
7152 (sbrx_branch, sbrx_and_branchhi, sbrx_and_branchsi, branch, rvbranch,
7153 difficult_branch, difficult_rvbranch, cbi, sbi, sbix_branch,
7154 sbix_branch_bit7, sbix_branch_tmp, sbix_branch_tmp_bit7): Ditto.
7155
86e5a972 71562006-10-10 Adam Nemet <anemet@caviumnetworks.com>
7157
7158 * config/mips/mips.c (mips_save_restore_reg): Use gen_frame_mem to
7159 avoid alias set 0.
7160
e973ffcc 71612006-10-10 Jakub Jelinek <jakub@redhat.com>
7162
7163 PR middle-end/29272
7164 * builtins.c (var_decl_component_p): New function.
7165 (fold_builtin_memset, fold_builtin_memory_op): Restrict
7166 single entry optimization to variables and components thereof.
7167
cf7c4516 71682006-10-10 Richard Guenther <rguenther@suse.de>
7169
7170 PR rtl-optimization/29323
7171 * except.c (set_nothrow_function_flags): For functions
7172 that do not bind local bail out early.
7173
5d5733c6 71742006-10-10 Ben Elliston <bje@au.ibm.com>
7175
7176 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -m to the
7177 -mdlmzb option.
7178
5c3667a1 71792006-10-09 Richard Henderson <rth@redhat.com>
7180
7181 Revert emutls patch.
7182
bd09cd3e 71832006-10-09 Richard Guenther <rguenther@suse.de>
7184
7185 PR middle-end/29254
7186 * cgraphunit.c (verify_cgraph_node): Bail out on earlier
7187 errors.
7188
f406e07e 71892006-10-09 Steve Ellcey <sje@cup.hp.com>
7190
7191 PR target/27880
7192 * unwind-c.c (PERSONALITY_FUNCTION): Ifdef use of _Unwind_GetIPInfo.
7193 * configure.ac (HAVE_GETIPINFO): Check for _Unwind_GetIPInfo.
7194 * configure: Regenerate.
7195 * config.in: Regenerate.
7196
28f1e21f 71972006-10-09 Aldy Hernandez <aldyh@redhat.com>
7198
ca2832e4 7199 * tree-mudflap.c (mf_xform_derefs_1): Add parentheses around TREE_TYPE.
28f1e21f 7200
73816ab1 72012006-10-08 Richard Sandiford <richard@codesourcery.com>
7202
7203 * config/mips/mips.c (mips_legitimize_tls_address): Implement
7204 all TLS models in the same way as local exec if !TARGET_ABICALLS.
7205 Remove stray newline.
7206
345b1590 72072006-10-08 Richard Sandiford <richard@codesourcery.com>
7208
7209 * config/mips/mips.c (mips_classify_symbol): Do not return
7210 SYMBOL_SMALL_DATA if SYMBOL_REF_WEAK.
7211 (mips_in_small_data_p): Tweak comments.
7212
3aa446da 72132006-10-08 Richard Sandiford <richard@codesourcery.com>
7214
7215 * config/mips/elf.h (HANDLE_PRAGMA_PUSH_POP): Define.
7216
eed50407 72172006-10-07 Kazu Hirata <kazu@codesourcery.com>
7218
7219 * gimplify.c, sched-int.h: Fix comment typos.
7220
8e3eaeaf 7221 * sched-int.h: Fix comment typos.
7222
fd27912f 72232006-10-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7224
7225 * sched-int.h (IS_SPECULATION_CHECK_P, IS_SPECULATION_SIMPLE_CHECK_P):
7226 New macros.
7227 * sched-ebb.c (begin_schedule_ready): Use them.
7228 * haifa-sched.c (schedule_insn, move_insn, try_ready,
7229 add_to_speculative_block, create_check_block_twin, speculate_insn,
7230 fix_jump_move, move_block_after_check): Ditto.
7231 * sched-rgn.c (new_ready): Ditto.
7232
2521f35f 72332006-10-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7234
7235 PR rtl-optimization/29128
7236 * sched-int.h (IS_SPECULATION_BRANCHY_CHECK_P): New macro.
7237 * sched-ebb.c (advance_target_bb): Use it to fix condition to
7238 allow interblock movement of speculation checks.
7239
9b6564b5 72402006-10-06 Zdenek Dvorak <dvorakz@suse.cz>
7241
7242 PR middle-end/29256
7243 * tree-ssa-loop-ivopts.c (determine_base_object): Handle pointers
7244 casted to integer type.
7245 (get_address_cost): Decrease cost of [symbol + index] addressing modes
7246 if they are significantly more expensive than [reg + index] ones.
7247
3e69d97d 72482006-10-06 Jakub Jelinek <jakub@redhat.com>
7249
62761183 7250 PR tree-optimization/29330
7251 * tree-data-ref.c (free_data_ref): Use DR_FREE_ACCESS_FNS macro.
7252 (initialize_data_dependence_relation): Clear DDR_LOOP_NEST pointer
7253 on newly allocated ddrs.
7254 (find_loop_nest_1, find_loop_nest): Change LOOP_NEST to a pointer
7255 to VEC (loop_p, heap) pointer.
7256 (compute_data_dependences_for_loop): Adjust caller.
7257 (free_dependence_relations): Free DDR_LOOP_NEST.
7258
7259 * tree-loop-linear.c (linear_transform_loops): Don't forget to
7260 free DEPENDENCE_RELATIONS and DATAREFS.
7261
3e69d97d 7262 PR target/28924
7263 * builtins.c (expand_builtin_sync_operation,
7264 expand_builtin_compare_and_swap, expand_builtin_lock_test_and_set):
7265 Use convert_to_mode to handle promoted arguments.
7266
85a76dc8 72672006-10-06 J"orn Rennecke <joern.rennecke@st.com>
7268
7269 * print-tree.c (print_node_brief, print_node): Print sign of Inf.
7270
d44c5496 72712006-10-06 J"orn Rennecke <joern.rennecke@st.com>
7272
7273 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Define.
7274
c6307a1e 72752006-10-05 Uros Bizjak <uros@kss-loka.si>
7276
7277 * config/i386/sync.md ("sync_add<mode>", "sync_sub<mode>",
7278 "sync_ior<mode>", "sync_and<mode>", "sync_xor<mode>"):
7279 Use <modeconstraint> instead of "r" as operand 1 constraint.
7280
6e8435a1 72812006-10-06 Olivier Hainque <hainque@adacore.com>
3469b0cf 7282
6e8435a1 7283 * gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]:
7284 Don't recurse on the pointed-to type.
7285 * c-decl.c (grokdeclarator) [cdk_pointer]: If we are in a NORMAL or
7286 DECL context, attach an artificial TYPE_DECL to anonymous pointed-to
7287 types with components of variable size.
7288
8057d305 72892006-10-06 Danny Smith <dannysmith@users.sourceforge.net>
7290
8defa33e 7291 * config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.
8057d305 7292
69d99d08 72932006-10-06 Jakub Jelinek <jakub@redhat.com>
7294
3be2994e 7295 PR tree-optimization/29290
7296 * tree-loop-linear.c (linear_transform_loops): Bail if loop_nest has
7297 multiple exits.
7298
8d3480ed 7299 PR target/29198
7300 * config/i386/i386.c (legitimize_pic_address): Reject TLS symbols.
7301 * config/i386/predicates.md (local_symbolic_operand): Likewise.
7302
69d99d08 7303 PR c/29091
7304 * varasm.c (output_constant): If TREE_VECTOR_CST_ELTS chain is shorter than
7305 the number of vector elements fill the rest with zeros.
7306
12b49fa5 73072006-10-05 Richard Sandiford <richard@codesourcery.com>
7308
7309 * config/mips/mips.c (mips_pass_by_reference): Do not return false
7310 for EABI if type is NULL. Use a size check based on GET_MODE_SIZE
7311 instead.
7312
8c9eef63 73132006-10-05 Bernd Schmidt <bernd.schmidt@analog.com>
7314
7315 * config/bfin/bfin.md (subsi3): Lose expander, change previously
7316 unnamed pattern into subsi3. Use correct constraints/predicates.
7317 * config/bfin/bfin.h (CONST_OK_FOR_K): Handle "KN7".
7318 * config/bfin/predicates.md (reg_or_neg7bit_operand_p): New.
7319
009860bf 73202006-10-05 Ira Rosen <irar@il.ibm.com>
7321
7322 * doc/loop.texi: Add data references analysis description.
7323
7be3c866 73242006-10-04 Brooks Moses <bmoses@stanford.edu>
7325
7326 * doc/gcov.texi: Add formatting to "Invoking gcov" section head.
7327
2551f8e0 73282006-10-04 Richard Henderson <rth@redhat.com>
7329 Jakub Jelinek <jakub@redhat.com>
7330
7331 * Makefile.in (libgcc.mk, LIBGCC_DEPS): Add emutls.c.
ca2832e4 7332 * builtin-types.def (BT_WORD): Make unsigned.
7333 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
7334 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
7335 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
7336 * c-decl.c (grokdeclarator): Don't error if !have_tls.
7337 * c-parser.c (c_parser_omp_threadprivate): Likewise.
2551f8e0 7338 * cgraph.c (decide_is_variable_needed): Look at force_output.
7339 Recurse for emulated tls.
7340 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Remove
7341 checks redundant with decide_is_variable_needed.
7342 (cgraph_build_static_cdtor): Do cgraph_varpool_assemble_pending_decls.
ca2832e4 7343 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
7344 emulated tls.
7345 * expr.c (emutls_var_address): New.
2551f8e0 7346 (expand_expr_real_1): Expand emulated tls.
7347 (expand_expr_addr_expr_1): Likewise.
ca2832e4 7348 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
7349 * output.h (emutls_finish): Declare.
7350 * toplev.c (compile_file): Call it.
2551f8e0 7351 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
7352 address before wrapping in CONST.
ca2832e4 7353 * varasm.c (emutls_htab, emutls_object_type): New.
7354 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
2551f8e0 7355 (get_emutls_object_name, get_emutls_object_type): New.
7356 (get_emutls_init_templ_addr, emutls_decl): New.
7357 (emutls_common_1, emutls_finish): New.
ca2832e4 7358 (assemble_variable): When emulating tls, swap decls; generate
2551f8e0 7359 constructor for the emutls objects.
7360 (do_assemble_alias): When emulating tls, swap decl and target name.
ca2832e4 7361 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
7362 for emulated tls.
2551f8e0 7363 * emutls.c: New file.
ca2832e4 7364 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
7365 tls_object for real tls.
2551f8e0 7366
5e156a9d 73672006-10-04 Zack Weinberg <zackw@panix.com>
7368
7369 Fix bug in constraint-check generator, reported by Rask Ingemann
7370 Lambertsen:
7371 * genpreds.c (add_constraint): Don't remove anything from the
7372 expression here.
7373 (write_tm_constrs_h): Detect whether "op" argument is used, and
7374 mark it ARG_UNUSED if it isn't.
7375 (write_insn_const_int_ok_for_constraint): Skip the part of the
7376 expression that would test whether "op" (which is not available
7377 here) is a CONST_INT.
7378
9a0aa4d3 73792006-10-04 Ryan Mansfield <rmansfield@qnx.com>
7380
7381 PR c++/28448
7382 * doc/invoke.texi (fdiagnostics-show-option): Fix typos.
7383
affc4a5b 73842006-10-03 Geoffrey Keating <geoffk@apple.com>
7385
7386 * config/i386/darwin-libgcc.10.5.ver: Update to symbol list for
7387 current Leopard versions.
7388 * config/rs6000/darwin-libgcc.10.5.ver: Likewise.
7389
cdab3c63 73902006-10-03 Kazu Hirata <kazu@codesourcery.com>
7391
7392 * doc/install.texi: Fix typos.
7393
3a69c60c 73942006-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
7395
7396 * builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.
7397 * doc/tm.texi (Basic Stack Layout): Document FRAME_ADDR_RTX.
7398 * config/sparc/sparc.h (FRAME_ADDR_RTX): Define.
7399
c7b5e79e 74002006-10-02 Jack Howarth <howarth@bromo.med.uc.edu>
7401
7402 * unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first
7403 arg to be struct mach_header_64* instead.
7404
0aa655a0 74052006-10-02 Jakub Jelinek <jakub@redhat.com>
7406
7407 PR c/29154
7408 * gimplify.c (gimplify_self_mod_expr): Run inner expression's post
7409 side effects after the outer expression's post side effects.
7410
9f35f9b2 74112006-10-01 Sandra Loosemore <sandra@codesourcery.com>
7412
7413 * tree.h (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): Fix
7414 comments to reflect actual behavior and relationship between
7415 DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET, and DECL_OFFSET_ALIGN.
7416
7417 * doc/c-tree.texi (Working with declarations): Fix documentation
7418 of FIELD_DECL likewise.
7419
b7aa2b22 74202006-10-01 Ryan Mansfield <rmansfield@qnx.com>
7421
7422 PR c/20533
5e156a9d 7423 * doc/extend.texi: Add used variable attribute description.
b7aa2b22 7424
f1f157ae 74252006-09-30 Joseph S. Myers <joseph@codesourcery.com>
7426
7427 PR c/24010
7428 * c.opt (Woverride-init): New.
7429 * c-opts.c (c_common_post_options): Default warn_override_init to
7430 extra_warnings.
7431 * c-typeck.c (add_pending_init, output_init_element): Warn for
7432 overriding initializers without side effects.
7433 * doc/invoke.texi (-Woverride-init): Document.
7434 (-Wextra): Update.
7435
0264b815 74362006-09-30 Eric Botcazou <ebotcazou@libertysurf.fr>
7437
7438 PR rtl-optimization/28096
7439 * ifcvt.c (check_cond_move_block): Return FALSE if the source of an
7440 assignment has already been used as a destination earlier in the block.
7441
74422006-09-29 Eric Botcazou <ebotcazou@adacore.com>
2c8a1497 7443
7444 * builtins.c (expand_builtin_setjmp): Delete.
7445 (expand_builtin) <BUILT_IN_SETJMP>: Mark as unreachable.
7446 <BUILT_IN_SETJMP_SETUP>: New case.
7447 <BUILT_IN_SETJMP_DISPATCHER>: Likewise.
7448 <BUILT_IN_SETJMP_RECEIVER>: Likewise.
7449 * builtins.def (BUILT_IN_SETJMP_SETUP): New built-in stub.
7450 (BUILT_IN_SETJMP_DISPATCHER): Likewise.
7451 (BUILT_IN_SETJMP_RECEIVER): Likewise.
7452 * gimple-low.c (struct lower_data): New field calls_builtin_setjmp.
7453 (lower_function_body): Initialize it to false. If it is set to true
7454 at the end of the processing, emit the setjmp dispatcher.
7455 (lower_stmt) <CALL_EXPR>: Invoke lower_builtin_setjmp if the callee
7456 is __builtin_setjmp and set calls_builtin_setjmp to true as well.
7457 <MODIFY_EXPR>: Fall through to above case if there is a CALL_EXPR
7458 on the rhs of the assignment.
7459 (lower_builtin_setjmp): New function.
7460 * tree.c (build_common_builtin_nodes): Build BUILT_IN_SETJMP_SETUP,
7461 BUILT_IN_SETJMP_DISPATCHER and BUILT_IN_SETJMP_RECEIVER nodes.
7462 * tree-cfg.c (make_exit_edges) <CALL_EXPR>: Use specific predicate
7463 to detect calls that can go to non-local labels. Use specific
7464 helper to create the abnormal edges associated with them.
7465 <MODIFY_EXPR>: Likewise.
7466 (make_abnormal_goto_edges): New function extracted from...
7467 (make_goto_expr_edges): ...here. Call it for computed gotos.
7468 (simple_goto_p): Minor tweak.
7469 (tree_can_make_abnormal_goto): New predicate.
7470 (tree_redirect_edge_and_branch): Return zero on all abnormal edges.
7471 (tree_purge_dead_abnormal_call_edges): New function.
7472 * tree-flow.h (tree_can_make_abnormal_goto): Declare.
7473 (tree_purge_dead_abnormal_call_edges): Likewise.
7474 (make_abnormal_goto_edges): Likewise.
7475 * tree-inline.c (expand_call_inline): Simplify statement frobbing.
7476 Purge all dead abnormal edges if the call was in the last statement.
7477 * tree-optimize.c (has_abnormal_outgoing_edge_p): New predicate.
7478 (execute_fixup_cfg): If there are non-local labels in the function,
7479 scan the basic blocks and split them at calls that can go to non-local
7480 labels or add missing abnormal call edges. Write down the CFG in the
7481 dump file.
7482 (pass_fixup_cfg): Remove TODO_dump_func flag.
7483 * unwind-sjlj.c: Poison setjmp.
7484 * doc/install.texi (enable-sjlj-exceptions): Use more general wording.
7485 * doc/tm.texi (DWARF2_UNWIND_INFO): Likewise.
7486 (TARGET_UNWIND_TABLES_DEFAULT): Fix typo.
7487 (DONT_USE_BUILTIN_SETJMP): Document it.
7488
23e97733 74892006-09-28 Geoffrey Keating <geoffk@apple.com>
7490
7491 PR target/28617
7492 * config/rs6000/rs6000.h [IN_LIBGCC2] (TARGET_POWERPC64): Define
7493 to 1 when __ppc64__ is defined.
7494 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Add ppc64-fp.c and
7495 darwin-64.c.
7496 * config/rs6000/ppc64-fp.c: Also compile when __ppc64__ is defined.
7497
620f139b 74982006-09-28 Steve Ellcey <sje@cup.hp.com>
7499
7500 * config/ia64/t-hpux (LIB2FUNCS_EXTRA): Remove unwind-hpux.c.
7501 * config/ia64/unwind-hpux.c: Delete.
7502
18272fb7 75032006-09-28 Eric Botcazou <ebotcazou@adacore.com>
7504
7505 * gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr
7506 on the element before gimplifying it, instead of punting if it is of
7507 variable size.
7508
93d414c9 75092006-09-28 Zdenek Dvorak <dvorakz@suse.cz>
7510
7511 * doc/loop.texi: New file.
7512 * doc/gccint.texi: Reference loop.texi.
7513 * Makefile.in (loop.texi): Add.
7514
6a53b02d 75152006-09-27 Geoffrey Keating <geoffk@apple.com>
7516
7517 * config/darwin.h (ENABLE_EXECUTE_STACK): New, use getpagesize not
7518 __sysctl.
7519 * config/rs6000/darwin.h (ENABLE_EXECUTE_STACK): Remove.
7520 * config/i386/darwin.h (ENABLE_EXECUTE_STACK): Remove.
7521
8d737105 75222006-09-28 Kaz Kojima <kkojima@gcc.gnu.org>
7523
7524 * config/sh/sh.md (divsi_inv_m0): Remove unused variable.
7525
112f3d57 75262006-09-27 Steven G. Kargl <kargl@gcc.gnu.org>
7527
7528 * doc/install.texi: Document required versions of GMP and MPFR.
7529
cdb1295a 75302006-09-27 Paul Brook <paul@codesourcery.com>
7531
7532 PR target/29230
7533 * config/arm/arm.md (arith_adjacentmem): Handle large offsets.
7534
595d62e9 75352006-09-27 Richard Sandiford <richard@codesourcery.com>
7536
7537 * reload1.c (alter_reg): Require the alignment of the stack slot to
7538 be at least reg_max_ref_width bytes.
7539 (scan_paradoxical_subregs): Record the largest width in
7540 reg_max_ref_width.
7541
76d042ab 75422006-09-26 Jakub Jelinek <jakub@redhat.com>
7543
7544 PR middle-end/25261
7545 PR middle-end/28790
7546 * tree-nested.c (struct nesting_info): Added static_chain_added.
7547 (convert_call_expr): Set static_chain_added when adding static
7548 chain. Handle OMP_PARALLEL and OMP_SECTION.
7549
abcb6ae7 75502006-09-25 Matthias Klose <doko@debian.org>
7551
7552 * doc/invoke.texi: Add missing full stop.
7553
8acdd6b3 75542006-09-25 Richard Henderson <rth@redhat.com>
7555
7556 * cgraph.c (dump_cgraph_varpool_node): Don't crash if called
7557 before cgraph_function_flags_ready.
7558
4d9f13e4 75592006-09-24 Zdenek Dvorak <dvorakz@suse.cz>
7560 Adam Nemet <anemet@caviumnetworks.com>
7561
7562 * tree-ssa-loop-ivopts.c (aff_combination_convert,
7563 determine_common_wider_type): New functions.
7564 (get_computation_aff): Use them to simplify arithmetic between
7565 UBASE and CBASE if they are shortened from the same type.
7566
7f2a4bd2 75672006-09-24 Kazu Hirata <kazu@codesourcery.com>
7568
7569 PR target/28911
7570 * config/m68k/m68k.md (negsf2, negdf2, negxf2): Use
7571 -2147483647 - 1 instead of 0x80000000.
7572
64a46f56 75732006-09-23 Revital1 Eres <ERES@il.ibm.com>
7574
7575 * flags.h (HONOR_NANS): Fix typo in comment.
7576
eada9ddd 75772006-09-23 Uros Bizjak <uros@kss-loka.si>
7578
7579 * config/i386/driver-i386.c (host_detect_local_cpu): Add prototype.
7580
9369a09f 75812006-09-23 Jakub Jelinek <jakub@redhat.com>
7582
7583 PR c/28706
7584 PR c/28712
7585 * tree.c (merge_attributes, attribute_list_contained): If both
7586 TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of
7587 simple_cst_equal.
7588 * c-typeck.c (comptypes_internal): Don't consider aggregates
7589 in different TUs as compatible if there one set of attributes is
7590 not a subset of the other type's attributes.
7591 (composite_type): Try harder not to create a new aggregate type.
7592
0f4f6f1c 75932006-09-22 Geoffrey Keating <geoffk@apple.com>
7594
852c5acb 7595 * config/i386/driver-i386.c: Always define host_detect_local_cpu.
7596 * config/i386/i386.h: Define EXTRA_SPEC_FUNCTIONS on any i386
7597 or x86_64 host. Define HAVE_LOCAL_CPU_DETECT.
7598 (CC1_CPU_SPEC): Make conditional on HAVE_LOCAL_CPU_DETECT rather
7599 than replicating condition above.
7600 * config.host (i[34567]86-*-*): Always use driver-i386.o.
7601
0f4f6f1c 7602 * config/darwin.h (LINK_SYSROOT_SPEC): New.
7603 (LINK_SPEC): If TARGET_SYSTEM_ROOT is defined, pass it to
7604 the linker by default.
7605
70026e8a 76062006-09-22 Mike Stump <mrs@apple.com>
7607
7608 * config/rs6000/darwin.h (PROFILE_HOOK): Reassociate comment with
7609 code.
7610
7615883a 76112006-09-22 Richard Guenther <rguenther@suse.de>
7612
7613 PR middle-end/28964
7614 * cfgexpand.c (stack_var_size_cmp): Use DECL_UID to make
7615 sort of stack variables stable.
7616
9a28c846 76172006-09-22 Peter Bergner <bergner@vnet.ibm.com>
7618
7619 PR middle-end/28690
7620 * explow.c (force_reg): Set REG_POINTER flag according to
7621 MEM_POINTER flag.
7622
71cfcaa2 76232006-09-22 Zdenek Dvorak <dvorakz@suse.cz>
7624
7625 PR tree-optimization/28888
7626 * tree-if-conv.c (combine_blocks): Rewritten.
7627 * tree-cfg.c (tree_verify_flow_info): Check that edges with
7628 EDGE_TRUE/FALSE_VALUE follow COND_EXPR.
7629
5a7c6119 76302006-09-22 Jakub Jelinek <jakub@redhat.com>
7631
7632 * tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if
7633 needed.
7634
9357a254 76352006-09-21 Richard Sandiford <richard@codesourcery.com>
7636
7637 * varasm.c (copy_constant): Fix reversed gcc_assert check.
7638
5d820dff 76392006-09-21 Janis Johnson <janis187@us.ibm.com>
7640
7641 * ginclude/decfloat.h (DEC*_DEN): Define using the correct builtins.
7642
3036ecbe 76432006-09-21 Roger Sayle <roger@eyesopen.com>
7644
7645 PR debug/29132
7646 * dwarf2out.c (dwarf2out_begin_prologue): Initialise the current label,
7647 dw_fde_current_label, to be the start of the function, i.e. the same
7648 value as dw_fde_begin.
7649
15ea25ad 76502006-09-20 Richard Sandiford <richard@codesourcery.com>
7651
7652 * config/mips/mips.c (CODE_FOR_mips_abs_ps): Delete.
7653 * config/mips/mips.md (UNSPEC_ABS_PS): New constant.
7654 (UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2)
7655 (UNSPEC_SINGLE_CC, UNSPEC_SCC): Bump values by 1.
7656 (*nmadd<mode>, *nmadd<mode>_fastmath): Require !HONOR_NANS.
7657 (*nmsub<mode>, *nmsub<mode>_fastmath): Likewise.
7658 (abs<mode>2, neg<mode>2): Likewise.
7659 * config/mips/mips-ps-3d.md (mips_abs_ps): New define_expand.
7660 (*mips_abs_ps): New define_insn.
7661
dee3c9dd 76622006-09-20 Josh Conner <jconner@apple.com>
7663
7664 PR middle-end/25505
7665 * calls.c (expand_call): Allow reuse of structure return stack
7666 temp.
7667
a341fc0c 76682006-09-20 Paul Brook <paul@codesourcery.com>
7669
a341fc0c 7670 * config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for
7671 positive offsets.
7672
cded8ad2 76732006-09-20 Janis Johnson <janis187@us.ibm.com>
7674
7675 * doc/extend.texi (Decimal Float): Update for latest draft TR,
7676 clean up terminology.
7677
fa4578c6 76782006-09-20 Steve Ellcey <sje@cup.hp.com>
7679
7680 PR target/28574
7681 * ifcvt.c (dead_or_predicable): Don't predicate then blocks
7682 with tablejumps in them.
7683
eaa3785f 76842006-09-20 Jakub Jelinek <jakub@redhat.com>
7685
7686 PR middle-end/28046
7687 * c-omp.c (c_finish_omp_atomic): If ADDR is not simple enough,
7688 wrap it into TARGET_EXPR.
7689
99efba31 76902006-09-20 Eric Christopher <echristo@apple.com>
7691
7692 * config/i386/i386.c (x86_fisttp): Remove.
7693 * config/i386/i386.h (x86_fisttp): Ditto.
7694 (TARGET_FISTTP): Ditto.
7695
6db57367 76962006-09-19 Eric Christopher <echristo@apple.com>
7697
7698 * doc/tm.texi (OBJC_JBLEN): Describe.
7699 * config/i386/darwin.h (OBJC_JBLEN): Define.
7700 * config/rs6000/darwin.h: Ditto.
7701
1b575dc7 77022006-09-19 Steven Bosscher <steven@gcc.gnu.org>
7703
7704 PR rtl-optimization/21299
7705 * reload1.c (reload): Purge invalid ASMs in the final pass.
7706
27ab60b9 77072006-09-19 Steve Ellcey <sje@cup.hp.com>
7708
7709 PR 28490
7710 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow function
7711 pointers as legitimate constants.
7712
d105e3e2 77132006-09-19 Paul Brook <paul@codesourcery.com>
7714
7715 PR target/28516
7716 * config/arm/arm.c (arm_unwind_emit_set): Handle reg = sp + const.
7717
6dce7ee9 77182006-09-17 Zdenek Dvorak <dvorakz@suse.cz>
7719
7720 PR tree-optimization/28887
7721 * tree-ssa-loop-prefetch.c (analyze_ref): Strip nonaddressable
7722 component parts from the reference.
7723 (gather_memory_references_ref): Record the reference without the
7724 nonaddressable component parts.
7725
bc7ab021 77262006-09-17 Steven Bosscher <steven@gcc.gnu.org>
7727
7728 PR c/25993
7729 * c-opts.c (c_common_handle_option): Ignore the -std options
7730 if the input language is assembly.
7731
e6c961dd 77322006-09-17 Ira Rosen <irar@il.ibm.com>
7733
467bcbd9 7734 PR tree-opt/21591
e6c961dd 7735 * tree-data-ref.c (ptr_decl_may_alias_p): Look for the name memory
467bcbd9 7736 tag first.
7737 (ptr_ptr_may_alias_p): Likewise.
7738 (record_record_differ_p): New function.
7739 (base_object_differ_p): Call record_record_differ_p.
e6c961dd 7740
f5911bbe 77412006-09-16 Andrew Pinski <pinskia@physics.uc.edu>
7742
7743 PR tree-opt/29059
7744 * tree-ssa-propagate.c (set_rhs): Reject MODIFY_EXPR right
7745 away for the expr argument.
7746
5be4eedf 77472006-09-16 Steven Bosscher <steven@gcc.gnu.org>
7748
f5911bbe 7749 PR tree-opt/27742
5be4eedf 7750 * tree-vectorizer.c (vectorize_loops): Clear vect_loop_location
7751 before using it for dumping after vectorizing loops.
7752
f5911bbe 77532006-09-16 Andrew Pinski <pinskia@physics.uc.edu>
7754 Jack Howarth <howarth@bromo.med.uc.edu>
aa8b5d07 7755
7756 PR target/29030
7757 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_recurse)
7758 skip on error_mark_node.
7759 (rs6000_darwin64_record_arg_recurse): Likewise.
7760
0d26f707 77612006-09-16 Steven Bosscher <steven@gcc.gnu.org>
7762
7763 * rtl.h (LABEL_OUTSIDE_LOOP_P): Remove.
7764 * doc/rtl.texi: Remove related documentation.
7765
2ce55c0b 77662006-09-16 Bernd Schmidt <bernd.schmidt@analog.com>
7767
7768 * loop-doloop.c (doloop_optimize): Remove bogus arg from debugging
7769 printf.
7770
1a29d5df 77712006-09-15 Jim Wilson <wilson@specifix.com>
7772
7773 * config/ia64/ia64.c (ia64_legitimate_constant_p, cast CONST):
7774 Handle symbol offsets same as they are handled in ia64_expand_move
7775 and move_operand.
7776
9cab63d0 77772006-09-16 Andreas Tobler <a.tobler@schweiz.org>
7778
7779 * loop-doloop.c (doloop_optimize): Change type of max_cost to int.
7780 Add forgotten parameter to the fprintf call.
7781
066cf272 77822006-09-15 Steve Ellcey <sje@cup.hp.com>
7783
7784 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Add define.
7785
35ca3ada 77862006-09-15 Uros Bizjak <uros@kss-loka.si>
7787
7788 * doc/contrib.texi: Add my entry.
7789
c2a5aadd 77902006-09-15 Nick Clifton <nickc@redhat.com>
7791
7792 * doc/md.texi (Processor pipeline description): Fix typo in
7793 example of how to use the absence_set directive and reword the
7794 description to make it slightly easier to read.
7795
2ce55c0b 77962006-09-15 Bernd Schmidt <bernd.schmidt@analog.com>
883bb2bb 7797
7798 * params.def (PARAM_MAX_ITERATIONS_COMPUTATION_COST): New.
7799 * loop-doloop.c (doloop_optimize): Use it to limit costs of
7800 expanding the number of iterations.
ff7e43ad 7801 * config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.
883bb2bb 7802
aa02fa19 7803 * cfgrtl.c (emit_insn_at_entry): New function.
7804 * rtl.h (emit_insn_at_entry): Declare it.
7805 * integrate.c (emit_initial_value_sets): Use it.
7806
1db61145 7807 * cfgrtl.c (emit_insn_at_entry): Use gcc_assert, not abort.
7808
e82f36f5 7809 * config/bfin/bfin.c (struct loop_info): New members block_bitmap and
7810 bad.
7811 (struct loop_work and related VEC declarations): Delete.
7812 (bfin_dump_loops): Print out new member bad.
7813 (bfin_bb_in_loop): Use plain bitmap test. Don't recurse.
7814 (bfin_scan_loop): Don't recurse.
7815 (bfin_optimize_loop): Don't use a loop depth of -1 to indicate bad
7816 loops. No longer need to update outer loops if the current one is
7817 found bad. Move some validitiy checks to bfin_discover_loop.
7818 (bfin_discover_loop): New function, mostly split from bfin_reorg_loops,
7819 but changed not to check for nesting. Also changed to use the new bad
7820 flag.
7821 (bfin_reorg_loops): Use bfin_discover_loop to find single loops one at a
7822 time. Use bitmap based test to discover loop nesting.
7823
f9c7c7fb 78242006-09-15 Kazu Hirata <kazu@codesourcery.com>
7825
7826 * doc/tm.texi (TARGET_FUNCTION_VALUE): Put @deftypefn all in
7827 one line.
7828
62419968 78292006-09-14 Richard Guenther <rguenther@suse.de>
7830 Kazu Hirata <kazu@codesourcery.com>
7831
7832 PR middle-end/28884.
7833 * doc/tm.texi (TARGET_FUNCTION_VALUE): Document.
7834 (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE): Deprecate.
7835 Replace mentions of FUNCTION_VALUE and FUNCTION_OUTGOING_VALUE
7836 with TARGET_FUNCTION_VALUE.
7837
7882a2f9 78382006-09-14 Anatoly Sokolov <aesok@post.ru>
7839
7840 PR target/26504
7841 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define.
7842
09fa572c 78432006-09-13 Aldy Hernandez <aldyh@redhat.com>
7844
467bcbd9 7845 * doc/tree-ssa.texi (Jumps): RESULT_DECL can also be an operand
7846 of a RETURN_EXPR
09fa572c 7847
cfdab332 78482006-09-13 Andrew Pinski <pinskia@physics.uc.edu>
7849
7850 PR debug/28980
7851 * dwarf2out.c (loc_descriptor_from_tree_1): Handle
7852 FUNCTION_DECL.
7853
a5517fc0 78542006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
7855
7856 * basic_block.h (bb_has_eh_pred): Fix comment.
7857
467b5d37 78582006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
7859
7860 * flow.c (calculate_global_regs_live): Invalidate eh registers
7861 on eh edges. Renamed invalidated_by_call to invalidated_by_eh_edge.
7862 (propagate_block): Handle eh registers as if they were set at basic
7863 block start.
7864 * except.c (dw2_build_landing_pads): Don't emit clobbers for eh
7865 registers.
7866 * global.c (global_conflicts): Make eh registers to conflict with
7867 pseudos live at basic block begin.
7868 * basic_block.h (bb_has_eh_pred): New function.
7869
23c79c0f 78702006-09-13 Richard Sandiford <richard@codesourcery.com>
7871
7872 PR rtl-optimization/28982
7873 * reload.c (find_reloads_address_1): Use RELOAD_OTHER for the
7874 index of a PRE_MODIFY or POST_MODIFY address.
7875 * reload1.c (inc_for_reload): Use find_replacement on the original
7876 base and index registers.
7877
dd7bdc90 78782006-09-12 H.J. Lu <hongjiu.lu@intel.com>
7879
7880 * doc/invoke.texi (mpreferred-stack-boundary): Remove exception
7881 for -Os. Update __m128 alignment requirement.
7882
8a14140c 78832006-09-13 Jan Hubicka <jh@suse.cz>
7884
7885 * cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
7886
ac24e06b 78872006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
7888
7889 PR rtl-optimization/28243
7890 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
7891 the insn to which the note was originally attached.
7892
62435250 78932006-09-12 Andrew Pinski <pinskia@physics.uc.edu>
7894 Roger Sayle <roger@eyesopen.com>
7895
7896 * dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
7897 outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
7898 on platforms that don't use dwarf for debug info.
7899
5a1c3f40 79002006-09-12 Jason Merrill <jason@redhat.com>
7901
7902 PR middle-end/28493
7903 * builtins.c (expand_builtin_setjmp_receiver): Clobber
7904 hard_frame_pointer_rtx after using it to update the frame pointer.
7905
6e2ff8f8 79062006-09-12 Roger Sayle <roger@eyesopen.com>
7907
7908 * target-def.h (TARGET_ASM_OPEN_PAREN): Guard with an #ifndef.
7909 (TARGET_ASM_CLOSE_PAREN): Likewise.
7910 * config/alpha/osf5.h (TARGET_ASM_OPEN_PAREN): Define.
7911 (TARGET_ASM_CLOSE_PAREN): Likewise.
7912
6dbdfeeb 79132006-09-12 Roger Sayle <roger@eyesopen.com>
7914
7915 PR target/22223
7916 * config/alpha/alpha.c (alpha_start_function): Don't emit stack
7917 frame information for frames larger than 512 Kbytes on Tru64 when
7918 using the native assembler.
7919
9ab183e3 79202006-09-12 Roger Sayle <roger@eyesopen.com>
7921
7922 PR middle-end/4520
7923 PR bootstrap/28784
7924 * cselib.c (cselib_hash_rtx): Avoid hashing on the address of labels
7925 and symbols. Instead use the implementation from cse.c's hash_rtx.
7926
8fde4b5b 79272006-09-12 Jan Hubicka <jh@suse.cz>
7928
7929 PR rtl-optimization/28071
7930 * tree-vect-transform.c (vect_create_data_ref_ptr): Kill cast.
7931 (vect_transform_loop): Likewise.
7932 * tree-vectorizer.c (new_loop_vec_info): Likewise.
7933 (new_loop_vec_info): Likewise.
7934 (destroy_loop_vec_info): Likewise.
7935 * tree-dfa.c (create_var_ann): Use GCC_CNEW.
7936 (create_stmt_ann): Likewise.
7937 (create_tree_ann): Rename to ...
7938 (create_tree_common_ann): ... this one; allocate only the common part
7939 of annotations.
7940 * tree-vn.c (set_value_handle): Use get_tree_common_ann.
7941 (get_value_handle): Likewise.
7942 * tree-ssa-pre.c (phi_translate): Delay annotation allocation for
7943 get_tree_common_ann.
7944 * tree-vectorizer.h (set_stmt_info): Take stmt annotation.
7945 (vinfo_for_stmt): Use stmt annotations.
7946 * tree-flow.h (tree_ann_common_t): New type.
7947 (tree_common_ann, get_tree_common_ann, create_tree_common_ann): New.
7948 (tree_ann, get_tree_ann, create_tree_ann): New.
7949 * tree-flow-inline.h (get_function_ann): Do more type checking.
7950 (stmt_ann): Likewise.
7951 (tree_ann): Rename to ...
7952 (tree_common_ann): ... this one; return ony common_ann
7953 (get_tree_ann): Rename to ...
7954 (tree_common_ann): This one; return only common_ann.
7955 * tree-vect-patterns.c (vect_pattern_recog_1): Update call
7956 of set_stmt_info.
7957
69278c24 79582006-09-11 Geoffrey Keating <geoffk@apple.com>
7959
a5efd1bc 7960 * config.gcc (i[34567]86-*-darwin*): Set with_arch and
7961 with_cpu by default.
7962
69278c24 7963 * dwarf2out.c (dwarf_file_data): New.
7964 (enum dw_val_class): Add dw_val_class_file.
7965 (struct dw_val_struct): Add val_file.
7966 (file_table): Change to a hash table.
7967 (file_table_emitted): Delete.
7968 (file_table_last_lookup_index): Delete.
7969 (emitcount): Delete.
7970 (last_emitted_file): New.
7971 (lookup_filename): Change prototype to return a struct dwarf_file_data.
7972 (init_file_table): Delete.
7973 (maybe_emit_file): Change prototype to take a struct dwarf_file_data.
7974 (AT_addr): Add comment.
7975 (add_AT_file): New.
7976 (AT_file): New.
7977 (get_AT_file): New.
7978 (print_die): Handle dw_val_class_file.
7979 (print_dwarf_line_table): Update for new file table structure.
7980 (attr_checksum): Do checksum a filename.
7981 (same_dw_val_p, same_attr_p): Do compare a filename.
7982 (size_of_die): Handle dw_val_class_file.
7983 (value_format): Likewise.
7984 (output_die): Likewise. Also, call maybe_emit_file here.
7985 (struct file_info): Constify filenames. Make file_idx a pointer
7986 to a struct dwarf_file_data.
7987 (struct dir_info): Constify directory names. Remove 'used' field.
7988 (struct file_name_acquire_data): New.
7989 (file_name_acquire): New.
7990 (output_file_names): Modify to handle new file data structures.
7991 (add_src_coords_attributes): Use add_AT_file.
7992 (add_call_src_coords_attributes): Likewise.
7993 (dwarf2out_imported_module_or_decl): Likewise.
7994 (gen_subprogram_die): Modify for new file data structures.
7995 (gen_variable_die): Likewise.
7996 (file_table_eq): New.
7997 (file_table_hash): New.
7998 (file_table_last_lookup): New.
7999 (lookup_filename): Rewrite to handle new file data structures.
8000 (maybe_emit_file): Rewrite to handle new file data structures.
8001 (dwarf2out_source_line): Always call lookup_filename and
8002 maybe_emit_file.
8003 (dwarf2out_init): Create file_table here.
8004 (prune_unused_types_walk_attribs): Don't call maybe_emit_file here.
8005 (file_table_relative_p): New.
8006 (dwarf2out_finish): Change detection of relative filenames
8007 to work with new file data structures. Move output_line_info call
8008 after debug_info output.
8009
fc5c8662 80102006-09-11 H.J. Lu <hongjiu.lu@intel.com>
8011
8012 PR target/13685
8013 PR target/27537
8014 PR target/28621
8015 * config/i386/i386.c (override_options): Always default to 16
8016 byte stack boundary.
8017
2a964ec6 80182006-09-11 Alexandre Oliva <aoliva@redhat.com>
8019
8020 PR target/28672
8021 * var-tracking.c (dump_dataflow_set): Start dumping at
8022 register zero.
8023 (clobber_variable_part): Kill only the variable part in
8024 registers holding it, leaving other variables alone.
8025
57bcf24d 80262006-09-11 Josh Triplett <josh@freedesktop.org>
8027
8028 * doc/extend.texi (Other Builtins): Actually use the macro
8029 argument in the documentation example for
8030 __builtin_types_compatible_p.
8031
8ad6f16d 80322006-09-11 Eric Botcazou <ebotcazou@libertysurf.fr>
8033
8034 PR rtl-optimization/28726
8035 * sched-deps.c (sched_analyze_reg): New function extracted from...
8036 (sched_analyze_1): ...here. Call it to analyze references to
8037 registers. Treat again writes to a stack register as writing to the
8038 register.
8039 (sched_analyze_2): ...and here. Call it to analyze references to
8040 registers. Treat again reads of a stack register as reading the
8041 register.
8042
73f4dbb0 80432006-09-11 Guenter Roeck <guenter@roeck-us.net>
8044 David Edelsohn <edelsohn@gnu.org>
8045
8046 PR target/27287
8047 * config/rs6000/spe.md (frob_df_di): Remove %H.
8048 (frob_di_df): Remove %H. Change evmergelo to mr.
8049 (frob_di_df_2): Remove %H. Change evldd to two loads.
8050
39d6b9c8 80512006-09-11 Hideki Iwamoto <h-iwamoto@kit.hi-ho.ne.jp>
8052
8053 * doc/cpp.texi: Fix names of charset options.
8054
d0e3a920 80552006-09-10 Andrew Pinski <pinskia@physics.uc.edu>
8056
8057 PR target/29009
8058 * config/i386/i386.c (override_options): Use 128-bit
8059 stack boundary always for 64bits.
8060
7bb0bd01 80612006-09-10 Eric Botcazou <ebotcazou@libertysurf.fr>
8062
8063 PR rtl-optimization/28636
8064 * combine.c (force_to_mode): Test for side-effects before
8065 substituting by zero.
8066 (simplify_shift_const): Likewise for zero or other constants.
8067
32acc84a 80682006-09-10 Steven Bosscher <steven@gcc.gnu.org>
8069
8070 PR middle-end/26983
8071 * builtins.c (expand_builtin_setjmp): Force next_lab to be
8072 preserved.
8073
ee116d2b 80742006-09-10 Richard Sandiford <richard@codesourcery.com>
8075
8076 PR target/29006
8077 * config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare.
8078 * config/mips/mips.c (mips_expand_unaligned_store): Use the mode
8079 returned by mode_for_size, rather than the mode of src itself,
8080 to choose between 32-bit and 64-bit patterns.
8081 (mips_mem_fits_mode_p): New function.
8082 * config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check
8083 that the size of the source matches the size of the destination.
8084 (mov_<store>l, mov_<store>r): Likewise.
8085
2805e80b 80862006-09-10 Eric Christopher <echristo@apple.com>
8087
8088 * config/darwin.c (machopic_select_rtx_section): Add CONST_VECTOR
8089 for literal16.
8090
7463cbdf 80912006-09-09 Eric Christopher <echristo@apple.com>
8092
8093 PR target/28995
8094 * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT
8095 for literal16.
8096
bea04f76 80972006-09-09 Roger Sayle <roger@eyesopen.com>
8098 Nicolas Setton <setton@adacore.com>
8099
8100 * dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.
8101
71a703eb 81022006-09-10 Andreas Schwab <schwab@suse.de>
8103
8104 * config/m68k/m68k.md (bungt_rev): New pattern.
8105
8ee7afab 81062006-09-09 Paolo Bonzini <bonzini@gnu.org>
8107 Dale Johannesen <dalej@apple.com>
8108
8109 PR target/26778
8110 * regclass.c (struct reg_pref): Update documentation.
8111 (regclass): Set prefclass to NO_REGS if memory is the best option.
8112 (record_reg_classes): Cope with a prefclass set to NO_REGS.
8113
3ebc7dec 81142006-09-08 Eric Christopher <echristo@apple.com>
8115
8116 * config.gcc (i?86-*-darwin): Add 64-bit HWI support.
8117 * config/t-slibgcc-darwin: Support x86_64 multilib.
8118 * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION):
8119 Return 1 for x86_64-darwin.
8120 * config/i386/t-darwin: Add m64 multilib.
8121 (LIB2_SIDITI_CONV_FUNCS): Use.
8122 (LIB2FUNCS_EXTRA): Ditto.
8123 * config/i386/darwin.h: Support x86_64.
8124 * config/i386/i386.c (override_options): Turn on flag_pic
8125 for x86_64-darwin. Disable flag_omit_pointer.
8126 (get_pc_thunk_name): Assert !TARGET_64BIT.
8127 (legitimate_address_p): Disable machopic addressing for
8128 x86_64.
8129 (legitimize_pic_address): Ditto.
8130 (ix86_expand_move): Ditto.
8131 (ix86_expand_call): Ditto.
8132 (machopic_output_stub): Ditto.
8133 * config/darwin.c (machopic_select_section): Support literal16.
8134 (machopic_select_rtx_section): Ditto.
8135 * config/darwin-sections.def: Ditto.
8136 * config/darwin-64.c: New.
8137
2e3bc123 81382006-09-08 Joseph S. Myers <joseph@codesourcery.com>
8139
8140 PR c/28504
8141 * c-tree.h (struct c_arg_info): Add pending_sizes.
8142 * c-parser.c (c_parser_parms_declarator,
8143 c_parser_parms_list_declarator): Initialize pending_sizes.
8144 * c-decl.c (get_parm_info): Initialize pending_sizes.
8145 (get_parm_info): Set pending_sizes.
8146 (grokdeclarator): Call put_pending_sizes for parameters for
8147 function definition only.
8148
88cea5cf 81492006-09-07 Jason Merrill <jason@redhat.com>
8150
f3fd6db7 8151 PR middle-end/27724
8152 * varasm.c (output_constant): Only strip actual no-op conversions.
8153
88cea5cf 8154 PR target/13685
8155 * config/i386/i386.c (override_options): Use 128-bit
8156 stack boundary if -msse.
8157
ddb2c0eb 81582006-09-07 Eric Christopher <echristo@apple.com>
8159
8160 * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update
8161 comment.
8162 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE):
8163 Redefine.
8164
85fdc672 81652006-09-07 Geoffrey Keating <geoffk@apple.com>
8166
8167 * dwarf2out.c: Remove strange characters from comment above
8168 dwarf2out_frame_debug_expr.
8169
2e55afeb 81702006-09-07 Eric Christopher <echristo@apple.com>
8171
8172 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Move from here...
8173 * config/darwin.h: ... to here.
8174
bb758671 81752006-09-07 H.J. Lu <hongjiu.lu@intel.com>
8176
8177 * config/i386/i386.c (x86_partial_flag_reg_stall): New.
8178
8179 * config/i386/i386.h (x86_partial_flag_reg_stall): New.
8180 (TARGET_PARTIAL_FLAG_REG_STALL): New.
8181
8182 * config/i386/i386.md (*ashldi3_cmp_rex64): Disabled for
8183 TARGET_PARTIAL_FLAG_REG_STALL.
8184 (*ashldi3_cconly_rex64): Likewise.
8185 (*ashlsi3_cmp): Likewise.
8186 (*ashlsi3_cconly): Likewise.
8187 (*ashlsi3_cmp_zext): Likewise.
8188 (*ashlhi3_cmp): Likewise.
8189 (*ashlhi3_cconly): Likewise.
8190 (*ashlqi3_cmp): Likewise.
8191 (*ashlqi3_cconly): Likewise.
8192 (*ashrdi3_cmp_rex64): Likewise.
8193 (*ashrdi3_cconly_rex64): Likewise.
8194 (*ashrsi3_cmp): Likewise.
8195 (*ashrsi3_cconly): Likewise.
8196 (*ashrsi3_cmp_zext): Likewise.
8197 (*ashrhi3_cmp): Likewise.
8198 (*ashrhi3_cconly): Likewise.
8199 (*ashrqi3_cmp): Likewise.
8200 (*ashrqi3_cconly): Likewise.
8201 (*lshrdi3_cmp_rex64): Likewise.
8202 (*lshrdi3_cconly_rex64): Likewise.
8203 (*lshrsi3_cmp): Likewise.
8204 (*lshrsi3_cconly): Likewise.
8205 (*lshrsi3_cmp_zext): Likewise.
8206 (*lshrhi3_cmp): Likewise.
8207 (*lshrhi3_cconly): Likewise.
8208 (*lshrqi2_cmp): Likewise.
8209 (*lshrqi2_cconly): Likewise.
8210
062db9f3 82112006-09-07 Uros Bizjak <uros@kss-loka.si>
8212
8213 PR target/28946
8214 * config/i386/i386.md ("*ashldi3_cconly_rex64", "*ashlsi3_cconly",
8215 "*ashlhi3_cconly", "*ashlqi3_cconly", "*ashrdi3_one_bit_cconly_rex64",
8216 "*ashrdi3_cconly_rex64", "*ashrsi3_one_bit_cconly", "*ashrsi3_cconly",
8217 "*ashrhi3_one_bit_cconly", "*ashrhi3_cconly",
8218 "*ashrqi3_one_bit_cconly", "*ashrqi3_cconly",
8219 "*lshrdi3_cconly_one_bit_rex64", "*lshrdi3_cconly_rex64",
8220 "*lshrsi3_one_bit_cconly", "*lshrsi3_cconly",
8221 "*lshrhi3_one_bit_cconly", "*lshrhi3_cconly",
8222 "*lshrqi2_one_bit_cconly", "*lshrqi2_cconly": New patterns to
8223 implement only CC setting effects of shift instructions.
8224
c69dbba0 82252006-09-07 Martin Michlmayr <tbm@cyrius.com>
8226
8227 * doc/contrib.texi: Add myself.
8228
950474d6 82292006-09-07 Andrew Pinski <pinskia@physics.uc.edu>
8230
8231 PR middle-end/28862
8232 * stor-layout.c (relayout_decl): Don't zero the alignment if it
8233 was set by the user.
8234
15256eba 82352006-09-07 Paolo Bonzini <bonzini@gnu.org>
8236
8237 PR target/27117
8238 * config/sh/sh.md (divsi_inv_qitable, divsi_inv_hitable): New patterns.
8239 (divsi_inv_m1): Use them.
8240 (UNSPEC_DIV_INV_TABLE): New constant.
8241
34c971f6 82422006-09-06 James E Wilson <wilson@specifix.com>
8243
8244 PR rtl-opt/27883
8245 * flow.c (update_life_info): If UPDATE_LIFE_LOCAL and PROP_DEATH_NOTES
8246 then call count_or_remove_death_notes.
8247
25b3017b 82482006-09-06 Jason Merrill <jason@redhat.com>
8249
8250 PR c++/27371
8251 * tree-inline.c (copy_result_decl_to_var): New fn.
8252 (declare_return_variable): Use it. Call declare_inline_vars here.
8253 (expand_call_inline): Not here.
8254
959fee9a 82552006-09-06 Diego Novillo <dnovillo@redhat.com>
8256
8257 * doc/contrib.texi: Update my entry.
8258
f003f386 82592006-09-06 Nick Clifton <nickc@redhat.com>
8260
8261 * config/frv/frv.h (EXTRA_MEMORY_CONSTRAINT): Define.
8262
4c641bf8 82632006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
8264
8265 PR tree-opt/28937
8266 * tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int.
8267 (canonicalize_induction_variables): Likewise.
8268 (tree_unroll_loops_completely): Likewise.
8269 (tree_ssa_prefetch_arrays): Likewise.
8270 (remove_empty_loops): Likewise.
8271 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return
8272 TODO_cleanup_cfg instead of directly calling
8273 cleanup_tree_cfg_loop.
8274 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
8275 Likewise.
8276 (tree_unroll_loops_completely): Likewise.
8277 (remove_empty_loops): Likewise.
8278 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
8279 * tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value
8280 of tree_ssa_unswitch_loops.
8281 (tree_ssa_loop_ivcanon): Use the return value of
8282 canonicalize_induction_variables.
8283 (tree_ssa_empty_loop): Use the return value of
8284 remove_empty_loops.
8285 (tree_complete_unroll): Use the return value of
8286 tree_unroll_loops_completely.
8287 (tree_ssa_loop_prefetch): Use the return value of
8288 tree_ssa_prefetch_arrays.
8289 * passes.c (execute_todo): Before Cleanup CFG, set
8290 updating_used_alone and after cleanup CFG, call
8291 recalculate_used_alone.
8292
4ff650b4 82932006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
8294
8295 PR tree-opt/28952
8296 * tree-vect-transform.c (vectorizable_condition): Move the check
8297 for the type after the check for simple condition.
8298
9e236a59 82992006-09-05 J"orn Rennecke <joern.rennecke@st.com>
8300 Kaz Kojima <kkojima@gcc.gnu.org>
8301
8302 PR target/28764
8303 * mode-switching.c (optimize_mode_switching): Make the destination
8304 block of an abnormal edge have no anticipatable mode. Don't
8305 insert mode switching code at the end of the source block of
8306 an abnormal edge.
8307
8d7243cc 83082006-09-05 Paolo Bonzini <bonzini@gnu.org>
8309
8310 PR rtl-optimization/26847
8311 * simplify-rtx.c (struct simplify_plus_minus_op_data): Remove ix.
8312 (simplify_plus_minus_op_data_cmp): For REGs, break ties on the regno.
8313 (simplify_plus_minus): Count n_constants while filling ops. Replace
8314 qsort with insertion sort. Before going through the array to simplify
8315 pairs, sort it. Delay early exit until after the first sort, exiting
8316 only if no swaps occurred. Simplify pairs in reversed order, without
8317 special-casing the first iteration. Pack ops after simplifying pairs.
8318
83192006-09-05 Anatoly Sokolov <aesok@post.ru>
79fe0612 8320
4ff650b4 8321 * config/avr/avr.c (avr_mcu_types): Add support for at90pwm1 device.
8322 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
8323 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
8324 (avr_rtx_costs): Mark 'outer_code' argument with ATTRIBUTE_UNUSED.
79fe0612 8325
2228ea8f 83262006-09-05 Richard Guenther <rguenther@suse.de>
8327
8328 PR tree-optimization/28900
8329 * tree-if-conv.c (find_phi_replacement_condition): Gimplify
8330 compound conditional before creating COND_EXPR condition.
8331
fd2730c0 83322006-09-05 Richard Guenther <rguenther@suse.de>
8333
8334 PR tree-optimization/28905
8335 * tree-vrp.c (fix_equivalence_set): Manually implement
8336 !value_ranges_intersect_p to also handle symbolic ranges.
8337
bb8a9715 83382006-09-05 Richard Guenther <rguenther@suse.de>
8339
8340 PR middle-end/28935
8341 * tree-ssa-ccp.c (fold_stmt_r): Make sure to fold the condition
8342 of a COND_EXPR.
8343
8f353ea8 83442006-09-04 Eric Botcazou <ebotcazou@libertysurf.fr>
8345
8346 PR rtl-optimization/27616
8347 * cse.c (table_size): New static variable.
8348 (new_basic_block): Initialize it to 0.
8349 (remove_from_table): Decrement it.
8350 (insert): Increment it.
8351 (fold_rtx_mem_1): New function, renamed from fold_rtx_mem.
8352 (fold_rtx_mem): Enforce a cap on the recursion depth. Call
8353 fold_rtx_mem_1 if under the cap.
8354 (fold_rtx) <RTX_COMM_ARITH>: In the associative case, delay a little
8355 the lookup of the equivalent expression and test for equality of the
8356 first operand of the equivalent expression before in turn looking up
8357 an equivalent constant for the second operand.
8358
46b2b3c8 83592006-09-02 Geoffrey Keating <geoffk@apple.com>
8360
8361 Revert this change:
8362 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
8363 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
8364 pointer, instead of assuming it is possible to derive the
8365 correct args size from a call insn.
8366
4f46f2b9 83672006-09-02 Jakub Jelinek <jakub@redhat.com>
8368
8369 PR middle-end/27567
8370 * builtins.c (fold_builtin_memcpy, fold_builtin_memmove): Remove.
8371 (fold_builtin_mempcpy): Rename to...
8372 (fold_builtin_memory_op): ... this. Optimize one element copy
8373 into an assignment.
8374 (fold_builtin_memset, fold_builtin_bzero, fold_builtin_bcopy): New
8375 functions.
8376 (expand_builtin_strcpy, expand_builtin_strncpy): Handle COMPOUND_EXPR.
8377 (expand_builtin_memcpy, expand_builtin_mempcpy,
8378 expand_builtin_memmove): Likewise. Use fold_builtin_memory_op.
8379 (fold_builtin_1): Handle BUILT_IN_MEMSET, BUILT_IN_BZERO and
8380 BUILT_IN_BCOPY. Use fold_builtin_memory_op for
8381 BUILT_IN_MEM{CPY,PCPY,MOVE}.
8382
3d594561 83832006-09-01 DJ Delorie <dj@redhat.com>
8384
8385 * config/m32c/cond.md (cbranch<mode>4): Defer splitting until after reload.
8386 (stzx_16): Likewise.
8387 ("stzx_24_<mode>"): Likewise.
8388 ("stzx_reversed_<mode>"): Likewise, and make mode-specific.
8389 ("cmp<mode>_op"): New.
8390 (cmp<mode>): Change to expander; just save operands.
8391 (b<code>_op): New.
8392 (b<code>): Change to expander, emit compare here.
8393 (s<code>_op): Change to use split and expander.
8394 (s<code>_24_op): Likewise.
8395 (s<code>_<mode>): New.
8396 (s<code>_<mode>_24): New.
8397 (movqicc_<code>_<mode): New.
8398 (movhicc_<code>_<mode>): New.
8399 (s<code>): New.
8400 (s<code>_24): New.
8401 * config/m32c/m32c.c (compare_op0, compare_op1): New.
8402 (m32c_pend_compare): New.
8403 (m32c_unpend_compare): New.
8404 (m32c_expand_scc): New.
8405 (m32c_expand_movcc): Emit the compare also.
8406 * config/m32c/predicates.md (mra_nopp_operand): New.
8407
d2df7679 84082006-09-01 J"orn Rennecke <joern.rennecke@st.com>
8409 Richard Guenther <rguenther@suse.de>
8410 Adam Nemet <anemet@caviumnetworks.com>
8411
8412 PR middle-end/27226
8413 * builtins.c (get_pointer_alignment): Handle more forms
8414 of base addresses that can be used to derive more precise
8415 information about alignment.
8416
09607d08 84172006-09-01 Jason Merrill <jason@redhat.com>
8418
8419 PR c++/28899
8420 * gimplify.c (gimplify_modify_expr_rhs) [BIND_EXPR]: Handle
8421 want_value.
8422
8423 * gimplify.c (voidify_wrapper_expr): Handle null type.
8424
166cf564 84252006-09-01 Josh Conner <jconner@apple.com>
8426
8427 PR c++/25505
8428 * tree-nrv.c (dest_safe_for_nrv_p): New function.
8429 (execute_return_slot_opt): Use it.
8430
f1e06d36 84312006-08-31 Josh Conner <jconner@apple.com>
8432
8433 PR c++/25505
8434 * tree-gimple.c (is_gimple_mem_rhs): Recognize functions
8435 returning aggregates.
8436
94858f65 84372006-08-31 Zdenek Dvorak <dvorakz@suse.cz>
8438
8439 PR tree-optimization/28839
8440 * tree-into-ssa.c (prune_unused_phi_nodes): Take into account kills in
8441 blocks in that phi arguments appear.
8442
d8eb7025 84432006-08-31 Roger Sayle <roger@eyesopen.com>
8444
8445 PR other/22313
8446 * dwarf2out.c (add_fde_cfi): Use a set_loc if the current label is
2e55afeb 8447 NULL, otherwise use an advance_loc4 to adjust relative to the
d8eb7025 8448 current label.
8449 (output_cfi) <DW_CFA_set_loc>: Update the current label.
8450 (dwarf2out_switch_text_section): Reset the current label to avoid
8451 using advance_loc4 over section boundaries.
8452
abbcecd2 84532006-08-31 Andreas Krebbel <krebbel1@de.ibm.com>
8454
8455 PR target/24367
8456 * config/s390/s390.md ("movsi", "movdi" expander): Accept rtxes like
8457 r12 + SYMBOLIC_CONST.
8458
e0a02196 84592006-08-30 Richard Guenther <rguenther@suse.de>
8460
8461 * Makefile.in (see.o): Add $(EXPR_H) dependency.
8462
afd8eb66 84632006-08-30 Zdenek Dvorak <dvorakz@suse.cz>
8464
8465 PR rtl-optimization/27735
8466 * cfgloopmanip.c (fix_loop_placements, fix_bb_placements, unloop):
8467 Add new argument to keep track of whether an irreducible region
8468 was affected. All callers changed.
8469 (fix_irreducible_loops): Removed.
8470 (remove_path): Call mark_irreducible_loops if EDGE_IRREDUCIBLE_LOOP
8471 flags were invalidated.
8472
65881f79 84732006-08-29 H.J. Lu <hongjiu.lu@intel.com>
8474
8475 * config/i386/i386.md (*fop_df_comm_mixed): Match DF operands
8476 instead of SF operands.
8477 (*fop_df_comm_sse): Likewise.
8478 (*fop_df_comm_i387): Likewise.
8479 (*fop_df_1_mixed): Likewise.
8480 (*fop_df_1_sse): Likewise.
8481
bf07aa0a 84822006-08-29 Andrew Pinski <pinskia@physics.uc.edu>
4f652d47 8483 J"orn Rennecke <joern.rennecke@st.com>
8484
8485 PR tree-optimization/17506
8486 * tree-ssa.c (warn_uninit): If warning about a location outside of
8487 the current function, note where the variable was declared.
8488
58f43b90 84892006-08-28 Zdenek Dvorak <dvorakz@suse.cz>
8490
8491 PR tree-optimization/28411
8492 * double-int.c (double_int_div): Use double_int_divmod.
8493 (double_int_divmod, double_int_sdivmod, double_int_udivmod,
8494 double_int_mod, double_int_smod, double_int_umod): New functions.
8495 * double-int.h (double_int_divmod, double_int_sdivmod,
8496 double_int_udivmod, double_int_mod, double_int_smod, double_int_umod):
8497 Declare.
8498 * tree-ssa-loop-ivopts.c (constant_multiple_of): Returns the result
8499 in double_int.
8500 (get_computation_aff, get_computation_cost_at): Handle double_int
8501 return type of constant_multiple_of.
8502
9c6fee9d 85032006-08-28 Kazu Hirata <kazu@codesourcery.com>
8504
8505 PR middle-end/26632
8506 * convert.c (convert_to_integer): Set TREE_NO_WARNING to 1 on
8507 an implicit conversion.
8508
51136ff4 85092006-08-28 Prafulla Thakare <prafullat@kpitcummins.com>
8510
8511 * config/h8300/h8300.c (TARGET_DEFAULT_TARGET_FLAGS): New.
8512
8b5eeb90 85132006-08-27 Roger Sayle <roger@eyesopen.com>
8514
8515 * ifcvt.c (cheap_bb_rtx_cost_p): Don't speculatively execute
8516 x87 instructions.
8517
1078d25d 85182006-08-27 Kazu Hirata <kazu@codesourcery.com>
8519
8520 * config/i386/crtfastmath.c: Fix a comment typo.
8521
359d87c6 85222006-08-26 Roger Sayle <roger@eyesopen.com>
8523
8524 * tree.h (CASE_LOW_SEEN, CASE_HIGH_SEEN): New macros for manipulating
8525 temporary visit flags on CASE_LABEL_EXPRs.
8526 * c-common.c (match_case_to_enum): Add function comment. Avoid
8527 O(N) loop, by looking up both CASE_LOW_SEEN and CASE_HIGH_SEEN.
8528 (c_do_switch_warnings): Reorganize to record CASE_LOW_SEEN and
8529 CASE_HIGH_SEEN for enumerated types. If the switch expression is
8530 a constant, only warn if that constant value isn't handled.
8531
18a3d34c 85322006-08-26 Joseph S. Myers <joseph@codesourcery.com>
8533
8534 PR c++/24009
8535 * input.h (restore_input_file_stack): Declare.
8536 (INPUT_FILE_STACK_BITS): Define.
8537 * toplev.c (fs_p, input_file_stack_history,
8538 input_file_stack_restored, restore_input_file_stack): New.
8539 (push_srcloc, pop_srcloc): Check for input_file_stack_tick
8540 overflowing INPUT_FILE_STACK_BITS bits. Save new state of stack.
8541 (pop_srcloc): Don't free old state of stack.
8542
268b2718 85432006-08-26 David Edelsohn <edelsohn@gnu.org>
8544
8545 PR target/27544
8546 * doc/extend.texi (PowerPC Variable Attributes): Mention altivec.
8547 (PowerPC Type Attributes): New.
8548
81c44390 85492006-08-26 Bob Wilson <bob.wilson@acm.org>
8550
8551 * config/xtensa/xtensa.c (function_arg_boundary): New.
8552 (function_arg, xtensa_gimplify_va_arg_expr): Limit alignment to
8553 STACK_BOUNDARY.
8554 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Move code to new
8555 function_arg_boundary function that limits alignment to STACK_BOUNDARY.
8556
4a121d41 85572006-08-26 Jakub Jelinek <jakub@redhat.com>
8558
8559 PR middle-end/28683
8560 * cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
8561 3 following insns.
8562
35a10db8 85632006-08-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
8564
8565 * flow.c (verify_wide_reg): Use internal_error for consistency failure.
8566 (verify_local_live_at_start): Likewise.
8567
00fde275 85682006-08-25 Joseph S. Myers <joseph@codesourcery.com>
8569
8570 PR c/27893
8571 * gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval,
8572 omp_add_variable): Treat sizes as variable whenever not
8573 INTEGER_CST.
8574
a73dee2b 85752006-08-26 Richard Guenther <rguenther@suse.de>
8576
8577 PR middle-end/28814
8578 * fold-const.c (fold_binary): Fold temporary to correct
8579 type before constructing new comparison.
8580
e6b3b120 85812006-08-25 Fariborz Jahanian <fjahanian@apple.com>
8582
8583 PR c/28418
8584 * c-gimplify.c (gimplify_compound_literal_expr): Don't add
8585 variable again if DECL_SEEN_IN_BIND_EXPR_P.
8586
4d5ac30e 85872006-08-25 Joseph S. Myers <joseph@codesourcery.com>
8588
8589 PR c/28299
8590 * c-decl.c (start_function): Don't try to process prototype
8591 information from old declaration that isn't a function.
8592
376d0610 85932006-08-25 Jan Hubicka <jh@suse.cz>
8594
8595 PR target/28621
8596 * config/i386/crtfastmath.c (set_fast_math): Force stack alignment.
8597
1f496736 85982006-08-25 Alan Modra <amodra@bigpond.net.au>
8599
8600 PR target/27075
8601 * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
8602 for 8 byte objects.
8603
7989f7bd 86042006-08-25 J"orn Rennecke <joern.rennecke@st.com>
8605
8606 PR tree-optimization/16876
8607 * c-typeck.c (c_convert_parm_for_inlining): Don't take early
8608 exit if PARM doesn't match VALUE.
8609
de46f109 86102006-08-25 Bob Wilson <bob.wilson@acm.org>
8611
8612 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a
8613 literal_prefix directive.
8614 (XTENSA_DECLARE_FUNCTION_SIZE): Delete.
8615 * config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
8616 * config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
8617
5b4e7458 86182006-08-25 David Edelsohn <edelsohn@gnu.org>
8619
8620 PR target/28753
8621 * config/rs6000/rs6000.md (movcc_internal1): Change operand 1
8622 predicate to general_operand. Add 0->y and I->r alternatives.
8623
ab4f0a13 86242006-08-25 Kazu Hirata <kazu@codesourcery.com>
8625
8626 * doc/tm.texi: Fix a typo.
8627 * predict.c: Fix comment typos.
8628
c419de76 86292006-08-25 Nick Clifton <nickc@redhat.com>
8630
8631 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
8632 assertions of "cpu" and "machine".
8633
b745b656 86342006-08-24 Andrew Pinski <pinskia@physics.uc.edu>
8635
8636 PR tree-opt/28807
8637 * tree-ssa-operands.c (access_can_touch_variable): Don't say
8638 the access through a base which has an alias set of 0 cannot
8639 touch the variable.
8640
86412006-08-24 Bill Wendling <wendling@apple.com>
300c667a 8642
8643 * doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.
2e55afeb 8644
f9b7f54d 86452006-08-24 Jan Hubicka <jh@suse.cz>
8646
8647 * reload1.c (emit_reload_insns): Fix yet another typo in my patch.
8648
cd6bca02 86492006-08-24 Jan Hubicka <jh@suse.cz>
8650
8651 PR debug/26881
8652 * cgraph.c: Fix comments.
8653 (cgraph_varpool_mark_needed_node): Mark only variables not already
8654 output to file.
8655 * cgraphunit.c: Update comments; include gt-cgraphunit.h
8656 (cgraph_varpool_assembled_nodes_queue): New static variable.
8657 (cgraph_varpool_assemble_decl): Record output decls for debug out code.
8658 (cgraph_varpool_output_debug_info): New function.
8659 (cgraph_finalize_compilation_unit, cgraph_optimize): Call it.
8660 * Makefile.in: Add gt-cgraphunit.h
8661
b41438e5 86622006-08-24 Jan Hubicka <jh@suse.cz>
8663
8664 * predict.c (probability_reliable_p): New predicate.
8665 (edge_probability_reliable_p, br_prob_note_reliable_p): Likewise.
8666 (predict_loops): Do not predict loop exit with less than 2%
8667 probability.
8668 * basic-block.h (edge_probability_reliable_p,
8669 br_prob_note_reliable_p): Declare.
8670 * ia64.h (ia64_print_operand): Do not disable on-chip branch
8671 prediction when static predictor is not reliable.
8672 * rs6000.c (output_cbranch): Likewise.
8673
1315e264 86742006-08-23 Stuart Hastings <stuart@apple.com>
8675
8676 PR 28825
8677 * gcc/config/i386/i386.c (ix86_expand_vector_init_duplicate,
8678 ix86_expand_vector_init_one_nonzero): Remove TARGET_SSE test.
8679
bf591863 86802006-08-21 Geoffrey Keating <geoffk@apple.com>
8681
8682 PR debug/28692
8683 * dwarf2out.c (rtl_for_decl_init): Don't try to create RTL for
8684 complex values, nor for generic vector values.
8685
78350879 86862006-08-22 Richard Guenther <rguenther@suse.de>
8687
8688 PR middle-end/28776
8689 * tree-scalar-evolution.c (fold_used_pointer): Add at_stmt
8690 parameter. Convert arguments to arithmetic expression to the
8691 chrecs type.
8692 (analyze_scalar_evolution_1): Adjust caller.
8693
47df8084 86942006-08-22 Jan Hubicka <jh@suse.cz>
8695
8696 Patch by Paolo Bonzini
8697 * reload1.c (emit_reload_insns): Fix incorrect bracketing introduced by
8698 my previous patch.
8699
9e80b67b 87002006-08-22 Daniel Berlin <dberlin@dberlin.org>
8701
8702 PR tree-optimization/28003
8703 * tree-ssa-alias.c (compute_may_aliases): Compute call clobbered
8704 before grouping aliases.
8705
eca54dee 87062006-08-22 Roger Sayle <roger@eyesopen.com>
8707
8708 * config/i386/i386.c (ix86_value_regno): Don't return FIRST_MMX_REG
8709 if !TARGET_MMX, and don't return FIRST_SSE_REG if !TARGET_SSE.
8710
c3d09d4d 87112006-08-21 Jason Merrill <jason@redhat.com>
8712
8713 PR c++/27115
8714 * gimplify.c (voidify_wrapper_expr): Handle STATEMENT_LIST as a
8715 wrapper. Loop to handle nested wrappers.
8716 (gimplify_bind_expr): Remove temp parameter.
8717 (gimplify_modify_expr_rhs): Handle CLEANUP_POINT_EXPR, BIND_EXPR
8718 and STATEMENT_LIST on the rhs.
8719 (gimplify_statement_list): Voidify the STATEMENT_LIST.
8720 (gimplify_expr): Pass pre_p to gimplify_statement_list.
8721 (gimplify_target_expr): Remove special BIND_EXPR handling.
8722
bd494d23 87232006-08-21 J"orn Rennecke <joern.rennecke@st.com>
8724
8725 * config/sh/lib1funcs-Os-4-200.asm: Guard entire file with
8726 #if !__SHMEDIA__ .
8727
e1685698 87282006-08-21 Olivier Hainque <hainque@adacore.com>
8729
8730 * gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
8731 Arrange for the temporary captures of components overlapping the lhs
8732 to happen before the lhs is possibly cleared.
2e55afeb 8733
41c5a437 87342006-08-21 Mark Shinwell <shinwell@codesourcery.com>
6993cbc4 8735
41c5a437 8736 * config/arm/pr-support.c (__gnu_unwind_execute): Insert " + 1" in
8737 necessary places to pass the correct "number of registers" values
8738 to _Unwind_VRS_Pop.
8739
844ea20e 87402006-08-20 Jan Hubicka <jh@suse.cz>
8741
8742 * tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
8743 (create_name_tags): Instead of quadratic checking use hashtable.
8744 * bitmap.h: Include hashtab.h.
8745 (bitmap_hash): Declare.
8746 * bitmap.c (bitmap_hash): New function.
8747
8df22c5c 87482006-08-20 Jan Hubicka <jh@suse.cz>
8749
8750 PR rtl-optimization/28071
8751 * tree-optimize.c (tree_rest_of_compilation): Do not remove edges
8752 twice.
8753 * tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
8754 * ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
8755 (cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
8756 cgraph_decide_inlining_incrementally): Update use of
8757 cgraph_check_inline_limits.
8758 * cgraph.c (edge_hash, edge_eq): New function.
8759 (cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
8760 cgraph_edge_remove_caller, cgraph_node_remove_callees,
8761 cgraph_remove_node): Maintain call site hash.
8762 * cgraph.h (struct cgraph_node): Add call_site_hash.
8763 (cgraph_set_call_stmt): New function.
8764
7d742877 87652006-08-20 Jan Hubicka <jh@suse.cz>
8766
8767 PR rtl-optimization/28071
8768 * reload1.c (reg_has_output_reload): Turn into regset.
8769 (reload_as_needed, forget_old_reloads_1, forget_marked_reloads,
8770 choose_reload_regs, emit_reload_insns): Update to new
8771 reg_has_output_reload.
8772
6f30959a 87732006-08-20 Jan Hubicka <jh@suse.cz>
8774
8775 PR middle-end/28779
8776 * ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
8777 function body sizes.
8778 * cgraphunit.c (cgraph_analyze_function): Don't do so.
8779
87802006-08-20 Danny Smith <dannysmith@users.sourceforge.net>
27e0de67 8781
8782 PR target/28648 c:
8783 * tree.c (handle_dll_attribute): Return early if not a
6993cbc4 8784 var or function decl.
27e0de67 8785
ff5e5248 87862006-08-18 Joseph Myers <joseph@codesourcery.com>
8787
8788 PR target/27565
8789 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): For SPE, only adjust
8790 alignment of SPE vector types.
8791
beb68f4a 87922006-08-18 Christophe Jaillet <christophe.jaillet@wanadoo.fr>
8793
8794 * tree.c (is_attribute_with_length_p): Remove a duplicated assert.
8795
ba12ea31 87962006-08-17 Jakub Jelinek <jakub@redhat.com>
8797
8798 PR c/28744
8799 * cgraph.h (struct cgraph_node): Remove externally_visible
8800 bitfield.
8801 * cgraphunit.c (process_function_and_variable_attributes): Set
8802 local.externally_visible rather than externally_visible.
8803
8804 PR c/28744
8805 * c-common.c (handle_externally_visible_attribute): First look
8806 at TREE_CODE and only if it is function or var decl, check for
8807 non-public objects. Don't warn for DECL_EXTERNAL.
8808 * cgraphunit.c (process_function_and_variable_attributes): Warn
8809 if externally_visible attribute is used on non-public object.
8810
94aa2a3c 88112006-08-17 Jan Hubicka <jh@suse.cz>
8812
8813 PR tree-optimization/27865
8814 * reload1.c (forget_marked_reloads): New function.
8815 (forget_old_reloads_1): When data are passed, just mark the registers
8816 for later removal.
8817 (reload_as_needed): Use the new mechanizm.
8818
d51b37c2 88192006-08-17 Alexandre Oliva <aoliva@redhat.com>
8820
8821 PR target/28146
8822 * reload.h (reg_equiv_alt_mem_list): New declaration.
8823 * reload1.c (reg_equiv_alt_mem_list): New definition.
8824 (reload): Initialize it and release it.
8825 (delete_output_reload): Use it.
8826 * reload.c (push_reg_equiv_alt_mem): New function.
8827 (find_reloads_toplev): Call it.
8828 (find_reloads_address, find_reloads_address_1): Likewise.
8829 (find_reloads_subreg_address): Likewise.
8830
6fcfdb19 88312006-08-17 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
8832
8833 PR rtl-optimization/28489
8834 * sched-ebb.c (begin_schedule_ready): Create basic block
8835 at the right place.
8836 (advance_target_bb): Skip empty blocks.
8837 * haifa-sched.c (bb_note): Make global.
8838 * sched-int.h (bb_note): Add prototype.
8839
318a3281 88402006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
8841
8842 PR tree-optimization/27865
8843 * tree-vrp.c (adjust_range_with_scev): Do not use TYPE_{MIN,MAX}_VALUE
8844 for pointer types.
8845 * tree-scalar-evolution.c (fold_used_pointer_cast, pointer_offset_p,
8846 fold_used_pointer, pointer_used_p): New functions.
8847 (analyze_scalar_evolution_1): Use fold_used_pointer.
8848 * tree-chrec.c (convert_affine_scev): Convert no-op casts correctly.
8849 * tree-ssa-loop-ivopts.c (generic_type_for): Return integral type
8850 for pointers.
8851
d897f7c2 88522006-08-17 Paolo Bonzini <bonzini@gnu.org>
8853
8854 PR c++/28573
8855 * c-common.c (fold_offsetof_1): Add an argument and recurse down to it
2e55afeb 8856 or the INTEGER_CST. Fail on a CALL_EXPR.
d897f7c2 8857 (fold_offsetof): Pass new argument to fold_offsetof_1.
8858 * c-parser.c (c_parser_postfix_expression): Don't include a NULL
2e55afeb 8859 operand into an INDIRECT_REF.
d897f7c2 8860 * c-typeck.c (build_unary_op): Adjust call to fold_offsetof.
8861
102a5b98 88622006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
8863
8864 PR gcov/profile/26570
8865 * value-prof.c (static_values): Removed.
8866 (tree_find_values_to_profile): Do not set static_values.
8867 (find_values_to_profile): Do not free static_values.
8868 * profile.c (instrument_values): Do not free the values.
8869 (branch_prob): Free the values.
8870
09fc0c2b 88712006-08-16 Naveen.H.S <naveenh@kpitcummins.com>
8872
8873 * config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
8874
62e58612 88752006-08-16 Joseph S. Myers <joseph@codesourcery.com>
8876
8877 PR c/27697
8878 * c-typeck.c (build_component_ref): Combine qualifiers of
8879 structure or union and field.
8880
f50cf978 88812006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
8882
8883 PR rtl-optimization/28071
8884 * basic-block.h (bb_dom_dfs_in, bb_dom_dfs_out): Declare.
8885 * dominance.c (bb_dom_dfs_in, bb_dom_dfs_out): New functions.
8886 * tree-into-ssa.c (struct dom_dfsnum): New.
8887 (cmp_dfsnum, find_dfsnum_interval, prune_unused_phi_nodes): New
8888 functions.
8889 (insert_phi_nodes_for): Use prune_unused_phi_nodes instead of
8890 compute_global_livein.
8891 (prepare_block_for_update, prepare_use_sites_for): Mark the uses
8892 in phi nodes in the correct blocks.
8893
026ea634 88942006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
8895
8896 PR tree-optimization/28364
8897 * tree-ssa-loop-ivopts.c (aff_combination_to_tree): Handle zero
8898 correctly.
8899 (fold_affine_expr): New function.
8900 (may_eliminate_iv): Use fold_affine_expr.
8901
55d7e60b 89022006-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
8903
8904 PR c/27489
8905 * c-typeck.c (c_start_case): Handle invalid orig_type correctly.
8906 Clean up.
8907
5eec57e0 89082006-08-16 Mike Stump <mrs@apple.com>
8909
8910 * doc/invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.
8911 * doc/cppopts.texi (-MD): Likewise.
8912
f948b309 89132006-08-15 Danny Smith <dannysmith@users.sourceforge.net>
8914
8915 PR c/28287
8916 * c-common.c (handle_weak_attribute): Ignore and warn if
8917 not a FUNCTION_ or VAR_DECL.
8918
0e9b75a8 89192006-07-15 Mike Stump <mrs@apple.com>
8920
8921 PR c/28280
8922 * c-parser.c (c_parser_typeof_specifier): Don't use
8923 c_finish_expr_stmt, open code desired semantics instead.
8924
a05c50de 89252006-08-15 Nick Clifton <nickc@redhat.com>
8926
8927 * config.gcc (x86-mingw32): Add a gthr-win32.h including makefile
8928 fragment to tmake_file only if threads are enabled.
8929 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Move to...
8930 * config/i386/t-gthr-win32: New file. ... here.
8931
d038ab63 89322006-08-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
8933
8934 PR c/28649
8935 * c-parser.c (c_parser_compound_statement_nostart): Reset
8936 parser->error after each statement.
8937
8adefd57 89382006-08-15 Jakub Jelinek <jakub@redhat.com>
8939
cc6b725b 8940 PR middle-end/28713
8941 * omp-low.c (lower_omp_parallel): Convert t to
8942 receiver_decl's type.
8943 (expand_omp_parallel): STRIP_NOPS from the MODIFY_EXPR
8944 source before comparison.
8945
8adefd57 8946 PR middle-end/28724
8947 * gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
8948 to itype in assignment to oldival2.
8949
47adf96b 89502006-07-14 Andrew Pinski <pinksia@physics.uc.edu>
8951
8952 PR c/27490
8953 PR c/27489
8954 * c-typeck.c (build_compound_expr): If the second expression
8955 is an error mark, then just return an error mark instead of
8956 creating a COMPOUND_EXPR.
8957
ef7a32fb 89582006-07-14 Mike Stump <mrs@apple.com>
8959
8960 * Makefile.in (LIBGCC_DEPS): Don't depend on LANGUAGES.
8961
a8b99ef6 89622006-08-14 Kazu Hirata <kazu@codesourcery.com>
8963
8964 * c-decl.c, var-tracking.c: Fix comment typos.
8965
44382350 89662006-08-14 Richard Sandiford <richard@codesourcery.com>
8967
8968 PR rtl-optimization/28634
8969 * reorg.c (fill_slots_from_thread): Do not assume A + X - X == A
8970 for floating-point modes unless flag_unsafe_math_optimizations.
8971
ce675af0 89722006-08-13 Alexandre Oliva <aoliva@redhat.com>
8973 Andrew Pinski <pinskia@physics.uc.edu>
8974
8975 PR c/27184
8976 * tree.c (build_array_type): Unify array types with
8977 unspecified index_type.
8978 * c-decl.c (grokdeclarator): Make sure we do not modify a
8979 unified incomplete array type.
8980 * c-typeck.c (store_init_value): Create distinct type before
8981 filling in the index type in an initializer from a compound
8982 literal.
8983
8984 * c-decl.c (grokdeclarator): Remove code where we copy the
8985 array type over.
8986
138fbfd0 89872006-08-13 Andrew Pinski <pinskia@physics.uc.edu>
8988
8989 * tree-pass.h (TODO_update_ssa): Fix which bit is used to take
8990 into account for TODO_dump_cgraph.
8991 (TODO_update_ssa_no_phi): Likewise.
8992 (TODO_update_ssa_full_phi): Likewise.
8993 (TODO_update_ssa_only_virtuals): Likewise.
8994 (TODO_remove_unused_locals): Likewise.
8995 (TODO_set_props): Likewise.
8996 (TODO_update_stmt_usage): Likewise.
8997
1e31ff37 89982006-08-13 Dirk Mueller <dmueller@suse.de>
8999
9000 * c-common.c (strict_aliasing_warning): Fix formatting.
9001
79d18c70 90022006-08-13 Matthias Klose <doko@debian.org>
9003
9004 * doc/invoke.texi: Fix spelling errors.
9005
8ce4be4f 90062006-08-11 Eric Botcazou <ebotcazou@libertysurf.fr>
9007
9008 PR rtl-optimization/23454
9009 * reorg.c (relax_delay_slots): Update comment.
9010
3cea28d7 90112006-08-11 Richard Guenther <rguenther@suse.de>
9012
9013 PR middle-end/28651
9014 * simplify-rtx.c (simplify_const_relational_operation):
9015 Simplify A CMP B to A - B CMP 0 only for EQ and NE comparison
9016 codes.
9017
e8c64570 90182006-08-10 Eric Botcazou <ebotcazou@adacore.com>
25a7cbe1 9019
9020 * tree.c (build1_stat): Also propagate the TREE_CONSTANT and
9021 TREE_INVARIANT flags for a VIEW_CONVERT_EXPR.
9022
168bf671 90232006-08-10 Paul Brook <paul@codesourcery.com>
9024
9025 * final.c (final_scan_insn): Clear current_insn_predicate before
9026 outputting inline asm.
9027
ac926412 90282006-08-10 Dorit Nuzman <dorit@il.ibm.com>
9029
9030 PR tree-optimization/26197
9031 * tree-ssa-alias.c (new_type_alias): Takes additional argument. Calls
9032 get_ref_base_and_extent and overlap_subvar to add only relevant
9033 subvars as may-aliases.
9034 (add_may_alias_for_new_tag): New function, factored out of
9035 new_type_alias.
9036 * tree-vect-transform.c (vect_create_data_ref_ptr): Call new_type_alias
9037 with additional argument.
9038 * tree-flow.h (new_type_alias): Takes additional argument.
9039
fb6e7e82 90402006-08-09 Nathan Sidwell <nathan@codesourcery.com>
9041
9042 * gcov.c (no_data_file): New flag.
9043 (read_count_file): Set it if data file not present. Assume counts
9044 zero if not found.
9045 (output_lines): Don't name the data file, if there wasn't one.
9046
3a1af930 90472006-08-09 Eric Botcazou <ebotcazou@adacore.com>
9048
9049 * config/rs6000/rs6000.c (print_operand) <D>: Fix comment and adjust.
9050 (rs6000_generate_compare): Tweak comments.
9051 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Fix comment.
9052
96414f01 90532006-08-09 Alexandre Oliva <aoliva@redhat.com>
9054
9055 * var-tracking.c (enum micro_operation_type): Add MO_COPY.
9056 (var_debug_decl): New function.
9057 (var_reg_set): Follow debug decl link. Add location even if
9058 reg is already known to hold some other variable.
9059 (var_mem_set): Follow debug decl link.
9060 (var_reg_delete_and_set, var_mem_delete_and_set): Follow debug
9061 decl link. Delete other known locations of the variable part
9062 if requested.
9063 (var_reg_delete, var_mem_delete): Delete other known locations
9064 of the variable part if requested.
9065 (same_variable_part_p): New function.
9066 (add_stores): Select MO_COPY when appropriate.
9067 (vt_initialize): Handle it.
9068 (compute_bb_dataflow, emit_notes_in_bb): Likewise. Delete
9069 known locations for MO_SET and MO_CLOBBER.
9070 (find_variable_location_part): New function.
9071 (set_variable_part, delete_variable_part): Use it.
9072 (clobber_variable_part): New function.
9073 * dwarf2out.c (dwarf2out_var_location): Do not follow debug
9074 decl link.
9075
0bf7f847 90762006-08-07 Victor Kaplansky <victork@il.ibm.com>
f1ee72f7 9077
6993cbc4 9078 PR tree-optimization/26969
9079 * tree-vect-analyze.c (vect_analyze_loop_form): Add check of latch
9080 with an empty list of PHIs.
f1ee72f7 9081
3e3ebec6 90822006-08-06 Paolo Bonzini <bonzini@gnu.org>
9083
9084 PR target/27827
9085
9086 * conffig/i386/i386.md: Add peephole2 to avoid "fld %st"
9087 instructions.
9088
ef2ee7d3 90892006-08-06 Andreas Schwab <schwab@suse.de>
9090
9091 * config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
9092 string. Whitespace and comment fixup.
9093
481f0237 90942006-08-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9095
cd27e3ac 9096 PR c/28502
9097 * c-decl.c (validate_proto_after_old_defn): Return false on invalid
9098 argument.
9099
ab774101 9100 PR c/27721
9101 * c-typeck.c (build_modify_expr): Test earlier for non-lvalues.
9102
481f0237 9103 PR c/28136
9104 * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.
9105
7c679c65 91062006-08-04 Jan Hubicka <jh@suse.cz>
9107
9108 PR target/26655
9109 PR target/28270
481f0237 9110 * reload.c (push_reload): Patch out the mismatching instruction;
9111 return early.
7c679c65 9112 (find_reload): Bail out if the instruction was patched out.
9113
8e224d28 91142006-08-04 Jan Hubicka <jh@suse.cz>
9115
9116 PR tree-optimization/24888
9117 * tree-inline.c (expand_call_inline): Do not re-record variables.
9118 (declare_inline_vars): Add variable to unexpanded_var_list.
9119
0518a465 91202006-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9121 Roger Sayle <roger@eyesopen.com>
9122
9123 PR rtl-optimization/26244
9124 * cse.c (fold_rtx): Correctly associate shifts when const_arg1 and/or
9125 inner_const are negative or greater than or equal to the bitsize of
9126 MODE. If SHIFT_COUNT_TRUNCATED is false, the values aren't associated.
9127 Otherwise, the values are masked using GET_MODE_BITSIZE (mode) - 1.
9128 Simplify complicated if statement. For ASHIFT and LSHIFTRT, return
9129 CONST0_RTX (mode) when the new shift count is greater than or equal to
9130 to the bitsize of the object being shifted and XEXP (y, 0) has no side
9131 effects.
9132
54311699 91332006-08-04 Kazu Hirata <kazu@codesourcery.com>
9134
9135 * tree-cfg.c: Fix a comment typo.
9136
393cc65b 91372006-08-03 Mark Mitchell <mark@codesourcery.com>
9138
9139 PR c++/28148
9140 * varasm.c (output_constant): Give the front end another chance to
9141 expand constants, after stripping NOPs.
9142
3100c298 91432006-08-03 Jan Hubicka <jh@suse.cz>
9144
9145 * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
9146 implementation.
9147
9896f25b 91482006-08-03 Dorit Nuzman <dorit@il.ibm.com>
9149
6993cbc4 9150 PR tree-optimization/27770
9151 * tree-vectorizer.h (get_vectype_for_scalar_type): Function
9152 declaration removed (moved to tree-flow.h).
9153 (vect_can_force_dr_alignment_p): Likewise.
9154 * tree-flow.h (get_vectype_for_scalar_type): New function declaration
9155 (moved from tree-vectorizer.h).
9156 (vect_can_force_dr_alignment_p): Likewise.
9157 * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
9158 from outside the vectorizer - in particular from cgraph stage.
9159 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
9160 the alignment of global arrays when -fsection-anchors is enabled.
9161 * cgraphunit.c (cgraph_increase_alignment): New function.
9162 (cgraph_optimize): Call cgraph_increase_alignment.
9896f25b 9163
0620b8e0 91642006-08-03 David Edelsohn <edelsohn@gnu.org>
9165
9166 PR target/27566
9167 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
9168 not reload a SPE symbol_ref into a lo_sum address.
9169
4533b23c 91702006-08-02 Daniel Jacobowitz <dan@codesourcery.com>
9171
9172 PR debug/28063
9173 * dwarf2out.c (prune_unused_types_prune): Move call to
9174 prune_unused_types_update_strings to cover the parent DIE also.
9175
986c559b 91762006-08-02 Jan Hubicka <jh@suse.cz>
9177
9178 PR gcov/profile/28480
9179 * tree-cfg.c (change_bb_for_stmt): New function.
9180 (tree_merge_blocks, tree_split_blocks): Use it.
9181
cb2b5570 91822006-08-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9183
9184 PR c++/28250
9185 PR c++/28257
9186 PR c++/28259
9187 PR c++/28267
9188 * toplev.c (compile_file): Return early on errorcount or sorrycount.
9189 * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
9190 (cgraph_optimize): Likewise.
9191
02fd0f2d 91922006-08-01 Stuart Hastings <stuart@apple.com>
9193
9194 * rtl.h (UINTVAL) New.
9195 * config/rs6000/rs6000.c (SMALL_INT) Use it.
9196 * testsuite/gcc.dg/20060801-1.c: New.
2e55afeb 9197
89c30811 91982006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
9199
9200 PR debug/23336
9201 * c-typeck.c (build_external_type): Mark used enum types.
9202 * dwarf2out.c (dwarf2out_abstract_function): Save and restore
9203 cfun also.
9204 (gen_subprogram_die): Whitespace fix.
9205
6ec39557 92062006-08-01 Jan Hubicka <jh@suse.cz>
9207
9208 * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
9209 bitmap when not needed.
9210 * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
9211 bitmaps.
9212
c0c6c140 92132006-08-01 Dirk Mueller <dmueller@suse.de>
9214
9215 * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
9216
0846098b 92172006-07-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9218
9219 * Makefile.in: Revert part of previous patch:
9220 Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
9221 and REGS_H.
9222
c4e8a4d4 92232006-07-30 Eric Christopher <echristo@apple.com>
9224
9225 PR target/27543
9226 * doc/extend.texi (i386 Variable Attributes): Add anchor.
9227 (PowerPC Variable Attributes): New section.
9228
b4306b43 92292006-07-30 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
9230
9231 PR target/28126 (partial fix)
9232 * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
9233
2344b440 92342006-07-28 Jan Hubicka <jh@suse.cz>
9235
9236 PR rtl-optimization/28071
9237 * cfgrtl.c (rtl_delete_block): Free regsets.
9238 * flow.c (allocate_bb_life_data): Re-use regsets if available.
9239
e85b0b9f 92402006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9241
9242 * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
9243 and variables used in dependencies.
9244
c61aff47 92452006-07-27 Arjan van de Ven <arjan@linux.intel.com>
9246
9247 * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
9248 %fs for -mcmodel=kernel.
9249 (stack_tls_protect_test_di): Likewise.
9250
581a3a99 92512006-07-27 Carlos O'Donell <carlos@codesourcery.com>
9252
9253 * Makefile.in: Use mkinstalldirs.
9254
f8d1124d 92552006-07-27 H.J. Lu <hongjiu.lu@intel.com>
9256
9257 PR driver/28437
9258 * opts-common.c (prune_options): Skip joined switches.
9259
b0d535b8 92602006-07-27 Jan Hubicka <jh@suse.cz>
9261
9262 PR rtl-optimization/28071
9263 * cselib.c (cselib_process_insn): Don't remove useless values too
9264 often for very large hashtables.
9265
7824554a 92662006-07-27 Jan Hubicka <jh@suse.cz>
9267
9268 PR rtl-optimization/28071
9269 * global.c (greg_obstack): New obstack.
9270 (allocate_bb_info): Use it.
9271 (free_bb_info): Likewise.
9272 (modify_reg_pav): Likewise.
9273
73a0da56 92742006-07-27 Roger Sayle <roger@eyesopen.com>
9275
9276 * builtins.c (fold_fixed_mathfn): When long and long long are the
9277 same size, canonicalize llceil*, llfloor*, llround* and llrint*
9278 functions to their lceil*, lfloor*, lround* and lrint* forms.
9279
579e8d56 92802006-07-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9281
9282 PR gcc/28508
9283 * config/m32r/m32r.md (branch_insn): Reduce pc range for short
9284 branch.
9285 (rev_branch_insn): Likewise.
9286
681f6fc5 92872006-07-27 Jan Hubicka <jh@suse.cz>
9288
9289 PR rtl-optimization/28071
9290 * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
9291 (reg_set_in_bb, max_reg_computed): New static variables.
9292 (regmove_optimize): Free the new array.
9293 (fixup_match_1): Update call of reg_is_remote_constant_p.
9294
f4ec5ce1 92952006-07-26 Jan Hubicka <jh@suse.cz>
9296
9297 PR tree-optimization/27882
9298 * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
9299 and decl fields.
9300 * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
9301 next pointer
9302 (cgraph_analyze_compilation_unit): Likewise.
9303 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
9304 * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
9305 (cgraph_early_inlinine): Make order garbage collected.
9306 * Makefile.in (gt-ipa-inline): New garbagecollected file.
9307
c32222a3 93082006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
9309
9310 * dbxout.c (output_types_sort): Add a comment.
9311 (output_used_types): Free the VEC.
9312
70392493 93132006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
9314
9315 * function.c (reorder_fix_fragments): Delete.
9316 (reorder_blocks): Don't call it.
9317 (reorder_blocks_1): Put all subblocks under the origin block.
9318
e40df2f5 93192006-07-26 Zdenek Dvorak <dvorakz@suse.cz>
9320
9321 PR rtl-optimization/27907
9322 * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
9323 FLOAT_TRUNCATE.
9324
a2d0445d 93252006-07-25 Roger Sayle <roger@eyesopen.com>
9326
9327 PR middle-end/28473
9328 * convert.c (convert_to_integer): When transforming (T)foo(x) into
9329 bar(x) check that bar's result type can represent all the values of T.
9330
01b1b46d 93312006-07-25 Zdenek Dvorak <dvorakz@suse.cz>
9332
9333 * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
9334
f68513d3 93352006-07-25 Nick Clifton <nickc@redhat.com>
9336
9337 * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
9338 size_lookup[] array.
9339 (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
9340 (ggc_pch_count_object): Likewise.
9341 (ggc_pch_alloc_object): Likewise.
9342 (ggc_pch_write_object): Likewise.
9343 (init_ggc): Do not attempt to initialize entries in the
9344 size_lookup[] array for objects whose size is greater than than
9345 the length of the array.
9346
18247eca 93472006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
9348
9349 * dbxout.c (output_used_types_helper): Push queued types
9350 on a VEC.
9351 (output_types_sort): New.
9352 (output_used_types): Collect used types on a VEC and sort them
9353 before emission.
9354
01ded803 93552006-07-24 Richard Guenther <rguenther@suse.de>
9356
9357 PR middle-end/28463
9358 * cgraph.c (cgraph_remove_node): Do not check if dumps
9359 are enabled.
9360 * cgraphunit.c (cgraph_optimize): Likewise.
9361
2f30597a 93622006-07-24 Jan Hubicka <jh@suse.cz>
9363
9364 PR rtl-optimization/28071
9365 * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
9366 * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
9367 splitting before first stmt.
9368
109bf1e3 93692006-07-24 Jan Hubicka <jh@suse.cz>
9370
9371 PR rtl-optimization/28071
9372 * ipa-inline.c (update_caller_keys): Remove edges that
9373 are no longer inline candidates.
9374
c8c04e0d 93752006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
9376
9377 PR debug/27473
9378 * dbxout.c (output_used_types_helper, output_used_types): New.
9379 (dbxout_symbol): Call output_used_types.
9380
05806473 93812006-07-23 Jan Hubicka <jh@suse.cz>
9382
9383 PR c/25795
9384 PR c++/27369
9385 * cgraph.c (cgraph_varpool_nodes): Export.
9386 (decide_is_variable_needed): Ignored "used" attribute in
9387 unit-at-a-time mode.
9388 * cgraph.h (cgraph_varpool_nodes): Declare.
9389 * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
9390 unit-at-a-time mode.
9391
c54654b7 93922006-07-23 Roger Sayle <roger@eyesopen.com>
9393
9394 PR target/28247
9395 * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
9396 mutex_destroy even when !_LIBOOBJC. Remove duplicate prototype of
9397 the __gthrw form of thr_keycreate.
9398 (__gthread_key_delete): Silence the unused argument warning.
9399
500973f9 94002006-07-23 Steven Bosscher <steven@gcc.gnu.org>
9401
9402 PR debug/25468
9403 * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
9404 Cache the last found '\0' marker to avoid quadratic behavior.
9405
c98a8335 94062006-07-23 Jan Hubicka <jh@suse.cz>
9407
9408 * i386.md (subsi_3_zext): Fix output template.
9409
f05a163e 94102006-07-21 Mike Stump <mrs@apple.com>
9411
9412 * doc/invoke.texi (C++ Dialect Options): Note that
9413 -fvisibility-inlines-hidden doesn't affect explicitly
9414 instantiationed inline methods.
9415
8b3b32fb 94162006-07-20 Roger Sayle <roger@eyesopen.com>
9417
9418 * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
9419 if the target assembler is GNU binutils' gas.
9420 * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
9421 whether to pass GNU gas or native as command line options.
9422
6a47600c 94232006-07-20 Jason Merrill <jason@redhat.com>
9424
9425 * tree.c (remove_attribute): New fn.
b85623b5 9426 * tree.h: Declare it.
6a47600c 9427
977ffed2 94282006-07-20 Paul Brook <paul@codesourcery.com>
9429
9430 PR 27363
9431 * cse.c (cse_insn): Add destination addresses to hash table. Check if
9432 they are invalidated by this instruction.
9433
ec9719e1 94342006-07-21 Danny Smith <dannysmith@users.sourceforge.net>
9435
9436 PR target/28427
6993cbc4 9437 * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
ec9719e1 9438
3e883b09 94392006-07-20 Eric Christopher <echristo@apple.com>
9440
9441 PR target/26877
9442 * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
9443
52d22316 94442006-07-19 Eric Christopher <echristo@apple.com>
9445
9446 * config/t-slibgcc-darwin (stmp-lipo): Remove.
9447 Rewrite dependencies for libgcc_s.1.dylib.
9448
e6855db0 94492006-07-19 Jakub Jelinek <jakub@redhat.com>
9450
9451 * except.c (duplicate_eh_regions_1): Clear next_peer.
9452
e3eb8567 94532006-07-17 Nathan Sidwell <nathan@codesourcery.com>
9454
9455 * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
9456 -mlongcall does not guarantee all calls will be long.
9457 * doc/extend.texi (long_call/short_call): Document that longcall
9458 does not guarantee a long call will be used.
9459 (longcall/shortcall): Likewise.
9460
99d2e279 94612006-07-18 Roger Sayle <roger@eyesopen.com>
9462
9463 PR middle-end/28283
9464 * expmed.c (expand_shift): Additionally check that the shift_cost
9465 is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
9466 before implementing a LSHIFT_EXPR as a sequence of additions.
9467 * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
9468 middle-end that DImode shifts need to be synthesized by expand.
9469
8443c80c 94702006-07-18 Diego Novillo <dnovillo@redhat.com>
9471
9472 PR 28410
9473 * tree-ssa-operands.c (access_can_touch_variable): Update
9474 comment.
9475 Return true if ALIAS is .GLOBAL_VAR.
9476
6702edc2 94772006-07-18 David Daney <ddaney@avtrex.com>
9478
9479 * gcc.c (display_help): Fix typo in help text.
9480
20169a64 94812006-07-18 Olivier Hainque <hainque@adacore.com>
9482
9483 * tree.h (categorize_ctor_elements): Adjust prototype and add
9484 descriptive comment, both in accordance with the interface change
9485 described below.
9486 * varasm.c (constructor_static_from_elts_p): New function.
9487 Whether a constructor node is a valid static constant initializer
9488 if all its elements are.
9489 (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
52d22316 9490 * output.h: Declare it.
20169a64 9491 * expr.c (categorize_ctor_elements_1): Return whether the constructor
9492 is a valid constant initializer instead of computing the number of
9493 non-constant elements. Use constructor_static_from_elts_p for this
9494 purpose. Replace the head comment with an indication that this is a
9495 helper for categorize_ctor_elements.
9496 (categorize_ctor_elements): Same interface change as for the _1
9497 helper. Former head comment from this helper moved here, adjusted to
9498 account for the interface changes.
9499 (mostly_zeros_p): Adjust call to categorize_ctor_elements.
52d22316 9500 (all_zeros_p): Likewise.
20169a64 9501 * gimplify.c (gimplify_init_constructor): Decide whether we can make
9502 static versions of the constructor from the categorize_ctor_elements
9503 return value instead of the formerly computed number of non-constant
9504 elements.
9505
3e427a9c 95062006-07-18 Paolo Bonzini <bonzini@gnu.org>
9507
6993cbc4 9508 * configure: Regenerate.
9509 * Makefile.in (build_libsubdir): New configure substitution
9510 (build_libobjdir): New variable.
9511 (BUILD_LIBIBERTY): Use it.
3e427a9c 9512
6e890d9c 95132006-07-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9514
9515 PR c/28286
9516 * c-pragma.c (handle_pragma_pack): Handle invalid constants.
9517
83852912 95182006-07-18 Alexandre Oliva <aoliva@redhat.com>
9519
9520 PR c/26993
9521 * c-common.c (handle_weakref_attribute): Ignore attribute in
9522 the same conditions the alias attribute is ignored.
9523
ff1a5b4a 95242006-07-17 Carlos O'Donell <carlos@codesourcery.com>
9525
9526 * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
9527 (dbxout_begin_prologue): Increment scope_labelno.
9528
a4b6566a 95292006-07-17 Richard Henderson <rth@redhat.com>
9530
9531 PR 27889
9532 * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
9533 if needed.
9534
78ab4d5e 95352006-07-17 Roger Sayle <roger@eyesopen.com>
9536 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9537
9538 * config/i386/gmon-sol2.c: Silence compilation warnings by partially
9539 synchronizing code with config/sparc/gmon-sol2.c. Remove #if 0
9540 blocks. #include "tconfig.h" and "tsystem.h" to prototype system
9541 functions such as sbrk, write, etc.. Add function prototypes.
9542 Convert function declarations from K&R to ISO C. Cast pointers
9543 to "long" and "unsigned long" instead of "int" and "unsigned int".
9544 Convert tokens following #endif into comments.
9545
b7c18eb3 95462006-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
9547
9548 * invoke.texi: Remove mention of f77; Reformat table for
9549 inline parameter options correctly; mention that -malign-double
9550 is default on x86-64 targets.
9551
85cf2bcd 95522006-07-17 Zdenek Dvorak <dvorakz@suse.cz>
9553
9554 * tree-chrec.c (avoid_arithmetics_in_type_p): New.
9555 (convert_affine_scev, chrec_convert_aggressive): Use
9556 avoid_arithmetics_in_type_p. Do not check for the subtypes
9557 separately.
9558
ed4439b1 95592006-07-17 Richard Sandiford <richard@codesourcery.com>
9560
9561 PR middle-end/28403
9562 * optabs.c (expand_doubleword_shift): Wrap the call to
9563 do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
9564
36271919 95652006-07-17 Richard Sandiford <richard@codesourcery.com>
9566
9567 PR middle-end/28402
9568 * optabs.c (expand_binop): Pass next_methods rather than methods
9569 to expand_doubleword_shift.
9570
969239ad 95712006-07-17 J"orn Rennecke <joern.rennecke@st.com>
9572
9573 PR other/28251
9574 * tree.h (dump_addr): Declare.
9575 * print-tree.c (dump_addr): New function.
9576 (print_node_brief, print_node): Use it.
9577 * print-rtl.c (print_rtx): Likewise.
9578 * common.opt (-fdump-noaddr): New option.
9579 * doc/invoke.texi (-fdump-noaddr): Document.
9580 * loop-unroll.c (si_info_hash): Make hash independent of addresses.
9581 (ve_info_hash): Likewise.
9582
8e659d30 95832006-07-13 Andrew Haley <aph@redhat.com>
9584
9585 PR tree-optimization/19505
9586 * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
9587 edge leaving this block, make sure that the destination of this
9588 block has only one predecessor.
9589
5bfb60b4 95902006-07-17 Richard Guenther <rguenther@suse.de>
9591
9592 PR tree-optimization/28238
9593 * tree-inline.c (copy_bb): Check if we produced valid
9594 gimple copying and substituting a stmt. If not, gimplify
9595 it.
9596
8ccaf1c3 95972006-07-16 Eric Botcazou <ebotcazou@adacore.com>
9598
9599 * optabs.c (maybe_encapsulate_block): New function extracted from...
9600 (emit_libcall_block): ...here. Invoke it on the block of insns to
9601 maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
9602 (emit_no_conflict_block): Likewise.
9603
5c9156d2 96042006-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
9605
62426a9d 9606 * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
5c9156d2 9607
f2f31d94 96082006-07-15 Roger Sayle <roger@eyesopen.com>
9609
9610 * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
9611 a new NOP_EXPR case of the switch statement.
9612
8aea3a7e 96132006-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
9614
9615 PR middle-end/28160
9616 * stor-layout.c (place_field): Take the bit field with
9617 an excessive size into account in the ms-bitfiled case.
9618
9619 PR middle-end/28161
9620 * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
9621 the previous bit field.
9622
d45d6318 96232006-07-14 Eliot Dresselhaus <eliot@sonic.net>
9624
9625 PR target/27287
9626 * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
9627
199f9baa 96282006-07-14 Ulrich Weigand <uweigand@de.ibm.com>
9629
9630 * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
9631 signal frames correctly even when the signal was installed with
9632 sa_restorer set.
9633
14571b8c 96342006-07-14 Carlos O'Donell <carlos@codesourcery.com>
a6e8892a 9635
9636 * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
52d22316 9637 (dbxout_function_end): Use local label LFBB. Remove hook
14571b8c 9638 DBX_OUTPUT_NFUN.
a6e8892a 9639 (dbxout_source_line): Use local label LFBB.
9640 (dbxout_block): Likewise.
9641 (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
9642 (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
9643 * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
9644 and DBX_OUTPUT_NFUN.
9645
c7a67206 96462006-07-13 Janis Johnson <janis187@us.ibm.com>
9647
9648 * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
9649
e3a1de9d 96502006-07-13 Jan Hubicka <jh@suse.cz>
9651
9652 * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
9653 align_variable.
9654 * output.h (align_variable): Declare.
9655 * varasm.c (align_variable): Export.
9656 * value-prof.c (tree_value_profile_transformations): Recompute iterator
9657 when basic block changed.
9658
8bd02423 96592006-07-13 Nick Clifton <nickc@redhat.com>
9660
9661 * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
9662 walking the LOG_LINKS chain.
52d22316 9663
825957d0 96642006-07-12 Geoffrey Keating <geoffk@apple.com>
9665
9666 * doc/invoke.texi (C++ Dialect Options): Explain difference
9667 between -fvisibility-inlines-hidden and setting hidden
9668 visibility explicitly.
9669
296ac38d 96702006-07-12 Eric Christopher <echristo@apple.com>
9671
9672 * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
9673 (stmp-lipo): Depend on libgcc.a.
9674
a3a710ae 96752006-07-12 Kazu Hirata <kazu@codesourcery.com>
9676
9677 * tree.c: Fix a comment typo.
9678
03ed61bd 96792006-07-12 Naveen.H.S <naveenh@kpitcummins.com>
9680
296ac38d 9681 * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
03ed61bd 9682 dest.
9683 (umulhisi3_r): Likewise.
9684
2be9ef44 96852006-07-12 Paolo Carlini <pcarlini@suse.de>
9686
9687 PR libstdc++/27878
9688 * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
9689 x < 19, vs wchar_t support.
9690
a363d423 96912006-07-12 Nick Clifton <nickc@redhat.com>
9692
9693 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
9694 instead of -isa=sh4.
9695
b1acb195 96962006-07-12 Mike Stump <mrs@apple.com>
9697
9698 * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
9699
4bd2ed91 97002006-07-10 Eric Christopher <echristo@apple.com>
9701
9702 * config/t-slibgcc-darwin: Rewrite.
9703
53d9fa56 97042006-07-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9705
9706 PR bootstrap/20437
9707 * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
9708 dependencies.
9709
52e76f50 97102006-07-08 Matthias Klose <doko@debian.org>
9711
9712 * doc/sourcebuild.texi: Fix typo.
9713
61025e42 97142006-07-07 Mike Stump <mrs@apple.com>
9715
9716 * toplev.c (process_options): Don't give -ffunction-sections may
9717 affect debugging warning for Mach-O.
9718
2ca4dfa4 97192006-07-07 James E Wilson <wilson@specifix.com>
9720
9721 * config/mips/mips.md (cpu): Add sb1a.
9722 * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
9723 addition to sb1. Adjust comments to clarify SB-1A differences from
9724 SB-1.
9725 (ir_sb1a_load): New. Modify bypasses to use it.
9726 (ir_sb1a_simple_alu): Likewise.
9727 * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
9728 (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
9729 (mips_issue_rate): Add PROCESSOR_SB1A.
9730 (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
9731 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
9732 (TARGET_SB1): Add PROCESSOR_SB1A check.
9733 (TUNE_SB1): Likewise.
9734
9735 * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
9736 * config/mips/mips.c (mips_store_data_bypass_p): New.
9737 * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
9738 store_data_bypass_p.
9739
463b8e0b 97402006-07-08 Paul Brook <paul@codesourcery.com>
9741
9742 PR target/27991
9743 * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
9744
ba56cb50 97452006-07-07 Richard Guenther <rguenther@suse.de>
9746
9747 PR middle-end/28268
9748 * tree.h (build_one_cst): Declare.
9749 * tree.c (build_one_cst): New function.
9750 * tree-ssa-math-opts.c (get_constant_one): Remove.
9751 (insert_reciprocals): Use build_one_cst.
9752 * fold-const.c (fold_plusminus_mult): Likewise.
9753
2e2fd8fe 97542006-07-07 Roger Sayle <roger@eyesopen.com>
9755
9756 * pointer-set.c (pointer_set_destroy): Correct whitespace.
9757 * cfgloopanal.c (dump_graph): Likewise.
9758 * dojump.c (discard_pending_stack_adjust): Likewise.
9759 * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
9760 Likewise.
9761 * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
9762 * function.c (finalize_block_changes): Likewise.
9763 * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
9764 * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
9765 * rtl.c (dump_rtx_statistics): Likewise.
4bd2ed91 9766 * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
2e2fd8fe 9767 Likewise.
9768 * varray.c (dump_varray_statistics): Likewise.
9769 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
9770 decode_decimal64, encode_decimal128, decode_decimal128,
9771 decimal_real_to_decimal): Likewise.
9772
238ad80e 97732006-07-07 Richard Guenther <rguenther@suse.de>
9774
9775 PR tree-optimization/28187
9776 * tree-vrp.c (vrp_operand_equal_p): New function.
9777 (vrp_bitmap_equal_p): Likewise.
9778 (update_value_range): Use them to compare old and new
9779 max and min values.
9780
3ab72ef0 97812006-07-06 Roger Sayle <roger@eyesopen.com>
9782
9783 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
9784 a default case to switch statement to silence compiler warnings.
9785
97f2677a 97862006-07-06 Roger Sayle <roger@eyesopen.com>
9787
9788 PR target/27968
4bd2ed91 9789 * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
97f2677a 9790 the configured assembler supports the x87's ffreep mnemonic.
9791 * configure: Regenerate.
9792 * config.in: Regenerate.
9793
9794 * config/i386/i386.c (output_387_ffreep): New function.
9795 (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
9796 (output_387_reg_move): Likewise.
9797
108cf177 97982006-07-06 Paul Eggert <eggert@cs.ucla.edu>
9799
9800 Port to hosts whose 'sort' and 'tail' implementations
9801 treat operands with leading '+' as file names, as POSIX
9802 has required since 2001. However, make sure the code still
9803 works on pre-POSIX hosts.
9804 * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
9805 which says you should use "tail -c +N" rather than "tail +Nc".
9806 Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
9807
499c8b1e 98082006-07-06 Zdenek Dvorak <dvorakz@suse.cz>
9809
97f2677a 9810 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
9811 argument name.
499c8b1e 9812
0c3d4c89 98132006-07-06 David Edelsohn <edelsohn@gnu.org>
9814
9815 PR target/28150
9816 * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
9817 PRE_{INC,DEC} of TFmode.
9818
98192006-07-06 David Edelsohn <edelsohn@gnu.org>
9820 Alan Modra <amodra@bigpond.net.au>
9821
9822 PR target/28170
9823 * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
9824 bounds. Simplify.
9825
c1d0c676 98262006-07-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9827
9828 PR target/28285
9829 * config/alpha/predicates.md (alpha_swapped_comparison_operator):
9830 Remove duplicate gtu.
9831
2bc7da70 98322006-07-05 Jason Merrill <jason@redhat.com>
9833
9834 PR c++/13983
9835 PR c++/17519
9836 * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
9837 * c-common.c (handle_packed_attribute): So don't copy it here.
9838 * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
9839
d2f36968 98402006-07-05 Mike Stump <mrs@apple.com>
9841
9842 * doc/invoke.texi (Invoking G++): Clarify prose for g++.
9843
a2e127ea 98442006-07-05 H.J. Lu <hongjiu.lu@intel.com>
9845
9846 PR target/26146
9847 * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
9848
547f0055 98492006-07-05 Richard Guenther <rguenther@suse.de>
9850
9851 PR target/28158
9852 * config/i386/i386.md (*negdf2_1): Restrict pattern to
9853 TARGET_SSE2 targets if using SSE math.
9854 (*absdf2_1): Likewise.
9855
47652819 98562006-07-05 Richard Guenther <rguenther@suse.de>
9857
9858 PR tree-optimization/28162
9859 * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
9860 make sure to convert the operands to the correct type.
9861
c136ae61 98622006-07-04 Paolo Bonzini <bonzini@gnu.org>
9863
9864 PR tree-optimization/28218
9865
9866 * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
9867 to calculate and free the dominator information.
4bd2ed91 9868
46276eaf 98692006-07-04 Peter O'Gorman <peter@pogma.com>
9870
9871 * mklibgcc.in: chmod 644 before ranlib during install.
9872
a9e7d751 98732006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
9874 J"orn Rennecke <joern.rennecke@st.com>
9875
9876 * configure.ac (.eh_frame data check): Use diff -b.
9877
f508ba97 98782006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
9879
9880 PR bootstrap/18058
9881 * Makefile.in (BUILD_RTL): Add build/vec.o.
9882 (build/gencondmd.o): Filter out -fkeep-inline-functions.
9883 (build/genextract): Delete.
9884 (build/genautomata): Likewise.
9885
487b16e9 98862006-07-04 Alan Modra <amodra@bigpond.net.au>
9887
9888 PR target/28207
9889 * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
9890 128-bit IBM long doubles for ABI_V4.
9891
2100c228 98922006-07-03 Eric Botcazou <ebotcazou@adacore.com>
9893
9894 * tree.c (range_in_array_bounds_p): New predicate.
9895 * tree.h (range_in_array_bounds_p): Declare it.
9896 * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
9897 return a less conservative answer.
9898 * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
9899 and flag 'is_group'.
9900 (IS_ELEMENT_FOR_GROUP): New macro.
9901 (FOR_EACH_ACTUAL_CHILD): Likewise.
9902 (next_child_for_group): New helper function.
9903 (can_completely_scalarize_p): Take into account groups.
9904 (sra_hash_tree): Handle RANGE_EXPR.
9905 (sra_elt_eq): Likewise.
9906 (lookup_element): Be prepared for handling groups.
9907 (is_valid_const_index): Delete.
9908 (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
9909 instead of is_valid_const_index.
9910 <ARRAY_RANGE_REF>: New case.
9911 (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
9912 is_valid_const_index.
9913 <ARRAY_RANGE_REF>: Do not unconditionally punt.
9914 (scan_dump): Dump info for groups too.
9915 (decide_instantiation_1): Likewise.
9916 (decide_block_copy): Assert that the element is not a group.
9917 Propagate decision to groups.
9918 (generate_one_element_ref): Handle RANGE_EXPR.
9919 (mark_no_warning): Iterate over actual childs.
9920 (generate_copy_inout): Likewise.
9921 (generate_element_copy): Likewise.
9922 (generate_element_zero): Likewise.
9923 (generate_element_init_1): Likewise.
9924 (dump_sra_elt_name): Handle RANGE_EXPR.
9925
aed95130 99262006-07-03 Roger Sayle <roger@eyesopen.com>
9927
9928 PR tree-optimization/26251
9929 * tree-ssa-threadupdate.c (redirection_block_p): New function.
9930 (thread_block): When optimizing for size refuse to thread jumps
9931 that would require duplication of blocks other than redirection
9932 blocks.
9933
3891e7d9 99342006-07-03 Paolo Bonzini <bonzini@gnu.org>
9935
9936 * configure.ac: Fix thinko in previous check-in.
9937 * configure: Regenerate.
9938
5dee13c2 99392006-07-03 Paolo Bonzini <bonzini@gnu.org>
9940
9941 PR other/27063
9942 * configure.ac (for lang...): Simplify nesting of conditionals.
9943 Test subdir_requires for non-enabled languages. Move processing
9944 of lang_opt_files and lang_tree_fiels below that test.
9945 * configure: Regenerate.
9946 * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
9947
0cda8c30 99482006-07-01 Martin Michlmayr <tbm@cyrius.com>
9949
9950 * doc/gcov.texi (Invoking Gcov): Add a missing word.
9951
588ce679 99522006-06-30 Kazu Hirata <kazu@codesourcery.com>
9953
9954 * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
9955 comment typos.
9956
4a2849cb 99572006-06-29 Jason Merrill <jason@redhat.com>
9958
9959 PR c++/26905
9960 PR c++/26612
9961 PR c++/27000
9962 PR c++/26984
9963 PR c++/19134
9964 * tree.c (build_decl_stat): Don't hande #pragma visibility here.
9965 * c-common.c (c_determine_visibility): Handle it here.
4bd2ed91 9966 * c-decl.c (finish_decl): Call c_determine_visibility for
4a2849cb 9967 functions, too.
9968 * flags.h (enum symbol_visibility): Sort from most to least visibility.
9969 * tree.h: Likewise.
9970 * varasm.c (default_assemble_visibility): Likewise.
9971 * c-common.c (handle_visibility_attribute): Complain about trying
9972 to give visibility to an already defined class, or trying to change
9973 declared visibility. Always attach the attribute.
9974
9975 PR c++/26905
9976 PR c++/21675
9977 PR c++/17470
9978 * attribs.c (decl_attributes): Ignore type-in-place attributes
9979 once the type has been defined.
9980
7a8c1294 99812006-06-29 Roger Sayle <roger@eyesopen.com>
9982
9983 PR middle-end/27428
9984 * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
9985 to indicate the cpplib has issued an error message for us.
9986
6c6fd108 99872006-06-29 Asher Langton <langton2@llnl.gov>
9988
9989 PR target/25765
9990 * config/i386/i386.c (ix86_output_function_epilogue): Don't
9991 insert a label at the end of an function under Mach-O.
4bd2ed91 9992
c0933680 99932006-06-29 Eric Christopher <echristo@apple.com>
9994 Evan Cheng <evan.cheng@apple.com>
9995
9996 * predicates.md (vector_all_ones_operand): New.
9997 (nonimmediate_or_sse_const_operand): Ditto.
9998 * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
9999 * config/i386/i386.c (standard_sse_constant_opcode): Define.
10000 (standard_sse_mode_p): Ditto.
10001 (standard_sse_constant_p): Add case for -1 vector.
10002 (ix86_expand_vector_move): Try to use.
10003 * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
10004 Call standard_sse_constant_opcode.
10005 (*movv4sf_internal): Ditto.
10006 (*movv2df_internal): Ditto.
10007
c062b0d1 100082006-06-29 Roger Sayle <roger@eyesopen.com>
10009
10010 * genpreds.c (write_match_code_switch): Correctly use XSTR instead
10011 of XEXP to extract the operands of a MATCH_CODE rtx.
10012
4043066e 100132006-06-28 Andrew Pinski <pinskia@gmail.com>
10014
10015 * tree.c (tree_size): Do not waste tail padding in
10016 struct tree_string and make the size be the same as
10017 build_string will generate.
10018
d0fb9d56 100192006-06-28 Jason Merrill <jason@redhat.com>
10020
10021 PR c++/27768
10022 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
10023 may_aliases already in the tag's annotations to the bitmap.
10024
21455936 100252006-06-28 Roger Sayle <roger@eyesopen.com>
10026
10027 * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
10028
868178ed 100292006-06-28 Roger Sayle <roger@eyesopen.com>
10030
10031 * genpreds.c (generate_switch_p): New function.
10032 (add_mode_tests): Push the new mode test down inside an AND expr
10033 if this allows the switch-suitable MATCH_CODE to be near the root.
10034 (write_match_code_switch): New function to write a MATCH_CODE as
10035 a switch statement.
10036 (write_predicate_stmts): New function to write a predicate RTX
10037 expression as a sequence of statements.
10038 (write_one_predicate_function): Use write_predicate_stmts.
10039 (write_tm_constrs_h): Likewise.
10040
68b77226 100412006-06-26 Fred Fish <fnf@specifix.com>
10042
10043 * config/mips/t-sb1: New file.
10044 * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
10045 tmake_file list.
10046
54536dfe 100472006-06-26 DJ Delorie <dj@redhat.com>
10048
10049 * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
10050
100512006-06-26 Naveen H.S <naveenh@kpitcummins.com>
10052 Jayant Sonar <jayants@kpitcummins.com>
10053 Jaydeep Vipradas <jaydeepv@kpitcummins.com>
10054
10055 * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
10056 (subsi3, subsi3_1, subsi3_2): New.
10057 * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
10058 * config/m32c/mov.md (SI mov peephole): New.
10059 * config/m32c/m32.c (m32c_immd_dbl_mov): New.
10060 * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
c0933680 10061
6f18455e 100622006-06-26 Olivier Hainque <hainque@adacore.com>
10063
10064 * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
10065 a CALL_EXPR target function declaration.
10066
65c79db3 100672006-06-26 Richard Guenther <rguenther@suse.de>
10068
10069 * tree.c (build_string): Do not waste tail padding in
10070 struct tree_string.
10071
5da2078a 100722006-06-26 Richard Guenther <rguenther@suse.de>
10073
10074 * ggc-page.c (init_ggc): Add missing element to size_lookup
10075 table.
10076
10077 Revert
10078 2006-06-23 Richard Guenther <rguenther@suse.de>
10079
10080 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
10081 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
10082 alignment requests instead. Add verification code.
10083 Add struct tree_function_decl and struct tree_binfo size to
10084 extra_order_size_table. Add missing element to size_lookup
10085 table.
10086
0b6fa2ba 100872006-06-25 Eric Botcazou <ebotcazou@adacore.com>
10088
10089 PR middle-end/28151
10090 * fold-const.c (const_binop): Be prepared for self returning zero.
10091 Simplify code handling complex values.
10092
9c530f25 100932006-06-24 Olivier Hainque <hainque@adacore.com>
10094
10095 * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
10096 (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
10097 aggregate types.
10098
100992006-06-24 Olivier Hainque <hainque@adacore.com>
10100
10101 * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
10102 ARRAY_REF, so have the callback called for the low bound expression.
10103
e5d0ba06 101042006-06-23 Janis Johnson <janis187@us.ibm.com>
10105
10106 * tree.h (DECIMAL_FLOAT_TYPE_P): New.
10107 * c-typeck.c (c_common_type): Disallow operations on decimal float
10108 types and other float types.
10109 * convert.c (convert_to_real): Don't ignore conversions involving
10110 decimal float types.
10111
150edb07 101122006-06-23 Olivier Hainque <hainque@adacore.com>
10113
10114 * tree.c (max_int_size_in_bytes): New function, inspired from
10115 code in function.c:assign_temp.
10116 * tree.h (max_int_size_in_bytes): Declare.
10117 * function.c (assign_temp): Use it.
10118 * gimplify.c (create_tmp_var): Relax the assertions on the type
10119 properties, not mandating constant size any more.
10120 (force_constant_size): New static function.
10121 (gimple_add_tmp_var): Use it, forcing variable size to a
10122 constant upper bound if it is not constant on entry.
10123
768d7d97 101242006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
10125
10126 PR target/27789
10127 * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
10128 for initialization and setting of one_only flag to ...
10129 (i386_pe_encode_section_info): ...here.
10130 (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
10131 Recheck that the symbol has not been defined.
10132
8c14f57e 101332006-06-23 Richard Guenther <rguenther@suse.de>
10134
10135 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
10136 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
10137 alignment requests instead. Add verification code.
10138 Add struct tree_function_decl and struct tree_binfo size to
10139 extra_order_size_table. Add missing element to size_lookup
10140 table.
10141
231c1565 101422006-06-22 Roger Sayle <roger@eyesopen.com>
10143 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10144
10145 PR middle-end/28131
10146 * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
10147 call to lang_hooks.types.type_for_mode returned NULL_TREE.
10148
f11164aa 101492006-06-23 Ben Elliston <bje@au.ibm.com>
10150
10151 * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
10152 negate dn -- manipulate it directly.
10153
493488c1 101542006-06-22 Roger Sayle <roger@eyesopen.com>
10155 Steven Bosscher <stevenb.gcc@gmail.com>
10156
10157 PR target/27531
10158 * reload1.c (gen_reload): Call mark_jump_label on the new insns
10159 generated by gen_move_insn to add REG_LABEL notes if necessary.
10160
da0eb3fd 101612006-06-22 Bob Wilson <bob.wilson@acm.org>
10162
10163 * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
10164 (leaf_entry): Remove use of MIN_ESA.
10165
ea06d49f 101662006-06-22 Zdenek Dvorak <dvorakz@suse.cz>
10167
10168 PR rtl-optimization/28121
10169 * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
10170 the entry edge.
10171
387715e2 101722006-06-21 DJ Delorie <dj@redhat.com>
10173
10174 * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
10175 (TN-16C-A156A/E).
10176 (mulhisi3_r): Likewise.
10177
82e15b07 101782006-06-21 Richard Sandiford <richard@codesourcery.com>
10179
10180 PR middle-end/28034
10181 * coverage.c (coverage_counter_alloc): Leave the index type
10182 unspecified.
10183 (coverage_counter_alloc): Use null arguments for operands 2 and 3
10184 of the ARRAY_REF.
10185
1c661d17 101862006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
10187
10188 * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
10189 section from the "Options for Code Generation Conventions".
10190
2702343c 101912006-06-21 Richard Henderson <rth@redhat.com>
10192
10193 PR target/26347
10194 PR target/27082
10195 * config/alpha/predicates.md (small_symbolic_operand): Deny weak
10196 symbols.
10197 (global_symbolic_operand): Allow weak symbols, even if local_p.
10198
8ee578c8 101992006-06-21 Eric Botcazou <ebotcazou@adacore.com>
10200
10201 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
10202 (find_interesting_uses_address): Punt if above function returns true.
10203
b1ef404e 102042006-06-21 Richard Guenther <rguenther@suse.de>
10205
10206 * configure: Regenerated.
10207
9fc4153e 102082006-06-21 Joseph Myers <joseph@codesourcery.com>
10209
10210 * config/mips/mips.c (function_arg): Where one part of a
10211 complex argument is in registers and the other part in the stack,
10212 return a REG not a PARALLEL.
10213
0bf9691e 102142006-06-21 Mark Mitchell <mark@codesourcery.com>
10215
10216 * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
10217 when cross-compiling. Do not substitute libstdcxx_incdir.
10218 * configure: Regenerated.
10219
1fc5c8af 102202006-06-21 Jakub Jelinek <jakub@redhat.com>
10221
10222 * varasm.c (mergeable_string_section): Check for embedded NULs and
10223 NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
10224 rather than TREE_STRING_LENGTH bytes.
10225
7a0c37de 102262006-06-21 Richard Guenther <rguenther@suse.de>
10227
10228 * ggc-page.c (extra_order_size_table): Add var_ann_d,
10229 tree_ssa_name, bitmap_element and phi_node with 4 arguments
10230 sizes.
10231
86159992 102322006-06-21 Richrad Guenther <rguenther@suse.de>
10233
10234 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
10235 Limit iteration over the dominators.
10236
d72835ba 102372006-06-20 Roger Sayle <roger@eyesopen.com>
10238
10239 * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
10240 (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
10241
0a06d4f0 102422006-06-20 Richard Guenther <rguenther@suse.de>
10243 Michael Matz <matz@suse.de>
10244
10245 * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
10246 function.
10247 * alloc-pool.c (free_alloc_pool_if_empty): New function.
10248 * et-forest.h (et_free_pools): Prototype new function.
c0933680 10249 * et-forest.c (et_free_tree_force): Free parent occurrence.
0a06d4f0 10250 (et_free_pools): New function.
10251 * dominance.c (free_dominance_info): Free et-forest alloc
10252 pools.
10253
9fd22806 102542006-06-20 Roger Sayle <roger@eyesopen.com>
10255
10256 * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
10257 integer modes, attempt to directly construct an integer constant.
10258
10259 * fold-const.c (native_encode_vector): Determine the size of each
10260 element from the vector type instead of the first vector element.
10261
10262 * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
10263 if all of its elements/components are constant.
10264 (build_constructor_from_list): Likewise.
10265
31e389a2 102662006-06-20 Zdenek Dvorak <dvorakz@suse.cz>
10267
10268 PR tree-optimization/27331
10269 * tree-data-ref.c (free_data_ref): New function.
10270 (create_data_ref): Fail if the data reference has unknown access
10271 function.
10272 (free_data_refs): Use free_data_ref.
10273
aee8cc15 102742006-06-19 Andrew Pinski <pinskia@gmail.com>
10275
10276 PR middle-end/28075
10277 * tree-inline.c (setup_one_parameter): Strip useless
10278 type conversion before adding it to the IR.
10279 (declare_return_variable): Likewise.
10280
4d9f60cc 102812006-06-19 Martin Michlmayr <tbm@cyrius.com>
10282
10283 PR c/27149
10284 * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
10285
de8dea22 102862006-06-19 Mike Stump <mrs@apple.com>
10287
10288 * tree.c (variably_modified_type_p): VM arguments don't make the
10289 type a VM type.
10290
9404b9c6 102912006-06-19 Richard Guenther <rguenther@suse.de>
10292
10293 * tree-ssa-pre.c (try_combine_conversion): Strip useless
10294 type conversions after folding.
10295
1c2a6a66 102962006-06-19 Richard Guenther <rguenther@suse.de>
10297
10298 * ggc-page.c (extra_order_size_tab): Add entries with
10299 size of struct function and basic_block.
10300 (size_lookup): Extend to cover sizes up to 511.
10301 (ggc_alloc_stat): Adjust user.
10302 (ggc_pch_count_object): Likewise.
10303 (ggc_pch_alloc_object): Likewise.
10304 (ggc_pch_write_object): Likewise.
10305
30b9be29 103062006-06-19 Zdenek Dvorak <dvorakz@suse.cz>
10307
10308 * tree-ssa-loop-niter.c (implies_ge_p): New function.
10309 (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
10310 correctly.
10311
88aaa76d 103122006-06-19 Denis Chertykov <denisc@overta.ru>
10313
10314 * config/avr/libgcc.S : Correct my wrong previous commit.
10315
b7ba5735 103162006-06-19 Roger Sayle <roger@eyesopen.com>
10317
10318 PR target/27861
10319 * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
10320 have stripped a SUBREG from the shift count, so we may need to
10321 convert_to_mode back to the type's mode before calling make_tree.
10322 Use new_amount instead of amount to avoid expanding a tree twice.
10323
68826b15 103242006-06-19 Richard Guenther <rguenther@suse.de>
10325
10326 PR middle-end/28045
10327 * fold-const.c (operand_equal_p): Check if the argument types
10328 have the same precision before stripping NOPs.
10329
714d1260 103302006-06-19 Daniel Berlin <dberlin@dberlin.org>
10331
10332 Fix PR tree-optimization/27341
10333 * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
10334 statement we get.
c0933680 10335 * tree-complex.c (pass_lower_complex): Update SMT usage.
714d1260 10336
65092884 103372006-06-19 Andreas Krebbel <krebbel1@de.ibm.com>
10338
c0933680 10339 * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
65092884 10340 Add a new alternative to the constraint strings. Add move of
10341 operand 1 to 3 to the splitter definition.
10342 ("doloop_si_long"): Second contraint alternative removed.
10343
0aab73c2 103442006-06-08 Anatoly Sokolov <aesok@post.ru>
10345
10346 * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
c0933680 10347 (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
0aab73c2 10348 __AVR_HAVE_LPMX__.
10349 (AVR_HAVE_MOVW) Define.
10350 (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
10351 (ASM_SPEC): Add avr25.
10352 (LINK_SPEC): Add avr25.
10353 * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
10354 (base_arch_s): Add new member 'have_movw_lpmx'.
10355 (avr_arch_types): Init 'have_movw_lpmx'.
10356 (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
10357 attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
10358 attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
10359 (avr_override_options): Init 'avr_have_movw_lpmx_p'.
c0933680 10360 (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
0aab73c2 10361 AVR_HAVE_MOVW.
10362 (avr_file_start): Do not output '.arh' derective.
10363 * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
10364 (__do_copy_data): Use __AVR_HAVE_LPMX__.
10365 * config/avr/avr.md (mcu_enhanced): Delete.
10366 (mcu_have_movw): Define.
10367 (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
10368 (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
10369 * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
10370 (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
c0933680 10371 attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
0aab73c2 10372 attiny861 and at86rf401 devices.
10373
b6cf30ce 103742006-06-18 Jie Zhang <jie.zhang@analog.com>
10375
10376 * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
10377 of 4096.
10378
9249a3df 103792006-06-17 Karl Berry <karl@gnu.org>
10380
10381 * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
10382 doc/gccint.texi, doc/install.texi (@dircategory): Use
10383 "Software development" instead of "Programming", following
10384 the Free Software Directory.
10385
ca5e9d0e 103862006-06-17 Alexandre Oliva <aoliva@redhat.com>
10387
10388 * config/i386/i386.c (legitimate_tls_address)
10389 <TARGET_GNU2_TLS>: Add tp after DTPOFF.
10390 * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
10391 (*tls_dynamic_gnu2_combine_64): Likewise.
10392
58b22aa6 103932006-06-16 Richard Guenther <rguenther@suse.de>
10394
10395 PR middle-end/27116
10396 * fold-const.c (negate_expr_p): Do not introduce undefined
10397 overflow in negating INTEGER_CSTs.
10398 (fold_negate_expr): Rename from negate_expr. Revert last
10399 change for folding BIT_NOT_EXPR. Change semantics to
10400 return NULL_TREE for non-simplified negations. Do not
10401 strip type conversions and unify type handling.
10402 (negate_expr): New function, wrap around fold_negate_expr
10403 but ensure building a tree always. Strip type conversions
10404 here, fold to result type.
10405 (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
10406
50e6dbf3 104072006-06-16 Roger Sayle <roger@eyesopen.com>
10408
10409 PR middle-end/27802
10410 * reg-stack.c (subst_stack_regs): Handle noreturn function calls
10411 that (would) return their results in stack registers.
10412
40c3c1b3 104132006-06-16 Michael Matz <matz@suse.de>
10414 Richard Guenther <rguenther@suse.de>
10415
10416 * fold-const.c (fold_truthop): Only return new tree node if
10417 we canonicalized something.
10418
ee5142f6 104192006-06-16 Richard Guenther <rguenther@suse.de>
10420
10421 * function.h (enum function_frequency): Move declaration
10422 out of struct function.
10423 (struct function): Move bool fields and the enum to the bitfield
10424 section. Reorder elements to avoid padding. Remove unused
10425 fields left over from the RTL inliner removal.
10426 * function.c (free_after_compilation): Do not zero removed fields.
10427 * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
10428 (ipa-type-escape.o): Likewise.
10429
a16eb452 104302006-06-16 Richard Guenther <rguenther@suse.de>
10431
10432 * cgraph.h (struct cgraph_local_info): Turn bool elements
10433 into a bitfield.
10434 (struct cgraph_node): Likewise.
10435 (struct cgraph_varpool_node): Likewise.
10436
6758b11c 104372006-06-15 Richard Guenther <rguenther@suse.de>
10438
10439 * fold-const.c (fold_truth_not_expr): Rename from
10440 invert_truthvalue. Give it fold_* semantics to avoid
10441 generating garbage.
10442 (invert_truthvalue): New function. Wrapper around
10443 fold_truth_not_expr.
10444 (optimize_minmax_comparison): Avoid creating garbage.
10445 (fold_unary): Use fold_truth_not_expr for folding
10446 TRUTH_NOT_EXPR.
10447 (fold_ternary): Replace uses of invert_truthvalue with
10448 fold_truth_not_expr where applicable.
10449 * tree.h (fold_truth_not_expr): Prototype.
10450
959fce68 104512006-06-16 Richard Guenther <rguenther@suse.de>
10452
10453 PR tree-optimization/27781
10454 * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
10455 * ipa-pure-const.c (target.h): Include.
10456 (analyze_function): Do not analyze functions that do not
10457 bind locally.
10458
c0296575 104592006-06-15 Andrew MacLeod <amacleod@redhat.com>
c0933680 10460
c0296575 10461 PR middle-end/27793
10462 * tree-dfa.c (referenced_vars_dup_list): Remove.
10463 (find_referenced_vars): Remove assert.
10464 (referenced_var_check_and_insert): Replace dup list with assert.
10465 * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
10466 * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
10467
a04b3e37 104682006-06-15 Richard Guenther <rguenther@suse.de>
10469
10470 * tree-ssa-structalias.c (alias_get_name): Avoid creating
10471 extra unused identifiers if not dumping.
10472 (create_variable_info_for): Likewise.
10473
d8a99c17 104742006-06-15 Zdenek Dvorak <dvorakz@suse.cz>
10475
10476 * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
10477 (derive_constant_upper_bound): Derive more precise upper bound in
10478 common cases. Return type changed to double_int.
10479 (record_estimate): Reflect the changed return type of
10480 derive_constant_upper_bound.
10481 * double-int.c (double_int_zext, double_int_sext): Fix.
10482
c81c13fb 104832006-06-15 Paolo Bonzini <bonzini@gnu.org>
10484
10485 * configure.ac (CFLAGS): Get them from the toplevel or from the
10486 configure invocation.
10487 * configure: Regenerate.
10488 * Makefile.in (CFLAGS): Substitute value provided by configure.
10489
d377303f 104902006-06-14 Mark Mitchell <mark@codesourcery.com>
10491
10492 PR c++/26559
10493 * c-common.h (c_finish_omp_atomic): Adjust declaration.
10494 * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
10495 rather than calling add_stmt on it.
10496 * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
10497
0aacf12c 104982006-06-14 Andreas Krebbel <krebbel1@de.ibm.com>
10499
10500 PR middle-end/27959
10501 * reload1.c (reload): Remove registers returned by update_eliminables
10502 from used_spill_regs.
10503
718a81bb 105042006-06-13 DJ Delorie <dj@redhat.com>
10505
10506 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
10507
18f327f7 105082006-06-13 Carlos O'Donell <carlos@codesourcery.com>
10509
10510 * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
10511 html__strip_dir, html__mkdir_p. Enhance install-html target.
c0933680 10512 * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
18f327f7 10513 * configure: Regenerate.
10514
d0911b8e 105152006-06-13 Fariborz Jahanian <fjahanian@apple.com>
10516
c0933680 10517 * fold-const.c (fold_cond_expr_with_comparison): Check for
d0911b8e 10518 Objective-C++ as language in deciding COND_EXPR transformation.
10519
2b2f5cfb 105202006-06-06 J"orn Rennecke <joern.rennecke@st.com>
10521
10522 PR target/28014:
10523 * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
10524 * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
10525 * config/sh/lib1funcs.h (SL, SL1): Define.
10526 * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
10527 * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
10528 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
10529 (OBJS_Os_4_200): New variable.
10530 ($(T)libgcc-Os-4-200.a): Use it.
10531 * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
10532 when dividing 1 and/or by 0.
10533
679f19b4 105342006-06-13 Roger Sayle <roger@eyesopen.com>
10535
10536 * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
10537 before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
10538 * configure: Regenerate.
10539
7196637a 105402006-06-13 Jie Zhang <jie.zhang@analog.com>
10541
10542 * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
10543 for real instruction.
10544
45bfe09b 105452006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
10546
10547 PR middle-end/26807
10548 * haifa-sched.c (check_cfg): Handle special case.
10549
0c2f12e9 105502006-06-13 Eric Botcazou <ebotcazou@adacore.com>
10551
10552 PR debug/26754
10553 * gimplify.c (declare_tmp_vars): Rename into declare_vars.
10554 Add debug_info parameter. Chain the vars to the BLOCK instead
10555 of the BIND_EXPR if debug info are requested for them.
10556 (pop_gimplify_context): Adjust for above change.
10557 (gimple_add_tmp_var): Likewise.
10558 * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
10559 Add bool parameter.
10560 * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
10561 (convert_local_reference): Likewise.
10562 (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
10563 (finalize_nesting_tree_1): Request that debug info be emitted
10564 for debug_var_chain.
10565
ec469632 105662006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
10567
10568 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
10569 for PR target/27863.
10570
3669a8aa 105712006-06-13 Richard Guenther <rguenther@suse.de>
10572
10573 PR middle-end/27536
10574 * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
10575
52a7bd0e 105762006-06-13 Richard Guenther <rguenther@suse.de>
10577
10578 PR tree-optimization/27830
10579 * tree-inline.c (copy_body_r): For copying the operand
10580 of an ADDR_EXPR make sure to fold &* afterwards.
10581
e1f5655d 105822006-06-12 Eric Botcazou <ebotcazou@adacore.com>
10583
10584 * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
10585 lvalues in the fb_none case with side-effects.
10586
edbe946e 105872006-06-12 Kazu Hirata <kazu@codesourcery.com>
10588
10589 * tree-flow.h: Remove the prototype for
10590 compute_phi_arg_on_exit.
10591 * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
10592 protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
10593 Remove.
10594
1b74fde7 105952006-06-12 Mark Shinwell <shinwell@codesourcery.com>
10596
10597 * builtins.c (expand_builtin_return_addr): Only use
10598 frame_pointer_rtx when count == 0 and we are expanding
10599 __builtin_return_address.
10600
4266946e 106012006-06-12 Fred Fish <fnf@specifix.com>
10602
10603 * config/mips/mips.c (mips_file_start): Create special section
10604 ".gcc_compiled_longXX" for o64 ABI as well as EABI.
10605
a6cf93fb 106062006-06-11 Eric Christopher <echristo@apple.com>
10607
10608 PR middle-end/27948
10609 * stor-layout.c (place_field): Remove check for
10610 remaining_in_alignment when aligning at the end of a run.
10611
114d1545 106122006-06-11 Eric Christopher <echristo@apple.com>
10613
10614 PR 27542
10615 * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
10616 pragma.
10617
622e3537 106182006-06-11 Roger Sayle <roger@eyesopen.com>
10619
10620 PR target/27858
10621 Revert incorrect fix for PR target/27158
10622 2006-05-08 Roger Sayle <roger@eyesopen.com>
10623 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
10624 of a reg_equiv_constant if the result is a legitimate constant.
10625
e4152f24 106262006-06-11 Roger Sayle <roger@eyesopen.com>
10627
10628 PR target/27158
10629 * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
10630 extract a CONST_VECTOR element and interpret it as an integer.
10631 (vspltis_constant): Use const_vector_elt_as_int instead of the
10632 macro CONST_VECTOR_ELT in order to handle FP vector modes.
10633 * config/rs6000/predicates.md (easy_vector_const): Consider
10634 floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
10635
089ea875 106362006-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
10637
10638 PR middle-end/27942
10639 * stor-layout.c (update_alignment_for_field): Don't add extra
10640 alignment for packed non-bitfield fields in ms_bitfield_layout_p
10641 code.
10642
2137eaa9 106432006-06-09 Ralf Corsepius <ralf.corsepius@rtems.org>
10644
10645 * config/mips/t-rtems: Add EL/EB multilib variants.
10646
bd4e1b5a 106472006-06-09 Mike Stump <mrs@apple.com>
10648
10649 * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
10650
28143dbb 106512006-06-09 David Daney <ddaney@avtrex.com>
10652
10653 * doc/install.texi: Add binutils version recommendation for mips-*-*.
10654
5f2bd98f 106552006-06-09 Andreas Krebbel <krebbel1@de.ibm.com>
10656
10657 * reload.c (find_reloads): Unset force_reload for 'X' constraint.
10658
0086a3d6 106592006-06-09 Richard Guenther <rguenther@suse.de>
10660
10661 PR tree-optimization/26998
10662 * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
10663 of signed types, only TYPE_MIN_VALUE is special, but for both,
10664 minimum and maximum value. Likewise VR_ANTI_RANGE is special
10665 in this case, as is -fwrapv.
10666
f13da317 106672006-06-08 Mike Stump <mrs@apple.com>
10668
10669 PR target/26427
10670 * config/darwin.c (darwin_asm_output_anchor): Disable
10671 -fsection-anchors on darwin for now.
10672 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
10673 * rs6000/rs6000.c (optimization_options): Likewise.
10674
95de4d5a 106752006-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
10676
10677 PR target/27421
10678 * config/i386/i386.c (classify_argument): Skip fields with invalid
10679 types in unions.
10680
4c958a22 106812006-06-08 Steven Bosscher <steven@gcc.gnu.org>
10682
10683 * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
10684 (cse_insn): Likewise for the stack_pointer_rtx.
10685
c4124729 106862006-06-08 Roger Sayle <roger@eyesopen.com>
10687
10688 * tree-ssa-dom.c (record_conditions): Only record "unordered"
10689 conditions from floating point comparisons.
10690
65801c1c 106912006-06-08 Paolo Bonzini <bonzini@gnu.org>
10692
10693 PR middle-end/27733
10694 * expmed.c (struct alg_hash_entry): Fix type of field T
10695 to match synth_mult argument.
10696 (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
10697
792f1838 106982006-06-08 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
10699
10700 PR target/27863
10701 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
10702 block boundaries.
10703
2ba580f0 107042006-06-08 Richard Guenther <rguenther@suse.de>
10705
10706 PR middle-end/27116
10707 * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
10708 only, if overflow is defined and not trapping.
10709 (negate_expr): Likewise.
10710
89c8b802 107112006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
10712
10713 PR tree-optimization/27872
10714 * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
10715 flag on the new exit edge of the unrolled loop.
10716
bd7519f0 107172006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
10718
10719 PR rtl-optimization/26449
10720 * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
10721
d328c4ab 107222006-06-07 Andrew MacLeod <amacleod@redhat.com>
10723
10724 PR middle-end/27793
114d1545 10725 * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate
d328c4ab 10726 referenced_variables with matching DECL_UID's.
10727 (find_referenced_vars): Make sure duplicate list is empty to start.
10728 (referenced_var_p): Remove.
114d1545 10729 (referenced_var_check_and_insert): Renamed from referenced_var_insert.
d328c4ab 10730 Check if var is in the list, and add if needed. Update the duplicate
10731 list if a different var is in the list with the same DECL_UID.
10732 (add_referenced_var): Call routine to check and insert.
10733 * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
10734 * tree-flow.h (referenced_vars_dup_list): External declaration.
10735
55f80fd5 107362006-06-07 Fred Fish <fnf@specifix.com>
10737
10738 * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
10739 into single entry.
10740
389d0d04 107412006-06-07 Paolo Bonzini <bonzini@gnu.org>
10742
10743 PR target/27390
10744 * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
10745 the imaginary and real parts of a clobbered register.
10746 Emit insn to set the imaginary part.
10747
7b8afd5d 107482006-06-06 Peter Lemieszewski <lemie@us.ibm.com>
10749
10750 * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
10751 in lieu of unwind-dw2-fde.c.
10752
5fbe6585 107532006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10754
10755 * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
10756
19155a13 107572006-06-06 Ulrich Weigand <uweigand@de.ibm.com>
10758
10759 PR target/27842
10760 * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
10761 ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
10762 ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
10763 V4SImode temporaries and operations instead.
10764
feb71a63 107652006-06-06 Joseph S. Myers <joseph@codesourcery.com>
10766
10767 * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
10768 dp-bit.c.
10769
85690e4d 107702006-06-06 Mike Stump <mrs@apple.com>
10771
10772 * Makefile.in: Rename to htmldir to build_htmldir to avoid
10773 installing during build.
10774
475a74e0 107752006-06-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
10776
10777 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
10778 value to 0.
10779 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
10780 * config/ia64/ia64.c (params.h): New header.
10781 (ia64_optimization_options): New function to adjust parameters.
10782 * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
10783 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
10784 * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
10785
674b377b 107862006-06-05 Kazu Hirata <kazu@codesourcery.com>
10787
10788 * stor-layout.c (debug_rli): Fix a typo in a debug message.
10789
71685250 107902006-06-05 Steve Ellcey <sje@cup.hp.com>
10791
10792 PR target/27051
10793 * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
10794
e47352fb 107952006-06-05 Dorit Nuzman <dorit@il.ibm.com>
10796 Victor Kaplansky <victork@il.ibm.com>
10797
6993cbc4 10798 PR tree-optimization/26360
10799 * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
10800 stmts.
e47352fb 10801
a0a37ffc 108022006-06-04 Roger Sayle <roger@eyesopen.com>
10803 Andrew Pinski <pinskia@physics.uc.edu>
10804
10805 PR middle-end/27382
10806 * c-common.c (c_common_truthvalue_conversion): Explicitly check
10807 for LABEL_DECL before calling DECL_WEAK.
10808
10809 PR c/27150
10810 * c-typeck.c (build_binary_op): Likewise, explicitly check for
10811 LABEL_DECL and PARM_DECL.
10812
dc95eae2 108132006-06-05 Joseph S. Myers <joseph@codesourcery.com>
10814
10815 PR c/25161
10816 PR c/27020
10817 * c-decl.c (grokdeclarator): Disallow variably modified types at
10818 file scope. Avoid marking shared array type of constant size as
10819 VLA.
10820
6b11d2e3 108212006-06-04 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
10822
10823 PR c++/27601
10824 * c-common.c (fold_offsetof_1): Handle static members.
10825
7bd4091f 108262006-06-04 Eric Christopher <echristo@apple.com>
10827
10828 * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
10829 (debug_rli): Output value for remaining_in_alignment.
10830 (update_alignment_for_field): Unconditionalize
10831 ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
10832 extra alignment code.
10833 (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
10834 ms_bitfield_layout_p code. Rewrite handling of structure fields.
10835 * tree.h (record_layout_info_s): Remove prev_packed.
10836 * doc/extend.texi (ms_struct): Add documentation of format.
10837
47be647d 108382006-06-04 Mark Shinwell <shinwell@codesourcery.com>
10839
10840 * tree.h: Declare folding_initializer.
10841 * builtins.c (fold_builtin_constant_p): Give definite answer
10842 if folding inside an initializer.
10843 * fold-const.c: Define folding_initializer.
10844 (START_FOLD_INIT): Save and then set folding_initializer.
10845 (END_FOLD_INIT): Restore folding_initializer.
10846
f9ea6ec6 108472006-06-04 Richard Guenther <rguenther@suse.de>
10848
10849 PR tree-optimization/27039
10850 * fold-const.c (fold_comparison): Handle pointer comparison
10851 again for all comparison codes. Compare offsets in signed
10852 size type.
10853 (fold_binary): Move code from here.
10854
944e7877 108552006-06-03 Roger Sayle <roger@eyesopen.com>
10856
10857 PR target/26223
10858 * config/i386/i386.c (construct_container): Split static issued_error
10859 flag into issued_sse_arg_error, issued_sse_ret_error and
10860 issued_x87_ret_error. Issue a daignostic if the x86-64 ABI
10861 requires the use of x87 registers and the user explicitly
10862 specified the -mno-80387 command line option.
10863
168c58e0 108642006-06-02 Geoffrey Keating <geoffk@apple.com>
10865
10866 * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
10867 HAVE_DECL_SIGALTSTACK.
10868 (MC_FLD): New.
10869 (segv_handler): Use MC_FLD.
10870 * configure.ac: Check for a sigaltstack declaration.
10871 Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
10872 * configure: Regenerate.
10873 * config.in: Regenerate.
10874
36eb5072 108752006-06-03 J"orn Rennecke <joern.rennecke@st.com>
10876
10877 PR other/27850
10878 * Makefile.in (stmp-fixinc): Fix typo.
10879
75e3ef6e 108802006-06-02 Roger Sayle <roger@eyesopen.com>
10881
10882 * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
10883 are type correct. Clean-up.
10884 <REALPART_EXPR>: Likewise. Optimize creal(~z) as creal(z).
10885 <IMAGPART_EXPR>: Likewise. Optimize cimag(~z) as -cimag(z).
10886
e3a89ab1 108872006-06-01 DJ Delorie <dj@redhat.com>
10888
10889 * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
10890 shift, as we've disabled the "switch" insn that needs it.
10891
2e1e73b6 108922006-06-01 Per Bothner <bothner@bothner.com>
10893
10894 Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
10895 * c-opts.c (finish_options): Use internal line 0 for <command-line>.
10896 * c-ppoutput.c (cb_define): Don't increment line 0.
10897
52f78840 108982006-06-01 Pete Steinmetz <steinmtz@us.ibm.com>
10899
10900 * doc/invoke.texi: Add cpu_type power6.
10901 * config.gcc: Add cpu_type power6.
10902 * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
10903 to power5+ with Altivec.
10904 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
10905 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
10906
e4ac826f 109072006-05-30 Anatoly Sokolov <aesok@post.ru>
10908
10909 * config/avr/avr.h (SET_ASM_OP): Define.
10910
1a4340cd 109112006-06-01 Kazu Hirata <kazu@codesourcery.com>
10912
10913 * config/bfin/bfin.c: Fix comment typos.
10914
a0092fa5 109152006-06-01 Paolo Bonzini <bonzini@gnu.org>
10916
10917 PR 25453
10918 * doc/install.texi: Document --enable-bootstrap and
10919 --disable-bootstrap.
10920
63a06cfe 109212006-06-01 Paolo Bonzini <bonzini@gnu.org>
10922
10923 * doc/install.texi: Document that InfoZIP can replace jar.
10924
ee308124 109252006-05-31 Roger Sayle <roger@eyesopen.com>
10926
10927 * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
10928 isn't available, directly generate the simpler x87 patterns without
10929 the (use (const_int 0)).
10930 * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
10931 implementation isn't available.
10932 (*negdf2_1): Likewise.
10933 (*negxf2_1): XF mode negation is always done using the x87.
10934 (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
10935
749891b2 109362006-05-31 Roger Sayle <roger@eyesopen.com>
10937
10938 * builtins.c (fold_builtin_cabs): Delete prototype. Require an
10939 additional FNDECL argument. Optimize cabs(-z) and cabs(~z) as
10940 cabs(z).
10941 (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
10942
3c1905a4 109432006-05-31 Jie Zhang <jie.zhang@analog.com>
10944
10945 * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
10946 * config/bfin/bfin.c (basic-block.h): Include.
10947 (struct machine_function): New.
10948 (bfin_init_machine_status): New.
10949 (override_options): Initialize init_machine_status.
10950 (bfin_hardware_loop): New.
10951 (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
10952 (DEF_VEC_P (loop_info)): New.
10953 (DEF_VEC_ALLOC_P (loop_info,heap)): New.
10954 (struct loop_info): New.
10955 (loop_info): New typedef.
10956 (struct loop_work): New.
10957 (loop_work): New typedef.
10958 (DEF_VEC_O (loop_work)): New.
10959 (DEF_VEC_ALLOC_O (loop_work,heap)): New.
10960 (bfin_dump_loops): New.
10961 (bfin_bb_in_loop): New.
10962 (bfin_scan_loop): New.
10963 (bfin_optimize_loop): New.
10964 (bfin_reorg_loops): New.
10965 (bfin_reorg): Use bfin_reorg_loops.
10966 * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
10967 loop registers.
10968 (I_REGNO_P): Simplify.
10969 (DP_REGNO_P, DPREG_P): New macros.
10970 (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
10971 REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
10972 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
10973 Add LT_REGS, LC_REGS, LB_REGS.
10974 (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
10975 'l' for LB_REGS.
10976 (REGNO_REG_CLASS): Deal with loop registers.
10977 * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
10978 letters.
10979 (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
10980 New constants for loop registers.
10981 (UNSPEC_LSETUP_END): New.
10982 (seq_insns): New define_attr. Set it for appropriate insns.
10983 (movsi_insn): Add alternatives for move from/to
10984 loop count registers.
10985 (doloop_end): New define_expand.
10986 (loop_end): New define_insn.
10987 (define_split for bad doloop_end): New.
10988 (lsetup_with_autoinit): New define_insn.
10989 (lsetup_without_autoinit): New define_insn.
10990 (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
10991 * config/bfin/predicates.md (lc_register_operand): New.
10992 (lt_register_operand): New.
10993 (lb_register_operand): New.
10994 (nondp_register_operand): New.
10995 (nondp_reg_or_memory_operand): New.
10996 * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
10997
6833eae4 109982006-05-31 Jie Zhang <jie.zhang@analog.com>
10999
11000 * config/bfin/bfin.c (bfin_delegitimize_address): New.
11001 (TARGET_DELEGITIMIZE_ADDRESS): Define.
11002
49688a56 110032006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
11004
11005 * Makefile.in (CATALOGS): Add po/ prefix.
11006 * configure: Regenerated.
11007
26dff611 110082006-05-31 Richard Earnshaw <richard.earnshaw@arm.com>
11009
73f7ec8b 11010 PR target/27829
26dff611 11011 * arm.c (arm_print_operand case 'S'): Validate that the operand is
11012 a shift operand before calling shift_op. Avoid redundant call of
11013 shift_op.
11014
7b4716cf 110152006-05-30 Naveen.H.S <naveenh@kpitcummins.com>
11016 DJ Delorie <dj@redhat.com>
11017
11018 * config/m32c/m32c.c (m32c_expand_insv): Check that the value
11019 we're inserting is a singlt-bit constant.
11020
885fe2d1 110212006-05-30 Roger Sayle <roger@eyesopen.com>
11022
11023 * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
11024 width to HOST_WIDE_INT to avoid comparison warnings on some targets.
11025
5f4f3617 110262006-05-30 Roger Sayle <roger@eyesopen.com>
11027
11028 PR tree-optimization/23452
11029 * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
11030 to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
11031 (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
11032 complex values and with -ffast-math for FP complex values.
11033
ce0e61fe 110342006-05-30 Kazu Hirata <kazu@codesourcery.com>
11035
11036 * c-common.h: Remove the prototype for yyparse.
11037 * rtl.h: Remove the prototype for init_loop.
11038
0c0acbaa 110392006-05-30 Andreas Krebbel <krebbel1@de.ibm.com>
11040
11041 * cse.c (validate_canon_reg, cse_insn): Don't change insns without
11042 calling recog.
11043
445e5fbb 110442006-05-30 Roger Sayle <roger@eyesopen.com>
11045
11046 * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
11047 and rotate cases.
11048 <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
11049 log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
11050
72370f24 110512006-05-30 Dirk Mueller <dmueller@suse.de>
11052
11053 PR c/27273
11054 * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
11055 for CONSTANT_CLASS_P expresisons.
11056
8a98ec4a 110572006-05-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11058
11059 PR c/27718
11060 * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
11061
df71b940 110622006-05-30 Zdenek Dvorak <dvorakz@suse.cz>
11063
11064 PR tree-optimization/27779
11065 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
11066 initial_condition instead of CHREC_LEFT.
11067
347a25f7 110682006-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
11069
11070 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
11071 * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
11072 Make prototypes ISO C90.
11073
528dbbba 110742006-05-30 Mircea Namolaru <namolaru@il.ibm.com>
df71b940 11075 Leehod Baruch <leehod.baruch@weizmann.ac.il>
528dbbba 11076
df71b940 11077 * see.c (see_analyze_one_def): Correct check.
11078 (see_get_extension_data): Check if extension is parallel.
11079 (see_get_extension_reg): Likewise.
528dbbba 11080
dc674af7 110812006-05-30 Uros Bizjak <uros@kss-loka.si>
11082
11083 PR target/27790
11084 * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
11085 into register for (code == GTU).
11086
c9b0adad 110872006-05-29 Roger Sayle <roger@eyesopen.com>
11088
11089 PR tree-optimization/24964
11090 * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
11091 <MULT>: Minor clean-up. Don't convert x*-1.0 into -x if we honor
11092 signaling NaNs. Optimize -x*-x as x*x for all float modes, and
11093 abs(x)*abs(x) as x*x for scalar floating point modes.
11094
bb9243aa 110952006-05-29 Sebastian Pop <pop@cri.ensmp.fr>
11096
11097 PR middle-end/27745
11098 * lambda-code.c (perfect_nestify): Don't copy statements
11099 in the inner loop: move them to the inner loop header.
11100
d5ea8306 111012006-05-29 Diego Novillo <dnovillo@redhat.com>
11102
11103 PR 26237
11104 * c-tree.texi: Document OpenMP directives and clauses.
11105
9bbaa634 111062006-05-29 Kazu Hirata <kazu@codesourcery.com>
11107
11108 * varasm.c (globalize_decl): Fix indentation.
11109
9fc508b2 111102006-05-29 Diego Novillo <dnovillo@redhat.com>
11111
11112 PR 26242
11113 * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
11114 pass_fre, pass_store_ccp, pass_copy_prop,
11115 pass_store_copy_prop, pass_merge_phi, pass_nrv,
11116 pass_return_slot, pass_object_size, pass_lim,
11117 pass_linear_transform, pass_empty_loop, pass_complete_unroll,
11118 pass_loop_prefetch and pass_stdarg.
11119
55be0e32 111202005-05-29 Bernd Schmidt <bernd.schmidt@analog.com>
11121
11122 * config/bfin/bfin.opt (mfdpic): New option.
11123 * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
11124 (EXTRA_MULTILIB_PARTS): Likewise.
11125 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
11126 (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
11127 multilib.
11128 * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
11129 (CRT_CALL_STATIC_FUNCTION): New.
11130 * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
11131 -shared.
11132 (CRT_CALL_STATIC_FUNCTION): New.
11133 * config/bfin/bfin.c (legitimize_pic_address): Now static. Handle
11134 FD-PIC moves.
11135 (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
11136 (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
11137 (initialize_trampoline): Changed to handle FD-PIC code generation.
11138 (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
11139 (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
11140 (override_options): Disallow -mid-shared-library -mfdpic combination.
11141 Can't do unaligned ops if FD-PIC.
11142 Turn off flag_pic if trying to generate non-id-shared-library
11143 non-fdpic code, since it's not supported.
11144 (bfin_assemble_integer): New function.
11145 (TARGET_ASM_INTEGER): Define.
11146 * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
11147 __BFIN_FDPIC__.
11148 * config/bfin/crtn.s: Restore them.
11149 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
11150 if TARGET_FDPIC.
11151 (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
11152 LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
11153 (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
11154 (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
11155 (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
11156 call-used.
11157 (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
11158 FDPIC_REGS and FDPIC_FPTR_REGS.
11159 (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
11160 * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
11161 UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
11162 (load_funcdescsi): New pattern.
11163 (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
11164 sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
11165 call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
11166
67a5e20a 111672006-05-29 Kazu Hirata <kazu@codesourcery.com>
11168
11169 * gcse.c, rtlanal.c: Remove obsolete comments associated with
11170 loop.c.
11171
d5744dca 11172 * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
11173
d470ecbd 11174 * tree-flow.h: Remove the prototype for add_type_alias.
11175 * tree-ssa-alias.c (add_type_alias): Remove.
11176
554f2707 111772006-05-28 Kazu Hirata <kazu@codesourcery.com>
11178
11179 * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
11180 config/fr30/fr30.md, config/i386/i386-interix.h,
11181 config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
11182 config/sh/superh64.h, config/v850/v850.c, df-core.c,
11183 df-problems.c, df.h, except.c, final.c, haifa-sched.c,
11184 lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
11185 reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
11186 tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
11187 Follow spelling conventions.
11188 * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
11189 Follow spelling conventions.
11190
735eed27 111912006-05-27 Richard Guenther <rguenther@suse.de>
11192
11193 PR middle-end/27773
11194 * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
11195 to produce a constant of value 1 of generic type.
11196
95da6220 111972006-05-27 Dirk Mueller <dmueller@suse.de>
11198
11199 * cgraphunit.c (decide_is_function_needed): Fix wrong
11200 PR reference.
11201
91e1886d 112022006-05-26 Ulrich Weigand <uweigand@de.ibm.com>
11203
11204 PR rtl-optimization/27661
11205 * reload.c (find_reloads): When reloading a VOIDmode constant
11206 as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
11207 use Pmode as mode of the reload register.
11208
0f9af572 112092006-05-26 Eric Botcazou <ebotcazou@adacore.com>
11210
11211 * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
11212 is enabled at -O and above.
11213
112142006-05-26 Steven Bosscher <steven@gcc.gnu.org>
449b6e20 11215
11216 PR target/27571
11217 * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
11218 table data.
11219
788f3e3e 112202006-05-25 Mark Mitchell <mark@codesourcery.com>
11221
11222 PR c++/20103
11223 * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
7bd4091f 11224 for anonymous variables explicitly declared by front ends.
788f3e3e 11225
a478a521 112262006-05-25 Eric Botcazou <ebotcazou@adacore.com>
11227
11228 * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
11229 (struct alias_info): Add new field ref_all_symbol_mem_tag.
11230 * tree-ssa-alias.c (compute_may_aliases): If the program contains
11231 ref-all pointers, run a finalization pass for them.
11232 (compute_flow_insensitive_aliasing): Skip ref-all pointers.
11233 (finalize_ref_all_pointers): New function.
11234 (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
11235 regular pointer type to a ref-all pointer type.
11236 (get_tmt_for): Return the special memory tag for ref-all pointers.
11237
2b2c6e11 112382006-05-25 Richard Guenther <rguenther@suse.de>
11239
11240 PR middle-end/27743
11241 * fold-const.c (fold_binary): Do not look at the stripped
11242 op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
11243
ad2a47a5 112442006-05-25 Eric Botcazou <ebotcazou@adacore.com>
11245
11246 * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
11247 for LT and GT if the computed range is effectively empty.
11248
112492006-05-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
0c7b5a46 11250
11251 PR target/27627
11252 * pa/pa-modes.def: Use mips_single_format, mips_double_format and
11253 mips_quad_format formats instead of ieee_single_format,
11254 ieee_double_format and ieee_quad_format formats, respectively.
11255
57e3f39a 112562006-05-24 Zdenek Dvorak <dvorakz@suse.cz>
11257
11258 PR tree-optimization/27639
11259 PR tree-optimization/26719
11260 * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
11261 call to scev_probably_wraps_p.
11262 * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
11263 used_in_pointer_arithmetic_p, convert_step): Removed.
11264 (nowrap_type_p): New function.
11265 (scev_probably_wraps_p): Rewritten.
11266 * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
11267 chrec_convert if chrec_convert_aggressive might have been used.
11268 * tree-chrec.c (convert_affine_scev, chrec_convert_1,
11269 scev_direction): New functions.
11270 (chrec_convert): Changed to a wrapper over chrec_convert_1.
11271 * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
11272 instead of convert_step.
11273 * tree-flow.h (scev_probably_wraps_p): Declaration changed.
11274 (convert_step): Declaration removed.
11275 (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
11276
aa7aac1f 112772006-05-23 Kenneth Zadeck <zadeck@naturalbridge.com>
11278
57e3f39a 11279 * df-core.c: Added to header comments.
aa7aac1f 11280 * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
11281 df_ur_bb_info, df_urec_bb_info): Added comments.
7bd4091f 11282 * df-problems (df_ref_bitmap, ru, rd, lr, ur,
aa7aac1f 11283 urec, ri problems): Fixed header comments.
7bd4091f 11284 (df_ru_transfer_function): Fixed in-out set dyslexia when copying
aa7aac1f 11285 code from df_rd_transfer_function.
7bd4091f 11286
943e5a87 112872006-05-23 Richard Sandiford <richard@codesourcery.com>
11288
11289 * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
11290 (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
11291 MIN_UNITS_PER_WORD to set the default. Also use it in the guard.
11292
8dfa1b7f 112932006-05-23 Joseph Myers <joseph@codesourcery.com>
11294
11295 * expr.c (undefined_operand_subword_p): New.
11296 (emit_move_multi_word): Do not generate move from undefined bits
11297 of a paradoxical subreg.
11298
98c26c78 112992006-05-23 Richard Sandiford <richard@codesourcery.com>
11300
11301 PR rtl-optimization/27736
11302 * combine.c (replaced_rhs_value): New variable.
11303 (combine_instructions): Set it.
11304 (distribute_notes): When distributing a note in replaced_rhs_insn,
11305 check whether the value was used in replaced_rhs_value.
11306
987392e5 113072006-05-23 Andrew MacLeod <amacleod@redhat.com>
11308
11309 PR c++/26757
7bd4091f 11310 * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
987392e5 11311 add_referenced_var instead of add_referenced_tmp_var.
11312 * tree-complex.c (create_one_component_var): Use add_referenced_var.
11313 * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
11314 add_referenced_var.
11315 * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
11316 tree_optimize_tail_calls_1): Use add_referenced_var.
11317 * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
11318 * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
11319 Use add_referenced_var.
11320 * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
11321 * gimplify.c (force_gimple_operand): Use add_referenced_var.
11322 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
11323 Use add_referenced_var.
11324 * tree-dfa.c (struct walk_state): Remove.
11325 (find_referenced_vars): Remove walk state and vars_found hash table.
11326 (make_rename_temp): Use add_referenced_var.
11327 (find_vars_r): Pass less parameters to add_referenced_var.
11328 (referenced_var_p): New. Is var in referenced_var hash table.
11329 (referenced_var_insert): Assert var isn't already in hash table.
11330 (add_referenced_var): Don't need walk_state parameter. Add var if it
11331 isn't already in the hash table.
11332 (add_referenced_tmp_var): Remove.
11333 (find_new_referenced_vars_1): Use add_referenced_var.
7bd4091f 11334 * tree-ssa-pre.c (create_expression_by_pieces,
987392e5 11335 insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
11336 Use add_referenced_var.
11337 * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
11338 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
7bd4091f 11339 lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
987392e5 11340 add_referenced_var.
11341 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
11342 vect_create_data_ref_ptr, vect_create_destination_var,
7bd4091f 11343 vect_init_vector, vect_build_loop_niters,
987392e5 11344 vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
11345 vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
11346 Use add_referenced_var.
11347 * tree-outof-ssa.c (create_temp): Use add_referenced_var.
11348 * tree-flow.h (add_referenced_tmp_var): Remove prototype
11349 (add_referenced_var): Add prototype.
7bd4091f 11350 * tree-ssa-structalias.c (get_constraint_for,
987392e5 11351 intra_create_variable_infos): Use add_referenced_var.
11352
9a8a3ff4 113532006-05-23 Alexandre Oliva <aoliva@redhat.com>
11354
11355 * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
11356 big-endian paradoxical subregs.
11357 * var-tracking.c (struct micro_operation_def): Document that,
11358 for modify micro operations, insn is the subsequent instruction.
11359 (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
11360 (var_reg_set, var_mem_set): ... new functions.
11361 (add_stores): Record subsequent insn.
11362 (compute_bb_dataflow): Use new functions for MO_USE.
11363 (emit_notes_in_bb): Use new functions for MO_USE. Emit use
11364 notes after the insn, and modify notes before the insn known
11365 to be the subsequent one.
11366 (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
11367
b9612c36 113682006-05-23 Kazu Hirata <kazu@codesourcery.com>
11369
11370 PR target/27696
11371 * config/i386/i386.c (ix86_expand_builtin): Use
11372 gen_sse3_monitor64 for TARGET_64BIT.
11373
02a8ad7e 113742006-05-22 Kenneth Zadeck <zadeck@naturalbridge.com>
11375
11376 PR rtl-optimization/26375
11377 PR rtl-optimization/26855
11378 * df-problems (df_ru_bb_local_compute_process_def): Removed update
11379 to gen set.
11380 (df_ru_bb_local_compute): Reversed statements and removed bogus
11381 comment explaining why they should be in wrong order.
7bd4091f 11382 (df_ru_dump, df_rd_dump): Enhanced debug info.
02a8ad7e 11383 * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
7bd4091f 11384 debug info.
02a8ad7e 11385 * ddg.c (add_deps_for_def): Converted use of reaching defs to
57e3f39a 11386 reaching uses and fixed space problem.
02a8ad7e 11387
d3d410e1 113882006-05-23 Jan Hubicka <jh@suse.cz>
11389
11390 * cgraphunit.c (decide_is_function_needed): Also nested functions
11391 and functions declared inline can be optimized out at -O0.
11392
82307148 113932006-05-22 Gerald Pfeifer <gerald@pfeifer.com>
11394
11395 * doc/install.texi (Configuration): Remove reference to CrossGCC
5aa6d4f0 11396 FAQ which was gone.
82307148 11397 (Building): Ditto.
11398
27c7a7c4 113992006-05-22 Kazu Hirata <kazu@codesourcery.com>
11400
11401 PR target/27266
11402 * config/i386/i386.c (ix86_expand_branch): Jump to simple if
11403 ix86_compare_emitted is non-NULL.
11404
b3790f16 114052006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11406
11407 PR c++/27451
11408 * stmt.c (expand_asm_operands): Skip asm statement with erroneous
11409 clobbers.
11410
810d7bbd 114112006-05-22 Richard Sandiford <richard@codesourcery.com>
11412
11413 PR rtl-optimization/25514
11414 * combine.c (replaced_rhs_insn): New variable.
11415 (combine_instructions): Set replaced_rhs_insn when trying to replace
11416 a SET_SRC with a REG_EQUAL note.
11417 (distribute_notes): Use replaced_rhs_insn when determining the live
11418 range of a REG_DEAD register.
11419
346f625e 114202006-18-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
5e156a9d 11421 Anatoly Sokolov <aesok@post.ru>
346f625e 11422
11423 * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
11424 attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
7bd4091f 11425 attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
11426 atmega164p, atmega324p, atmega644p, atmega644, atmega329,
11427 atmega3290, atmega649, atmega6490, atmega406, atmega640,
11428 atmega1280, atmega1281, at90can32, at90can64, at90usb646,
11429 at90usb647, at90usb1286 and at90usb1287 devices.
346f625e 11430 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
11431 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11432
01672744 114332006-05-22 Richard Sandiford <richard@codesourcery.com>
11434
11435 * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
11436
37f85f50 114372006-05-22 Richard Guenther <rguenther@suse.de>
11438
11439 Revert
11440 2006-01-31 Richard Guenther <rguenther@suse.de>
11441 Paolo Bonzini <bonzini@gnu.org>
11442
11443 * doc/install.texi (--disable-libgcc-math): Document.
11444
b21d5608 114452006-05-22 Richard Guenther <rguenther@suse.de>
11446
11447 Revert
11448 2006-01-31 Richard Guenther <rguenther@suse.de>
11449
11450 * doc/invoke.texi (-msselibm): Document.
11451 * target.h (expand_library_builtin): New target hook.
11452 * builtins.c (expand_builtin): Use expand_library_builtin.
11453 (default_expand_library_builtin): New function.
11454 * gcc.c (LINK_GCC_MATH_SPEC): Define.
11455 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
11456 (link_gcc_math_spec): Declare.
11457 (static_specs): Add link_gcc_math_spec.
11458 * expr.h (default_expand_library_builtin): Declare.
11459 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
11460 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
11461 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
11462 * config/i386/i386.opt (msselibm): New target option.
11463 * config/i386/i386.c (ix86_builtin_function_variants): New array.
11464 (ix86_init_sse_abi_builtins): New function.
11465 (ix86_expand_library_builtin): Likewise.
11466 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
11467 (override_options): Handle error conditions wrt -msselibm.
11468 (ix86_builtins): Add function codes for SSE2 ABI builtins.
11469 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
11470 * doc/extend.texi (__builtin_sse2_*): Document new target specific
11471 builtins.
11472
b4b63acb 114732006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11474
e1d8e198 11475 PR c/27420
11476 * c-common.c (self_promoting_args_p): Skip erroneous args.
11477
b4b63acb 11478 PR c/26818
11479 * c-decl.c (finish_struct): Skip erroneous fields.
11480
4a967fbe 114812006-05-22 Nick Clifton <nickc@redhat.com>
11482
11483 * config/cris/cris.opt (march): Remove VarExists attribute.
11484 (max-stackframe=): Likewise.
11485
13f378e2 114862006-05-22 Kazu Hirata <kazu@codesourcery.com>
11487
11488 * doc/rtl.texi: Fix a typo.
11489 * see.c: Fix comment typos.
11490
1ed52621 11491 * tree-ssa-structalias.h (alias_info): Remove num_references.
11492
616e9486 114932006-05-21 Mike Stump <mrs@apple.com>
11494
11495 * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
11496 (BAD2): Add.
c1fe988d 11497 (darwin_pragma_options): Use BAD instead.
11498 (darwin_pragma_unused): Likewise.
11499 (darwin_pragma_ms_struct): Likewise.
11500
d1a0f7ec 115012006-05-21 David Edelsohn <edelsohn@gnu.org>
11502
11503 * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
11504
d76f0821 115052006-05-21 Kazu Hirata <kazu@codesourcery.com>
11506
11507 PR rtl-optimization/27671
11508 * simplify-rtx.c (simplify_relational_operation_1): Fix
11509 simplifications of (eq/ne (xor x y) y) and
11510 (eq/ne (xor x y) x).
11511
f0d3e909 11512 PR tree-optimization/26622.
11513 * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
11514 on arg1.
11515
13b96211 115162006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
11517
11518 * tree-cfg.c: Prune whitespace.
11519 (debug_tree_cfg): Point to correct header containing the
11520 TDF_* defines.
11521
5cd75817 115222006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
11523
11524 PR middle-end/25776
11525 * cgraphunit.c (verify_cgraph_node): Typo in error message.
11526
be4d0974 115272006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
11528
11529 PR middle-end/25776
11530 * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
11531 or sorry count is non zero.
11532
629da55a 115332006-05-20 Andreas Schwab <schwab@suse.de>
82c65053 11534
11535 * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
11536
f6682f83 115372006-05-19 Daniel Berlin <dberlin@dberlin.org>
5e156a9d 11538 Kenneth Zadeck <zadeck@naturalbridge.com>
f6682f83 11539
11540 PR rtl-optimization/26855
11541
11542 * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
11543 multiword refs.
11544 (df_scan_alloc): Added code to properly handle multiword hard
11545 registers and add all_blocks parameter.
11546 (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
11547 code to properly handle multiword hard registers.
11548 (df_rescan_blocks): Added code to remove deleted blocks from
11549 bitmap.
11550 (df_ref_create_structure, df_ref_record): Added code to properly
11551 handle subregs.
11552 (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
11553 and set DF_REF_PARTIAL.
11554 (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
7bd4091f 11555 (df_uses_record): Added DF_REF_PARTIAL for subreg.
f6682f83 11556 (df_scan_add_problem): Added flags parameter.
11557 (df_ref_create_structure): Changed switching structure.
11558 (df_bb_refs_record): Fixed case where duplicate artificial refs
11559 were created. Changed location of flags.
11560 (df_record_entry_block_defs): Added code to make stack pointer
11561 live in entry block. Refined cases where frame pointer is needed.
11562 Changed location of flags.
11563 (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
11564 (df_set_state): Removed function.
11565 (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
7bd4091f 11566 df_insn_create_insn_record, df_insn_refs_delete,
11567 df_ref_create_structure): Formatting changes.
f6682f83 11568 * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
11569 df_delete_basic_block): New function.
11570 (df_init): Changed location of flags.
11571 (df_add_problem): Added flags parameter and the way flags are
11572 processed.
11573 (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
11574 debug_df_chain): Improved debugging output.
11575 (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
11576 (df_refs_chain_dump): Removed df parameter.
11577 (df_iterative_dataflow): Added consistency check.
11578 (df_prune_to_subcfg): Made public.
11579 (df_analyze_problem): Added blocks_to_init parameter and made
11580 public.
7bd4091f 11581 (df_ref_record, df_bb_refs_record, df_mark_reg,
f6682f83 11582 df_record_exit_block_uses): Whitespace changes.
11583 (df_dump): Whitespace changes.
11584 * df.h: Some reordering to remove forward references.
11585 (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
11586 DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
11587 (df_ref_flags.DF_REF_CLOBBER): Deleted field.
11588 (dataflow.flags): New field.
11589 (df.flag): Deleted field.
11590 (df_alloc_function): Added additional bitmap parameter.
11591 (df_dependent_problem_function): New type.
11592 (df_problem.changeable_flags): New field.
11593 (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
11594 DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
11595 (df_mw_hardreg): New struct.
11596 (DF_INSN_UID_MWS): New macro.
11597 (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
11598 parameter.
11599 (df_add_problem, df_ru_add_problem, df_rd_add_problem,
11600 df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
11601 df_ri_add_problem, df_scan_add_problem): Added flags parameter.
11602 (df_set_state): Removed function.
11603 (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
11604 * df-problems.c (df_chain_dump): Removed df parameter.
11605 (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
11606 df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
11607 parameter.
11608 (df_ru_alloc, df_rd_alloc): Now resets all blocks.
11609 (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
11610 df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
11611 Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
11612 DF_REF_MUST_CLOBBER cases.
11613 (df_ru_bb_local_compute_process_def,
11614 df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
11615 df_lr_bb_local_compute, df_ur_bb_local_compute,
11616 df_chain_create_bb): Made subreg aware.
11617 (df_ru_bb_local_compute, df_rd_bb_local_compute,
11618 df_lr_bb_local_compute, df_lr_bb_local_compute,
11619 df_chain_create_bb): Cleanup to use proper macros.
11620 (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
11621 code to fixup bitvectors.
11622 (df_ri_alloc): Cleared lifetime.
11623 (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
11624 df_create_unused_note): New function.
11625 (df_ri_bb_compute, df_ri_compute): Added code to create/update
11626 REG_DEAD and REG_UNUSED notes as well as register information.
11627 (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
11628 df_chains_dump): Fixed crash if problem was never run.
11629 (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
11630 df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
11631 df_ri_add_problem): Processes flags in uniform manner.
11632 (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
11633 df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
11634 df_rd_dump, df_urec_free_bb_info): Formatting changes.
11635 (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
11636 df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
11637 df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
11638 df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
11639 df_ur_dump, df_urec_free_bb_info, df_urec_dump,
11640 df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
11641 * modulo-sched.c (sms_schedule): Added flag parameter to calls.
11642 * see.c (see_initialize_data): Ditto.
11643 * final.c (rest_of_clean_state) Added regstack_completed.
11644 * rtl.h (regstack_completed): Ditto.
11645 * reg-stack.c (regstack_completed): Ditto.
11646
8f0d6fd4 116472006-05-19 Mike Stump <mrs@apple.com>
11648
11649 * c-tree.h (default_conversion): Remove.
11650 * c-common.h (default_conversion): Add.
11651
7587869b 116522006-05-19 Zdenek Dvorak <dvorakz@suse.cz>
11653
11654 * tree-vrp.c (valid_value_p): New function.
11655 (adjust_range_with_scev): Fail if the value of bound is not
11656 simple.
11657
0848ddff 116582006-05-19 Richard Sandiford <richard@codesourcery.com>
11659
11660 * config/mips/linux-unwind.h: Include <asm/unistd.h>
11661 (mips_fallback_frame_state): Use syscall numbers to determine
11662 the appropriate li instruction for the current ABI. Only use
11663 __NR_sigreturn for o32.
11664
7d709201 116652006-05-19 Nicolas Setton <setton@adacore.com>
11666
11667 * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
11668 * langhooks.c (lhd_dwarf_name): New function.
11669 * langhooks-def.h (lhd_dwarf_name): Declare.
11670 (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
11671 * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
7bd4091f 11672
0e8499c7 116732006-05-19 Richard Sandiford <richard@codesourcery.com>
11674
11675 * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
11676 libgcc2.h.
11677 (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
11678 MIN_UNITS_PER_WORD logic from libgcc2.h. Do nothing if
11679 LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
11680 * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
11681 Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
11682 determine the size of Wtype, etc.
11683 * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
11684 (swfloatfuncs): New variable.
11685 (dwfloatfuncs): Likewise.
11686 (lib2funcs): Remove floating-point conversion functions from
11687 initial assignment. Use LIB2_SIDITI_CONV_FUNCS to determine
11688 the set of conversion routines needed. Allow entries to specify
11689 an object name, filename and word size. Update users accordingly.
11690 * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
11691 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
11692
11693 Revert:
11694
11695 2006-02-08 Roger Sayle <roger@eyesopen.com>
11696
11697 PR target/22209
11698 * config/fixtfdi.c: New libgcc source file.
11699 * config/fixunstfdi.c: New source file.
11700 * config/floatditf.c: New source file.
11701 * config/floatunditf.c: New souce file.
11702 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
11703 files above instead of config/mips/_tilib.c.
11704 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
11705
56967b5b 117062006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11707
11708 * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
11709 * pa/pa-hpux11.h (LIB_SPEC): Update comment.
11710
32d33ab2 117112006-05-18 Mike Stump <mrs@apple.com>
11712
11713 Fix up vla, vm and [*] sematics.
11714
11715 PR c/18740
11716 PR c/7948
11717 PR c/25802
7d67118d 11718 PR c/27673
32d33ab2 11719 * c-tree.h (struct c_arg_info): Add had_vla_unspec.
11720 (c_vla_unspec_p): Add.
11721 (c_vla_type_p): Add.
11722 * c-decl.c (struct c_scope): Add had_vla_unspec.
11723 (build_array_declarator): Add support for [*].
11724 (grokdeclarator): Likewise.
11725 (grokparms): Likewise.
11726 (get_parm_info): Likewise.
11727 * c-objc-common.c (c_vla_unspec_p): Likewise.
11728 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
11729 * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
11730 typeof when argument is a variably modified type not inside sizeof or alignof.
11731 (c_parser_direct_declarator_inner): Propagate errors.
11732 (c_parser_sizeof_expression): Add support for [*].
7d67118d 11733 (c_parser_parms_declarator): Initialize had_vla_unspec.
11734 (c_parser_parms_list_declarator): Likewise.
32d33ab2 11735 * c-typeck.c (c_vla_type_p): Add.
11736 (composite_type): Add support for vla compositing.
11737 (comptypes_internal): Add support for vla compatibility.
11738 (c_expr_sizeof_expr): Evaluate vla arguments.
11739 * tree.c (variably_modified_type_p): Update comment for [*].
11740
96034e28 117412006-05-18 Michael Matz <matz@suse.de>
11742
11743 PR target/27599
11744 * config.host: Make assignments to host_xmake_file cumulative.
11745 * config.host (*-darwin*): Test $host, not $target.
11746
124c0201 117472006-05-12 Stuart Hastings <stuart@apple.com>
11748
cf8cdd54 11749 * config/i386/i386.opt (-mstackrealign): New flag.
11750 * config/i386/i386.c (force_align_arg_pointer): New attribute.
124c0201 11751 (ix86_handle_cconv_attribute): Emit error when
11752 force_align_arg_pointer attribute collides with too many regparms.
11753 (ix86_function_regparm): Limit regparms when used with
11754 force_align_arg_pointer attribute. (ix86_internal_arg_pointer):
11755 Support stack-realigning prologue in non-main functions. Emit
11756 warning for nested functions under -mstackrealign, emit error for
11757 nested functions with force_align_arg_pointer attribute.
cf8cdd54 11758 * doc/extend.texi (force_align_arg_pointer): Document it.
11759 * doc/invoke.texi (-mstackrealign): Document it.
522701ef 11760
f3cc7f79 117612006-05-17 Kazu Hirata <kazu@codesourcery.com>
11762
11763 PR rtl-optimization/27477
11764 * combine.c (try_combine): Don't split a parallel consisting
11765 of two sets into two individual sets if both sets reference
11766 cc0.
11767
a492433f 117682006-05-17 H.J. Lu <hongjiu.lu@intel.com>
11769
11770 * config/arm/arm.opt (target_fpe_name): Remove VarExists.
11771 * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
11772
11773 * doc/options.texi (VarExists): Updated.
11774
68528f68 117752006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11776
11777 * unwind-dw2.c: Add declarations for uw_update_context and
11778 uw_frame_state_for.
11779 * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
11780 detected, advance frame state and context once to skip over stub.
11781
dfe210e4 117822006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
11783
11784 PR middle-end/20256
11785 PR middle-end/26435
11786 * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
11787 Call rewrite_into_loop_closed_ssa only when something changed.
11788 * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
11789 * lambda-code.c (can_convert_to_perfect_nest): Declared.
11790 (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
11791 Test for perfect_nest_p here. Fix formating.
11792 (replace_uses_equiv_to_x_with_y): Fix formating.
11793 (stmt_uses_op): Removed.
11794 (can_convert_to_perfect_nest): Removed loopivs parameter.
11795 Complete the test by checking the scalar dependences.
11796 (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
11797 Fix formating.
11798
4a62cbb1 117992005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
11800
11801 PR bootstrap/22541
11802 From Dan Kegel <dank@kegel.com>:
11803 * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
11804
6726ef59 118052006-05-17 Eric Botcazou <ebotcazou@adacore.com>
11806
11807 * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
11808 if the element type is variably modified without recursing.
11809
e0cf06e1 118102006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
11811
11812 PR middle-end/27332
522701ef 11813 * tree-loop-linear.c (try_interchange_loops): Test for
e0cf06e1 11814 no data dependences.
11815
72079d62 118162006-05-17 Zdenek Dvorak <dvorakz@suse.cz>
11817
11818 PR tree-optimization/27548
11819 * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
11820 range of ssa names that appear on abnormal edges.
11821 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
11822 * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
11823
a5b684d2 118242005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
11825
11826 PR middle-end/27620
11827 * expr.c (safe_from_p): Handle CONSTRUCTOR again.
11828
87f7c31e 118292006-05-17 Jakub Jelinek <jakub@redhat.com>
11830
11831 PR middle-end/27415
11832 * tree.h (OMP_PARALLEL_COMBINED): Define.
11833 * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
11834 (new_omp_context): Add is_combined_parallel argument.
11835 (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
11836 new_omp_context caller.
11837 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
11838 Adjust gimplify_scan_omp_clauses callers.
11839 (omp_is_private): Issue errors if iteration variable is firstprivate
11840 or reduction in the current context.
11841 * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
11842 on combined parallel workshare constructs.
11843
486ae7e7 118442006-05-16 H.J. Lu <hongjiu.lu@intel.com>
11845
11846 * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
11847 (gcc-options.o): New rule.
11848
11849 * optc-gen.awk: Protect variables for gcc-options.o with
11850 #ifdef GCC_DRIVER/#endif.
11851
6b5a5c42 118522006-05-16 Daniel Berlin <dberlin@dberlin.org>
522701ef 11853
6b5a5c42 11854 Fix PR tree-optimization/27373
11855 * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
11856 (forward_propagate_addr_expr): Update call.
11857
a91c04b7 118582006-05-16 H.J. Lu <hongjiu.lu@intel.com>
11859
11860 * doc/options.texi: Move the Negative option.
11861
4f61cce6 118622006-05-16 Richard Guenther <rguenther@suse.de>
11863
11864 PR tree-optimization/22303
11865 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
11866 from STRING_CSTs.
11867 (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
11868 ccp_fold did not simplify the statement.
11869
a1baa5f1 118702006-05-16 H.J. Lu <hongjiu.lu@intel.com>
11871
11872 PR driver/26885
11873 * Makefile.in (GCC_OBJS): New.
11874 (OBJS-common): Add opts-common.o.
11875 (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
11876 (cpp$(exeext)): Likewise.
11877 (gcc.o): Also depend on opts.h.
11878 (opts-common.o): New.
11879
11880 * common.opt (gcoff): Add Negative(gdwarf-2).
11881 (gdwarf-2): Add Negative(gstabs).
11882 (gstabs): Add Negative(gstabs+).
11883 (gstabs+): Add Negative(gvms).
11884 (gvms): Add Negative(gxcoff).
11885 (gxcoff): Add Negative(gxcoff+).
11886 (gxcoff+): Add Negative(gcoff).
11887 * config/i386/i386.opt (m32): Add Negative(m64).
11888 (m64): Add Negative(m32).
11889
11890 * doc/options.texi: Document the Negative option.
11891
11892 * gcc.c: Include "opts.h".
11893 (main): Call prune_options after expandargv.
11894
11895 * optc-gen.awk: Generate common declarations for all flag
11896 variables in options.c. Output the neg_index field.
11897
11898 * opts.c (find_opt): Moved to ...
11899 * opts-common.c: Here. New file.
11900
11901 * opts.h (cl_option): Add a neg_index field.
11902 (find_opt): New.
11903 (prune_options): Likewise.
11904
cc63cb7d 119052006-05-16 Jakub Jelinek <jakub@redhat.com>
11906
3480139d 11907 PR middle-end/27573
11908 * omp-low.c (expand_omp_parallel): Don't assert
11909 .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
11910 instead search for it.
11911
cc63cb7d 11912 PR c/27499
11913 * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
11914 is signed.
11915
f7df448c 119162006-05-16 Andreas Schwab <schwab@suse.de>
11917
11918 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
11919 defmac.
11920
f3af78f1 119212006-05-15 Roger Sayle <roger@eyesopen.com>
11922
11923 PR target/26600
11924 * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
11925 integer constants other than zero are only legitimate on TARGET_64BIT.
11926 <CONST_VECTOR> Only zero vectors are legitimate.
11927 (ix86_cannot_force_const_mem): Integral and vector constants can
11928 always be put in the constant pool.
11929
91e8ab5c 119302006-05-16 DJ Delorie <dj@redhat.com>
11931
11932 * crtstuff.c (__dso_handle): Set section from
11933 TARGET_LBIGCC_SDATA_SECTION if defined.
f7df448c 11934 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
91e8ab5c 11935 * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
11936
c0af1519 119372006-05-16 Danny Smith <dannysmith@users.sourceforge.net>
11938
96034e28 11939 PR target/27599
c0af1519 11940 * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
11941 host_xmake_file.
11942
0055dbde 119432006-05-16 Ben Elliston <bje@au.ibm.com>
11944
11945 * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
11946
0085bb71 119472006-05-15 Per Bothner <per@bothner.com>
11948
c4f77c27 11949 * tree.c: (last_annotated_node): Use source_locus typedef.
0085bb71 11950 This permits bootstrapping with --enable-mapped-location.
11951
2920559d 119522006-05-15 Zdenek Dvorak <dvorakz@suse.cz>
11953
11954 PR tree-optimization/26830
11955 * tree-into-ssa.c (struct ssa_name_info): Add age field.
11956 (info_for_ssa_name, current_info_for_ssa_name_age,
11957 blocks_to_update): New variables.
11958 (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
11959 (clear_ssa_name_info, initialize_flags_in_bb,
11960 mark_block_for_update): New functions.
11961 (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
11962 (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
11963 prepare_def_site_for): Use mark_block_for_update.
11964 (mark_def_interesting): Assert that the processed block is marked in
11965 blocks_to_update. Do not take blocks argument.
11966 (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
11967 argument.
11968 (rewrite_update_init_block, rewrite_update_stmt): Only process
11969 blocks with statements to rewrite.
11970 (delete_update_ssa): Do not clear SSA_NAME_AUX.
11971 (update_ssa): Initialize and free blocks_to_update. Do not
11972 clear flags on statements. Do not use blocks bitmap.
11973 * tree.h (SSA_NAME_AUX): Removed.
11974 (struct tree_ssa_name): Removed aux field.
11975 * print-tree.c (print_node): Do not print SSA_NAME_AUX.
11976
d4eedd54 119772006-05-15 Richard Guenther <rguenther@suse.de>
11978
11979 PR tree-optimization/27603
11980 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
11981 Do computations in original type.
11982
8a667709 119832006-05-15 Mircea Namolaru <namolaru@il.ibm.com>
11984
c6b897fe 11985 * see.c: Code style changes such as redundant paranthesis,
11986 redundant intialization of local variables etc.
11987 (see_main): Declared now as static.
11988 * doc/invoke.texi: Update that -fsee is not enabled by
11989 default at -O3.
8a667709 11990
9438af57 119912006-05-15 Jakub Jelinek <jakub@redhat.com>
11992
c1d127dd 11993 * omp-low.c (check_omp_nesting_restrictions): New function.
11994 (scan_omp_1): Call it.
11995
9438af57 11996 PR middle-end/27416
11997 * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
11998 construct, return *VAR.
11999
bc26d495 120002006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
12001
12002 PR rtl-optimization/27406
12003 * bt-load.c (migrate_btr_def): Skip the block having abnormal
12004 edges.
12005
dcfc98c1 120062006-05-14 Roger Sayle <roger@eyesopen.com>
12007
12008 PR rtl-optimization/27538
12009 * combine.c (expand_compound_operation): Call gen_lowpart
12010 before calling simplify_shift_const.
12011
f31d1dc3 120122006-05-14 Roger Sayle <roger@eyesopen.com>
12013
12014 PR rtl-optimization/22563
12015 * expmed.c (store_fixed_bit_field): When using AND and IOR to store
12016 a fixed width bitfield, always force the intermediates into psuedos.
12017
6cd86b1d 120182006-05-14 Bernhard Fischer <aldot@gcc.gnu.org>
12019
12020 PR 27501
12021 * mkconfig.sh: Use operator = instead of == for test.
12022
f52ddb74 120232006-05-13 Nick Clifton <nickc@redhat.com>
12024
12025 * dwarf2out.c (dbx_reg_number): Check return value from
12026 LEAF_REG_REMAP and only use it if it is valid.
12027 (multiple_reg_loc_descriptor): Likewise.
12028
071ed2eb 120292006-05-13 Richard Guenther <rguenther@suse.de>
12030
12031 * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
12032 host_xmake_file.
12033
6151bbc3 120342006-05-13 Steven Bosscher <stevenb.gcc@gmail.com>
12035
12036 * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
12037 information attached to non-INSNs such as NOTEs.
12038 (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
12039
d5608dc4 120402006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
12041
12042 * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
12043 On contraint.
12044 * config/s390/s390.md: Adjust comment describing On constraint.
12045
bba7ddf8 120462006-05-11 Jan Hubicka <jh@suse.cz>
12047
12048 * cgraphunit.c (decide_is_function_needed): Don't force always_inline
12049 to be output at -O0.
12050
0bec3023 120512006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
12052
4a698d62 12053 PR middle-end/27384
12054 * fold-const.c (size_binop): Move sanity check for arguments to
12055 the beginning of the function.
12056
0bec3023 12057 PR middle-end/27488
12058 * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
12059 expression.
12060
219dad96 120612006-05-11 Richard Guenther <rguenther@suse.de>
12062
12063 PR middle-end/27529
12064 * fold-const.c (fold_unary): Handle intermediate conversion
12065 to a pointer type like intermediate conversion to an integer
12066 type in folding of (T1)(T2)var to var.
12067 Match the code to the comment in the final conversion for
12068 (T1)(T2)var to (T1)var regarding to type precision. Rather
12069 than disallow T1 being of pointer type, assert that both T1
12070 and var are of pointer type or not. Make sure not to fall
12071 over the frontends lazyness wrt array to pointer decay though.
12072
f2be8f2b 120732006-05-10 Richard Earnshaw <rearnsha@arm.com>
12074
12075 * arm.c (arm_struct_value_rtx): Delete.
12076 (TARGET_STRUCT_VALUE_RTX): Use the default definition.
12077 (arm_init_cumulative_args): Always initialize nregs to zero.
12078
19256cce 120792006-05-10 Richard Guenther <rguenther@suse.de>
12080
12081 PR tree-optimization/27532
12082 * tree-object-size.c (plus_expr_object_size): Fix typo.
12083
a854b0c3 120842006-05-10 Kazu Hirata <kazu@codesourcery.com>
12085
12086 PR target/24949
12087 * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
12088 ashrdi_const, ashrdi3): Use a scratch register.
12089
ffb99bfe 120902006-05-10 Richard Guenther <rguenther@suse.de>
12091
12092 PR tree-optimization/27302
12093 * fold-const.c (operand_equal_p): For two comparisons,
12094 try comparison of one comparison code swapped if that yields
12095 the same code.
12096
503c6e8e 120972006-05-10 Ben Elliston <bje@au.ibm.com>
12098
32a9fcf7 12099 * tree-pretty-print.c (pretty_print_string): No need to handle
12100 '\0' as a special character.
12101
503c6e8e 12102 * tree.h: Include "hashtab.h".
12103 (iterative_hash_expr): Use hashval_t in its prototype.
12104 * Makefile.in (TREE_H): Add $(HASHTAB_H).
12105
8ad01423 121062006-05-09 Steve Ellcey <sje@cup.hp.com>
12107
12108 PR bootstrap/26872
12109 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
12110 (hppa*64*-*-hpux11*): Ditto.
12111 (hppa[12]*-*-hpux11*): Ditto.
12112
92a6eba6 121132006-05-09 David Edelsohn <edelsohn@gnu.org>
12114
12115 PR target/26545
12116 * config/rs6000/aix41.h (TARGET_64BIT): Define.
12117
4009b53f 121182006-05-09 Michael Matz <matz@suse.de>
12119
12120 * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
12121 host_extra_gcc_objs and host_xmake_file.
12122 (<*-*-linux*>): Don't overwrite host_xmake_file.
12123 * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
12124 * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
12125 (host_detect_local_cpu): Declare.
12126 (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
12127 * config/i386/i386.c (override_options): Handle -mtune=native
12128 as -mtune=generic.
12129 * config/i386/x-i386: New file.
12130 * config/i386/driver-i386.c: New file.
12131 * doc/invoke.texi (<i386 and x86-64 Options>): Describe
12132 cpu-type "native".
12133
b3acd74f 121342006-05-09 Dirk Mueller <dmueller@suse.de>
12135 Richard Guenther <rguenther@suse.de>
12136
12137 PR middle-end/27498
12138 * fold-const.c (fold_read_from_constant_string): Relax check
12139 for matching types to matching modes.
12140
34e61d77 121412006-05-09 Zdenek Dvorak <dvorakz@suse.cz>
12142
12143 PR rtl-optimization/27335
12144 * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
12145 loops.
12146
1ad3c870 121472006-05-08 Chao-ying Fu <fu@mips.com>
12148 Richard Sandiford <richard@codesourcery.com>
12149
12150 * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
12151 (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
12152 * config/mips/mips.md (UNSPEC_SCC): New constant.
12153 * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
12154 * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
12155 (mips_emit_compare): Use it.
12156 (mips_expand_vcondv2sf): New function.
12157
54bbda3c 121582006-05-08 Daniel Berlin <dberlin@dberlin.org>
12159
12160 Fix PR tree-optimization/27093
522701ef 12161 * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
54bbda3c 12162 renaming when they become not-used_alone.
12163
66ac1457 121642006-05-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12165
12166 * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
12167 relocation and relocation stubs.
12168
522ae219 121692006-05-08 Eric Christopher <echristo@apple.com>
12170
12171 * unwind-dw2-fde-darwin.c (examine_objects): Only check data
12172 section for ppc.
12173
8baa9d15 121742006-05-08 Jan Hubicka <jh@suse.cz>
12175
95da6220 12176 PR middle-end/24561
8baa9d15 12177 * cgraphunit.c (decide_is_function_needed): When not optimizing even
12178 unused static functions are needed.
12179
9f1a815a 121802006-05-08 Roger Sayle <roger@eyesopen.com>
12181
12182 PR target/27158
12183 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
12184 of a reg_equiv_constant if the result is a legitimate constant.
12185
77670c1d 121862006-05-08 Uros Bizjak <uros@kss-loka.si>
12187
12188 PR target/27277
12189 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
12190 standard 80387 constants, raise the cost to prevent
12191 compress_float_constant() to generate load from memory.
12192
bbd98f7d 121932006-05-08 Kazu Hirata <kazu@codesourcery.com>
12194
12195 * config/arm/constraints.md (c): Fix a typo.
12196
9fdf9cf6 12197 * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
12198 typos.
12199
106eecb3 122002006-05-07 H.J. Lu <hongjiu.lu@intel.com>
12201
12202 PR target/24879
12203 * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
12204 inline function.
12205 (_mm_mwait): Likewise.
12206
12207 * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
12208 "mwait".
12209 (sse3_monitor): Make it 32bit only.
12210 (sse3_monitor64): New. 64bit monitor.
12211
adfbdef1 122122006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
12213
12214 PR target/27421
12215 * config/i386/i386.c (classify_argument): Skip fields with invalid
12216 types.
12217
1b2f34a9 122182006-05-07 Richard Guenther <rguenther@suse.de>
12219
12220 PR tree-optimization/27409
12221 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12222 Do not try to find zero-sized subvars.
12223
f8540d49 122242006-05-07 Richard Guenther <rguenther@suse.de>
12225
12226 PR tree-optimization/27136
12227 * tree-ssa-loop-niter.c (get_val_for): Correct function
12228 comment, assert requirements.
12229 (loop_niter_by_eval): Stop processing if the iterated
12230 value did not simplify.
12231
b4a7fde1 122322006-05-07 Mircea Namolaru <namolaru@il.ibm.com>
12233
522701ef 12234 * opts.c (flag_see): remove its setting at -O3.
522ae219 12235
234f6557 122362006-05-07 Richard Earnshaw <rearnsha@arm.com>
12237
12238 * genpeep.c (main): Make insn-peep.c depend on flags.h.
12239 * arm/constraints.md: New file.
12240 * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
12241 (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
12242 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
12243 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
12244 (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
12245 (EXTRA_MEMORY_CONSTRAINT): Likewise.
12246 * arm.md: Include constraints.md.
12247 (thumb_movsi_insn): Use satisfies_constraint_J.
12248 (movhi, movqi): Use satisfies_constraint_I.
12249
351f885c 122502006-04-29 Anatoly Sokolov <aesok@post.ru>
12251
522701ef 12252 * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
351f885c 12253 for atmeg a645 device.
12254
94a3ff13 122552006-05-06 Richard Guenther <rguenther@suse.de>
12256
12257 PR tree-optimization/27151
12258 * tree-vect-transform.c (vectorizable_condition): Punt on
12259 values that have a different type than the condition.
12260
35df6eb4 122612006-05-03 Aldy Hernandez <aldyh@redhat.com>
12262
12263 PR/21391
12264 * c-parser.c (c_parser_cast_expression): Only insert casts into
12265 hash table if pointer.
12266 * function.c (used_types_insert_helper): Rename from
12267 used_types_insert.
12268 (used_types_insert): Call used_types_insert_helper.
12269 * function.h (used_types_insert): Accept only one argument.
12270
913b293a 122712006-05-05 David Edelsohn <edesohn@gnu.org>
12272
12273 * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
12274 scratch with output modifier.
12275
fe26ce8c 122762006-05-04 David Edelsohn <edelsohn@gnu.org>
12277
12278 PR target/26481
12279 * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
12280 with output modifier.
12281
87bc559b 122822006-05-04 Richard Sandiford <richard@codesourcery.com>
12283
12284 PR target/26765
12285 * config/mips/mips.c (mips_symbolic_address_p): Return true
12286 for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
12287 SYMBOL_GOTTPREL, and SYMBOL_TLS.
12288
cbc74ef3 122892006-05-04 Richard Guenther <rguenther@suse.de>
12290
12291 PR tree-optimization/14287
12292 PR tree-optimization/14844
12293 PR tree-optimization/19792
12294 PR tree-optimization/21608
12295 PR tree-optimization/27090
12296 * tree-ssa-pre.c (try_combine_conversion): New function.
12297 (compute_avail): After constructing the value-handle
12298 expression, use try_combine_conversion to combine NOP_EXPRs
12299 with previous value-handle expressions and use the result if it
12300 is available.
12301
ad8a2416 123022006-05-04 Joseph S. Myers <joseph@codesourcery.com>
12303
12304 * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
12305
0f6439b9 123062006-05-04 Jan Hubicka <jh@suse.cz>
12307
12308 PR middle-end/25962
12309 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
12310
ae2e62d2 123112006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
12312
12313 * config/bfin/predicates.md (const01_rtx): Tell generator programs
12314 that this only matches CONST_INTs. All users changed to VOIDmode
12315 operands.
12316
f9edc33d 12317 * config/bfin/bfin.c: Include "optabs.h".
12318 (bfin_rtx_costs): Some costs for vector operations, to allow combine
12319 to do more work.
12320 (enum bfin_builtins): Add a number of fractional and vector builtins.
12321 (bfin_init_builtins): Likewise.
12322 (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
12323 (safe_vector_operand, bfin_expand_binop_builtin,
12324 bfin_expand_unop_builtin): New functions.
12325 (bfin_expand_builtin): Handle the new builtins.
12326 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12327 __ADSPBLACKFIN__.
12328
2b74c150 123292006-05-04 Leehod Baruch <leehod@il.ibm.com>
12330
522701ef 12331 * see.c: New file.
12332 * Makefile.in (OBJS-common): Add see.o.
12333 (see.o): Add dependencies.
12334 * common.opt (fsee): New flag for the see optimization was added.
12335 * opts.c (flag_see): Initialized.
12336 * passes.c (init_optimization_passes, pass_see): New pass.
12337 * rtl.h (see_main): Declaration as extern.
12338 * timevar.def (TV_SEE): New.
12339 * tree-pass.h (pass_see): Declaration as extern.
12340 * invoke.texi (-fsee): Document.
12341 * recog.c (validate_simplify_insn): New function.
12342 * recog.h (validate_simplify_insn): Declaration as extern.
12343 * df-problems.c (df_chain_dump): Check for NULL.
2b74c150 12344
123452006-05-04 Kenneth Zadeck <zadeck@naturalbridge.com>
522701ef 12346 Daniel Berlin <dberlin@dberlin.org>
2b74c150 12347
522701ef 12348 * cfgrtl.c (insert_insn_bb_end_new): New function.
12349 * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
2b74c150 12350
123512006-05-04 Leehod Baruch <leehod.baruch@weizmann.ac.il>
12352
522701ef 12353 * df.h (struct web_entry): Moved from web.c.
12354 (union_defs): Declaration as extern.
12355 (unionfind_root): Likewise.
12356 (unionfind_union): Likewise.
12357 * web.c (struct web_entry): Moved to df.h.
12358 (unionfind_root): Remove static declaration.
12359 (unionfind_union): Likewise.
12360 (union_defs): Likewise and generalize to use callback function.
12361 (web_main): Update arguments for union_defs function call.
2b74c150 12362
696243a6 123632006-05-04 Richard Guenther <rguenther@suse.de>
12364
12365 PR tree-optimization/26447
12366 * tree-ssa-pre.c (realify_fake_stores): For necessary loads
12367 produce SSA_NAME copies before the store stmt to avoid
12368 breaking exception handling.
12369
013a7f55 123702006-05-04 Jakub Jelinek <jakub@redhat.com>
12371
12372 PR middle-end/27388
12373 * gimplify.c (omp_is_private): If var is shared in some outer context,
12374 return false instead of true. Stop searching on parallel context
12375 boundary.
12376
58158e5b 123772006-05-03 Alexandre Oliva <aoliva@redhat.com>
12378
12379 PR java/8260
12380 * coverage.c: Use get_gcov_unsigned_t() instead of
12381 unsigned_type_node all over.
12382
66c8f3a9 123832006-05-02 Andrew MacLeod <amacleod@redhat.com>
12384
12385 PR tree-optimization/27381
522ae219 12386 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
66c8f3a9 12387 maintain the same immediate_use links.
522ae219 12388 * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
66c8f3a9 12389 node rather than segfaulting.
12390
0f9d10d4 123912006-05-03 Jakub Jelinek <jakub@redhat.com>
12392
12393 PR fortran/27395
12394 * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
12395 rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
12396 bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
12397
4bef19cc 123982006-05-02 Daniel Berlin <dberlin@dberlin.org>
12399
12400 Fix PR tree-optimization/26626
12401 * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
12402 always.
12403 * tree-ssa-operands.c (access_can_touch_variable): Allow
12404 typecasting through union pointers.
12405
f49d7bb5 124062006-05-02 Jakub Jelinek <jakub@redhat.com>
12407
12408 PR c++/26943
12409 * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
12410 (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
12411 to find if var will be a global variable even in the nested context.
12412 (omp_copy_decl): Only check for global variable at the end, it might
12413 be overridden in outer contexts.
12414 (scan_sharing_clauses): For global variables don't create a field.
12415 (lower_rec_input_clauses): Do nothing for global shared variables.
12416 Emit a barrier at the end of ILIST if there were any decls in both
12417 firstprivate and lastprivate clauses.
12418 (lower_send_clauses): Do nothing for global variables except for
12419 COPYIN.
12420
d067645d 124212006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
12422
12423 * tree.c (unsigned_type_for, signed_type_for): Make sure a type
12424 of the correct signedness is returned.
12425
9d8b8bc4 124262006-05-02 Jeff Law <law@redhat.com>
12427
12428 PR tree-optimization/27364
12429 * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
12430 multiply expressions.
12431
260a47ec 124322006-05-02 Tom Tromey <tromey@redhat.com>
12433
12434 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
12435
ca1ede88 124362006-05-02 Kazu Hirata <kazu@codesourcery.com>
12437
12438 PR target/27387
12439 * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
12440 -mthumb -fPIC are used.
12441
a240bf01 124422006-05-02 Stanislaw Skowronek <skylark@linux-mips.org>
12443 Joshua Kinard <kumba@gentoo.org>
12e8f34d 12444
12445 PR target/25871
cf8cdd54 12446 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
12e8f34d 12447 with 64-bit pointers.
12448
8f2b909a 124492006-05-02 Paul Brook <paul@codesourcery.com>
12450
12451 * config/arm/arm.c (add_minipool_forward_ref): Check if insn
12452 and pool overlap.
12453 (create_fix_barrier): Check that a suitable barrier location is
12454 found.
12455 (arm_reorg): Include ftmp->address in allowable range of addresses.
12456
46614828 124572006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
12458
12459 PR ada/27366
522ae219 12460 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
8f2b909a 12461 on Cygwin.
46614828 12462
b70b62cf 124632006-05-02 Jakub Jelinek <jakub@redhat.com>
12464
df2c34fc 12465 PR middle-end/27337
12466 * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
12467 around RESULT_DECL for result passed by reference.
12468 (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
12469 * omp-low.c (use_pointer_for_field): Don't look at
12470 DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
12471 (scan_omp_1): Call remap_decl on RESULT_DECLs.
12472 (lower_rec_input_clauses): Don't allocate VLA memory for the second
12473 time or var for passing by reference for
12474 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
12475 TREE_ADDRESSABLE variables when passing by reference.
12476
12477 * omp-low.c (dump_omp_region): Fix output formatting.
12478
5056ba1a 12479 PR middle-end/27328
12480 * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
12481 (expand_omp_parallel): Likewise.
12482 * tree-cfg.c (move_sese_region_to_fn): Likewise.
12483
aade31a0 12484 PR middle-end/27325
12485 * omp-low.c (lower_omp_sections): Call maybe_catch_exception
12486 on statement list containing also constructors and destructors.
12487 (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
12488
b70b62cf 12489 PR middle-end/27310
12490 * except.c (duplicate_eh_regions): Fix clearing of
12491 cfun->eh->region_array entries.
12492
13648950 124932006-05-01 DJ Delorie <dj@redhat.com>
12494
12495 * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
12496 build!=host.
12497 (gcc_cv_objdump): Likewise.
12498 * configure: Regenerated.
12499
12646d64 125002006-05-01 Kazu Hirata <kazu@codesourcery.com>
12501
12502 PR target/27374
12503 * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
12504 templates for case 3 and 4.
12505
c169e46c 125062006-05-01 DJ Delorie <dj@redhat.com>
12507
12508 * vec.c: Include bconfig.h when appropriate.
12509 * Makefile.in (build/vec.o): Adjust dependencies.
12510 * mkconfig.sh: Make sure config.h isn't used for build machine
12511 compiles.
12512
70630fcd 125132006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
12514
12515 * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
12516 variables.
12517 (mark_phi_for_rewrite): New function.
12518 (insert_phi_nodes_for, mark_use_interesting): Call
12519 mark_phi_for_rewrite.
12520 (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
12521 (update_ssa): Initialize and free phis_to_rewrite.
12522
a4c7895e 125232006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
12524
12525 PR rtl-optimization/27291
12526 * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
12527 folded to a constant.
12528
dcd24d3c 125292006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
12530
12531 PR tree-optimization/27283
12532 * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
12533 not whole # of iteration descriptions.
12534 (niter_for_exit): Return just # of iterations. Fail if # of iterations
12535 uses abnormal ssa name.
12536 (niter_for_single_dom_exit): Ditto.
12537 (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
12538 return just the number of iterations.
12539
d1baf6ca 125402006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
12541
12542 PR tree-optimization/27144
12543 * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
12544 (record_estimate): Only record constant upper bound.
12545 (infer_loop_bounds_from_undefined): Call
12546 compute_estimated_nb_iterations just once.
12547 (proved_non_wrapping_p): Renamed to ...
12548 (n_of_executions_at_most): ... this. Expect bound to be a constant.
12549 (convert_step_widening, scev_probably_wraps_p): Call
12550 n_of_executions_at_most instead of proved_non_wrapping_p.
12551 (substitute_in_loop_info): Do not replace values in bounds.
12552 * cfgloop.h (struct nb_iter_bound): Remove "additional" field. Update
12553 comments.
12554
adcd0e5f 125552006-05-01 Richard Henderson <rth@redhat.com>
12556
12557 PR c/27358
12558 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
12559 c_parser_skip_to_pragma_eol. Convert to switch statement. Handle
12560 CPP_PRAGMA.
12561
ceda77d2 125622006-05-01 Roger Sayle <roger@eyesopen.com>
12563
12564 * c-typeck.c (parser_build_binary_op): Don't call the function
12565 unsigned_conversion_warning to spot operand/result type overflow.
12566 (build_binary_op): Instead, call convert_and_check instead of
12567 convert to report the problem when the operands are promoted.
12568 * c-common.c (unsigned_conversion_warning): Make static.
12569 * c-common.h (unsigned_conversion_warning): Delete prototype.
12570
d3d02a88 125712006-05-01 Richard Guenther <rguenther@suse.de>
12572
12573 PR tree-optimization/26726
12574 * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
12575 problem ...
12576 (find_interesting_uses_address): ... we work around here
12577 by folding INDIRECT_REFs in the substituted base.
12578
0f9b0545 125792006-05-01 Diego Novillo <dnovillo@redhat.com>
12580
12581 * omp-low.c (dump_omp_region): Add newlines.
12582
55972f40 125832006-04-30 Roger Sayle <roger@eyesopen.com>
12584
12585 * common.opt (Woverflow): New command line option.
12586 * c-common.c (constant_expression_warning): Check warn_overflow.
12587 (overflow_waring): Pass OPT_Woverflow to warning.
12588 (unsigned_conversion_warning): Likewise.
12589 (convert_and_check): Likewise.
12590 * doc/invoke.texi: Document new command line option.
12591
2c7082e3 125922006-04-30 David Edelsohn <edelsohn@gnu.org>
12593
12594 * config/rs6000/rs6000.c (rs6000_override_options): Enable
12595 TARGET_NO_FP_IN_TOC for section anchors.
12596 (optimization_options): Enable section anchors for all
12597 non-"Objective" languages.
12598
f720b7c6 125992006-04-28 Eric Christopher <echristo@apple.com>
12600
12601 * config/darwin-c.c (darwin_ms_struct): Move this
12602 (darwin_set_default_type_attributes): and this...
12603 * config/darwin.c: ... here.
12604 * config/darwin.h (darwin_ms_struct): Declare.
12605
76e6653a 126062006-04-28 Andrew MacLeod <amacleod@redhat.com>
12607
12608 * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
12609
4aeeff51 126102006-04-28 Roger Sayle <roger@eyesopen.com>
12611
12612 PR c/25309
12613 * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
12614 (push_array_bounds): Delete prototype. Change BOUNDS argument to
12615 an unsigned HOST_WIDE_INT.
12616 (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
12617 array index.
12618 (really_start_incremental_init): No need to call convert because
12619 bitsize_zero_node is already of type bitsizetype.
12620 (push_init_level): Extract the value of constructor_index as an
12621 unsigned HOST_WIDE_INT quantity, using tree_low_cst.
12622 (process_init_element): Likewise.
12623
01b26439 126242006-04-28 Joseph S. Myers <joseph@codesourcery.com>
12625
12626 * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
12627 value before passing to make_relative_prefix.
12628
1007f554 126292006-04-28 Alan Modra <amodra@bigpond.net.au>
12630
12631 PR middle-end/27260
12632 * builtins.c (expand_builtin_memset): Expand val in original mode.
12633
f5c68723 126342006-04-27 Eric Christopher <echristo@apple.com>
12635
12636 * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
12637 with #ifndef/#endif.
12638 * config/darwin-c.c (darwin_ms_struct): New.
12639 (darwin_pragma_ms_struct): Ditto.
12640 (darwin_set_default_type_attributes): Ditto.
12641 * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
12642 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
12643 Register ms_struct pragma.
12644 * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
12645 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
12646 * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
12647 darwin_set_default_type_attributes if TARGET_MACHO.
12648
09aca5bc 126492006-04-27 Andrew MacLeod <amacleod@redhat.com>
12650
12651 PR tree-optimization/26854
12652 * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
12653 * doc/tree-ssa.texi: Update immuse iterator documentation.
12654 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
12655 * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
12656 * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
12657 first_safe_imm_use, next_safe_imm_use): Remove.
12658 (end_imm_use_stmt_p): New. Check for end of immuse stmt traversal.
12659 (end_imm_use_stmt_traverse): New. Terminate immuse stmt traversal.
12660 (move_use_after_head): New. Helper function to sort immuses in a stmt.
12661 (link_use_stmts_after): New. Link all immuses in a stmt consescutively.
12662 (first_imm_use_stmt): New. Get first stmt in an immuse list.
12663 (next_imm_use_stmt): New. Get next stmt in an immuse list.
12664 (first_imm_use_on_stmt): New. Get first immuse on a stmt.
12665 (end_imm_use_on_stmt_p): New. Check for end of immuses on a stmt.
12666 (next_imm_use_on_stmt): New. Move to next immuse on a stmt.
12667 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
12668 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
12669 (perfect_nestify): Use new iterator.
f5c68723 12670 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
09aca5bc 12671 iterator.
12672 * tree-flow.h (struct immediate_use_iterator_d): Add comments.
12673 (next_imm_name): New field in struct immediate_use_iterator_d.
12674 (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
f5c68723 12675 (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
09aca5bc 12676 FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
12677 * tree-cfg.c (replace_uses_by): Use new iterator.
12678 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
12679 * tree-ssa-operands.c (correct_use_link): Remove.
12680 (finalize_ssa_use_ops): No longer call correct_use_link.
12681
742f0f02 126822006-04-27 Stuart Hastings <stuart@apple.com>
12683
12684 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
12685 * config/t-darwin (crt3.o): Use it.
12686 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
12687 'pmode', use Pmode instead of SImode for SYMBOL_REF.
12688 * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
12689 call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
12690 call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
12691 support.
f5c68723 12692
17af021d 126932006-04-27 Roger Sayle <roger@eyesopen.com>
12694
12695 * expmed.c (store_fixed_bit_field): If we're not optimizing for
12696 size, force the intermediate into a new pseudo rather instead of
12697 performing both a bitwise AND and a bitwise IOR in memory.
12698
0ed224e1 126992006-04-27 Richard Guenther <rguenther@suse.de>
12700
12701 PR rtl-optimization/26685
12702 * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
12703 this one "max-flow-memory-locations".
12704
82086091 127052006-04-27 Richard Guenther <rguenther@suse.de>
12706
12707 PR tree-optimization/25148
12708 * tree-vrp.c (compare_values): Remove code dealing with
12709 comparisons against type min/max value. Honour overflow
12710 and negative constants in code dealing with comparisons
12711 of plus and minus expressions.
12712 (value_inside_range): Use fold_binary with LE_EXPR and
12713 GE_EXPR rather than compare_values.
12714
aaaa94f9 127152006-04-27 Dirk Mueller <dmueller@suse.de>
12716
12717 * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
12718 prototype for SSE.
12719
7d58d5ef 127202006-04-26 Kenneth Zadeck <zadeck@naturalbridge.com>
12721
12722 * basic-block.h (safe_insert_insn_on_edge): Removed.
12723 * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
12724
91bc4142 127252006-04-26 David Edelsohn <edelsohn@gnu.org>
12726 Paolo Bonzini <bonzini@gnu.org>
12727
12728 PR middle-end/27282
12729 * combine.c (simplify_and_const_int_1): Use gen_int_mode.
12730 (simplify_and_const_int): Same.
12731
e5af536b 127322006-04-26 Aldy Hernandez <aldyh@redhat.com>
12733
522701ef 12734 * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
e5af536b 12735
f77459c5 127362006-04-26 Jakub Jelinek <jakub@redhat.com>
12737
d91321f0 12738 PR c/26171
12739 * cgraph.c (cgraph_varpool_finalize_decl): Don't call
12740 cgraph_varpool_assemble_pending_decls if -fopenmp, unless
12741 cgraph_global_info_ready.
12742
5f3cc051 12743 PR middle-end/26913
12744 * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
12745
1c59d5a8 12746 PR c/25996
12747 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
12748 either decl or init is error_mark_node.
12749
f77459c5 12750 PR middle-end/25989
12751 * tree-flow.h (struct omp_region): Add sched_kind.
12752 * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
12753 instead of extracting omp for data.
12754 (expand_omp_for): Save extracted sched_kind.
12755
e051aa14 127562006-04-25 Roger Sayle <roger@eyesopen.com>
12757
12758 * expmed.c (store_bit_field): Also check whether the bitsize is
12759 valid for the machine's "insv" instruction before moving the
12760 target into a pseudo for use with the insv.
12761 * config/i386/predicates.md (const8_operand): New predicate.
12762 * config/i386/i386.md (extv, extzv, insv): Use the new
12763 const8_operand predicate where appropriate.
12764
964f666a 127652006-04-25 DJ Delorie <dj@redhat.com>
12766
12767 * doc/install.texi (Specific): Clarify that this is not a list of
12768 supported hosts or targets.
12769
342baf8c 127702006-04-25 Richard Sandiford <richard@codesourcery.com>
12771
12772 PR rtl-optimization/26725
12773 * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
12774 block's BB_DIRTY flag.
12775
08365969 127762006-04-25 Geoffrey Keating <geoffk@apple.com>
12777
2fa2456e 12778 * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
12779 are no branches.
12780
08365969 12781 * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
12782 to print an integer.
12783
d5a2a489 127842006-04-25 David Edelsohn <edelsohn@gnu.org>
12785
12786 * varasm.c (align_variable): New function.
12787 (get_block_for_decl): Apply align_variable to DECL before
12788 calculating section information.
12789 (assemble_variable): Split out alignment computation.
12790
217d3a24 127912006-04-25 Andreas Krebbel <krebbel1@de.ibm.com>
12792
12793 * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
12794 machines.
12795
0bdbecff 127962006-04-25 Bernd Schmidt <bernd.schmidt@analog.com>
12797
12798 * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
12799 MODE_PARTIAL_INT mode.
12800 * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
12801 * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
12802 for CONST_INTs.
12803 (hard_regno_mode_ok): V2PDImode is ok for accumulators.
12804 * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
12805 V2PDImode.
12806 * config/bfin/predicates.md (const01_operand, vec_shift_operand):
12807 New predicates.
12808 * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
12809 New constants.
12810 (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
12811 MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
12812 MACFLAG_IH): Likewise.
12813 (movstricthi_1): Renamed from "*movstricthi".
12814 (load_accumulator, load_accumulator_pair, movsi_insv, insv,
12815 ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
12816 abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
12817 movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
12818 movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
12819 movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
12820 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
12821 sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
12822 addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
12823 mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
12824 ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
12825 flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
12826 flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
12827 flag_macv2hi_parts, flag_macv2hi_parts_acconly,
12828 flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
12829
280f1f24 12830 * doc/rtl.texi (ss_ashift): Improve wording.
12831
cd04bce0 128322006-04-24 Geoffrey Keating <geoffk@apple.com>
12833
12834 * dwarf2out.c (verify_marks_clear): New.
12835 (prune_unused_types): Call verify_marks_clear initially, not
12836 prune_unmark_dies.
12837
719ee5e5 128382006-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
12839
12840 * rtl.def (SS_ASHIFT, SS_NEG): New codes.
12841 * doc/rtl.texi: Document them.
12842 * simplify-rtx.c (simplify_unary_operation,
12843 simplify_binary_operation_1): Don't abort when we see them.
12844
2e7c8216 128452006-04-24 Mark Mitchell <mark@codesourcery.com>
12846
12847 Revert:
12848 2006-04-23 Mark Mitchell <mark@codesourcery.com>
12849 * configure.ac: Completely disregard languages that are not
12850 enabled.
12851 * configure: Regenerated.
12852
e4a492cd 128532006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
12854 Richard Guenther <rguenther@suse.de>
12855
12856 PR tree-optimization/27236
12857 * tree-inline.c (copy_body_r): Make sure to copy
12858 TREE_THIS_VOLATILE flag.
12859
f3640b8a 128602006-04-24 Richard Guenther <rguenther@suse.de>
12861
12862 PR middle-end/26869
12863 * tree-complex.c (update_parameter_components): Don't handle
12864 unused parameters which have no default def.
12865
1ab8c36e 128662006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
12867 Richard Guenther <rguenther@suse.de>
12868
12869 PR tree-optimization/27218
12870 * tree-inline.c (expand_call_inline): Strip useless type
12871 conversions for the return slot address.
12872
677144a0 128732006-04-24 Richard Guenther <rguenther@suse.de>
12874
12875 * cfgloop.h (struct loops): Remove unused field array. Reorder
12876 state after num.
12877 (LOOP_PREFETCH): Remove.
12878
7d075fc4 128792006-04-24 Richard Guenther <rguenther@suse.de>
12880
12881 PR tree-optimization/22525
12882 * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
12883 variable, adjust types of generated expressions.
12884
8de62358 128852006-04-23 H.J. Lu <hongjiu.lu@intel.com>
12886
12887 * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
12888 (tree-vect-patterns.o): Likewise.
12889 (jump.o): Likewise.
12890 (cselib.o): Likewise.
12891 (loop-doloop.o): Likewise.
12892 (regclass.o): Likewise.
12893 (reload1.o): Likewise.
12894 (explow.o): Replace target.h with $(TARGET_H).
12895 (ipa-prop.o): Likewise.
12896 (ipa-cp.o): Likewise.
12897 (ipa-inline.o): Likewise.
12898 (reorg.o): Likewise.
12899 (reg-stack.o): Likewise.
12900
431abd88 129012006-04-23 Eric Botcazou <ebotcazou@adacore.com>
12902
12903 * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
12904
c0e47fd4 129052006-04-23 Mark Mitchell <mark@codesourcery.com>
12906
2e7c8216 12907 * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
12908
12909 * configure.ac: Completely disregard languages that are not
12910 enabled.
12911 * configure: Regenerated.
12912
c0e47fd4 12913 PR c++/26534
12914 * c-common.h (c_build_bitfield_integer_type): Declare.
12915 * c-decl.c (c_build_bitfield_integer_type): Move to ...
12916 * c-common.c (c_build_bitfield_integer_type): ... here.
12917
aeaccda9 129182006-04-23 Roger Sayle <roger@eyesopen.com>
12919
12920 PR target/21283
12921 * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
12922 a SImode SUBREG of a floating point register after no_new_pseudos.
12923
e9daf218 129242006-04-23 Roger Sayle <roger@eyesopen.com>
12925
12926 * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
12927 identify potentially eliminable registers to additionally catch
12928 VIRTUAL_INCOMING_ARGS_REGNUM.
12929 (addsi3): Update the conditions on when to use addsi_small_int.
12930
3688a7ee 129312006-04-23 Roger Sayle <roger@eyesopen.com>
12932
12933 PR target/16641
12934 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
12935 STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
12936 rtx to stack_pointer_rtx or frame_pointer_rtx directly.
12937
20efd591 129382006-04-23 Eric Botcazou <ebotcazou@adacore.com>
12939
12940 * fold-const.c (range_predecessor): Use operand_equal_p
12941 as the predicate for equality.
12942 (range_successor): Likewise.
12943
07499df0 129442006-04-22 Kazu Hirata <kazu@codesourcery.com>
12945
12946 Revert:
12947 * config/soft-fp/op-common.h: Fix a typo.
12948
c1d36cca 129492006-04-22 Frank Ch. Eigler <fche@redhat.com>
12950
12951 PR libmudflap/26864
12952 * common.opt (flag_mudflap_threads): Overload flag_mudflap.
12953 * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
12954
4562961a 129552006-04-22 Kazu Hirata <kazu@codesourcery.com>
12956
12957 * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
12958 Fix comment typos.
12959 * doc/tm.texi: Fix a typo.
12960
958656b7 129612006-04-21 Geoffrey Keating <geoffk@apple.com>
12962
12963 * dwarf2out.c (struct die_struct): Document that die_sib makes
12964 a circular linked list.
12965 (FOR_EACH_CHILD): New.
12966 (reverse_die_lists): Delete.
12967 (reverse_all_dies): Delete.
12968 (add_dwarf_attr): Correct documentation.
12969 (remove_child_with_prev): New.
12970 (remove_child_TAG): Update for change to die_struct, use
12971 remove_child_with_prev.
12972 (add_child_die): Update for change to die_struct.
12973 (splice_child_die): Use remove_child_with_prev and add_child_die.
12974 (print_die): Use FOR_EACH_CHILD.
12975 (die_checksum): Likewise.
12976 (assign_symbol_names): Likewise.
12977 (output_location_lists): Likewise.
12978 (build_abbrev_table): Likewise.
12979 (calc_die_sizes): Likewise.
12980 (mark_dies): Likewise.
12981 (unmark_dies): Likewise.
12982 (unmark_all_dies): Likewise.
12983 (output_die): Likewise.
12984 (prune_unused_types_mark): Likewise.
12985 (prune_unused_types_walk): Likewise.
12986 (same_die_p): Update for change to die_struct.
12987 (break_out_includes): Likewise.
12988 (prune_unused_types_prune): Likewise.
12989 (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
12990 (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
12991 it's already clear.
12992 (dwarf2out_finish): Don't call reverse_all_dies.
12993
d07b61a9 129942006-04-21 Eric Christopher <echristo@apple.com>
12995
12996 * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
12997 in comments and function names.
12998
09d2b71a 129992006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
13000
b5a68e6b 13001 PR c/25875
13002 * c-typeck.c (digest_init): Robustify.
13003
09d2b71a 13004 * c-typeck.c (pop_init_level): Simplify.
13005
388c75b0 130062006-04-21 Steve Ellcey <sje@cup.hp.com>
13007
13008 * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
13009
7f5997af 130102006-04-21 Paul Brook <paul@codesourcery.com>
13011
13012 * config/arm/arm.c (arm_override_options): Error on iWMMXt and
13013 hardware floating point.
13014
89f662f5 130152006-04-21 David Edelsohn <edelsohn@gnu.org>
13016
13017 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
13018 NON_FLOAT_REGS.
13019
0abe9a12 130202006-04-21 Nick Clifton <nickc@redhat.com>
13021
13022 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
13023 OPT_EXTRA_PARTS.
13024
139699ff 130252006-04-21 Alan Modra <amodra@bigpond.net.au>
13026
13027 PR target/27230
13028 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
13029 C++ lang type in traceback table for Objective-C++.
13030
13031 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
13032
d605c7ef 130332006-04-20 H.J. Lu <hongjiu.lu@intel.com>
13034
13035 * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
13036
7ac1fd6d 130372006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
13038
13039 PR mudflap/26789
13040 * tree-mudflap.c (mudflap_finish_file): Skip function when there
13041 were errors. Remove check for erroneous objects.
13042
72e3ec84 130432006-04-20 Jeff Law <law@redhat.com>
13044
13045 PR tree-optimization/26854
13046 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
13047 checking for zero or one use.
13048 * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
13049 * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
13050 * tree-ssa-reassoc.c (negate_value): Similarly.
13051 (reassociate_bb): Similarly.
13052
e259be19 130532006-04-20 Jakub Jelinek <jakub@redhat.com>
13054
db4f6513 13055 PR C/27558
e259be19 13056 * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
13057 TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
13058 than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
13059
af5c6f1d 130602006-04-20 Alan Modra <amodra@bigpond.net.au>
13061
13062 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
13063 fp regs if the last fp arg doesn't fit in regs.
13064
f76542c7 130652006-04-20 Kaz Kojima <kkojima@gcc.gnu.org>
13066
13067 PR target/27182
13068 * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
13069 that the last insn has the REG_INC note.
13070
f6cf83a8 130712006-04-19 Carlos O'Donell <carlos@codesourcery.com>
13072 Nathan Sidwell <nathan@codesourcery.com>
13073
13074 PR c/26774
d07b61a9 13075 * stor-layout.c (update_alignment_for_field): Do not align
f6cf83a8 13076 ERROR_MARK nodes.
13077 (place_union_field): Place union field at the start of the union.
13078 (place_field): Move ERROR_MARK check later, and use the current
13079 allocation position to maintain monotonicity.
13080
a6e6c89a 130812006-04-19 Zdenek Dvorak <dvorakz@suse.cz>
13082
13083 * dominance.c: Include timevar.h.
13084 (calculate_dominance_info): Use TV_DOMINANCE.
13085 * timevar.def (TV_DOMINANCE): New timevar.
13086 * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
13087
6746fc82 130882006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
13089
9e879e2e 13090 PR rtl-optimization/14261
6746fc82 13091 * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
13092 move would be an INSV insn.
d07b61a9 13093 (noce_process_if_block): Don't optimize if the destination is a
6746fc82 13094 ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
13095
87bc9927 130962006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
13097
13098 * config/s390/s390.md: Add comments with the instructions emitted
13099 by an insn pattern if macros are used.
13100
8af0edf2 131012006-04-19 Alan Modra <amodra@bigpond.net.au>
13102
13103 PR rtl-optimization/26026
13104 * fold-const.c (fold_binary): Optimize div and mod where the divisor
13105 is a known power of two shifted left a variable amount.
13106
20f220a9 131072006-04-18 Geoffrey Keating <geoffk@apple.com>
13108
13109 * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
13110 to hash table twice when the debug_str section has SECTION_MERGE.
13111
b8886216 131122006-04-18 Joseph S. Myers <joseph@codesourcery.com>
13113
13114 * config/soft-fp: New directory. From glibc.
13115 * config/soft-fp/t-softfp: New.
13116 * config/soft-fp/README: New.
13117 * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
13118 * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
13119 (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
13120 (LIBGCC_DEPS): Add $(SFP_MACHINE).
13121 * config.gcc: Use rs6000/t-fprules-fpbit or
13122 rs6000/t-fprules-softfp and soft-fp/t-softfp together with
13123 rs6000/t-fprules.
13124 * config/rs6000/sfp-machine.h: New. Based on glibc.
13125 * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
13126 New.
13127 * config/rs6000/t-fprules: Remove fp-bit rules.
13128 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
13129 * config/rs6000/t-linux64: Likewise. Remove duplicates from
13130 LIB2FUNCS_EXTRA. Remove fp-bit rules.
13131 (softfp_wrap_start, softfp_wrap_end): New.
13132
c238c203 131332006-04-18 DJ Delorie <dj@redhat.com>
13134
13135 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
13136
bc52acac 131372006-04-18 Devang Patel <dpatel@apple.com>
13138
13139 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
d07b61a9 13140
f01438fd 131412006-04-18 Nick Clifton <nickc@redhat.com>
13142
13143 * config/sh/t-symbian: Add rule to build sh-c.o
13144 * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
13145 of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
13146 (sh_symbian_encode_section_info): Likewise.
13147
2694880e 131482006-04-18 Andreas Krebbel <krebbel1@de.ibm.com>
13149
d07b61a9 13150 * builtins.c (expand_builtin_strcmp): Cover label definition of
2694880e 13151 do_libcall with HAVE_cmpstrnsi.
13152
84aacb40 131532006-04-18 Kazu Hirata <kazu@codesourcery.com>
13154
13155 * function.c (temp_slots_at_level, max_slot_level): Use VEC
13156 instead of VARRAY.
13157 * function.h (temp_slot_p): New.
13158 (function): Change the type of x_used_temp_slots to
13159 VEC(temp_slot_p,gc) *.
13160
d2024693 131612006-04-18 Nick Clifton <nickc@redhat.com>
13162
53315a0c 13163 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
13164 flag_strength_reduce.
13165
d2024693 13166 * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
13167
0e820f3d 131682006-04-18 Paolo Bonzini <bonzini@gnu.org>
13169
522701ef 13170 PR target/27117
0e820f3d 13171
13172 Partial revert of revision 112637
13173 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
13174 Dale Johannesen <dalej@apple.com>
13175
13176 PR target/19653
13177 * regclass.c (struct reg_pref): Update documentation.
13178 (regclass): Set prefclass to NO_REGS if memory is the best option.
13179 (record_reg_classes): Cope with a prefclass set to NO_REGS.
13180
b614a751 131812006-04-18 Paolo Bonzini <bonzini@gnu.org>
13182
522701ef 13183 PR tree-optimization/26821
13184 * tree-ssa-math-opts.c (get_constant_one): New.
13185 (insert_reciprocals): Use it.
b614a751 13186
b0aa6b33 131872006-04-17 Geoffrey Keating <geoffk@apple.com>
13188
13189 * dwarf2out.c (free_AT): Delete.
13190 (remove_AT): Update string ref counts.
13191 (remove_child_TAG): Don't call free_die.
13192 (free_die): Delete.
13193 (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
13194 or DW_TAG_GNU_EINCL.
13195 (prune_unused_types_walk_attribs): Reset string refcounts.
13196 (prune_unused_types_update_strings): New.
13197 (prune_unused_types_prune): Don't make unnecessary stores. Don't
13198 call free_die. Do call prune_unused_types_update_strings.
13199 (prune_unused_types): Empty debug_str_hash.
13200
8f3e551a 132012006-04-17 Roger Sayle <roger@eyesopen.com>
13202
13203 * expr.c (expand_assignment): Optimize away no-op moves where the
13204 source and destination are equal and have no side-effects.
13205
b870fa03 132062006-04-17 Richard Guenther <rguenther@suse.de>
13207
13208 PR target/26826
13209 * reload.c (push_reload): Guard calls to get_secondary_mem
13210 for memory subregs.
13211
980f3285 132122006-04-16 Kazu Hirata <kazu@codesourcery.com>
13213
13214 * alias.c (reg_base_value, old_reg_base_value): Change the
13215 type to VEC(rtx,gc) *.
13216 (REG_BASE_VALUE, find_base_value, record_set,
13217 init_alias_analysis): Use VEC instead of VARRAY.
13218
8b435339 13219 * alias.c (alias_sets): Change the type to
13220 VEC(alias_set_entry,gc) *.
13221 (get_alias_set_entry, new_alias_set, record_alias_subset): Use
13222 VEC instead of VARRAY.
13223 (last_alias_set): Remove.
13224
4460a647 13225 * cgraph.h (cgraph_edge_p): New.
13226 Update the prototype of cgraph_function_versioning.
13227 * cgraphunit.c (cgraph_copy_node_for_versioning,
13228 cgraph_function_versioning): Use VEC instead of VARRAY.
13229 * ipa-cp.c (ipcp_insert_stage): Likewise.
13230
a0d17866 132312006-04-16 Roger Sayle <roger@eyesopen.com>
13232
13233 PR target/26961
13234 * fold-const.c (fold_ternary): When converting "A ? B : C" into either
13235 "A op B" or "A op C", we may need to convert A to the type of B and C.
13236
4956440a 132372006-04-16 Adam Nemet <anemet@caviumnetworks.com>
13238
13239 * target.h (struct gcc_target): Add mode_rep_extended.
13240 * rtlanal.c (num_sign_bit_copies_in_rep): New global.
13241 (init_num_sign_bit_copies_in_rep): Initialize it using
13242 mode_rep_extended.
13243 (truncate_to_mode): Use it.
13244 (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
13245 * targhooks.h (default_mode_rep_extended): Declare it.
13246 * targhooks.c (default_mode_rep_extended): Define it.
13247 * target-def.h (TARGET_MODE_REP_EXTENDED): New macro. Default to
13248 default_mode_rep_extended.
13249 (TARGET_INITIALIZER): Include it.
13250 * doc/tm.texi (Misc): Document it.
13251 * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
13252 (mips_truncated_to_mode): New function.
13253
3220d3c5 132542006-04-16 Roger Sayle <roger@eyesopen.com>
13255
13256 PR middle-end/25474
13257 * expr.c (compress_float_constant): Copy the narrow constant into
13258 a new pseudo before extending it to its final width.
13259
8dfacec0 132602006-04-16 Roger Sayle <roger@eyesopen.com>
13261 Andrew Pinski <pinskia@gcc.gnu.org>
13262 Dale Johannesen <dalej@apple.com>
13263
13264 PR target/24076
13265 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
13266 special case code to implement V8HImode and V16QImode with SSE2.
13267
aeecf0de 132682006-04-15 Roger Sayle <roger@eyesopen.com>
13269
13270 * config/i386/i386.c (ix86_va_start): Ensure all integer constant
13271 trees are constructed with a suitable tree type.
13272
ff674908 132732006-04-15 Roger Sayle <roger@eyesopen.com>
13274
13275 * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
13276 (integer_onep): Likewise.
13277 (integer_all_onesp): Likewise.
13278 (integer_pow2p): Likewise.
13279 (integer_nonzerop): Likewise.
13280 (real_zerop): Likewise.
13281 (real_onep): Likewise.
13282 (real_twop): Likewise.
13283 (real_minus_onep): Likewise.
13284 (int_size_in_bytes): Likewise.
13285 (host_integerp): Likewise.
13286
d961ae3a 132872006-04-15 Kazu Hirata <kazu@codesourcery.com>
13288
13289 * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
13290 jump.c, mips-tfile.c, omp-low.c, sched-int.h,
13291 tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
13292
b332f942 13293 * tree-ssa-structalias.h (alias_info): Remove num_references.
13294
d9e3874e 132952006-04-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13296
13297 * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
13298 (output_bvb patterns): Likewise.
13299 * pa.c (output_bb): Use 'bb' insn for long branch case.
13300 (output_bvb): Likewise use '{bvb|bb}' for long branch case.
13301 (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
13302 1. Correct length operand for alternatives 1 and 2.
13303 (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
13304 1, 2 and 3. Correct length operand for alternatives 1, 2 and 3.
13305
caa1b5c9 133062006-04-14 Roger Sayle <roger@eyesopen.com>
13307
13308 * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
13309 is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
13310 were accidentally reverted by r112959.
13311
6c105785 133122006-04-15 Jakub Jelinek <jakub@redhat.com>
13313
13314 PR middle-end/26823
13315 * except.h (eh_region_outermost): New prototype.
13316 * except.c (eh_region_outermost): New function.
13317 * tree-cfg.c (find_outermost_region_in_block): Use it.
13318
28b69ba9 133192006-04-14 Kazu Hirata <kazu@codesourcery.com>
13320
13321 * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
13322 of VARRAY.
13323 * reload1.c (reg_equiv_memory_loc_varray): Rename to
13324 reg_equiv_memory_loc_vec. Change the type to VEC(rtx,gc) *.
13325 (init_reload, reload): Use VEC instead of VARRAY.
13326 * reload.h: Update the prototype for
13327 reg_equiv_memory_loc_varray.
13328
fee7cdb4 133292006-04-14 Alexey Starovoytov <alexey.starovoytov@sun.com>
522701ef 13330 Eric Botcazou <ebotcazou@libertysurf.fr>
fee7cdb4 13331
13332 * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
13333 register save area.
13334
d4c690af 133352005-04-13 Uros Bizjak <uros@kss-loka.si>
13336
13337 PR middle-end/27134
13338 * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
13339 to expand fallback builtin function call.
13340
6b961939 133412006-04-14 Alan Modra <amodra@bigpond.net.au>
13342
13343 PR middle-end/27095
13344 * builtins.c: (expand_builtin_memset): Stabilize args before expansion
13345 and emit libcall here in case the builtin fails.
13346 (expand_builtin_strcmp): Always emit the libcall here on failure.
13347
d14dbec5 133482006-04-14 Kazu Hirata <kazu@codesourcery.com>
13349
13350 * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
13351 * flow.c (reg_n_info): Change the type to
13352 VEC(reg_info_p,heap) *.
13353 * regclass.c (allocate_reg_info, free_reg_info): Use VEC
13354 instead of VARRAY.
13355 * regs.h (reg_info_p): New.
13356 (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
13357 REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
13358 REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
13359 instead of VARRAY.
13360
23df5e5b 133612006-04-13 Eric Botcazou <ebotcazou@adacore.com>
13362
13363 * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
13364 defaulting to 100.
13365 * params.h (MAX_SCHED_READY_INSNS): New macro.
13366 * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
13367 past MAX_SCHED_READY_INSNS during the first scheduling pass.
13368 (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
13369 the ready list for 1 cycle during the first scheduling pass.
13370 * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
13371
61e47ac8 133722006-04-13 Richard Henderson <rth@redhat.com>
13373
caa1b5c9 13374 PR libgomp/26651
61e47ac8 13375 * gimple-low.c (lower_omp_directive): Remove dead code.
13376 (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
13377 * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
13378 * omp-low.c (struct omp_region): Move to tree-flow.h.
13379 (root_omp_region): Export.
13380 (omp_regions, lookup_omp_region): Remove.
13381 (determine_parallel_type): Update for struct omp_region changes.
13382 (dump_omp_region): Dump regions with block numbers.
13383 (new_omp_region): Take type and block instead of stmt; malloc
13384 instead of ggc.
13385 (free_omp_region_1, free_omp_regions): New.
13386 (expand_parallel_call): Take entry_stmt as argument; update for
13387 changes to omp_region.
13388 (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
13389 (remove_exit_barriers): New.
13390 (expand_omp_parallel): Update for struct omp_region changes.
13391 (expand_omp_synch): Likewise.
13392 (expand_omp): Likewise.
13393 (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
13394 (expand_omp_for_static_chunk): Likewise.
13395 (expand_omp_for): Likewise.
13396 (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
13397 (expand_omp_sections): Similarly, with GOMP_sections_end.
13398 (expand_omp_single): New.
13399 (build_omp_regions_1): Update for OMP_CONTINUE.
13400 (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
13401 (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
13402 OMP_SECTIONS_SECTIONS.
13403 (lower_omp_single_simple): Don't emit barrier here.
13404 (lower_omp_single_copy): Likewise.
13405 (lower_omp_single): Fix bindings, and lower to straightline now.
13406 (lower_omp_master, lower_omp_ordered): Likewise.
13407 (lower_omp_critical): Likewise.
13408 (lower_omp_for): Likewise. Emit OMP_CONTINUE.
13409 * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
13410 omp edges, free it afterward.
13411 (make_omp_sections_edges): Remove.
13412 (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
13413 (move_stmt_r): Handle OMP_CONTINUE.
d07b61a9 13414 * tree-flow.h (struct omp_region): Move from omp-low.c. Switch
61e47ac8 13415 statement pointers to basic blocks. Add type member.
13416 (root_omp_region, new_omp_region, free_omp_regions): Declare.
13417 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
13418 * tree-inline.c (estimate_num_insns_1): Likewise.
13419 * tree-pretty-print.c (dump_generic_node): Likewise.
13420 * tree-ssa-operands.c (get_expr_operands): Likewise.
13421 * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
13422 (OMP_RETURN): Rename from OMP_RETURN_EXPR.
13423 (OMP_CONTINUE): New.
13424 * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
13425 (OMP_SECTIONS_SECTIONS): Remove.
13426 (OMP_SECTION_LAST): New.
13427 (OMP_RETURN_NOWAIT): New.
13428
3fa15ed1 134292006-04-13 Roger Sayle <roger@eyesopen.com>
13430
13431 * fold-const.c (native_encode_vector, native_interpret_real):
13432 Correct obvious mistakes in the previous check-in.
13433
5f4092ed 134342006-04-13 Roger Sayle <roger@eyesopen.com>
13435
13436 * fold-const.c (native_encode_expr): New function to encode
13437 the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
13438 or VECTOR_CST into a specified buffer.
13439 (native_encode_int): New function.
13440 (native_encode_real): New function.
13441 (native_encode_complex): New function.
13442 (native_encode_vector): New function.
13443 (native_interpret_expr): Inverse of native_encode_expr to convert
13444 a target representation into an INTEGER_CST, REAL_CST etc...
13445 (native_interpret_int): New function.
13446 (native_interpret_real): New function.
13447 (native_interpret_complex): New function.
13448 (native_interpret_vector): New function.
13449 (fold_view_convert_expr): New function to constant fold/evaluate
13450 a VIEW_CONVERT_EXPR of a suitable constant expression.
13451 (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
13452 Change call of build1 to fold_build1 when constructing a
13453 VIEW_CONVERT_EXPR.
13454
8631d1da 134552006-04-13 Paolo Bonzini <bonzini@gnu.org>
13456 Ulrich Weigand <uweigand@de.ibm.com>
13457
13458 PR target/27006
13459 * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
13460 to be even.
13461
9522889c 134622006-04-13 Alan Modra <amodra@bigpond.net.au>
13463
13464 PR target/26459
13465 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
13466 optimize to lo_sum for DFmode if !TARGET_FPRS.
13467
4857cd31 134682006-04-12 Kazu Hirata <kazu@codesourcery.com>
13469
13470 * tree-ssa-alias.c (set_initial_properties, init_alias_info,
13471 delete_alias_info, compute_flow_sensitive_aliasing,
13472 group_aliases): Use VEC instead of VARRAY.
13473 * tree-ssa-structalias.c (update_alias_info): Likewise.
13474 * tree-ssa-structalias.h (alias_info): Change the type of
13475 processed_ptrs to VEC(tree,heap) *.
13476
2fa59365 134772006-04-12 J"orn Rennecke <joern.rennecke@st.com>
13478
13479 PR target/27060
522701ef 13480 * config/sh/lib1funcs.h: New file, broken out of:
13481 * config/sh/lib1funcs.asm.
13482 * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
2fa59365 13483 New macros.
13484 * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
522701ef 13485 * config/sh/lib1funcs-Os-4-200.asm: New file.
2fa59365 13486 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
13487 * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
13488 (EXTRA_MULTILIB_PARTS): Include it.
13489 ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
13490 ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
13491 * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
13492 * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
13493 TARGET_SH2.
13494
8c02312e 134952006-04-12 Kazu Hirata <kazu@codesourcery.com>
13496
13497 * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
13498 * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
13499 tpa_compact, root_var_init, type_var_init): Use VEC instead of
13500 VARRAY.
13501 * tree-ssa-live.h: Include vecprim.h.
13502 (tree_partition_associator_d): Change the type of
13503 first_partition to VEC(int,heap) *.
13504 (tpa_first_partition): Use VEC instead of VARRAY.
13505
c8327067 13506 * Makefile.in (GTFILES): Move functions.h after tree.h.
13507 * function.c (reset_block_changes, record_block_change,
13508 check_block_change, free_block_changes): Use VEC instead of
13509 VARRAY.
13510 * function.h (function): Change the type of
13511 ib_boundaries_block to VEC(tree,gc) *.
13512 * tree-inline.c (copy_cfg_body): Initialize
13513 ib_boundaries_block to NULL instead of (varray_type) 0.
13514
47e9d4ca 135152006-04-12 Roger Sayle <roger@eyesopen.com>
13516
13517 * expr.c (emit_group_store): Correct operand order in call to
13518 subreg_lowpart_offset. Always create paradoxical SUBREGs with
13519 a SUBREG_BYTE of zero.
13520
34806856 135212006-04-12 Richard Guenther <rguenther@suse.de>
13522
13523 * profile.c (compute_branch_probabilities): Remove code
13524 encapsulated in !ir_type (), which are remanents of the
13525 removed RTL profiling code.
13526 * rtl-profile.c: Remove.
13527
4e7cf9f8 135282006-04-12 Alan Modra <amodra@bigpond.net.au>
13529
13530 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
13531 magic NULL_RTX comment.
13532 (function_arg): Store entire fp arg to mem if any part should go
13533 on stack.
13534 (rs6000_arg_partial_bytes): Adjust for above change.
13535
4494ff1b 135362006-04-11 Roger Sayle <roger@eyesopen.com>
13537
13538 * dwarf2out.c (output_call_frame_info): Create debug_frame_section
13539 if it hasn't been initialized by dwarf2out_init.
13540
745c77d1 135412006-04-11 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
13542
13543 * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
13544 symbolic constants in branch patterns.
13545
7a37d50b 135462006-04-11 Roger Sayle <roger@eyesopen.com>
13547
13548 * caller-save.c: #include "addresses.h" after #include "tm_p.h".
13549
9ef5c93f 135502006-04-11 Richard Sandiford <richard@codesourcery.com>
13551
13552 PR rtl-optimization/27073
13553 * gcse.c (try_replace_reg): Revert last change. Continue to search
13554 for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
13555 on the former.
13556
a9b427d3 135572006-04-11 Eric Botcazou <ebotcazou@libertysurf.fr>
13558
13559 * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
13560 aggregate types other than record and union types.
13561 (function_arg): Likewise.
13562 (function_arg_pass_by_reference): In 64-bit mode, return 0 for
13563 small arrays.
13564 (function_value): In 64-bit mode, return objects that require it
13565 in FP registers.
13566
0a1cbfaa 135672006-04-11 Roger Sayle <roger@eyesopen.com>
13568
13569 * dwarf2out.c (premark_used_types): Remove problematic prototype.
13570
33238887 135712006-04-11 Jakub Jelinek <jakub@redhat.com>
13572
13573 * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
13574
e27ef468 135752006-04-03 Jeff Law <law@redhat.com>
13576
13577 PR/27087
13578 * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
13579 alias information too.
13580
a01acf14 135812006-04-10 Mike Frysinger <vapier@gentoo.org>
13582
cf8cdd54 13583 * Makefile.in (gcc-cross): Add $(exeext) to target name.
a01acf14 13584
f6e59711 135852006-04-10 Aldy Hernandez <aldyh@redhat.com>
13586
13587 PR/21391
13588 * dwarf2out.c (struct die_struct): Add die_perennial_p field.
13589 (premark_used_types_helper): New.
13590 (premark_used_types): New.
13591 (gen_subprogram_die): Call premark_used_types.
13592 (prune_unused_types_walk): Do not prune perennial dies.
13593 * function.c (used_types_insert): New.
13594 * function.h (struct function): Add used_types_hash field.
13595 (used_types_insert): Add prototype.
13596 * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
13597 * c-parser.c (c_parser_cast_expression): Save casted types in used
13598 types hash table.
13599
339ccd69 136002006-04-11 Mark Mitchell <mark@codesourcery.com>
13601
13602 PR target/26459
13603 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
13604 rs6000_explicit_options.float_gprs.
13605
0f0ff686 136062006-04-10 Roger Sayle <roger@eyesopen.com>
13607
13608 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
13609 from ix86_expand_vector_init_low_nonzero. Take an additional
13610 one_var argument indicating which element is non-zero. Support
13611 one_var != 0 for V4SFmode and V4SImode by permuting the result.
13612 (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
13613 with one_var instead of ix86_expand_vector_init_low_nonzero.
13614
05f3df98 136152006-04-10 Kazu Hirata <kazu@codesourcery.com>
13616
13617 * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
13618 tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
13619 global.o, cfglayout.o, lambda-code.o, reg-stack.o,
13620 build/genextract.o): Depend on vecprim.h.
13621 * cfglayout.c, df-problems.c, function.c, genextract.c,
13622 global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
13623 tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
13624 vecprim.h.
13625 * vecprim.h: New.
13626
6f56c055 136272006-04-10 Geoffrey Keating <geoffk@apple.com>
13628
13629 * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
13630 Declare VECs of this type.
13631 (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
13632 (remove_children): Delete.
13633 (add_dwarf_attr): Use VEC routines.
13634 (add_AT_flag): Update for changes to add_dwarf_attr.
13635 (add_AT_int): Likewise.
13636 (add_AT_unsigned): Likewise.
13637 (add_AT_long_long): Likewise.
13638 (add_AT_vec): Likewise.
13639 (add_AT_string): Likewise.
13640 (add_AT_die_ref): Likewise.
13641 (add_AT_fde_ref): Likewise.
13642 (add_AT_loc): Likewise.
13643 (add_AT_loc_list): Likewise.
13644 (add_AT_addr): Likewise.
13645 (add_AT_lbl_id): Likewise.
13646 (add_AT_lineptr): Likewise.
13647 (add_AT_macptr): Likewise.
13648 (add_AT_offset): Likewise.
13649 (add_AT_range_list): Likewise.
13650 (get_AT): Use VEC_iterate.
13651 (remove_AT): Use VEC_ordered_remove.
13652 (free_die): Fold remove_children into here; have it use VEC_iterate.
13653 (print_die): Use VEC_iterate on attrs.
13654 (reverse_die_lists): Don't reverse attr lists.
13655 (die_checksum): Use VEC_iterate on attrs.
13656 (same_die_p): Likewise.
13657 (output_location_lists): Likewise.
13658 (build_abbrev_table): Likewise.
13659 (size_of_die): Likewise.
13660 (unmark_all_dies): Likewise.
13661 (output_abbrev_section): Likewise.
13662 (output_die): Likewise.
13663 (prune_unused_types_walk_attribs): Likewise.
13664
0c7dcad0 136652006-04-10 Eric Botcazou <ebotcazou@libertysurf.fr>
13666
d7bbae2a 13667 * doc/install.texi (*-*-solaris2*): Point to the configure page.
0c7dcad0 13668
8462b107 136692006-04-10 Jakub Jelinek <jakub@redhat.com>
13670
13671 PR debug/27057
13672 * dwarf2out.c (is_symbol_die): Return true also for namespaces.
13673
1abf6b04 136742006-04-09 Roger Sayle <roger@eyesopen.com>
13675
13676 * expr.c (store_constructor): Don't bother clearing target if
13677 we're about to assign a vector to it using vec_init_optab.
13678
185ba02d 136792006-04-10 Daniel Berlin <dberlin@dberlin.org>
d07b61a9 13680
185ba02d 13681 * tree-ssa-alias.c (lhs_may_store_to): New function.
13682 (recalculate_used_alone): Handle LHS of calls.
13683
25e266ae 136842006-04-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13685
13686 PR target/27034
13687 PR target/26508
13688 * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
13689 * pa64-hpux.h (LIB_SPEC): Correct typo. Don't append milli.a.
13690 (LINK_GCC_C_SEQUENCE_SPEC): Define. Append milli.a here.
13691 (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
13692 (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
13693 (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
13694 section. Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
13695 stubs. Add ".align 8" directives before all ".dword" directives.
13696 (GTHREAD_USE_WEAK): Revise comment.
13697 (TARGET_ATTRIBUTE_WEAK): Define.
13698 * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
13699 dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
13700 * stublib.c: New file.
f26036bb 13701
13702 PR target/26743
13703 PR target/11254
13704 PR target/10274
13705 * pa.md (cbranch patterns): Revise arguments used in calls to
13706 output_cbranch, output_bb and output_bvd. Add long branch length
13707 attributes.
13708 (fbranch patterns): Handle long branches.
13709 (jump): Revise length check. Revise arguments for output_lbranch call.
13710 Add long branch length attributes.
13711 (decrement_and_branch_until_zero): Add long branch length attributes.
13712 (output_movb, output_parallel_addb and output_parallel_movb patterns):
13713 Likewise. Revise arguments for output_parallel_addb and
13714 output_parallel_movb calls.
13715 * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
13716 output_parallel_movb and output_parallel_addb): Update prototypes.
13717 * pa.c (output_cbranch): Revise arguments. Correct handling of
13718 nullification in long branches.
13719 (output_lbranch): Add new argument to control extraction of delay
13720 instruction.
13721 (output_bb): Handle long branches.
13722 (output_bvb, output_dbra, output_movb, output_parallel_movb,
13723 output_parallel_addb): Likewise.
13724
630a5fc0 137252006-04-09 Richard Sandiford <richard@codesourcery.com>
13726
13727 PR rtl-optimization/27073
13728 * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
13729 not REG_EQUIVs.
13730
cd904438 137312006-04-08 Daniel Berlin <dberlin@dberlin.org>
13732
13733 * tree.h (tree_memory_tag): Add old_used_alone.
13734 (SMT_OLD_USED_ALONE): New macro.
13735 * tree-ssa-alias.c (recalculate_used_alone): Stop
13736 marking things for renaming unnecessarily.
13737
9ca2c29a 137382006-04-08 Kazu Hirata <kazu@codesourcery.com>
13739
13740 * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
13741 config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
13742 config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
13743 haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
13744 sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
13745 tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
13746 tree-vect-patterns.c, tree-vrp.c: Fix comment typos. Follow
13747 spelling convensions.
13748 * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
13749 doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
13750 typos. Follow spelling conventions.
13751
87eb9cbf 137522006-04-07 DJ Delorie <dj@redhat.com>
13753
13754 * config/m32c/m32c.c (m32c_function_arg): Structures are always
13755 passed on the stack.
13756 (m32c_init_cumulative_args): When a function returns a structure,
13757 always pass the pointer to that return area on the stack.
13758 (m32c_function_arg_advance): Don't increment the parameter number
13759 if we're processing the returned structure pointer.
13760 (pushm_info): Reverse order of registers.
13761
05db596e 137622006-04-07 Sebastian Pop <pop@cri.ensmp.fr>
13763
13764 * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
13765 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
13766 number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
d07b61a9 13767 estimate_numbers_of_iterations_loop): Use build_int_cst instead of
05db596e 13768 build_int_cst_type.
13769 * tree-chrec.c (chrec_fold_multiply_poly_poly,
13770 chrec_fold_multiply): Same.
13771 * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
13772 force_expr_to_var_cost): Same.
13773 * tree-mudflap.c (mf_xform_derefs_1): Same.
13774 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
13775
fb73e487 137762006-04-07 David Edelsohn <edelsohn@gnu.org>
13777
13778 * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
13779 treat CONST_DOUBLE as INTVAL. and64_2_operands require an extra
13780 insn.
499f708c 13781
137822006-04-07 Jan Hubicka <jh@suse.cz>
13783
13784 * ipa-inline.c (cgraph_early_inlining): Collect garbage.
13785
6a491555 137862006-04-07 Richard Guenther <rguenther@suse.de>
13787
13788 PR tree-optimization/26135
13789 * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
13790 loads for store copy-prop.
13791 (copy_prop_visit_stmt): Likewise.
13792
137932006-04-05 Robert Millan <robertmh@gnu.org>
f3a35f6e 13794
522701ef 13795 * config/i386/linux.h: Add a comment to mark macros that are
f3a35f6e 13796 being overriden in config/k*bsd-gnu.h.
522701ef 13797 * config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
f3a35f6e 13798 DYNAMIC_LINKER.
522701ef 13799 * config/knetbsd-gnu.h: Ditto.
f3a35f6e 13800
0146470a 138012006-04-06 Jan Hubicka <jh@suse.cz>
13802
13803 PR profile/20815
13804 PR profile/26399
13805 * coverage.c (coverage_checksum_string): Reorganize loop to not read
13806 after buffer.
13807
03fd9d2c 138082006-04-06 Mike Stump <mrs@apple.com>
13809
13810 * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
13811 for HAVE_nonlocal_goto to be consistent.
13812 (expand_builtin_nonlocal_goto): Likewise.
13813 (expand_builtin_strcmp): Use #ifdef instead of #if
13814 for HAVE_cmpstrnsi to be consistent.
13815
2683d243 138162006-04-05 DJ Delorie <dj@redhat.com>
13817
13818 * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
13819 vs m32c.
13820
8f5efc80 138212006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
13822
13823 * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
13824 got-relative addressing for anything but SImode.
13825
dac20ee7 13826 * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
13827 even if the calling function doesn't modify them.
13828
eb30454d 138292006-04-05 Richard Guenther <rguenther@suse.de>
13830
13831 PR tree-optimization/26919
13832 * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
13833 to cgraph_estimate_size_after_inlining.
13834
7781f014 138352006-04-05 Alan Modra <amodra@bigpond.net.au>
13836
13837 * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
13838
a8c839ae 138392006-04-05 Sebastian Pop <pop@cri.ensmp.fr>
13840
13841 PR tree-optimization/26996
13842 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
13843 VECTOR_TYPE variables.
13844
25bf4cab 138452006-04-05 Richard Guenther <rguenther@suse.de>
13846
13847 PR tree-optimization/26763
13848 * fold-const.c (fold_comparison): Move folding of
13849 PTR + CST CMP PTR + CST ...
13850 (fold_binary): ... here. Fold only for EQ_EXPR and NE_EXPR.
13851
0779bef9 138522006-04-05 Gerald Pfeifer <gerald@pfeifer.com>
13853
13854 * doc/install.texi (Prerequisites): Refine some wording on
13855 bootstrapping and ksh.
13856 Move the version numbers of DejaGnu here from the testing section
13857 and fix casing of names.
13858 Fix markup and clarify wording for autogen requirements.
13859 Refer to GCJ instead of just java.
13860 Refer to SVN instead of CVS.
13861 Describe diffutils as useful instead of necessary.
13862 (Downloading the source): Refer to SVN instead of CVS.
13863 Adjust a link to our web site accordingly.
13864 (Configuration): Fix casing of Bison.
d07b61a9 13865 (Building): Refer to SVN instead of CVS.
0779bef9 13866 Fix a sentence on the use of Bison and remove duplicate (and
13867 incorrect) version number of Bison requirement.
13868 Remove one redundant list of packages needed for building.
13869 (Specific): Avoid reference to CVS.
13870
d5266769 138712006-04-04 Eric Christopher <echristo@apple.com>
13872
13873 * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
13874 (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
13875 (rs6000_handle_struct_attribute): New.
13876 (rs6000_ms_bitfield_layout_p): Ditto.
13877
9dc5f5cd 138782006-04-04 Geoffrey Keating <geoffk@apple.com>
13879
13880 * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
13881 NULL for dso parameter to atexit_common.
13882
d86ccd2c 138832006-04-04 Eric Christopher <echristo@apple.com>
13884
13885 * config/i386/i386.c (machopic_output_stub): Output \t
13886 between instructions and operands.
13887
bd16f775 138882006-04-04 David Edelsohn <edelsohn@gnu.org>
13889
13890 * config/rs6000/rs6000.c (num_insns_constant_wide): Change
13891 satisfies_constraint_[IL] to explicit tests on value.
13892
7c010d6a 138932006-04-04 Sebastian Pop <pop@cri.ensmp.fr>
13894
13895 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
13896 set_nb_iterations_in_loop): Use build_int_cst instead of
13897 build_int_cst_type.
13898 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
13899 build_int_cst instead of convert.
13900
d8c09ceb 139012006-04-04 Carlos O'Donell <carlos@codesourcery.com>
13902
13903 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
13904 new value 2 for incoming.
13905 * function.c (expand_function_start): Call struct_value_rtx
13906 with incoming as 2.
13907 * config/sparc/sparc.md: Comment updated_return.
13908 * config/sparc/sparc.opt: Add -mstd-struct-return option.
13909 * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
13910 struct return if sparc_std_struct_return and incoming is 2.
13911 (print_operand): Do not adjust return if
13912 sparc_std_struct_return.
13913
e3b560a6 139142006-04-04 Roger Sayle <roger@eyesopen.com>
13915
13916 * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
13917 convert in the middle-end.
13918 * expr.c (store_expr, store_constructor, get_inner_reference,
13919 expand_expr_real_1, string_constant, try_casesi, try_tablejump):
13920 Likewise.
13921 * tree.c (build_range_type): Likewise.
13922
0d53473f 139232006-04-04 Tom Tromey <tromey@redhat.com>
13924
13925 * doc/install.texi (Prerequisites): Mention jar.
13926
69e11d3c 139272006-04-04 Daniel Berlin <dberlin@dberlin.org>
13928
13929 * doc/tree-ssa.texi (Preserving the virtual ssa form): New
13930 subsection.
13931
85cc1e72 139322006-04-04 Matthias Klose <doko@debian.org>
13933
13934 * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
5e156a9d 13935
4bd32627 13936 PR bootstrap/26764
13937 PR bootstrap/27334
d4add8f3 13938 * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
13939 strings.
85cc1e72 13940
87ea783a 139412006-04-03 Geoffrey Keating <geoffk@apple.com>
13942
d86ccd2c 13943 * doc/extend.texi (Function Attributes): Rewrite visibility
8ab158f9 13944 attribute documentation.
13945 * doc/invoke.texi (C++ Dialect Options): Rewrite
13946 -fvisibility-inlines-hidden documentation to describe something
13947 entirely different, although in practise compatible.
2341a17e 13948 (Code Gen Options): Warn about system headers in -fvisibility=
8ab158f9 13949 documentation.
13950
87ea783a 13951 * doc/extend.texi (Other Builtins): Document that
13952 __builtin_nan is a compile-time constant only when its argument
13953 is valid.
13954
0f6d8eeb 139552006-04-03 Adam Nemet <anemet@caviumnetworks.com>
13956
13957 * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
13958 trying to remove TRUNCATE check if all bits outside the new mode
13959 are identical to the sign bit.
13960
d76551d9 139612006-04-03 Jeff Law <law@redhat.com>
13962
13963 * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
13964 and operand scanning in some common cases.
13965
9309b09c 139662006-04-03 Paolo Bonzini <bonzini@gnu.org>
897f76b2 13967 Dale Johannesen <dalej@apple.com>
13968
13969 PR target/19653
13970 * regclass.c (struct reg_pref): Update documentation.
13971 (regclass): Set prefclass to NO_REGS if memory is the best option.
13972 (record_reg_classes): Cope with a prefclass set to NO_REGS.
13973 * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
13974 into account. For non-registers, equate an empty preferred
13975 reload class to a `!' in the constraint; move the if clause to
13976 do so after those that reject the insn.
13977 (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
13978 return NO_REGS.
13979 (find_dummy_reload): Likewise.
13980 * doc/tm.texi (Register Classes): Document what it means
13981 if PREFERRED_*_RELOAD_CLASS return NO_REGS.
13982 * config/i386/i386.c (ix86_preferred_reload_class): Force
13983 using SSE registers (and return NO_REGS for floating-point
13984 constants) if math is done with SSE.
13985 (ix86_preferred_output_reload_class): New.
13986 * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
13987 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
13988 * config/i386/i386.md: Remove # register preferences.
13989
b92381b6 139902006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
13991
13992 PR bootstrap/26992
13993 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
13994 chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
13995 the type of nb_iter.
13996 (instantiate_parameters_1): Convert the operands before calling
13997 chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
13998 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
13999
535664e3 140002006-04-02 Roger Sayle <roger@eyesopen.com>
14001
14002 * builtins.c (dummy_object): Use build_int_cst instead of convert.
14003 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
14004 instead of convert.
14005 * dojump.c (do_jump): Likewise.
14006 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
14007 * gimplify.c (gimple_boolify, gimplify_init_constructor,
14008 gimplify_boolean_expr): Likewise.
14009 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14010 * varasm.c (array_size_for_constructor): Likewise.
14011 * tree-object-size.c (compute_object_offset): Likewise.
14012
4bd9981b 140132006-04-02 Roger Sayle <roger@eyesopen.com>
14014
14015 PR middle-end/26977
14016 * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
14017 NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
14018
55feb6fa 140192006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
14020
14021 PR tree-optimization/26939
14022 * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
14023
f84a688a 140242006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
14025
14026 * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
d86ccd2c 14027 at_stmt. Convert the type of operands before calling
f84a688a 14028 build_polynomial_chrec.
14029 (add_to_evolution): Pass an extra argument at_stmt. Adjust the call to
14030 add_to_evolution_1.
14031 (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
d86ccd2c 14032 (instantiate_parameters_1): Convert the type of operands before calling
f84a688a 14033 build_polynomial_chrec.
14034 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
14035 chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
14036 reset_evolution_in_loop): Insert asserts to check the types of the
14037 operands.
14038 (chrec_type): Moved...
14039 (eq_evolutions_p): Use operand_equal_p.
14040 * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
14041 the types of the operands.
14042 (chrec_type): ...here.
14043 * tree-data-ref.c (create_data_ref): Convert the operands before
14044 calling chrec_replace_initial_condition.
14045 (same_access_functions, analyze_subscript_affine_affine,
14046 analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
14047 (compute_subscript_distance, analyze_ziv_subscript,
14048 analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
14049 analyze_miv_subscript): Convert the operands before calling
14050 chrec_fold_minus or chrec_fold_plus.
14051
2af73e54 140522006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
14053
14054 * tree-data-ref.c (compute_all_dependences): Use a pointer to
14055 the dependence_relations vector.
14056 (compute_data_dependences_for_loop): Adjust call to
14057 compute_all_dependences.
14058
9315094f 140592006-04-01 Roger Sayle <roger@eyesopen.com>
14060 Richard Henderson <rth@redhat.com>
14061
14062 * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
14063 gimple_boolify on the condition before calling gimplify_expr.
14064
29bf9219 140652006-03-31 Bob Wilson <bob.wilson@acm.org>
14066
14067 * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
14068 to leaf_entry/leaf_return. Change leaf_entry to add 16 bytes to
14069 the frame size. Update to use the new macros.
14070 * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
14071 * config/xtensa/ieee754-df.S: Likewise.
14072
140732006-03-31 Richard Henderson <rth@redhat.com>
2a09b1df 14074
14075 * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
14076 (make_edges): ... here. Control fallthru creation with a local
14077 variable. Do not play with fake edges.
14078 (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
14079 (make_goto_expr_edges): Don't play with fake edges. Make for_call
14080 a boolean.
14081
04da8de9 140822006-04-01 Joseph S. Myers <joseph@codesourcery.com>
14083
14084 * dwarf2.h (DW64_CIE_ID): Define.
14085 * dwarf2out.c (DWARF_CIE_ID): Define.
14086 (output_call_frame_info): Output 0xffffffff before standard 8-byte
14087 length header. Use DWARF_CIE_ID.
14088 (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
14089 dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
14090
76915e72 140912006-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
14092
14093 * config/sh/linux-atomic.asm: New file.
14094 * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
14095
992bd98c 140962006-03-31 DJ Delorie <dj@redhat.com>
14097
14098 * config/m32c/cond.md: Set condition flags properly throughout.
14099 * config/m32c/minmax.md: Likewise.
14100 * config/m32c/prologue.md: Likewise.
14101 * config/m32c/bitops.md: Likewise.
14102 * config/m32c/muldiv.md: Likewise.
14103 * config/m32c/mov.md: Likewise.
14104 * config/m32c/addsub.md: Likewise.
14105 * config/m32c/m32c.md: Likewise.
14106 * config/m32c/jump.md: Likewise.
14107 * config/m32c/shift.md: Likewise.
14108
14109 * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
14110 conditionally output the pattern for this.
14111 * config/m32c/m32c.c (flags_needed_for_conditional): New.
14112 (m32c_compare_redundant): New.
14113 (m32c_output_compare): New.
14114 * config/m32c/m32c-protos.h (m32c_output_compare): New.
14115
14116 * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
14117 dest, not src. Allow other 4-byte modes.
14118
7599ef38 141192006-03-30 Denis Chertykov <denisc@overta.ru>
14120
14121 * doc/md.texi: Refer to avr/constraints.md instead of
14122 avr/avr.h.
14123
f25b36d2 141242006-03-30 Roger Sayle <roger@eyesopen.com>
14125
14126 * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
14127 signed vs. unsigned comparison failures on some hosts.
14128
dfec1c81 141292006-03-31 Alan Modra <amodra@bigpond.net.au>
14130
14ee7385 14131 PR target/26459
14132 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
14133 change to FLOAT_REGS.
14134
dfec1c81 14135 * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
14136 (rs6000_override_options): Use it.
14137 (rs6000_handle_option): Set it. Set rs6000_explicit_options.abi
14138 only for -mabi=spe/no-spe and -mabi=altivec.
14139
f4d4e693 141402006-03-30 Geoffrey Keating <geoffk@apple.com>
14141
14142 * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
14143 !Zdynamiclib.
14144
77a85ce7 141452006-03-30 Carlos O'Donell <carlos@codesourcery.com>
14146
14147 * Makefile.in: Rename docdir to gcc_docdir.
14148
73fe0e40 141492006-03-30 Roger Sayle <roger@eyesopen.com>
14150
14151 PR target/17959
522701ef 14152 * expr.c (emit_group_store): Optimize group stores into a pseudo
73fe0e40 14153 register by using a paradoxical subreg to initialize the destination
14154 if the first or last member of the group specifies a "low part".
14155
4dc5882f 141562006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14157
14158 PR target/26734
14159 * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
14160 * target.h (struct gcc_target.speculate_insn): Change type of the
14161 second parameter to 'int'.
14162 * lists.c (alloc_DEPS_LIST): Change signature. Update reference to
14163 the second operand of the DEPS_LIST.
14164 (copy_DEPS_LIST_list): Update reference to the second operand of the
14165 DEPS_LIST.
14166 * rtl.h (alloc_DEPS_LIST): Update signature.
14167 * sched-int.h (ds_t): Change typedef to 'int'.
14168 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
14169
611a596b 141702006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14171
14172 * haifa-sched.c (try_ready): Change condition to restore
14173 non-speculative pattern of the instruction.
14174 (process_insn_depend_be_in_spec): Code to keep probability of the
14175 speculative dependence non-decreasing.
14176
a92178b8 141772006-03-30 Jie Zhang <jie.zhang@analog.com>
14178
14179 * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
14180 (single_move_for_movmem): ... this. Also change all uses.
14181 (bfin_expand_strmov): Renamed to...
14182 (bfin_expand_movmem): ... this. Also change all uses.
14183 * config/bfin/bfin.md (movstrsi): Renamed to...
14184 (movstrsi): ...this.
14185
2166ab0e 141862006-03-30 Paolo Bonzini <bonzini@gnu.org>
14187
14188 PR tree-optimization/26830
14189
14190 * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
14191 (copy_prop_visit_stmt): Remove write-only variable ann.
14192 (init_copy_prop): Check variable loop depth here. Do not simulate
14193 memory-tag and virtual operand PHIs except for store copy prop.
14194
1fd05f7f 141952006-03-30 Richard Guenther <rguenther@suse.de>
14196
14197 * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
14198 variants with double arguments.
14199
64319b3e 142002006-03-29 David Edelsohn <edelsohn@gnu.org>
14201
14202 * genpreds.c (write_tm_constrs_h): Delete variable p.
966eae04 14203 * genconditions.c (write_header): Add tm-constrs.h to included
14204 headers.
61b11029 14205 * genpeep.c (main): Add toplev.h to included headers.
2ac9bd76 14206 * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
420b1776 14207 (build/genpeep.o): Add toplev.h dependency.
764fce6b 14208 * config/rs6000/constraints.md: Add "W" constraint.
64319b3e 14209
1088cbc4 142102006-03-29 Roger Sayle <roger@eyesopen.com>
14211
14212 * stor-layout.c (mode_for_size_tree): Remove restiction on type
14213 sizes by correctly testing whether the size fits a host integer.
14214 (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
14215 to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
14216 SImode range for the default sizetype and bitsizetype.
14217
322fdac2 142182006-03-29 Roger Sayle <roger@eyesopen.com>
14219
14220 * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
14221 and TREE_CONSTANT_OVERFLOW bits of the argument. Return
14222 quickly if the argument is already of the correct type.
14223 Call fold_build1 instead of build1. Tidy up blank lines.
14224
a014ec0f 142252006-03-29 David Edelsohn <edelsohn@gnu.org>
14226
14227 * genemit.c (main): Add tm-constrs.h to included headers.
14228 * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
14229 * genpeep.c (main): Add tm-constrs.h to included headers.
14230 * genpreds.c (write_satisfies_constraint_fns): Rename to ...
14231 (write_tm_constrs_h): this and write complete file.
14232 (write_tm_preds_h): Do not emit satisfies_constraint fns.
14233 (write_insn_preds_c): Add tm-constrs.h to included headers.
14234 (gen_constrs): New variable.
14235 (parse_option): Parse "-c".
14236 (main): Invoke write_tm_constrs_h.
14237 * genrecog.c (write_header): Add tm-constrs.h to included headers.
14238 * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
14239 (object_out_file): Add tm-constrs.h dependency.
14240 (insn-emit.o): Same.
14241 (insn-output.o): Same.
14242 (insn-peep.o): Same.
14243 (insn-preds.o): Same.
14244 (insn-recog.o): Same.
14245 (tm-constsr.h): New target.
14246 (s-constrs-h): New target.
14247
14248 * config/rs6000/constraints.md: New file.
14249 * config/rs6000/rs6000.c: Include tm-constrs.h.
14250 (num_insn_constant_wide): Convert to satisfies_constraint.
14251 (rs6000_rtx_costs): Convert to satisfies_constraint.
14252 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
14253 (CONST_OK_FOR_LETTER_P): Delete.
14254 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14255 (EXTRA_CONSTRAINT): Delete.
14256 (EXTRA_MEMORY_CONSTRAINT): Delete.
14257 (EXTRA_ADDRESS_CONSTRAINT): Delete.
14258 * config/rs6000/predicates.md: Convert to satisfies_constraint.
14259 * config/rs6000/rs6000.md: Include constraints.md. Convert to
14260 satisfies_constraint.
14261
14262 * config/i386/i386.c: Include tm-constrs.h.
14263
04bd1b81 142642006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
14265
14266 * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
14267 * tree-data-ref.c (find_data_references_in_loop,
14268 compute_data_dependences_for_loop): Use pointers to VEC.
14269 (analyze_all_data_dependences): Adjust calls.
14270 * tree-data-ref.h (find_data_references_in_loop,
14271 compute_data_dependences_for_loop): Adjust declarations.
14272 * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
14273 compute_data_dependences_for_loop.
14274
a694a165 142752006-03-29 Paul Brook <paul@codesourcery.com>
14276
14277 * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
14278 (movdf_vfp): Ditto.
14279
96710944 142802006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
14281
14282 PR tree-optimization/26859
14283 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
14284 division by zero.
14285 (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
14286 for the step after fold_convert.
14287
f5bccbd1 142882006-03-29 Paul Brook <paul@codesourcery.com>
14289
14290 * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
14291 (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
14292
5f458503 142932006-03-29 Paul Brook <paul@codesourcery.com>
14294
14295 PR middle-end/23623
14296 * targhooks.c (default_narrow_bitfield): New fuction.
14297 * targhooks.h (default_narrow_bitfield): add prototype.
14298 * target.h (gcc_target): Add narrow_volatile_bitfield.
14299 * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
14300 * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
14301 * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
14302 * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
14303
36868490 143042006-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
14305
d86ccd2c 14306 * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
36868490 14307 tmake_file.
14308 * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
14309 (NR_C_MODES): Add TDmode, DDmode and SDmode.
14310 (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
14311 (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
14312 (s390_function_arg_float): Allow SDmode and DDmode values to be
14313 passed in floating point registers.
d86ccd2c 14314 (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
36868490 14315 check with SCALAR_FLOAT_MODE_P.
14316 (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
14317
0840f4fe 143182006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
14319
14320 PR tree-optimization/25985
14321 * tree-ssa-loop-niter.c (number_of_iterations_le,
14322 number_of_iterations_ne): Make comments more precise.
14323 (number_of_iterations_cond): Add only_exit argument. Use the
14324 fact that signed variables do not overflow only when only_exit
14325 is true.
14326 (loop_only_exit_p): New.
14327 (number_of_iterations_exit): Pass result of loop_only_exit_p to
14328 number_of_iterations_cond.
14329
bc06978f 143302006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
14331
14332 PR tree-optimization/26643
14333 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
14334 bit_field_refs.
14335
344d49a6 143362006-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
14337
14338 * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
14339 (divsi3_i4_int): Likewise.
14340
522701ef 143412006-03-28 Roger Sayle <roger@eyesopen.com>
2b4bed8a 14342
14343 * expr.c (emit_group_store): Only create a new pseudo reg if the
14344 quantity it needs to hold isn't already a suitable pseudo.
14345
1ef27f86 143462006-03-28 Jeff Law <law@redhat.com>
14347
14348 * timevar.def (TV_TREE_PHI_CPROP): New timevar.
14349 * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
14350
a3cf48f5 143512006-03-28 Roger Sayle <roger@eyesopen.com>
14352
14353 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
14354 the equivalent ~X & Y, and the symmetry related transformations.
d86ccd2c 14355 (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
a3cf48f5 14356 ~X & Y, and symmetry related transforms.
14357
b2814640 143582006-03-28 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14359
14360 Revert my 2006-03-27 patches.
14361
c348f27f 143622006-03-28 Roger Sayle <roger@eyesopen.com>
14363
14364 * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
14365 ~(T1)X, when T1 and T2 are integer types of the same precision
14366 and (T2)X isn't an extension.
14367
d65e4929 143682006-03-28 Jeff Law <law@redhat.com>
14369
14370 PR tree-optimization/26796
14371 * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
14372 need EH edge cleanups rather than purging them immediately.
14373 (eliminate_degenerate_phis): Handle queued EH cleanups.
14374
b587b882 143752006-03-28 Daniel Berlin <dberlin@dberlin.org>
14376
14377 * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
14378 from parent_var.
14379
ecf7be71 143802006-03-27 Roger Sayle <roger@eyesopen.com>
14381
14382 PR middle-end/22524
14383 * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
14384 cast BIT_NOT_EXPR operand to the correct type.
14385
41c7a324 143862006-03-27 Sebastian Pop <pop@cri.ensmp.fr>
14387
14388 * tree-loop-linear.c: Don't include varray.h.
14389 (gather_interchange_stats, try_interchange_loops,
14390 linear_transform_loops): Use VEC instead of VARRAY.
14391 * lambda-mat.c: Don't include varray.h.
14392 * tree-chrec.c: Same.
14393 * lambda-trans.c: Same.
14394 * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
14395 VEC instead of VARRAY.
14396 * tree-vectorizer.h: Idem.
14397 * tree-data-ref.c (dump_data_references,
14398 dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
14399 initialize_data_dependence_relation, finalize_ddr_dependent,
14400 compute_all_dependences, find_data_references_in_loop,
14401 compute_data_dependences_for_loop, analyze_all_data_dependences,
14402 free_dependence_relation, free_dependence_relations,
14403 free_data_refs): Idem.
14404 * tree-data-ref.h (data_reference_p, subscript_p): New.
14405 (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
14406 VEC instead of VARRAY.
14407 (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
14408 (find_data_references_in_loop, compute_data_dependences_for_loop,
14409 dump_ddrs, dump_dist_dir_vectors, dump_data_references,
14410 dump_data_dependence_relations, free_dependence_relations,
14411 free_data_refs): Adjust declaration.
14412 (lambda_transform_legal_p): Move declaration here...
14413 * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
14414 vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
14415 vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
14416 vect_analyze_data_refs): Use VEC instead of VARRAY.
14417 * lambda.h (lambda_transform_legal_p): ...from here.
14418 * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
14419 * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
14420 * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
14421 tree-chrec.o): Don't depend on VARRAY_H.
14422
db888ba8 144232006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14424
14425 * rtl.def (Copyright): Update date.
14426 (DEPS_LIST): Change type of the second operand to 'int'.
14427 * target.h (Copyright): Update date.
14428 (struct gcc_target.speculate_insn): Change type of the second parameter
14429 to 'int'.
14430 * lists.c (Copyright): Update date.
14431 (alloc_DEPS_LIST): Change signature. Update reference to the second
14432 operand of the DEPS_LIST.
14433 (copy_DEPS_LIST_list): Update reference to the second operand of the
14434 DEPS_LIST.
14435 * rtl.h (Copyright): Update date.
14436 (alloc_DEPS_LIST): Update signature.
14437 * sched-int.h (Copyright): Update date.
14438 (ds_t): Change typedef to 'int'.
14439 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
14440
a6c9503b 144412006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14442
14443 * haifa-sched.c (Copyright): Update date.
14444 (try_ready): Change condition to restore non-speculative pattern
14445 of the instruction.
14446 (process_insn_depend_be_in_spec): Code to keep probability of the
14447 speculative dependence non-decreasing.
14448
345c1cc2 144492006-03-27 Bernd Schmidt <bernd.schmidt@analog.com>
14450
14451 * regrename.c (replace_oldest_value_addr): Initialize a variable to
14452 shut up the compiler.
14453
16dccd22 144542006-03-27 J"orn Rennecke <joern.rennecke@st.com>
14455
14456 * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
14457 to use lib prefix for target.
14458 ($(T)libic_invalidate_array_4-200.a): Likewise.
14459 ($(T)libic_invalidate_array_4a.a): Likewise.
14460
3a6994f8 144612006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
14462 J"orn Rennecke <joern.rennecke@st.com>
14463
14464 * superh.opt: New file.
14465 * sh.c (boardtype, osruntime): Remove.
14466 * superh.h (SUBTARGET_OPTIONS): Remove.
14467 * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
14468
14469 * config.gcc (sh*-*-*): Don't use c-c ranges for tr. Quote sed
14470 arguments with ^ and/or [].
14471
14472 * config.gcc (sh-*-*): Add quoting to account for quirk of
14473 Solaris /bin/sh.
14474 Replace == with = in enable_incomplete_targets test.
14475
14476 * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
14477 with MASK_LITTLE_ENDIAN.
14478
14479 * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
14480 * config/sh/sh.opt: Added to some comments.
14481 * config/sh/superh.h: Removed some chaff.
14482
14483 * config/sh/sh.opt: Add m4-[1234]00* options.
14484 * config/sh/sh.c (sh_handle_option): Likewise.
14485 * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
14486 (ic_invalidate_array_4-100.o): New rule.
14487 ($(T)libic_invalidate_array_4-100.a): Likewise.
14488 (ic_invalidate_array_4-200.o): Likewise.
14489 ($(T)libic_invalidate_array_4-200.a): Likewise.
14490 (ic_invalidate_array_4a.o): Likewise.
14491 ($(T)libic_invalidate_array_4a.a): Likewise.
14492 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
14493 * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
14494 m4-200*, and m4a*.
14495 * config/sh/crt1.asm: Merged in profiling code.
14496 * config/sh/superh.h (STARTFILE_SPEC): Override.
14497 * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
14498 Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
14499 * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
14500
14501 * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
14502 * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
14503 MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
14504
14505 * sh.opt (mpretend-cmove): New option.
14506 * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
14507 * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
14508 (movsicc): Add TARGET_PRETEND_CMOVE code.
14509
8f1128bb 145102006-03-27 Andreas Krebbel <krebbel1@de.ibm.com>
14511
d86ccd2c 14512 * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
8f1128bb 14513 s390_class_max_nregs): New function prototypes.
14514 * config/s390/s390.c (REGNO_PAIR_OK): New macro.
14515 (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
14516 * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
14517 CLASS_MAX_NREGS): Macro bodies replaced by function calls.
14518
e124d6c7 145192006-03-26 Geoffrey Keating <geoffk@apple.com>
14520
14521 * dwarf2out.c (add_location_or_const_value_attribute): Call
14522 tree_add_const_value_attribute if nothing else works.
14523 (reference_to_unused): New.
14524 (rtl_for_decl_init): Use reference_to_unused to decide whether
14525 to output an initializer.
14526
14a01286 145272006-03-27 Alan Modra <amodra@bigpond.net.au>
14528
14529 PR target/26459
14530 * config/rs6000/rs6000.md (DF reg move peephole): Prevent
14531 peephole removing spe frob_di_df_2.
14532
b44d1046 145332006-03-26 Sebastian Pop <pop@cri.ensmp.fr>
14534
14535 * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
14536 (subscript_dependence_tester_1): Declared.
14537 (print_dir_vectors, print_dist_vectors): New.
14538 (debug_data_dependence_relation): New.
14539 (dump_data_dependence_relation): Print more details.
14540 (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
14541 (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
14542 (save_dist_v, save_dir_v, add_outer_distances,
14543 build_classic_dist_vector_1): New.
14544 (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
14545 Don't test for lambda_vector_lexico_pos.
14546 (same_access_functions, add_multivariate_self_dist,
14547 add_other_self_distances, dir_from_dist): New.
d86ccd2c 14548 (build_classic_dir_vector): Replace implementation almost identical to
b44d1046 14549 build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
14550 dir_from_dist.
14551 (subscript_dependence_tester_1): New.
14552 (subscript_dependence_tester): Handle the lexicographically negative
14553 distance vectors by recomputing the dependence relation.
14554 (compute_affine_dependence): Remove parameter loop_nest_depth.
14555 (compute_self_dependence): Don't call compute_subscript_distance.
14556 (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
14557 Add a parameter for the loop_nest.
14558 (find_loop_nest_1, find_loop_nest): New.
14559 (compute_data_dependences_for_loop): Compute the loop nest, and give
14560 up if the nest is not well formed.
14561 * tree-data-ref.h (loop_p): New.
d86ccd2c 14562 (struct data_dependence_relation): Replace size_vect field with
b44d1046 14563 loop_nest, a vec of loops.
14564 (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
14565 (DDR_LOOP_NEST): New.
14566 (print_dir_vectors, print_dist_vectors,
14567 debug_data_dependence_relation): Declared.
14568 (index_in_loop_nest): New.
14569 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
14570 DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
14571 distance.
14572
3bc6a7ce 145732006-03-25 Adam Nemet <anemet@caviumnetworks.com>
14574
14575 * simplify-rtx.c (simplify_relational_operation): Call
14576 simplify_relational_operation_1 even if mode is VOIDmode.
14577
604eef2c 145782006-03-25 Daniel Berlin <dberlin@dberlin.org>
14579
14580 PR tree-optimization/26804
14581 * tree.h (DECL_CALL_CLOBBERED): New macro.
14582 (tree_decl_common): Add call_clobbered_flag.
14583 * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
14584 (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
14585 (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
14586 (mark_non_addressable): Ditto.
14587 * tree-ssa.c (verify_call_clobbered): New function.
14588 (verify_alias_info): Use it.
14589 * tree-pass.h (pass_reset_cc_flags): New prototype.
14590 * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
14591 (reset_cc_flags): New function.
14592 * passes.c (init_optimization_passes): Call reset_cc_flags after
14593 initializing referenced_vars.
14594
c2c96591 145952006-03-25 Uros Bizjak <uros@kss-loka.si>
14596 Roger Sayle <roger@eyesopen.com>
14597
14598 PR middle-end/26717
14599 * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
14600 to 1.0 for non-real operands. Implement A / A optimization for
14601 complex operands.
14602
0a3cb44d 146032006-03-25 H.J. Lu <hongjiu.lu@intel.com>
14604
14605 * config/i386/i386.c (size_cost): Correct the comment for
14606 cost of storing fp registers.
14607 (i386_cost): Likewise.
14608 (i486_cost): Likewise.
14609 (pentium_cost): Likewise.
14610 (pentiumpro_cost): Likewise.
14611 (k6_cost): Likewise.
14612 (athlon_cost): Likewise.
14613 (k8_cost): Likewise.
14614 (pentium4_cost): Likewise.
14615 (nocona_cost): Likewise.
14616 (generic64_cost): Likewise.
14617 (generic32_cost): Likewise.
14618
0d2d3527 146192006-03-24 Denis Chertykov <denisc@overta.ru>
14620
14621 * config/avr/avr-protos.h (extra_constraint): Delete.
14622 (extra_constraint_Q): New declaration.
14623 * config/avr/constraints.md: New file.
14624 * config/avr/avr.md: Include it.
14625 (REG_X, REG_Y, REG_Z, REG_W): New constants.
14626 (TMP_REGNO, ZERO_REGNO): Likewise.
14627 (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
14628 * config/avr/avr.c (avr_reg_class_from_letter): Delete.
14629 (extra_constraint): Delete.
14630 (extra_constraint_Q): Test for memory constraint 'Q'.
14631 * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
14632 (REG_CLASS_FROM_LETTER): Delete.
14633 (CONST_OK_FOR_LETTER_P): Delete.
14634 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14635 (EXTRA_CONSTRAINT): Delete.
14636 (TMP_REGNO): Delete.
14637 (ZERO_REGNO): Delete.
14638
2f067d14 146392006-03-24 Jeff Law <law@redhat.com>
14640
14641 * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
14642 directly. Call mark_new_vars_to_rename slightly earlier.
14643
f543041b 146442006-03-24 Geoffrey Keating <geoffk@apple.com>
14645
bda642f9 14646 * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
14647 (is_cxx): Likewise.
14648 (gen_compile_unit_die): Use new language types for Objective-C and
14649 Objective-C++.
14650 (dwarf2out_decl): Use is_cxx rather than testing explicitly against
14651 DW_LANG_C_plus_plus.
14652
f543041b 14653 PR 26793
14654 * config/t-darwin (crt3.o): Work around bug 26840.
14655 * config/darwin-crt3.c: Rewrite.
14656 * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
14657
0c573f98 146582006-03-24 Carlos O'Donell <carlos@codesourcery.com>
14659
14660 * doc/invoke.texi: Document -femit-class-debug-always
14661 * common.opt: Add -femit-class-debug-always.
14662
1e280623 146632006-03-24 Andreas Krebbel <krebbel1@de.ibm.com>
14664
14665 * config/s390/s390.c (s390_decompose_address): Allow SImode for
14666 index and base register.
14667 (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
14668 print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
14669 with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
14670 REGNO_OK_FOR_INDEX_P.
14671 * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
14672 ADDR_REGNO_P.
14673 (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
14674 REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
14675 REG_OK_FOR_BASE_P): Definitions removed.
14676
97492514 146772006-03-24 Jakub Jelinek <jakub@redhat.com>
14678
14679 PR middle-end/26611
14680 * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
14681 non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
14682 set yet or weren't marked as local yet.
14683
260988c8 146842006-03-24 Bernd Schmidt <bernd.schmidt@analog.com>
14685
14686 * regrename.c (scan_rtx_address): Initialize a variable to shut up
14687 the compiler.
14688
439e6f39 146892006-03-24 Eric Botcazou <ebotcazou@adacore.com>
14690
14691 * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
14692 (rs6000_legitimate_small_data_p): Delete.
14693 * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
14694 (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
14695 and make static. Add forward declaration. Update uses.
14696 (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
14697 of offsettable_memref_p.
14698 * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
14699 Use rs6000_offsettable_memref_p instead of a less accurate predicate.
14700
ea54ad41 147012006-03-24 Jeff Law <law@redhat.com>
14702
14703 * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
14704 around bug in immediate-use iterator.
14705
507573d8 147062006-03-24 Alan Modra <amodra@bigpond.net.au>
14707
14708 PR target/26607
14709 * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
14710 or __LITTLE_ENDIAN__.
14711
d6005df3 147122006-03-23 J"orn Rennecke <joern.rennecke@st.com>
14713
14714 * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
14715 * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
14716 * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
14717 * config/sh/sh.opt (mdiv=): Amend description.
14718 * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
14719 (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
14720 (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
14721 SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
14722 (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
14723 Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
14724 * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
14725 (udivsi3, divsi3): Use them. Check TARGET_DIVIDE_CALL_TABLE /
14726 TARGET_DIVIDE_CALL_FP.
14727
e5f7d6da 147282006-03-23 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14729
14730 * haifa-sched.c (choose_ready): Fix type of the local variable.
14731 Move local variables. Add comment.
14732 (check_reg_live): Change signature. Make callable from debugger.
14733 * sched-int.h (check_reg_live): Update signature.
14734 * sched-ebb.c (check_reg_live): Update parameters.
14735 * sched-rgn.c (check_reg_live): Ditto.
14736 (region_head_or_leaf_p): Check pointer before dereferencing.
14737 * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
14738 before reload on optimization levels below 1.
14739
f3c616bc 147402006-03-23 Richard Henderson <rth@redhat.com>
14741
b5c0ec3d 14742 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
14743 tls symbols.
14744
f3c616bc 14745 PR target/26347
14746 * config/alpha/predicates.md (local_symbolic_operand): Reject
14747 weak symbols.
14748
4ae20934 147492006-03-23 Andrew Pinski <pinskia@physics.uc.edu>
14750
14751 PR tree-opt/26795
14752 * tree-ssa-pre.c (create_value_expr_from): Don't reject
14753 expressions which have overflowed constants.
14754
8b2453d4 147552006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
14756
14757 * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
14758
d6a6ac20 147592006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
14760
14761 * cfgloopmanip.c (create_loop_notes): Removed.
14762 * final.c (final_scan_insn): Do not handle loop notes.
14763 * jump.c (squeeze_notes): Ditto.
14764 * cfglayout.c (skip_insns_after_block,
14765 duplicate_insn_chain): Ditto.
14766 * cfgcleanup.c (rest_of_handle_jump2): Do not call
14767 create_loop_notes.
14768 * cfgloop.h (create_loop_notes): Declaration removed.
14769
372df111 147702006-03-23 Richard Sandiford <richard@codesourcery.com>
14771
14772 * varasm.c (output_constant_pool): Restore fnname and fndecl
14773 arguments.
14774 (assemble_start_function): Adjust call accordingly.
14775 (assemble_end_function): Likewise.
14776
c0e40292 147772006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
14778
87861324 14779 PR mudflap/26789
909f55ac 14780 * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
14781
87861324 14782 PR mudflap/26790
c0e40292 14783 * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
14784
87011ef0 147852006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
14786
14787 PR driver/22600
14788 * system.h (ICE_EXIT_CODE): New macro.
14789 * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
14790 (diagnostic_action_after_output): Likewise.
14791 * gcc.c (fatal_ice): New function.
14792 (execute): Use it instead of fatal.
14793 (fancy_abort): Likewise.
14794 * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
14795
e8820970 147962006-03-22 Jeff Law <law@redhat.com>
14797
14798 * loop-unroll.c (analyze_iv_to_split_insn): Handle
14799 iv_analyze_result returning false.
14800
2789d110 148012006-03-22 Jie Zhang <jie.zhang@analog.com>
14802
14803 * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
14804
30b822ea 148052006-03-22 Richard Henderson <rth@redhat.com>
14806
14807 PR middle-end/26084
14808 * except.c (duplicate_eh_regions_0): New.
14809 (duplicate_eh_region_1): Duplicate the children of the node as
14810 well as the node itself. Link them up properly.
14811 (duplicate_eh_region_2): Merge into ...
14812 (duplicate_eh_regions): ... here. Take copy_region argument, and
14813 copy only a sub-tree if asked. Simplify copying and fixup.
14814 (eh_region_outer_p): New.
14815 * except.h (duplicate_eh_regions): Update decl.
14816 (eh_region_outer_p): Declare.
14817 * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
14818 (lower_omp_master): Likewise.
14819 (lower_omp_ordered): Likewise.
14820 * tree-cfg.c (struct move_stmt_d): Add new_label_map.
14821 (move_stmt_r): Use it to remap labels. Handle recursion vs
14822 remap_decls_p properly.
14823 (move_block_to_fn): Pass in new_label_map. Remap RESX_EXPR.
14824 (find_outermost_region_in_block): New.
14825 (new_label_mapper): New.
14826 (move_sese_region_to_fn): Copy eh information to the new function
14827 properly.
14828 * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
14829 argument.
14830 * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
14831 number.
14832
fc0cd9d4 148332006-03-22 Richard Sandiford <richard@codesourcery.com>
14834
14835 * doc/md.texi (-mshared): Mention that -mshared code can be linked
14836 into shared libraries.
14837
c60dcd8c 148382006-03-22 Richard Sandiford <richard@codesourcery.com>
14839
14840 * doc/md.texi: Refer to i386/constraints.md instead of
14841 i386/predicates.md.
14842 * config/i386/constraints.md: New file, extracted from...
14843 * config/i386/predicates.md: ...here.
14844 * config/i386/i386.md: Include constraints.md.
14845
f0f2eb24 148462006-03-21 Jason Merrill <jason@redhat.com>
14847
e82d310b 14848 * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
14849
f0f2eb24 14850 PR middle-end/20297
14851 * expr.c (init_block_move_fn): Force default visibility.
14852 (init_block_clear_fn): Likewise.
14853 * builtins.c (expand_builtin_fork_or_exec): Likewise.
14854 * targhooks.c (default_external_stack_protect_fail): Likewise.
14855
1b6b10a9 148562006-03-21 Richard Sandiford <richard@codesourcery.com>
14857
14858 * config/mips/predicates.md (const_call_insn_operand): Allow direct
14859 calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
14860 * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
14861 Use TARGET_OLDABI instead of !TARGET_NEWABI.
14862 (loadgp): Use mips_current_loadgp_style.
14863 (loadgp_noshared): New pattern.
14864 (sibcall_internal): Use MIPS_CALL.
14865 (sibcall_value_internal): Likewise.
14866 (sibcall_value_multiple_internal): Likewise.
14867 (call_internal): Likewise.
14868 (call_value_internal): Likewise.
14869 (call_value_multiple_internal): Likewise.
14870 (call_split): Use MIPS_CALL and add an 'S' constraint.
14871 (call_value_split): Likewise.
14872 (call_value_multiple_split): Likewise.
14873 * config/mips/mips.opt (-mabicalls): Tweak docstring.
14874 (-mshared): New option.
14875 * config/mips/mips-protos.h (mips_loadgp_style): New enum.
14876 (mips_current_loadgp_style): Declare.
14877 * config/mips/mips.c (mips_classify_symbol): Avoid using
14878 SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS. Use SYMBOL_GENERAL
14879 rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
14880 TARGET_ABSOLUTE_ABICALLS.
14881 (override_options): Adjust comments. Improve the warning that is
14882 issued when -mabicalls and -G are used together.
14883 (mips_file_start): Remove comment.
14884 (mips_current_loadgp_style): New function.
14885 (mips_gnu_local_gp): New variable.
14886 (mips_emit_loadgp): Use mips_current_loadgp_style. Handle
14887 LOADGP_ABSOLUTE.
14888 (mips_output_function_prologue): Use mips_current_laodgp_style.
14889 (mips_expand_prologue): Call mips_emit_loadgp before emitting
14890 the cprestore instruction.
14891 (mips_extra_live_on_entry): Fix reversed test. Don't make $25
14892 live for TARGET_ABSOLUTE_ABICALLS.
14893 * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
14894 (ASM_SPEC): Pass down -mshared and -mno-shared.
14895 (MIPS_CALL): New macro.
14896 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
14897 definition.
14898 * doc/invoke.texi (-mabicalls): Update documentation.
14899 (-mshared): Document.
14900
44348c35 149012006-03-21 Steve Ellcey <sje@cup.hp.com>
14902
14903 * config/ia64/unwind-hpux.c: New file.
14904 * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
14905
729c6839 149062006-03-21 Steve Ellcey <sje@cup.hp.com>
14907
14908 PR libgomp/26384
14909 * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
14910
bb22ee7f 149112006-03-21 Jeff Law <law@redhat.com>
14912
14913 * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
14914 type conversions of a VR_VARYING source to a wider type.
14915
517cabaa 149162006-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
14917
14918 * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
14919 tm_file on Solaris 10 and later.
14920 (sparc64-*-solaris2*): Likewise.
14921 (sparc-*-solaris2*): Likewise.
14922 * config/sol26.h: Rename to config/sol2-6.h.
14923 * config/sol2-10.h: New file.
14924
8168e38d 149252006-03-21 Andrew Pinski <pinskia@physics.uc.edu>
14926
14927 PR tree-opt/26781
14928 * tree-ssa-pre.c (create_component_ref_by_pieces):
14929 Handle STRING_CST.
14930
6da06c90 149312006-03-21 Jakub Jelinek <jakub@redhat.com>
14932
14933 PR c++/26690
14934 * tree.c (get_callee_fndecl): If CALL is error_mark_node,
14935 return it immediately.
14936
c72f0286 149372006-03-21 Michael Matz <matz@suse.de>
14938
14939 * genautomata.c (<struct state>, num_out_arcs, presence_signature):
14940 New members.
14941 (remove_arc, add_arc): Update num_out_arcs member.
14942 (set_out_arc_insns_equiv_num): Returns nothing instead of number
14943 of out arcs.
14944 (cache_presence): New function.
14945 (compare_states_for_equiv): New function.
14946 (state_is_differed): Don't take number of outargs, adjust callers.
14947 Use new invariant for speeding up.
14948 (init_equiv_class): Create initial classes based on sorted
14949 input.
14950 (partition_equiv_class): Don't track out_arcs_num.
14951 (evaluate_equiv_classes): Call cache_presence on all states and
14952 sort them.
14953
00cb30dc 149542006-03-21 Bernd Schmidt <bernd.schmidt@analog.com>
14955
14956 * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
14957 * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
14958 (bfin_valid_reg_p): Test for pseudos explicitly and use only
14959 REGNO_MODE_CODE_OK_FOR_BASE_P. New args MODE and OUTER_CODE; all
14960 callers changed.
14961 * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
14962 (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
14963 (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
14964 (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14965 REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
14966 macros.
14967 (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
14968 REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
14969 (REGNO_REG_CLASS): ARGP is in PREGS.
14970 * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
14971 IREGS.
14972 (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
14973 to deal with those addresses.
14974 * addresses.h: New file.
14975 * caller-save.c: Include "addresses.h".
14976 (init_caller_save): Use new base_reg_class function.
14977 * rtl-factoring.c: Include "addresses.h".
14978 (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
14979 * recog.c: Include "addresses.h".
14980 (preprocess_constraints): Use new base_reg_class function.
14981 * regrename.c: Include "addresses.h".
14982 (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
14983 functions. Keep track of a new var INDEX_CODE to compute valid
14984 classes.
14985 (replace_oldest_value_addr): Likewise.
14986 (replace_oldest_value_mem): Use base_reg_class.
14987 * reload.c: Include "addresses.h".
14988 (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
14989 (find_reloads): Use new base_reg_class function.
14990 (find_reloads_address): Likewise; also use regno_ok_for_base_p.
14991 (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
14992 all callers and prototype changed.
14993 * reload1.c: Include "addresses.h".
14994 (maybe_fix_stack_asms): Use base_reg_class.
14995 * regclass.c: Include "addresses.h".
14996 (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
14997 (init_reg_autoinc): Use new base_reg_class function.
14998 (record_reg_classes): Likewise.
14999 (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
15000 OUTER_CODE and INDEX_CODE. All callers and prototype changed.
15001 Use new args to compute necessary class.
15002
15003 * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
15004 regrename.o, rtl-factoring.o): Update dependencies.
15005 * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
15006 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
15007 (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
15008 REG_OK_FOR_INDEX_P): Delete documentation.
15009
f7ae7dc1 150102006-03-21 Alexey Starovoytov <alexey.starovoytov@sun.com>
15011
15012 * config.gcc (sparc-*-solaris2*): Change the default CPU setting
15013 from V7 to V9 for Solaris 7 and above.
15014
5ff22aea 150152006-03-21 Toon Moene <toon@moene.indiv.nluug.nl>
15016
15017 * doc/invoke.texi: Document new flag -fargument-noalias-anything.
15018 * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
15019 argument pointers may not alias any other storage.
15020 * common.opt: Define option -fargument-noalias-anything.
15021 * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
15022 alias semantics is specified by flag_argument_noalias > 2.
15023
f2df2401 150242006-03-20 Jeff Law <law@redhat.com>
d1d2af7d 15025
15026 * tree-pass.h (pass_phi_only_copy_prop): Delete.
15027 (pass_phi_only_cprop): Declare.
15028 * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
15029 with phi_only_cprop
15030 * tree-ssa-dom.c (degenerate_phi_result): New function.
15031 (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
15032 (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
15033 (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
15034 (eliminate_degenerate_phis): Likewise.
15035 (pass_phi_only_cprop): New pass descriptor.
15036 * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
15037 support code. Callers updated.
15038 (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
15039 (store_copy_prop): Likewise.
15040 (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
15041
799435d8 150422006-03-20 Jason Merrill <jason@redhat.com>
15043
15044 PR c++/21764
15045 * c-pragma.c (visstack): Move out of handle_pragma_visibility.
15046 (push_visibility, pop_visibility): Likewise.
15047 * c-pragma.h: Declare them.
15048
078bb30c 150492006-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
15050
15051 * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
15052
15053 * config/sh/sh.c (find_regmode_weight): Change the type of the first
15054 parameter and use get_ebb_head_tail.
15055 (sh_md_init_global): Adjust uses of find_regmode_weight.
15056
1edb3690 150572006-03-20 Steven Bosscher <stevenb.gcc@gmail.com>
15058
15059 * function.h (struct function) <x_tail_recursion_reentry>:
15060 Rename to x_stack_check_probe_note.
15061 (tail_recursion_reentry): Rename to stack_check_probe_note.
15062 * function.c: Replace tail_recursion_reentry with
15063 stack_check_probe_note everywhere.
15064 (expand_function_start): Only emit a note for
15065 stack_check_probe_note with -fstack-protect.
15066 * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
15067
15068 * emit-rtl.c (remove_unnecessary_notes): Remove.
15069 (pass_remove_unnecessary_notes): Remove.
15070 * rtl.h (remove_unnecessary_notes): Remove prototype.
15071 * final.c (final_start_function): Don't call remove_unnecessary_notes.
15072 * tree-pass.h (pass_remove_unnecessary_notes): Remove.
15073 * passes.c (pass_remove_unnecessary_notes): Don't run it.
15074
0e8f5fde 150752006-03-20 Andrew Pinski <pinskia@physics.uc.edu>
15076
15077 PR tree-opt/26629
15078 * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
15079 (valid_in_set): Handle ARRAY_REF.
15080 Change "if min_variant or VH" to asserts.
15081 (create_component_ref_by_pieces): Handle ARRAY_REF.
15082 (create_expression_by_pieces): Likewise.
15083 (can_PRE_operation): ARRAY_REFs can now be PRE'd.
15084
dd030c96 150852006-03-20 David Edelsohn <edelsohn@gnu.org>
15086
15087 * genpreds.c (write_insn_extra_address_constraint): Argument `c'
15088 is operand of switch, not str[0].
15089
0178c458 150902006-03-20 Alan Modra <amodra@bigpond.net.au>
15091
15092 * config/rs6000/rs6000.c (rs6000_handle_option): Use
15093 TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
15094
3f11e6d5 150952006-03-19 David Edelsohn <edelsohn@gnu.org>
15096
15097 * genpreds.c (write_tm_preds_h): Add semicolon and newline at
15098 end of insn_extra_address_constraint declaration.
15099
43edbc2e 151002006-03-19 David Edelsohn <edelsohn@gnu.org>
15101
15102 * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
15103 (no-sum-in-toc): Same.
15104 * config/rs6000/rs6000.c (rs6000_handle_option): Use new
15105 variables.
15106 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
15107 NO_FP_IN_TOC for -fPIC instead of mask.
15108
15109 * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
15110 (BOOT_LDFLAGS): Delete.
15111 (LDFLAGS): Delete.
15112 * config/rs6000/t-aix52: Same.
15113
15114 * config/rs6000/rs6000.md (store_multiple_power): Delete.
15115 (stmsi[345678]_power): New.
15116
65df3cb8 151172006-03-17 Steve Ellcey <sje@cup.hp.com>
15118
15119 * config/ia64/ia64.opt: Add empty line to end of file.
15120
e068b646 151212006-03-17 Richard Guenther <rguenther@suse.de>
15122
15123 PR middle-end/26721
15124 * builtins.c (get_pointer_alignment): For component style references
15125 adjust alignment to the component type alignment. Make sure
15126 to adjust alignment for component access of constants.
15127
72a99552 151282006-03-17 David Edelsohn <edelsohn@gnu.org>
15129
15130 * config/rs6000/rs6000.md (strlensi): Emit barrier after
15131 unconditional jump.
15132
086571a4 151332006-03-17 Paul Brook <paul@codesourcery.com>
15134
15135 * doc/install.texi: Docuemnt --with-mode.
15136 * config.gcc: Add --with-mode for arm*-*-*.
15137 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
15138
be7f5947 151392006-03-17 J"orn Rennecke <joern.rennecke@st.com>
15140
15141 * sh.c (max_labelno_before_reorg): New variable.
15142 (sh_reorg): Initialize it.
15143 (find_barrier): Check max_labelno_before_reorg before using
15144 label_to_alignment. Take length of explicit alignment insns
15145 into account. When seeing a UNSPECV_CONST_END, return it.
15146
15147 * sh.c (fixup_mova): Set mode of affected label to QImode.
15148 (untangle_mova): New function.
15149 (find_barrier): Use it. Check mode of label before decrementing
15150 num_mova.
15151 (sh_reorg): Likewise.
15152 Set mode of all insns back to VOIDmode.
15153
15154 * sh.c (MOVA_LABELREF): New macro.
15155 (mova_p, fixup_mova, sh_reorg): Use it.
15156 (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
15157 ADDR_DIFF_VEC matches mova.
15158
e056afd2 151592006-03-17 Steven Bosscher <stevenb.gcc@gmail.com>
15160
15161 * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
15162 with ATTRIBUTE_UNUSED.
15163
72099bdb 151642006-03-17 Alexandre Oliva <aoliva@redhat.com>
15165
15166 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
15167 pointer, instead of assuming it is possible to derive the
15168 correct args size from a call insn.
15169
97590808 151702006-03-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15171
15172 * rtl.h (CONST_INT_P): Define.
15173 * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
15174 instead of GET_CODE(x) == CONST_INT.
15175 (vax_rtx_costs): Likewise.
15176 (vax_output_int_move): Likewise.
15177 (vax_output_int_add): Likewise.
15178 (legitimate_constant_address_p): Likewise.
15179 (index_term_p): Likewise.
15180 * config/vax/vax.h (PRINT_OPERAND): Likewise.
15181 * config/vax/vax.md (and<mode>3): Likewise.
15182 (ashrsi3): Likewise.
15183 (extv): Likewise.
15184 (movstricthi): Likewise.
15185 (movstrictqi): Likewise.
15186 (rotrsi3): Likewise.
15187 (five unnamed insns): Likewise.
15188
d08d29c0 151892006-03-16 Geoffrey Keating <geoffk@apple.com>
15190
15191 * doc/tm.texi (SDB and DWARF): Add extra parameter to
15192 ASM_OUTPUT_DWARF_OFFSET. Use @var to indicate metavariables.
15193 * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
15194 * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
15195 Pass to ASM_OUTPUT_DWARF_OFFSET.
15196 * dwarf2out.c (debug_frame_section): New.
15197 (output_call_frame_info): Use debug_frame_section. Pass it to
15198 dw2_asm_output_offset.
15199 (output_die): Pass appropriate section to dw2_asm_output_offset.
15200 (output_compilation_unit_header): Likewise.
15201 (output_pubnames): Likewise.
15202 (output_aranges): Likewise.
15203 (enum dw_val_class): Break dw_val_class_lbl_offset into
15204 dw_val_class_lineptr and dw_val_class_macptr.
15205 (add_AT_lbl_offset): Delete.
15206 (add_AT_lineptr): New.
15207 (add_AT_macptr): New.
15208 (AT_lbl): Expect a lineptr or macptr.
15209 (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
15210 (attr_checksum): Likewise.
15211 (same_dw_val_p): Likewise.
15212 (size_of_die): Likewise.
15213 (value_format): Likewise.
15214 (output_die): Likewise.
15215 (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
15216 add_AT_lbl_offset.
15217 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
15218 * config/i386/i386.c (x86_file_start): Call darwin_file_start.
15219 * config/darwin-protos.h (darwin_file_start): New.
15220 (darwin_asm_output_dwarf_offset): New.
15221 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
15222 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
15223 darwin_file_start.
15224 * config/darwin.c (darwin_emit_unwind_label): Don't output label
15225 if not EH section; simplify.
15226 (darwin_file_start): New.
15227 (darwin_asm_output_dwarf_offset): New.
15228 * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
15229 mark as 'debug'.
15230 (DEBUG_INFO_SECTION): Likewise.
15231 (DEBUG_ABBREV_SECTION): Likewise.
15232 (DEBUG_ARANGES_SECTION): Likewise.
15233 (DEBUG_MACINFO_SECTION): Likewise.
15234 (DEBUG_LINE_SECTION): Likewise.
15235 (DEBUG_LOC_SECTION): Likewise.
15236 (DEBUG_PUBNAMES_SECTION): Likewise.
15237 (DEBUG_STR_SECTION): Likewise.
15238 (DEBUG_RANGES_SECTION): Likewise.
15239 (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
15240 (ASM_OUTPUT_DWARF_OFFSET): New.
15241
515fdcc2 152422006-03-16 Joseph S. Myers <joseph@codesourcery.com>
15243
15244 * config.gcc (tm_defines): Always add to previous value rather
15245 than replacing it.
15246
1a4d3221 152472006-03-16 Richard Sandiford <richard@codesourcery.com>
15248
15249 * config/mips/predicates.md (splittable_const_int_operand): New,
15250 split from move_operand.
15251 (splittable_symbolic_operand): New.
15252 (move_operand): Add commentary. Use splittable_const_int_operand.
15253 Inline mips_atomic_symbolic_constant_p.
15254 * config/mips/mips.md: Add combine splitters for handling moves
15255 of splittable_const_int_operands and splittable_symbolic_operands.
15256 * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
15257 (mips_split_symbol): Declare.
15258 (mips_move_integer): Declare.
15259 * config/mips/mips.c (mips_split_p): Make global.
15260 (TARGET_MIN_ANCHOR_OFFSET): Override default.
15261 (TARGET_MAX_ANCHOR_OFFSET): Likewise.
15262 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
15263 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
15264 (mips_offset_within_object_p): Handle block symbols.
15265 (mips_atomic_symbolic_constant_p): Delete.
15266 (mips_cannot_force_const_mem): Return false for constants that
15267 mips_legitimize_move can handle.
15268 (mips_use_blocks_for_constant_p): New function.
15269 (mips_split_symbol): Make global.
15270 (mips_move_integer): Likewise. Add a temporary register argument.
15271 (mips_legitimize_const_move): Use splittable_const_int_operand and
15272 splittable_symbolic_operand.
15273 (mips_use_anchors_for_symbol_p): New function.
15274 * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
d86ccd2c 15275 (mips_split_p): Declare.
1a4d3221 15276
42102a26 152772006-03-16 Richard Sandiford <richard@codesourcery.com>
15278
15279 * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
15280 (mips*-*-linux*): Likewise.
15281
905582c1 152822006-03-16 Roger Sayle <roger@eyesopen.com>
15283 Daniel Speyer <dspeyer@wam.umd.edu>
15284
15285 PR middle-end/18259
15286 * tree-dump.c (dump_real): New function.
15287 (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
15288 * Makefile.in (REAL_H): New macro for dependencies on real.h.
15289 (tree-dump.o): Add $(REAL_H) to the dependencies.
15290
f2ecae08 152912006-03-16 Roger Sayle <roger@eyesopen.com>
15292
15293 PR middle-end/21781
15294 * real.c (real_from_string): If the mantissa is zero, don't bother
15295 parsing the exponent as the result should always be zero.
15296
dc44b957 152972006-03-16 Andreas Krebbel <krebbel1@de.ibm.com>
15298
15299 * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
15300
ea13ae4c 153012006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15302
f3c616bc 15303 * config/ia64/ia64.c (stops_p): Added explicit initialization.
15304 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
15305 ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
15306 ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
ea13ae4c 15307 ia64_sched_finish_global): New static functions to implement
15308 hooks from gcc_target.sched.
15309 (spec_check_no, max_uid, pending_data_specs): New static variables.
f3c616bc 15310 (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
ea13ae4c 15311 ia64_spec_check_src_p): New static functions.
f3c616bc 15312 (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
15313 (TARGET_SCHED_ADJUST_COST): Removed.
15314 (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
ea13ae4c 15315 TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
15316 TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
15317 TARGET_SCHED_GEN_CHECK,
15318 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
f3c616bc 15319 TARGET_SCHED_SET_SCHED_FLAGS): New macros.
15320 (update_set_flags, group_barrier_needed, set_src_needs_barrier):
ea13ae4c 15321 Fixed to handle speculation checks.
f3c616bc 15322 (rtx_needs_barrier): Fixed to handle speculative loads and
15323 their checks.
15324 (ia64_variable_issue): Added code to count speculative loads and their
15325 checks.
15326 (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
15327 speculative loads.
15328 (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
15329 New enumerations.
15330 (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
15331 New constants.
15332 (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
ea13ae4c 15333 (ia64_reorg): Reset stops_p to NULL after it is freed.
f3c616bc 15334 * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
ea13ae4c 15335 UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
f3c616bc 15336 (itanium_class): chk_s renamed to chk_s_i. New constants: chk_s_f,
15337 chk_a.
15338 (data_speculative, control_speculative, check_load): New attributes.
15339 (mov<mode>_advanced, mov<mode>_speculative,
15340 mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
15341 zero_extend<mode>di2_speculative,
15342 zero_extend<mode>di2_speculative_advanced): New patterns for
15343 data and control speculative loads.
15344 (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
15345 check loads.
15346 (advanced_load_check_clr_<mode>, speculation_check_<mode>):
15347 New pattern for data and control speculation checks.
ea13ae4c 15348 (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
15349 ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
15350 reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
15351 Auxiliary definitions for the patterns.
f3c616bc 15352 * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
15353 1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
15354 constraints.
ea13ae4c 15355 (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
f3c616bc 15356 for speculation.
15357 (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
15358 * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
ea13ae4c 15359 2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
15360 New resource constraints.
15361 (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
f3c616bc 15362 for speculation.
15363 (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
15364 * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
15365 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
15366 msched-in-control-spec, msched-ldc, msched-control-ldc,
15367 msched-spec-verbose, msched-prefer-non-data-spec-insns,
15368 msched-prefer-non-control-spec-insns,
ea13ae4c 15369 msched-count-spec-in-critical-path): New flags to tune speculative
15370 scheduling.
15371 * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
f3c616bc 15372 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
15373 msched-in-control-spec, msched-ldc, msched-control-ldc,
15374 msched-spec-verbose, msched-prefer-non-data-spec-insns,
15375 msched-prefer-non-control-spec-insns,
ea13ae4c 15376 msched-count-spec-in-critical-path): Document new flags.
15377
6a1cdb4d 153782006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15379
f3c616bc 15380 * target.h (struct spec_info_def): New opaque declaration.
15381 (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,
15382 speculate_insn, needs_block_p, gen_check,
15383 first_cycle_multipass_dfa_lookahead_guard_spec, set_sched_flags.
15384 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
15385 TARGET_SCHED_H_I_D_EXTENDED, TARGET_SCHED_SPECULATE_INSN,
15386 TARGET_SCHED_NEEDS_BLOCK_P, TARGET_SCHED_GEN_CHECK,
15387 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
15388 TARGET_SCHED_SET_SCHED_FLAGS): New macros to initialize fields in
15389 gcc_target.sched.
15390 (TARGET_SCHED): Use new macros.
15391 * rtl.h (copy_DEPS_LIST_list): New prototype.
15392 * sched-int.h (struct sched_info): Change signature of new_ready field,
6a1cdb4d 15393 adjust all initializations. New fields: add_remove_insn,
f3c616bc 15394 begin_schedule_ready, add_block, advance_target_bb, fix_recovery_cfg,
6a1cdb4d 15395 region_head_or_leaf_p.
f3c616bc 15396 (struct spec_info_def): New structure declaration.
15397 (spec_info_t): New typedef.
15398 (struct haifa_insn_data): New fields: todo_spec, done_spec, check_spec,
15399 recovery_block, orig_pat.
15400 (glat_start, glat_end): New variables declaraions.
15401 (TODO_SPEC, DONE_SPEC, CHECK_SPEC, RECOVERY_BLOCK, ORIG_PAT):
6a1cdb4d 15402 New access macros.
f3c616bc 15403 (enum SCHED_FLAGS): New constants: SCHED_RGN, SCHED_EBB,
15404 DETACH_LIFE_INFO, USE_GLAT.
15405 (enum SPEC_SCHED_FLAGS): New enumeration.
15406 (NOTE_NOTE_BB_P): New macro.
15407 (extend_dependency_caches, xrecalloc, unlink_bb_notes, add_block,
15408 attach_life_info, debug_spec_status, check_reg_live): New functions.
15409 (get_block_head_tail): Change signature to get_ebb_head_tail, adjust
15410 all uses in ddg.c, modulo-sched.c, haifa-sched.c, sched-rgn.c,
15411 sched-ebb.c
6a1cdb4d 15412 (get_dep_weak, ds_merge): Prototype functions from sched-deps.c .
f3c616bc 15413 * ddg.c (get_block_head_tail): Adjust all uses.
15414 * modulo-sched.c (get_block_head_tail): Adjust all uses.
6a1cdb4d 15415 (sms_sched_info): Initialize new fields.
15416 (contributes_to_priority): Removed.
f3c616bc 15417 * haifa-sched.c (params.h): New include.
6a1cdb4d 15418 (get_block_head_tail): Adjust all uses.
f3c616bc 15419 (ISSUE_POINTS): New macro.
15420 (glat_start, glat_end): New global variables.
15421 (spec_info_var, spec_info, added_recovery_block_p, nr_begin_data,
6a1cdb4d 15422 nr_be_in_data, nr_begin_control, nr_be_in_control, bb_header,
15423 old_last_basic_block, before_recovery, current_sched_info_var,
15424 rgn_n_insns, luid): New static variables.
f3c616bc 15425 (insn_cost1): New function. Move logic from insn_cost to here.
15426 (find_insn_reg_weight1): New function. Move logic from
15427 find_insn_reg_weight to here.
15428 (reemit_notes, move_insn, max_issue): Change signature.
15429 (move_insn1): Removed.
15430 (extend_h_i_d, extend_ready, extend_global, extend_all, init_h_i_d,
15431 extend_bb): New static functions to support extension of scheduler's
15432 data structures.
15433 (generate_recovery_code, process_insn_depend_be_in_spec,
15434 begin_speculative_block, add_to_speculative_block,
15435 init_before_recovery, create_recovery_block, create_check_block_twin,
15436 fix_recovery_deps): New static functions to support
15437 generation of recovery code.
15438 (fix_jump_move, find_fallthru_edge, dump_new_block_header,
15439 restore_bb_notes, move_block_after_check, move_succs): New static
15440 functions to support ebb scheduling.
15441 (init_glat, init_glat1, attach_life_info1, free_glat): New static
15442 functions to support handling of register live information.
15443 (associate_line_notes_with_blocks, change_pattern, speculate_insn,
6a1cdb4d 15444 sched_remove_insn, clear_priorities, calc_priorities, bb_note,
15445 add_jump_dependencies): New static functions.
f3c616bc 15446 (check_cfg, has_edge_p, check_sched_flags): New static functions for
6a1cdb4d 15447 consistancy checking.
15448 (debug_spec_status): New function to call from debugger.
15449 (priority): Added code to handle speculation checks.
15450 (rank_for_schedule): Added code to distinguish speculative instructions.
15451 (schedule_insn): Added code to handle speculation checks.
15452 (unlink_other_notes, rm_line_notes, restore_line_notes, rm_other_notes):
15453 Fixed to handle ebbs.
f3c616bc 15454 (move_insn): Added code to handle ebb scheduling.
6a1cdb4d 15455 (max_issue): Added code to use ISSUE_POINTS of instructions.
f3c616bc 15456 (choose_ready): Added code to choose between speculative and
15457 non-speculative instructions.
15458 (schedule_block): Added code to handle ebb scheduling and scheduling of
15459 speculative instructions.
15460 (sched_init): Initialize new variables.
15461 (sched_finish): Free new variables. Print statistics.
15462 (try_ready): Added code to handle speculative instructions.
15463 * lists.c (copy_DEPS_LIST_list): New function.
15464 * sched-deps.c (extend_dependency_caches): New function. Move logic
15465 from create_dependency_caches to here.
6a1cdb4d 15466 (get_dep_weak, ds_merge): Make global.
f3c616bc 15467 * genattr.c (main): Code to output prototype for
15468 dfa_clear_single_insn_cache.
15469 * genautomata.c (DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME): New macros.
15470 (output_dfa_clean_insn_cache_func): Code to output
15471 dfa_clear_single_insn_cache function.
15472 * sched-ebb.c (target_n_insns): Remove. Adjust all users to use
6a1cdb4d 15473 n_insns.
f3c616bc 15474 (can_schedule_ready_p, fix_basic_block_boundaries, add_missing_bbs):
15475 Removed.
15476 (n_insns, dont_calc_deps, ebb_head, ebb_tail, last_bb):
15477 New static variables.
15478 (begin_schedule_ready, add_remove_insn, add_block1, advance_target_bb,
6a1cdb4d 15479 fix_recovery_cfg, ebb_head_or_leaf_p): Implement hooks from
15480 struct sched_info.
f3c616bc 15481 (ebb_sched_info): Initialize new fields.
6a1cdb4d 15482 (get_block_head_tail): Adjust all uses.
15483 (compute_jump_reg_dependencies): Fixed to use glat_start.
15484 (schedule_ebb): Code to remove unreachable last block.
f3c616bc 15485 (schedule_ebbs): Added code to update register live information.
15486 * sched-rgn.c (region_sched_info): Initialize new fields.
6a1cdb4d 15487 (get_block_head_tail): Adjust all uses.
15488 (last_was_jump): Removed. Adjust users.
f3c616bc 15489 (begin_schedule_ready, add_remove_insn, insn_points, extend_regions,
6a1cdb4d 15490 add_block1, fix_recovery_cfg, advance_target_bb, region_head_or_leaf_p):
15491 Implement new hooks.
f3c616bc 15492 (check_dead_notes1): New static function.
15493 (struct region): New fields: dont_calc_deps, has_real_ebb.
15494 (RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB): New access macros.
15495 (BB_TO_BLOCK): Fixed to handle EBBs.
15496 (EBB_FIRST_BB, EBB_LAST_BB): New macros.
15497 (ebb_head): New static variable.
15498 (debug_regions, contributes_to_priority): Fixed to handle EBBs.
15499 (find_single_block_regions, find_rgns, find_more_rgns): Initialize
6a1cdb4d 15500 new fields.
15501 (compute_dom_prob_ps): New assertion.
f3c616bc 15502 (check_live_1, update_live_1): Fixed to work with glat_start instead of
15503 global_live_at_start.
6a1cdb4d 15504 (init_ready_list): New assertions.
15505 (can_schedule_ready_p): Split update code to begin_schedule_ready.
15506 (new_ready): Add support for BEGIN_CONTROL speculation.
f3c616bc 15507 (schedule_insns): Fixed code that updates register live information
15508 to handle EBBs.
15509 (schedule_region): Fixed to handle EBBs.
6a1cdb4d 15510 (init_regions): Use extend_regions and check_dead_notes1.
f3c616bc 15511 * params.def (PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
15512 PARAM_SCHED_SPEC_PROB_CUTOFF): New parameters.
6a1cdb4d 15513 * doc/tm.texi (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_H_I_D_EXTENDED,
15514 TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
15515 TARGET_SCHED_GEN_CHECK,
15516 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
15517 TARGET_SCHED_SET_SCHED_FLAGS): Document.
f3c616bc 15518 * doc/invoke.texi (max-sched-insn-conflict-delay,
6a1cdb4d 15519 sched-spec-prob-cutoff): Document.
15520
e4897000 155212006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15522
f3c616bc 15523 * sched-int.h (struct haifa_insn_data): New fields: resolved_deps,
e4897000 15524 inter_tick, queue_index.
15525 (struct sched_info): Change signature of init_ready_list field.
15526 Adjust all initializations.
15527 (RESOLVED_DEPS): New access macro.
15528 (ready_add): Remove prototype.
15529 (try_ready): Add prototype.
15530 * sched-rgn.c (init_ready_list): Use try_ready.
15531 (schedule_region): Initialize
15532 current_sched_info->{sched_max_insns_priority, queue_must_finish_empty}.
15533 * sched-ebb.c (new_ready): Remove. Adjust ebb_sched_info.
15534 (init_ready_list): Use try_ready.
15535 (schedule_ebb): Initialize current_sched_info->sched_max_insns_priority.
15536 * lists.c (remove_list_elem): Remove `static'.
15537 (remove_free_INSN_LIST_elem): New function.
15538 * rtl.h (remove_list_elem, remove_free_INSN_LIST_elem): Add prototypes.
15539 * haifa-sched.c (INTER_TICK, QUEUE_INDEX): New macros.
15540 (INVALID_TICK, MIN_TICK, QUEUE_SCHEDULED, QUEUE_NOWHERE, QUEUE_READY):
15541 New constants.
15542 (readyp): New variable.
15543 (queue_remove, ready_remove_insn, fix_inter_tick, fix_tick_ready,
15544 change_queue_index, resolve_dep): New static functions.
15545 (try_ready): New function. Adjust callers in sched-rgn.c and
15546 sched-ebb.c to use it instead of ready_add.
15547 (clock_var): Move at the begining of file.
15548 (rank_for_schedule): Fix typo.
15549 (queue_insn): Add assertion. Handle QUEUE_INDEX.
15550 (ready_lastpos): Enforce assertion.
15551 (ready_add): Make it static. Handle QUEUE_INDEX. Add new argument,
15552 update all callers.
15553 (ready_remove_first, ready_remove): Handle QUEUE_INDEX.
15554 (schedule_insn): Rewrite to use try_ready and resolve_dep.
15555 (queue_to_ready): Use free_INSN_LIST_list.
15556 (early_queue_to_ready): Fix typo.
15557 (schedule_block): Init readyp. Move init_ready_list call after the
15558 initialization of clock_var. Fix error in rejecting insn by
15559 targetm.sched.dfa_new_cycle. Add call to fix_inter_tick. Remove code
15560 that previously corrected INSN_TICKs. Add code for handling
15561 QUEUE_INDEX.
15562 (set_priorities): Fix typo.
15563 (sched_init): Initialize INSN_TICK, INTER_TICK and QUEUE_INDEX.
15564 Clarify comment and code that keeps current_sched_info->next_tail
15565 non-null.
15566
4bfe0e7b 155672006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15568
15569 * sched-rgn.c (extend_rgns): New static function.
15570 (find_rgns): Use it.
15571 (gather_region_statistics, print_region_statistics): New static
15572 functions.
15573 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): New parameter.
f3c616bc 15574 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
4bfe0e7b 15575
4d64d9a4 155762006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
f3c616bc 15577 Andrey Belevantsev <abel@ispras.ru>
4d64d9a4 15578
15579 * ddg.c (build_intra_loop_deps): Adjust add_forward_dependence call.
f3c616bc 15580 * lists.c (unused_deps_list): New variable.
d86ccd2c 15581 (free_list): Add assertions to verify the proper distinguishing
f3c616bc 15582 between INSN_LISTs and DEPS_LISTs.
15583 (find_list_elem, remove_list_elem, remove_list_node): New static
4d64d9a4 15584 functions.
f3c616bc 15585 (alloc_DEPS_LIST, free_DEPS_LIST, free_DEPS_LIST_node,
15586 remove_free_INSN_LIST_elem, remove_free_DEPS_LIST_elem,
15587 remove_free_INSN_LIST_node, remove_free_DEPS_LIST_node): New functions.
15588 (alloc_INSN_LIST): Assert that the list we're working on is indeed
4d64d9a4 15589 an INSN_LIST.
f3c616bc 15590 (free_INSN_LIST_node): Likewise.
4d64d9a4 15591 * modulo-sched.c (current_sched_info): Initialize flags field.
15592 * reg-notes.def: Exchange DEP_ANTI and DEP_OUTPUT.
15593 * rtl.def (DEPS_LIST): Define.
f3c616bc 15594 * rtl.h: Declare new functions from lists.c.
15595 * sched-deps.c (spec_dependency_cache): New static variable.
15596 (maybe_add_or_update_back_dep_1, add_back_dep): New static functions.
15597 (add_dependence): Change return type to void. Move the logic to ...
15598 (add_or_update_back_dep_1): ... here. Handle speculative dependencies.
15599 (delete_all_dependences): Add comment about forward_dependency_cache.
4d64d9a4 15600 Handle spec_dependency_cache. Handle DEPS_LISTs.
f3c616bc 15601 (fixup_sched_groups): Clarify the change of priority of output
15602 and anti dependencies.
15603 (sched_analyze_2): Adjust add_dependence calls to create data
4d64d9a4 15604 speculative dependence.
f3c616bc 15605 (add_forward_dependence): Renamed to add_forw_dep, change prototype.
4d64d9a4 15606 Adjust all callers. Handle DEPS_LISTS.
f3c616bc 15607 (compute_forward_dependences): Use add_forw_dep. Sort LOG_LINKs in
4d64d9a4 15608 presence of speculation.
f3c616bc 15609 (init_dependency_caches, free_dependency_caches):
4d64d9a4 15610 Handle spec_dependency_cache.
f3c616bc 15611 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep, delete_forw_dep,
4d64d9a4 15612 estimate_dep_weak, get_dep_weak, ds_merge, check_dep_status):
15613 New static functions.
f3c616bc 15614 (add_or_update_back_dep, add_or_update_back_forw_dep,
4d64d9a4 15615 add_back_forw_dep, delete_back_forw_dep): New functions.
15616 * sched-int.h (ds_t, dw_t): New typedefs.
15617 (struct sched_info): Add new field flags.
15618 (struct haifa_insn_data): Add new bitfield has_internal_dep.
15619 Prototype new sched-deps.c functions.
f3c616bc 15620 (HAS_INTERNAL_DEP, DEP_STATUS): New access macros.
4d64d9a4 15621 (BITS_PER_DEP_STATUS, BITS_PER_DEP_WEAK, DEP_WEAK_MASK, MAX_DEP_WEAK,
15622 MIN_DEP_WEAK, NO_DEP_WEAK, UNCERTAIN_DEP_WEAK, BEGIN_DATA, BE_IN_DATA,
15623 BEGIN_CONTROL, BE_IN_CONTROL, BEGIN_SPEC, DATA_SPEC, CONTROL_SPEC,
15624 SPECULATIVE, BE_IN_SPEC, FIRST_SPEC_TYPE, LAST_SPEC_TYPE,
15625 SPEC_TYPE_SHIFT, DEP_TRUE, DEP_OUTPUT, DEP_ANTI, DEP_TYPES, HARD_DEP):
15626 New constants.
f3c616bc 15627 (enum SPEC_TYPES_OFFSETS, enum DEPS_ADJUST_RESULT, enum SCHED_FLAGS):
4d64d9a4 15628 New enums.
15629 * sched-rgn.c (current_sched_info): Initialize flags field.
15630 (schedule_insns): Initialize current_sched_info before the sched_init
15631 call.
15632 * sched-ebb.c (current_sched_info): Initialize flags field.
15633 (add_deps_for_risky_insns): Use control_flow_insn_p instead of JUMP_P.
15634 Call add_or_update_back_dep instead of add_dependence.
15635 Create control speculative dependencies.
15636 (schedule_insns): Initialize current_sched_info before the sched_init
15637 call.
15638
439ce31f 156392006-03-16 Kaz Kojima <kkojima@gcc.gnu.org>
15640
15641 * config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
15642 fs->signal_frame.
15643 (sh_fallback_frame_state): Likewise.
15644
3da996b9 156452006-03-15 Geoffrey Keating <geoffk@apple.com>
15646
15647 * config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
15648 Do switch on default_use_cxa_atexit.
15649 (powerpc*-*-darwin*): Build crt2.o on powerpc.
15650 * config/darwin-crt3.o: New.
15651 * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default
15652 to 10.3. Pass '-multiply_defined suppress' if crt3.o is in use.
15653 (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate
15654 OS version.
15655 * config/rs6000/t-darwin: Move crt2.o building to here.
15656 * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update
15657 Mac OS version for using __cxa_get_exception_ptr. Don't test versions
15658 of __cxa_atexit.
15659
952259d9 156602006-03-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15661
15662 * config/vax/vax.c (nonindexed_address_p): Change logical negation
15663 from '! xxx' to '!xxx' for coding-style conformance.
15664 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Likewise.
15665 (EXTRA_CONSTRAINT): Likewise.
15666 * config/vax/vax.md (four unnamed insns): Likewise.
d86ccd2c 15667
acc677e9 156682006-03-15 Paul Brook <paul@codesourcery.com>
15669
15670 * config/arm/arm.c (minipool_pad): New.
84901a95 15671 (add_minipool_forward_ref): Include pool alignment padding in address
acc677e9 15672 calculation.
15673 (push_minipool_fix): Set minipool_pad.
15674 (minipool_pad): Ditto.
15675
66a61c7f 156762006-03-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15677
15678 * config/vax/vax.c (split_quadword_operands): Use MEM_P()
15679 instead of GET_CODE() == MEM and REG_P() instead of
15680 GET_CODE() == REG.
15681 (print_operand_address): Likewise.
15682 (vax_address_cost): Likewise.
15683 (vax_rtx_costs): Likewise.
15684 (vax_notice_update_cc): Likewise.
15685 (vax_output_int_add): Likewise.
15686 (INDEX_REGISTER_P): Likewise.
15687 (BASE_REGISTER_P): Likewise.
15688 (nonindexed_address_p): Likewise.
15689 (vax_mode_dependent_address_p): Likewise.
15690 * config/vax/vax.h (EXTRA_CONSTRAINT): Likewise.
15691 (PRINT_OPERAND): Likewise.
15692 * config/vax/vax.md (ashlsi3): Likewise.
15693 (ashlsi3): Likewise.
15694 (some more unnamed insns): Likewise.
15695
bfad1dc2 156962006-03-15 Kazu Hirata <kazu@codesourcery.com>
15697
15698 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Make it an
15699 iterator-style macro.
15700 (mark_control_dependent_edges_necessary): Update the use of
15701 EXECUTE_IF_CONTROL_DEPENDENT.
15702
3d533137 157032006-03-15 J"orn Rennecke <joern.rennecke@st.com>
15704
15705 * config/sh/predicates.md (cache_address_operand): Special.
15706 (ua_address_operand): Likewise.
15707
340690bf 157082006-03-15 Zdenek Dvorak <dvorakz@suse.cz>
15709
15710 * haifa-sched.c (unlink_other_notes, reemit_notes): Do not handle
15711 loop notes.
15712 * sched-deps.c (sched_analyze_insn, sched_analyze): Ditto.
15713
79bd7049 157142006-03-15 Andreas Schwab <schwab@suse.de>
15715
15716 * gensupport.c (identify_predicable_attribute): Don't free p_false
15717 when it is still in use.
15718
4c3202f0 157192006-03-15 Eric Botcazou <ebotcazou@libertysurf.fr>
15720
15721 * config.gcc (default with_cpu setting) <sparc*-*-*>: Do not modify
15722 the default setting here.
15723
0afae420 157242006-03-14 Steven Bosscher <stevenb.gcc@gmail.com>
15725
15726 * tree-pass.h (pass_cfg): Remove.
15727 * alias.c (rest_of_handle_cfg, pass_cfg): Remove.
15728 * passes.c (pass_cfg): Don't run it.
15729
9500df50 157302006-03-14 Kazu Hirata <kazu@codesourcery.com>
15731
15732 * Makefile.in (reg-stack.o): Don't depend on gt-reg-stack.h.
15733 * reg-stack.c (stack_regs_mentioned_data): Change the type to
15734 VEC(char,heap) *.
15735 (stack_regs_mentioned): Update the uses of
15736 stack_regs_mentioned_data. Don't access the array beyond its
15737 end.
15738 (reg_to_stack): Update the uses of stack_regs_mentioned_data.
15739 Don't include gt-reg-stack.h.
15740
139086ed 15741 * config/bfin/bfin.h (UNALIGNED_WORD_ASM_OP): Remove.
15742 * system.h (UNALIGNED_WORD_ASM_OP): Poison.
15743
a2eceec3 15744 * combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): Remove.
15745
a50d6416 15746 PR middle-end/26684
15747 * reg-stack.c (stack_regs_mentioned_data): Put it undef #ifdef
15748 STACK_REGS.
15749
08ca9fd5 157502006-03-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15751
15752 * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Fix typo.
15753
21658abb 157542006-03-14 Richard Guenther <rguenther@suse.de>
15755
15756 PR tree-optimization/26672
15757 * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in
15758 SSA form.
15759
4b4d4c92 157602006-03-14 Richard Guenther <rguenther@suse.de>
15761
15762 PR tree-optimization/26667
15763 * ipa-inline.c (cgraph_check_inline_limits): Walk the correct
15764 node for the callees. Always allow inlining if it will shrink
15765 the function size.
15766
3c15318e 157672006-03-14 Richard Guenther <rguenther@suse.de>
15768
15769 PR middle-end/26659
15770 * builtins.c (get_pointer_alignment): Prefer alignment
15771 information from decls over that from types.
15772
d0207a4d 157732006-03-14 Andrew Pinski <pinskia@physics.uc.edu>
15774
15775 PR target/26657
15776 * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.
15777
671169ac 157782006-03-14 Joseph S. Myers <joseph@codesourcery.com>
15779
15780 * config/rs6000/rs6000.opt (mdlmzb): New option.
15781 (msched-prolog, msched-epilog): Use Var not Mask.
15782 * doc/invoke.texi (-mdlmzb): Document.
15783 * config/rs6000/rs6000.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
15784 MASK_SCHED_PROLOG.
15785 (rs6000_override_options): Enable -mdlmzb for 405 and 440.
15786 * config/rs6000/rs6000.md: Add dlmzb support for 405 and 440.
15787
6acc9746 157882006-03-13 Uttam Pawar <uttamp@us.ibm.com>
15789
15790 PR rtl-optimization/25739
15791 * bt-load.c (augment_live_range): Free tos pointer.
15792
15793 * gensupport.c (identify_predicable_attribute): Free
15794 p_false pointer.
15795 * gcov.c (create_file_names): Free name pointer.
15796
a4047043 157972006-03-13 Roger Sayle <roger@eyesopen.com>
15798
15799 PR middle-end/26557
15800 * stmt.c (emit_case_nodes): Handle the case where the index is a
15801 CONST_INT, where the comparison mode is specified by the index type.
15802
a8bf5f4a 158032006-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15804
15805 * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Define when CRTSTUFFS_O
15806 is defined.
15807
754a0dcd 158082006-03-13 Richard Sandiford <richard@codesourcery.com>
15809
15810 * config/mips/mips.md (*branch_fp): Use %Z2 for the condition.
15811 (*branch_fp_inverted): Likewise.
15812
6d63fc03 158132006-03-13 Jakub Jelinek <jakub@redhat.com>
15814
15815 PR middle-end/25989
15816 * omp-low.c (expand_omp_for_generic): Mark istart0
15817 and iend0 as addressable.
15818
624f1f0d 158192006-03-13 Jie Zhang <jie.zhang@analog.com>
15820
15821 * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
15822
04dde933 158232006-03-13 Jeff Law <law@redhat.com>
15824
15825 * tree-vrp.c (stmt_interesting_for_vrp): Some statements with
15826 virtual operands are interesting.
15827 (vrp_visit_stmt): Corresponding changes.
15828
7e72504c 158292006-03-13 Bernd Schmidt <bernd.schmidt@analog.com>
15830
15831 * config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
15832 of RETS.
af228595 15833 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
15834 TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
15835 * config/bfin/crti.S: Use it instead of __PIC__.
15836 * config/bfin/crtn.S: Likewise.
7e72504c 15837
ff9e05e9 15838 * config/bfin/bfin.md (call_value_symbol, sibcall_value_symbol,
15839 call_symbol, sibcall_symbol): Disallow if TARGET_ID_SHARED_LIBRARY,
15840 not if flag_pic.
15841 Lose 'G' modifier for call operand.
15842 * config/bfin/bfin.c (print_operand) <case SYMBOL_REF>: Don't
15843 recognize 'G' modifier.
15844
b655fbd3 158452006-03-13 Eric Botcazou <ebotcazou@adacore.com>
15846
15847 PR middle-end/18859
15848 * gimplify.c (gimplify_switch_expr): Discard empty ranges.
15849 * stmt.c (expand_case): Likewise.
15850
1e41d0e2 158512006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
15852
15853 PR rtl-optimization/26254
15854 * loop-invariant.c (seq_insns_valid_p): New function.
15855 (move_invariant_reg): Only emit new code if it is valid.
15856
588aadb7 158572006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
15858
15859 * cfgrtl.c (last_loop_beg_note, back_edge_of_syntactic_loop_p):
15860 Removed.
15861 (force_nonfallthru_and_redirect): Do not use last_loop_beg_note.
15862 (rtl_split_edge): Do not use back_edge_of_syntactic_loop_p.
15863 (commit_one_edge_insertion): Do not look for loop notes.
15864
d5bd32d8 158652006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
15866
15867 * jump.c (follow_jumps): Do not check for loop notes. Move check for
15868 flag_test_coverage out of loop.
15869
d84aa71e 158702006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
15871
15872 * final.c (shorten_branches): Remove outdated comment, and turn
15873 the if branch that guards it to continue.
15874
58b3f902 158752006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
15876
15877 * cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
15878 * cfgloop.h (struct loop): Remove unused fields.
15879
4bd4c502 158802006-03-13 Kazu Hirata <kazu@codesourcery.com>
15881
15882 * doc/invoke.texi (-fdump-rtl-loop): Remove.
d86ccd2c 15883 (-dL, -fdump-rtl-loop2): Update the dump file names
4bd4c502 15884
c2bdb197 15885 * doc/invoke.texi: Update dump file names.
15886
5018c250 158872006-03-12 Steven Bosscher <stevenb.gcc@gmail.com>
15888
15889 * predict.c (estimate_probability): Remove.
15890 * profile.c (rest_of_handle_branch_prob, pass_branch_prob): Remove.
15891 * basic-block.h (estimate_probability): Remove prototype.
15892 * passes.c (finish_optimization_passes): Dump branch prediction or
15893 profiling heuristics to the .profile tree dump.
15894 (init_optimization_passes): Unqueue pass_branch_prob.
15895
15896 * doc/invoke.texi (-fdump-rtl-bp): Remove.
15897
158733a6 158982006-03-11 Steven Bosscher <stevenb.gcc@gmail.com>
15899
15900 * rtl.def (LABEL_REF): Remove the field for LABEL_NEXTREF.
15901 * rtl.h (LABEL_NEXTREF): Remove field accessor.
15902
26d04e5f 159032006-03-11 Eric Botcazou <ebotcazou@adacore.com>
15904
15905 * function.h (frame_offset_overflow): Declare.
15906 * function.c (frame_offset_overflow): New function.
15907 (assign_stack_local_1): Call it to detect that the offset overflows.
15908 * cfgexpand.c (alloc_stack_frame_space): Likewise.
15909
49166fc3 159102006-03-11 Steven Bosscher <stevenb.gcc@gmail.com>
15911
15912 * config/sh/sh.c: Include alloc-pool.h.
15913 (label_ref_list_pool): New alloc pool.
15914 (label_ref_list_t): New type for lists of labels.
15915 (struct pool_node): Make wend a label_ref_list_t.
15916 (add_constant): Use the new type, eradicate LABEL_NEXTREF
15917 references.
15918 (dump_table): Likewise.
15919 (sh_reorg): Set up the alloc pool before using add_constant and
15920 dump_table, and destroy it when finishing.
15921
e3cabaa6 159222006-03-11 Richard Sandiford <richard@codesourcery.com>
15923
15924 * config/mips/mips.c: Remove redundant comment.
15925
d217355e 159262006-03-10 Jason Merrill <jason@redhat.com>
15927
15928 PR c/26004
d86ccd2c 15929 * gimplify.c (gimplify_modify_expr_rhs): Don't do return slot opt if
d217355e 15930 the target was declared 'register'.
15931
19dd6f8c 159322006-03-10 Adam Nemet <anemet@caviumnetworks.com>
15933
15934 * genpreds.c (write_insn_constraint_len): Change definition of
15935 insn_constraint_len to return size_t to match the declaration.
15936
e282424f 159372006-03-10 DJ Delorie <dj@redhat.com>
15938
15939 * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Bit numbers
15940 start at zero.
15941 (m32c_expand_insv): Fix test for an AND mask.
15942
1eee24cf 159432006-03-10 Richard Guenther <rguenther@suse.de>
15944
15945 PR middle-end/26565
15946 * builtins.c (get_pointer_alignment): Handle component
15947 references for field alignment.
15948
65a1f1e9 159492006-03-10 J"orn Rennecke <joern.rennecke@st.com>
15950
15951 * config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h
15952 when building with libgloss.
15953 (sh*elf): Implement --without-fp option.
d86ccd2c 15954 (sh64-superh-linux*): Don't multilib.
65a1f1e9 15955
300b0e08 159562006-03-10 J"orn Rennecke <joern.rennecke@st.com>
15957
15958 * struct-equiv.c (rtx_equiv_p): Fix POST_MODIFY case.
15959
1e4b21e3 159602006-03-09 Andrew Pinski <pinskia@physics.uc.edu>
15961
15962 * tree-ssa-phiopt.c (tree_ssa_phiopt): Add cfgchanged variable.
15963 Set it when one of the replacement functions returned true.
15964 Return TODO_cleanup_cfg if cfgchanged is true.
15965 (pass_phiopt) <todo_flags_finish>: Remove TODO_cleanup_cfg.
15966
6b84145c 159672006-03-09 Adam Nemet <anemet@caviumnetworks.com>
15968
15969 * combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
15970 instead of gen_lowpart.
15971
fe2ed30d 159722006-03-09 Richard Sandiford <richard@codesourcery.com>
15973
15974 * config/mips/mips-protos.h (mips_output_conditional_branch): Change
15975 interface.
15976 (mips_output_order_conditional_branch): Declare.
15977 * config/mips/mips.h (MIPS_BRANCH): New macro.
15978 * config/mips/mips.c (gen_conditional_branch): Use VOIDmode
15979 for the comparison. Use gen_condjump.
15980 (mips_output_conditional_branch): Rework interface to take the
15981 asm templates for a direct branch and the inverse of a direct branch.
15982 (mips_output_order_conditional_branch): New function.
15983 (mips_builtin_branch_and_move): New function.
15984 (mips_expand_builtin_compare): Use it. Use VOIDmode for the
15985 branch condition. Use gen_single_cc as the condition for
15986 __builtin_mips_upper_* or __builtin_mips_lower_*.
15987 (mips_expand_builtin_bposge): Use mips_builtin_branch_and_move.
15988 Use VOIDmode for the branch condition.
15989 * config/mips/predicates.md (order_operator): New predicate.
15990 * config/mips/mips.md (UNSPEC_SINGLE_CC): New constant.
15991 (branch_fp): Rename to...
15992 (*branch_fp): ...this. Remove mode from comparison operator.
15993 Use new mips_output_conditional_branch interface.
15994 (branch_fp_inverted): Rename to...
15995 (*branch_fp_inverted): ...this and update as for *branch_fp.
15996 (*branch_zero<mode>): Rename to...
15997 (*branch_order<mode>): ...this. Remove mode from comparison operator.
15998 Use mips_output_order_conditional_branch. Only accept ordered
d86ccd2c 15999 comparisons.
fe2ed30d 16000 (*branch_zero<mode>_inverted): Rename to...
16001 (*branch_order<mode>_inverted): ...this and update as for
16002 *branch_order<mode>.
16003 (*branch_equality<mode>): Accept zero as the second operand to
16004 the equality operator. Use the new mips_output_conditional_branch
16005 interface.
16006 (*branch_equality<mode>_inverted): Likewise.
16007 (condjump): New expander.
16008 * config/mips/mips-dsp.md (mips_bposge): Remove mode from comparison
16009 operator.
16010 * config/mips/mips-ps-3d.md (bc1any4t, bc1any4f): Likewise.
16011 (bc1any2t, bc1any2f): Likewise.
16012 (single_cc): New expander.
16013 (*branch_upper_lower, *branch_upper_lower_inverted): New patterns.
16014
595e9041 160152006-03-09 Richard Sandiford <richard@codesourcery.com>
16016
16017 * doc/md.texi: Update documentation of MIPS constraints.
16018 * config/mips/constraints.md: New file.
16019 * config/mips/mips.md: Include it.
16020 * config/mips/mips.c (mips_char_to_class): Delete.
16021 (override_options): Don't initialize mips_char_to_class.
16022 * config/mips/mips.h (mips_char_to_class): Delete.
16023 (REG_CLASS_FROM_LETTER): Delete.
16024 (CONST_OK_FOR_LETTER_P): Delete.
16025 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16026 (EXTRA_CONSTRAINT_Y): Delete.
16027 (EXTRA_CONSTRAINT_STR): Delete.
16028 (CONSTRAINT_LEN): Delete.
16029 (EXTRA_MEMORY_CONSTRAINT): Delete.
16030
8487df40 160312006-03-09 Diego Novillo <dnovillo@redhat.com>
16032
16033 * tree-cfg.c (move_block_to_fn): Remove the statements from the
16034 original fn's eh regions.
16035
66108e20 160362006-03-09 Eric Botcazou <ebotcazou@adacore.com>
16037
16038 * fold-const.c (build_range_check): Make sure to use a valid type to
16039 apply the "(c>=low) && (c<=high) into (c-low>=0) && (c-low<=high-low)"
16040 transformation.
16041
16042 (range_predecessor): New static function.
16043 (range_successor): Likewise.
16044 (merge_ranges): Use them to compute predecessors and successors of
16045 range bounds.
16046
4e35b483 160472006-03-09 Roger Sayle <roger@eyesopen.com>
16048
16049 PR middle-end/26561
16050 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2 as
16051 X op C3, consider whether C3 overflows towards +Inf or -Inf.
16052
fedc146b 160532006-03-08 DJ Delorie <dj@redhat.com>
16054
16055 * config/m32c/addsub.md (addqi3): Disparage a0/a1.
16056 (addpsi3): Expand to include memory operands. Remove
16057 reload-specific splits.
16058 * config/m32c/bitops.md (bset_qi, bset_hi, bclr_qi): New.
16059 (andqi3_16, andhi3_16, iorqi3_16, iorhi3_16): New.
16060 (andqi3_24, andhi3_24, iorqi3_24, iorhi3_24): New.
16061 (andqi3, andhi3, iorqi3, iorhi3): Convert to expanders.
16062 (shift1_qi, shift1_hi, insv): New.
16063 * config/m32c/cond.md (cbranchqi4, cbranchhi4): Remove.
16064 (cbranch<mode>4, stzx_16, stzx_24_<mode>, stzx_reversed,
16065 cmp<mode>, b<code>, s<code>, s<code>_24, movqicc, movhicc,
16066 cond_to_int): New.
16067 * config/m32c/m32c-protos.h: Update as needed.
16068 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Don't
16069 default the Rcr, Rcl, Raw, and Ral constraints. Add Ra0 and Ra1.
16070 Fail for unrecognized R* constraints.
16071 (m32c_cannot_change_mode_class): Be more picky about pseudos.
16072 (m32c_const_ok_for_constraint_p): Add Imb, Imw, and I00.
16073 (m32c_extra_constraint_p2): Allow (mem (plus (plus fb int) int)).
16074 Add Sp constraint.
16075 (m32c_init_libfuncs): New.
16076 (m32c_legitimate_address_p): Add debug wrapper.
16077 (m32c_rtx_costs): New.
16078 (m32c_address_cost): New.
16079 (conversions): Add 'B' prefix.
16080 (m32c_print_operand): 'h' and 'H' pick lower and upper halves of
16081 operands, or word regnames for QI operands. 'B' prints bit
16082 position.
16083 (m32c_expand_setmemhi): New.
16084 (m32c_expand_movmemhi): New.
16085 (m32c_expand_movstr): New.
16086 (m32c_expand_cmpstr): New.
16087 (m32c_prepare_shift): Shift counts are limited to 16 bits at a time.
16088 (m32c_expand_neg_mulpsi3): Handle non-ints.
16089 (m32c_cmp_flg_0): New.
16090 (m32c_expand_movcc): New.
16091 (m32c_expand_insv): New.
16092 (m32c_scc_pattern): New.
16093 * config/m32c/m32c.h (reg classes): Add AO_REGS and A1_REGS. Take
16094 a0/a1 out of SIregs.
16095 (STORE_FLAG_VALUE): New.
16096 * config/m32c/m32c.md: Add unspecs for string moves. Define various mode and
16097 code macros.
16098 (no_insn): New.
16099 * config/m32c/mov.md: Make constraints more liberal.
16100 (zero_extendqihi2): Optimize r0/r1 case.
16101 * config/m32c/muldiv.md (mulpsi3): Check for intvals.
16102 * config/m32c/predicates.md (m32c_any_operand): New.
16103 (m32c_nonimmediate_operand): New.
16104 (m32c_hl_operand): New.
16105 (m32c_r3_operand): New.
16106 (ap_operand): New.
16107 (ma_operand): New.
16108 (memsym_operand): New.
16109 (memimmed_operand): New.
16110 (a_qi_operand): New.
16111 (m32c_eqne_operator): New.
16112 (m32c_1bit8_operand): New.
16113 (m32c_1bit16_operand): New.
16114 (m32c_1mask8_operand): New.
16115 (m32c_1mask16_operand): New.
16116 * config/m32c/blkmov.md: New file.
16117 * config/m32c/t-m32c (MD_FILES): Add blkmov.
16118
e817549b 161192006-03-08 Andreas Tobler <a.tobler@schweiz.ch>
16120
963e1d38 16121 * dwarf2out.c (expand_builtin_dwarf_sp_column): Make dwarf_regnum
16122 unsigned to fix signed/unsigned comparison issue in
16123 DWARF2_FRAME_REG_OUT.
16124 (expand_builtin_init_dwarf_reg_sizes): Make i unsigned to fix signed/
16125 unsigned comparison issue in DWARF2_FRAME_REG_OUT.
16126
e817549b 16127 * tree-ssa-operands.c (finalize_ssa_def_ops): Move the declaration
16128 of ptr into the ENABLE_CHECKING section.
16129
581f1885 161302006-03-08 Jeff Law <law@redhat.com>
16131
16132 * tree-vrp.c (infer_value_range): Only count pointer uses
16133 and dereferences if -fdelete-null-pointer-checks is enabled.
16134
16135 * tree-vrp.c (find_assert_locations): Infer value ranges for
16136 single use pointers, but do not create ASSERT_EXPRs for them.
16137 When a non-null range is inferred for a pointer, backwards
16138 propagate that range to other equivalent pointers through the
16139 use-def chain.
16140
352ea6ae 161412006-03-08 Paolo Bonzini <bonzini@gnu.org>
16142
16143 PR bootstrap/26500
16144 * Makefile.in (dvi, html, install-info): Invoke the corresponding
16145 language hook targets.
16146 * ada/Make-lang.in, cp/Make-lang.in, objc/Make-lang.in,
16147 objcp/Make-lang.in: Create stub rules for dvi, html, install-info
16148 if language hook targets were missing.
16149
b5b59dda 161502006-03-07 Zdenek Dvorak <dvorakz@suse.cz>
16151
16152 * tree-ssa-opfinalize.h: Removed.
16153 * Makefile.in (tree-ssa-operands.o): Remove tree-ssa-opfinalize.h
16154 dependency.
16155 * tree-ssa-operands.c: Do not include tree-ssa-opfinalize.h.
16156 (ALLOC_OPTYPE, APPEND_OP_AFTER, MOVE_HEAD_AFTER, MOVE_HEAD_TO_FREELIST,
16157 INITIALIZE_USE, add_def_op, add_use_op, add_vuse_op, add_maydef_op,
16158 add_mustdef_op, finalize_ssa_def_ops, finalize_ssa_use_ops,
16159 finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
16160 finalize_ssa_v_must_def_ops): New.
16161
ede04110 161622006-03-07 Kenneth Zadeck <zadeck@naturalbridge.com>
16163
16164 * df-scan.c: (df_bb_refs_record): Fix obvious typo with wrong
16165 block as parameter.
16166
c98ee857 161672006-03-07 Geoffrey Keating <geoffk@apple.com>
16168
c61867e3 16169 * varasm.c (assemble_end_function): Say that 'fnname' is unused.
16170
5a70bf2d 16171 * config/i386/i386.c (ix86_delegitimize_address): Handle Darwin
16172 addresses with offsets; reorganize.
16173
c98ee857 16174 * dwarf2out.c (DWARF2_FRAME_REG_OUT): Move up in file.
16175 (expand_builtin_dwarf_sp_column): Call DWARF2_FRAME_REG_OUT.
16176 (expand_builtin_init_dwarf_reg_sizes): Likewise.
16177
1e18cf39 161782006-03-08 David Billinghurst <David.Billinghurst@riotinto.com>
16179
16180 PR target/26588
16181 * config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
16182
edc6a305 161832006-03-08 Ben Elliston <bje@au.ibm.com>
16184
16185 * config/fp-bit.h (CMPtype): Typedef to a word mode integer.
16186
2a4b6f84 161872006-03-07 Aldy Hernandez <aldyh@redhat.com>
16188
16189 PR gomp/26238
16190 * doc/passes.texi (Tree-SSA passes): Document omp lowering and
16191 expansion.
16192
3c2aae8b 161932006-03-07 Richard Guenther <rguenther@suse.de>
16194
16195 PR tree-optimization/26587
16196 * tree-ssa-structalias.c (handle_ptr_arith): Handle MINUS_EXPR.
16197
841b1537 161982006-03-07 Richard Sandiford <richard@codesourcery.com>
16199
16200 * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION.
16201
2dbdc48e 162022006-03-07 Richard Sandiford <richard@codesourcery.com>
16203
16204 * hooks.c (hook_bool_mode_rtx_true): New function.
16205 * hooks.h (hook_bool_mode_rtx_true): Declare.
16206 * toplev.c (compile_file): Call output_shared_constant_pool.
16207 * varasm.c (shared_constant_pool): New variable.
16208 (assemble_start_function, assemble_end_function): Remove arguments
16209 from call to output_constant_pool.
16210 (create_constant_pool): New function, split out from...
16211 (init_varasm_status): ...here.
16212 (force_const_mem): Choose between the shared and per-function constant
16213 pools. Set current_function_uses_const_pool when reusing old entries
16214 as well as when creating new ones.
16215 (mark_constant): Ignore data argument.
16216 (mark_constants): Remove pool argument.
16217 (mark_constant_pool): Likewise. Use current_function_uses_const_pool
16218 to decide whether the function uses a constant pool.
16219 (output_constant_pool_contents): New function, split out from...
16220 (output_constant_pool): ...here.
16221 (output_shared_constant_pool): New function.
16222 (init_varasm_once): Initialize shared_constant_pool.
16223 * output.h (output_constant_pool): Delete.
16224 (output_shared_constant_pool): Declare.
16225 * config/s390/s390-protos.h (s390_output_constant_pool): Delete.
16226 * config/i386/i386.c (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Override.
16227
7e6711a1 162282006-03-06 Nick Clifton <nickc@redhat.com>
16229
16230 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove reference to
16231 flag_strength_reduce.
16232
ccfed050 162332006-03-06 Ben Elliston <bje@au.ibm.com>
16234
1eb5a89d 16235 * config.gcc: Add t-dfprules to $tmake_file for i*86-*-linux* and
16236 x86_64-*-linux* configurations.
16237
ccfed050 16238 * config/dfp-bit.h (CMPtype): Typedef to a word mode integer.
ad0d48bc 16239 (LIBGCC2_WORDS_BIG_ENDIAN): Define.
ccfed050 16240
7c568de5 162412006-03-05 Kazu Hirata <kazu@codesourcery.com>
16242
16243 * tree-ssa-threadupdate.c (rediscover_loops_after_threading):
16244 Remove.
16245 * basic-block.h: Remove the extern for
16246 rediscover_loops_after_threading.
16247
77cbebb3 16248 * cfgloop.c (cancel_loop): Make it static.
16249 * cfgloop.h: Remove the prototype for cancel_loop.
16250
fcea7c5b 16251 * flow.c (recompute_reg_usage): Make it static.
16252 * rtl.h: Remove the prototype for recompute_reg_usage.
16253
ab4605bf 16254 * function.c (use_return_register): Make it static.
16255 * function.h: Remove the prototype.
16256
2be0aefa 162572006-03-05 Kazu Hirata <kazu@codesourcery.com>
16258
16259 * recog.c (volatile_mem_p, validate_change_maybe_volatile):
16260 Remove.
16261 * recog.h: Remove the prototype for
16262 validate_change_maybe_volatile.
16263
5659dce0 162642006-03-05 Kazu Hirata <kazu@codesourcery.com>
16265
16266 * rtlanal.c (replace_reg): Remove.
16267 * rtl.h: Remove the prototype for replace_reg.
16268
03dd3bfb 162692006-03-05 Kazu Hirata <kazu@codesourcery.com>
16270
16271 * regclass.c (reg_scan_update): Remove.
16272 (reg_scan_mark_refs): Remove the last argument.
16273 * rtl.h: Remove the prototype for reg_scan_update.
16274
334ec2d8 162752006-03-04 Kazu Hirata <kazu@codesourcery.com>
16276
16277 * builtins.c, c-pragma.h, c-typeck.c, cgraph.c, cgraphunit.c,
16278 combine.c, common.opt, config/dfp-bit.c, config/i386/i386.c,
16279 config/m68k/m68k.c, config/m68k/m68k.md, config/mt/mt.c,
16280 config/mt/mt.h, config/s390/s390.md, df-core.c, df-problems.c,
16281 df-scan.c, df.h, diagnostic.c, expr.c, function.h, gimplify.c,
16282 loop-invariant.c, omp-low.c, opts.c, passes.c,
16283 rtl-factoring.c, rtlanal.c, struct-equiv.c, tree-cfgcleanup.c,
16284 tree-ssa-loop-niter.c, tree-ssa-loop-prefetch.c,
16285 tree-ssa-structalias.c, tree-ssa-threadedge.c,
16286 tree-ssa-threadupdate.c, tree-vect-patterns.c,
16287 tree-vect-transform.c, tree-vectorizer.h, tree-vrp.c,
16288 unwind-dw2.c: Fix comment typos. Follow spelling conventions.
16289
304ef384 162902006-03-04 Kazu Hirata <kazu@codesourcery.com>
16291
16292 * dwarf2out.c (dwarf2out_add_library_unit_info): Remove.
16293 * dwarf2out.h: Remove the prototype for
16294 dwarf2out_add_library_unit_info.
16295
6b6977c0 162962006-03-04 Kazu Hirata <kazu@codesourcery.com>
16297
16298 * tree.c (add_var_to_bind_expr): Remove.
16299 * tree.h: Remove the prototype for add_var_to_bind_expr.
16300
2724c347 163012006-03-04 Kazu Hirata <kazu@codesourcery.com>
16302
16303 * regclass.c (n_non_fixed_regs): Remove.
16304 (init_reg_sets_1, globalize_reg): Remove all uses of
16305 n_non_fixed_regs.
16306 * hard-reg-set.h: Remove the extern for n_non_fixed_regs.
16307
50d82c3c 163082006-03-04 Kazu Hirata <kazu@codesourcery.com>
16309
16310 * rtlanal.c (insns_safe_to_move_p): Remove.
16311 * rtl.h: Remove the prototype for insns_safe_to_move_p.
16312
f0aa697e 163132006-03-04 Kazu Hirata <kazu@codesourcery.com>
16314
16315 * expmed.c (expand_mult_add): Remove.
16316 * expr.h: Remove the prototype for expand_mult_add.
16317
706f0818 163182006-03-04 Jakub Jelinek <jakub@redhat.com>
16319
16320 * unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
16321 and REG_SAVED_VAL_EXP constants.
16322 * unwind-dw2.c (struct _Unwind_Context): Add by_value array.
16323 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
16324 Handle regs stored by value.
16325 (_Unwind_SetGRValue, _Unwind_GRByValue): New functions.
16326 (execute_cfa_program): Handle DW_CFA_val_offset,
16327 DW_CFA_val_offset_sf and DW_CFA_val_expression.
16328 (uw_update_context_1): Handle REG_SAVED_REG with regs stored by
16329 value specially. Handle REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP.
16330 (uw_install_context_1): Handle target regs stored by value.
16331
c96420f8 163322006-03-03 Daniel Berlin <dberlin@dberlin.org>
16333
16334 * tree-sra.c (tree_sra): Return todoflags;
16335 (generate_one_element): Set TODO_update_smt_usage if needed.
16336 (pass_sra): Remove TODO_update_smt_usage.
16337 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Add some
16338 parameter.
16339 (tree_ssa_forward_propagate_single_use_vars): Return
16340 TODO_update_smt_usage if we need to update SMT usage.
16341 (pass_forwprop): Remove TODO_update_smt_usage.
d86ccd2c 16342
f6255040 163432006-03-03 Diego Novillo <dnovillo@redhat.com>
16344
16345 * tree-ssa-operands.c: Tidy whitespace. Fix spelling.
16346 (correct_use_link): Remove reference to get_stmt_operands.
16347 (update_stmt_operands): Likewise.
16348 (get_modify_expr_operands): New function factored out of
16349 parse_ssa_operands and get_expr_operands.
16350 Try to create V_MUST_DEFs for LHS by default.
16351 (get_expr_operands) <case MODIFY_EXPR>: Call
16352 get_modify_expr_operands.
16353 <case ARRAY_RANGE_REF>: Handle together with ARRAY_REF.
16354 <case BIT_FIELD_REF>: Clear opf_kill_def from FLAGS.
16355 (parse_ssa_operands) <case MODIFY_EXPR>: Call
16356 get_modify_expr_operands.
16357
bd6a8ada 163582006-03-03 Kazu Hirata <kazu@codesourcery.com>
16359
16360 * tree-dfa.c (referenced_var_lookup_if_exists): Remove.
16361 * tree-flow.h: Remove the prototype for
16362 referenced_var_lookup_if_exists.
16363
6e7b5d10 163642006-03-03 Steve Ellcey <sje@cup.hp.com>
16365
16366 PR rtl-optimization/26345
16367 PR target/19061
16368 * config/ia64/predicates.md (basereg_operand): Don't look in subregs.
16369
560af66a 163702006-03-03 Roger Sayle <roger@eyesopen.com>
16371
16372 PR tree-optimization/26524
16373 * tree-scalar-evolution.c (interpret_rhs_modify_expr): Use
16374 fold_convert to create a constant of the appropriate type.
16375
6617cbc1 163762006-03-03 Richard Sandiford <richard@codesourcery.com>
16377
16378 * doc/tm.texi: Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
16379 SYMBOL_REF_IN_BLOCK_P.
16380 * doc/rtl.texi: Likewise. Refer to SYMBOL_FLAG_HAS_BLOCK_INFO instead
16381 of SYMBOL_FLAG_IN_BLOCK.
16382 * gengtype.c (adjust_field_rtx_def): Use SYMBOL_REF_HAS_BLOCK_INFO_P
16383 instead of SYMBOL_REF_IN_BLOCK_P.
16384 * explow.c (use_anchored_address): Likewise.
16385 * rtl.c (rtx_size): Likewise.
16386 * varasm.c (create_block_symbol): Set SYMBOL_FLAG_HAS_BLOCK_INFO
16387 instead of SYMBOL_FLAG_IN_BLOCK.
16388 (make_decl_rtl): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
16389 SYMBOL_REF_IN_BLOCK_P.
16390 (assemble_variable): Likewise.
16391 (output_constant_def_contents): Likewise.
16392 (output_constant_pool): Likewise.
16393 (default_encode_section_info): Preserve SYMBOL_FLAG_HAS_BLOCK_INFO
16394 instead of SYMBOL_FLAG_IN_BLOCK.
16395 * rtl.h (block_symbol): Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
16396 SYMBOL_REF_IN_BLOCK_P.
16397 (SYMBOL_REF_BLOCK): Likewise.
16398 (SYMBOL_REF_OFFSET): Likewise.
16399 (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
16400 SYMBOL_REF_IN_BLOCK_P.
16401 (SYMBOL_FLAG_IN_BLOCK): Replace with...
16402 (SYMBOL_FLAG_HAS_BLOCK_INFO): ...this.
16403 (SYMBOL_REF_IN_BLOCK_P): Replace with...
16404 (SYMBOL_REF_HAS_BLOCK_INFO_P): ...this.
16405
cb21f406 164062006-03-03 Jakub Jelinek <jakub@redhat.com>
16407
16408 * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Fix pasto.
16409
4a9a1e2b 164102006-03-02 Roger Sayle <roger@eyesopen.com>
16411
16412 * simplify-rtx.c (simplify_unary_operation): When simplifying
16413 (neg (lt X 0)) into (ashiftrt X C) or (lshiftrt X C), make sure
16414 that we perform the right shift in the appropriate mode, and
16415 then extend or truncate the result to requested mode.
16416
99748102 164172006-03-03 Zdenek Dvorak <dvorakz@suse.cz>
16418
16419 * gengtype.c (main): Handle double_int type.
16420 * tree.h (struct tree_int_cst): Make type of int_cst double_int.
16421 * double-int.c: New file.
16422 * double-int.h: New file.
16423 * system.h: Include doubleint.h.
16424 * Makefile.in (SYSTEM_H): Include double-int.h.
16425 (double-int.o): Add.
16426
afba2e80 164272006-03-03 Joseph S. Myers <joseph@codesourcery.com>
16428
16429 PR bootstrap/26478
16430 * Makefile.in (stmp-int-hdrs): Remove include/unwind.h before
16431 copying over it.
16432
63945aec 164332006-03-02 Zdenek Dvorak <dvorakz@suse.cz>
16434
4a9a1e2b 16435 * tree-vrp.c (remove_range_assertions): Do not update statements
16436 unnecessarily.
63945aec 16437
da0f98a7 164382006-03-02 Zdenek Dvorak <dvorakz@suse.cz>
16439
16440 * cse.c (rest_of_handle_cse): Do not pass CLEANUP_PRE_LOOP to cfg
16441 cleanup.
16442 * gcse.c (rest_of_handle_gcse): Ditto.
16443 * except.c (gate_handle_eh): Ditto.
16444 * cfgcleanup.c (rest_of_handle_jump2): Ditto.
16445 * basic-block.h (CLEANUP_PRE_LOOP): Remove.
16446
77180ce5 164472006-03-02 Eric Christopher <echristo@apple.com>
16448
16449 * config/i386/i386.c (machopic_output_stub): Add indirection to
16450 jump.
16451
7d3c6452 164522006-03-02 Zdenek Dvorak <dvorakz@suse.cz>
16453
16454 * loop.c: Removed.
16455
6dbce0cb 164562006-03-02 David S. Miller <davem@sunset.davemloft.net>
16457
16458 Sun Niagara specific optimizations.
16459 * config.gcc: Recognize niagara as target.
16460 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Mention Niagara.
16461 (TARGET_CPU_niagara): Define.
16462 (CPP_CPU64_DEFAULT_SPEC): Define __sparc_v9__ for Niagara.
16463 (ASM_CPU64_DEFAULT_SPEC): Pass -Av9b for Niagara.
16464 (CPP_CPU_SPEC): Handle -mcpu=niagara.
16465 (ASM_CPU_SPEC): Likewise.
16466 (PROCESSOR_NIAGARA): New enum entry.
16467 (REGISTER_MOVE_COST): Handle Niagara.
16468 (BRANCH_COST, PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES): Likewise.
16469 * config/sparc/sparc.c (niagara_costs): New processor_costs entry.
16470 (sparc_override_options): Recognize "niagara", set appropriate
16471 default MASK_* values for it, and align functions to 32-bytes
16472 by default just like ULTRASPARC/ULTRASPARC3.
16473 (sparc_initialize_trampoline): Handle niagara like ultrasparc.
16474 (sparc64_initialize_trampoline): Likewise.
16475 (sparc_use_sched_lookahead): Use zero for niagara.
16476 (sparc_issue_rate): Use one for niagara.
16477 * config/sparc/niagara.md: New file.
16478 * config/sparc/sparc.md: Include it.
16479 * config/sparc/sol2-bi.h (CPP_CPU64_DEFAULT_SPEC,
16480 ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Set appropriately
16481 when default cpu is niagara.
16482 (CPP_CPU_SPEC): Handle -mcpu=niagara.
16483 (ASM_CPU_SPEC): Likewise.
16484 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Set appropriately
16485 when default cpu is niagara.
16486 (ASM_CPU_SPEC): Handle -mcpu=niagara.
16487 * config/sparc/linux64.h: Handle a default of TARGET_CPU_niagara
16488 just like v9/ultrasparc/ultrasparc3.
16489 * doc/invoke.texi: Add documentation for "niagara" and improve
16490 existing documentation for ultrasparc variants.
77180ce5 16491
7dd75889 164922006-03-02 Diego Novillo <dnovillo@redhat.com>
16493
16494 * tree-ssa-operands.c (update_stmt_operands): Update documentation.
16495
102e3995 164962006-03-02 Richard Sandiford <richard@codesourcery.com>
16497
16498 * doc/tm.texi (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Document.
16499 (ASM_OUTPUT_BSS): Describe the two ways of handling global BSS,
16500 and say that only one is needed.
16501 * doc/rtl.texi (SYMBOL_REF_BLOCK): Say that the block can be null.
16502 * target.h (have_switchable_bss_sections): New hook.
16503 * explow.c (use_anchored_address): Check that the symbol is in a block.
16504 * varasm.c (tls_comm_section, comm_section, lcomm_section)
16505 (bss_noswitch_section): New variables.
16506 (get_unnamed_section): Add SECTION_UNNAMED to the flags.
16507 (get_noswitch_section): New function.
16508 (get_block_for_section): Allow SECT to be null.
16509 (unlikely_text_section_p): Use SECTION_STYLE.
16510 (bss_initializer_p): New function.
16511 (get_variable_section): Move earlier in file. Take a new argument,
16512 prefer_noswitch_p. Move bss checks from assemble_variable to here.
16513 Return one of the new *_sections in such cases.
16514 (get_block_for_decl): New function, extracting some logic from
16515 use_blocks_for_decl_p.
16516 (change_symbol_section): Remove in favor of...
16517 (change_symbol_block): ...this new function.
16518 (use_blocks_for_decl_p): Remove checks now performed by
16519 get_block_for_decl.
16520 (make_decl_rtl): Use change_symbol_block and get_block_for_decl.
16521 (ASM_EMIT_LOCAL, ASM_EMIT_BSS, ASM_EMIT_COMMON): Delete in favor of...
16522 (emit_local, emit_bss, emit_common): ...these new functions.
16523 Return true if the alignment was honored.
16524 (emit_tls_common): New function.
16525 (asm_emit_uninitialised): Delete.
16526 (assemble_variable_noswitch): New function, split out from...
16527 (assemble_variable): ...here. Don't make decisions about common
16528 variables here. Globalize all public decls that go into non-common
16529 sections. Check whether SYMBOL_REF_BLOCK is null.
16530 (output_constant_def_contents): Check whether SYMBOL_REF_BLOCK is null.
16531 (output_constant_pool): Likewise.
16532 (init_varasm_once): Initialize the new section variables.
16533 (have_global_bss_p): New function.
16534 (categorize_decl_for_section): Use bss_initializer_p.
16535 (switch_to_section): Use SECTION_STYLE. Abort for SECTION_NOSWITCH.
16536 (place_block_symbol): Assert that the symbol must be in a block.
16537 * target-def.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): New macro.
16538 (TARGET_INITIALIZER): Include it.
16539 * rtl.h (SYMBOL_REF_BLOCK): Document the null alternative.
16540 * output.h (SECTION_STYLE_MASK, SECTION_COMMON): New macros.
16541 (SECTION_MACH_DEP): Bump by two.
16542 (SECTION_UNNAMED, SECTION_NOSWITCH): New macros.
16543 (unnamed_section): Mention SECTION_UNNAMED in comment.
16544 (named_section): Likewise SECTION_NAMED.
16545 (noswitch_section_callback): New type.
16546 (noswitch_section): New structure.
16547 (section): Add a noswitch_section alternative.
16548 (SECTION_STYLE): New macro.
16549 (tls_comm_section, comm_section, lcomm_section): Declare.
16550 (bss_noswitch_section, have_global_bss_p): Declare.
16551 * config/elfos.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
16552 * config/iq2000/iq2000.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
16553 Override.
16554 * config/v850/v850.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
16555 * config/stormy16/stormy16.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
16556 Override.
16557
2a1990e9 165582006-03-02 Daniel Berlin <dberlin@dberlin.org>
16559
cf8cdd54 16560 * tree-vrp.c (execute_vrp): Return value.
16561 * regrename.c (rest_of_handle_regrename): Ditto.
16562 * tree-into-ssa.c (rewrite_into_ssa): Ditto.
16563 * tree-complex.c (tree_lower_complex): Ditto.
2a1990e9 16564 (tree_lower_complex_O0): Ditto.
cf8cdd54 16565 * tracer.c (rest_of_handle_tracer): Ditto.
16566 * postreload-gcse.c (rest_of_handle_gcse2): Ditto.
16567 * postreload.c (rest_of_handle_postreload): Ditto.
16568 * tree-tailcall.c (execute_tail_recursion): Ditto.
2a1990e9 16569 (execute_tail_calls): Ditto.
cf8cdd54 16570 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
16571 * tree.h (init_function_for_compilation): Ditto.
16572 * ipa-cp.c (ipcp_driver): Ditto.
16573 * tree-scalar-evolution.c (scev_const_prop): Ditto.
16574 * tree-scalar-evolution.h (scev_const_prop): Ditto.
16575 * final.c (compute_alignments): Ditto.
2a1990e9 16576 (rest_of_handle_final): Ditto.
16577 (rest_of_handle_shorten_branches): Ditto.
16578 (rest_of_clean_state): Ditto.
cf8cdd54 16579 * omp-low.c (execute_expand_omp): Ditto.
2a1990e9 16580 (execute_lower_omp): Ditto.
cf8cdd54 16581 * tree-ssa-dse.c (tree_ssa_dse): Ditto.
16582 * ipa-reference.c (static_execute): Ditto.
16583 * tree-ssa-uncprop.c (tree_ssa_uncprop): Ditto.
16584 * reorg.c (rest_of_handle_delay_slots): Ditto.
2a1990e9 16585 (rest_of_handle_machine_reorg): Ditto.
cf8cdd54 16586 * cgraphunit.c (rebuild_cgraph_edges): Ditto.
16587 * flow.c (recompute_reg_usage): Ditto.
2a1990e9 16588 (rest_of_handle_remove_death_notes): Ditto.
16589 (rest_of_handle_life): Ditto.
16590 (rest_of_handle_flow2): Ditto.
cf8cdd54 16591 * tree-ssa-copyrename.c (rename_ssa_copies): Ditto.
16592 * tree-ssa-ccp.c (do_ssa_ccp): Ditto.
2a1990e9 16593 (do_ssa_store_ccp): Ditto.
16594 (execute_fold_all_builtins): Ditto.
cf8cdd54 16595 * mode-switching.c (rest_of_handle_mode_switching): Ditto.
16596 * modulo-sched.c (rest_of_handle_sms): Ditto.
16597 * ipa-pure-const.c (static_execute): Ditto.
16598 * cse.c (rest_of_handle_cse): Ditto.
2a1990e9 16599 (rest_of_handle_cse2): Ditto.
cf8cdd54 16600 * web.c (rest_of_handle_web): Ditto.
16601 * tree-stdarg.c (execute_optimize_stdarg): Ditto.
16602 * tree-ssa-math-opts.c (execute_cse_reciprocals): Ditto.
16603 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Ditto.
16604 * tree-nrv.c (tree_nrv): Ditto.
2a1990e9 16605 (execute_return_slot_opt): Ditto.
cf8cdd54 16606 * tree-ssa-alias.c (compute_may_aliases): Ditto.
2a1990e9 16607 (create_structure_vars): Ditto.
cf8cdd54 16608 * loop-init.c (rtl_loop_init): Ditto.
2a1990e9 16609 (rtl_loop_done): Ditto.
16610 (rtl_move_loop_invariants): Ditto.
16611 (rtl_unswitch): Ditto.
16612 (rtl_unroll_and_peel_loops): Ditto.
16613 (rtl_doloop): Ditto.
cf8cdd54 16614 * gimple-low.c (lower_function_body): Ditto.
2a1990e9 16615 (mark_used_blocks): Ditto.
cf8cdd54 16616 * tree-ssa-sink.c (execute_sink_code): Ditto.
16617 * ipa-inline.c (cgraph_decide_inlining): Ditto.
2a1990e9 16618 (cgraph_early_inlining): Ditto.
cf8cdd54 16619 * global.c (rest_of_handle_global_alloc): Ditto.
16620 * jump.c (cleanup_barriers): Ditto.
2a1990e9 16621 (purge_line_number_notes): Ditto.
cf8cdd54 16622 * ifcvt.c (rest_of_handle_if_conversion): Ditto.
2a1990e9 16623 (rest_of_handle_if_after_reload): Ditto.
cf8cdd54 16624 * tree-ssa-loop.c (tree_ssa_loop_init): Ditto.
2a1990e9 16625 (tree_ssa_loop_im): Ditto.
16626 (tree_ssa_loop_unswitch): Ditto.
16627 (tree_vectorize): Ditto.
16628 (tree_linear_transform): Ditto.
16629 (tree_ssa_loop_ivcanon): Ditto.
16630 (tree_ssa_empty_loop): Ditto.
16631 (tree_ssa_loop_bounds): Ditto.
16632 (tree_complete_unroll): Ditto.
16633 (tree_ssa_loop_prefetch): Ditto.
16634 (tree_ssa_loop_ivopts): Ditto.
16635 (tree_ssa_loop_done): Ditto.
cf8cdd54 16636 * predict.c (tree_estimate_probability): Ditto.
16637 * recog.c (split_all_insns_noflow): Ditto.
2a1990e9 16638 (rest_of_handle_peephole2): Ditto.
16639 (rest_of_handle_split_all_insns): Ditto.
cf8cdd54 16640 * tree-eh.c (lower_eh_constructs): Ditto.
16641 * regmove.c (rest_of_handle_regmove): Ditto.
2a1990e9 16642 (rest_of_handle_stack_adjustments): Ditto.
cf8cdd54 16643 * local-alloc.c (rest_of_handle_local_alloc): Ditto.
16644 * function.c (instantiate_virtual_regs): Ditto.
2a1990e9 16645 (init_function_for_compilation): Ditto.
16646 (rest_of_handle_check_leaf_regs): Ditto.
cf8cdd54 16647 * gcse.c (rest_of_handle_jump_bypass): Ditto.
2a1990e9 16648 (rest_of_handle_gcse): Ditto.
cf8cdd54 16649 * ipa-type-escape.c (type_escape_execute): Ditto.
16650 * alias.c (rest_of_handle_cfg): Ditto.
16651 * tree-if-conv.c (main_tree_if_conversion): Ditto.
16652 * profile.c (rest_of_handle_branch_prob): Ditto.
16653 * tree-ssa-phiopt.c (tree_ssa_phiopt): Ditto.
16654 * rtl-factoring.c (rest_of_rtl_seqabstr): Ditto.
16655 * bt-load.c (rest_of_handle_branch_target_load_optimize): Ditto
16656 * tree-dfa.c (find_referenced_vars): Ditto.
16657 * except.c (set_nothrow_function_flags): Ditto.
2a1990e9 16658 (convert_to_eh_region_ranges): Ditto.
16659 (rest_of_handle_eh): Ditto.
cf8cdd54 16660 * emit-rtl.c (unshare_all_rtl): Ditto.
2a1990e9 16661 (remove_unnecessary_notes): Ditto.
cf8cdd54 16662 * except.h (set_nothrow_function_flags): Ditto.
2a1990e9 16663 (convert_to_eh_region_ranges): Ditto.
cf8cdd54 16664 * cfgexpand.c (tree_expand_cfg): Ditto.
16665 * tree-cfgcleanup.c (merge_phi_nodes): Ditto.
16666 * tree-ssa-pre.c (do_pre): Ditto.
2a1990e9 16667 (execute_fre): Ditto.
cf8cdd54 16668 * cfgcleanup.c (rest_of_handle_jump): Ditto.
2a1990e9 16669 (rest_of_handle_jump2): Ditto.
cf8cdd54 16670 * tree-sra.c (tree_sra): Ditto.
16671 * tree-mudflap.c (execute_mudflap_function_ops): Ditto.
2a1990e9 16672 (execute_mudflap_function_decls): Ditto.
cf8cdd54 16673 * tree-ssa-copy.c (do_copy_prop): Ditto.
2a1990e9 16674 (do_store_copy_prop): Ditto.
cf8cdd54 16675 * ipa-prop.h (ipcp_driver): Ditto.
16676 * cfglayout.c (insn_locators_initialize): Ditto.
16677 * tree-ssa-forwprop.c
2a1990e9 16678 (tree_ssa_forward_propagate_single_use_vars): Ditto.
cf8cdd54 16679 * cfglayout.h (insn_locators_initialize): Ditto.
16680 * tree-ssa-dce.c (tree_ssa_dce): Ditto.
16681 * tree-ssa.c (execute_early_warn_uninitialized): Ditto.
2a1990e9 16682 (execute_late_warn_uninitialized): Ditto.
cf8cdd54 16683 * rtl.h (cleanup_barriers): Ditto.
2a1990e9 16684 (split_all_insns_noflow): Ditto.
16685 (purge_line_number_notes): Ditto.
16686 (unshare_all_rtl): Ditto.
16687 (remove_unnecessary_notes): Ditto.
16688 (recompute_reg_usage): Ditto.
16689 (variable_tracking_main): Ditto.
cf8cdd54 16690 * integrate.c (emit_initial_value_sets): Ditto.
16691 * integrate.h (emit_initial_value_sets): Ditto.
16692 * tree-optimize.c (execute_free_datastructures): Ditto
2a1990e9 16693 (execute_free_cfg_annotations): Ditto.
16694 (execute_fixup_cfg): Ditto.
16695 (execute_cleanup_cfg_pre_ipa): Ditto.
16696 (execute_cleanup_cfg_post_optimizing): Ditto.
16697 (execute_init_datastructures): Ditto.
cf8cdd54 16698 * tree-object-size.c (compute_object_sizes): Ditto.
16699 * combine.c (rest_of_handle_combine): Ditto.
16700 * tree-outof-ssa.c (rewrite_out_of_ssa): Ditto.
16701 * bb-reorder.c (duplicate_computed_gotos): Ditto.
2a1990e9 16702 (rest_of_handle_reorder_blocks): Ditto.
16703 (rest_of_handle_partition_blocks): Ditto.
cf8cdd54 16704 * var-tracking.c (variable_tracking_main): Ditto.
16705 * tree-profile.c (tree_profiling): Ditto.
16706 * tree-vect-generic.c (expand_vector_operations): Ditto.
16707 * reg-stack.c (rest_of_handle_stack_regs): Ditto.
16708 * sched-rgn.c (rest_of_handle_sched): Ditto.
2a1990e9 16709 (rest_of_handle_sched2): Ditto.
cf8cdd54 16710 * basic-block.h (free_bb_insn): Ditto.
16711 * tree-ssa-structalias.c (ipa_pta_execute): Ditto.
16712 * tree-cfg.c (execute_build_cfg): Ditto.
2a1990e9 16713 (remove_useless_stmts): Ditto.
16714 (split_critical_edges): Ditto.
16715 (execute_warn_function_return): Ditto.
16716 (execute_warn_function_noreturn): Ditto.
cf8cdd54 16717 * tree-ssa-reassoc.c (execute_reassoc): Ditto.
16718 * cfgrtl.c (free_bb_for_insn): Ditto.
16719 * passes.c (execute_one_pass): Run additional
2a1990e9 16720 todos returned by execute function.
cf8cdd54 16721 * tree-pass.h (struct tree_opt_pass): Make execute
2a1990e9 16722 return a value.
16723
441fbbf3 167242006-03-02 Richard Guenther <rguenther@suse.de>
16725
16726 * tree-ssa-alias.c (find_used_portions): Consider taking
16727 the address as making the variable not write-only.
16728
430e8f92 167292006-03-02 Nick Clifton <nickc@redhat.com>
16730
16731 * config.gcc (default_use_cxa_atexit): Extend the description of
16732 this configure variable. Set its default value to "yes" for
16733 Linux, NetBSD and ELF targets on the assumption that they will
16734 use C libraries with the __cxa_atexit function.
16735
f4b40639 167362006-03-02 Ben Elliston <bje@au.ibm.com>
16737
16738 * config/rs6000/linux-unwind.h (frob_update_context): Mark `fs'
16739 parameter as unused to suppress a build warning.
16740
694de25f 167412006-03-02 Ben Elliston <bje@au.ibm.com>
16742
16743 * mklibgcc.in: Depend on config/dfp-bit.h in rules that compile
16744 config/dfp-bit.c.
16745
80164241 167462006-03-01 Roger Sayle <roger@eyesopen.com>
16747
16748 PR other/26489
16749 * gthr-posix.h (__gthrw2): Define to take three parameters, the
16750 declared name, the weak reference name, and the typeof name.
16751 (__gthrw): Avoid expanding the declared name suffix.
16752 (__gthrw3): New Tru64 specific macro to simplify the OSF/1 decls.
16753
0e7a2378 167542006-03-01 Jakub Jelinek <jakub@redhat.com>
16755
16756 * dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
16757 from DWARF 3.
16758 (DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
16759 DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
16760 DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
16761 DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
16762 DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
16763 (DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
16764 (DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
16765 DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
16766 (DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
16767 DW_DS_leading_separate, DW_DS_trailing_separate): New.
16768 (DW_END_default, DW_END_big, DW_END_little): New.
16769 (DW_END_lo_user, DW_END_hi_user): Define.
16770 (DW_LNE_lo_user, DW_LNE_hi_user): Define.
16771 (DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
16772 (DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
16773 DW_LANG_D): New.
16774
eff665b7 167752006-03-01 Diego Novillo <dnovillo@redhat.com>
16776
16777 * tree.def (SYMBOL_MEMORY_TAG): Rename from TYPE_MEMORY_TAG.
16778 Update all users.
16779 * tree-pass.h (PROP_smt_usage): Rename from PROP_tmt_usage.
16780 Update all users.
16781 (TODO_update_smt_usage): Rename from TODO_update_tmt_usage.
16782 Update all users.
16783 * tree.h (SMT_USED_ALONE): Rename from TMT_USED_ALONE.
16784 Update all users.
16785 * tree-flow.h (struct var_ann_d): Rename field 'type_mem_tag'
16786 to 'symbol_mem_tag'.
16787 Update all users.
16788 * doc/tree-ssa.texi: Update documentation to reflect TMT->SMT
16789 rename.
16790
749680e2 167912006-03-01 Roger Sayle <roger@eyesopen.com>
16792
16793 * builtins.c (fold_builtin_copysign): Delete unreachable code.
16794
7105bd6c 167952006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
16796
16797 PR target/25761
16798 * config/darwin.h (MACHOPIC_JUST_INDIRECT): Check just
16799 MACHO_DYNAMIC_NO_PIC_P.
16800 (MACHOPIC_PURE): Check flag_pic and not MACHO_DYNAMIC_NO_PIC_P.
16801
8c27005f 168022006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
16803
16804 PR target/26389
16805 * config/darwin-protos.h (darwin_asm_output_anchor):
16806 Declare.
16807 * config/darwin-sections.def (cstring_section):
16808 Add SECTION_MERGE to the flags.
16809 (literal4_section): Likewise.
16810 (literal8_section): Likewise.
16811 (objc_selector_refs_section): Likewise.
16812 (objc_cls_refs_section): Likewise.
16813 * config/darwin.c (darwin_asm_output_anchor): New
16814 function.
16815 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
16816
de08b454 168172006-03-01 Daniel Berlin <dberlin@dberlin.org>
eff665b7 16818
de08b454 16819 Fix PR tree-optimization/26443
16820 * tree-vrp.c (pass_vrp): Add TODO_update_tmt_usage
16821 to todo and PROP_tmt_usage to properties_destroyed.
16822 * tree-ssa-ccp.c (pass_ccp): Ditto.
16823 (pass_store_ccp): Ditto.
16824 * tree-ssa-dom.c (pass_dominator): Ditto.
16825
fa999566 168262006-03-01 Diego Novillo <dnovillo@redhat.com>
16827
16828 * tree-ssa-operands.c: Cleanup whitespace.
16829 (get_asm_expr_operands): Move before first invocation.
16830 (get_indirect_ref_operands): Likewise.
16831 (get_tmr_operands): Likewise.
16832 (get_call_expr_operands): Likewise.
16833 (append_def): Likewise.
16834 (append_use): Likewise.
16835 (append_v_may_def): Likewise.
16836 (append_v_must_def): Likewise.
16837 (add_call_clobber_ops): Likewise.
16838 (add_call_read_ops): Likewise.
16839 (add_stmt_operand): Likewise.
16840 (add_virtual_operand): Likewise.
16841 (build_ssa_operands): Likewise.
16842
168432006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
e77b8618 16844
16845 PR middle-end/26022
16846 Revert:
16847 PR middle-end/24437
16848 * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
16849 with a call expr to ...
16850 * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
16851
e29d5ed8 168522006-03-01 Diego Novillo <dnovillo@redhat.com>
16853
16854 * tree-vrp.c (extract_range_from_assert): Remove special
16855 handling for types with super-types.
16856
ec486420 168572006-03-01 Ben Elliston <bje@au.ibm.com>
16858
7a1e3d60 16859 * config.gcc: Add t-dfprules to $tmake_file for powerpc-*-linux*
16860 and powerpc64-*-linux* configurations.
16861 * config/t-dfprules: New file.
16862
ec486420 16863 * mklibgcc.in: Add logic to handle $DFP_ENABLE and $DFP_CFLAGS.
16864 Compile dfp-bit.c from the source directory using -DWIDTH and
16865 $DFP_CFLAGS to control the compilation of that file, rather than
16866 generating width-specific versions in the build directory.
16867 * Makefile.in (libgcc.mk): Pass down DFP_ENABLE and DFP_CFLAGS.
16868 (LIBGCC_DEPS): Replace $(D32PBIT) et al with config/dfp-bit.[hc].
16869
089b214f 168702006-02-28 Zack Weinberg <zackw@panix.com>
16871
16872 * doc/md.texi: Avoid use of @headitem so that makeinfo <4.7
16873 continues to work.
16874
bcba0559 168752006-02-28 Eric Christopher <echristo@apple.com>
16876
16877 * config/rs6000/darwin.h (ENABLE_STACK_EXECUTE): Define.
16878 Set up IN_LIBGCC definition of TARGET_64BIT.
16879 * config/i386/darwin.h (ENABLE_STACK_EXECUTE): Define.
16880
7ae0e4a9 168812006-02-28 Roger Sayle <roger@eyesopen.com>
16882
16883 PR middle-end/14752
16884 * c-common.c (c_common_truthvalue_conversion) <MINUS_EXPR,
16885 BIT_XOR_EXPR, BIT_AND_EXPR>: Delete. Let fold optimize these
16886 cases via the construction of "expr != 0".
16887
c5780f6d 168882006-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
16889
16890 * alias.c (alias_invariant, alias_invariant_size): Remove.
16891 (record_base_value): Remove.
16892 (memrefs_conflict_p): Don't look at alias_invariant.
16893 (end_alias_analysis): Don't free it.
16894 * alias.h (record_base_value): Remove prototype.
16895
fd95fba4 168962006-02-28 Paolo Bonzini <bonzini@gnu.org>
16897 Adam Nemet <anemet@caviumnetworks.com>
16898
16899 * rtl.h (truncated_to_mode): Declare it.
16900 (struct rtl_hooks): Add reg_truncated_to_mode hook.
16901 * rtlhooks-def.h (RTL_HOOKS_REG_TRUNCATED_TO_MODE): New macro.
16902 (RTL_HOOKS_INITIALIZER): Include it.
16903 * rtlhooks.c (reg_truncated_to_mode_general): New function.
16904 * combine.c (RTL_HOOKS_REG_TRUNCATED_TO_MODE): Override to
16905 reg_truncated_to_mode.
16906 * rtlanal.c (truncated_to_mode): Define it.
16907 * simplify-rtx.c (simplify_unary_operation_1): Use it.
16908
8c8a79f4 169092006-02-28 Jeff Law <law@redhat.com>
16910
136335a2 16911 * tree-chrec.c (chrec_convert_aggressive): Do not eliminate
16912 conversions where TYPE_MIN_VALUE/TYPE_MAX_VALUE do not cover
16913 the range allowed by TYPE_PRECISION.
16914
8c8a79f4 16915 * tree.h (strct phi_arg_d): Remove unused NONZERO field.
16916
e686c658 169172006-02-28 Dorit Nuzman <dorit@il.ibm.com>
16918
16919 PR tree-optimization/26419
16920 * doc/invoke.texi (ftree-vectorizer-verbose): Add information on
16921 values of n.
16922
470d2447 169232006-02-27 Zack Weinberg <zackw@panix.com>
16924
16925 * doc/md.texi: Fix typo in previous change.
16926
5f4d8ce0 169272006-02-27 Kenneth Zadeck <zadeck@naturalbridge.com>
16928
16929 * df.c: Remove.
16930
026d3868 169312006-02-27 Zack Weinberg <zackw@panix.com>
16932
16933 * rtl.def (define_constraint, define_register_constraint)
16934 (define_memory_constraint, define_address_constraint): New MD forms.
16935 * gensupport.c (process_rtx): Put define_constraint etc on the
16936 predicate queue.
16937 * genpreds.c (process_define_predicate): Adjust comment. Validate
16938 the name, and call validate_exp to validate the expression.
16939 (mark_mode_tests, write_extract_subexp): Can assume correct input.
16940 (write_predicate_expr): Likewise. NAME argument no longer necessary;
16941 all callers changed.
16942 (validate_exp, needs_variable, struct constraint_data)
16943 (constraints_by_letter_table, first_constraint, last_constraint_ptr)
16944 (FOR_ALL_CONSTRAINTS, generic_constraint_letters, const_int_constraints)
16945 (const_dbl_constraints, constraint_max_namelen)
16946 (have_register_constraints, have_memory_constraints)
16947 (have_address_constraints, have_address_constraints)
16948 (have_extra_constraints, have_const_int_constraints)
16949 (have_const_dbl_constraints, mangle, add_constraint)
16950 (process_define_constraint, process_define_register_constraint)
16951 (write_enum_constraint_num, write_lookup_constraint)
16952 (write_insn_constraint_len, write_regclass_for_constraint)
16953 (write_constraint_satisfied_p, write_insn_const_int_ok_for_constraint)
16954 (write_insn_extra_memory_constraint)
16955 (write_insn_extra_address_constraint)
16956 (write_satisfies_constraint_fns): New.
16957 (write_tm_preds_h): If we have new-style constraint definitions,
16958 prototype the functions generated from them, and define the
16959 old constraint interface (still used by generic code) in terms of
16960 those functions.
16961 (write_insn_preds_c): If we have new-style constraint definitions,
16962 generate all relevant functions from those definitions.
16963 (main): Handle define_constraint etc.
16964 * genoutput.c (struct constraint_data, indep_constraints)
16965 (mdep_constraint_letters, constraints_by_letter_table, note_constraint)
16966 (mdep_constraint_len): New data structures and functions, defined
16967 #ifdef USE_MD_CONSTRAINTS.
16968 (check_constraint_len): Don't define #ifdef USE_MD_CONSTRAINTS.
16969 (validate_insn_alternatives): If USE_MD_CONSTRAINTS is defined,
16970 use new logic to validate operand constraints against constraint
16971 definitions.
16972 (main): Process define_constraint etc. if USE_MD_CONSTRAINTS is
16973 defined.
16974 * defaults.h: If none of the old-style constraint macros are
16975 defined, define USE_MD_CONSTRAINTS; do not provide defaults for any
16976 old-style macros; and poison REG_CLASS_FROM_LETTER,
16977 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P, and
16978 EXTRA_CONSTRAINT.
16979 * recog.c (reg_fits_class_p): If cl is NO_REGS, return 0 immediately.
16980 * doc/md.texi: Document new constraint-definition mechanism and the
16981 C interface it provides. Remove references to old mechanism
6993cbc4 16982 elsewhere in the document.
026d3868 16983 (Machine Constraints): Use pathnames relative to gcc directory,
16984 i.e. config/ARCH/FILE. Change i386 section to refer to
16985 config/i386/predicates.md; update that section to match docstrings.
16986 * doc/tm.texi: Move all documentation of the old constraint-
16987 definition macros to their own section, clearly mark as obsolete.
16988
16989 * config/i386/predicates.md (R, q, Q, l, a, b, c, d, S, D, A, f, t)
16990 (u, y, x, Y, I, J, K, L, M, N, O, G, C, e, Z): New constraint
16991 definitions.
16992 * config/i386/i386.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
16993 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
16994 * config/i386/i386.md (*movdf_nointeger): Remove stray 'H' from
16995 constraint strings.
16996 (splits and peepholes): Use satisfies_constraint_*.
16997 * config/i386/i386.c (memory_address_length)
16998 (ix86_attr_length_immediate_default): Use satisfies_constraint_*.
16999
3a6e1ee4 170002006-02-27 Daniel Berlin <dberlin@dberlin.org>
17001
17002 * lambda-code.c (can_convert_to_perfect_nest): Allow any type of
17003 scalar operation to be put back into the loop.
17004
15c73eb7 170052006-02-27 Jakub Jelinek <jakub@redhat.com>
17006
17007 PR other/26208
17008 * unwind-dw2.c (struct _Unwind_Context): Add signal_frame field.
17009 (extract_cie_info): Handle S flag in augmentation string.
17010 (execute_cfa_program): If context->signal_frame, execute also
17011 fs->pc == context->ra instructions.
17012 (uw_frame_state_for): If context->signal_frame, don't subtract one
17013 from context->ra to find FDE.
17014 (uw_update_context_1): Set context->signal_frame to
17015 fs->signal_frame.
17016 (_Unwind_GetIPInfo): New function.
17017 * unwind-dw2.h (_Unwind_FrameState): Add signal_frame field.
17018 * unwind-c.c (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
17019 of _Unwind_GetIP.
17020 * unwind-sjlj.c (_Unwind_GetIPInfo): New function.
17021 * unwind-generic.h (_Unwind_GetIPInfo): New prototype.
17022 * unwind-compat.c (_Unwind_GetIPInfo): New function.
17023 * libgcc-std.ver (_Unwind_GetIPInfo): Export @@GCC_4.2.0.
17024 * config/ia64/unwind-ia64.c (_Unwind_GetIPInfo): New function.
17025 * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Define.
17026 * config/i386/linux-unwind.h (x86_fallback_frame_state,
17027 x86_64_fallback_frame_state): Set fs->signal_frame.
17028 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Likewise.
17029 (MD_FROB_UPDATE_CONTEXT): Define unconditionally.
17030 (frob_update_context): Likewise. Workaround missing S flag in
17031 Linux 2.6.12 - 2.6.16 kernel vDSOs.
17032 * config/s390/linux-unwind.h (s390_fallback_frame_state): Likewise.
17033 Remove the psw_addr + 1 hack.
17034
5f506404 170352006-02-27 Daniel Berlin <dberlin@dberlin.org>
17036
17037 * tree-ssa-structalias.c (get_constraint_for): Move code to deal
17038 with aggregates here.
17039 (find_func_aliases): Remove code for &<aggregate> from here.
17040
e08a39b3 170412006-02-26 Roger Sayle <roger@eyesopen.com>
17042
522701ef 17043 * fold-const.c (fold_binary) <EQ_EXPR>: Fold (~X & C) eq/ne 0 as
e08a39b3 17044 (X & C) ne/eq 0, where C is a single bit, i.e. a power of two.
17045 Fold both "((X & C) ^ C) eq/ne 0" and "((X ^ C) & C) eq/ne 0"
17046 as (X & C) ne/eq 0.
17047
466fed6e 170482006-02-26 Roger Sayle <roger@eyesopen.com>
17049
17050 PR middle-end/19983
17051 * real.c (real_nan): Allow both 0x and 0X as hexadecimal prefixes.
17052
4f87b914 170532006-02-26 Zdenek Dvorak <dvorakz@suse.cz>
17054
17055 * opts.c (decode_options): Do not handle flag_strength_reduce.
17056 (common_handle_option): Handle OPT_floop_optimize, OPT_frerun_loop_opt
17057 and OPT_fstrength_reduce.
17058 * tree-ssa-loop.c (tree_ssa_loop_prefetch): Only test
17059 flag_prefetch_loop_arrays for being nonzero.
17060 * common.opt (floop-optimize, frerun-loop-opt): Resurrected as
17061 no-ops.
17062 (fprefetch-loop-arrays-rtl): Removed.
17063 (flag_prefetch_loop_arrays): Do not specify the value.
17064
17065 * doc/passes.texi: Update documentation of loop optimizer
17066 passes.
17067 * doc/invoke.texi (-fstrength-reduce, -fprefetch-loop-arrays-rtl,
17068 -frerun-loop-opt): Remove.
17069
5b449890 170702006-02-26 Richard Guenther <rguenther@suse.de>
17071
17072 PR tree-optimization/26421
17073 * tree-ssa-alias.c (find_used_portions): Don't treat parameters
17074 in function calls that are ADDR_EXPRs as using the whole structure.
17075
a1ab4637 170762006-02-26 Steven Bosscher <stevenb.gcc@gmail.com>
17077
17078 * common.opt (-floop-optimize, -frerun-loop-opt): Remove.
17079 * tree-pass.h (pass_loop_optimize): Remove.
17080 * passes.c (pass_loop_optimize): Never run it.
17081 * toplev.c (backend_init): Don't call init_loop.
17082 * opts.c (flag_loop_optimize_set): Remove.
17083 (decode_options): Never set flag_loop_optimize or flag_rerun_loop_opt.
17084 (common_handle_option) <OPT_floop_optimize>: Remove. Don't disable
17085 the old RTL loop optimizer when profiling enabled.
17086 * predict.c (tree_estimate_probability): Always strip builtin_expect.
17087 * cfgcleanup.c (try_forward_edges): Don't avoid killing loop
17088 pre-headers for the sake of the old RTL loop optimizer.
17089 * Makefile.in: Remove all references to loop.o.
17090
17091 * doc/invoke.texi: Remove all references to -floop-optimize
17092 and -frerun-loop-opt.
17093
6a3e083e 170942006-02-26 Zack Weinberg <zackw@panix.com>
17095
17096 * doc/md.texi (Machine Constraints): Refer to all files with paths
17097 relative to gcc directory (i.e. config/CPU/file). Add missing
17098 @table @code ... @end table to M32C subsection.
17099
7ddc480e 171002006-02-26 Roger Sayle <roger@eyesopen.com>
17101
17102 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & 1) ^ 1 as
17103 (X & 1) == 0.
17104 <BIT_AND_EXPR>: Fold (X ^ 1) & 1 and ~X & 1 as (X & 1) == 0.
17105
1d8ff0d2 171062006-02-26 Roger Sayle <roger@eyesopen.com>
17107 James A. Morrison <phython@gcc.gnu.org>
17108
17109 PR middle-end/21137
522701ef 17110 * fold-const.c (fold_binary) <EQ_EXPR>: Fold ((X>>C1)&C2) eq/ne 0,
1d8ff0d2 17111 when C2 is a power of two, as either (X&(C2<<C1)) eq/ne 0 if the
17112 new constant C2<<C1, or as (X<0) or (X,false) depending upon the
17113 signedness of the shift operation.
17114
b1e9e6c5 171152006-02-26 Dorit Nuzman <dorit@il.ibm.com>
17116
17117 PR tree-optimization/26359
17118 * tree-ssa-alias.c (new_type_alias): Set fields for new tag.
17119
c11ee826 171202006-02-25 Roger Sayle <roger@eyesopen.com>
17121
522701ef 17122 * simplify-rtx.c (simplify_relational_operation_1): Simplify
c11ee826 17123 (X^Y) == 0 as X == Y and (X^Y) != 0 as X != Y. Simplify (X^Y) == Y
17124 as X == 0, and some symmetry related transformations.
17125 Simplify (X^C1) == C2 as X == (C1^C2). Split long comment line.
17126
47da8b49 171272006-02-25 Roger Sayle <roger@eyesopen.com>
17128
17129 PR middle-end/23673
522701ef 17130 * fold-const.c (fold_binary) <EQ_EXPR>: Fold (X^Y) == 0 as X == Y
47da8b49 17131 and (X^Y) != 0 as X != Y. Fold (X^Y) == Y as X == 0, and some
17132 symmetry related transformations. Fold (X^C1) == C2 as
17133 X == (C1^C2).
17134
6003588f 171352006-02-25 Juergen Weigert <jw@suse.de>
17136 Richard Guenther <rguenther@suse.de>
17137
17138 * scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.
17139
b666e08f 171402006-02-24 Adam Nemet <anemet@caviumnetworks.com>
17141
17142 * combine.c (gen_lowpart_or_truncate): Call
17143 simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.
17144
fc9b1e42 171452006-02-24 Diego Novillo <dnovillo@redhat.com>
17146
17147 * doc/invoke.texi: Move -fopenmp description to "Options for
17148 Code Generation".
17149 Remove reference to -lgomp.
17150
4c4cdab7 171512006-02-24 David Edelsohn <edelsohn@gnu.org>
17152
17153 * doc/install.texi: Require GNU tar version 1.14.
17154
3bf418bd 171552006-02-24 Geoffrey Keating <geoffk@apple.com>
17156
17157 * doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS.
6a3e083e 17158 * doc/invoke.texi (C++ Dialect Options): Document
3bf418bd 17159 -fno-use-cxa-get-exception-ptr.
17160 * configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1.
17161 * configure: Regenerate.
17162 * c.opt (fuse-cxa-get-exception-ptr): New.
17163 * c-opts.c (c_common_handle_option): Handle
17164 OPT_fuse_cxa_get_exception_ptr.
17165 * c-common.c (flag_use_cxa_atexit): Update documentation.
17166 (flag_use_cxa_get_exception_ptr): New.
17167 * c-common.h (flag_use_cxa_get_exception_ptr): New.
17168 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve
17169 documentation.
17170 (C_COMMON_OVERRIDE_OPTIONS): New.
17171
43c3808d 171722006-02-24 Roger Sayle <roger@eyesopen.com>
17173
17174 PR middle-end/24952
17175 * combine.c (try_combine): Explicitly check whether GET_CODE is
17176 a SET or a CLOBBER, instead on checking that it isn't a USE.
17177
6a451e87 171782006-02-24 Roger Sayle <roger@eyesopen.com>
17179
17180 * fold-const.c (fold_comparison): New subroutine of fold_binary
17181 containing transformations common to both the equality and
17182 ordering relational operators, factored out of fold_binary.
17183 (fold_binary): Separate out the equality operators (EQ_EXPR
17184 and NE_EXPR) from the ordering operators (LT_EXPR, GT_EXPR,
17185 LE_EXPR and GE_EXPR), calling fold_comparison to perform the
17186 transformations common to both.
6a3e083e 17187 (fold_div_compare): Fix latent bugs in the previously unreachable
6a451e87 17188 LT_EXPR and GE_EXPR cases.
17189
fb8ce854 171902006-02-24 David Edelsohn <edelsohn@gnu.org>
17191
17192 * config/rs6000/rs6000.c (rs6000_init_builtins): Change
17193 decl libname for clog to __clog on AIX.
17194
17195 * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define.
17196
1d15adaa 171972006-02-24 Alan Modra <amodra@bigpond.net.au>
17198
17199 PR target/26453
17200 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
17201 output traceback table for thunks. Localise rs6000_stack_info call.
17202
ba2ddb4b 172032006-02-23 Roger Sayle <roger@eyesopen.com>
17204 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17205
17206 * gthr-posix.h (__gthrw): Fix typo in comment.
17207
172082006-02-23 Geoffrey Keating <geoffk@apple.com>
934a14ec 17209
17210 * doc/cpp.texi (Character sets): Document that we do support
17211 input files to be in any character set.
17212
f064ebd1 172132006-02-23 Jeff Law <law@redhat.com>
17214
6b34676b 17215 * tree.h (PHI_ARG_NONZERO): Remove.
17216 * tree-phinodes.c (add_phi_arg): No longer initialize PHI_ARG_NONZERO.
17217 (remove_phi_arg_num): No longer copy PHI_ARG_NONZERO from the old
17218 node to the new node.
17219
f064ebd1 17220 PR tree-optimization/26425
17221 * tree-vrp.c (vrp_visit_assignment): If the LHS's type has a NULL
17222 min/max, then assume its varying.
17223
5ed26a34 172242006-02-23 Zdenek Dvorak <dvorakz@suse.cz>
17225
17226 PR rtl-optimization/26316
17227 * rtlanal.c (enum may_trap_p_flags): New.
17228 (may_trap_p_1): Take flags instead of unaligned_mems argument. Ignore
17229 MEM_NOTRAP_P if flags & MTP_AFTER_MOVE.
17230 (may_trap_p, may_trap_or_fault_p): Pass flags to may_trap_p_1.
17231 (may_trap_after_code_motion_p): New function.
17232 * loop-invariant.c (find_identical_invariants): Fix dump formating.
17233 (find_invariant_insn): Use may_trap_after_code_motion_p.
17234 * rtl.h (may_trap_after_code_motion_p): Declare.
17235
b1ca4af4 172362006-02-23 Zdenek Dvorak <dvorakz@suse.cz>
17237
17238 * emit-rtl.c (immed_double_const): Cleanup.
17239
a9114efc 172402006-02-23 Daniel Berlin <dberlin@dberlin.org>
6a3e083e 17241
a9114efc 17242 Fix PR tree-optimization/26376
522701ef 17243 * tree-ssa-structalias.c (find_func_aliases): Use get_id_for_tree,
a9114efc 17244 remove assert.
17245
a078576a 172462006-02-23 Jakub Jelinek <jakub@redhat.com>
17247
17248 PR middle-end/26412
17249 * gimplify.c (omp_add_variable): Guard variable size decl test with
17250 DECL_SIZE (decl) check.
17251
08ea2b04 172522006-02-23 Richard Guenther <rguenther@suse.de>
17253
17254 PR middle-end/26439
17255 * tree-ssa-structalias.c (find_func_aliases): Handle complex types
17256 like aggregate types.
17257
2dde0cc6 172582006-02-23 Jakub Jelinek <jakub@redhat.com>
17259
17260 * configure.ac: Add --with{,out}-long-double-128 configure option.
17261 (TARGET_DEFAULT_LONG_DOUBLE_128): New test.
17262 * configure: Rebuilt.
17263 * config.in: Rebuilt.
17264 * doc/install.texi (Options specification): Document
17265 --with-long-double-128.
17266
17267 * config/rs6000/linux.h [TARGET_DEFAULT_LONG_DOUBLE_128]
17268 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
17269 * config/rs6000/linux64.h [TARGET_DEFAULT_LONG_DOUBLE_128]
17270 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
17271
172722006-02-23 Aldy Hernandez <aldyh@redhat.com>
17273
17274 * config/s390/s390.c (override_options): Handle
17275 TARGET_DEFAULT_LONG_DOUBLE_128.
17276
17277 * config/alpha/alpha.c (override_options): Handle
17278 TARGET_DEFAULT_LONG_DOUBLE_128.
17279
17280 * config/sparc/sparc.c (sparc_override_options): Handle
17281 TARGET_DEFAULT_LONG_DOUBLE_128.
17282
ccdd426b 172832006-02-22 Daniel Jacobowitz <dan@codesourcery.com>
17284
17285 * Makefile.in (stmp-fixinc): Use real-$(INSTALL_HEADERS_DIR).
17286 (real-install-headers-tar, real-install-headers-cpio)
17287 (real-install-headers-cp): New targets.
17288
610a28ab 172892006-02-22 Richard Sandiford <richard@codesourcery.com>
17290
17291 * tree.h (variable_section): Delete.
17292 * varasm.c (variable_section): Delete.
17293
6f6ae966 172942006-02-22 Paolo Bonzini <bonzini@gnu.org>
17295
17296 * install.texi: Add notes on install.texi2html.
17297 (Building in parallel): Do not use footnotes.
17298
9d5a3c4a 172992006-02-21 Aldy Hernandez <aldyh@redhat.com>
17300
17301 PR libgomp/26234
17302 * doc/install.texi (Configuration): Document --disable-libgomp.
17303
269dcd9d 173042006-02-21 Geoffrey Keating <geoffk@apple.com>
17305
17306 * config/i386/darwin.h (DWARF2_FRAME_REG_OUT): New.
17307
f7fa840e 173082006-02-21 Alexandre Oliva <aoliva@redhat.com>
17309
17310 * config/i386/sse.md (vec_extractv2df_1_sse): New.
17311 (vec_extractv2df_0_sse): New.
17312
89fa767a 173132006-02-21 Alexandre Oliva <aoliva@redhat.com>
17314
17315 * defaults.h (CFA_FRAME_BASE_OFFSET): Define.
17316 * config/ia64/ia64.h (CFA_FRAME_BASE_OFFSET): Override.
17317 * doc/tm.texi (CFA_FRAME_BASE_OFFSET): Document.
17318 * dwarf2out.c (build_cfa_loc): New offset parameter. Add it
17319 to the result of the expression.
17320 (def_cfa_1): Adjust.
17321 (frame_pointer_cfa_offset): Rename to...
17322 (frame_pointer_fb_offset): ... this. Adjust all uses.
17323 (convert_cfa_to_loc_list): Rename to...
17324 (convert_cfa_to_fb_loc_list): ... this. New offset parameter.
17325 Pass it on to build_cfa_loc.
17326 (compute_frame_pointer_to_cfa_displacement): Rename to...
17327 (compute_frame_pointer_to_fb_displacement): ... this. New
17328 offset parameter. Use it in computation.
17329 (gen_subprogram_die): Compute cfa_fb_offset with the new
17330 macro, and use it to compute the fb loc list and the
17331 displacement.
17332
622e3203 173332006-02-21 Bernd Schmidt <bernd.schmidt@analog.com>
17334
17335 * config/bfin/predicates.md (cc_operand): Delete predicate. All uses
17336 replaced with register_operand.
17337 * config/bfin/bfin.c (bfin_register_move_cost): Moving CC to any
17338 non-DREG is expensive.
17339 * config/bfin/bfin.h (FIXED_REGISTERS): CC isn't fixed.
17340 * config/bfin/bfin.md (movbi): Fix constraints and template for moves
17341 involving memory.
17342
16561f50 173432006-02-21 Joseph S. Myers <joseph@codesourcery.com>
17344
17345 * doc/install.texi2html: Use set -e.
17346
e5ce4771 173472006-02-21 Richard Sandiford <richard@codesourcery.com>
17348
17349 * doc/tm.texi (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
17350 (ASM_OUTPUT_SHARED_LOCAL): Delete.
17351 * doc/invoke.texi (-fshared-data): Delete.
17352 * common.opt (fshared-data): Delete.
17353 * varasm.c (asm_emit_uninitialised): Remove flag_shared_data handling.
17354 (assemble_static_space): Remove #if 0 code.
17355 * system.h (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
17356 (ASM_OUTPUT_SHARED_LOCAL): Poison.
17357 * config/cris/cris.h: Remove FIXME.
17358
903de853 173592006-02-21 Paolo Bonzini <bonzini@gnu.org>
17360
17361 * doc/sourcebuild.texi (Front End Directory): No more double-colon
17362 hooks.
17363
ad4ecfda 173642006-02-21 Jakub Jelinek <jakub@redhat.com>
17365
17366 PR middle-end/26379
17367 * combine.c (simplify_shift_const_1): Disable nested shifts
17368 optimization for vector shifts.
17369
667c08ce 173702006-02-20 Roger Sayle <roger@eyesopen.com>
17371
17372 PR tree-optimization/26361
17373 * tree-vrp.c (extract_range_from_unary_expr): Handle NEGATE_EXPR
17374 of unsigned integer types.
17375
6b421feb 173762006-02-20 Sebastian Pop <pop@cri.ensmp.fr>
17377
17378 * tree-chrec.c (eq_evolutions_p): New.
17379 * tree-chrec.h (eq_evolutions_p): Declared.
17380 * tree-data-ref.c: Fix formatting.
17381 (datadep_stats, dependence_stats): New.
17382 (gcd): Moved...
17383 (print_direction_vector): New.
17384 (dump_data_dependence_relation): Use print_direction_vector.
17385 (object_analysis, create_data_ref): Handle COMPONENT_REF.
17386 (compute_subscript_distance): Static.
17387 (initialize_data_dependence_relation): Static. Get the number
17388 of loops surrounding the references from the callers, and initialize
17389 DDR_SIZE_VECT to nb_loops. Use both base_addr_differ_p and
17390 base_object_differ_p analyzers.
6a3e083e 17391 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
6b421feb 17392 compute_overlap_steps_for_affine_1_2,
17393 analyze_subscript_affine_affine): Count the classified dependences.
17394 Print a message when a test failed.
6a3e083e 17395 (can_use_analyze_subscript_affine_affine): New.
6b421feb 17396 (analyze_siv_subscript): Compute the data dependences on symbolic
17397 scevs that verify can_use_analyze_subscript_affine_affine.
17398 (chrec_steps_divide_constant_p): Returns true, false, or unknown.
17399 (analyze_miv_subscript): Update use of chrec_steps_divide_constant_p.
17400 Handle symbolic scevs.
17401 (analyze_overlapping_iterations): Let symbolic affine scevs to be
17402 analyzed.
17403 (subscript_dependence_tester): Moved...
6a3e083e 17404 (build_classic_dist_vector, build_classic_dir_vector): Don't use
6b421feb 17405 lambda_vector_clear on newly allocated vectors. Get nb_loops from
17406 DDR_SIZE_VECT instead of getting it in parameter.
6a3e083e 17407 (subscript_dependence_tester): ... here. Take as a parameter
6b421feb 17408 loop_nest_depth. Call build_classic_dist_vector and
17409 build_classic_dir_vector.
6a3e083e 17410 (compute_affine_dependence): Update subscript_dependence_tester
17411 parameters. Update datadep_stats counters. Call
6b421feb 17412 compute_subscript_distance.
6a3e083e 17413 (compute_self_dependence): Save the dist and dir vectors. Call
6b421feb 17414 compute_subscript_distance.
17415 (ddr_p, DEF_VEC_P(ddr_p), DEF_VEC_ALLOC_P(ddr_p,heap)): Moved...
17416 (compute_all_dependences): Reorder parameters as they were before
17417 conversion to VEC. Pass nb_loops and loop_nest_depth. Don't call
6a3e083e 17418 compute_subscript_distance. Update the use of
6b421feb 17419 compute_affine_dependence and initialize_data_dependence_relation.
17420 (find_data_references_in_loop): Handle COMPONENT_REF.
17421 (compute_data_dependences_for_loop): Initialize dependence_stats.
17422 Don't call build_classic_dist_vector and build_classic_dir_vector.
6a3e083e 17423 Update the parameters of initialize_data_dependence_relation and
6b421feb 17424 compute_all_dependences. Print the statistics from datadep_stats.
17425 (analyze_all_data_dependences): Static. Not used until the pass for
17426 checking the data dependences is contributed.
17427 * tree-data-ref.h (ddr_p, DEF_VEC_P(ddr_p),
17428 DEF_VEC_ALLOC_P(ddr_p,heap)): ... here.
6a3e083e 17429 (initialize_data_dependence_relation, compute_affine_dependence,
6b421feb 17430 analyze_all_data_dependences, compute_subscript_distance): Removed.
17431 (print_direction_vector): New.
17432 * lambda.h (gcd): ... here.
17433 (lambda_vector_gcd): Moved here from gcd_vector.
17434 * lambda-code.c (gcd, gcd_vector): Removed.
17435 (lambda_compute_target_space): Use lambda_vector_gcd. Fix formatting.
17436 * Makefile.in (tree-vect-patterns.o): Depends on TREE_DATA_REF_H.
17437
a002e999 174382006-02-20 Diego Novillo <dnovillo@redhat.com>
17439
17440 * ipa-type-escape.c: Tidy some comments and white space.
17441 * tree-ssa-operands.c: Likewise.
17442
4d735392 174432006-02-20 Andrew Pinski <pinskia@physics.uc.edu>
17444
17445 PR tree-opt/25879
17446 * tree-pretty-print.c (debug_tree_chain): Walk the chains.
17447 (dump_decl_name): Do not walk the decl tree chains.
17448 * tree-pass.h (TDF_CHAIN): Remove.
17449
17450