1 2006-05-16 Richard Guenther <rguenther@suse.de>
3 PR tree-optimization/22303
4 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
6 (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
7 ccp_fold did not simplify the statement.
9 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
12 * Makefile.in (GCC_OBJS): New.
13 (OBJS-common): Add opts-common.o.
14 (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
15 (cpp$(exeext)): Likewise.
16 (gcc.o): Also depend on opts.h.
19 * common.opt (gcoff): Add Negative(gdwarf-2).
20 (gdwarf-2): Add Negative(gstabs).
21 (gstabs): Add Negative(gstabs+).
22 (gstabs+): Add Negative(gvms).
23 (gvms): Add Negative(gxcoff).
24 (gxcoff): Add Negative(gxcoff+).
25 (gxcoff+): Add Negative(gcoff).
26 * config/i386/i386.opt (m32): Add Negative(m64).
27 (m64): Add Negative(m32).
29 * doc/options.texi: Document the Negative option.
31 * gcc.c: Include "opts.h".
32 (main): Call prune_options after expandargv.
34 * optc-gen.awk: Generate common declarations for all flag
35 variables in options.c. Output the neg_index field.
37 * opts.c (find_opt): Moved to ...
38 * opts-common.c: Here. New file.
40 * opts.h (cl_option): Add a neg_index field.
42 (prune_options): Likewise.
44 2006-05-16 Jakub Jelinek <jakub@redhat.com>
47 * omp-low.c (expand_omp_parallel): Don't assert
48 .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
49 instead search for it.
52 * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
55 2006-05-16 Andreas Schwab <schwab@suse.de>
57 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
60 2006-05-15 Roger Sayle <roger@eyesopen.com>
63 * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
64 integer constants other than zero are only legitimate on TARGET_64BIT.
65 <CONST_VECTOR> Only zero vectors are legitimate.
66 (ix86_cannot_force_const_mem): Integral and vector constants can
67 always be put in the constant pool.
69 2006-05-16 DJ Delorie <dj@redhat.com>
71 * crtstuff.c (__dso_handle): Set section from
72 TARGET_LBIGCC_SDATA_SECTION if defined.
73 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
74 * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
76 2006-05-16 Danny Smith <dannysmith@users.sourceforge.net>
79 * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
82 2006-05-16 Ben Elliston <bje@au.ibm.com>
84 * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
86 2006-05-15 Per Bothner <per@bothner.com>
88 * tree.c: (last_annotated_node): Use sources_locus typedef.
89 This permits bootstrapping with --enable-mapped-location.
91 2006-05-15 Zdenek Dvorak <dvorakz@suse.cz>
93 PR tree-optimization/26830
94 * tree-into-ssa.c (struct ssa_name_info): Add age field.
95 (info_for_ssa_name, current_info_for_ssa_name_age,
96 blocks_to_update): New variables.
97 (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
98 (clear_ssa_name_info, initialize_flags_in_bb,
99 mark_block_for_update): New functions.
100 (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
101 (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
102 prepare_def_site_for): Use mark_block_for_update.
103 (mark_def_interesting): Assert that the processed block is marked in
104 blocks_to_update. Do not take blocks argument.
105 (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
107 (rewrite_update_init_block, rewrite_update_stmt): Only process
108 blocks with statements to rewrite.
109 (delete_update_ssa): Do not clear SSA_NAME_AUX.
110 (update_ssa): Initialize and free blocks_to_update. Do not
111 clear flags on statements. Do not use blocks bitmap.
112 * tree.h (SSA_NAME_AUX): Removed.
113 (struct tree_ssa_name): Removed aux field.
114 * print-tree.c (print_node): Do not print SSA_NAME_AUX.
116 2006-05-15 Richard Guenther <rguenther@suse.de>
118 PR tree-optimization/27603
119 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
120 Do computations in original type.
122 2006-05-15 Mircea Namolaru <namolaru@il.ibm.com>
124 * see.c: Code style changes such as redundant paranthesis,
125 redundant intialization of local variables etc.
126 (see_main): Declared now as static.
127 * doc/invoke.texi: Update that -fsee is not enabled by
130 2006-05-15 Jakub Jelinek <jakub@redhat.com>
132 * omp-low.c (check_omp_nesting_restrictions): New function.
133 (scan_omp_1): Call it.
136 * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
137 construct, return *VAR.
139 2006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
141 PR rtl-optimization/27406
142 * bt-load.c (migrate_btr_def): Skip the block having abnormal
145 2006-05-14 Roger Sayle <roger@eyesopen.com>
147 PR rtl-optimization/27538
148 * combine.c (expand_compound_operation): Call gen_lowpart
149 before calling simplify_shift_const.
151 2006-05-14 Roger Sayle <roger@eyesopen.com>
153 PR rtl-optimization/22563
154 * expmed.c (store_fixed_bit_field): When using AND and IOR to store
155 a fixed width bitfield, always force the intermediates into psuedos.
157 2006-05-14 Bernhard Fischer <aldot@gcc.gnu.org>
160 * mkconfig.sh: Use operator = instead of == for test.
162 2006-05-13 Nick Clifton <nickc@redhat.com>
164 * dwarf2out.c (dbx_reg_number): Check return value from
165 LEAF_REG_REMAP and only use it if it is valid.
166 (multiple_reg_loc_descriptor): Likewise.
168 2006-05-13 Richard Guenther <rguenther@suse.de>
170 * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
173 2006-05-13 Steven Bosscher <stevenb.gcc@gmail.com>
175 * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
176 information attached to non-INSNs such as NOTEs.
177 (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
179 2006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
181 * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
183 * config/s390/s390.md: Adjust comment describing On constraint.
185 2006-05-11 Jan Hubicka <jh@suse.cz>
187 * cgraphunit.c (decide_is_function_needed): Don't force always_inline
190 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
193 * fold-const.c (size_binop): Move sanity check for arguments to
194 the beginning of the function.
197 * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
200 2006-05-11 Richard Guenther <rguenther@suse.de>
203 * fold-const.c (fold_unary): Handle intermediate conversion
204 to a pointer type like intermediate conversion to an integer
205 type in folding of (T1)(T2)var to var.
206 Match the code to the comment in the final conversion for
207 (T1)(T2)var to (T1)var regarding to type precision. Rather
208 than disallow T1 being of pointer type, assert that both T1
209 and var are of pointer type or not. Make sure not to fall
210 over the frontends lazyness wrt array to pointer decay though.
212 2006-05-10 Richard Earnshaw <rearnsha@arm.com>
214 * arm.c (arm_struct_value_rtx): Delete.
215 (TARGET_STRUCT_VALUE_RTX): Use the default definition.
216 (arm_init_cumulative_args): Always initialize nregs to zero.
218 2006-05-10 Richard Guenther <rguenther@suse.de>
220 PR tree-optimization/27532
221 * tree-object-size.c (plus_expr_object_size): Fix typo.
223 2006-05-10 Kazu Hirata <kazu@codesourcery.com>
226 * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
227 ashrdi_const, ashrdi3): Use a scratch register.
229 2006-05-10 Richard Guenther <rguenther@suse.de>
231 PR tree-optimization/27302
232 * fold-const.c (operand_equal_p): For two comparisons,
233 try comparison of one comparison code swapped if that yields
236 2006-05-10 Ben Elliston <bje@au.ibm.com>
238 * tree-pretty-print.c (pretty_print_string): No need to handle
239 '\0' as a special character.
241 * tree.h: Include "hashtab.h".
242 (iterative_hash_expr): Use hashval_t in its prototype.
243 * Makefile.in (TREE_H): Add $(HASHTAB_H).
245 2006-05-09 Steve Ellcey <sje@cup.hp.com>
248 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
249 (hppa*64*-*-hpux11*): Ditto.
250 (hppa[12]*-*-hpux11*): Ditto.
252 2006-05-09 David Edelsohn <edelsohn@gnu.org>
255 * config/rs6000/aix41.h (TARGET_64BIT): Define.
257 2006-05-09 Michael Matz <matz@suse.de>
259 * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
260 host_extra_gcc_objs and host_xmake_file.
261 (<*-*-linux*>): Don't overwrite host_xmake_file.
262 * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
263 * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
264 (host_detect_local_cpu): Declare.
265 (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
266 * config/i386/i386.c (override_options): Handle -mtune=native
268 * config/i386/x-i386: New file.
269 * config/i386/driver-i386.c: New file.
270 * doc/invoke.texi (<i386 and x86-64 Options>): Describe
273 2006-05-09 Dirk Mueller <dmueller@suse.de>
274 Richard Guenther <rguenther@suse.de>
277 * fold-const.c (fold_read_from_constant_string): Relax check
278 for matching types to matching modes.
280 2006-05-09 Zdenek Dvorak <dvorakz@suse.cz>
282 PR rtl-optimization/27335
283 * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
286 2006-05-08 Chao-ying Fu <fu@mips.com>
287 Richard Sandiford <richard@codesourcery.com>
289 * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
290 (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
291 * config/mips/mips.md (UNSPEC_SCC): New constant.
292 * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
293 * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
294 (mips_emit_compare): Use it.
295 (mips_expand_vcondv2sf): New function.
297 2006-05-08 Daniel Berlin <dberlin@dberlin.org>
299 Fix PR tree-optimization/27093
300 * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
301 renaming when they become not-used_alone.
303 2006-05-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
305 * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
306 relocation and relocation stubs.
308 2006-05-08 Eric Christopher <echristo@apple.com>
310 * unwind-dw2-fde-darwin.c (examine_objects): Only check data
313 2006-05-08 Jan Hubicka <jh@suse.cz>
316 * cgraphunit.c (decide_is_function_needed): When not optimizing even
317 unused static functions are needed.
319 2006-05-08 Roger Sayle <roger@eyesopen.com>
322 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
323 of a reg_equiv_constant if the result is a legitimate constant.
325 2006-05-08 Uros Bizjak <uros@kss-loka.si>
328 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
329 standard 80387 constants, raise the cost to prevent
330 compress_float_constant() to generate load from memory.
332 2006-05-08 Kazu Hirata <kazu@codesourcery.com>
334 * config/arm/constraints.md (c): Fix a typo.
336 * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
339 2006-05-07 H.J. Lu <hongjiu.lu@intel.com>
342 * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
344 (_mm_mwait): Likewise.
346 * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
348 (sse3_monitor): Make it 32bit only.
349 (sse3_monitor64): New. 64bit monitor.
351 2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
354 * config/i386/i386.c (classify_argument): Skip fields with invalid
357 2006-05-07 Richard Guenther <rguenther@suse.de>
359 PR tree-optimization/27409
360 * tree-ssa-structalias.c (get_constraint_for_component_ref):
361 Do not try to find zero-sized subvars.
363 2006-05-07 Richard Guenther <rguenther@suse.de>
365 PR tree-optimization/27136
366 * tree-ssa-loop-niter.c (get_val_for): Correct function
367 comment, assert requirements.
368 (loop_niter_by_eval): Stop processing if the iterated
369 value did not simplify.
371 2006-05-07 Mircea Namolaru <namolaru@il.ibm.com>
373 * opts.c (flag_see): remove its setting at -O3.
375 2006-05-07 Richard Earnshaw <rearnsha@arm.com>
377 * genpeep.c (main): Make insn-peep.c depend on flags.h.
378 * arm/constraints.md: New file.
379 * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
380 (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
381 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
382 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
383 (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
384 (EXTRA_MEMORY_CONSTRAINT): Likewise.
385 * arm.md: Include constraints.md.
386 (thumb_movsi_insn): Use satisfies_constraint_J.
387 (movhi, movqi): Use satisfies_constraint_I.
389 2006-04-29 Anatoly Sokolov <aesok@post.ru>
391 * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
392 for atmeg a645 device.
394 2006-05-06 Richard Guenther <rguenther@suse.de>
396 PR tree-optimization/27151
397 * tree-vect-transform.c (vectorizable_condition): Punt on
398 values that have a different type than the condition.
400 2006-05-03 Aldy Hernandez <aldyh@redhat.com>
403 * c-parser.c (c_parser_cast_expression): Only insert casts into
404 hash table if pointer.
405 * function.c (used_types_insert_helper): Rename from
407 (used_types_insert): Call used_types_insert_helper.
408 * function.h (used_types_insert): Accept only one argument.
410 2006-05-05 David Edelsohn <edesohn@gnu.org>
412 * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
413 scratch with output modifier.
415 2006-05-04 David Edelsohn <edelsohn@gnu.org>
418 * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
419 with output modifier.
421 2006-05-04 Richard Sandiford <richard@codesourcery.com>
424 * config/mips/mips.c (mips_symbolic_address_p): Return true
425 for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
426 SYMBOL_GOTTPREL, and SYMBOL_TLS.
428 2006-05-04 Richard Guenther <rguenther@suse.de>
430 PR tree-optimization/14287
431 PR tree-optimization/14844
432 PR tree-optimization/19792
433 PR tree-optimization/21608
434 PR tree-optimization/27090
435 * tree-ssa-pre.c (try_combine_conversion): New function.
436 (compute_avail): After constructing the value-handle
437 expression, use try_combine_conversion to combine NOP_EXPRs
438 with previous value-handle expressions and use the result if it
441 2006-05-04 Joseph S. Myers <joseph@codesourcery.com>
443 * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
445 2006-05-04 Jan Hubicka <jh@suse.cz>
448 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
450 2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
452 * config/bfin/predicates.md (const01_rtx): Tell generator programs
453 that this only matches CONST_INTs. All users changed to VOIDmode
456 * config/bfin/bfin.c: Include "optabs.h".
457 (bfin_rtx_costs): Some costs for vector operations, to allow combine
459 (enum bfin_builtins): Add a number of fractional and vector builtins.
460 (bfin_init_builtins): Likewise.
461 (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
462 (safe_vector_operand, bfin_expand_binop_builtin,
463 bfin_expand_unop_builtin): New functions.
464 (bfin_expand_builtin): Handle the new builtins.
465 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
468 2006-05-04 Leehod Baruch <leehod@il.ibm.com>
471 * Makefile.in (OBJS-common): Add see.o.
472 (see.o): Add dependencies.
473 * common.opt (fsee): New flag for the see optimization was added.
474 * opts.c (flag_see): Initialized.
475 * passes.c (init_optimization_passes, pass_see): New pass.
476 * rtl.h (see_main): Declaration as extern.
477 * timevar.def (TV_SEE): New.
478 * tree-pass.h (pass_see): Declaration as extern.
479 * invoke.texi (-fsee): Document.
480 * recog.c (validate_simplify_insn): New function.
481 * recog.h (validate_simplify_insn): Declaration as extern.
482 * df-problems.c (df_chain_dump): Check for NULL.
484 2006-05-04 Kenneth Zadeck <zadeck@naturalbridge.com>
485 Daniel Berlin <dberlin@dberlin.org>
487 * cfgrtl.c (insert_insn_bb_end_new): New function.
488 * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
490 2006-05-04 Leehod Baruch <leehod.baruch@weizmann.ac.il>
492 * df.h (struct web_entry): Moved from web.c.
493 (union_defs): Declaration as extern.
494 (unionfind_root): Likewise.
495 (unionfind_union): Likewise.
496 * web.c (struct web_entry): Moved to df.h.
497 (unionfind_root): Remove static declaration.
498 (unionfind_union): Likewise.
499 (union_defs): Likewise and generalize to use callback function.
500 (web_main): Update arguments for union_defs function call.
502 2006-05-04 Richard Guenther <rguenther@suse.de>
504 PR tree-optimization/26447
505 * tree-ssa-pre.c (realify_fake_stores): For necessary loads
506 produce SSA_NAME copies before the store stmt to avoid
507 breaking exception handling.
509 2006-05-04 Jakub Jelinek <jakub@redhat.com>
512 * gimplify.c (omp_is_private): If var is shared in some outer context,
513 return false instead of true. Stop searching on parallel context
516 2006-05-03 Alexandre Oliva <aoliva@redhat.com>
519 * coverage.c: Use get_gcov_unsigned_t() instead of
520 unsigned_type_node all over.
522 2006-05-02 Andrew MacLeod <amacleod@redhat.com>
524 PR tree-optimization/27381
525 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
526 maintain the same immediate_use links.
527 * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
528 node rather than segfaulting.
530 2006-05-03 Jakub Jelinek <jakub@redhat.com>
533 * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
534 rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
535 bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
537 2006-05-02 Daniel Berlin <dberlin@dberlin.org>
539 Fix PR tree-optimization/26626
540 * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
542 * tree-ssa-operands.c (access_can_touch_variable): Allow
543 typecasting through union pointers.
545 2006-05-02 Jakub Jelinek <jakub@redhat.com>
548 * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
549 (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
550 to find if var will be a global variable even in the nested context.
551 (omp_copy_decl): Only check for global variable at the end, it might
552 be overridden in outer contexts.
553 (scan_sharing_clauses): For global variables don't create a field.
554 (lower_rec_input_clauses): Do nothing for global shared variables.
555 Emit a barrier at the end of ILIST if there were any decls in both
556 firstprivate and lastprivate clauses.
557 (lower_send_clauses): Do nothing for global variables except for
560 2006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
562 * tree.c (unsigned_type_for, signed_type_for): Make sure a type
563 of the correct signedness is returned.
565 2006-05-02 Jeff Law <law@redhat.com>
567 PR tree-optimization/27364
568 * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
569 multiply expressions.
571 2006-05-02 Tom Tromey <tromey@redhat.com>
573 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
575 2006-05-02 Kazu Hirata <kazu@codesourcery.com>
578 * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
579 -mthumb -fPIC are used.
581 2006-05-02 Stanislaw Skowronek <skylark@linux-mips.org>
582 Joshua Kinard <kumba@gentoo.org>
585 * gcc/config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
586 with 64-bit pointers.
588 2006-05-02 Paul Brook <paul@codesourcery.com>
590 * config/arm/arm.c (add_minipool_forward_ref): Check if insn
592 (create_fix_barrier): Check that a suitable barrier location is
594 (arm_reorg): Include ftmp->address in allowable range of addresses.
596 2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
599 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
602 2006-05-02 Jakub Jelinek <jakub@redhat.com>
605 * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
606 around RESULT_DECL for result passed by reference.
607 (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
608 * omp-low.c (use_pointer_for_field): Don't look at
609 DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
610 (scan_omp_1): Call remap_decl on RESULT_DECLs.
611 (lower_rec_input_clauses): Don't allocate VLA memory for the second
612 time or var for passing by reference for
613 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
614 TREE_ADDRESSABLE variables when passing by reference.
616 * omp-low.c (dump_omp_region): Fix output formatting.
619 * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
620 (expand_omp_parallel): Likewise.
621 * tree-cfg.c (move_sese_region_to_fn): Likewise.
624 * omp-low.c (lower_omp_sections): Call maybe_catch_exception
625 on statement list containing also constructors and destructors.
626 (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
629 * except.c (duplicate_eh_regions): Fix clearing of
630 cfun->eh->region_array entries.
632 2006-05-01 DJ Delorie <dj@redhat.com>
634 * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
636 (gcc_cv_objdump): Likewise.
637 * configure: Regenerated.
639 2006-05-01 Kazu Hirata <kazu@codesourcery.com>
642 * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
643 templates for case 3 and 4.
645 2006-05-01 DJ Delorie <dj@redhat.com>
647 * vec.c: Include bconfig.h when appropriate.
648 * Makefile.in (build/vec.o): Adjust dependencies.
649 * mkconfig.sh: Make sure config.h isn't used for build machine
652 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
654 * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
656 (mark_phi_for_rewrite): New function.
657 (insert_phi_nodes_for, mark_use_interesting): Call
658 mark_phi_for_rewrite.
659 (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
660 (update_ssa): Initialize and free phis_to_rewrite.
662 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
664 PR rtl-optimization/27291
665 * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
666 folded to a constant.
668 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
670 PR tree-optimization/27283
671 * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
672 not whole # of iteration descriptions.
673 (niter_for_exit): Return just # of iterations. Fail if # of iterations
674 uses abnormal ssa name.
675 (niter_for_single_dom_exit): Ditto.
676 (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
677 return just the number of iterations.
679 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
681 PR tree-optimization/27144
682 * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
683 (record_estimate): Only record constant upper bound.
684 (infer_loop_bounds_from_undefined): Call
685 compute_estimated_nb_iterations just once.
686 (proved_non_wrapping_p): Renamed to ...
687 (n_of_executions_at_most): ... this. Expect bound to be a constant.
688 (convert_step_widening, scev_probably_wraps_p): Call
689 n_of_executions_at_most instead of proved_non_wrapping_p.
690 (substitute_in_loop_info): Do not replace values in bounds.
691 * cfgloop.h (struct nb_iter_bound): Remove "additional" field. Update
694 2006-05-01 Richard Henderson <rth@redhat.com>
697 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
698 c_parser_skip_to_pragma_eol. Convert to switch statement. Handle
701 2006-05-01 Roger Sayle <roger@eyesopen.com>
703 * c-typeck.c (parser_build_binary_op): Don't call the function
704 unsigned_conversion_warning to spot operand/result type overflow.
705 (build_binary_op): Instead, call convert_and_check instead of
706 convert to report the problem when the operands are promoted.
707 * c-common.c (unsigned_conversion_warning): Make static.
708 * c-common.h (unsigned_conversion_warning): Delete prototype.
710 2006-05-01 Richard Guenther <rguenther@suse.de>
712 PR tree-optimization/26726
713 * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
715 (find_interesting_uses_address): ... we work around here
716 by folding INDIRECT_REFs in the substituted base.
718 2006-05-01 Diego Novillo <dnovillo@redhat.com>
720 * omp-low.c (dump_omp_region): Add newlines.
722 2006-04-30 Roger Sayle <roger@eyesopen.com>
724 * common.opt (Woverflow): New command line option.
725 * c-common.c (constant_expression_warning): Check warn_overflow.
726 (overflow_waring): Pass OPT_Woverflow to warning.
727 (unsigned_conversion_warning): Likewise.
728 (convert_and_check): Likewise.
729 * doc/invoke.texi: Document new command line option.
731 2006-04-30 David Edelsohn <edelsohn@gnu.org>
733 * config/rs6000/rs6000.c (rs6000_override_options): Enable
734 TARGET_NO_FP_IN_TOC for section anchors.
735 (optimization_options): Enable section anchors for all
736 non-"Objective" languages.
738 2006-04-28 Eric Christopher <echristo@apple.com>
740 * config/darwin-c.c (darwin_ms_struct): Move this
741 (darwin_set_default_type_attributes): and this...
742 * config/darwin.c: ... here.
743 * config/darwin.h (darwin_ms_struct): Declare.
745 2006-04-28 Andrew MacLeod <amacleod@redhat.com>
747 * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
749 2006-04-28 Roger Sayle <roger@eyesopen.com>
752 * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
753 (push_array_bounds): Delete prototype. Change BOUNDS argument to
754 an unsigned HOST_WIDE_INT.
755 (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
757 (really_start_incremental_init): No need to call convert because
758 bitsize_zero_node is already of type bitsizetype.
759 (push_init_level): Extract the value of constructor_index as an
760 unsigned HOST_WIDE_INT quantity, using tree_low_cst.
761 (process_init_element): Likewise.
763 2006-04-28 Joseph S. Myers <joseph@codesourcery.com>
765 * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
766 value before passing to make_relative_prefix.
768 2006-04-28 Alan Modra <amodra@bigpond.net.au>
771 * builtins.c (expand_builtin_memset): Expand val in original mode.
773 2006-04-27 Eric Christopher <echristo@apple.com>
775 * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
777 * config/darwin-c.c (darwin_ms_struct): New.
778 (darwin_pragma_ms_struct): Ditto.
779 (darwin_set_default_type_attributes): Ditto.
780 * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
781 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
782 Register ms_struct pragma.
783 * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
784 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
785 * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
786 darwin_set_default_type_attributes if TARGET_MACHO.
788 2006-04-27 Andrew MacLeod <amacleod@redhat.com>
790 PR tree-optimization/26854
791 * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
792 * doc/tree-ssa.texi: Update immuse iterator documentation.
793 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
794 * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
795 * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
796 first_safe_imm_use, next_safe_imm_use): Remove.
797 (end_imm_use_stmt_p): New. Check for end of immuse stmt traversal.
798 (end_imm_use_stmt_traverse): New. Terminate immuse stmt traversal.
799 (move_use_after_head): New. Helper function to sort immuses in a stmt.
800 (link_use_stmts_after): New. Link all immuses in a stmt consescutively.
801 (first_imm_use_stmt): New. Get first stmt in an immuse list.
802 (next_imm_use_stmt): New. Get next stmt in an immuse list.
803 (first_imm_use_on_stmt): New. Get first immuse on a stmt.
804 (end_imm_use_on_stmt_p): New. Check for end of immuses on a stmt.
805 (next_imm_use_on_stmt): New. Move to next immuse on a stmt.
806 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
807 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
808 (perfect_nestify): Use new iterator.
809 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
811 * tree-flow.h (struct immediate_use_iterator_d): Add comments.
812 (next_imm_name): New field in struct immediate_use_iterator_d.
813 (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
814 (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
815 FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
816 * tree-cfg.c (replace_uses_by): Use new iterator.
817 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
818 * tree-ssa-operands.c (correct_use_link): Remove.
819 (finalize_ssa_use_ops): No longer call correct_use_link.
821 2006-04-27 Stuart Hastings <stuart@apple.com>
823 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
824 * config/t-darwin (crt3.o): Use it.
825 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
826 'pmode', use Pmode instead of SImode for SYMBOL_REF.
827 * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
828 call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
829 call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
832 2006-04-27 Roger Sayle <roger@eyesopen.com>
834 * expmed.c (store_fixed_bit_field): If we're not optimizing for
835 size, force the intermediate into a new pseudo rather instead of
836 performing both a bitwise AND and a bitwise IOR in memory.
838 2006-04-27 Richard Guenther <rguenther@suse.de>
840 PR rtl-optimization/26685
841 * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
842 this one "max-flow-memory-locations".
844 2006-04-27 Richard Guenther <rguenther@suse.de>
846 PR tree-optimization/25148
847 * tree-vrp.c (compare_values): Remove code dealing with
848 comparisons against type min/max value. Honour overflow
849 and negative constants in code dealing with comparisons
850 of plus and minus expressions.
851 (value_inside_range): Use fold_binary with LE_EXPR and
852 GE_EXPR rather than compare_values.
854 2006-04-27 Dirk Mueller <dmueller@suse.de>
856 * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
859 2006-04-26 Kenneth Zadeck <zadeck@naturalbridge.com>
861 * basic-block.h (safe_insert_insn_on_edge): Removed.
862 * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
864 2006-04-26 David Edelsohn <edelsohn@gnu.org>
865 Paolo Bonzini <bonzini@gnu.org>
868 * combine.c (simplify_and_const_int_1): Use gen_int_mode.
869 (simplify_and_const_int): Same.
871 2006-04-26 Aldy Hernandez <aldyh@redhat.com>
873 * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
875 2006-04-26 Jakub Jelinek <jakub@redhat.com>
878 * cgraph.c (cgraph_varpool_finalize_decl): Don't call
879 cgraph_varpool_assemble_pending_decls if -fopenmp, unless
880 cgraph_global_info_ready.
883 * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
886 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
887 either decl or init is error_mark_node.
890 * tree-flow.h (struct omp_region): Add sched_kind.
891 * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
892 instead of extracting omp for data.
893 (expand_omp_for): Save extracted sched_kind.
895 2006-04-25 Roger Sayle <roger@eyesopen.com>
897 * expmed.c (store_bit_field): Also check whether the bitsize is
898 valid for the machine's "insv" instruction before moving the
899 target into a pseudo for use with the insv.
900 * config/i386/predicates.md (const8_operand): New predicate.
901 * config/i386/i386.md (extv, extzv, insv): Use the new
902 const8_operand predicate where appropriate.
904 2006-04-25 DJ Delorie <dj@redhat.com>
906 * doc/install.texi (Specific): Clarify that this is not a list of
907 supported hosts or targets.
909 2006-04-25 Richard Sandiford <richard@codesourcery.com>
911 PR rtl-optimization/26725
912 * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
913 block's BB_DIRTY flag.
915 2006-04-25 Geoffrey Keating <geoffk@apple.com>
917 * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
920 * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
923 2006-04-25 David Edelsohn <edelsohn@gnu.org>
925 * varasm.c (align_variable): New function.
926 (get_block_for_decl): Apply align_variable to DECL before
927 calculating section information.
928 (assemble_variable): Split out alignment computation.
930 2006-04-25 Andreas Krebbel <krebbel1@de.ibm.com>
932 * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
935 2006-04-25 Bernd Schmidt <bernd.schmidt@analog.com>
937 * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
938 MODE_PARTIAL_INT mode.
939 * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
940 * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
942 (hard_regno_mode_ok): V2PDImode is ok for accumulators.
943 * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
945 * config/bfin/predicates.md (const01_operand, vec_shift_operand):
947 * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
949 (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
950 MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
951 MACFLAG_IH): Likewise.
952 (movstricthi_1): Renamed from "*movstricthi".
953 (load_accumulator, load_accumulator_pair, movsi_insv, insv,
954 ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
955 abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
956 movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
957 movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
958 movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
959 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
960 sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
961 addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
962 mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
963 ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
964 flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
965 flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
966 flag_macv2hi_parts, flag_macv2hi_parts_acconly,
967 flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
969 * doc/rtl.texi (ss_ashift): Improve wording.
971 2006-04-24 Geoffrey Keating <geoffk@apple.com>
973 * dwarf2out.c (verify_marks_clear): New.
974 (prune_unused_types): Call verify_marks_clear initially, not
977 2006-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
979 * rtl.def (SS_ASHIFT, SS_NEG): New codes.
980 * doc/rtl.texi: Document them.
981 * simplify-rtx.c (simplify_unary_operation,
982 simplify_binary_operation_1): Don't abort when we see them.
984 2006-04-24 Mark Mitchell <mark@codesourcery.com>
987 2006-04-23 Mark Mitchell <mark@codesourcery.com>
988 * configure.ac: Completely disregard languages that are not
990 * configure: Regenerated.
992 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
993 Richard Guenther <rguenther@suse.de>
995 PR tree-optimization/27236
996 * tree-inline.c (copy_body_r): Make sure to copy
997 TREE_THIS_VOLATILE flag.
999 2006-04-24 Richard Guenther <rguenther@suse.de>
1002 * tree-complex.c (update_parameter_components): Don't handle
1003 unused parameters which have no default def.
1005 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
1006 Richard Guenther <rguenther@suse.de>
1008 PR tree-optimization/27218
1009 * tree-inline.c (expand_call_inline): Strip useless type
1010 conversions for the return slot address.
1012 2006-04-24 Richard Guenther <rguenther@suse.de>
1014 * cfgloop.h (struct loops): Remove unused field array. Reorder
1016 (LOOP_PREFETCH): Remove.
1018 2006-04-24 Richard Guenther <rguenther@suse.de>
1020 PR tree-optimization/22525
1021 * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
1022 variable, adjust types of generated expressions.
1024 2006-04-23 H.J. Lu <hongjiu.lu@intel.com>
1026 * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
1027 (tree-vect-patterns.o): Likewise.
1029 (cselib.o): Likewise.
1030 (loop-doloop.o): Likewise.
1031 (regclass.o): Likewise.
1032 (reload1.o): Likewise.
1033 (explow.o): Replace target.h with $(TARGET_H).
1034 (ipa-prop.o): Likewise.
1035 (ipa-cp.o): Likewise.
1036 (ipa-inline.o): Likewise.
1037 (reorg.o): Likewise.
1038 (reg-stack.o): Likewise.
1040 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
1042 * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
1044 2006-04-23 Mark Mitchell <mark@codesourcery.com>
1046 * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
1048 * configure.ac: Completely disregard languages that are not
1050 * configure: Regenerated.
1053 * c-common.h (c_build_bitfield_integer_type): Declare.
1054 * c-decl.c (c_build_bitfield_integer_type): Move to ...
1055 * c-common.c (c_build_bitfield_integer_type): ... here.
1057 2006-04-23 Roger Sayle <roger@eyesopen.com>
1060 * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
1061 a SImode SUBREG of a floating point register after no_new_pseudos.
1063 2006-04-23 Roger Sayle <roger@eyesopen.com>
1065 * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
1066 identify potentially eliminable registers to additionally catch
1067 VIRTUAL_INCOMING_ARGS_REGNUM.
1068 (addsi3): Update the conditions on when to use addsi_small_int.
1070 2006-04-23 Roger Sayle <roger@eyesopen.com>
1073 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
1074 STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
1075 rtx to stack_pointer_rtx or frame_pointer_rtx directly.
1077 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
1079 * fold-const.c (range_predecessor): Use operand_equal_p
1080 as the predicate for equality.
1081 (range_successor): Likewise.
1083 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
1086 * config/soft-fp/op-common.h: Fix a typo.
1088 2006-04-22 Frank Ch. Eigler <fche@redhat.com>
1091 * common.opt (flag_mudflap_threads): Overload flag_mudflap.
1092 * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
1094 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
1096 * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
1098 * doc/tm.texi: Fix a typo.
1100 2006-04-21 Geoffrey Keating <geoffk@apple.com>
1102 * dwarf2out.c (struct die_struct): Document that die_sib makes
1103 a circular linked list.
1104 (FOR_EACH_CHILD): New.
1105 (reverse_die_lists): Delete.
1106 (reverse_all_dies): Delete.
1107 (add_dwarf_attr): Correct documentation.
1108 (remove_child_with_prev): New.
1109 (remove_child_TAG): Update for change to die_struct, use
1110 remove_child_with_prev.
1111 (add_child_die): Update for change to die_struct.
1112 (splice_child_die): Use remove_child_with_prev and add_child_die.
1113 (print_die): Use FOR_EACH_CHILD.
1114 (die_checksum): Likewise.
1115 (assign_symbol_names): Likewise.
1116 (output_location_lists): Likewise.
1117 (build_abbrev_table): Likewise.
1118 (calc_die_sizes): Likewise.
1119 (mark_dies): Likewise.
1120 (unmark_dies): Likewise.
1121 (unmark_all_dies): Likewise.
1122 (output_die): Likewise.
1123 (prune_unused_types_mark): Likewise.
1124 (prune_unused_types_walk): Likewise.
1125 (same_die_p): Update for change to die_struct.
1126 (break_out_includes): Likewise.
1127 (prune_unused_types_prune): Likewise.
1128 (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
1129 (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
1131 (dwarf2out_finish): Don't call reverse_all_dies.
1133 2006-04-21 Eric Christopher <echristo@apple.com>
1135 * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
1136 in comments and function names.
1138 2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1141 * c-typeck.c (digest_init): Robustify.
1143 * c-typeck.c (pop_init_level): Simplify.
1145 2006-04-21 Steve Ellcey <sje@cup.hp.com>
1147 * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
1149 2006-04-21 Paul Brook <paul@codesourcery.com>
1151 * config/arm/arm.c (arm_override_options): Error on iWMMXt and
1152 hardware floating point.
1154 2006-04-21 David Edelsohn <edelsohn@gnu.org>
1156 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
1159 2006-04-21 Nick Clifton <nickc@redhat.com>
1161 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
1164 2006-04-21 Alan Modra <amodra@bigpond.net.au>
1167 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
1168 C++ lang type in traceback table for Objective-C++.
1170 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
1172 2006-04-20 H.J. Lu <hongjiu.lu@intel.com>
1174 * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
1176 2006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1179 * tree-mudflap.c (mudflap_finish_file): Skip function when there
1180 were errors. Remove check for erroneous objects.
1182 2006-04-20 Jeff Law <law@redhat.com>
1184 PR tree-optimization/26854
1185 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
1186 checking for zero or one use.
1187 * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
1188 * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
1189 * tree-ssa-reassoc.c (negate_value): Similarly.
1190 (reassociate_bb): Similarly.
1192 2006-04-20 Jakub Jelinek <jakub@redhat.com>
1194 * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
1195 TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
1196 than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
1198 2006-04-20 Alan Modra <amodra@bigpond.net.au>
1200 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
1201 fp regs if the last fp arg doesn't fit in regs.
1203 2006-04-20 Kaz Kojima <kkojima@gcc.gnu.org>
1206 * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
1207 that the last insn has the REG_INC note.
1209 2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
1210 Nathan Sidwell <nathan@codesourcery.com>
1213 * stor-layout.c (update_alignment_for_field): Do not align
1215 (place_union_field): Place union field at the start of the union.
1216 (place_field): Move ERROR_MARK check later, and use the current
1217 allocation position to maintain monotonicity.
1219 2006-04-19 Zdenek Dvorak <dvorakz@suse.cz>
1221 * dominance.c: Include timevar.h.
1222 (calculate_dominance_info): Use TV_DOMINANCE.
1223 * timevar.def (TV_DOMINANCE): New timevar.
1224 * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
1226 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
1228 PR rtl-optimization/14261
1229 * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
1230 move would be an INSV insn.
1231 (noce_process_if_block): Don't optimize if the destination is a
1232 ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
1234 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
1236 * config/s390/s390.md: Add comments with the instructions emitted
1237 by an insn pattern if macros are used.
1239 2006-04-19 Alan Modra <amodra@bigpond.net.au>
1241 PR rtl-optimization/26026
1242 * fold-const.c (fold_binary): Optimize div and mod where the divisor
1243 is a known power of two shifted left a variable amount.
1245 2006-04-18 Geoffrey Keating <geoffk@apple.com>
1247 * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
1248 to hash table twice when the debug_str section has SECTION_MERGE.
1250 2006-04-18 Joseph S. Myers <joseph@codesourcery.com>
1252 * config/soft-fp: New directory. From glibc.
1253 * config/soft-fp/t-softfp: New.
1254 * config/soft-fp/README: New.
1255 * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
1256 * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
1257 (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
1258 (LIBGCC_DEPS): Add $(SFP_MACHINE).
1259 * config.gcc: Use rs6000/t-fprules-fpbit or
1260 rs6000/t-fprules-softfp and soft-fp/t-softfp together with
1262 * config/rs6000/sfp-machine.h: New. Based on glibc.
1263 * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
1265 * config/rs6000/t-fprules: Remove fp-bit rules.
1266 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
1267 * config/rs6000/t-linux64: Likewise. Remove duplicates from
1268 LIB2FUNCS_EXTRA. Remove fp-bit rules.
1269 (softfp_wrap_start, softfp_wrap_end): New.
1271 2006-04-18 DJ Delorie <dj@redhat.com>
1273 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
1275 2006-04-18 Devang Patel <dpatel@apple.com>
1277 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
1279 2006-04-18 Nick Clifton <nickc@redhat.com>
1281 * config/sh/t-symbian: Add rule to build sh-c.o
1282 * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
1283 of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
1284 (sh_symbian_encode_section_info): Likewise.
1286 2006-04-18 Andreas Krebbel <krebbel1@de.ibm.com>
1288 * builtins.c (expand_builtin_strcmp): Cover label definition of
1289 do_libcall with HAVE_cmpstrnsi.
1291 2006-04-18 Kazu Hirata <kazu@codesourcery.com>
1293 * function.c (temp_slots_at_level, max_slot_level): Use VEC
1295 * function.h (temp_slot_p): New.
1296 (function): Change the type of x_used_temp_slots to
1297 VEC(temp_slot_p,gc) *.
1299 2006-04-18 Nick Clifton <nickc@redhat.com>
1301 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
1302 flag_strength_reduce.
1304 * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
1306 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
1310 Partial revert of revision 112637
1311 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
1312 Dale Johannesen <dalej@apple.com>
1315 * regclass.c (struct reg_pref): Update documentation.
1316 (regclass): Set prefclass to NO_REGS if memory is the best option.
1317 (record_reg_classes): Cope with a prefclass set to NO_REGS.
1319 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
1321 PR tree-optimization/26821
1322 * tree-ssa-math-opts.c (get_constant_one): New.
1323 (insert_reciprocals): Use it.
1325 2006-04-17 Geoffrey Keating <geoffk@apple.com>
1327 * dwarf2out.c (free_AT): Delete.
1328 (remove_AT): Update string ref counts.
1329 (remove_child_TAG): Don't call free_die.
1331 (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
1332 or DW_TAG_GNU_EINCL.
1333 (prune_unused_types_walk_attribs): Reset string refcounts.
1334 (prune_unused_types_update_strings): New.
1335 (prune_unused_types_prune): Don't make unnecessary stores. Don't
1336 call free_die. Do call prune_unused_types_update_strings.
1337 (prune_unused_types): Empty debug_str_hash.
1339 2006-04-17 Roger Sayle <roger@eyesopen.com>
1341 * expr.c (expand_assignment): Optimize away no-op moves where the
1342 source and destination are equal and have no side-effects.
1344 2006-04-17 Richard Guenther <rguenther@suse.de>
1347 * reload.c (push_reload): Guard calls to get_secondary_mem
1350 2006-04-16 Kazu Hirata <kazu@codesourcery.com>
1352 * alias.c (reg_base_value, old_reg_base_value): Change the
1353 type to VEC(rtx,gc) *.
1354 (REG_BASE_VALUE, find_base_value, record_set,
1355 init_alias_analysis): Use VEC instead of VARRAY.
1357 * alias.c (alias_sets): Change the type to
1358 VEC(alias_set_entry,gc) *.
1359 (get_alias_set_entry, new_alias_set, record_alias_subset): Use
1360 VEC instead of VARRAY.
1361 (last_alias_set): Remove.
1363 * cgraph.h (cgraph_edge_p): New.
1364 Update the prototype of cgraph_function_versioning.
1365 * cgraphunit.c (cgraph_copy_node_for_versioning,
1366 cgraph_function_versioning): Use VEC instead of VARRAY.
1367 * ipa-cp.c (ipcp_insert_stage): Likewise.
1369 2006-04-16 Roger Sayle <roger@eyesopen.com>
1372 * fold-const.c (fold_ternary): When converting "A ? B : C" into either
1373 "A op B" or "A op C", we may need to convert A to the type of B and C.
1375 2006-04-16 Adam Nemet <anemet@caviumnetworks.com>
1377 * target.h (struct gcc_target): Add mode_rep_extended.
1378 * rtlanal.c (num_sign_bit_copies_in_rep): New global.
1379 (init_num_sign_bit_copies_in_rep): Initialize it using
1381 (truncate_to_mode): Use it.
1382 (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
1383 * targhooks.h (default_mode_rep_extended): Declare it.
1384 * targhooks.c (default_mode_rep_extended): Define it.
1385 * target-def.h (TARGET_MODE_REP_EXTENDED): New macro. Default to
1386 default_mode_rep_extended.
1387 (TARGET_INITIALIZER): Include it.
1388 * doc/tm.texi (Misc): Document it.
1389 * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
1390 (mips_truncated_to_mode): New function.
1392 2006-04-16 Roger Sayle <roger@eyesopen.com>
1395 * expr.c (compress_float_constant): Copy the narrow constant into
1396 a new pseudo before extending it to its final width.
1398 2006-04-16 Roger Sayle <roger@eyesopen.com>
1399 Andrew Pinski <pinskia@gcc.gnu.org>
1400 Dale Johannesen <dalej@apple.com>
1403 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
1404 special case code to implement V8HImode and V16QImode with SSE2.
1406 2006-04-15 Roger Sayle <roger@eyesopen.com>
1408 * config/i386/i386.c (ix86_va_start): Ensure all integer constant
1409 trees are constructed with a suitable tree type.
1411 2006-04-15 Roger Sayle <roger@eyesopen.com>
1413 * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
1414 (integer_onep): Likewise.
1415 (integer_all_onesp): Likewise.
1416 (integer_pow2p): Likewise.
1417 (integer_nonzerop): Likewise.
1418 (real_zerop): Likewise.
1419 (real_onep): Likewise.
1420 (real_twop): Likewise.
1421 (real_minus_onep): Likewise.
1422 (int_size_in_bytes): Likewise.
1423 (host_integerp): Likewise.
1425 2006-04-15 Kazu Hirata <kazu@codesourcery.com>
1427 * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
1428 jump.c, mips-tfile.c, omp-low.c, sched-int.h,
1429 tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
1431 * tree-ssa-structalias.h (alias_info): Remove num_references.
1433 2006-04-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1435 * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
1436 (output_bvb patterns): Likewise.
1437 * pa.c (output_bb): Use 'bb' insn for long branch case.
1438 (output_bvb): Likewise use '{bvb|bb}' for long branch case.
1439 (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
1440 1. Correct length operand for alternatives 1 and 2.
1441 (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
1442 1, 2 and 3. Correct length operand for alternatives 1, 2 and 3.
1444 2006-04-14 Roger Sayle <roger@eyesopen.com>
1446 * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
1447 is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
1448 were accidentally reverted by r112959.
1450 2006-04-15 Jakub Jelinek <jakub@redhat.com>
1453 * except.h (eh_region_outermost): New prototype.
1454 * except.c (eh_region_outermost): New function.
1455 * tree-cfg.c (find_outermost_region_in_block): Use it.
1457 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
1459 * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
1461 * reload1.c (reg_equiv_memory_loc_varray): Rename to
1462 reg_equiv_memory_loc_vec. Change the type to VEC(rtx,gc) *.
1463 (init_reload, reload): Use VEC instead of VARRAY.
1464 * reload.h: Update the prototype for
1465 reg_equiv_memory_loc_varray.
1467 2006-04-14 Alexey Starovoytov <alexey.starovoytov@sun.com>
1468 Eric Botcazou <ebotcazou@libertysurf.fr>
1470 * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
1473 2005-04-13 Uros Bizjak <uros@kss-loka.si>
1476 * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
1477 to expand fallback builtin function call.
1479 2006-04-14 Alan Modra <amodra@bigpond.net.au>
1482 * builtins.c: (expand_builtin_memset): Stabilize args before expansion
1483 and emit libcall here in case the builtin fails.
1484 (expand_builtin_strcmp): Always emit the libcall here on failure.
1486 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
1488 * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
1489 * flow.c (reg_n_info): Change the type to
1490 VEC(reg_info_p,heap) *.
1491 * regclass.c (allocate_reg_info, free_reg_info): Use VEC
1493 * regs.h (reg_info_p): New.
1494 (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
1495 REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
1496 REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
1499 2006-04-13 Eric Botcazou <ebotcazou@adacore.com>
1501 * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
1503 * params.h (MAX_SCHED_READY_INSNS): New macro.
1504 * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
1505 past MAX_SCHED_READY_INSNS during the first scheduling pass.
1506 (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
1507 the ready list for 1 cycle during the first scheduling pass.
1508 * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
1510 2006-04-13 Richard Henderson <rth@redhat.com>
1513 * gimple-low.c (lower_omp_directive): Remove dead code.
1514 (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
1515 * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
1516 * omp-low.c (struct omp_region): Move to tree-flow.h.
1517 (root_omp_region): Export.
1518 (omp_regions, lookup_omp_region): Remove.
1519 (determine_parallel_type): Update for struct omp_region changes.
1520 (dump_omp_region): Dump regions with block numbers.
1521 (new_omp_region): Take type and block instead of stmt; malloc
1523 (free_omp_region_1, free_omp_regions): New.
1524 (expand_parallel_call): Take entry_stmt as argument; update for
1525 changes to omp_region.
1526 (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
1527 (remove_exit_barriers): New.
1528 (expand_omp_parallel): Update for struct omp_region changes.
1529 (expand_omp_synch): Likewise.
1530 (expand_omp): Likewise.
1531 (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
1532 (expand_omp_for_static_chunk): Likewise.
1533 (expand_omp_for): Likewise.
1534 (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
1535 (expand_omp_sections): Similarly, with GOMP_sections_end.
1536 (expand_omp_single): New.
1537 (build_omp_regions_1): Update for OMP_CONTINUE.
1538 (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
1539 (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
1540 OMP_SECTIONS_SECTIONS.
1541 (lower_omp_single_simple): Don't emit barrier here.
1542 (lower_omp_single_copy): Likewise.
1543 (lower_omp_single): Fix bindings, and lower to straightline now.
1544 (lower_omp_master, lower_omp_ordered): Likewise.
1545 (lower_omp_critical): Likewise.
1546 (lower_omp_for): Likewise. Emit OMP_CONTINUE.
1547 * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
1548 omp edges, free it afterward.
1549 (make_omp_sections_edges): Remove.
1550 (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
1551 (move_stmt_r): Handle OMP_CONTINUE.
1552 * tree-flow.h (struct omp_region): Move from omp-low.c. Switch
1553 statement pointers to basic blocks. Add type member.
1554 (root_omp_region, new_omp_region, free_omp_regions): Declare.
1555 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
1556 * tree-inline.c (estimate_num_insns_1): Likewise.
1557 * tree-pretty-print.c (dump_generic_node): Likewise.
1558 * tree-ssa-operands.c (get_expr_operands): Likewise.
1559 * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
1560 (OMP_RETURN): Rename from OMP_RETURN_EXPR.
1561 (OMP_CONTINUE): New.
1562 * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
1563 (OMP_SECTIONS_SECTIONS): Remove.
1564 (OMP_SECTION_LAST): New.
1565 (OMP_RETURN_NOWAIT): New.
1567 2006-04-13 Roger Sayle <roger@eyesopen.com>
1569 * fold-const.c (native_encode_vector, native_interpret_real):
1570 Correct obvious mistakes in the previous check-in.
1572 2006-04-13 Roger Sayle <roger@eyesopen.com>
1574 * fold-const.c (native_encode_expr): New function to encode
1575 the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
1576 or VECTOR_CST into a specified buffer.
1577 (native_encode_int): New function.
1578 (native_encode_real): New function.
1579 (native_encode_complex): New function.
1580 (native_encode_vector): New function.
1581 (native_interpret_expr): Inverse of native_encode_expr to convert
1582 a target representation into an INTEGER_CST, REAL_CST etc...
1583 (native_interpret_int): New function.
1584 (native_interpret_real): New function.
1585 (native_interpret_complex): New function.
1586 (native_interpret_vector): New function.
1587 (fold_view_convert_expr): New function to constant fold/evaluate
1588 a VIEW_CONVERT_EXPR of a suitable constant expression.
1589 (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
1590 Change call of build1 to fold_build1 when constructing a
1593 2006-04-13 Paolo Bonzini <bonzini@gnu.org>
1594 Ulrich Weigand <uweigand@de.ibm.com>
1597 * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
1600 2006-04-13 Alan Modra <amodra@bigpond.net.au>
1603 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
1604 optimize to lo_sum for DFmode if !TARGET_FPRS.
1606 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
1608 * tree-ssa-alias.c (set_initial_properties, init_alias_info,
1609 delete_alias_info, compute_flow_sensitive_aliasing,
1610 group_aliases): Use VEC instead of VARRAY.
1611 * tree-ssa-structalias.c (update_alias_info): Likewise.
1612 * tree-ssa-structalias.h (alias_info): Change the type of
1613 processed_ptrs to VEC(tree,heap) *.
1615 2006-04-12 J"orn Rennecke <joern.rennecke@st.com>
1618 * config/sh/lib1funcs.h: New file, broken out of:
1619 * config/sh/lib1funcs.asm.
1620 * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
1622 * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
1623 * config/sh/lib1funcs-Os-4-200.asm: New file.
1624 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
1625 * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
1626 (EXTRA_MULTILIB_PARTS): Include it.
1627 ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
1628 ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
1629 * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
1630 * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
1633 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
1635 * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
1636 * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
1637 tpa_compact, root_var_init, type_var_init): Use VEC instead of
1639 * tree-ssa-live.h: Include vecprim.h.
1640 (tree_partition_associator_d): Change the type of
1641 first_partition to VEC(int,heap) *.
1642 (tpa_first_partition): Use VEC instead of VARRAY.
1644 * Makefile.in (GTFILES): Move functions.h after tree.h.
1645 * function.c (reset_block_changes, record_block_change,
1646 check_block_change, free_block_changes): Use VEC instead of
1648 * function.h (function): Change the type of
1649 ib_boundaries_block to VEC(tree,gc) *.
1650 * tree-inline.c (copy_cfg_body): Initialize
1651 ib_boundaries_block to NULL instead of (varray_type) 0.
1653 2006-04-12 Roger Sayle <roger@eyesopen.com>
1655 * expr.c (emit_group_store): Correct operand order in call to
1656 subreg_lowpart_offset. Always create paradoxical SUBREGs with
1657 a SUBREG_BYTE of zero.
1659 2006-04-12 Richard Guenther <rguenther@suse.de>
1661 * profile.c (compute_branch_probabilities): Remove code
1662 encapsulated in !ir_type (), which are remanents of the
1663 removed RTL profiling code.
1664 * rtl-profile.c: Remove.
1666 2006-04-12 Alan Modra <amodra@bigpond.net.au>
1668 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
1669 magic NULL_RTX comment.
1670 (function_arg): Store entire fp arg to mem if any part should go
1672 (rs6000_arg_partial_bytes): Adjust for above change.
1674 2006-04-11 Roger Sayle <roger@eyesopen.com>
1676 * dwarf2out.c (output_call_frame_info): Create debug_frame_section
1677 if it hasn't been initialized by dwarf2out_init.
1679 2006-04-11 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
1681 * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
1682 symbolic constants in branch patterns.
1684 2006-04-11 Roger Sayle <roger@eyesopen.com>
1686 * caller-save.c: #include "addresses.h" after #include "tm_p.h".
1688 2006-04-11 Richard Sandiford <richard@codesourcery.com>
1690 PR rtl-optimization/27073
1691 * gcse.c (try_replace_reg): Revert last change. Continue to search
1692 for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
1695 2006-04-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1697 * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
1698 aggregate types other than record and union types.
1699 (function_arg): Likewise.
1700 (function_arg_pass_by_reference): In 64-bit mode, return 0 for
1702 (function_value): In 64-bit mode, return objects that require it
1705 2006-04-11 Roger Sayle <roger@eyesopen.com>
1707 * dwarf2out.c (premark_used_types): Remove problematic prototype.
1709 2006-04-11 Jakub Jelinek <jakub@redhat.com>
1711 * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
1713 2006-04-03 Jeff Law <law@redhat.com>
1716 * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
1717 alias information too.
1719 2006-04-10 Mike Frysinger <vapier@gentoo.org>
1721 * gcc/Makefile.in (gcc-cross): Add $(exeext) to target name.
1723 2006-04-10 Aldy Hernandez <aldyh@redhat.com>
1726 * dwarf2out.c (struct die_struct): Add die_perennial_p field.
1727 (premark_used_types_helper): New.
1728 (premark_used_types): New.
1729 (gen_subprogram_die): Call premark_used_types.
1730 (prune_unused_types_walk): Do not prune perennial dies.
1731 * function.c (used_types_insert): New.
1732 * function.h (struct function): Add used_types_hash field.
1733 (used_types_insert): Add prototype.
1734 * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
1735 * c-parser.c (c_parser_cast_expression): Save casted types in used
1738 2006-04-11 Mark Mitchell <mark@codesourcery.com>
1741 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
1742 rs6000_explicit_options.float_gprs.
1744 2006-04-10 Roger Sayle <roger@eyesopen.com>
1746 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
1747 from ix86_expand_vector_init_low_nonzero. Take an additional
1748 one_var argument indicating which element is non-zero. Support
1749 one_var != 0 for V4SFmode and V4SImode by permuting the result.
1750 (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
1751 with one_var instead of ix86_expand_vector_init_low_nonzero.
1753 2006-04-10 Kazu Hirata <kazu@codesourcery.com>
1755 * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
1756 tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
1757 global.o, cfglayout.o, lambda-code.o, reg-stack.o,
1758 build/genextract.o): Depend on vecprim.h.
1759 * cfglayout.c, df-problems.c, function.c, genextract.c,
1760 global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
1761 tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
1765 2006-04-10 Geoffrey Keating <geoffk@apple.com>
1767 * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
1768 Declare VECs of this type.
1769 (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
1770 (remove_children): Delete.
1771 (add_dwarf_attr): Use VEC routines.
1772 (add_AT_flag): Update for changes to add_dwarf_attr.
1773 (add_AT_int): Likewise.
1774 (add_AT_unsigned): Likewise.
1775 (add_AT_long_long): Likewise.
1776 (add_AT_vec): Likewise.
1777 (add_AT_string): Likewise.
1778 (add_AT_die_ref): Likewise.
1779 (add_AT_fde_ref): Likewise.
1780 (add_AT_loc): Likewise.
1781 (add_AT_loc_list): Likewise.
1782 (add_AT_addr): Likewise.
1783 (add_AT_lbl_id): Likewise.
1784 (add_AT_lineptr): Likewise.
1785 (add_AT_macptr): Likewise.
1786 (add_AT_offset): Likewise.
1787 (add_AT_range_list): Likewise.
1788 (get_AT): Use VEC_iterate.
1789 (remove_AT): Use VEC_ordered_remove.
1790 (free_die): Fold remove_children into here; have it use VEC_iterate.
1791 (print_die): Use VEC_iterate on attrs.
1792 (reverse_die_lists): Don't reverse attr lists.
1793 (die_checksum): Use VEC_iterate on attrs.
1794 (same_die_p): Likewise.
1795 (output_location_lists): Likewise.
1796 (build_abbrev_table): Likewise.
1797 (size_of_die): Likewise.
1798 (unmark_all_dies): Likewise.
1799 (output_abbrev_section): Likewise.
1800 (output_die): Likewise.
1801 (prune_unused_types_walk_attribs): Likewise.
1803 2006-04-10 Eric Botcazou <ebotcazou@libertysurf.fr>
1805 * doc/install.texi (*-*-solaris2*): Point to the configure page.
1807 2006-04-10 Jakub Jelinek <jakub@redhat.com>
1810 * dwarf2out.c (is_symbol_die): Return true also for namespaces.
1812 2006-04-09 Roger Sayle <roger@eyesopen.com>
1814 * expr.c (store_constructor): Don't bother clearing target if
1815 we're about to assign a vector to it using vec_init_optab.
1817 2006-04-10 Daniel Berlin <dberlin@dberlin.org>
1819 * tree-ssa-alias.c (lhs_may_store_to): New function.
1820 (recalculate_used_alone): Handle LHS of calls.
1822 2006-04-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1826 * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
1827 * pa64-hpux.h (LIB_SPEC): Correct typo. Don't append milli.a.
1828 (LINK_GCC_C_SEQUENCE_SPEC): Define. Append milli.a here.
1829 (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
1830 (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
1831 (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
1832 section. Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
1833 stubs. Add ".align 8" directives before all ".dword" directives.
1834 (GTHREAD_USE_WEAK): Revise comment.
1835 (TARGET_ATTRIBUTE_WEAK): Define.
1836 * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
1837 dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
1838 * stublib.c: New file.
1843 * pa.md (cbranch patterns): Revise arguments used in calls to
1844 output_cbranch, output_bb and output_bvd. Add long branch length
1846 (fbranch patterns): Handle long branches.
1847 (jump): Revise length check. Revise arguments for output_lbranch call.
1848 Add long branch length attributes.
1849 (decrement_and_branch_until_zero): Add long branch length attributes.
1850 (output_movb, output_parallel_addb and output_parallel_movb patterns):
1851 Likewise. Revise arguments for output_parallel_addb and
1852 output_parallel_movb calls.
1853 * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
1854 output_parallel_movb and output_parallel_addb): Update prototypes.
1855 * pa.c (output_cbranch): Revise arguments. Correct handling of
1856 nullification in long branches.
1857 (output_lbranch): Add new argument to control extraction of delay
1859 (output_bb): Handle long branches.
1860 (output_bvb, output_dbra, output_movb, output_parallel_movb,
1861 output_parallel_addb): Likewise.
1863 2006-04-09 Richard Sandiford <richard@codesourcery.com>
1865 PR rtl-optimization/27073
1866 * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
1869 2006-04-08 Daniel Berlin <dberlin@dberlin.org>
1871 * tree.h (tree_memory_tag): Add old_used_alone.
1872 (SMT_OLD_USED_ALONE): New macro.
1873 * tree-ssa-alias.c (recalculate_used_alone): Stop
1874 marking things for renaming unnecessarily.
1876 2006-04-08 Kazu Hirata <kazu@codesourcery.com>
1878 * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
1879 config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
1880 config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
1881 haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
1882 sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
1883 tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
1884 tree-vect-patterns.c, tree-vrp.c: Fix comment typos. Follow
1885 spelling convensions.
1886 * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
1887 doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
1888 typos. Follow spelling conventions.
1890 2006-04-07 DJ Delorie <dj@redhat.com>
1892 * config/m32c/m32c.c (m32c_function_arg): Structures are always
1893 passed on the stack.
1894 (m32c_init_cumulative_args): When a function returns a structure,
1895 always pass the pointer to that return area on the stack.
1896 (m32c_function_arg_advance): Don't increment the parameter number
1897 if we're processing the returned structure pointer.
1898 (pushm_info): Reverse order of registers.
1900 2006-04-07 Sebastian Pop <pop@cri.ensmp.fr>
1902 * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
1903 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
1904 number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
1905 estimate_numbers_of_iterations_loop): Use build_int_cst instead of
1907 * tree-chrec.c (chrec_fold_multiply_poly_poly,
1908 chrec_fold_multiply): Same.
1909 * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
1910 force_expr_to_var_cost): Same.
1911 * tree-mudflap.c (mf_xform_derefs_1): Same.
1912 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
1914 2006-04-07 David Edelsohn <edelsohn@gnu.org>
1916 * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
1917 treat CONST_DOUBLE as INTVAL. and64_2_operands require an extra
1920 2006-04-07 Jan Hubicka <jh@suse.cz>
1922 * ipa-inline.c (cgraph_early_inlining): Collect garbage.
1924 2006-04-07 Richard Guenther <rguenther@suse.de>
1926 PR tree-optimization/26135
1927 * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
1928 loads for store copy-prop.
1929 (copy_prop_visit_stmt): Likewise.
1931 2006-04-05 Robert Millan <robertmh@gnu.org>
1933 * gcc/config/i386/linux.h: Add a comment to mark macros that are
1934 being overriden in config/k*bsd-gnu.h.
1935 * gcc/config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
1937 * gcc/config/knetbsd-gnu.h: Ditto.
1939 2006-04-06 Jan Hubicka <jh@suse.cz>
1943 * coverage.c (coverage_checksum_string): Reorganize loop to not read
1946 2006-04-06 Mike Stump <mrs@apple.com>
1948 * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
1949 for HAVE_nonlocal_goto to be consistent.
1950 (expand_builtin_nonlocal_goto): Likewise.
1951 (expand_builtin_strcmp): Use #ifdef instead of #if
1952 for HAVE_cmpstrnsi to be consistent.
1954 2006-04-05 DJ Delorie <dj@redhat.com>
1956 * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
1959 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
1961 * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
1962 got-relative addressing for anything but SImode.
1964 * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
1965 even if the calling function doesn't modify them.
1967 2006-04-05 Richard Guenther <rguenther@suse.de>
1969 PR tree-optimization/26919
1970 * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
1971 to cgraph_estimate_size_after_inlining.
1973 2006-04-05 Alan Modra <amodra@bigpond.net.au>
1975 * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
1977 2006-04-05 Sebastian Pop <pop@cri.ensmp.fr>
1979 PR tree-optimization/26996
1980 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
1981 VECTOR_TYPE variables.
1983 2006-04-05 Richard Guenther <rguenther@suse.de>
1985 PR tree-optimization/26763
1986 * fold-const.c (fold_comparison): Move folding of
1987 PTR + CST CMP PTR + CST ...
1988 (fold_binary): ... here. Fold only for EQ_EXPR and NE_EXPR.
1990 2006-04-05 Gerald Pfeifer <gerald@pfeifer.com>
1992 * doc/install.texi (Prerequisites): Refine some wording on
1993 bootstrapping and ksh.
1994 Move the version numbers of DejaGnu here from the testing section
1995 and fix casing of names.
1996 Fix markup and clarify wording for autogen requirements.
1997 Refer to GCJ instead of just java.
1998 Refer to SVN instead of CVS.
1999 Describe diffutils as useful instead of necessary.
2000 (Downloading the source): Refer to SVN instead of CVS.
2001 Adjust a link to our web site accordingly.
2002 (Configuration): Fix casing of Bison.
2003 (Building): Refer to SVN instead of CVS.
2004 Fix a sentence on the use of Bison and remove duplicate (and
2005 incorrect) version number of Bison requirement.
2006 Remove one redundant list of packages needed for building.
2007 (Specific): Avoid reference to CVS.
2009 2006-04-04 Eric Christopher <echristo@apple.com>
2011 * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
2012 (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
2013 (rs6000_handle_struct_attribute): New.
2014 (rs6000_ms_bitfield_layout_p): Ditto.
2016 2006-04-04 Geoffrey Keating <geoffk@apple.com>
2018 * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
2019 NULL for dso parameter to atexit_common.
2021 2006-04-04 Eric Christopher <echristo@apple.com>
2023 * config/i386/i386.c (machopic_output_stub): Output \t
2024 between instructions and operands.
2026 2006-04-04 David Edelsohn <edelsohn@gnu.org>
2028 * config/rs6000/rs6000.c (num_insns_constant_wide): Change
2029 satisfies_constraint_[IL] to explicit tests on value.
2031 2006-04-04 Sebastian Pop <pop@cri.ensmp.fr>
2033 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
2034 set_nb_iterations_in_loop): Use build_int_cst instead of
2036 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
2037 build_int_cst instead of convert.
2039 2006-04-04 Carlos O'Donell <carlos@codesourcery.com>
2041 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
2042 new value 2 for incoming.
2043 * function.c (expand_function_start): Call struct_value_rtx
2045 * config/sparc/sparc.md: Comment updated_return.
2046 * config/sparc/sparc.opt: Add -mstd-struct-return option.
2047 * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
2048 struct return if sparc_std_struct_return and incoming is 2.
2049 (print_operand): Do not adjust return if
2050 sparc_std_struct_return.
2052 2006-04-04 Roger Sayle <roger@eyesopen.com>
2054 * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
2055 convert in the middle-end.
2056 * expr.c (store_expr, store_constructor, get_inner_reference,
2057 expand_expr_real_1, string_constant, try_casesi, try_tablejump):
2059 * tree.c (build_range_type): Likewise.
2061 2006-04-04 Tom Tromey <tromey@redhat.com>
2063 * doc/install.texi (Prerequisites): Mention jar.
2065 2006-04-04 Daniel Berlin <dberlin@dberlin.org>
2067 * doc/tree-ssa.texi (Preserving the virtual ssa form): New
2070 2006-04-04 Matthias Klose <doko@debian.org>
2072 * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
2073 * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
2076 2006-04-03 Geoffrey Keating <geoffk@apple.com>
2078 * doc/extend.texi (Function Attributes): Rewrite visibility
2079 attribute documentation.
2080 * doc/invoke.texi (C++ Dialect Options): Rewrite
2081 -fvisibility-inlines-hidden documentation to describe something
2082 entirely different, although in practise compatible.
2083 (Code Gen Options): Warn about system headers in -fvisibiltity=
2086 * doc/extend.texi (Other Builtins): Document that
2087 __builtin_nan is a compile-time constant only when its argument
2090 2006-04-03 Adam Nemet <anemet@caviumnetworks.com>
2092 * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
2093 trying to remove TRUNCATE check if all bits outside the new mode
2094 are identical to the sign bit.
2096 2006-04-03 Jeff Law <law@redhat.com>
2098 * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
2099 and operand scanning in some common cases.
2101 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
2102 Dale Johannesen <dalej@apple.com>
2105 * regclass.c (struct reg_pref): Update documentation.
2106 (regclass): Set prefclass to NO_REGS if memory is the best option.
2107 (record_reg_classes): Cope with a prefclass set to NO_REGS.
2108 * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
2109 into account. For non-registers, equate an empty preferred
2110 reload class to a `!' in the constraint; move the if clause to
2111 do so after those that reject the insn.
2112 (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
2114 (find_dummy_reload): Likewise.
2115 * doc/tm.texi (Register Classes): Document what it means
2116 if PREFERRED_*_RELOAD_CLASS return NO_REGS.
2117 * config/i386/i386.c (ix86_preferred_reload_class): Force
2118 using SSE registers (and return NO_REGS for floating-point
2119 constants) if math is done with SSE.
2120 (ix86_preferred_output_reload_class): New.
2121 * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
2122 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
2123 * config/i386/i386.md: Remove # register preferences.
2125 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2128 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
2129 chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
2130 the type of nb_iter.
2131 (instantiate_parameters_1): Convert the operands before calling
2132 chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
2133 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
2135 2006-04-02 Roger Sayle <roger@eyesopen.com>
2137 * builtins.c (dummy_object): Use build_int_cst instead of convert.
2138 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
2140 * dojump.c (do_jump): Likewise.
2141 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
2142 * gimplify.c (gimple_boolify, gimplify_init_constructor,
2143 gimplify_boolean_expr): Likewise.
2144 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2145 * varasm.c (array_size_for_constructor): Likewise.
2146 * tree-object-size.c (compute_object_offset): Likewise.
2148 2006-04-02 Roger Sayle <roger@eyesopen.com>
2151 * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
2152 NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
2154 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2156 PR tree-optimization/26939
2157 * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
2159 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2161 * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
2162 at_stmt. Convert the type of operands before calling
2163 build_polynomial_chrec.
2164 (add_to_evolution): Pass an extra argument at_stmt. Adjust the call to
2166 (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
2167 (instantiate_parameters_1): Convert the type of operands before calling
2168 build_polynomial_chrec.
2169 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
2170 chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
2171 reset_evolution_in_loop): Insert asserts to check the types of the
2173 (chrec_type): Moved...
2174 (eq_evolutions_p): Use operand_equal_p.
2175 * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
2176 the types of the operands.
2177 (chrec_type): ...here.
2178 * tree-data-ref.c (create_data_ref): Convert the operands before
2179 calling chrec_replace_initial_condition.
2180 (same_access_functions, analyze_subscript_affine_affine,
2181 analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
2182 (compute_subscript_distance, analyze_ziv_subscript,
2183 analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
2184 analyze_miv_subscript): Convert the operands before calling
2185 chrec_fold_minus or chrec_fold_plus.
2187 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2189 * tree-data-ref.c (compute_all_dependences): Use a pointer to
2190 the dependence_relations vector.
2191 (compute_data_dependences_for_loop): Adjust call to
2192 compute_all_dependences.
2194 2006-04-01 Roger Sayle <roger@eyesopen.com>
2195 Richard Henderson <rth@redhat.com>
2197 * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
2198 gimple_boolify on the condition before calling gimplify_expr.
2200 2006-03-31 Bob Wilson <bob.wilson@acm.org>
2202 * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
2203 to leaf_entry/leaf_return. Change leaf_entry to add 16 bytes to
2204 the frame size. Update to use the new macros.
2205 * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
2206 * config/xtensa/ieee754-df.S: Likewise.
2208 2006-03-31 Richard Henderson <rth@redhat.com>
2210 * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
2211 (make_edges): ... here. Control fallthru creation with a local
2212 variable. Do not play with fake edges.
2213 (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
2214 (make_goto_expr_edges): Don't play with fake edges. Make for_call
2217 2006-04-01 Joseph S. Myers <joseph@codesourcery.com>
2219 * dwarf2.h (DW64_CIE_ID): Define.
2220 * dwarf2out.c (DWARF_CIE_ID): Define.
2221 (output_call_frame_info): Output 0xffffffff before standard 8-byte
2222 length header. Use DWARF_CIE_ID.
2223 (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
2224 dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
2226 2006-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
2228 * config/sh/linux-atomic.asm: New file.
2229 * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
2231 2006-03-31 DJ Delorie <dj@redhat.com>
2233 * config/m32c/cond.md: Set condition flags properly throughout.
2234 * config/m32c/minmax.md: Likewise.
2235 * config/m32c/prologue.md: Likewise.
2236 * config/m32c/bitops.md: Likewise.
2237 * config/m32c/muldiv.md: Likewise.
2238 * config/m32c/mov.md: Likewise.
2239 * config/m32c/addsub.md: Likewise.
2240 * config/m32c/m32c.md: Likewise.
2241 * config/m32c/jump.md: Likewise.
2242 * config/m32c/shift.md: Likewise.
2244 * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
2245 conditionally output the pattern for this.
2246 * config/m32c/m32c.c (flags_needed_for_conditional): New.
2247 (m32c_compare_redundant): New.
2248 (m32c_output_compare): New.
2249 * config/m32c/m32c-protos.h (m32c_output_compare): New.
2251 * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
2252 dest, not src. Allow other 4-byte modes.
2254 2006-03-30 Denis Chertykov <denisc@overta.ru>
2256 * doc/md.texi: Refer to avr/constraints.md instead of
2259 2006-03-30 Roger Sayle <roger@eyesopen.com>
2261 * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
2262 signed vs. unsigned comparison failures on some hosts.
2264 2006-03-31 Alan Modra <amodra@bigpond.net.au>
2267 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
2268 change to FLOAT_REGS.
2270 * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
2271 (rs6000_override_options): Use it.
2272 (rs6000_handle_option): Set it. Set rs6000_explicit_options.abi
2273 only for -mabi=spe/no-spe and -mabi=altivec.
2275 2006-03-30 Geoffrey Keating <geoffk@apple.com>
2277 * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
2280 2006-03-30 Carlos O'Donell <carlos@codesourcery.com>
2282 * Makefile.in: Rename docdir to gcc_docdir.
2284 2006-03-30 Roger Sayle <roger@eyesopen.com>
2287 * expr.c (emit_group_store): Optimize group stores into a pseudo
2288 register by using a paradoxical subreg to initialize the destination
2289 if the first or last member of the group specifies a "low part".
2291 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2294 * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
2295 * target.h (struct gcc_target.speculate_insn): Change type of the
2296 second parameter to 'int'.
2297 * lists.c (alloc_DEPS_LIST): Change signature. Update reference to
2298 the second operand of the DEPS_LIST.
2299 (copy_DEPS_LIST_list): Update reference to the second operand of the
2301 * rtl.h (alloc_DEPS_LIST): Update signature.
2302 * sched-int.h (ds_t): Change typedef to 'int'.
2303 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
2305 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2307 * haifa-sched.c (try_ready): Change condition to restore
2308 non-speculative pattern of the instruction.
2309 (process_insn_depend_be_in_spec): Code to keep probability of the
2310 speculative dependence non-decreasing.
2312 2006-03-30 Jie Zhang <jie.zhang@analog.com>
2314 * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
2315 (single_move_for_movmem): ... this. Also change all uses.
2316 (bfin_expand_strmov): Renamed to...
2317 (bfin_expand_movmem): ... this. Also change all uses.
2318 * config/bfin/bfin.md (movstrsi): Renamed to...
2319 (movstrsi): ...this.
2321 2006-03-30 Paolo Bonzini <bonzini@gnu.org>
2323 PR tree-optimization/26830
2325 * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
2326 (copy_prop_visit_stmt): Remove write-only variable ann.
2327 (init_copy_prop): Check variable loop depth here. Do not simulate
2328 memory-tag and virtual operand PHIs except for store copy prop.
2330 2006-03-30 Richard Guenther <rguenther@suse.de>
2332 * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
2333 variants with double arguments.
2335 2006-03-29 David Edelsohn <edelsohn@gnu.org>
2337 * genpreds.c (write_tm_constrs_h): Delete variable p.
2338 * genconditions.c (write_header): Add tm-constrs.h to included
2340 * genpeep.c (main): Add toplev.h to included headers.
2341 * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
2342 (build/genpeep.o): Add toplev.h dependency.
2343 * config/rs6000/constraints.md: Add "W" constraint.
2345 2006-03-29 Roger Sayle <roger@eyesopen.com>
2347 * stor-layout.c (mode_for_size_tree): Remove restiction on type
2348 sizes by correctly testing whether the size fits a host integer.
2349 (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
2350 to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
2351 SImode range for the default sizetype and bitsizetype.
2353 2006-03-29 Roger Sayle <roger@eyesopen.com>
2355 * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
2356 and TREE_CONSTANT_OVERFLOW bits of the argument. Return
2357 quickly if the argument is already of the correct type.
2358 Call fold_build1 instead of build1. Tidy up blank lines.
2360 2006-03-29 David Edelsohn <edelsohn@gnu.org>
2362 * genemit.c (main): Add tm-constrs.h to included headers.
2363 * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
2364 * genpeep.c (main): Add tm-constrs.h to included headers.
2365 * genpreds.c (write_satisfies_constraint_fns): Rename to ...
2366 (write_tm_constrs_h): this and write complete file.
2367 (write_tm_preds_h): Do not emit satisfies_constraint fns.
2368 (write_insn_preds_c): Add tm-constrs.h to included headers.
2369 (gen_constrs): New variable.
2370 (parse_option): Parse "-c".
2371 (main): Invoke write_tm_constrs_h.
2372 * genrecog.c (write_header): Add tm-constrs.h to included headers.
2373 * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
2374 (object_out_file): Add tm-constrs.h dependency.
2375 (insn-emit.o): Same.
2376 (insn-output.o): Same.
2377 (insn-peep.o): Same.
2378 (insn-preds.o): Same.
2379 (insn-recog.o): Same.
2380 (tm-constsr.h): New target.
2381 (s-constrs-h): New target.
2383 * config/rs6000/constraints.md: New file.
2384 * config/rs6000/rs6000.c: Include tm-constrs.h.
2385 (num_insn_constant_wide): Convert to satisfies_constraint.
2386 (rs6000_rtx_costs): Convert to satisfies_constraint.
2387 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
2388 (CONST_OK_FOR_LETTER_P): Delete.
2389 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2390 (EXTRA_CONSTRAINT): Delete.
2391 (EXTRA_MEMORY_CONSTRAINT): Delete.
2392 (EXTRA_ADDRESS_CONSTRAINT): Delete.
2393 * config/rs6000/predicates.md: Convert to satisfies_constraint.
2394 * config/rs6000/rs6000.md: Include constraints.md. Convert to
2395 satisfies_constraint.
2397 * config/i386/i386.c: Include tm-constrs.h.
2399 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
2401 * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
2402 * tree-data-ref.c (find_data_references_in_loop,
2403 compute_data_dependences_for_loop): Use pointers to VEC.
2404 (analyze_all_data_dependences): Adjust calls.
2405 * tree-data-ref.h (find_data_references_in_loop,
2406 compute_data_dependences_for_loop): Adjust declarations.
2407 * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
2408 compute_data_dependences_for_loop.
2410 2006-03-29 Paul Brook <paul@codesourcery.com>
2412 * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
2415 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
2417 PR tree-optimization/26859
2418 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
2420 (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
2421 for the step after fold_convert.
2423 2006-03-29 Paul Brook <paul@codesourcery.com>
2425 * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
2426 (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
2428 2006-03-29 Paul Brook <paul@codesourcery.com>
2431 * targhooks.c (default_narrow_bitfield): New fuction.
2432 * targhooks.h (default_narrow_bitfield): add prototype.
2433 * target.h (gcc_target): Add narrow_volatile_bitfield.
2434 * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
2435 * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
2436 * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
2437 * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
2439 2006-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
2441 * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
2443 * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
2444 (NR_C_MODES): Add TDmode, DDmode and SDmode.
2445 (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
2446 (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
2447 (s390_function_arg_float): Allow SDmode and DDmode values to be
2448 passed in floating point registers.
2449 (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
2450 check with SCALAR_FLOAT_MODE_P.
2451 (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
2453 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
2455 PR tree-optimization/25985
2456 * tree-ssa-loop-niter.c (number_of_iterations_le,
2457 number_of_iterations_ne): Make comments more precise.
2458 (number_of_iterations_cond): Add only_exit argument. Use the
2459 fact that signed variables do not overflow only when only_exit
2461 (loop_only_exit_p): New.
2462 (number_of_iterations_exit): Pass result of loop_only_exit_p to
2463 number_of_iterations_cond.
2465 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
2467 PR tree-optimization/26643
2468 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
2471 2006-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
2473 * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
2474 (divsi3_i4_int): Likewise.
2476 2006-03-28 Roger Sayle <roger@eyesopen.com>
2478 * expr.c (emit_group_store): Only create a new pseudo reg if the
2479 quantity it needs to hold isn't already a suitable pseudo.
2481 2006-03-28 Jeff Law <law@redhat.com>
2483 * timevar.def (TV_TREE_PHI_CPROP): New timevar.
2484 * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
2486 2006-03-28 Roger Sayle <roger@eyesopen.com>
2488 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
2489 the equivalent ~X & Y, and the symmetry related transformations.
2490 (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
2491 ~X & Y, and symmetry related transforms.
2493 2006-03-28 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2495 Revert my 2006-03-27 patches.
2497 2006-03-28 Roger Sayle <roger@eyesopen.com>
2499 * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
2500 ~(T1)X, when T1 and T2 are integer types of the same precision
2501 and (T2)X isn't an extension.
2503 2006-03-28 Jeff Law <law@redhat.com>
2505 PR tree-optimization/26796
2506 * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
2507 need EH edge cleanups rather than purging them immediately.
2508 (eliminate_degenerate_phis): Handle queued EH cleanups.
2510 2006-03-28 Daniel Berlin <dberlin@dberlin.org>
2512 * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
2515 2006-03-27 Roger Sayle <roger@eyesopen.com>
2518 * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
2519 cast BIT_NOT_EXPR operand to the correct type.
2521 2006-03-27 Sebastian Pop <pop@cri.ensmp.fr>
2523 * tree-loop-linear.c: Don't include varray.h.
2524 (gather_interchange_stats, try_interchange_loops,
2525 linear_transform_loops): Use VEC instead of VARRAY.
2526 * lambda-mat.c: Don't include varray.h.
2527 * tree-chrec.c: Same.
2528 * lambda-trans.c: Same.
2529 * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
2530 VEC instead of VARRAY.
2531 * tree-vectorizer.h: Idem.
2532 * tree-data-ref.c (dump_data_references,
2533 dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
2534 initialize_data_dependence_relation, finalize_ddr_dependent,
2535 compute_all_dependences, find_data_references_in_loop,
2536 compute_data_dependences_for_loop, analyze_all_data_dependences,
2537 free_dependence_relation, free_dependence_relations,
2538 free_data_refs): Idem.
2539 * tree-data-ref.h (data_reference_p, subscript_p): New.
2540 (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
2541 VEC instead of VARRAY.
2542 (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
2543 (find_data_references_in_loop, compute_data_dependences_for_loop,
2544 dump_ddrs, dump_dist_dir_vectors, dump_data_references,
2545 dump_data_dependence_relations, free_dependence_relations,
2546 free_data_refs): Adjust declaration.
2547 (lambda_transform_legal_p): Move declaration here...
2548 * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
2549 vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
2550 vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
2551 vect_analyze_data_refs): Use VEC instead of VARRAY.
2552 * lambda.h (lambda_transform_legal_p): ...from here.
2553 * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
2554 * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
2555 * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
2556 tree-chrec.o): Don't depend on VARRAY_H.
2558 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2560 * rtl.def (Copyright): Update date.
2561 (DEPS_LIST): Change type of the second operand to 'int'.
2562 * target.h (Copyright): Update date.
2563 (struct gcc_target.speculate_insn): Change type of the second parameter
2565 * lists.c (Copyright): Update date.
2566 (alloc_DEPS_LIST): Change signature. Update reference to the second
2567 operand of the DEPS_LIST.
2568 (copy_DEPS_LIST_list): Update reference to the second operand of the
2570 * rtl.h (Copyright): Update date.
2571 (alloc_DEPS_LIST): Update signature.
2572 * sched-int.h (Copyright): Update date.
2573 (ds_t): Change typedef to 'int'.
2574 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
2576 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2578 * haifa-sched.c (Copyright): Update date.
2579 (try_ready): Change condition to restore non-speculative pattern
2581 (process_insn_depend_be_in_spec): Code to keep probability of the
2582 speculative dependence non-decreasing.
2584 2006-03-27 Bernd Schmidt <bernd.schmidt@analog.com>
2586 * regrename.c (replace_oldest_value_addr): Initialize a variable to
2587 shut up the compiler.
2589 2006-03-27 J"orn Rennecke <joern.rennecke@st.com>
2591 * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
2592 to use lib prefix for target.
2593 ($(T)libic_invalidate_array_4-200.a): Likewise.
2594 ($(T)libic_invalidate_array_4a.a): Likewise.
2596 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
2597 J"orn Rennecke <joern.rennecke@st.com>
2599 * superh.opt: New file.
2600 * sh.c (boardtype, osruntime): Remove.
2601 * superh.h (SUBTARGET_OPTIONS): Remove.
2602 * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
2604 * config.gcc (sh*-*-*): Don't use c-c ranges for tr. Quote sed
2605 arguments with ^ and/or [].
2607 * config.gcc (sh-*-*): Add quoting to account for quirk of
2609 Replace == with = in enable_incomplete_targets test.
2611 * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
2612 with MASK_LITTLE_ENDIAN.
2614 * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
2615 * config/sh/sh.opt: Added to some comments.
2616 * config/sh/superh.h: Removed some chaff.
2618 * config/sh/sh.opt: Add m4-[1234]00* options.
2619 * config/sh/sh.c (sh_handle_option): Likewise.
2620 * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
2621 (ic_invalidate_array_4-100.o): New rule.
2622 ($(T)libic_invalidate_array_4-100.a): Likewise.
2623 (ic_invalidate_array_4-200.o): Likewise.
2624 ($(T)libic_invalidate_array_4-200.a): Likewise.
2625 (ic_invalidate_array_4a.o): Likewise.
2626 ($(T)libic_invalidate_array_4a.a): Likewise.
2627 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
2628 * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
2630 * config/sh/crt1.asm: Merged in profiling code.
2631 * config/sh/superh.h (STARTFILE_SPEC): Override.
2632 * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
2633 Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
2634 * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
2636 * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
2637 * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
2638 MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
2640 * sh.opt (mpretend-cmove): New option.
2641 * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
2642 * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
2643 (movsicc): Add TARGET_PRETEND_CMOVE code.
2645 2006-03-27 Andreas Krebbel <krebbel1@de.ibm.com>
2647 * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
2648 s390_class_max_nregs): New function prototypes.
2649 * config/s390/s390.c (REGNO_PAIR_OK): New macro.
2650 (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
2651 * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
2652 CLASS_MAX_NREGS): Macro bodies replaced by function calls.
2654 2006-03-26 Geoffrey Keating <geoffk@apple.com>
2656 * dwarf2out.c (add_location_or_const_value_attribute): Call
2657 tree_add_const_value_attribute if nothing else works.
2658 (reference_to_unused): New.
2659 (rtl_for_decl_init): Use reference_to_unused to decide whether
2660 to output an initializer.
2662 2006-03-27 Alan Modra <amodra@bigpond.net.au>
2665 * config/rs6000/rs6000.md (DF reg move peephole): Prevent
2666 peephole removing spe frob_di_df_2.
2668 2006-03-26 Sebastian Pop <pop@cri.ensmp.fr>
2670 * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
2671 (subscript_dependence_tester_1): Declared.
2672 (print_dir_vectors, print_dist_vectors): New.
2673 (debug_data_dependence_relation): New.
2674 (dump_data_dependence_relation): Print more details.
2675 (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
2676 (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
2677 (save_dist_v, save_dir_v, add_outer_distances,
2678 build_classic_dist_vector_1): New.
2679 (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
2680 Don't test for lambda_vector_lexico_pos.
2681 (same_access_functions, add_multivariate_self_dist,
2682 add_other_self_distances, dir_from_dist): New.
2683 (build_classic_dir_vector): Replace implementation almost identical to
2684 build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
2686 (subscript_dependence_tester_1): New.
2687 (subscript_dependence_tester): Handle the lexicographically negative
2688 distance vectors by recomputing the dependence relation.
2689 (compute_affine_dependence): Remove parameter loop_nest_depth.
2690 (compute_self_dependence): Don't call compute_subscript_distance.
2691 (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
2692 Add a parameter for the loop_nest.
2693 (find_loop_nest_1, find_loop_nest): New.
2694 (compute_data_dependences_for_loop): Compute the loop nest, and give
2695 up if the nest is not well formed.
2696 * tree-data-ref.h (loop_p): New.
2697 (struct data_dependence_relation): Replace size_vect field with
2698 loop_nest, a vec of loops.
2699 (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
2700 (DDR_LOOP_NEST): New.
2701 (print_dir_vectors, print_dist_vectors,
2702 debug_data_dependence_relation): Declared.
2703 (index_in_loop_nest): New.
2704 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
2705 DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
2708 2006-03-25 Adam Nemet <anemet@caviumnetworks.com>
2710 * simplify-rtx.c (simplify_relational_operation): Call
2711 simplify_relational_operation_1 even if mode is VOIDmode.
2713 2006-03-25 Daniel Berlin <dberlin@dberlin.org>
2715 PR tree-optimization/26804
2716 * tree.h (DECL_CALL_CLOBBERED): New macro.
2717 (tree_decl_common): Add call_clobbered_flag.
2718 * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
2719 (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
2720 (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
2721 (mark_non_addressable): Ditto.
2722 * tree-ssa.c (verify_call_clobbered): New function.
2723 (verify_alias_info): Use it.
2724 * tree-pass.h (pass_reset_cc_flags): New prototype.
2725 * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
2726 (reset_cc_flags): New function.
2727 * passes.c (init_optimization_passes): Call reset_cc_flags after
2728 initializing referenced_vars.
2730 2006-03-25 Uros Bizjak <uros@kss-loka.si>
2731 Roger Sayle <roger@eyesopen.com>
2734 * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
2735 to 1.0 for non-real operands. Implement A / A optimization for
2738 2006-03-25 H.J. Lu <hongjiu.lu@intel.com>
2740 * config/i386/i386.c (size_cost): Correct the comment for
2741 cost of storing fp registers.
2742 (i386_cost): Likewise.
2743 (i486_cost): Likewise.
2744 (pentium_cost): Likewise.
2745 (pentiumpro_cost): Likewise.
2746 (k6_cost): Likewise.
2747 (athlon_cost): Likewise.
2748 (k8_cost): Likewise.
2749 (pentium4_cost): Likewise.
2750 (nocona_cost): Likewise.
2751 (generic64_cost): Likewise.
2752 (generic32_cost): Likewise.
2754 2006-03-24 Denis Chertykov <denisc@overta.ru>
2756 * config/avr/avr-protos.h (extra_constraint): Delete.
2757 (extra_constraint_Q): New declaration.
2758 * config/avr/constraints.md: New file.
2759 * config/avr/avr.md: Include it.
2760 (REG_X, REG_Y, REG_Z, REG_W): New constants.
2761 (TMP_REGNO, ZERO_REGNO): Likewise.
2762 (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
2763 * config/avr/avr.c (avr_reg_class_from_letter): Delete.
2764 (extra_constraint): Delete.
2765 (extra_constraint_Q): Test for memory constraint 'Q'.
2766 * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
2767 (REG_CLASS_FROM_LETTER): Delete.
2768 (CONST_OK_FOR_LETTER_P): Delete.
2769 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2770 (EXTRA_CONSTRAINT): Delete.
2771 (TMP_REGNO): Delete.
2772 (ZERO_REGNO): Delete.
2774 2006-03-24 Jeff Law <law@redhat.com>
2776 * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
2777 directly. Call mark_new_vars_to_rename slightly earlier.
2779 2006-03-24 Geoffrey Keating <geoffk@apple.com>
2781 * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
2783 (gen_compile_unit_die): Use new language types for Objective-C and
2785 (dwarf2out_decl): Use is_cxx rather than testing explicitly against
2786 DW_LANG_C_plus_plus.
2789 * config/t-darwin (crt3.o): Work around bug 26840.
2790 * config/darwin-crt3.c: Rewrite.
2791 * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
2793 2006-03-24 Carlos O'Donell <carlos@codesourcery.com>
2795 * doc/invoke.texi: Document -femit-class-debug-always
2796 * common.opt: Add -femit-class-debug-always.
2798 2006-03-24 Andreas Krebbel <krebbel1@de.ibm.com>
2800 * config/s390/s390.c (s390_decompose_address): Allow SImode for
2801 index and base register.
2802 (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
2803 print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
2804 with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
2805 REGNO_OK_FOR_INDEX_P.
2806 * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
2808 (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
2809 REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
2810 REG_OK_FOR_BASE_P): Definitions removed.
2812 2006-03-24 Jakub Jelinek <jakub@redhat.com>
2815 * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
2816 non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
2817 set yet or weren't marked as local yet.
2819 2006-03-24 Bernd Schmidt <bernd.schmidt@analog.com>
2821 * regrename.c (scan_rtx_address): Initialize a variable to shut up
2824 2006-03-24 Eric Botcazou <ebotcazou@adacore.com>
2826 * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
2827 (rs6000_legitimate_small_data_p): Delete.
2828 * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
2829 (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
2830 and make static. Add forward declaration. Update uses.
2831 (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
2832 of offsettable_memref_p.
2833 * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
2834 Use rs6000_offsettable_memref_p instead of a less accurate predicate.
2836 2006-03-24 Jeff Law <law@redhat.com>
2838 * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
2839 around bug in immediate-use iterator.
2841 2006-03-24 Alan Modra <amodra@bigpond.net.au>
2844 * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
2845 or __LITTLE_ENDIAN__.
2847 2006-03-23 J"orn Rennecke <joern.rennecke@st.com>
2849 * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
2850 * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
2851 * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
2852 * config/sh/sh.opt (mdiv=): Amend description.
2853 * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
2854 (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
2855 (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
2856 SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
2857 (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
2858 Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
2859 * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
2860 (udivsi3, divsi3): Use them. Check TARGET_DIVIDE_CALL_TABLE /
2861 TARGET_DIVIDE_CALL_FP.
2863 2006-03-23 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2865 * haifa-sched.c (choose_ready): Fix type of the local variable.
2866 Move local variables. Add comment.
2867 (check_reg_live): Change signature. Make callable from debugger.
2868 * sched-int.h (check_reg_live): Update signature.
2869 * sched-ebb.c (check_reg_live): Update parameters.
2870 * sched-rgn.c (check_reg_live): Ditto.
2871 (region_head_or_leaf_p): Check pointer before dereferencing.
2872 * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
2873 before reload on optimization levels below 1.
2875 2006-03-23 Richard Henderson <rth@redhat.com>
2877 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
2881 * config/alpha/predicates.md (local_symbolic_operand): Reject
2884 2006-03-23 Andrew Pinski <pinskia@physics.uc.edu>
2887 * tree-ssa-pre.c (create_value_expr_from): Don't reject
2888 expressions which have overflowed constants.
2890 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
2892 * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
2894 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
2896 * cfgloopmanip.c (create_loop_notes): Removed.
2897 * final.c (final_scan_insn): Do not handle loop notes.
2898 * jump.c (squeeze_notes): Ditto.
2899 * cfglayout.c (skip_insns_after_block,
2900 duplicate_insn_chain): Ditto.
2901 * cfgcleanup.c (rest_of_handle_jump2): Do not call
2903 * cfgloop.h (create_loop_notes): Declaration removed.
2905 2006-03-23 Richard Sandiford <richard@codesourcery.com>
2907 * varasm.c (output_constant_pool): Restore fnname and fndecl
2909 (assemble_start_function): Adjust call accordingly.
2910 (assemble_end_function): Likewise.
2912 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2915 * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
2918 * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
2920 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2923 * system.h (ICE_EXIT_CODE): New macro.
2924 * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
2925 (diagnostic_action_after_output): Likewise.
2926 * gcc.c (fatal_ice): New function.
2927 (execute): Use it instead of fatal.
2928 (fancy_abort): Likewise.
2929 * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
2931 2006-03-22 Jeff Law <law@redhat.com>
2933 * loop-unroll.c (analyze_iv_to_split_insn): Handle
2934 iv_analyze_result returning false.
2936 2006-03-22 Jie Zhang <jie.zhang@analog.com>
2938 * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
2940 2006-03-22 Richard Henderson <rth@redhat.com>
2943 * except.c (duplicate_eh_regions_0): New.
2944 (duplicate_eh_region_1): Duplicate the children of the node as
2945 well as the node itself. Link them up properly.
2946 (duplicate_eh_region_2): Merge into ...
2947 (duplicate_eh_regions): ... here. Take copy_region argument, and
2948 copy only a sub-tree if asked. Simplify copying and fixup.
2949 (eh_region_outer_p): New.
2950 * except.h (duplicate_eh_regions): Update decl.
2951 (eh_region_outer_p): Declare.
2952 * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
2953 (lower_omp_master): Likewise.
2954 (lower_omp_ordered): Likewise.
2955 * tree-cfg.c (struct move_stmt_d): Add new_label_map.
2956 (move_stmt_r): Use it to remap labels. Handle recursion vs
2957 remap_decls_p properly.
2958 (move_block_to_fn): Pass in new_label_map. Remap RESX_EXPR.
2959 (find_outermost_region_in_block): New.
2960 (new_label_mapper): New.
2961 (move_sese_region_to_fn): Copy eh information to the new function
2963 * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
2965 * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
2968 2006-03-22 Richard Sandiford <richard@codesourcery.com>
2970 * doc/md.texi (-mshared): Mention that -mshared code can be linked
2971 into shared libraries.
2973 2006-03-22 Richard Sandiford <richard@codesourcery.com>
2975 * doc/md.texi: Refer to i386/constraints.md instead of
2977 * config/i386/constraints.md: New file, extracted from...
2978 * config/i386/predicates.md: ...here.
2979 * config/i386/i386.md: Include constraints.md.
2981 2006-03-21 Jason Merrill <jason@redhat.com>
2983 * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
2986 * expr.c (init_block_move_fn): Force default visibility.
2987 (init_block_clear_fn): Likewise.
2988 * builtins.c (expand_builtin_fork_or_exec): Likewise.
2989 * targhooks.c (default_external_stack_protect_fail): Likewise.
2991 2006-03-21 Richard Sandiford <richard@codesourcery.com>
2993 * config/mips/predicates.md (const_call_insn_operand): Allow direct
2994 calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
2995 * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
2996 Use TARGET_OLDABI instead of !TARGET_NEWABI.
2997 (loadgp): Use mips_current_loadgp_style.
2998 (loadgp_noshared): New pattern.
2999 (sibcall_internal): Use MIPS_CALL.
3000 (sibcall_value_internal): Likewise.
3001 (sibcall_value_multiple_internal): Likewise.
3002 (call_internal): Likewise.
3003 (call_value_internal): Likewise.
3004 (call_value_multiple_internal): Likewise.
3005 (call_split): Use MIPS_CALL and add an 'S' constraint.
3006 (call_value_split): Likewise.
3007 (call_value_multiple_split): Likewise.
3008 * config/mips/mips.opt (-mabicalls): Tweak docstring.
3009 (-mshared): New option.
3010 * config/mips/mips-protos.h (mips_loadgp_style): New enum.
3011 (mips_current_loadgp_style): Declare.
3012 * config/mips/mips.c (mips_classify_symbol): Avoid using
3013 SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS. Use SYMBOL_GENERAL
3014 rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
3015 TARGET_ABSOLUTE_ABICALLS.
3016 (override_options): Adjust comments. Improve the warning that is
3017 issued when -mabicalls and -G are used together.
3018 (mips_file_start): Remove comment.
3019 (mips_current_loadgp_style): New function.
3020 (mips_gnu_local_gp): New variable.
3021 (mips_emit_loadgp): Use mips_current_loadgp_style. Handle
3023 (mips_output_function_prologue): Use mips_current_laodgp_style.
3024 (mips_expand_prologue): Call mips_emit_loadgp before emitting
3025 the cprestore instruction.
3026 (mips_extra_live_on_entry): Fix reversed test. Don't make $25
3027 live for TARGET_ABSOLUTE_ABICALLS.
3028 * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
3029 (ASM_SPEC): Pass down -mshared and -mno-shared.
3030 (MIPS_CALL): New macro.
3031 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
3033 * doc/invoke.texi (-mabicalls): Update documentation.
3034 (-mshared): Document.
3036 2006-03-21 Steve Ellcey <sje@cup.hp.com>
3038 * config/ia64/unwind-hpux.c: New file.
3039 * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
3041 2006-03-21 Steve Ellcey <sje@cup.hp.com>
3044 * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
3046 2006-03-21 Jeff Law <law@redhat.com>
3048 * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
3049 type conversions of a VR_VARYING source to a wider type.
3051 2006-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
3053 * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
3054 tm_file on Solaris 10 and later.
3055 (sparc64-*-solaris2*): Likewise.
3056 (sparc-*-solaris2*): Likewise.
3057 * config/sol26.h: Rename to config/sol2-6.h.
3058 * config/sol2-10.h: New file.
3060 2006-03-21 Andrew Pinski <pinskia@physics.uc.edu>
3063 * tree-ssa-pre.c (create_component_ref_by_pieces):
3066 2006-03-21 Jakub Jelinek <jakub@redhat.com>
3069 * tree.c (get_callee_fndecl): If CALL is error_mark_node,
3070 return it immediately.
3072 2006-03-21 Michael Matz <matz@suse.de>
3074 * genautomata.c (<struct state>, num_out_arcs, presence_signature):
3076 (remove_arc, add_arc): Update num_out_arcs member.
3077 (set_out_arc_insns_equiv_num): Returns nothing instead of number
3079 (cache_presence): New function.
3080 (compare_states_for_equiv): New function.
3081 (state_is_differed): Don't take number of outargs, adjust callers.
3082 Use new invariant for speeding up.
3083 (init_equiv_class): Create initial classes based on sorted
3085 (partition_equiv_class): Don't track out_arcs_num.
3086 (evaluate_equiv_classes): Call cache_presence on all states and
3089 2006-03-21 Bernd Schmidt <bernd.schmidt@analog.com>
3091 * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
3092 * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
3093 (bfin_valid_reg_p): Test for pseudos explicitly and use only
3094 REGNO_MODE_CODE_OK_FOR_BASE_P. New args MODE and OUTER_CODE; all
3096 * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
3097 (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
3098 (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
3099 (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3100 REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
3102 (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
3103 REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
3104 (REGNO_REG_CLASS): ARGP is in PREGS.
3105 * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
3107 (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
3108 to deal with those addresses.
3109 * addresses.h: New file.
3110 * caller-save.c: Include "addresses.h".
3111 (init_caller_save): Use new base_reg_class function.
3112 * rtl-factoring.c: Include "addresses.h".
3113 (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
3114 * recog.c: Include "addresses.h".
3115 (preprocess_constraints): Use new base_reg_class function.
3116 * regrename.c: Include "addresses.h".
3117 (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
3118 functions. Keep track of a new var INDEX_CODE to compute valid
3120 (replace_oldest_value_addr): Likewise.
3121 (replace_oldest_value_mem): Use base_reg_class.
3122 * reload.c: Include "addresses.h".
3123 (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
3124 (find_reloads): Use new base_reg_class function.
3125 (find_reloads_address): Likewise; also use regno_ok_for_base_p.
3126 (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
3127 all callers and prototype changed.
3128 * reload1.c: Include "addresses.h".
3129 (maybe_fix_stack_asms): Use base_reg_class.
3130 * regclass.c: Include "addresses.h".
3131 (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
3132 (init_reg_autoinc): Use new base_reg_class function.
3133 (record_reg_classes): Likewise.
3134 (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
3135 OUTER_CODE and INDEX_CODE. All callers and prototype changed.
3136 Use new args to compute necessary class.
3138 * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
3139 regrename.o, rtl-factoring.o): Update dependencies.
3140 * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
3141 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
3142 (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
3143 REG_OK_FOR_INDEX_P): Delete documentation.
3145 2006-03-21 Alexey Starovoytov <alexey.starovoytov@sun.com>
3147 * config.gcc (sparc-*-solaris2*): Change the default CPU setting
3148 from V7 to V9 for Solaris 7 and above.
3150 2006-03-21 Toon Moene <toon@moene.indiv.nluug.nl>
3152 * doc/invoke.texi: Document new flag -fargument-noalias-anything.
3153 * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
3154 argument pointers may not alias any other storage.
3155 * common.opt: Define option -fargument-noalias-anything.
3156 * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
3157 alias semantics is specified by flag_argument_noalias > 2.
3159 2006-03-20 Jeff Law <law@redhat.com>
3161 * tree-pass.h (pass_phi_only_copy_prop): Delete.
3162 (pass_phi_only_cprop): Declare.
3163 * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
3165 * tree-ssa-dom.c (degenerate_phi_result): New function.
3166 (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
3167 (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
3168 (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
3169 (eliminate_degenerate_phis): Likewise.
3170 (pass_phi_only_cprop): New pass descriptor.
3171 * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
3172 support code. Callers updated.
3173 (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
3174 (store_copy_prop): Likewise.
3175 (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
3177 2006-03-20 Jason Merrill <jason@redhat.com>
3180 * c-pragma.c (visstack): Move out of handle_pragma_visibility.
3181 (push_visibility, pop_visibility): Likewise.
3182 * c-pragma.h: Declare them.
3184 2006-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
3186 * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
3188 * config/sh/sh.c (find_regmode_weight): Change the type of the first
3189 parameter and use get_ebb_head_tail.
3190 (sh_md_init_global): Adjust uses of find_regmode_weight.
3192 2006-03-20 Steven Bosscher <stevenb.gcc@gmail.com>
3194 * function.h (struct function) <x_tail_recursion_reentry>:
3195 Rename to x_stack_check_probe_note.
3196 (tail_recursion_reentry): Rename to stack_check_probe_note.
3197 * function.c: Replace tail_recursion_reentry with
3198 stack_check_probe_note everywhere.
3199 (expand_function_start): Only emit a note for
3200 stack_check_probe_note with -fstack-protect.
3201 * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
3203 * emit-rtl.c (remove_unnecessary_notes): Remove.
3204 (pass_remove_unnecessary_notes): Remove.
3205 * rtl.h (remove_unnecessary_notes): Remove prototype.
3206 * final.c (final_start_function): Don't call remove_unnecessary_notes.
3207 * tree-pass.h (pass_remove_unnecessary_notes): Remove.
3208 * passes.c (pass_remove_unnecessary_notes): Don't run it.
3210 2006-03-20 Andrew Pinski <pinskia@physics.uc.edu>
3213 * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
3214 (valid_in_set): Handle ARRAY_REF.
3215 Change "if min_variant or VH" to asserts.
3216 (create_component_ref_by_pieces): Handle ARRAY_REF.
3217 (create_expression_by_pieces): Likewise.
3218 (can_PRE_operation): ARRAY_REFs can now be PRE'd.
3220 2006-03-20 David Edelsohn <edelsohn@gnu.org>
3222 * genpreds.c (write_insn_extra_address_constraint): Argument `c'
3223 is operand of switch, not str[0].
3225 2006-03-20 Alan Modra <amodra@bigpond.net.au>
3227 * config/rs6000/rs6000.c (rs6000_handle_option): Use
3228 TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
3230 2006-03-19 David Edelsohn <edelsohn@gnu.org>
3232 * genpreds.c (write_tm_preds_h): Add semicolon and newline at
3233 end of insn_extra_address_constraint declaration.
3235 2006-03-19 David Edelsohn <edelsohn@gnu.org>
3237 * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
3238 (no-sum-in-toc): Same.
3239 * config/rs6000/rs6000.c (rs6000_handle_option): Use new
3241 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
3242 NO_FP_IN_TOC for -fPIC instead of mask.
3244 * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
3245 (BOOT_LDFLAGS): Delete.
3247 * config/rs6000/t-aix52: Same.
3249 * config/rs6000/rs6000.md (store_multiple_power): Delete.
3250 (stmsi[345678]_power): New.
3252 2006-03-17 Steve Ellcey <sje@cup.hp.com>
3254 * config/ia64/ia64.opt: Add empty line to end of file.
3256 2006-03-17 Richard Guenther <rguenther@suse.de>
3259 * builtins.c (get_pointer_alignment): For component style references
3260 adjust alignment to the component type alignment. Make sure
3261 to adjust alignment for component access of constants.
3263 2006-03-17 David Edelsohn <edelsohn@gnu.org>
3265 * config/rs6000/rs6000.md (strlensi): Emit barrier after
3268 2006-03-17 Paul Brook <paul@codesourcery.com>
3270 * doc/install.texi: Docuemnt --with-mode.
3271 * config.gcc: Add --with-mode for arm*-*-*.
3272 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
3274 2006-03-17 J"orn Rennecke <joern.rennecke@st.com>
3276 * sh.c (max_labelno_before_reorg): New variable.
3277 (sh_reorg): Initialize it.
3278 (find_barrier): Check max_labelno_before_reorg before using
3279 label_to_alignment. Take length of explicit alignment insns
3280 into account. When seeing a UNSPECV_CONST_END, return it.
3282 * sh.c (fixup_mova): Set mode of affected label to QImode.
3283 (untangle_mova): New function.
3284 (find_barrier): Use it. Check mode of label before decrementing
3286 (sh_reorg): Likewise.
3287 Set mode of all insns back to VOIDmode.
3289 * sh.c (MOVA_LABELREF): New macro.
3290 (mova_p, fixup_mova, sh_reorg): Use it.
3291 (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
3292 ADDR_DIFF_VEC matches mova.
3294 2006-03-17 Steven Bosscher <stevenb.gcc@gmail.com>
3296 * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
3297 with ATTRIBUTE_UNUSED.
3299 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
3301 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
3302 pointer, instead of assuming it is possible to derive the
3303 correct args size from a call insn.
3305 2006-03-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3307 * rtl.h (CONST_INT_P): Define.
3308 * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
3309 instead of GET_CODE(x) == CONST_INT.
3310 (vax_rtx_costs): Likewise.
3311 (vax_output_int_move): Likewise.
3312 (vax_output_int_add): Likewise.
3313 (legitimate_constant_address_p): Likewise.
3314 (index_term_p): Likewise.
3315 * config/vax/vax.h (PRINT_OPERAND): Likewise.
3316 * config/vax/vax.md (and<mode>3): Likewise.
3317 (ashrsi3): Likewise.
3319 (movstricthi): Likewise.
3320 (movstrictqi): Likewise.
3321 (rotrsi3): Likewise.
3322 (five unnamed insns): Likewise.
3324 2006-03-16 Geoffrey Keating <geoffk@apple.com>
3326 * doc/tm.texi (SDB and DWARF): Add extra parameter to
3327 ASM_OUTPUT_DWARF_OFFSET. Use @var to indicate metavariables.
3328 * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
3329 * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
3330 Pass to ASM_OUTPUT_DWARF_OFFSET.
3331 * dwarf2out.c (debug_frame_section): New.
3332 (output_call_frame_info): Use debug_frame_section. Pass it to
3333 dw2_asm_output_offset.
3334 (output_die): Pass appropriate section to dw2_asm_output_offset.
3335 (output_compilation_unit_header): Likewise.
3336 (output_pubnames): Likewise.
3337 (output_aranges): Likewise.
3338 (enum dw_val_class): Break dw_val_class_lbl_offset into
3339 dw_val_class_lineptr and dw_val_class_macptr.
3340 (add_AT_lbl_offset): Delete.
3341 (add_AT_lineptr): New.
3342 (add_AT_macptr): New.
3343 (AT_lbl): Expect a lineptr or macptr.
3344 (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
3345 (attr_checksum): Likewise.
3346 (same_dw_val_p): Likewise.
3347 (size_of_die): Likewise.
3348 (value_format): Likewise.
3349 (output_die): Likewise.
3350 (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
3352 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
3353 * config/i386/i386.c (x86_file_start): Call darwin_file_start.
3354 * config/darwin-protos.h (darwin_file_start): New.
3355 (darwin_asm_output_dwarf_offset): New.
3356 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
3357 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
3359 * config/darwin.c (darwin_emit_unwind_label): Don't output label
3360 if not EH section; simplify.
3361 (darwin_file_start): New.
3362 (darwin_asm_output_dwarf_offset): New.
3363 * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
3365 (DEBUG_INFO_SECTION): Likewise.
3366 (DEBUG_ABBREV_SECTION): Likewise.
3367 (DEBUG_ARANGES_SECTION): Likewise.
3368 (DEBUG_MACINFO_SECTION): Likewise.
3369 (DEBUG_LINE_SECTION): Likewise.
3370 (DEBUG_LOC_SECTION): Likewise.
3371 (DEBUG_PUBNAMES_SECTION): Likewise.
3372 (DEBUG_STR_SECTION): Likewise.
3373 (DEBUG_RANGES_SECTION): Likewise.
3374 (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
3375 (ASM_OUTPUT_DWARF_OFFSET): New.
3377 2006-03-16 Joseph S. Myers <joseph@codesourcery.com>
3379 * config.gcc (tm_defines): Always add to previous value rather
3382 2006-03-16 Richard Sandiford <richard@codesourcery.com>
3384 * config/mips/predicates.md (splittable_const_int_operand): New,
3385 split from move_operand.
3386 (splittable_symbolic_operand): New.
3387 (move_operand): Add commentary. Use splittable_const_int_operand.
3388 Inline mips_atomic_symbolic_constant_p.
3389 * config/mips/mips.md: Add combine splitters for handling moves
3390 of splittable_const_int_operands and splittable_symbolic_operands.
3391 * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
3392 (mips_split_symbol): Declare.
3393 (mips_move_integer): Declare.
3394 * config/mips/mips.c (mips_split_p): Make global.
3395 (TARGET_MIN_ANCHOR_OFFSET): Override default.
3396 (TARGET_MAX_ANCHOR_OFFSET): Likewise.
3397 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
3398 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
3399 (mips_offset_within_object_p): Handle block symbols.
3400 (mips_atomic_symbolic_constant_p): Delete.
3401 (mips_cannot_force_const_mem): Return false for constants that
3402 mips_legitimize_move can handle.
3403 (mips_use_blocks_for_constant_p): New function.
3404 (mips_split_symbol): Make global.
3405 (mips_move_integer): Likewise. Add a temporary register argument.
3406 (mips_legitimize_const_move): Use splittable_const_int_operand and
3407 splittable_symbolic_operand.
3408 (mips_use_anchors_for_symbol_p): New function.
3409 * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
3410 (mips_split_p): Declare.
3412 2006-03-16 Richard Sandiford <richard@codesourcery.com>
3414 * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
3415 (mips*-*-linux*): Likewise.
3417 2006-03-16 Roger Sayle <roger@eyesopen.com>
3418 Daniel Speyer <dspeyer@wam.umd.edu>
3421 * tree-dump.c (dump_real): New function.
3422 (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
3423 * Makefile.in (REAL_H): New macro for dependencies on real.h.
3424 (tree-dump.o): Add $(REAL_H) to the dependencies.
3426 2006-03-16 Roger Sayle <roger@eyesopen.com>
3429 * real.c (real_from_string): If the mantissa is zero, don't bother
3430 parsing the exponent as the result should always be zero.
3432 2006-03-16 Andreas Krebbel <krebbel1@de.ibm.com>
3434 * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
3436 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3438 * config/ia64/ia64.c (stops_p): Added explicit initialization.
3439 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
3440 ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
3441 ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
3442 ia64_sched_finish_global): New static functions to implement
3443 hooks from gcc_target.sched.
3444 (spec_check_no, max_uid, pending_data_specs): New static variables.
3445 (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
3446 ia64_spec_check_src_p): New static functions.
3447 (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
3448 (TARGET_SCHED_ADJUST_COST): Removed.
3449 (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
3450 TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
3451 TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
3452 TARGET_SCHED_GEN_CHECK,
3453 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
3454 TARGET_SCHED_SET_SCHED_FLAGS): New macros.
3455 (update_set_flags, group_barrier_needed, set_src_needs_barrier):
3456 Fixed to handle speculation checks.
3457 (rtx_needs_barrier): Fixed to handle speculative loads and
3459 (ia64_variable_issue): Added code to count speculative loads and their
3461 (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
3463 (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
3465 (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
3467 (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
3468 (ia64_reorg): Reset stops_p to NULL after it is freed.
3469 * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
3470 UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
3471 (itanium_class): chk_s renamed to chk_s_i. New constants: chk_s_f,
3473 (data_speculative, control_speculative, check_load): New attributes.
3474 (mov<mode>_advanced, mov<mode>_speculative,
3475 mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
3476 zero_extend<mode>di2_speculative,
3477 zero_extend<mode>di2_speculative_advanced): New patterns for
3478 data and control speculative loads.
3479 (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
3481 (advanced_load_check_clr_<mode>, speculation_check_<mode>):
3482 New pattern for data and control speculation checks.
3483 (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
3484 ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
3485 reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
3486 Auxiliary definitions for the patterns.
3487 * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
3488 1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
3490 (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
3492 (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
3493 * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
3494 2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
3495 New resource constraints.
3496 (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
3498 (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
3499 * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
3500 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
3501 msched-in-control-spec, msched-ldc, msched-control-ldc,
3502 msched-spec-verbose, msched-prefer-non-data-spec-insns,
3503 msched-prefer-non-control-spec-insns,
3504 msched-count-spec-in-critical-path): New flags to tune speculative
3506 * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
3507 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
3508 msched-in-control-spec, msched-ldc, msched-control-ldc,
3509 msched-spec-verbose, msched-prefer-non-data-spec-insns,
3510 msched-prefer-non-control-spec-insns,
3511 msched-count-spec-in-critical-path): Document new flags.
3513 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3515 * target.h (struct spec_info_def): New opaque declaration.
3516 (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,
3517 speculate_insn, needs_block_p, gen_check,
3518 first_cycle_multipass_dfa_lookahead_guard_spec, set_sched_flags.
3519 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
3520 TARGET_SCHED_H_I_D_EXTENDED, TARGET_SCHED_SPECULATE_INSN,
3521 TARGET_SCHED_NEEDS_BLOCK_P, TARGET_SCHED_GEN_CHECK,
3522 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
3523 TARGET_SCHED_SET_SCHED_FLAGS): New macros to initialize fields in
3525 (TARGET_SCHED): Use new macros.
3526 * rtl.h (copy_DEPS_LIST_list): New prototype.
3527 * sched-int.h (struct sched_info): Change signature of new_ready field,
3528 adjust all initializations. New fields: add_remove_insn,
3529 begin_schedule_ready, add_block, advance_target_bb, fix_recovery_cfg,
3530 region_head_or_leaf_p.
3531 (struct spec_info_def): New structure declaration.
3532 (spec_info_t): New typedef.
3533 (struct haifa_insn_data): New fields: todo_spec, done_spec, check_spec,
3534 recovery_block, orig_pat.
3535 (glat_start, glat_end): New variables declaraions.
3536 (TODO_SPEC, DONE_SPEC, CHECK_SPEC, RECOVERY_BLOCK, ORIG_PAT):
3538 (enum SCHED_FLAGS): New constants: SCHED_RGN, SCHED_EBB,
3539 DETACH_LIFE_INFO, USE_GLAT.
3540 (enum SPEC_SCHED_FLAGS): New enumeration.
3541 (NOTE_NOTE_BB_P): New macro.
3542 (extend_dependency_caches, xrecalloc, unlink_bb_notes, add_block,
3543 attach_life_info, debug_spec_status, check_reg_live): New functions.
3544 (get_block_head_tail): Change signature to get_ebb_head_tail, adjust
3545 all uses in ddg.c, modulo-sched.c, haifa-sched.c, sched-rgn.c,
3547 (get_dep_weak, ds_merge): Prototype functions from sched-deps.c .
3548 * ddg.c (get_block_head_tail): Adjust all uses.
3549 * modulo-sched.c (get_block_head_tail): Adjust all uses.
3550 (sms_sched_info): Initialize new fields.
3551 (contributes_to_priority): Removed.
3552 * haifa-sched.c (params.h): New include.
3553 (get_block_head_tail): Adjust all uses.
3554 (ISSUE_POINTS): New macro.
3555 (glat_start, glat_end): New global variables.
3556 (spec_info_var, spec_info, added_recovery_block_p, nr_begin_data,
3557 nr_be_in_data, nr_begin_control, nr_be_in_control, bb_header,
3558 old_last_basic_block, before_recovery, current_sched_info_var,
3559 rgn_n_insns, luid): New static variables.
3560 (insn_cost1): New function. Move logic from insn_cost to here.
3561 (find_insn_reg_weight1): New function. Move logic from
3562 find_insn_reg_weight to here.
3563 (reemit_notes, move_insn, max_issue): Change signature.
3564 (move_insn1): Removed.
3565 (extend_h_i_d, extend_ready, extend_global, extend_all, init_h_i_d,
3566 extend_bb): New static functions to support extension of scheduler's
3568 (generate_recovery_code, process_insn_depend_be_in_spec,
3569 begin_speculative_block, add_to_speculative_block,
3570 init_before_recovery, create_recovery_block, create_check_block_twin,
3571 fix_recovery_deps): New static functions to support
3572 generation of recovery code.
3573 (fix_jump_move, find_fallthru_edge, dump_new_block_header,
3574 restore_bb_notes, move_block_after_check, move_succs): New static
3575 functions to support ebb scheduling.
3576 (init_glat, init_glat1, attach_life_info1, free_glat): New static
3577 functions to support handling of register live information.
3578 (associate_line_notes_with_blocks, change_pattern, speculate_insn,
3579 sched_remove_insn, clear_priorities, calc_priorities, bb_note,
3580 add_jump_dependencies): New static functions.
3581 (check_cfg, has_edge_p, check_sched_flags): New static functions for
3582 consistancy checking.
3583 (debug_spec_status): New function to call from debugger.
3584 (priority): Added code to handle speculation checks.
3585 (rank_for_schedule): Added code to distinguish speculative instructions.
3586 (schedule_insn): Added code to handle speculation checks.
3587 (unlink_other_notes, rm_line_notes, restore_line_notes, rm_other_notes):
3588 Fixed to handle ebbs.
3589 (move_insn): Added code to handle ebb scheduling.
3590 (max_issue): Added code to use ISSUE_POINTS of instructions.
3591 (choose_ready): Added code to choose between speculative and
3592 non-speculative instructions.
3593 (schedule_block): Added code to handle ebb scheduling and scheduling of
3594 speculative instructions.
3595 (sched_init): Initialize new variables.
3596 (sched_finish): Free new variables. Print statistics.
3597 (try_ready): Added code to handle speculative instructions.
3598 * lists.c (copy_DEPS_LIST_list): New function.
3599 * sched-deps.c (extend_dependency_caches): New function. Move logic
3600 from create_dependency_caches to here.
3601 (get_dep_weak, ds_merge): Make global.
3602 * genattr.c (main): Code to output prototype for
3603 dfa_clear_single_insn_cache.
3604 * genautomata.c (DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME): New macros.
3605 (output_dfa_clean_insn_cache_func): Code to output
3606 dfa_clear_single_insn_cache function.
3607 * sched-ebb.c (target_n_insns): Remove. Adjust all users to use
3609 (can_schedule_ready_p, fix_basic_block_boundaries, add_missing_bbs):
3611 (n_insns, dont_calc_deps, ebb_head, ebb_tail, last_bb):
3612 New static variables.
3613 (begin_schedule_ready, add_remove_insn, add_block1, advance_target_bb,
3614 fix_recovery_cfg, ebb_head_or_leaf_p): Implement hooks from
3616 (ebb_sched_info): Initialize new fields.
3617 (get_block_head_tail): Adjust all uses.
3618 (compute_jump_reg_dependencies): Fixed to use glat_start.
3619 (schedule_ebb): Code to remove unreachable last block.
3620 (schedule_ebbs): Added code to update register live information.
3621 * sched-rgn.c (region_sched_info): Initialize new fields.
3622 (get_block_head_tail): Adjust all uses.
3623 (last_was_jump): Removed. Adjust users.
3624 (begin_schedule_ready, add_remove_insn, insn_points, extend_regions,
3625 add_block1, fix_recovery_cfg, advance_target_bb, region_head_or_leaf_p):
3626 Implement new hooks.
3627 (check_dead_notes1): New static function.
3628 (struct region): New fields: dont_calc_deps, has_real_ebb.
3629 (RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB): New access macros.
3630 (BB_TO_BLOCK): Fixed to handle EBBs.
3631 (EBB_FIRST_BB, EBB_LAST_BB): New macros.
3632 (ebb_head): New static variable.
3633 (debug_regions, contributes_to_priority): Fixed to handle EBBs.
3634 (find_single_block_regions, find_rgns, find_more_rgns): Initialize
3636 (compute_dom_prob_ps): New assertion.
3637 (check_live_1, update_live_1): Fixed to work with glat_start instead of
3638 global_live_at_start.
3639 (init_ready_list): New assertions.
3640 (can_schedule_ready_p): Split update code to begin_schedule_ready.
3641 (new_ready): Add support for BEGIN_CONTROL speculation.
3642 (schedule_insns): Fixed code that updates register live information
3644 (schedule_region): Fixed to handle EBBs.
3645 (init_regions): Use extend_regions and check_dead_notes1.
3646 * params.def (PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
3647 PARAM_SCHED_SPEC_PROB_CUTOFF): New parameters.
3648 * doc/tm.texi (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_H_I_D_EXTENDED,
3649 TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
3650 TARGET_SCHED_GEN_CHECK,
3651 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
3652 TARGET_SCHED_SET_SCHED_FLAGS): Document.
3653 * doc/invoke.texi (max-sched-insn-conflict-delay,
3654 sched-spec-prob-cutoff): Document.
3656 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3658 * sched-int.h (struct haifa_insn_data): New fields: resolved_deps,
3659 inter_tick, queue_index.
3660 (struct sched_info): Change signature of init_ready_list field.
3661 Adjust all initializations.
3662 (RESOLVED_DEPS): New access macro.
3663 (ready_add): Remove prototype.
3664 (try_ready): Add prototype.
3665 * sched-rgn.c (init_ready_list): Use try_ready.
3666 (schedule_region): Initialize
3667 current_sched_info->{sched_max_insns_priority, queue_must_finish_empty}.
3668 * sched-ebb.c (new_ready): Remove. Adjust ebb_sched_info.
3669 (init_ready_list): Use try_ready.
3670 (schedule_ebb): Initialize current_sched_info->sched_max_insns_priority.
3671 * lists.c (remove_list_elem): Remove `static'.
3672 (remove_free_INSN_LIST_elem): New function.
3673 * rtl.h (remove_list_elem, remove_free_INSN_LIST_elem): Add prototypes.
3674 * haifa-sched.c (INTER_TICK, QUEUE_INDEX): New macros.
3675 (INVALID_TICK, MIN_TICK, QUEUE_SCHEDULED, QUEUE_NOWHERE, QUEUE_READY):
3677 (readyp): New variable.
3678 (queue_remove, ready_remove_insn, fix_inter_tick, fix_tick_ready,
3679 change_queue_index, resolve_dep): New static functions.
3680 (try_ready): New function. Adjust callers in sched-rgn.c and
3681 sched-ebb.c to use it instead of ready_add.
3682 (clock_var): Move at the begining of file.
3683 (rank_for_schedule): Fix typo.
3684 (queue_insn): Add assertion. Handle QUEUE_INDEX.
3685 (ready_lastpos): Enforce assertion.
3686 (ready_add): Make it static. Handle QUEUE_INDEX. Add new argument,
3688 (ready_remove_first, ready_remove): Handle QUEUE_INDEX.
3689 (schedule_insn): Rewrite to use try_ready and resolve_dep.
3690 (queue_to_ready): Use free_INSN_LIST_list.
3691 (early_queue_to_ready): Fix typo.
3692 (schedule_block): Init readyp. Move init_ready_list call after the
3693 initialization of clock_var. Fix error in rejecting insn by
3694 targetm.sched.dfa_new_cycle. Add call to fix_inter_tick. Remove code
3695 that previously corrected INSN_TICKs. Add code for handling
3697 (set_priorities): Fix typo.
3698 (sched_init): Initialize INSN_TICK, INTER_TICK and QUEUE_INDEX.
3699 Clarify comment and code that keeps current_sched_info->next_tail
3702 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3704 * sched-rgn.c (extend_rgns): New static function.
3705 (find_rgns): Use it.
3706 (gather_region_statistics, print_region_statistics): New static
3708 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): New parameter.
3709 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
3711 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3712 Andrey Belevantsev <abel@ispras.ru>
3714 * ddg.c (build_intra_loop_deps): Adjust add_forward_dependence call.
3715 * lists.c (unused_deps_list): New variable.
3716 (free_list): Add assertions to verify the proper distinguishing
3717 between INSN_LISTs and DEPS_LISTs.
3718 (find_list_elem, remove_list_elem, remove_list_node): New static
3720 (alloc_DEPS_LIST, free_DEPS_LIST, free_DEPS_LIST_node,
3721 remove_free_INSN_LIST_elem, remove_free_DEPS_LIST_elem,
3722 remove_free_INSN_LIST_node, remove_free_DEPS_LIST_node): New functions.
3723 (alloc_INSN_LIST): Assert that the list we're working on is indeed
3725 (free_INSN_LIST_node): Likewise.
3726 * modulo-sched.c (current_sched_info): Initialize flags field.
3727 * reg-notes.def: Exchange DEP_ANTI and DEP_OUTPUT.
3728 * rtl.def (DEPS_LIST): Define.
3729 * rtl.h: Declare new functions from lists.c.
3730 * sched-deps.c (spec_dependency_cache): New static variable.
3731 (maybe_add_or_update_back_dep_1, add_back_dep): New static functions.
3732 (add_dependence): Change return type to void. Move the logic to ...
3733 (add_or_update_back_dep_1): ... here. Handle speculative dependencies.
3734 (delete_all_dependences): Add comment about forward_dependency_cache.
3735 Handle spec_dependency_cache. Handle DEPS_LISTs.
3736 (fixup_sched_groups): Clarify the change of priority of output
3737 and anti dependencies.
3738 (sched_analyze_2): Adjust add_dependence calls to create data
3739 speculative dependence.
3740 (add_forward_dependence): Renamed to add_forw_dep, change prototype.
3741 Adjust all callers. Handle DEPS_LISTS.
3742 (compute_forward_dependences): Use add_forw_dep. Sort LOG_LINKs in
3743 presence of speculation.
3744 (init_dependency_caches, free_dependency_caches):
3745 Handle spec_dependency_cache.
3746 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep, delete_forw_dep,
3747 estimate_dep_weak, get_dep_weak, ds_merge, check_dep_status):
3748 New static functions.
3749 (add_or_update_back_dep, add_or_update_back_forw_dep,
3750 add_back_forw_dep, delete_back_forw_dep): New functions.
3751 * sched-int.h (ds_t, dw_t): New typedefs.
3752 (struct sched_info): Add new field flags.
3753 (struct haifa_insn_data): Add new bitfield has_internal_dep.
3754 Prototype new sched-deps.c functions.
3755 (HAS_INTERNAL_DEP, DEP_STATUS): New access macros.
3756 (BITS_PER_DEP_STATUS, BITS_PER_DEP_WEAK, DEP_WEAK_MASK, MAX_DEP_WEAK,
3757 MIN_DEP_WEAK, NO_DEP_WEAK, UNCERTAIN_DEP_WEAK, BEGIN_DATA, BE_IN_DATA,
3758 BEGIN_CONTROL, BE_IN_CONTROL, BEGIN_SPEC, DATA_SPEC, CONTROL_SPEC,
3759 SPECULATIVE, BE_IN_SPEC, FIRST_SPEC_TYPE, LAST_SPEC_TYPE,
3760 SPEC_TYPE_SHIFT, DEP_TRUE, DEP_OUTPUT, DEP_ANTI, DEP_TYPES, HARD_DEP):
3762 (enum SPEC_TYPES_OFFSETS, enum DEPS_ADJUST_RESULT, enum SCHED_FLAGS):
3764 * sched-rgn.c (current_sched_info): Initialize flags field.
3765 (schedule_insns): Initialize current_sched_info before the sched_init
3767 * sched-ebb.c (current_sched_info): Initialize flags field.
3768 (add_deps_for_risky_insns): Use control_flow_insn_p instead of JUMP_P.
3769 Call add_or_update_back_dep instead of add_dependence.
3770 Create control speculative dependencies.
3771 (schedule_insns): Initialize current_sched_info before the sched_init
3774 2006-03-16 Kaz Kojima <kkojima@gcc.gnu.org>
3776 * config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
3778 (sh_fallback_frame_state): Likewise.
3780 2006-03-15 Geoffrey Keating <geoffk@apple.com>
3782 * config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
3783 Do switch on default_use_cxa_atexit.
3784 (powerpc*-*-darwin*): Build crt2.o on powerpc.
3785 * config/darwin-crt3.o: New.
3786 * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default
3787 to 10.3. Pass '-multiply_defined suppress' if crt3.o is in use.
3788 (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate
3790 * config/rs6000/t-darwin: Move crt2.o building to here.
3791 * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update
3792 Mac OS version for using __cxa_get_exception_ptr. Don't test versions
3795 2006-03-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3797 * config/vax/vax.c (nonindexed_address_p): Change logical negation
3798 from '! xxx' to '!xxx' for coding-style conformance.
3799 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Likewise.
3800 (EXTRA_CONSTRAINT): Likewise.
3801 * config/vax/vax.md (four unnamed insns): Likewise.
3803 2006-03-15 Paul Brook <paul@codesourcery.com>
3805 * config/arm/arm.c (minipool_pad): New.
3806 (add_minipool_forward_ref): Include pool alignment padding in address
3808 (push_minipool_fix): Set minipool_pad.
3809 (minipool_pad): Ditto.
3811 2006-03-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3813 * config/vax/vax.c (split_quadword_operands): Use MEM_P()
3814 instead of GET_CODE() == MEM and REG_P() instead of
3816 (print_operand_address): Likewise.
3817 (vax_address_cost): Likewise.
3818 (vax_rtx_costs): Likewise.
3819 (vax_notice_update_cc): Likewise.
3820 (vax_output_int_add): Likewise.
3821 (INDEX_REGISTER_P): Likewise.
3822 (BASE_REGISTER_P): Likewise.
3823 (nonindexed_address_p): Likewise.
3824 (vax_mode_dependent_address_p): Likewise.
3825 * config/vax/vax.h (EXTRA_CONSTRAINT): Likewise.
3826 (PRINT_OPERAND): Likewise.
3827 * config/vax/vax.md (ashlsi3): Likewise.
3828 (ashlsi3): Likewise.
3829 (some more unnamed insns): Likewise.
3831 2006-03-15 Kazu Hirata <kazu@codesourcery.com>
3833 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Make it an
3834 iterator-style macro.
3835 (mark_control_dependent_edges_necessary): Update the use of
3836 EXECUTE_IF_CONTROL_DEPENDENT.
3838 2006-03-15 J"orn Rennecke <joern.rennecke@st.com>
3840 * config/sh/predicates.md (cache_address_operand): Special.
3841 (ua_address_operand): Likewise.
3843 2006-03-15 Zdenek Dvorak <dvorakz@suse.cz>
3845 * haifa-sched.c (unlink_other_notes, reemit_notes): Do not handle
3847 * sched-deps.c (sched_analyze_insn, sched_analyze): Ditto.
3849 2006-03-15 Andreas Schwab <schwab@suse.de>
3851 * gensupport.c (identify_predicable_attribute): Don't free p_false
3852 when it is still in use.
3854 2006-03-15 Eric Botcazou <ebotcazou@libertysurf.fr>
3856 * config.gcc (default with_cpu setting) <sparc*-*-*>: Do not modify
3857 the default setting here.
3859 2006-03-14 Steven Bosscher <stevenb.gcc@gmail.com>
3861 * tree-pass.h (pass_cfg): Remove.
3862 * alias.c (rest_of_handle_cfg, pass_cfg): Remove.
3863 * passes.c (pass_cfg): Don't run it.
3865 2006-03-14 Kazu Hirata <kazu@codesourcery.com>
3867 * Makefile.in (reg-stack.o): Don't depend on gt-reg-stack.h.
3868 * reg-stack.c (stack_regs_mentioned_data): Change the type to
3870 (stack_regs_mentioned): Update the uses of
3871 stack_regs_mentioned_data. Don't access the array beyond its
3873 (reg_to_stack): Update the uses of stack_regs_mentioned_data.
3874 Don't include gt-reg-stack.h.
3876 * config/bfin/bfin.h (UNALIGNED_WORD_ASM_OP): Remove.
3877 * system.h (UNALIGNED_WORD_ASM_OP): Poison.
3879 * combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): Remove.
3882 * reg-stack.c (stack_regs_mentioned_data): Put it undef #ifdef
3885 2006-03-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3887 * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Fix typo.
3889 2006-03-14 Richard Guenther <rguenther@suse.de>
3891 PR tree-optimization/26672
3892 * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in
3895 2006-03-14 Richard Guenther <rguenther@suse.de>
3897 PR tree-optimization/26667
3898 * ipa-inline.c (cgraph_check_inline_limits): Walk the correct
3899 node for the callees. Always allow inlining if it will shrink
3902 2006-03-14 Richard Guenther <rguenther@suse.de>
3905 * builtins.c (get_pointer_alignment): Prefer alignment
3906 information from decls over that from types.
3908 2006-03-14 Andrew Pinski <pinskia@physics.uc.edu>
3911 * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.
3913 2006-03-14 Joseph S. Myers <joseph@codesourcery.com>
3915 * config/rs6000/rs6000.opt (mdlmzb): New option.
3916 (msched-prolog, msched-epilog): Use Var not Mask.
3917 * doc/invoke.texi (-mdlmzb): Document.
3918 * config/rs6000/rs6000.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
3920 (rs6000_override_options): Enable -mdlmzb for 405 and 440.
3921 * config/rs6000/rs6000.md: Add dlmzb support for 405 and 440.
3923 2006-03-13 Uttam Pawar <uttamp@us.ibm.com>
3925 PR rtl-optimization/25739
3926 * bt-load.c (augment_live_range): Free tos pointer.
3928 * gensupport.c (identify_predicable_attribute): Free
3930 * gcov.c (create_file_names): Free name pointer.
3932 2006-03-13 Roger Sayle <roger@eyesopen.com>
3935 * stmt.c (emit_case_nodes): Handle the case where the index is a
3936 CONST_INT, where the comparison mode is specified by the index type.
3938 2006-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3940 * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Define when CRTSTUFFS_O
3943 2006-03-13 Richard Sandiford <richard@codesourcery.com>
3945 * config/mips/mips.md (*branch_fp): Use %Z2 for the condition.
3946 (*branch_fp_inverted): Likewise.
3948 2006-03-13 Jakub Jelinek <jakub@redhat.com>
3951 * omp-low.c (expand_omp_for_generic): Mark istart0
3952 and iend0 as addressable.
3954 2006-03-13 Jie Zhang <jie.zhang@analog.com>
3956 * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
3958 2006-03-13 Jeff Law <law@redhat.com>
3960 * tree-vrp.c (stmt_interesting_for_vrp): Some statements with
3961 virtual operands are interesting.
3962 (vrp_visit_stmt): Corresponding changes.
3964 2006-03-13 Bernd Schmidt <bernd.schmidt@analog.com>
3966 * config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
3968 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
3969 TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
3970 * config/bfin/crti.S: Use it instead of __PIC__.
3971 * config/bfin/crtn.S: Likewise.
3973 * config/bfin/bfin.md (call_value_symbol, sibcall_value_symbol,
3974 call_symbol, sibcall_symbol): Disallow if TARGET_ID_SHARED_LIBRARY,
3976 Lose 'G' modifier for call operand.
3977 * config/bfin/bfin.c (print_operand) <case SYMBOL_REF>: Don't
3978 recognize 'G' modifier.
3980 2006-03-13 Eric Botcazou <ebotcazou@adacore.com>
3983 * gimplify.c (gimplify_switch_expr): Discard empty ranges.
3984 * stmt.c (expand_case): Likewise.
3986 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
3988 PR rtl-optimization/26254
3989 * loop-invariant.c (seq_insns_valid_p): New function.
3990 (move_invariant_reg): Only emit new code if it is valid.
3992 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
3994 * cfgrtl.c (last_loop_beg_note, back_edge_of_syntactic_loop_p):
3996 (force_nonfallthru_and_redirect): Do not use last_loop_beg_note.
3997 (rtl_split_edge): Do not use back_edge_of_syntactic_loop_p.
3998 (commit_one_edge_insertion): Do not look for loop notes.
4000 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
4002 * jump.c (follow_jumps): Do not check for loop notes. Move check for
4003 flag_test_coverage out of loop.
4005 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
4007 * final.c (shorten_branches): Remove outdated comment, and turn
4008 the if branch that guards it to continue.
4010 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
4012 * cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
4013 * cfgloop.h (struct loop): Remove unused fields.
4015 2006-03-13 Kazu Hirata <kazu@codesourcery.com>