1 2006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3 * unwind-dw2.c: Add declarations for uw_update_context and
5 * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
6 detected, advance frame state and context once to skip over stub.
8 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
12 * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
13 Call rewrite_into_loop_closed_ssa only when something changed.
14 * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
15 * lambda-code.c (can_convert_to_perfect_nest): Declared.
16 (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
17 Test for perfect_nest_p here. Fix formating.
18 (replace_uses_equiv_to_x_with_y): Fix formating.
19 (stmt_uses_op): Removed.
20 (can_convert_to_perfect_nest): Removed loopivs parameter.
21 Complete the test by checking the scalar dependences.
22 (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
25 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
28 From Dan Kegel <dank@kegel.com>:
29 * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
31 2006-05-17 Eric Botcazou <ebotcazou@adacore.com>
33 * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
34 if the element type is variably modified without recursing.
36 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
39 * tree-loop-linear.c (try_interchange_loops): Test for
42 2006-05-17 Zdenek Dvorak <dvorakz@suse.cz>
44 PR tree-optimization/27548
45 * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
46 range of ssa names that appear on abnormal edges.
47 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
48 * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
50 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
53 * expr.c (safe_from_p): Handle CONSTRUCTOR again.
55 2006-05-17 Jakub Jelinek <jakub@redhat.com>
58 * tree.h (OMP_PARALLEL_COMBINED): Define.
59 * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
60 (new_omp_context): Add is_combined_parallel argument.
61 (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
62 new_omp_context caller.
63 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
64 Adjust gimplify_scan_omp_clauses callers.
65 (omp_is_private): Issue errors if iteration variable is firstprivate
66 or reduction in the current context.
67 * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
68 on combined parallel workshare constructs.
70 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
72 * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
73 (gcc-options.o): New rule.
75 * optc-gen.awk: Protect variables for gcc-options.o with
76 #ifdef GCC_DRIVER/#endif.
78 2006-05-16 Daniel Berlin <dberlin@dberlin.org>
80 Fix PR tree-optimization/27373
81 * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
82 (forward_propagate_addr_expr): Update call.
84 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
86 * doc/options.texi: Move the Negative option.
88 2006-05-16 Richard Guenther <rguenther@suse.de>
90 PR tree-optimization/22303
91 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
93 (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
94 ccp_fold did not simplify the statement.
96 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
99 * Makefile.in (GCC_OBJS): New.
100 (OBJS-common): Add opts-common.o.
101 (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
102 (cpp$(exeext)): Likewise.
103 (gcc.o): Also depend on opts.h.
104 (opts-common.o): New.
106 * common.opt (gcoff): Add Negative(gdwarf-2).
107 (gdwarf-2): Add Negative(gstabs).
108 (gstabs): Add Negative(gstabs+).
109 (gstabs+): Add Negative(gvms).
110 (gvms): Add Negative(gxcoff).
111 (gxcoff): Add Negative(gxcoff+).
112 (gxcoff+): Add Negative(gcoff).
113 * config/i386/i386.opt (m32): Add Negative(m64).
114 (m64): Add Negative(m32).
116 * doc/options.texi: Document the Negative option.
118 * gcc.c: Include "opts.h".
119 (main): Call prune_options after expandargv.
121 * optc-gen.awk: Generate common declarations for all flag
122 variables in options.c. Output the neg_index field.
124 * opts.c (find_opt): Moved to ...
125 * opts-common.c: Here. New file.
127 * opts.h (cl_option): Add a neg_index field.
129 (prune_options): Likewise.
131 2006-05-16 Jakub Jelinek <jakub@redhat.com>
134 * omp-low.c (expand_omp_parallel): Don't assert
135 .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
136 instead search for it.
139 * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
142 2006-05-16 Andreas Schwab <schwab@suse.de>
144 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
147 2006-05-15 Roger Sayle <roger@eyesopen.com>
150 * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
151 integer constants other than zero are only legitimate on TARGET_64BIT.
152 <CONST_VECTOR> Only zero vectors are legitimate.
153 (ix86_cannot_force_const_mem): Integral and vector constants can
154 always be put in the constant pool.
156 2006-05-16 DJ Delorie <dj@redhat.com>
158 * crtstuff.c (__dso_handle): Set section from
159 TARGET_LBIGCC_SDATA_SECTION if defined.
160 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
161 * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
163 2006-05-16 Danny Smith <dannysmith@users.sourceforge.net>
166 * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
169 2006-05-16 Ben Elliston <bje@au.ibm.com>
171 * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
173 2006-05-15 Per Bothner <per@bothner.com>
175 * tree.c: (last_annotated_node): Use sources_locus typedef.
176 This permits bootstrapping with --enable-mapped-location.
178 2006-05-15 Zdenek Dvorak <dvorakz@suse.cz>
180 PR tree-optimization/26830
181 * tree-into-ssa.c (struct ssa_name_info): Add age field.
182 (info_for_ssa_name, current_info_for_ssa_name_age,
183 blocks_to_update): New variables.
184 (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
185 (clear_ssa_name_info, initialize_flags_in_bb,
186 mark_block_for_update): New functions.
187 (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
188 (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
189 prepare_def_site_for): Use mark_block_for_update.
190 (mark_def_interesting): Assert that the processed block is marked in
191 blocks_to_update. Do not take blocks argument.
192 (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
194 (rewrite_update_init_block, rewrite_update_stmt): Only process
195 blocks with statements to rewrite.
196 (delete_update_ssa): Do not clear SSA_NAME_AUX.
197 (update_ssa): Initialize and free blocks_to_update. Do not
198 clear flags on statements. Do not use blocks bitmap.
199 * tree.h (SSA_NAME_AUX): Removed.
200 (struct tree_ssa_name): Removed aux field.
201 * print-tree.c (print_node): Do not print SSA_NAME_AUX.
203 2006-05-15 Richard Guenther <rguenther@suse.de>
205 PR tree-optimization/27603
206 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
207 Do computations in original type.
209 2006-05-15 Mircea Namolaru <namolaru@il.ibm.com>
211 * see.c: Code style changes such as redundant paranthesis,
212 redundant intialization of local variables etc.
213 (see_main): Declared now as static.
214 * doc/invoke.texi: Update that -fsee is not enabled by
217 2006-05-15 Jakub Jelinek <jakub@redhat.com>
219 * omp-low.c (check_omp_nesting_restrictions): New function.
220 (scan_omp_1): Call it.
223 * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
224 construct, return *VAR.
226 2006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
228 PR rtl-optimization/27406
229 * bt-load.c (migrate_btr_def): Skip the block having abnormal
232 2006-05-14 Roger Sayle <roger@eyesopen.com>
234 PR rtl-optimization/27538
235 * combine.c (expand_compound_operation): Call gen_lowpart
236 before calling simplify_shift_const.
238 2006-05-14 Roger Sayle <roger@eyesopen.com>
240 PR rtl-optimization/22563
241 * expmed.c (store_fixed_bit_field): When using AND and IOR to store
242 a fixed width bitfield, always force the intermediates into psuedos.
244 2006-05-14 Bernhard Fischer <aldot@gcc.gnu.org>
247 * mkconfig.sh: Use operator = instead of == for test.
249 2006-05-13 Nick Clifton <nickc@redhat.com>
251 * dwarf2out.c (dbx_reg_number): Check return value from
252 LEAF_REG_REMAP and only use it if it is valid.
253 (multiple_reg_loc_descriptor): Likewise.
255 2006-05-13 Richard Guenther <rguenther@suse.de>
257 * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
260 2006-05-13 Steven Bosscher <stevenb.gcc@gmail.com>
262 * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
263 information attached to non-INSNs such as NOTEs.
264 (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
266 2006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
268 * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
270 * config/s390/s390.md: Adjust comment describing On constraint.
272 2006-05-11 Jan Hubicka <jh@suse.cz>
274 * cgraphunit.c (decide_is_function_needed): Don't force always_inline
277 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
280 * fold-const.c (size_binop): Move sanity check for arguments to
281 the beginning of the function.
284 * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
287 2006-05-11 Richard Guenther <rguenther@suse.de>
290 * fold-const.c (fold_unary): Handle intermediate conversion
291 to a pointer type like intermediate conversion to an integer
292 type in folding of (T1)(T2)var to var.
293 Match the code to the comment in the final conversion for
294 (T1)(T2)var to (T1)var regarding to type precision. Rather
295 than disallow T1 being of pointer type, assert that both T1
296 and var are of pointer type or not. Make sure not to fall
297 over the frontends lazyness wrt array to pointer decay though.
299 2006-05-10 Richard Earnshaw <rearnsha@arm.com>
301 * arm.c (arm_struct_value_rtx): Delete.
302 (TARGET_STRUCT_VALUE_RTX): Use the default definition.
303 (arm_init_cumulative_args): Always initialize nregs to zero.
305 2006-05-10 Richard Guenther <rguenther@suse.de>
307 PR tree-optimization/27532
308 * tree-object-size.c (plus_expr_object_size): Fix typo.
310 2006-05-10 Kazu Hirata <kazu@codesourcery.com>
313 * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
314 ashrdi_const, ashrdi3): Use a scratch register.
316 2006-05-10 Richard Guenther <rguenther@suse.de>
318 PR tree-optimization/27302
319 * fold-const.c (operand_equal_p): For two comparisons,
320 try comparison of one comparison code swapped if that yields
323 2006-05-10 Ben Elliston <bje@au.ibm.com>
325 * tree-pretty-print.c (pretty_print_string): No need to handle
326 '\0' as a special character.
328 * tree.h: Include "hashtab.h".
329 (iterative_hash_expr): Use hashval_t in its prototype.
330 * Makefile.in (TREE_H): Add $(HASHTAB_H).
332 2006-05-09 Steve Ellcey <sje@cup.hp.com>
335 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
336 (hppa*64*-*-hpux11*): Ditto.
337 (hppa[12]*-*-hpux11*): Ditto.
339 2006-05-09 David Edelsohn <edelsohn@gnu.org>
342 * config/rs6000/aix41.h (TARGET_64BIT): Define.
344 2006-05-09 Michael Matz <matz@suse.de>
346 * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
347 host_extra_gcc_objs and host_xmake_file.
348 (<*-*-linux*>): Don't overwrite host_xmake_file.
349 * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
350 * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
351 (host_detect_local_cpu): Declare.
352 (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
353 * config/i386/i386.c (override_options): Handle -mtune=native
355 * config/i386/x-i386: New file.
356 * config/i386/driver-i386.c: New file.
357 * doc/invoke.texi (<i386 and x86-64 Options>): Describe
360 2006-05-09 Dirk Mueller <dmueller@suse.de>
361 Richard Guenther <rguenther@suse.de>
364 * fold-const.c (fold_read_from_constant_string): Relax check
365 for matching types to matching modes.
367 2006-05-09 Zdenek Dvorak <dvorakz@suse.cz>
369 PR rtl-optimization/27335
370 * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
373 2006-05-08 Chao-ying Fu <fu@mips.com>
374 Richard Sandiford <richard@codesourcery.com>
376 * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
377 (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
378 * config/mips/mips.md (UNSPEC_SCC): New constant.
379 * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
380 * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
381 (mips_emit_compare): Use it.
382 (mips_expand_vcondv2sf): New function.
384 2006-05-08 Daniel Berlin <dberlin@dberlin.org>
386 Fix PR tree-optimization/27093
387 * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
388 renaming when they become not-used_alone.
390 2006-05-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
392 * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
393 relocation and relocation stubs.
395 2006-05-08 Eric Christopher <echristo@apple.com>
397 * unwind-dw2-fde-darwin.c (examine_objects): Only check data
400 2006-05-08 Jan Hubicka <jh@suse.cz>
403 * cgraphunit.c (decide_is_function_needed): When not optimizing even
404 unused static functions are needed.
406 2006-05-08 Roger Sayle <roger@eyesopen.com>
409 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
410 of a reg_equiv_constant if the result is a legitimate constant.
412 2006-05-08 Uros Bizjak <uros@kss-loka.si>
415 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
416 standard 80387 constants, raise the cost to prevent
417 compress_float_constant() to generate load from memory.
419 2006-05-08 Kazu Hirata <kazu@codesourcery.com>
421 * config/arm/constraints.md (c): Fix a typo.
423 * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
426 2006-05-07 H.J. Lu <hongjiu.lu@intel.com>
429 * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
431 (_mm_mwait): Likewise.
433 * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
435 (sse3_monitor): Make it 32bit only.
436 (sse3_monitor64): New. 64bit monitor.
438 2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
441 * config/i386/i386.c (classify_argument): Skip fields with invalid
444 2006-05-07 Richard Guenther <rguenther@suse.de>
446 PR tree-optimization/27409
447 * tree-ssa-structalias.c (get_constraint_for_component_ref):
448 Do not try to find zero-sized subvars.
450 2006-05-07 Richard Guenther <rguenther@suse.de>
452 PR tree-optimization/27136
453 * tree-ssa-loop-niter.c (get_val_for): Correct function
454 comment, assert requirements.
455 (loop_niter_by_eval): Stop processing if the iterated
456 value did not simplify.
458 2006-05-07 Mircea Namolaru <namolaru@il.ibm.com>
460 * opts.c (flag_see): remove its setting at -O3.
462 2006-05-07 Richard Earnshaw <rearnsha@arm.com>
464 * genpeep.c (main): Make insn-peep.c depend on flags.h.
465 * arm/constraints.md: New file.
466 * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
467 (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
468 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
469 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
470 (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
471 (EXTRA_MEMORY_CONSTRAINT): Likewise.
472 * arm.md: Include constraints.md.
473 (thumb_movsi_insn): Use satisfies_constraint_J.
474 (movhi, movqi): Use satisfies_constraint_I.
476 2006-04-29 Anatoly Sokolov <aesok@post.ru>
478 * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
479 for atmeg a645 device.
481 2006-05-06 Richard Guenther <rguenther@suse.de>
483 PR tree-optimization/27151
484 * tree-vect-transform.c (vectorizable_condition): Punt on
485 values that have a different type than the condition.
487 2006-05-03 Aldy Hernandez <aldyh@redhat.com>
490 * c-parser.c (c_parser_cast_expression): Only insert casts into
491 hash table if pointer.
492 * function.c (used_types_insert_helper): Rename from
494 (used_types_insert): Call used_types_insert_helper.
495 * function.h (used_types_insert): Accept only one argument.
497 2006-05-05 David Edelsohn <edesohn@gnu.org>
499 * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
500 scratch with output modifier.
502 2006-05-04 David Edelsohn <edelsohn@gnu.org>
505 * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
506 with output modifier.
508 2006-05-04 Richard Sandiford <richard@codesourcery.com>
511 * config/mips/mips.c (mips_symbolic_address_p): Return true
512 for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
513 SYMBOL_GOTTPREL, and SYMBOL_TLS.
515 2006-05-04 Richard Guenther <rguenther@suse.de>
517 PR tree-optimization/14287
518 PR tree-optimization/14844
519 PR tree-optimization/19792
520 PR tree-optimization/21608
521 PR tree-optimization/27090
522 * tree-ssa-pre.c (try_combine_conversion): New function.
523 (compute_avail): After constructing the value-handle
524 expression, use try_combine_conversion to combine NOP_EXPRs
525 with previous value-handle expressions and use the result if it
528 2006-05-04 Joseph S. Myers <joseph@codesourcery.com>
530 * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
532 2006-05-04 Jan Hubicka <jh@suse.cz>
535 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
537 2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
539 * config/bfin/predicates.md (const01_rtx): Tell generator programs
540 that this only matches CONST_INTs. All users changed to VOIDmode
543 * config/bfin/bfin.c: Include "optabs.h".
544 (bfin_rtx_costs): Some costs for vector operations, to allow combine
546 (enum bfin_builtins): Add a number of fractional and vector builtins.
547 (bfin_init_builtins): Likewise.
548 (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
549 (safe_vector_operand, bfin_expand_binop_builtin,
550 bfin_expand_unop_builtin): New functions.
551 (bfin_expand_builtin): Handle the new builtins.
552 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
555 2006-05-04 Leehod Baruch <leehod@il.ibm.com>
558 * Makefile.in (OBJS-common): Add see.o.
559 (see.o): Add dependencies.
560 * common.opt (fsee): New flag for the see optimization was added.
561 * opts.c (flag_see): Initialized.
562 * passes.c (init_optimization_passes, pass_see): New pass.
563 * rtl.h (see_main): Declaration as extern.
564 * timevar.def (TV_SEE): New.
565 * tree-pass.h (pass_see): Declaration as extern.
566 * invoke.texi (-fsee): Document.
567 * recog.c (validate_simplify_insn): New function.
568 * recog.h (validate_simplify_insn): Declaration as extern.
569 * df-problems.c (df_chain_dump): Check for NULL.
571 2006-05-04 Kenneth Zadeck <zadeck@naturalbridge.com>
572 Daniel Berlin <dberlin@dberlin.org>
574 * cfgrtl.c (insert_insn_bb_end_new): New function.
575 * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
577 2006-05-04 Leehod Baruch <leehod.baruch@weizmann.ac.il>
579 * df.h (struct web_entry): Moved from web.c.
580 (union_defs): Declaration as extern.
581 (unionfind_root): Likewise.
582 (unionfind_union): Likewise.
583 * web.c (struct web_entry): Moved to df.h.
584 (unionfind_root): Remove static declaration.
585 (unionfind_union): Likewise.
586 (union_defs): Likewise and generalize to use callback function.
587 (web_main): Update arguments for union_defs function call.
589 2006-05-04 Richard Guenther <rguenther@suse.de>
591 PR tree-optimization/26447
592 * tree-ssa-pre.c (realify_fake_stores): For necessary loads
593 produce SSA_NAME copies before the store stmt to avoid
594 breaking exception handling.
596 2006-05-04 Jakub Jelinek <jakub@redhat.com>
599 * gimplify.c (omp_is_private): If var is shared in some outer context,
600 return false instead of true. Stop searching on parallel context
603 2006-05-03 Alexandre Oliva <aoliva@redhat.com>
606 * coverage.c: Use get_gcov_unsigned_t() instead of
607 unsigned_type_node all over.
609 2006-05-02 Andrew MacLeod <amacleod@redhat.com>
611 PR tree-optimization/27381
612 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
613 maintain the same immediate_use links.
614 * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
615 node rather than segfaulting.
617 2006-05-03 Jakub Jelinek <jakub@redhat.com>
620 * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
621 rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
622 bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
624 2006-05-02 Daniel Berlin <dberlin@dberlin.org>
626 Fix PR tree-optimization/26626
627 * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
629 * tree-ssa-operands.c (access_can_touch_variable): Allow
630 typecasting through union pointers.
632 2006-05-02 Jakub Jelinek <jakub@redhat.com>
635 * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
636 (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
637 to find if var will be a global variable even in the nested context.
638 (omp_copy_decl): Only check for global variable at the end, it might
639 be overridden in outer contexts.
640 (scan_sharing_clauses): For global variables don't create a field.
641 (lower_rec_input_clauses): Do nothing for global shared variables.
642 Emit a barrier at the end of ILIST if there were any decls in both
643 firstprivate and lastprivate clauses.
644 (lower_send_clauses): Do nothing for global variables except for
647 2006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
649 * tree.c (unsigned_type_for, signed_type_for): Make sure a type
650 of the correct signedness is returned.
652 2006-05-02 Jeff Law <law@redhat.com>
654 PR tree-optimization/27364
655 * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
656 multiply expressions.
658 2006-05-02 Tom Tromey <tromey@redhat.com>
660 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
662 2006-05-02 Kazu Hirata <kazu@codesourcery.com>
665 * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
666 -mthumb -fPIC are used.
668 2006-05-02 Stanislaw Skowronek <skylark@linux-mips.org>
669 Joshua Kinard <kumba@gentoo.org>
672 * gcc/config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
673 with 64-bit pointers.
675 2006-05-02 Paul Brook <paul@codesourcery.com>
677 * config/arm/arm.c (add_minipool_forward_ref): Check if insn
679 (create_fix_barrier): Check that a suitable barrier location is
681 (arm_reorg): Include ftmp->address in allowable range of addresses.
683 2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
686 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
689 2006-05-02 Jakub Jelinek <jakub@redhat.com>
692 * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
693 around RESULT_DECL for result passed by reference.
694 (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
695 * omp-low.c (use_pointer_for_field): Don't look at
696 DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
697 (scan_omp_1): Call remap_decl on RESULT_DECLs.
698 (lower_rec_input_clauses): Don't allocate VLA memory for the second
699 time or var for passing by reference for
700 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
701 TREE_ADDRESSABLE variables when passing by reference.
703 * omp-low.c (dump_omp_region): Fix output formatting.
706 * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
707 (expand_omp_parallel): Likewise.
708 * tree-cfg.c (move_sese_region_to_fn): Likewise.
711 * omp-low.c (lower_omp_sections): Call maybe_catch_exception
712 on statement list containing also constructors and destructors.
713 (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
716 * except.c (duplicate_eh_regions): Fix clearing of
717 cfun->eh->region_array entries.
719 2006-05-01 DJ Delorie <dj@redhat.com>
721 * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
723 (gcc_cv_objdump): Likewise.
724 * configure: Regenerated.
726 2006-05-01 Kazu Hirata <kazu@codesourcery.com>
729 * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
730 templates for case 3 and 4.
732 2006-05-01 DJ Delorie <dj@redhat.com>
734 * vec.c: Include bconfig.h when appropriate.
735 * Makefile.in (build/vec.o): Adjust dependencies.
736 * mkconfig.sh: Make sure config.h isn't used for build machine
739 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
741 * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
743 (mark_phi_for_rewrite): New function.
744 (insert_phi_nodes_for, mark_use_interesting): Call
745 mark_phi_for_rewrite.
746 (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
747 (update_ssa): Initialize and free phis_to_rewrite.
749 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
751 PR rtl-optimization/27291
752 * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
753 folded to a constant.
755 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
757 PR tree-optimization/27283
758 * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
759 not whole # of iteration descriptions.
760 (niter_for_exit): Return just # of iterations. Fail if # of iterations
761 uses abnormal ssa name.
762 (niter_for_single_dom_exit): Ditto.
763 (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
764 return just the number of iterations.
766 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
768 PR tree-optimization/27144
769 * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
770 (record_estimate): Only record constant upper bound.
771 (infer_loop_bounds_from_undefined): Call
772 compute_estimated_nb_iterations just once.
773 (proved_non_wrapping_p): Renamed to ...
774 (n_of_executions_at_most): ... this. Expect bound to be a constant.
775 (convert_step_widening, scev_probably_wraps_p): Call
776 n_of_executions_at_most instead of proved_non_wrapping_p.
777 (substitute_in_loop_info): Do not replace values in bounds.
778 * cfgloop.h (struct nb_iter_bound): Remove "additional" field. Update
781 2006-05-01 Richard Henderson <rth@redhat.com>
784 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
785 c_parser_skip_to_pragma_eol. Convert to switch statement. Handle
788 2006-05-01 Roger Sayle <roger@eyesopen.com>
790 * c-typeck.c (parser_build_binary_op): Don't call the function
791 unsigned_conversion_warning to spot operand/result type overflow.
792 (build_binary_op): Instead, call convert_and_check instead of
793 convert to report the problem when the operands are promoted.
794 * c-common.c (unsigned_conversion_warning): Make static.
795 * c-common.h (unsigned_conversion_warning): Delete prototype.
797 2006-05-01 Richard Guenther <rguenther@suse.de>
799 PR tree-optimization/26726
800 * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
802 (find_interesting_uses_address): ... we work around here
803 by folding INDIRECT_REFs in the substituted base.
805 2006-05-01 Diego Novillo <dnovillo@redhat.com>
807 * omp-low.c (dump_omp_region): Add newlines.
809 2006-04-30 Roger Sayle <roger@eyesopen.com>
811 * common.opt (Woverflow): New command line option.
812 * c-common.c (constant_expression_warning): Check warn_overflow.
813 (overflow_waring): Pass OPT_Woverflow to warning.
814 (unsigned_conversion_warning): Likewise.
815 (convert_and_check): Likewise.
816 * doc/invoke.texi: Document new command line option.
818 2006-04-30 David Edelsohn <edelsohn@gnu.org>
820 * config/rs6000/rs6000.c (rs6000_override_options): Enable
821 TARGET_NO_FP_IN_TOC for section anchors.
822 (optimization_options): Enable section anchors for all
823 non-"Objective" languages.
825 2006-04-28 Eric Christopher <echristo@apple.com>
827 * config/darwin-c.c (darwin_ms_struct): Move this
828 (darwin_set_default_type_attributes): and this...
829 * config/darwin.c: ... here.
830 * config/darwin.h (darwin_ms_struct): Declare.
832 2006-04-28 Andrew MacLeod <amacleod@redhat.com>
834 * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
836 2006-04-28 Roger Sayle <roger@eyesopen.com>
839 * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
840 (push_array_bounds): Delete prototype. Change BOUNDS argument to
841 an unsigned HOST_WIDE_INT.
842 (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
844 (really_start_incremental_init): No need to call convert because
845 bitsize_zero_node is already of type bitsizetype.
846 (push_init_level): Extract the value of constructor_index as an
847 unsigned HOST_WIDE_INT quantity, using tree_low_cst.
848 (process_init_element): Likewise.
850 2006-04-28 Joseph S. Myers <joseph@codesourcery.com>
852 * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
853 value before passing to make_relative_prefix.
855 2006-04-28 Alan Modra <amodra@bigpond.net.au>
858 * builtins.c (expand_builtin_memset): Expand val in original mode.
860 2006-04-27 Eric Christopher <echristo@apple.com>
862 * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
864 * config/darwin-c.c (darwin_ms_struct): New.
865 (darwin_pragma_ms_struct): Ditto.
866 (darwin_set_default_type_attributes): Ditto.
867 * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
868 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
869 Register ms_struct pragma.
870 * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
871 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
872 * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
873 darwin_set_default_type_attributes if TARGET_MACHO.
875 2006-04-27 Andrew MacLeod <amacleod@redhat.com>
877 PR tree-optimization/26854
878 * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
879 * doc/tree-ssa.texi: Update immuse iterator documentation.
880 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
881 * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
882 * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
883 first_safe_imm_use, next_safe_imm_use): Remove.
884 (end_imm_use_stmt_p): New. Check for end of immuse stmt traversal.
885 (end_imm_use_stmt_traverse): New. Terminate immuse stmt traversal.
886 (move_use_after_head): New. Helper function to sort immuses in a stmt.
887 (link_use_stmts_after): New. Link all immuses in a stmt consescutively.
888 (first_imm_use_stmt): New. Get first stmt in an immuse list.
889 (next_imm_use_stmt): New. Get next stmt in an immuse list.
890 (first_imm_use_on_stmt): New. Get first immuse on a stmt.
891 (end_imm_use_on_stmt_p): New. Check for end of immuses on a stmt.
892 (next_imm_use_on_stmt): New. Move to next immuse on a stmt.
893 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
894 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
895 (perfect_nestify): Use new iterator.
896 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
898 * tree-flow.h (struct immediate_use_iterator_d): Add comments.
899 (next_imm_name): New field in struct immediate_use_iterator_d.
900 (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
901 (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
902 FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
903 * tree-cfg.c (replace_uses_by): Use new iterator.
904 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
905 * tree-ssa-operands.c (correct_use_link): Remove.
906 (finalize_ssa_use_ops): No longer call correct_use_link.
908 2006-04-27 Stuart Hastings <stuart@apple.com>
910 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
911 * config/t-darwin (crt3.o): Use it.
912 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
913 'pmode', use Pmode instead of SImode for SYMBOL_REF.
914 * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
915 call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
916 call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
919 2006-04-27 Roger Sayle <roger@eyesopen.com>
921 * expmed.c (store_fixed_bit_field): If we're not optimizing for
922 size, force the intermediate into a new pseudo rather instead of
923 performing both a bitwise AND and a bitwise IOR in memory.
925 2006-04-27 Richard Guenther <rguenther@suse.de>
927 PR rtl-optimization/26685
928 * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
929 this one "max-flow-memory-locations".
931 2006-04-27 Richard Guenther <rguenther@suse.de>
933 PR tree-optimization/25148
934 * tree-vrp.c (compare_values): Remove code dealing with
935 comparisons against type min/max value. Honour overflow
936 and negative constants in code dealing with comparisons
937 of plus and minus expressions.
938 (value_inside_range): Use fold_binary with LE_EXPR and
939 GE_EXPR rather than compare_values.
941 2006-04-27 Dirk Mueller <dmueller@suse.de>
943 * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
946 2006-04-26 Kenneth Zadeck <zadeck@naturalbridge.com>
948 * basic-block.h (safe_insert_insn_on_edge): Removed.
949 * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
951 2006-04-26 David Edelsohn <edelsohn@gnu.org>
952 Paolo Bonzini <bonzini@gnu.org>
955 * combine.c (simplify_and_const_int_1): Use gen_int_mode.
956 (simplify_and_const_int): Same.
958 2006-04-26 Aldy Hernandez <aldyh@redhat.com>
960 * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
962 2006-04-26 Jakub Jelinek <jakub@redhat.com>
965 * cgraph.c (cgraph_varpool_finalize_decl): Don't call
966 cgraph_varpool_assemble_pending_decls if -fopenmp, unless
967 cgraph_global_info_ready.
970 * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
973 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
974 either decl or init is error_mark_node.
977 * tree-flow.h (struct omp_region): Add sched_kind.
978 * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
979 instead of extracting omp for data.
980 (expand_omp_for): Save extracted sched_kind.
982 2006-04-25 Roger Sayle <roger@eyesopen.com>
984 * expmed.c (store_bit_field): Also check whether the bitsize is
985 valid for the machine's "insv" instruction before moving the
986 target into a pseudo for use with the insv.
987 * config/i386/predicates.md (const8_operand): New predicate.
988 * config/i386/i386.md (extv, extzv, insv): Use the new
989 const8_operand predicate where appropriate.
991 2006-04-25 DJ Delorie <dj@redhat.com>
993 * doc/install.texi (Specific): Clarify that this is not a list of
994 supported hosts or targets.
996 2006-04-25 Richard Sandiford <richard@codesourcery.com>
998 PR rtl-optimization/26725
999 * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
1000 block's BB_DIRTY flag.
1002 2006-04-25 Geoffrey Keating <geoffk@apple.com>
1004 * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
1007 * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
1008 to print an integer.
1010 2006-04-25 David Edelsohn <edelsohn@gnu.org>
1012 * varasm.c (align_variable): New function.
1013 (get_block_for_decl): Apply align_variable to DECL before
1014 calculating section information.
1015 (assemble_variable): Split out alignment computation.
1017 2006-04-25 Andreas Krebbel <krebbel1@de.ibm.com>
1019 * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
1022 2006-04-25 Bernd Schmidt <bernd.schmidt@analog.com>
1024 * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
1025 MODE_PARTIAL_INT mode.
1026 * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
1027 * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
1029 (hard_regno_mode_ok): V2PDImode is ok for accumulators.
1030 * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
1032 * config/bfin/predicates.md (const01_operand, vec_shift_operand):
1034 * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
1036 (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
1037 MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
1038 MACFLAG_IH): Likewise.
1039 (movstricthi_1): Renamed from "*movstricthi".
1040 (load_accumulator, load_accumulator_pair, movsi_insv, insv,
1041 ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
1042 abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
1043 movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
1044 movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
1045 movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
1046 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
1047 sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
1048 addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
1049 mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
1050 ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
1051 flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
1052 flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
1053 flag_macv2hi_parts, flag_macv2hi_parts_acconly,
1054 flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
1056 * doc/rtl.texi (ss_ashift): Improve wording.
1058 2006-04-24 Geoffrey Keating <geoffk@apple.com>
1060 * dwarf2out.c (verify_marks_clear): New.
1061 (prune_unused_types): Call verify_marks_clear initially, not
1064 2006-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
1066 * rtl.def (SS_ASHIFT, SS_NEG): New codes.
1067 * doc/rtl.texi: Document them.
1068 * simplify-rtx.c (simplify_unary_operation,
1069 simplify_binary_operation_1): Don't abort when we see them.
1071 2006-04-24 Mark Mitchell <mark@codesourcery.com>
1074 2006-04-23 Mark Mitchell <mark@codesourcery.com>
1075 * configure.ac: Completely disregard languages that are not
1077 * configure: Regenerated.
1079 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
1080 Richard Guenther <rguenther@suse.de>
1082 PR tree-optimization/27236
1083 * tree-inline.c (copy_body_r): Make sure to copy
1084 TREE_THIS_VOLATILE flag.
1086 2006-04-24 Richard Guenther <rguenther@suse.de>
1089 * tree-complex.c (update_parameter_components): Don't handle
1090 unused parameters which have no default def.
1092 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
1093 Richard Guenther <rguenther@suse.de>
1095 PR tree-optimization/27218
1096 * tree-inline.c (expand_call_inline): Strip useless type
1097 conversions for the return slot address.
1099 2006-04-24 Richard Guenther <rguenther@suse.de>
1101 * cfgloop.h (struct loops): Remove unused field array. Reorder
1103 (LOOP_PREFETCH): Remove.
1105 2006-04-24 Richard Guenther <rguenther@suse.de>
1107 PR tree-optimization/22525
1108 * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
1109 variable, adjust types of generated expressions.
1111 2006-04-23 H.J. Lu <hongjiu.lu@intel.com>
1113 * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
1114 (tree-vect-patterns.o): Likewise.
1116 (cselib.o): Likewise.
1117 (loop-doloop.o): Likewise.
1118 (regclass.o): Likewise.
1119 (reload1.o): Likewise.
1120 (explow.o): Replace target.h with $(TARGET_H).
1121 (ipa-prop.o): Likewise.
1122 (ipa-cp.o): Likewise.
1123 (ipa-inline.o): Likewise.
1124 (reorg.o): Likewise.
1125 (reg-stack.o): Likewise.
1127 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
1129 * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
1131 2006-04-23 Mark Mitchell <mark@codesourcery.com>
1133 * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
1135 * configure.ac: Completely disregard languages that are not
1137 * configure: Regenerated.
1140 * c-common.h (c_build_bitfield_integer_type): Declare.
1141 * c-decl.c (c_build_bitfield_integer_type): Move to ...
1142 * c-common.c (c_build_bitfield_integer_type): ... here.
1144 2006-04-23 Roger Sayle <roger@eyesopen.com>
1147 * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
1148 a SImode SUBREG of a floating point register after no_new_pseudos.
1150 2006-04-23 Roger Sayle <roger@eyesopen.com>
1152 * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
1153 identify potentially eliminable registers to additionally catch
1154 VIRTUAL_INCOMING_ARGS_REGNUM.
1155 (addsi3): Update the conditions on when to use addsi_small_int.
1157 2006-04-23 Roger Sayle <roger@eyesopen.com>
1160 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
1161 STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
1162 rtx to stack_pointer_rtx or frame_pointer_rtx directly.
1164 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
1166 * fold-const.c (range_predecessor): Use operand_equal_p
1167 as the predicate for equality.
1168 (range_successor): Likewise.
1170 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
1173 * config/soft-fp/op-common.h: Fix a typo.
1175 2006-04-22 Frank Ch. Eigler <fche@redhat.com>
1178 * common.opt (flag_mudflap_threads): Overload flag_mudflap.
1179 * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
1181 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
1183 * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
1185 * doc/tm.texi: Fix a typo.
1187 2006-04-21 Geoffrey Keating <geoffk@apple.com>
1189 * dwarf2out.c (struct die_struct): Document that die_sib makes
1190 a circular linked list.
1191 (FOR_EACH_CHILD): New.
1192 (reverse_die_lists): Delete.
1193 (reverse_all_dies): Delete.
1194 (add_dwarf_attr): Correct documentation.
1195 (remove_child_with_prev): New.
1196 (remove_child_TAG): Update for change to die_struct, use
1197 remove_child_with_prev.
1198 (add_child_die): Update for change to die_struct.
1199 (splice_child_die): Use remove_child_with_prev and add_child_die.
1200 (print_die): Use FOR_EACH_CHILD.
1201 (die_checksum): Likewise.
1202 (assign_symbol_names): Likewise.
1203 (output_location_lists): Likewise.
1204 (build_abbrev_table): Likewise.
1205 (calc_die_sizes): Likewise.
1206 (mark_dies): Likewise.
1207 (unmark_dies): Likewise.
1208 (unmark_all_dies): Likewise.
1209 (output_die): Likewise.
1210 (prune_unused_types_mark): Likewise.
1211 (prune_unused_types_walk): Likewise.
1212 (same_die_p): Update for change to die_struct.
1213 (break_out_includes): Likewise.
1214 (prune_unused_types_prune): Likewise.
1215 (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
1216 (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
1218 (dwarf2out_finish): Don't call reverse_all_dies.
1220 2006-04-21 Eric Christopher <echristo@apple.com>
1222 * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
1223 in comments and function names.
1225 2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1228 * c-typeck.c (digest_init): Robustify.
1230 * c-typeck.c (pop_init_level): Simplify.
1232 2006-04-21 Steve Ellcey <sje@cup.hp.com>
1234 * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
1236 2006-04-21 Paul Brook <paul@codesourcery.com>
1238 * config/arm/arm.c (arm_override_options): Error on iWMMXt and
1239 hardware floating point.
1241 2006-04-21 David Edelsohn <edelsohn@gnu.org>
1243 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
1246 2006-04-21 Nick Clifton <nickc@redhat.com>
1248 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
1251 2006-04-21 Alan Modra <amodra@bigpond.net.au>
1254 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
1255 C++ lang type in traceback table for Objective-C++.
1257 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
1259 2006-04-20 H.J. Lu <hongjiu.lu@intel.com>
1261 * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
1263 2006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1266 * tree-mudflap.c (mudflap_finish_file): Skip function when there
1267 were errors. Remove check for erroneous objects.
1269 2006-04-20 Jeff Law <law@redhat.com>
1271 PR tree-optimization/26854
1272 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
1273 checking for zero or one use.
1274 * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
1275 * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
1276 * tree-ssa-reassoc.c (negate_value): Similarly.
1277 (reassociate_bb): Similarly.
1279 2006-04-20 Jakub Jelinek <jakub@redhat.com>
1281 * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
1282 TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
1283 than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
1285 2006-04-20 Alan Modra <amodra@bigpond.net.au>
1287 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
1288 fp regs if the last fp arg doesn't fit in regs.
1290 2006-04-20 Kaz Kojima <kkojima@gcc.gnu.org>
1293 * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
1294 that the last insn has the REG_INC note.
1296 2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
1297 Nathan Sidwell <nathan@codesourcery.com>
1300 * stor-layout.c (update_alignment_for_field): Do not align
1302 (place_union_field): Place union field at the start of the union.
1303 (place_field): Move ERROR_MARK check later, and use the current
1304 allocation position to maintain monotonicity.
1306 2006-04-19 Zdenek Dvorak <dvorakz@suse.cz>
1308 * dominance.c: Include timevar.h.
1309 (calculate_dominance_info): Use TV_DOMINANCE.
1310 * timevar.def (TV_DOMINANCE): New timevar.
1311 * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
1313 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
1315 PR rtl-optimization/14261
1316 * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
1317 move would be an INSV insn.
1318 (noce_process_if_block): Don't optimize if the destination is a
1319 ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
1321 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
1323 * config/s390/s390.md: Add comments with the instructions emitted
1324 by an insn pattern if macros are used.
1326 2006-04-19 Alan Modra <amodra@bigpond.net.au>
1328 PR rtl-optimization/26026
1329 * fold-const.c (fold_binary): Optimize div and mod where the divisor
1330 is a known power of two shifted left a variable amount.
1332 2006-04-18 Geoffrey Keating <geoffk@apple.com>
1334 * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
1335 to hash table twice when the debug_str section has SECTION_MERGE.
1337 2006-04-18 Joseph S. Myers <joseph@codesourcery.com>
1339 * config/soft-fp: New directory. From glibc.
1340 * config/soft-fp/t-softfp: New.
1341 * config/soft-fp/README: New.
1342 * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
1343 * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
1344 (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
1345 (LIBGCC_DEPS): Add $(SFP_MACHINE).
1346 * config.gcc: Use rs6000/t-fprules-fpbit or
1347 rs6000/t-fprules-softfp and soft-fp/t-softfp together with
1349 * config/rs6000/sfp-machine.h: New. Based on glibc.
1350 * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
1352 * config/rs6000/t-fprules: Remove fp-bit rules.
1353 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
1354 * config/rs6000/t-linux64: Likewise. Remove duplicates from
1355 LIB2FUNCS_EXTRA. Remove fp-bit rules.
1356 (softfp_wrap_start, softfp_wrap_end): New.
1358 2006-04-18 DJ Delorie <dj@redhat.com>
1360 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
1362 2006-04-18 Devang Patel <dpatel@apple.com>
1364 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
1366 2006-04-18 Nick Clifton <nickc@redhat.com>
1368 * config/sh/t-symbian: Add rule to build sh-c.o
1369 * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
1370 of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
1371 (sh_symbian_encode_section_info): Likewise.
1373 2006-04-18 Andreas Krebbel <krebbel1@de.ibm.com>
1375 * builtins.c (expand_builtin_strcmp): Cover label definition of
1376 do_libcall with HAVE_cmpstrnsi.
1378 2006-04-18 Kazu Hirata <kazu@codesourcery.com>
1380 * function.c (temp_slots_at_level, max_slot_level): Use VEC
1382 * function.h (temp_slot_p): New.
1383 (function): Change the type of x_used_temp_slots to
1384 VEC(temp_slot_p,gc) *.
1386 2006-04-18 Nick Clifton <nickc@redhat.com>
1388 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
1389 flag_strength_reduce.
1391 * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
1393 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
1397 Partial revert of revision 112637
1398 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
1399 Dale Johannesen <dalej@apple.com>
1402 * regclass.c (struct reg_pref): Update documentation.
1403 (regclass): Set prefclass to NO_REGS if memory is the best option.
1404 (record_reg_classes): Cope with a prefclass set to NO_REGS.
1406 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
1408 PR tree-optimization/26821
1409 * tree-ssa-math-opts.c (get_constant_one): New.
1410 (insert_reciprocals): Use it.
1412 2006-04-17 Geoffrey Keating <geoffk@apple.com>
1414 * dwarf2out.c (free_AT): Delete.
1415 (remove_AT): Update string ref counts.
1416 (remove_child_TAG): Don't call free_die.
1418 (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
1419 or DW_TAG_GNU_EINCL.
1420 (prune_unused_types_walk_attribs): Reset string refcounts.
1421 (prune_unused_types_update_strings): New.
1422 (prune_unused_types_prune): Don't make unnecessary stores. Don't
1423 call free_die. Do call prune_unused_types_update_strings.
1424 (prune_unused_types): Empty debug_str_hash.
1426 2006-04-17 Roger Sayle <roger@eyesopen.com>
1428 * expr.c (expand_assignment): Optimize away no-op moves where the
1429 source and destination are equal and have no side-effects.
1431 2006-04-17 Richard Guenther <rguenther@suse.de>
1434 * reload.c (push_reload): Guard calls to get_secondary_mem
1437 2006-04-16 Kazu Hirata <kazu@codesourcery.com>
1439 * alias.c (reg_base_value, old_reg_base_value): Change the
1440 type to VEC(rtx,gc) *.
1441 (REG_BASE_VALUE, find_base_value, record_set,
1442 init_alias_analysis): Use VEC instead of VARRAY.
1444 * alias.c (alias_sets): Change the type to
1445 VEC(alias_set_entry,gc) *.
1446 (get_alias_set_entry, new_alias_set, record_alias_subset): Use
1447 VEC instead of VARRAY.
1448 (last_alias_set): Remove.
1450 * cgraph.h (cgraph_edge_p): New.
1451 Update the prototype of cgraph_function_versioning.
1452 * cgraphunit.c (cgraph_copy_node_for_versioning,
1453 cgraph_function_versioning): Use VEC instead of VARRAY.
1454 * ipa-cp.c (ipcp_insert_stage): Likewise.
1456 2006-04-16 Roger Sayle <roger@eyesopen.com>
1459 * fold-const.c (fold_ternary): When converting "A ? B : C" into either
1460 "A op B" or "A op C", we may need to convert A to the type of B and C.
1462 2006-04-16 Adam Nemet <anemet@caviumnetworks.com>
1464 * target.h (struct gcc_target): Add mode_rep_extended.
1465 * rtlanal.c (num_sign_bit_copies_in_rep): New global.
1466 (init_num_sign_bit_copies_in_rep): Initialize it using
1468 (truncate_to_mode): Use it.
1469 (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
1470 * targhooks.h (default_mode_rep_extended): Declare it.
1471 * targhooks.c (default_mode_rep_extended): Define it.
1472 * target-def.h (TARGET_MODE_REP_EXTENDED): New macro. Default to
1473 default_mode_rep_extended.
1474 (TARGET_INITIALIZER): Include it.
1475 * doc/tm.texi (Misc): Document it.
1476 * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
1477 (mips_truncated_to_mode): New function.
1479 2006-04-16 Roger Sayle <roger@eyesopen.com>
1482 * expr.c (compress_float_constant): Copy the narrow constant into
1483 a new pseudo before extending it to its final width.
1485 2006-04-16 Roger Sayle <roger@eyesopen.com>
1486 Andrew Pinski <pinskia@gcc.gnu.org>
1487 Dale Johannesen <dalej@apple.com>
1490 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
1491 special case code to implement V8HImode and V16QImode with SSE2.
1493 2006-04-15 Roger Sayle <roger@eyesopen.com>
1495 * config/i386/i386.c (ix86_va_start): Ensure all integer constant
1496 trees are constructed with a suitable tree type.
1498 2006-04-15 Roger Sayle <roger@eyesopen.com>
1500 * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
1501 (integer_onep): Likewise.
1502 (integer_all_onesp): Likewise.
1503 (integer_pow2p): Likewise.
1504 (integer_nonzerop): Likewise.
1505 (real_zerop): Likewise.
1506 (real_onep): Likewise.
1507 (real_twop): Likewise.
1508 (real_minus_onep): Likewise.
1509 (int_size_in_bytes): Likewise.
1510 (host_integerp): Likewise.
1512 2006-04-15 Kazu Hirata <kazu@codesourcery.com>
1514 * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
1515 jump.c, mips-tfile.c, omp-low.c, sched-int.h,
1516 tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
1518 * tree-ssa-structalias.h (alias_info): Remove num_references.
1520 2006-04-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1522 * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
1523 (output_bvb patterns): Likewise.
1524 * pa.c (output_bb): Use 'bb' insn for long branch case.
1525 (output_bvb): Likewise use '{bvb|bb}' for long branch case.
1526 (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
1527 1. Correct length operand for alternatives 1 and 2.
1528 (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
1529 1, 2 and 3. Correct length operand for alternatives 1, 2 and 3.
1531 2006-04-14 Roger Sayle <roger@eyesopen.com>
1533 * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
1534 is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
1535 were accidentally reverted by r112959.
1537 2006-04-15 Jakub Jelinek <jakub@redhat.com>
1540 * except.h (eh_region_outermost): New prototype.
1541 * except.c (eh_region_outermost): New function.
1542 * tree-cfg.c (find_outermost_region_in_block): Use it.
1544 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
1546 * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
1548 * reload1.c (reg_equiv_memory_loc_varray): Rename to
1549 reg_equiv_memory_loc_vec. Change the type to VEC(rtx,gc) *.
1550 (init_reload, reload): Use VEC instead of VARRAY.
1551 * reload.h: Update the prototype for
1552 reg_equiv_memory_loc_varray.
1554 2006-04-14 Alexey Starovoytov <alexey.starovoytov@sun.com>
1555 Eric Botcazou <ebotcazou@libertysurf.fr>
1557 * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
1560 2005-04-13 Uros Bizjak <uros@kss-loka.si>
1563 * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
1564 to expand fallback builtin function call.
1566 2006-04-14 Alan Modra <amodra@bigpond.net.au>
1569 * builtins.c: (expand_builtin_memset): Stabilize args before expansion
1570 and emit libcall here in case the builtin fails.
1571 (expand_builtin_strcmp): Always emit the libcall here on failure.
1573 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
1575 * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
1576 * flow.c (reg_n_info): Change the type to
1577 VEC(reg_info_p,heap) *.
1578 * regclass.c (allocate_reg_info, free_reg_info): Use VEC
1580 * regs.h (reg_info_p): New.
1581 (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
1582 REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
1583 REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
1586 2006-04-13 Eric Botcazou <ebotcazou@adacore.com>
1588 * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
1590 * params.h (MAX_SCHED_READY_INSNS): New macro.
1591 * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
1592 past MAX_SCHED_READY_INSNS during the first scheduling pass.
1593 (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
1594 the ready list for 1 cycle during the first scheduling pass.
1595 * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
1597 2006-04-13 Richard Henderson <rth@redhat.com>
1600 * gimple-low.c (lower_omp_directive): Remove dead code.
1601 (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
1602 * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
1603 * omp-low.c (struct omp_region): Move to tree-flow.h.
1604 (root_omp_region): Export.
1605 (omp_regions, lookup_omp_region): Remove.
1606 (determine_parallel_type): Update for struct omp_region changes.
1607 (dump_omp_region): Dump regions with block numbers.
1608 (new_omp_region): Take type and block instead of stmt; malloc
1610 (free_omp_region_1, free_omp_regions): New.
1611 (expand_parallel_call): Take entry_stmt as argument; update for
1612 changes to omp_region.
1613 (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
1614 (remove_exit_barriers): New.
1615 (expand_omp_parallel): Update for struct omp_region changes.
1616 (expand_omp_synch): Likewise.
1617 (expand_omp): Likewise.
1618 (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
1619 (expand_omp_for_static_chunk): Likewise.
1620 (expand_omp_for): Likewise.
1621 (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
1622 (expand_omp_sections): Similarly, with GOMP_sections_end.
1623 (expand_omp_single): New.
1624 (build_omp_regions_1): Update for OMP_CONTINUE.
1625 (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
1626 (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
1627 OMP_SECTIONS_SECTIONS.
1628 (lower_omp_single_simple): Don't emit barrier here.
1629 (lower_omp_single_copy): Likewise.
1630 (lower_omp_single): Fix bindings, and lower to straightline now.
1631 (lower_omp_master, lower_omp_ordered): Likewise.
1632 (lower_omp_critical): Likewise.
1633 (lower_omp_for): Likewise. Emit OMP_CONTINUE.
1634 * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
1635 omp edges, free it afterward.
1636 (make_omp_sections_edges): Remove.
1637 (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
1638 (move_stmt_r): Handle OMP_CONTINUE.
1639 * tree-flow.h (struct omp_region): Move from omp-low.c. Switch
1640 statement pointers to basic blocks. Add type member.
1641 (root_omp_region, new_omp_region, free_omp_regions): Declare.
1642 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
1643 * tree-inline.c (estimate_num_insns_1): Likewise.
1644 * tree-pretty-print.c (dump_generic_node): Likewise.
1645 * tree-ssa-operands.c (get_expr_operands): Likewise.
1646 * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
1647 (OMP_RETURN): Rename from OMP_RETURN_EXPR.
1648 (OMP_CONTINUE): New.
1649 * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
1650 (OMP_SECTIONS_SECTIONS): Remove.
1651 (OMP_SECTION_LAST): New.
1652 (OMP_RETURN_NOWAIT): New.
1654 2006-04-13 Roger Sayle <roger@eyesopen.com>
1656 * fold-const.c (native_encode_vector, native_interpret_real):
1657 Correct obvious mistakes in the previous check-in.
1659 2006-04-13 Roger Sayle <roger@eyesopen.com>
1661 * fold-const.c (native_encode_expr): New function to encode
1662 the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
1663 or VECTOR_CST into a specified buffer.
1664 (native_encode_int): New function.
1665 (native_encode_real): New function.
1666 (native_encode_complex): New function.
1667 (native_encode_vector): New function.
1668 (native_interpret_expr): Inverse of native_encode_expr to convert
1669 a target representation into an INTEGER_CST, REAL_CST etc...
1670 (native_interpret_int): New function.
1671 (native_interpret_real): New function.
1672 (native_interpret_complex): New function.
1673 (native_interpret_vector): New function.
1674 (fold_view_convert_expr): New function to constant fold/evaluate
1675 a VIEW_CONVERT_EXPR of a suitable constant expression.
1676 (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
1677 Change call of build1 to fold_build1 when constructing a
1680 2006-04-13 Paolo Bonzini <bonzini@gnu.org>
1681 Ulrich Weigand <uweigand@de.ibm.com>
1684 * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
1687 2006-04-13 Alan Modra <amodra@bigpond.net.au>
1690 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
1691 optimize to lo_sum for DFmode if !TARGET_FPRS.
1693 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
1695 * tree-ssa-alias.c (set_initial_properties, init_alias_info,
1696 delete_alias_info, compute_flow_sensitive_aliasing,
1697 group_aliases): Use VEC instead of VARRAY.
1698 * tree-ssa-structalias.c (update_alias_info): Likewise.
1699 * tree-ssa-structalias.h (alias_info): Change the type of
1700 processed_ptrs to VEC(tree,heap) *.
1702 2006-04-12 J"orn Rennecke <joern.rennecke@st.com>
1705 * config/sh/lib1funcs.h: New file, broken out of:
1706 * config/sh/lib1funcs.asm.
1707 * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
1709 * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
1710 * config/sh/lib1funcs-Os-4-200.asm: New file.
1711 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
1712 * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
1713 (EXTRA_MULTILIB_PARTS): Include it.
1714 ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
1715 ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
1716 * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
1717 * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
1720 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
1722 * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
1723 * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
1724 tpa_compact, root_var_init, type_var_init): Use VEC instead of
1726 * tree-ssa-live.h: Include vecprim.h.
1727 (tree_partition_associator_d): Change the type of
1728 first_partition to VEC(int,heap) *.
1729 (tpa_first_partition): Use VEC instead of VARRAY.
1731 * Makefile.in (GTFILES): Move functions.h after tree.h.
1732 * function.c (reset_block_changes, record_block_change,
1733 check_block_change, free_block_changes): Use VEC instead of
1735 * function.h (function): Change the type of
1736 ib_boundaries_block to VEC(tree,gc) *.
1737 * tree-inline.c (copy_cfg_body): Initialize
1738 ib_boundaries_block to NULL instead of (varray_type) 0.
1740 2006-04-12 Roger Sayle <roger@eyesopen.com>
1742 * expr.c (emit_group_store): Correct operand order in call to
1743 subreg_lowpart_offset. Always create paradoxical SUBREGs with
1744 a SUBREG_BYTE of zero.
1746 2006-04-12 Richard Guenther <rguenther@suse.de>
1748 * profile.c (compute_branch_probabilities): Remove code
1749 encapsulated in !ir_type (), which are remanents of the
1750 removed RTL profiling code.
1751 * rtl-profile.c: Remove.
1753 2006-04-12 Alan Modra <amodra@bigpond.net.au>
1755 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
1756 magic NULL_RTX comment.
1757 (function_arg): Store entire fp arg to mem if any part should go
1759 (rs6000_arg_partial_bytes): Adjust for above change.
1761 2006-04-11 Roger Sayle <roger@eyesopen.com>
1763 * dwarf2out.c (output_call_frame_info): Create debug_frame_section
1764 if it hasn't been initialized by dwarf2out_init.
1766 2006-04-11 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
1768 * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
1769 symbolic constants in branch patterns.
1771 2006-04-11 Roger Sayle <roger@eyesopen.com>
1773 * caller-save.c: #include "addresses.h" after #include "tm_p.h".
1775 2006-04-11 Richard Sandiford <richard@codesourcery.com>
1777 PR rtl-optimization/27073
1778 * gcse.c (try_replace_reg): Revert last change. Continue to search
1779 for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
1782 2006-04-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1784 * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
1785 aggregate types other than record and union types.
1786 (function_arg): Likewise.
1787 (function_arg_pass_by_reference): In 64-bit mode, return 0 for
1789 (function_value): In 64-bit mode, return objects that require it
1792 2006-04-11 Roger Sayle <roger@eyesopen.com>
1794 * dwarf2out.c (premark_used_types): Remove problematic prototype.
1796 2006-04-11 Jakub Jelinek <jakub@redhat.com>
1798 * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
1800 2006-04-03 Jeff Law <law@redhat.com>
1803 * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
1804 alias information too.
1806 2006-04-10 Mike Frysinger <vapier@gentoo.org>
1808 * gcc/Makefile.in (gcc-cross): Add $(exeext) to target name.
1810 2006-04-10 Aldy Hernandez <aldyh@redhat.com>
1813 * dwarf2out.c (struct die_struct): Add die_perennial_p field.
1814 (premark_used_types_helper): New.
1815 (premark_used_types): New.
1816 (gen_subprogram_die): Call premark_used_types.
1817 (prune_unused_types_walk): Do not prune perennial dies.
1818 * function.c (used_types_insert): New.
1819 * function.h (struct function): Add used_types_hash field.
1820 (used_types_insert): Add prototype.
1821 * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
1822 * c-parser.c (c_parser_cast_expression): Save casted types in used
1825 2006-04-11 Mark Mitchell <mark@codesourcery.com>
1828 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
1829 rs6000_explicit_options.float_gprs.
1831 2006-04-10 Roger Sayle <roger@eyesopen.com>
1833 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
1834 from ix86_expand_vector_init_low_nonzero. Take an additional
1835 one_var argument indicating which element is non-zero. Support
1836 one_var != 0 for V4SFmode and V4SImode by permuting the result.
1837 (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
1838 with one_var instead of ix86_expand_vector_init_low_nonzero.
1840 2006-04-10 Kazu Hirata <kazu@codesourcery.com>
1842 * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
1843 tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
1844 global.o, cfglayout.o, lambda-code.o, reg-stack.o,
1845 build/genextract.o): Depend on vecprim.h.
1846 * cfglayout.c, df-problems.c, function.c, genextract.c,
1847 global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
1848 tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
1852 2006-04-10 Geoffrey Keating <geoffk@apple.com>
1854 * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
1855 Declare VECs of this type.
1856 (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
1857 (remove_children): Delete.
1858 (add_dwarf_attr): Use VEC routines.
1859 (add_AT_flag): Update for changes to add_dwarf_attr.
1860 (add_AT_int): Likewise.
1861 (add_AT_unsigned): Likewise.
1862 (add_AT_long_long): Likewise.
1863 (add_AT_vec): Likewise.
1864 (add_AT_string): Likewise.
1865 (add_AT_die_ref): Likewise.
1866 (add_AT_fde_ref): Likewise.
1867 (add_AT_loc): Likewise.
1868 (add_AT_loc_list): Likewise.
1869 (add_AT_addr): Likewise.
1870 (add_AT_lbl_id): Likewise.
1871 (add_AT_lineptr): Likewise.
1872 (add_AT_macptr): Likewise.
1873 (add_AT_offset): Likewise.
1874 (add_AT_range_list): Likewise.
1875 (get_AT): Use VEC_iterate.
1876 (remove_AT): Use VEC_ordered_remove.
1877 (free_die): Fold remove_children into here; have it use VEC_iterate.
1878 (print_die): Use VEC_iterate on attrs.
1879 (reverse_die_lists): Don't reverse attr lists.
1880 (die_checksum): Use VEC_iterate on attrs.
1881 (same_die_p): Likewise.
1882 (output_location_lists): Likewise.
1883 (build_abbrev_table): Likewise.
1884 (size_of_die): Likewise.
1885 (unmark_all_dies): Likewise.
1886 (output_abbrev_section): Likewise.
1887 (output_die): Likewise.
1888 (prune_unused_types_walk_attribs): Likewise.
1890 2006-04-10 Eric Botcazou <ebotcazou@libertysurf.fr>
1892 * doc/install.texi (*-*-solaris2*): Point to the configure page.
1894 2006-04-10 Jakub Jelinek <jakub@redhat.com>
1897 * dwarf2out.c (is_symbol_die): Return true also for namespaces.
1899 2006-04-09 Roger Sayle <roger@eyesopen.com>
1901 * expr.c (store_constructor): Don't bother clearing target if
1902 we're about to assign a vector to it using vec_init_optab.
1904 2006-04-10 Daniel Berlin <dberlin@dberlin.org>
1906 * tree-ssa-alias.c (lhs_may_store_to): New function.
1907 (recalculate_used_alone): Handle LHS of calls.
1909 2006-04-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1913 * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
1914 * pa64-hpux.h (LIB_SPEC): Correct typo. Don't append milli.a.
1915 (LINK_GCC_C_SEQUENCE_SPEC): Define. Append milli.a here.
1916 (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
1917 (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
1918 (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
1919 section. Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
1920 stubs. Add ".align 8" directives before all ".dword" directives.
1921 (GTHREAD_USE_WEAK): Revise comment.
1922 (TARGET_ATTRIBUTE_WEAK): Define.
1923 * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
1924 dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
1925 * stublib.c: New file.
1930 * pa.md (cbranch patterns): Revise arguments used in calls to
1931 output_cbranch, output_bb and output_bvd. Add long branch length
1933 (fbranch patterns): Handle long branches.
1934 (jump): Revise length check. Revise arguments for output_lbranch call.
1935 Add long branch length attributes.
1936 (decrement_and_branch_until_zero): Add long branch length attributes.
1937 (output_movb, output_parallel_addb and output_parallel_movb patterns):
1938 Likewise. Revise arguments for output_parallel_addb and
1939 output_parallel_movb calls.
1940 * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
1941 output_parallel_movb and output_parallel_addb): Update prototypes.
1942 * pa.c (output_cbranch): Revise arguments. Correct handling of
1943 nullification in long branches.
1944 (output_lbranch): Add new argument to control extraction of delay
1946 (output_bb): Handle long branches.
1947 (output_bvb, output_dbra, output_movb, output_parallel_movb,
1948 output_parallel_addb): Likewise.
1950 2006-04-09 Richard Sandiford <richard@codesourcery.com>
1952 PR rtl-optimization/27073
1953 * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
1956 2006-04-08 Daniel Berlin <dberlin@dberlin.org>
1958 * tree.h (tree_memory_tag): Add old_used_alone.
1959 (SMT_OLD_USED_ALONE): New macro.
1960 * tree-ssa-alias.c (recalculate_used_alone): Stop
1961 marking things for renaming unnecessarily.
1963 2006-04-08 Kazu Hirata <kazu@codesourcery.com>
1965 * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
1966 config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
1967 config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
1968 haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
1969 sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
1970 tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
1971 tree-vect-patterns.c, tree-vrp.c: Fix comment typos. Follow
1972 spelling convensions.
1973 * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
1974 doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
1975 typos. Follow spelling conventions.
1977 2006-04-07 DJ Delorie <dj@redhat.com>
1979 * config/m32c/m32c.c (m32c_function_arg): Structures are always
1980 passed on the stack.
1981 (m32c_init_cumulative_args): When a function returns a structure,
1982 always pass the pointer to that return area on the stack.
1983 (m32c_function_arg_advance): Don't increment the parameter number
1984 if we're processing the returned structure pointer.
1985 (pushm_info): Reverse order of registers.
1987 2006-04-07 Sebastian Pop <pop@cri.ensmp.fr>
1989 * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
1990 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
1991 number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
1992 estimate_numbers_of_iterations_loop): Use build_int_cst instead of
1994 * tree-chrec.c (chrec_fold_multiply_poly_poly,
1995 chrec_fold_multiply): Same.
1996 * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
1997 force_expr_to_var_cost): Same.
1998 * tree-mudflap.c (mf_xform_derefs_1): Same.
1999 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
2001 2006-04-07 David Edelsohn <edelsohn@gnu.org>
2003 * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
2004 treat CONST_DOUBLE as INTVAL. and64_2_operands require an extra
2007 2006-04-07 Jan Hubicka <jh@suse.cz>
2009 * ipa-inline.c (cgraph_early_inlining): Collect garbage.
2011 2006-04-07 Richard Guenther <rguenther@suse.de>
2013 PR tree-optimization/26135
2014 * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
2015 loads for store copy-prop.
2016 (copy_prop_visit_stmt): Likewise.
2018 2006-04-05 Robert Millan <robertmh@gnu.org>
2020 * gcc/config/i386/linux.h: Add a comment to mark macros that are
2021 being overriden in config/k*bsd-gnu.h.
2022 * gcc/config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
2024 * gcc/config/knetbsd-gnu.h: Ditto.
2026 2006-04-06 Jan Hubicka <jh@suse.cz>
2030 * coverage.c (coverage_checksum_string): Reorganize loop to not read
2033 2006-04-06 Mike Stump <mrs@apple.com>
2035 * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
2036 for HAVE_nonlocal_goto to be consistent.
2037 (expand_builtin_nonlocal_goto): Likewise.
2038 (expand_builtin_strcmp): Use #ifdef instead of #if
2039 for HAVE_cmpstrnsi to be consistent.
2041 2006-04-05 DJ Delorie <dj@redhat.com>
2043 * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
2046 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
2048 * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
2049 got-relative addressing for anything but SImode.
2051 * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
2052 even if the calling function doesn't modify them.
2054 2006-04-05 Richard Guenther <rguenther@suse.de>
2056 PR tree-optimization/26919
2057 * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
2058 to cgraph_estimate_size_after_inlining.
2060 2006-04-05 Alan Modra <amodra@bigpond.net.au>
2062 * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
2064 2006-04-05 Sebastian Pop <pop@cri.ensmp.fr>
2066 PR tree-optimization/26996
2067 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
2068 VECTOR_TYPE variables.
2070 2006-04-05 Richard Guenther <rguenther@suse.de>
2072 PR tree-optimization/26763
2073 * fold-const.c (fold_comparison): Move folding of
2074 PTR + CST CMP PTR + CST ...
2075 (fold_binary): ... here. Fold only for EQ_EXPR and NE_EXPR.
2077 2006-04-05 Gerald Pfeifer <gerald@pfeifer.com>
2079 * doc/install.texi (Prerequisites): Refine some wording on
2080 bootstrapping and ksh.
2081 Move the version numbers of DejaGnu here from the testing section
2082 and fix casing of names.
2083 Fix markup and clarify wording for autogen requirements.
2084 Refer to GCJ instead of just java.
2085 Refer to SVN instead of CVS.
2086 Describe diffutils as useful instead of necessary.
2087 (Downloading the source): Refer to SVN instead of CVS.
2088 Adjust a link to our web site accordingly.
2089 (Configuration): Fix casing of Bison.
2090 (Building): Refer to SVN instead of CVS.
2091 Fix a sentence on the use of Bison and remove duplicate (and
2092 incorrect) version number of Bison requirement.
2093 Remove one redundant list of packages needed for building.
2094 (Specific): Avoid reference to CVS.
2096 2006-04-04 Eric Christopher <echristo@apple.com>
2098 * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
2099 (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
2100 (rs6000_handle_struct_attribute): New.
2101 (rs6000_ms_bitfield_layout_p): Ditto.
2103 2006-04-04 Geoffrey Keating <geoffk@apple.com>
2105 * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
2106 NULL for dso parameter to atexit_common.
2108 2006-04-04 Eric Christopher <echristo@apple.com>
2110 * config/i386/i386.c (machopic_output_stub): Output \t
2111 between instructions and operands.
2113 2006-04-04 David Edelsohn <edelsohn@gnu.org>
2115 * config/rs6000/rs6000.c (num_insns_constant_wide): Change
2116 satisfies_constraint_[IL] to explicit tests on value.
2118 2006-04-04 Sebastian Pop <pop@cri.ensmp.fr>
2120 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
2121 set_nb_iterations_in_loop): Use build_int_cst instead of
2123 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
2124 build_int_cst instead of convert.
2126 2006-04-04 Carlos O'Donell <carlos@codesourcery.com>
2128 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
2129 new value 2 for incoming.
2130 * function.c (expand_function_start): Call struct_value_rtx
2132 * config/sparc/sparc.md: Comment updated_return.
2133 * config/sparc/sparc.opt: Add -mstd-struct-return option.
2134 * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
2135 struct return if sparc_std_struct_return and incoming is 2.
2136 (print_operand): Do not adjust return if
2137 sparc_std_struct_return.
2139 2006-04-04 Roger Sayle <roger@eyesopen.com>
2141 * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
2142 convert in the middle-end.
2143 * expr.c (store_expr, store_constructor, get_inner_reference,
2144 expand_expr_real_1, string_constant, try_casesi, try_tablejump):
2146 * tree.c (build_range_type): Likewise.
2148 2006-04-04 Tom Tromey <tromey@redhat.com>
2150 * doc/install.texi (Prerequisites): Mention jar.
2152 2006-04-04 Daniel Berlin <dberlin@dberlin.org>
2154 * doc/tree-ssa.texi (Preserving the virtual ssa form): New
2157 2006-04-04 Matthias Klose <doko@debian.org>
2159 * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
2160 * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
2163 2006-04-03 Geoffrey Keating <geoffk@apple.com>
2165 * doc/extend.texi (Function Attributes): Rewrite visibility
2166 attribute documentation.
2167 * doc/invoke.texi (C++ Dialect Options): Rewrite
2168 -fvisibility-inlines-hidden documentation to describe something
2169 entirely different, although in practise compatible.
2170 (Code Gen Options): Warn about system headers in -fvisibiltity=
2173 * doc/extend.texi (Other Builtins): Document that
2174 __builtin_nan is a compile-time constant only when its argument
2177 2006-04-03 Adam Nemet <anemet@caviumnetworks.com>
2179 * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
2180 trying to remove TRUNCATE check if all bits outside the new mode
2181 are identical to the sign bit.
2183 2006-04-03 Jeff Law <law@redhat.com>
2185 * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
2186 and operand scanning in some common cases.
2188 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
2189 Dale Johannesen <dalej@apple.com>
2192 * regclass.c (struct reg_pref): Update documentation.
2193 (regclass): Set prefclass to NO_REGS if memory is the best option.
2194 (record_reg_classes): Cope with a prefclass set to NO_REGS.
2195 * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
2196 into account. For non-registers, equate an empty preferred
2197 reload class to a `!' in the constraint; move the if clause to
2198 do so after those that reject the insn.
2199 (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
2201 (find_dummy_reload): Likewise.
2202 * doc/tm.texi (Register Classes): Document what it means
2203 if PREFERRED_*_RELOAD_CLASS return NO_REGS.
2204 * config/i386/i386.c (ix86_preferred_reload_class): Force
2205 using SSE registers (and return NO_REGS for floating-point
2206 constants) if math is done with SSE.
2207 (ix86_preferred_output_reload_class): New.
2208 * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
2209 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
2210 * config/i386/i386.md: Remove # register preferences.
2212 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2215 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
2216 chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
2217 the type of nb_iter.
2218 (instantiate_parameters_1): Convert the operands before calling
2219 chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
2220 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
2222 2006-04-02 Roger Sayle <roger@eyesopen.com>
2224 * builtins.c (dummy_object): Use build_int_cst instead of convert.
2225 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
2227 * dojump.c (do_jump): Likewise.
2228 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
2229 * gimplify.c (gimple_boolify, gimplify_init_constructor,
2230 gimplify_boolean_expr): Likewise.
2231 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2232 * varasm.c (array_size_for_constructor): Likewise.
2233 * tree-object-size.c (compute_object_offset): Likewise.
2235 2006-04-02 Roger Sayle <roger@eyesopen.com>
2238 * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
2239 NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
2241 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2243 PR tree-optimization/26939
2244 * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
2246 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2248 * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
2249 at_stmt. Convert the type of operands before calling
2250 build_polynomial_chrec.
2251 (add_to_evolution): Pass an extra argument at_stmt. Adjust the call to
2253 (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
2254 (instantiate_parameters_1): Convert the type of operands before calling
2255 build_polynomial_chrec.
2256 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
2257 chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
2258 reset_evolution_in_loop): Insert asserts to check the types of the
2260 (chrec_type): Moved...
2261 (eq_evolutions_p): Use operand_equal_p.
2262 * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
2263 the types of the operands.
2264 (chrec_type): ...here.
2265 * tree-data-ref.c (create_data_ref): Convert the operands before
2266 calling chrec_replace_initial_condition.
2267 (same_access_functions, analyze_subscript_affine_affine,
2268 analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
2269 (compute_subscript_distance, analyze_ziv_subscript,
2270 analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
2271 analyze_miv_subscript): Convert the operands before calling
2272 chrec_fold_minus or chrec_fold_plus.
2274 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2276 * tree-data-ref.c (compute_all_dependences): Use a pointer to
2277 the dependence_relations vector.
2278 (compute_data_dependences_for_loop): Adjust call to
2279 compute_all_dependences.
2281 2006-04-01 Roger Sayle <roger@eyesopen.com>
2282 Richard Henderson <rth@redhat.com>
2284 * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
2285 gimple_boolify on the condition before calling gimplify_expr.
2287 2006-03-31 Bob Wilson <bob.wilson@acm.org>
2289 * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
2290 to leaf_entry/leaf_return. Change leaf_entry to add 16 bytes to
2291 the frame size. Update to use the new macros.
2292 * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
2293 * config/xtensa/ieee754-df.S: Likewise.
2295 2006-03-31 Richard Henderson <rth@redhat.com>
2297 * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
2298 (make_edges): ... here. Control fallthru creation with a local
2299 variable. Do not play with fake edges.
2300 (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
2301 (make_goto_expr_edges): Don't play with fake edges. Make for_call
2304 2006-04-01 Joseph S. Myers <joseph@codesourcery.com>
2306 * dwarf2.h (DW64_CIE_ID): Define.
2307 * dwarf2out.c (DWARF_CIE_ID): Define.
2308 (output_call_frame_info): Output 0xffffffff before standard 8-byte
2309 length header. Use DWARF_CIE_ID.
2310 (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
2311 dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
2313 2006-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
2315 * config/sh/linux-atomic.asm: New file.
2316 * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
2318 2006-03-31 DJ Delorie <dj@redhat.com>
2320 * config/m32c/cond.md: Set condition flags properly throughout.
2321 * config/m32c/minmax.md: Likewise.
2322 * config/m32c/prologue.md: Likewise.
2323 * config/m32c/bitops.md: Likewise.
2324 * config/m32c/muldiv.md: Likewise.
2325 * config/m32c/mov.md: Likewise.
2326 * config/m32c/addsub.md: Likewise.
2327 * config/m32c/m32c.md: Likewise.
2328 * config/m32c/jump.md: Likewise.
2329 * config/m32c/shift.md: Likewise.
2331 * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
2332 conditionally output the pattern for this.
2333 * config/m32c/m32c.c (flags_needed_for_conditional): New.
2334 (m32c_compare_redundant): New.
2335 (m32c_output_compare): New.
2336 * config/m32c/m32c-protos.h (m32c_output_compare): New.
2338 * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
2339 dest, not src. Allow other 4-byte modes.
2341 2006-03-30 Denis Chertykov <denisc@overta.ru>
2343 * doc/md.texi: Refer to avr/constraints.md instead of
2346 2006-03-30 Roger Sayle <roger@eyesopen.com>
2348 * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
2349 signed vs. unsigned comparison failures on some hosts.
2351 2006-03-31 Alan Modra <amodra@bigpond.net.au>
2354 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
2355 change to FLOAT_REGS.
2357 * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
2358 (rs6000_override_options): Use it.
2359 (rs6000_handle_option): Set it. Set rs6000_explicit_options.abi
2360 only for -mabi=spe/no-spe and -mabi=altivec.
2362 2006-03-30 Geoffrey Keating <geoffk@apple.com>
2364 * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
2367 2006-03-30 Carlos O'Donell <carlos@codesourcery.com>
2369 * Makefile.in: Rename docdir to gcc_docdir.
2371 2006-03-30 Roger Sayle <roger@eyesopen.com>
2374 * expr.c (emit_group_store): Optimize group stores into a pseudo
2375 register by using a paradoxical subreg to initialize the destination
2376 if the first or last member of the group specifies a "low part".
2378 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2381 * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
2382 * target.h (struct gcc_target.speculate_insn): Change type of the
2383 second parameter to 'int'.
2384 * lists.c (alloc_DEPS_LIST): Change signature. Update reference to
2385 the second operand of the DEPS_LIST.
2386 (copy_DEPS_LIST_list): Update reference to the second operand of the
2388 * rtl.h (alloc_DEPS_LIST): Update signature.
2389 * sched-int.h (ds_t): Change typedef to 'int'.
2390 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
2392 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2394 * haifa-sched.c (try_ready): Change condition to restore
2395 non-speculative pattern of the instruction.
2396 (process_insn_depend_be_in_spec): Code to keep probability of the
2397 speculative dependence non-decreasing.
2399 2006-03-30 Jie Zhang <jie.zhang@analog.com>
2401 * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
2402 (single_move_for_movmem): ... this. Also change all uses.
2403 (bfin_expand_strmov): Renamed to...
2404 (bfin_expand_movmem): ... this. Also change all uses.
2405 * config/bfin/bfin.md (movstrsi): Renamed to...
2406 (movstrsi): ...this.
2408 2006-03-30 Paolo Bonzini <bonzini@gnu.org>
2410 PR tree-optimization/26830
2412 * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
2413 (copy_prop_visit_stmt): Remove write-only variable ann.
2414 (init_copy_prop): Check variable loop depth here. Do not simulate
2415 memory-tag and virtual operand PHIs except for store copy prop.
2417 2006-03-30 Richard Guenther <rguenther@suse.de>
2419 * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
2420 variants with double arguments.
2422 2006-03-29 David Edelsohn <edelsohn@gnu.org>
2424 * genpreds.c (write_tm_constrs_h): Delete variable p.
2425 * genconditions.c (write_header): Add tm-constrs.h to included
2427 * genpeep.c (main): Add toplev.h to included headers.
2428 * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
2429 (build/genpeep.o): Add toplev.h dependency.
2430 * config/rs6000/constraints.md: Add "W" constraint.
2432 2006-03-29 Roger Sayle <roger@eyesopen.com>
2434 * stor-layout.c (mode_for_size_tree): Remove restiction on type
2435 sizes by correctly testing whether the size fits a host integer.
2436 (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
2437 to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
2438 SImode range for the default sizetype and bitsizetype.
2440 2006-03-29 Roger Sayle <roger@eyesopen.com>
2442 * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
2443 and TREE_CONSTANT_OVERFLOW bits of the argument. Return
2444 quickly if the argument is already of the correct type.
2445 Call fold_build1 instead of build1. Tidy up blank lines.
2447 2006-03-29 David Edelsohn <edelsohn@gnu.org>
2449 * genemit.c (main): Add tm-constrs.h to included headers.
2450 * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
2451 * genpeep.c (main): Add tm-constrs.h to included headers.
2452 * genpreds.c (write_satisfies_constraint_fns): Rename to ...
2453 (write_tm_constrs_h): this and write complete file.
2454 (write_tm_preds_h): Do not emit satisfies_constraint fns.
2455 (write_insn_preds_c): Add tm-constrs.h to included headers.
2456 (gen_constrs): New variable.
2457 (parse_option): Parse "-c".
2458 (main): Invoke write_tm_constrs_h.
2459 * genrecog.c (write_header): Add tm-constrs.h to included headers.
2460 * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
2461 (object_out_file): Add tm-constrs.h dependency.
2462 (insn-emit.o): Same.
2463 (insn-output.o): Same.
2464 (insn-peep.o): Same.
2465 (insn-preds.o): Same.
2466 (insn-recog.o): Same.
2467 (tm-constsr.h): New target.
2468 (s-constrs-h): New target.
2470 * config/rs6000/constraints.md: New file.
2471 * config/rs6000/rs6000.c: Include tm-constrs.h.
2472 (num_insn_constant_wide): Convert to satisfies_constraint.
2473 (rs6000_rtx_costs): Convert to satisfies_constraint.
2474 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
2475 (CONST_OK_FOR_LETTER_P): Delete.
2476 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2477 (EXTRA_CONSTRAINT): Delete.
2478 (EXTRA_MEMORY_CONSTRAINT): Delete.
2479 (EXTRA_ADDRESS_CONSTRAINT): Delete.
2480 * config/rs6000/predicates.md: Convert to satisfies_constraint.
2481 * config/rs6000/rs6000.md: Include constraints.md. Convert to
2482 satisfies_constraint.
2484 * config/i386/i386.c: Include tm-constrs.h.
2486 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
2488 * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
2489 * tree-data-ref.c (find_data_references_in_loop,
2490 compute_data_dependences_for_loop): Use pointers to VEC.
2491 (analyze_all_data_dependences): Adjust calls.
2492 * tree-data-ref.h (find_data_references_in_loop,
2493 compute_data_dependences_for_loop): Adjust declarations.
2494 * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
2495 compute_data_dependences_for_loop.
2497 2006-03-29 Paul Brook <paul@codesourcery.com>
2499 * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
2502 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
2504 PR tree-optimization/26859
2505 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
2507 (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
2508 for the step after fold_convert.
2510 2006-03-29 Paul Brook <paul@codesourcery.com>
2512 * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
2513 (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
2515 2006-03-29 Paul Brook <paul@codesourcery.com>
2518 * targhooks.c (default_narrow_bitfield): New fuction.
2519 * targhooks.h (default_narrow_bitfield): add prototype.
2520 * target.h (gcc_target): Add narrow_volatile_bitfield.
2521 * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
2522 * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
2523 * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
2524 * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
2526 2006-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
2528 * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
2530 * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
2531 (NR_C_MODES): Add TDmode, DDmode and SDmode.
2532 (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
2533 (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
2534 (s390_function_arg_float): Allow SDmode and DDmode values to be
2535 passed in floating point registers.
2536 (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
2537 check with SCALAR_FLOAT_MODE_P.
2538 (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
2540 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
2542 PR tree-optimization/25985
2543 * tree-ssa-loop-niter.c (number_of_iterations_le,
2544 number_of_iterations_ne): Make comments more precise.
2545 (number_of_iterations_cond): Add only_exit argument. Use the
2546 fact that signed variables do not overflow only when only_exit
2548 (loop_only_exit_p): New.
2549 (number_of_iterations_exit): Pass result of loop_only_exit_p to
2550 number_of_iterations_cond.
2552 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
2554 PR tree-optimization/26643
2555 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
2558 2006-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
2560 * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
2561 (divsi3_i4_int): Likewise.
2563 2006-03-28 Roger Sayle <roger@eyesopen.com>
2565 * expr.c (emit_group_store): Only create a new pseudo reg if the
2566 quantity it needs to hold isn't already a suitable pseudo.
2568 2006-03-28 Jeff Law <law@redhat.com>
2570 * timevar.def (TV_TREE_PHI_CPROP): New timevar.
2571 * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
2573 2006-03-28 Roger Sayle <roger@eyesopen.com>
2575 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
2576 the equivalent ~X & Y, and the symmetry related transformations.
2577 (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
2578 ~X & Y, and symmetry related transforms.
2580 2006-03-28 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2582 Revert my 2006-03-27 patches.
2584 2006-03-28 Roger Sayle <roger@eyesopen.com>
2586 * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
2587 ~(T1)X, when T1 and T2 are integer types of the same precision
2588 and (T2)X isn't an extension.
2590 2006-03-28 Jeff Law <law@redhat.com>
2592 PR tree-optimization/26796
2593 * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
2594 need EH edge cleanups rather than purging them immediately.
2595 (eliminate_degenerate_phis): Handle queued EH cleanups.
2597 2006-03-28 Daniel Berlin <dberlin@dberlin.org>
2599 * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
2602 2006-03-27 Roger Sayle <roger@eyesopen.com>
2605 * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
2606 cast BIT_NOT_EXPR operand to the correct type.
2608 2006-03-27 Sebastian Pop <pop@cri.ensmp.fr>
2610 * tree-loop-linear.c: Don't include varray.h.
2611 (gather_interchange_stats, try_interchange_loops,
2612 linear_transform_loops): Use VEC instead of VARRAY.
2613 * lambda-mat.c: Don't include varray.h.
2614 * tree-chrec.c: Same.
2615 * lambda-trans.c: Same.
2616 * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
2617 VEC instead of VARRAY.
2618 * tree-vectorizer.h: Idem.
2619 * tree-data-ref.c (dump_data_references,
2620 dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
2621 initialize_data_dependence_relation, finalize_ddr_dependent,
2622 compute_all_dependences, find_data_references_in_loop,
2623 compute_data_dependences_for_loop, analyze_all_data_dependences,
2624 free_dependence_relation, free_dependence_relations,
2625 free_data_refs): Idem.
2626 * tree-data-ref.h (data_reference_p, subscript_p): New.
2627 (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
2628 VEC instead of VARRAY.
2629 (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
2630 (find_data_references_in_loop, compute_data_dependences_for_loop,
2631 dump_ddrs, dump_dist_dir_vectors, dump_data_references,
2632 dump_data_dependence_relations, free_dependence_relations,
2633 free_data_refs): Adjust declaration.
2634 (lambda_transform_legal_p): Move declaration here...
2635 * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
2636 vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
2637 vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
2638 vect_analyze_data_refs): Use VEC instead of VARRAY.
2639 * lambda.h (lambda_transform_legal_p): ...from here.
2640 * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
2641 * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
2642 * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
2643 tree-chrec.o): Don't depend on VARRAY_H.
2645 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2647 * rtl.def (Copyright): Update date.
2648 (DEPS_LIST): Change type of the second operand to 'int'.
2649 * target.h (Copyright): Update date.
2650 (struct gcc_target.speculate_insn): Change type of the second parameter
2652 * lists.c (Copyright): Update date.
2653 (alloc_DEPS_LIST): Change signature. Update reference to the second
2654 operand of the DEPS_LIST.
2655 (copy_DEPS_LIST_list): Update reference to the second operand of the
2657 * rtl.h (Copyright): Update date.
2658 (alloc_DEPS_LIST): Update signature.
2659 * sched-int.h (Copyright): Update date.
2660 (ds_t): Change typedef to 'int'.
2661 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
2663 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2665 * haifa-sched.c (Copyright): Update date.
2666 (try_ready): Change condition to restore non-speculative pattern
2668 (process_insn_depend_be_in_spec): Code to keep probability of the
2669 speculative dependence non-decreasing.
2671 2006-03-27 Bernd Schmidt <bernd.schmidt@analog.com>
2673 * regrename.c (replace_oldest_value_addr): Initialize a variable to
2674 shut up the compiler.
2676 2006-03-27 J"orn Rennecke <joern.rennecke@st.com>
2678 * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
2679 to use lib prefix for target.
2680 ($(T)libic_invalidate_array_4-200.a): Likewise.
2681 ($(T)libic_invalidate_array_4a.a): Likewise.
2683 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
2684 J"orn Rennecke <joern.rennecke@st.com>
2686 * superh.opt: New file.
2687 * sh.c (boardtype, osruntime): Remove.
2688 * superh.h (SUBTARGET_OPTIONS): Remove.
2689 * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
2691 * config.gcc (sh*-*-*): Don't use c-c ranges for tr. Quote sed
2692 arguments with ^ and/or [].
2694 * config.gcc (sh-*-*): Add quoting to account for quirk of
2696 Replace == with = in enable_incomplete_targets test.
2698 * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
2699 with MASK_LITTLE_ENDIAN.
2701 * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
2702 * config/sh/sh.opt: Added to some comments.
2703 * config/sh/superh.h: Removed some chaff.
2705 * config/sh/sh.opt: Add m4-[1234]00* options.
2706 * config/sh/sh.c (sh_handle_option): Likewise.
2707 * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
2708 (ic_invalidate_array_4-100.o): New rule.
2709 ($(T)libic_invalidate_array_4-100.a): Likewise.
2710 (ic_invalidate_array_4-200.o): Likewise.
2711 ($(T)libic_invalidate_array_4-200.a): Likewise.
2712 (ic_invalidate_array_4a.o): Likewise.
2713 ($(T)libic_invalidate_array_4a.a): Likewise.
2714 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
2715 * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
2717 * config/sh/crt1.asm: Merged in profiling code.
2718 * config/sh/superh.h (STARTFILE_SPEC): Override.
2719 * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
2720 Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
2721 * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
2723 * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
2724 * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
2725 MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
2727 * sh.opt (mpretend-cmove): New option.
2728 * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
2729 * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
2730 (movsicc): Add TARGET_PRETEND_CMOVE code.
2732 2006-03-27 Andreas Krebbel <krebbel1@de.ibm.com>
2734 * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
2735 s390_class_max_nregs): New function prototypes.
2736 * config/s390/s390.c (REGNO_PAIR_OK): New macro.
2737 (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
2738 * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
2739 CLASS_MAX_NREGS): Macro bodies replaced by function calls.
2741 2006-03-26 Geoffrey Keating <geoffk@apple.com>
2743 * dwarf2out.c (add_location_or_const_value_attribute): Call
2744 tree_add_const_value_attribute if nothing else works.
2745 (reference_to_unused): New.
2746 (rtl_for_decl_init): Use reference_to_unused to decide whether
2747 to output an initializer.
2749 2006-03-27 Alan Modra <amodra@bigpond.net.au>
2752 * config/rs6000/rs6000.md (DF reg move peephole): Prevent
2753 peephole removing spe frob_di_df_2.
2755 2006-03-26 Sebastian Pop <pop@cri.ensmp.fr>
2757 * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
2758 (subscript_dependence_tester_1): Declared.
2759 (print_dir_vectors, print_dist_vectors): New.
2760 (debug_data_dependence_relation): New.
2761 (dump_data_dependence_relation): Print more details.
2762 (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
2763 (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
2764 (save_dist_v, save_dir_v, add_outer_distances,
2765 build_classic_dist_vector_1): New.
2766 (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
2767 Don't test for lambda_vector_lexico_pos.
2768 (same_access_functions, add_multivariate_self_dist,
2769 add_other_self_distances, dir_from_dist): New.
2770 (build_classic_dir_vector): Replace implementation almost identical to
2771 build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
2773 (subscript_dependence_tester_1): New.
2774 (subscript_dependence_tester): Handle the lexicographically negative
2775 distance vectors by recomputing the dependence relation.
2776 (compute_affine_dependence): Remove parameter loop_nest_depth.
2777 (compute_self_dependence): Don't call compute_subscript_distance.
2778 (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
2779 Add a parameter for the loop_nest.
2780 (find_loop_nest_1, find_loop_nest): New.
2781 (compute_data_dependences_for_loop): Compute the loop nest, and give
2782 up if the nest is not well formed.
2783 * tree-data-ref.h (loop_p): New.
2784 (struct data_dependence_relation): Replace size_vect field with
2785 loop_nest, a vec of loops.
2786 (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
2787 (DDR_LOOP_NEST): New.
2788 (print_dir_vectors, print_dist_vectors,
2789 debug_data_dependence_relation): Declared.
2790 (index_in_loop_nest): New.
2791 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
2792 DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
2795 2006-03-25 Adam Nemet <anemet@caviumnetworks.com>
2797 * simplify-rtx.c (simplify_relational_operation): Call
2798 simplify_relational_operation_1 even if mode is VOIDmode.
2800 2006-03-25 Daniel Berlin <dberlin@dberlin.org>
2802 PR tree-optimization/26804
2803 * tree.h (DECL_CALL_CLOBBERED): New macro.
2804 (tree_decl_common): Add call_clobbered_flag.
2805 * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
2806 (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
2807 (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
2808 (mark_non_addressable): Ditto.
2809 * tree-ssa.c (verify_call_clobbered): New function.
2810 (verify_alias_info): Use it.
2811 * tree-pass.h (pass_reset_cc_flags): New prototype.
2812 * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
2813 (reset_cc_flags): New function.
2814 * passes.c (init_optimization_passes): Call reset_cc_flags after
2815 initializing referenced_vars.
2817 2006-03-25 Uros Bizjak <uros@kss-loka.si>
2818 Roger Sayle <roger@eyesopen.com>
2821 * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
2822 to 1.0 for non-real operands. Implement A / A optimization for
2825 2006-03-25 H.J. Lu <hongjiu.lu@intel.com>
2827 * config/i386/i386.c (size_cost): Correct the comment for
2828 cost of storing fp registers.
2829 (i386_cost): Likewise.
2830 (i486_cost): Likewise.
2831 (pentium_cost): Likewise.
2832 (pentiumpro_cost): Likewise.
2833 (k6_cost): Likewise.
2834 (athlon_cost): Likewise.
2835 (k8_cost): Likewise.
2836 (pentium4_cost): Likewise.
2837 (nocona_cost): Likewise.
2838 (generic64_cost): Likewise.
2839 (generic32_cost): Likewise.
2841 2006-03-24 Denis Chertykov <denisc@overta.ru>
2843 * config/avr/avr-protos.h (extra_constraint): Delete.
2844 (extra_constraint_Q): New declaration.
2845 * config/avr/constraints.md: New file.
2846 * config/avr/avr.md: Include it.
2847 (REG_X, REG_Y, REG_Z, REG_W): New constants.
2848 (TMP_REGNO, ZERO_REGNO): Likewise.
2849 (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
2850 * config/avr/avr.c (avr_reg_class_from_letter): Delete.
2851 (extra_constraint): Delete.
2852 (extra_constraint_Q): Test for memory constraint 'Q'.
2853 * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
2854 (REG_CLASS_FROM_LETTER): Delete.
2855 (CONST_OK_FOR_LETTER_P): Delete.
2856 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2857 (EXTRA_CONSTRAINT): Delete.
2858 (TMP_REGNO): Delete.
2859 (ZERO_REGNO): Delete.
2861 2006-03-24 Jeff Law <law@redhat.com>
2863 * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
2864 directly. Call mark_new_vars_to_rename slightly earlier.
2866 2006-03-24 Geoffrey Keating <geoffk@apple.com>
2868 * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
2870 (gen_compile_unit_die): Use new language types for Objective-C and
2872 (dwarf2out_decl): Use is_cxx rather than testing explicitly against
2873 DW_LANG_C_plus_plus.
2876 * config/t-darwin (crt3.o): Work around bug 26840.
2877 * config/darwin-crt3.c: Rewrite.
2878 * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
2880 2006-03-24 Carlos O'Donell <carlos@codesourcery.com>
2882 * doc/invoke.texi: Document -femit-class-debug-always
2883 * common.opt: Add -femit-class-debug-always.
2885 2006-03-24 Andreas Krebbel <krebbel1@de.ibm.com>
2887 * config/s390/s390.c (s390_decompose_address): Allow SImode for
2888 index and base register.
2889 (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
2890 print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
2891 with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
2892 REGNO_OK_FOR_INDEX_P.
2893 * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
2895 (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
2896 REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
2897 REG_OK_FOR_BASE_P): Definitions removed.
2899 2006-03-24 Jakub Jelinek <jakub@redhat.com>
2902 * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
2903 non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
2904 set yet or weren't marked as local yet.
2906 2006-03-24 Bernd Schmidt <bernd.schmidt@analog.com>
2908 * regrename.c (scan_rtx_address): Initialize a variable to shut up
2911 2006-03-24 Eric Botcazou <ebotcazou@adacore.com>
2913 * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
2914 (rs6000_legitimate_small_data_p): Delete.
2915 * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
2916 (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
2917 and make static. Add forward declaration. Update uses.
2918 (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
2919 of offsettable_memref_p.
2920 * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
2921 Use rs6000_offsettable_memref_p instead of a less accurate predicate.
2923 2006-03-24 Jeff Law <law@redhat.com>
2925 * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
2926 around bug in immediate-use iterator.
2928 2006-03-24 Alan Modra <amodra@bigpond.net.au>
2931 * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
2932 or __LITTLE_ENDIAN__.
2934 2006-03-23 J"orn Rennecke <joern.rennecke@st.com>
2936 * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
2937 * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
2938 * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
2939 * config/sh/sh.opt (mdiv=): Amend description.
2940 * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
2941 (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
2942 (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
2943 SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
2944 (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
2945 Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
2946 * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
2947 (udivsi3, divsi3): Use them. Check TARGET_DIVIDE_CALL_TABLE /
2948 TARGET_DIVIDE_CALL_FP.
2950 2006-03-23 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2952 * haifa-sched.c (choose_ready): Fix type of the local variable.
2953 Move local variables. Add comment.
2954 (check_reg_live): Change signature. Make callable from debugger.
2955 * sched-int.h (check_reg_live): Update signature.
2956 * sched-ebb.c (check_reg_live): Update parameters.
2957 * sched-rgn.c (check_reg_live): Ditto.
2958 (region_head_or_leaf_p): Check pointer before dereferencing.
2959 * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
2960 before reload on optimization levels below 1.
2962 2006-03-23 Richard Henderson <rth@redhat.com>
2964 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
2968 * config/alpha/predicates.md (local_symbolic_operand): Reject
2971 2006-03-23 Andrew Pinski <pinskia@physics.uc.edu>
2974 * tree-ssa-pre.c (create_value_expr_from): Don't reject
2975 expressions which have overflowed constants.
2977 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
2979 * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
2981 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
2983 * cfgloopmanip.c (create_loop_notes): Removed.
2984 * final.c (final_scan_insn): Do not handle loop notes.
2985 * jump.c (squeeze_notes): Ditto.
2986 * cfglayout.c (skip_insns_after_block,
2987 duplicate_insn_chain): Ditto.
2988 * cfgcleanup.c (rest_of_handle_jump2): Do not call
2990 * cfgloop.h (create_loop_notes): Declaration removed.
2992 2006-03-23 Richard Sandiford <richard@codesourcery.com>
2994 * varasm.c (output_constant_pool): Restore fnname and fndecl
2996 (assemble_start_function): Adjust call accordingly.
2997 (assemble_end_function): Likewise.
2999 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3002 * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
3005 * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
3007 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3010 * system.h (ICE_EXIT_CODE): New macro.
3011 * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
3012 (diagnostic_action_after_output): Likewise.
3013 * gcc.c (fatal_ice): New function.
3014 (execute): Use it instead of fatal.
3015 (fancy_abort): Likewise.
3016 * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
3018 2006-03-22 Jeff Law <law@redhat.com>
3020 * loop-unroll.c (analyze_iv_to_split_insn): Handle
3021 iv_analyze_result returning false.
3023 2006-03-22 Jie Zhang <jie.zhang@analog.com>
3025 * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
3027 2006-03-22 Richard Henderson <rth@redhat.com>
3030 * except.c (duplicate_eh_regions_0): New.
3031 (duplicate_eh_region_1): Duplicate the children of the node as
3032 well as the node itself. Link them up properly.
3033 (duplicate_eh_region_2): Merge into ...
3034 (duplicate_eh_regions): ... here. Take copy_region argument, and
3035 copy only a sub-tree if asked. Simplify copying and fixup.
3036 (eh_region_outer_p): New.
3037 * except.h (duplicate_eh_regions): Update decl.
3038 (eh_region_outer_p): Declare.
3039 * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
3040 (lower_omp_master): Likewise.
3041 (lower_omp_ordered): Likewise.
3042 * tree-cfg.c (struct move_stmt_d): Add new_label_map.
3043 (move_stmt_r): Use it to remap labels. Handle recursion vs
3044 remap_decls_p properly.
3045 (move_block_to_fn): Pass in new_label_map. Remap RESX_EXPR.
3046 (find_outermost_region_in_block): New.
3047 (new_label_mapper): New.
3048 (move_sese_region_to_fn): Copy eh information to the new function
3050 * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
3052 * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
3055 2006-03-22 Richard Sandiford <richard@codesourcery.com>
3057 * doc/md.texi (-mshared): Mention that -mshared code can be linked
3058 into shared libraries.
3060 2006-03-22 Richard Sandiford <richard@codesourcery.com>
3062 * doc/md.texi: Refer to i386/constraints.md instead of
3064 * config/i386/constraints.md: New file, extracted from...
3065 * config/i386/predicates.md: ...here.
3066 * config/i386/i386.md: Include constraints.md.
3068 2006-03-21 Jason Merrill <jason@redhat.com>
3070 * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
3073 * expr.c (init_block_move_fn): Force default visibility.
3074 (init_block_clear_fn): Likewise.
3075 * builtins.c (expand_builtin_fork_or_exec): Likewise.
3076 * targhooks.c (default_external_stack_protect_fail): Likewise.
3078 2006-03-21 Richard Sandiford <richard@codesourcery.com>
3080 * config/mips/predicates.md (const_call_insn_operand): Allow direct
3081 calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
3082 * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
3083 Use TARGET_OLDABI instead of !TARGET_NEWABI.
3084 (loadgp): Use mips_current_loadgp_style.
3085 (loadgp_noshared): New pattern.
3086 (sibcall_internal): Use MIPS_CALL.
3087 (sibcall_value_internal): Likewise.
3088 (sibcall_value_multiple_internal): Likewise.
3089 (call_internal): Likewise.
3090 (call_value_internal): Likewise.
3091 (call_value_multiple_internal): Likewise.
3092 (call_split): Use MIPS_CALL and add an 'S' constraint.
3093 (call_value_split): Likewise.
3094 (call_value_multiple_split): Likewise.
3095 * config/mips/mips.opt (-mabicalls): Tweak docstring.
3096 (-mshared): New option.
3097 * config/mips/mips-protos.h (mips_loadgp_style): New enum.
3098 (mips_current_loadgp_style): Declare.
3099 * config/mips/mips.c (mips_classify_symbol): Avoid using
3100 SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS. Use SYMBOL_GENERAL
3101 rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
3102 TARGET_ABSOLUTE_ABICALLS.
3103 (override_options): Adjust comments. Improve the warning that is
3104 issued when -mabicalls and -G are used together.
3105 (mips_file_start): Remove comment.
3106 (mips_current_loadgp_style): New function.
3107 (mips_gnu_local_gp): New variable.
3108 (mips_emit_loadgp): Use mips_current_loadgp_style. Handle
3110 (mips_output_function_prologue): Use mips_current_laodgp_style.
3111 (mips_expand_prologue): Call mips_emit_loadgp before emitting
3112 the cprestore instruction.
3113 (mips_extra_live_on_entry): Fix reversed test. Don't make $25
3114 live for TARGET_ABSOLUTE_ABICALLS.
3115 * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
3116 (ASM_SPEC): Pass down -mshared and -mno-shared.
3117 (MIPS_CALL): New macro.
3118 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
3120 * doc/invoke.texi (-mabicalls): Update documentation.
3121 (-mshared): Document.
3123 2006-03-21 Steve Ellcey <sje@cup.hp.com>
3125 * config/ia64/unwind-hpux.c: New file.
3126 * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
3128 2006-03-21 Steve Ellcey <sje@cup.hp.com>
3131 * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
3133 2006-03-21 Jeff Law <law@redhat.com>
3135 * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
3136 type conversions of a VR_VARYING source to a wider type.
3138 2006-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
3140 * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
3141 tm_file on Solaris 10 and later.
3142 (sparc64-*-solaris2*): Likewise.
3143 (sparc-*-solaris2*): Likewise.
3144 * config/sol26.h: Rename to config/sol2-6.h.
3145 * config/sol2-10.h: New file.
3147 2006-03-21 Andrew Pinski <pinskia@physics.uc.edu>
3150 * tree-ssa-pre.c (create_component_ref_by_pieces):
3153 2006-03-21 Jakub Jelinek <jakub@redhat.com>
3156 * tree.c (get_callee_fndecl): If CALL is error_mark_node,
3157 return it immediately.
3159 2006-03-21 Michael Matz <matz@suse.de>
3161 * genautomata.c (<struct state>, num_out_arcs, presence_signature):
3163 (remove_arc, add_arc): Update num_out_arcs member.
3164 (set_out_arc_insns_equiv_num): Returns nothing instead of number
3166 (cache_presence): New function.
3167 (compare_states_for_equiv): New function.
3168 (state_is_differed): Don't take number of outargs, adjust callers.
3169 Use new invariant for speeding up.
3170 (init_equiv_class): Create initial classes based on sorted
3172 (partition_equiv_class): Don't track out_arcs_num.
3173 (evaluate_equiv_classes): Call cache_presence on all states and
3176 2006-03-21 Bernd Schmidt <bernd.schmidt@analog.com>
3178 * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
3179 * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
3180 (bfin_valid_reg_p): Test for pseudos explicitly and use only
3181 REGNO_MODE_CODE_OK_FOR_BASE_P. New args MODE and OUTER_CODE; all
3183 * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
3184 (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
3185 (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
3186 (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3187 REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
3189 (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
3190 REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
3191 (REGNO_REG_CLASS): ARGP is in PREGS.
3192 * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
3194 (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
3195 to deal with those addresses.
3196 * addresses.h: New file.
3197 * caller-save.c: Include "addresses.h".
3198 (init_caller_save): Use new base_reg_class function.
3199 * rtl-factoring.c: Include "addresses.h".
3200 (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
3201 * recog.c: Include "addresses.h".
3202 (preprocess_constraints): Use new base_reg_class function.
3203 * regrename.c: Include "addresses.h".
3204 (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
3205 functions. Keep track of a new var INDEX_CODE to compute valid
3207 (replace_oldest_value_addr): Likewise.
3208 (replace_oldest_value_mem): Use base_reg_class.
3209 * reload.c: Include "addresses.h".
3210 (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
3211 (find_reloads): Use new base_reg_class function.
3212 (find_reloads_address): Likewise; also use regno_ok_for_base_p.
3213 (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
3214 all callers and prototype changed.
3215 * reload1.c: Include "addresses.h".
3216 (maybe_fix_stack_asms): Use base_reg_class.
3217 * regclass.c: Include "addresses.h".
3218 (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
3219 (init_reg_autoinc): Use new base_reg_class function.
3220 (record_reg_classes): Likewise.
3221 (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
3222 OUTER_CODE and INDEX_CODE. All callers and prototype changed.
3223 Use new args to compute necessary class.
3225 * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
3226 regrename.o, rtl-factoring.o): Update dependencies.
3227 * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
3228 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
3229 (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
3230 REG_OK_FOR_INDEX_P): Delete documentation.
3232 2006-03-21 Alexey Starovoytov <alexey.starovoytov@sun.com>
3234 * config.gcc (sparc-*-solaris2*): Change the default CPU setting
3235 from V7 to V9 for Solaris 7 and above.
3237 2006-03-21 Toon Moene <toon@moene.indiv.nluug.nl>
3239 * doc/invoke.texi: Document new flag -fargument-noalias-anything.
3240 * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
3241 argument pointers may not alias any other storage.
3242 * common.opt: Define option -fargument-noalias-anything.
3243 * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
3244 alias semantics is specified by flag_argument_noalias > 2.
3246 2006-03-20 Jeff Law <law@redhat.com>
3248 * tree-pass.h (pass_phi_only_copy_prop): Delete.
3249 (pass_phi_only_cprop): Declare.
3250 * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
3252 * tree-ssa-dom.c (degenerate_phi_result): New function.
3253 (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
3254 (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
3255 (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
3256 (eliminate_degenerate_phis): Likewise.
3257 (pass_phi_only_cprop): New pass descriptor.
3258 * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
3259 support code. Callers updated.
3260 (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
3261 (store_copy_prop): Likewise.
3262 (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
3264 2006-03-20 Jason Merrill <jason@redhat.com>
3267 * c-pragma.c (visstack): Move out of handle_pragma_visibility.
3268 (push_visibility, pop_visibility): Likewise.
3269 * c-pragma.h: Declare them.
3271 2006-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
3273 * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
3275 * config/sh/sh.c (find_regmode_weight): Change the type of the first
3276 parameter and use get_ebb_head_tail.
3277 (sh_md_init_global): Adjust uses of find_regmode_weight.
3279 2006-03-20 Steven Bosscher <stevenb.gcc@gmail.com>
3281 * function.h (struct function) <x_tail_recursion_reentry>:
3282 Rename to x_stack_check_probe_note.
3283 (tail_recursion_reentry): Rename to stack_check_probe_note.
3284 * function.c: Replace tail_recursion_reentry with
3285 stack_check_probe_note everywhere.
3286 (expand_function_start): Only emit a note for
3287 stack_check_probe_note with -fstack-protect.
3288 * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
3290 * emit-rtl.c (remove_unnecessary_notes): Remove.
3291 (pass_remove_unnecessary_notes): Remove.
3292 * rtl.h (remove_unnecessary_notes): Remove prototype.
3293 * final.c (final_start_function): Don't call remove_unnecessary_notes.
3294 * tree-pass.h (pass_remove_unnecessary_notes): Remove.
3295 * passes.c (pass_remove_unnecessary_notes): Don't run it.
3297 2006-03-20 Andrew Pinski <pinskia@physics.uc.edu>
3300 * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
3301 (valid_in_set): Handle ARRAY_REF.
3302 Change "if min_variant or VH" to asserts.
3303 (create_component_ref_by_pieces): Handle ARRAY_REF.
3304 (create_expression_by_pieces): Likewise.
3305 (can_PRE_operation): ARRAY_REFs can now be PRE'd.
3307 2006-03-20 David Edelsohn <edelsohn@gnu.org>
3309 * genpreds.c (write_insn_extra_address_constraint): Argument `c'
3310 is operand of switch, not str[0].
3312 2006-03-20 Alan Modra <amodra@bigpond.net.au>
3314 * config/rs6000/rs6000.c (rs6000_handle_option): Use
3315 TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
3317 2006-03-19 David Edelsohn <edelsohn@gnu.org>
3319 * genpreds.c (write_tm_preds_h): Add semicolon and newline at
3320 end of insn_extra_address_constraint declaration.
3322 2006-03-19 David Edelsohn <edelsohn@gnu.org>
3324 * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
3325 (no-sum-in-toc): Same.
3326 * config/rs6000/rs6000.c (rs6000_handle_option): Use new
3328 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
3329 NO_FP_IN_TOC for -fPIC instead of mask.
3331 * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
3332 (BOOT_LDFLAGS): Delete.
3334 * config/rs6000/t-aix52: Same.
3336 * config/rs6000/rs6000.md (store_multiple_power): Delete.
3337 (stmsi[345678]_power): New.
3339 2006-03-17 Steve Ellcey <sje@cup.hp.com>
3341 * config/ia64/ia64.opt: Add empty line to end of file.
3343 2006-03-17 Richard Guenther <rguenther@suse.de>
3346 * builtins.c (get_pointer_alignment): For component style references
3347 adjust alignment to the component type alignment. Make sure
3348 to adjust alignment for component access of constants.
3350 2006-03-17 David Edelsohn <edelsohn@gnu.org>
3352 * config/rs6000/rs6000.md (strlensi): Emit barrier after
3355 2006-03-17 Paul Brook <paul@codesourcery.com>
3357 * doc/install.texi: Docuemnt --with-mode.
3358 * config.gcc: Add --with-mode for arm*-*-*.
3359 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
3361 2006-03-17 J"orn Rennecke <joern.rennecke@st.com>
3363 * sh.c (max_labelno_before_reorg): New variable.
3364 (sh_reorg): Initialize it.
3365 (find_barrier): Check max_labelno_before_reorg before using
3366 label_to_alignment. Take length of explicit alignment insns
3367 into account. When seeing a UNSPECV_CONST_END, return it.
3369 * sh.c (fixup_mova): Set mode of affected label to QImode.
3370 (untangle_mova): New function.
3371 (find_barrier): Use it. Check mode of label before decrementing
3373 (sh_reorg): Likewise.
3374 Set mode of all insns back to VOIDmode.
3376 * sh.c (MOVA_LABELREF): New macro.
3377 (mova_p, fixup_mova, sh_reorg): Use it.
3378 (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
3379 ADDR_DIFF_VEC matches mova.
3381 2006-03-17 Steven Bosscher <stevenb.gcc@gmail.com>
3383 * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
3384 with ATTRIBUTE_UNUSED.
3386 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
3388 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
3389 pointer, instead of assuming it is possible to derive the
3390 correct args size from a call insn.
3392 2006-03-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3394 * rtl.h (CONST_INT_P): Define.
3395 * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
3396 instead of GET_CODE(x) == CONST_INT.
3397 (vax_rtx_costs): Likewise.
3398 (vax_output_int_move): Likewise.
3399 (vax_output_int_add): Likewise.
3400 (legitimate_constant_address_p): Likewise.
3401 (index_term_p): Likewise.
3402 * config/vax/vax.h (PRINT_OPERAND): Likewise.
3403 * config/vax/vax.md (and<mode>3): Likewise.
3404 (ashrsi3): Likewise.
3406 (movstricthi): Likewise.
3407 (movstrictqi): Likewise.
3408 (rotrsi3): Likewise.
3409 (five unnamed insns): Likewise.
3411 2006-03-16 Geoffrey Keating <geoffk@apple.com>
3413 * doc/tm.texi (SDB and DWARF): Add extra parameter to
3414 ASM_OUTPUT_DWARF_OFFSET. Use @var to indicate metavariables.
3415 * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
3416 * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
3417 Pass to ASM_OUTPUT_DWARF_OFFSET.
3418 * dwarf2out.c (debug_frame_section): New.
3419 (output_call_frame_info): Use debug_frame_section. Pass it to
3420 dw2_asm_output_offset.
3421 (output_die): Pass appropriate section to dw2_asm_output_offset.
3422 (output_compilation_unit_header): Likewise.
3423 (output_pubnames): Likewise.
3424 (output_aranges): Likewise.
3425 (enum dw_val_class): Break dw_val_class_lbl_offset into
3426 dw_val_class_lineptr and dw_val_class_macptr.
3427 (add_AT_lbl_offset): Delete.
3428 (add_AT_lineptr): New.
3429 (add_AT_macptr): New.
3430 (AT_lbl): Expect a lineptr or macptr.
3431 (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
3432 (attr_checksum): Likewise.
3433 (same_dw_val_p): Likewise.
3434 (size_of_die): Likewise.
3435 (value_format): Likewise.
3436 (output_die): Likewise.
3437 (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
3439 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
3440 * config/i386/i386.c (x86_file_start): Call darwin_file_start.
3441 * config/darwin-protos.h (darwin_file_start): New.
3442 (darwin_asm_output_dwarf_offset): New.
3443 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
3444 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
3446 * config/darwin.c (darwin_emit_unwind_label): Don't output label
3447 if not EH section; simplify.
3448 (darwin_file_start): New.
3449 (darwin_asm_output_dwarf_offset): New.
3450 * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
3452 (DEBUG_INFO_SECTION): Likewise.
3453 (DEBUG_ABBREV_SECTION): Likewise.
3454 (DEBUG_ARANGES_SECTION): Likewise.
3455 (DEBUG_MACINFO_SECTION): Likewise.
3456 (DEBUG_LINE_SECTION): Likewise.
3457 (DEBUG_LOC_SECTION): Likewise.
3458 (DEBUG_PUBNAMES_SECTION): Likewise.
3459 (DEBUG_STR_SECTION): Likewise.
3460 (DEBUG_RANGES_SECTION): Likewise.
3461 (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
3462 (ASM_OUTPUT_DWARF_OFFSET): New.
3464 2006-03-16 Joseph S. Myers <joseph@codesourcery.com>
3466 * config.gcc (tm_defines): Always add to previous value rather
3469 2006-03-16 Richard Sandiford <richard@codesourcery.com>