1 2006-07-08 Matthias Klose <doko@debian.org>
3 * doc/sourcebuild.texi: Fix typo.
5 2006-07-07 Mike Stump <mrs@apple.com>
7 * toplev.c (process_options): Don't give -ffunction-sections may
8 affect debugging warning for Mach-O.
10 2006-07-07 James E Wilson <wilson@specifix.com>
12 * config/mips/mips.md (cpu): Add sb1a.
13 * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
14 addition to sb1. Adjust comments to clarify SB-1A differences from
16 (ir_sb1a_load): New. Modify bypasses to use it.
17 (ir_sb1a_simple_alu): Likewise.
18 * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
19 (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
20 (mips_issue_rate): Add PROCESSOR_SB1A.
21 (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
22 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
23 (TARGET_SB1): Add PROCESSOR_SB1A check.
26 * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
27 * config/mips/mips.c (mips_store_data_bypass_p): New.
28 * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
31 2006-07-08 Paul Brook <paul@codesourcery.com>
34 * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
36 2006-07-07 Richard Guenther <rguenther@suse.de>
39 * tree.h (build_one_cst): Declare.
40 * tree.c (build_one_cst): New function.
41 * tree-ssa-math-opts.c (get_constant_one): Remove.
42 (insert_reciprocals): Use build_one_cst.
43 * fold-const.c (fold_plusminus_mult): Likewise.
45 2006-07-07 Roger Sayle <roger@eyesopen.com>
47 * pointer-set.c (pointer_set_destroy): Correct whitespace.
48 * cfgloopanal.c (dump_graph): Likewise.
49 * dojump.c (discard_pending_stack_adjust): Likewise.
50 * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
52 * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
53 * function.c (finalize_block_changes): Likewise.
54 * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
55 * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
56 * rtl.c (dump_rtx_statistics): Likewise.
57 * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
59 * varray.c (dump_varray_statistics): Likewise.
60 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
61 decode_decimal64, encode_decimal128, decode_decimal128,
62 decimal_real_to_decimal): Likewise.
64 2006-07-07 Richard Guenther <rguenther@suse.de>
66 PR tree-optimization/28187
67 * tree-vrp.c (vrp_operand_equal_p): New function.
68 (vrp_bitmap_equal_p): Likewise.
69 (update_value_range): Use them to compare old and new
72 2006-07-06 Roger Sayle <roger@eyesopen.com>
74 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
75 a default case to switch statement to silence compiler warnings.
77 2006-07-06 Roger Sayle <roger@eyesopen.com>
80 * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
81 the configured assembler supports the x87's ffreep mnemonic.
82 * configure: Regenerate.
83 * config.in: Regenerate.
85 * config/i386/i386.c (output_387_ffreep): New function.
86 (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
87 (output_387_reg_move): Likewise.
89 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
91 Port to hosts whose 'sort' and 'tail' implementations
92 treat operands with leading '+' as file names, as POSIX
93 has required since 2001. However, make sure the code still
94 works on pre-POSIX hosts.
95 * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
96 which says you should use "tail -c +N" rather than "tail +Nc".
97 Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
99 2006-07-06 Zdenek Dvorak <dvorakz@suse.cz>
101 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
104 2006-07-06 David Edelsohn <edelsohn@gnu.org>
107 * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
108 PRE_{INC,DEC} of TFmode.
110 2006-07-06 David Edelsohn <edelsohn@gnu.org>
111 Alan Modra <amodra@bigpond.net.au>
114 * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
117 2006-07-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
120 * config/alpha/predicates.md (alpha_swapped_comparison_operator):
121 Remove duplicate gtu.
123 2006-07-05 Jason Merrill <jason@redhat.com>
127 * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
128 * c-common.c (handle_packed_attribute): So don't copy it here.
129 * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
131 2006-07-05 Mike Stump <mrs@apple.com>
133 * doc/invoke.texi (Invoking G++): Clarify prose for g++.
135 2006-07-05 H.J. Lu <hongjiu.lu@intel.com>
138 * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
140 2006-07-05 Richard Guenther <rguenther@suse.de>
143 * config/i386/i386.md (*negdf2_1): Restrict pattern to
144 TARGET_SSE2 targets if using SSE math.
145 (*absdf2_1): Likewise.
147 2006-07-05 Richard Guenther <rguenther@suse.de>
149 PR tree-optimization/28162
150 * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
151 make sure to convert the operands to the correct type.
153 2006-07-04 Paolo Bonzini <bonzini@gnu.org>
155 PR tree-optimization/28218
157 * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
158 to calculate and free the dominator information.
160 2006-07-04 Peter O'Gorman <peter@pogma.com>
162 * mklibgcc.in: chmod 644 before ranlib during install.
164 2006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
165 J"orn Rennecke <joern.rennecke@st.com>
167 * configure.ac (.eh_frame data check): Use diff -b.
169 2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
172 * Makefile.in (BUILD_RTL): Add build/vec.o.
173 (build/gencondmd.o): Filter out -fkeep-inline-functions.
174 (build/genextract): Delete.
175 (build/genautomata): Likewise.
177 2006-07-04 Alan Modra <amodra@bigpond.net.au>
180 * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
181 128-bit IBM long doubles for ABI_V4.
183 2006-07-03 Eric Botcazou <ebotcazou@adacore.com>
185 * tree.c (range_in_array_bounds_p): New predicate.
186 * tree.h (range_in_array_bounds_p): Declare it.
187 * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
188 return a less conservative answer.
189 * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
191 (IS_ELEMENT_FOR_GROUP): New macro.
192 (FOR_EACH_ACTUAL_CHILD): Likewise.
193 (next_child_for_group): New helper function.
194 (can_completely_scalarize_p): Take into account groups.
195 (sra_hash_tree): Handle RANGE_EXPR.
196 (sra_elt_eq): Likewise.
197 (lookup_element): Be prepared for handling groups.
198 (is_valid_const_index): Delete.
199 (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
200 instead of is_valid_const_index.
201 <ARRAY_RANGE_REF>: New case.
202 (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
203 is_valid_const_index.
204 <ARRAY_RANGE_REF>: Do not unconditionally punt.
205 (scan_dump): Dump info for groups too.
206 (decide_instantiation_1): Likewise.
207 (decide_block_copy): Assert that the element is not a group.
208 Propagate decision to groups.
209 (generate_one_element_ref): Handle RANGE_EXPR.
210 (mark_no_warning): Iterate over actual childs.
211 (generate_copy_inout): Likewise.
212 (generate_element_copy): Likewise.
213 (generate_element_zero): Likewise.
214 (generate_element_init_1): Likewise.
215 (dump_sra_elt_name): Handle RANGE_EXPR.
217 2006-07-03 Roger Sayle <roger@eyesopen.com>
219 PR tree-optimization/26251
220 * tree-ssa-threadupdate.c (redirection_block_p): New function.
221 (thread_block): When optimizing for size refuse to thread jumps
222 that would require duplication of blocks other than redirection
225 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
227 * configure.ac: Fix thinko in previous check-in.
228 * configure: Regenerate.
230 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
233 * configure.ac (for lang...): Simplify nesting of conditionals.
234 Test subdir_requires for non-enabled languages. Move processing
235 of lang_opt_files and lang_tree_fiels below that test.
236 * configure: Regenerate.
237 * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
239 2006-07-01 Martin Michlmayr <tbm@cyrius.com>
241 * doc/gcov.texi (Invoking Gcov): Add a missing word.
243 2006-06-30 Kazu Hirata <kazu@codesourcery.com>
245 * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
248 2006-06-29 Jason Merrill <jason@redhat.com>
255 * tree.c (build_decl_stat): Don't hande #pragma visibility here.
256 * c-common.c (c_determine_visibility): Handle it here.
257 * c-decl.c (finish_decl): Call c_determine_visibility for
259 * flags.h (enum symbol_visibility): Sort from most to least visibility.
261 * varasm.c (default_assemble_visibility): Likewise.
262 * c-common.c (handle_visibility_attribute): Complain about trying
263 to give visibility to an already defined class, or trying to change
264 declared visibility. Always attach the attribute.
269 * attribs.c (decl_attributes): Ignore type-in-place attributes
270 once the type has been defined.
272 2006-06-29 Roger Sayle <roger@eyesopen.com>
275 * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
276 to indicate the cpplib has issued an error message for us.
278 2006-06-29 Asher Langton <langton2@llnl.gov>
281 * config/i386/i386.c (ix86_output_function_epilogue): Don't
282 insert a label at the end of an function under Mach-O.
284 2006-06-29 Eric Christopher <echristo@apple.com>
285 Evan Cheng <evan.cheng@apple.com>
287 * predicates.md (vector_all_ones_operand): New.
288 (nonimmediate_or_sse_const_operand): Ditto.
289 * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
290 * config/i386/i386.c (standard_sse_constant_opcode): Define.
291 (standard_sse_mode_p): Ditto.
292 (standard_sse_constant_p): Add case for -1 vector.
293 (ix86_expand_vector_move): Try to use.
294 * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
295 Call standard_sse_constant_opcode.
296 (*movv4sf_internal): Ditto.
297 (*movv2df_internal): Ditto.
299 2006-06-29 Roger Sayle <roger@eyesopen.com>
301 * genpreds.c (write_match_code_switch): Correctly use XSTR instead
302 of XEXP to extract the operands of a MATCH_CODE rtx.
304 2006-06-28 Andrew Pinski <pinskia@gmail.com>
306 * tree.c (tree_size): Do not waste tail padding in
307 struct tree_string and make the size be the same as
308 build_string will generate.
310 2006-06-28 Jason Merrill <jason@redhat.com>
313 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
314 may_aliases already in the tag's annotations to the bitmap.
316 2006-06-28 Roger Sayle <roger@eyesopen.com>
318 * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
320 2006-06-28 Roger Sayle <roger@eyesopen.com>
322 * genpreds.c (generate_switch_p): New function.
323 (add_mode_tests): Push the new mode test down inside an AND expr
324 if this allows the switch-suitable MATCH_CODE to be near the root.
325 (write_match_code_switch): New function to write a MATCH_CODE as
327 (write_predicate_stmts): New function to write a predicate RTX
328 expression as a sequence of statements.
329 (write_one_predicate_function): Use write_predicate_stmts.
330 (write_tm_constrs_h): Likewise.
332 2006-06-26 Fred Fish <fnf@specifix.com>
334 * config/mips/t-sb1: New file.
335 * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
338 2006-06-26 DJ Delorie <dj@redhat.com>
340 * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
342 2006-06-26 Naveen H.S <naveenh@kpitcummins.com>
343 Jayant Sonar <jayants@kpitcummins.com>
344 Jaydeep Vipradas <jaydeepv@kpitcummins.com>
346 * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
347 (subsi3, subsi3_1, subsi3_2): New.
348 * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
349 * config/m32c/mov.md (SI mov peephole): New.
350 * config/m32c/m32.c (m32c_immd_dbl_mov): New.
351 * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
353 2006-06-26 Olivier Hainque <hainque@adacore.com>
355 * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
356 a CALL_EXPR target function declaration.
358 2006-06-26 Richard Guenther <rguenther@suse.de>
360 * tree.c (build_string): Do not waste tail padding in
363 2006-06-26 Richard Guenther <rguenther@suse.de>
365 * ggc-page.c (init_ggc): Add missing element to size_lookup
369 2006-06-23 Richard Guenther <rguenther@suse.de>
371 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
372 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
373 alignment requests instead. Add verification code.
374 Add struct tree_function_decl and struct tree_binfo size to
375 extra_order_size_table. Add missing element to size_lookup
378 2006-06-25 Eric Botcazou <ebotcazou@adacore.com>
381 * fold-const.c (const_binop): Be prepared for self returning zero.
382 Simplify code handling complex values.
384 2006-06-24 Olivier Hainque <hainque@adacore.com>
386 * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
387 (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
390 2006-06-24 Olivier Hainque <hainque@adacore.com>
392 * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
393 ARRAY_REF, so have the callback called for the low bound expression.
395 2006-06-23 Janis Johnson <janis187@us.ibm.com>
397 * tree.h (DECIMAL_FLOAT_TYPE_P): New.
398 * c-typeck.c (c_common_type): Disallow operations on decimal float
399 types and other float types.
400 * convert.c (convert_to_real): Don't ignore conversions involving
403 2006-06-23 Olivier Hainque <hainque@adacore.com>
405 * tree.c (max_int_size_in_bytes): New function, inspired from
406 code in function.c:assign_temp.
407 * tree.h (max_int_size_in_bytes): Declare.
408 * function.c (assign_temp): Use it.
409 * gimplify.c (create_tmp_var): Relax the assertions on the type
410 properties, not mandating constant size any more.
411 (force_constant_size): New static function.
412 (gimple_add_tmp_var): Use it, forcing variable size to a
413 constant upper bound if it is not constant on entry.
415 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
418 * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
419 for initialization and setting of one_only flag to ...
420 (i386_pe_encode_section_info): ...here.
421 (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
422 Recheck that the symbol has not been defined.
424 2006-06-23 Richard Guenther <rguenther@suse.de>
426 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
427 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
428 alignment requests instead. Add verification code.
429 Add struct tree_function_decl and struct tree_binfo size to
430 extra_order_size_table. Add missing element to size_lookup
433 2006-06-22 Roger Sayle <roger@eyesopen.com>
434 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
437 * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
438 call to lang_hooks.types.type_for_mode returned NULL_TREE.
440 2006-06-23 Ben Elliston <bje@au.ibm.com>
442 * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
443 negate dn -- manipulate it directly.
445 2006-06-22 Roger Sayle <roger@eyesopen.com>
446 Steven Bosscher <stevenb.gcc@gmail.com>
449 * reload1.c (gen_reload): Call mark_jump_label on the new insns
450 generated by gen_move_insn to add REG_LABEL notes if necessary.
452 2006-06-22 Bob Wilson <bob.wilson@acm.org>
454 * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
455 (leaf_entry): Remove use of MIN_ESA.
457 2006-06-22 Zdenek Dvorak <dvorakz@suse.cz>
459 PR rtl-optimization/28121
460 * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
463 2006-06-21 DJ Delorie <dj@redhat.com>
465 * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
467 (mulhisi3_r): Likewise.
469 2006-06-21 Richard Sandiford <richard@codesourcery.com>
472 * coverage.c (coverage_counter_alloc): Leave the index type
474 (coverage_counter_alloc): Use null arguments for operands 2 and 3
477 2006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
479 * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
480 section from the "Options for Code Generation Conventions".
482 2006-06-21 Richard Henderson <rth@redhat.com>
486 * config/alpha/predicates.md (small_symbolic_operand): Deny weak
488 (global_symbolic_operand): Allow weak symbols, even if local_p.
490 2006-06-21 Eric Botcazou <ebotcazou@adacore.com>
492 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
493 (find_interesting_uses_address): Punt if above function returns true.
495 2006-06-21 Richard Guenther <rguenther@suse.de>
497 * configure: Regenerated.
499 2006-06-21 Joseph Myers <joseph@codesourcery.com>
501 * config/mips/mips.c (function_arg): Where one part of a
502 complex argument is in registers and the other part in the stack,
503 return a REG not a PARALLEL.
505 2006-06-21 Mark Mitchell <mark@codesourcery.com>
507 * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
508 when cross-compiling. Do not substitute libstdcxx_incdir.
509 * configure: Regenerated.
511 2006-06-21 Jakub Jelinek <jakub@redhat.com>
513 * varasm.c (mergeable_string_section): Check for embedded NULs and
514 NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
515 rather than TREE_STRING_LENGTH bytes.
517 2006-06-21 Richard Guenther <rguenther@suse.de>
519 * ggc-page.c (extra_order_size_table): Add var_ann_d,
520 tree_ssa_name, bitmap_element and phi_node with 4 arguments
523 2006-06-21 Richrad Guenther <rguenther@suse.de>
525 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
526 Limit iteration over the dominators.
528 2006-06-20 Roger Sayle <roger@eyesopen.com>
530 * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
531 (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
533 2006-06-20 Richard Guenther <rguenther@suse.de>
534 Michael Matz <matz@suse.de>
536 * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
538 * alloc-pool.c (free_alloc_pool_if_empty): New function.
539 * et-forest.h (et_free_pools): Prototype new function.
540 * et-forest.c (et_free_tree_force): Free parent occurrence.
541 (et_free_pools): New function.
542 * dominance.c (free_dominance_info): Free et-forest alloc
545 2006-06-20 Roger Sayle <roger@eyesopen.com>
547 * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
548 integer modes, attempt to directly construct an integer constant.
550 * fold-const.c (native_encode_vector): Determine the size of each
551 element from the vector type instead of the first vector element.
553 * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
554 if all of its elements/components are constant.
555 (build_constructor_from_list): Likewise.
557 2006-06-20 Zdenek Dvorak <dvorakz@suse.cz>
559 PR tree-optimization/27331
560 * tree-data-ref.c (free_data_ref): New function.
561 (create_data_ref): Fail if the data reference has unknown access
563 (free_data_refs): Use free_data_ref.
565 2006-06-19 Andrew Pinski <pinskia@gmail.com>
568 * tree-inline.c (setup_one_parameter): Strip useless
569 type conversion before adding it to the IR.
570 (declare_return_variable): Likewise.
572 2006-06-19 Martin Michlmayr <tbm@cyrius.com>
575 * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
577 2006-06-19 Mike Stump <mrs@apple.com>
579 * tree.c (variably_modified_type_p): VM arguments don't make the
582 2006-06-19 Richard Guenther <rguenther@suse.de>
584 * tree-ssa-pre.c (try_combine_conversion): Strip useless
585 type conversions after folding.
587 2006-06-19 Richard Guenther <rguenther@suse.de>
589 * ggc-page.c (extra_order_size_tab): Add entries with
590 size of struct function and basic_block.
591 (size_lookup): Extend to cover sizes up to 511.
592 (ggc_alloc_stat): Adjust user.
593 (ggc_pch_count_object): Likewise.
594 (ggc_pch_alloc_object): Likewise.
595 (ggc_pch_write_object): Likewise.
597 2006-06-19 Zdenek Dvorak <dvorakz@suse.cz>
599 * tree-ssa-loop-niter.c (implies_ge_p): New function.
600 (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
603 2006-06-19 Denis Chertykov <denisc@overta.ru>
605 * config/avr/libgcc.S : Correct my wrong previous commit.
607 2006-06-19 Roger Sayle <roger@eyesopen.com>
610 * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
611 have stripped a SUBREG from the shift count, so we may need to
612 convert_to_mode back to the type's mode before calling make_tree.
613 Use new_amount instead of amount to avoid expanding a tree twice.
615 2006-06-19 Richard Guenther <rguenther@suse.de>
618 * fold-const.c (operand_equal_p): Check if the argument types
619 have the same precision before stripping NOPs.
621 2006-06-19 Daniel Berlin <dberlin@dberlin.org>
623 Fix PR tree-optimization/27341
624 * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
626 * tree-complex.c (pass_lower_complex): Update SMT usage.
628 2006-06-19 Andreas Krebbel <krebbel1@de.ibm.com>
630 * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
631 Add a new alternative to the constraint strings. Add move of
632 operand 1 to 3 to the splitter definition.
633 ("doloop_si_long"): Second contraint alternative removed.
635 2006-06-08 Anatoly Sokolov <aesok@post.ru>
637 * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
638 (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
640 (AVR_HAVE_MOVW) Define.
641 (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
642 (ASM_SPEC): Add avr25.
643 (LINK_SPEC): Add avr25.
644 * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
645 (base_arch_s): Add new member 'have_movw_lpmx'.
646 (avr_arch_types): Init 'have_movw_lpmx'.
647 (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
648 attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
649 attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
650 (avr_override_options): Init 'avr_have_movw_lpmx_p'.
651 (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
653 (avr_file_start): Do not output '.arh' derective.
654 * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
655 (__do_copy_data): Use __AVR_HAVE_LPMX__.
656 * config/avr/avr.md (mcu_enhanced): Delete.
657 (mcu_have_movw): Define.
658 (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
659 (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
660 * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
661 (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
662 attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
663 attiny861 and at86rf401 devices.
665 2006-06-18 Jie Zhang <jie.zhang@analog.com>
667 * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
670 2006-06-17 Karl Berry <karl@gnu.org>
672 * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
673 doc/gccint.texi, doc/install.texi (@dircategory): Use
674 "Software development" instead of "Programming", following
675 the Free Software Directory.
677 2006-06-17 Alexandre Oliva <aoliva@redhat.com>
679 * config/i386/i386.c (legitimate_tls_address)
680 <TARGET_GNU2_TLS>: Add tp after DTPOFF.
681 * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
682 (*tls_dynamic_gnu2_combine_64): Likewise.
684 2006-06-16 Richard Guenther <rguenther@suse.de>
687 * fold-const.c (negate_expr_p): Do not introduce undefined
688 overflow in negating INTEGER_CSTs.
689 (fold_negate_expr): Rename from negate_expr. Revert last
690 change for folding BIT_NOT_EXPR. Change semantics to
691 return NULL_TREE for non-simplified negations. Do not
692 strip type conversions and unify type handling.
693 (negate_expr): New function, wrap around fold_negate_expr
694 but ensure building a tree always. Strip type conversions
695 here, fold to result type.
696 (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
698 2006-06-16 Roger Sayle <roger@eyesopen.com>
701 * reg-stack.c (subst_stack_regs): Handle noreturn function calls
702 that (would) return their results in stack registers.
704 2006-06-16 Michael Matz <matz@suse.de>
705 Richard Guenther <rguenther@suse.de>
707 * fold-const.c (fold_truthop): Only return new tree node if
708 we canonicalized something.
710 2006-06-16 Richard Guenther <rguenther@suse.de>
712 * function.h (enum function_frequency): Move declaration
713 out of struct function.
714 (struct function): Move bool fields and the enum to the bitfield
715 section. Reorder elements to avoid padding. Remove unused
716 fields left over from the RTL inliner removal.
717 * function.c (free_after_compilation): Do not zero removed fields.
718 * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
719 (ipa-type-escape.o): Likewise.
721 2006-06-16 Richard Guenther <rguenther@suse.de>
723 * cgraph.h (struct cgraph_local_info): Turn bool elements
725 (struct cgraph_node): Likewise.
726 (struct cgraph_varpool_node): Likewise.
728 2006-06-15 Richard Guenther <rguenther@suse.de>
730 * fold-const.c (fold_truth_not_expr): Rename from
731 invert_truthvalue. Give it fold_* semantics to avoid
733 (invert_truthvalue): New function. Wrapper around
735 (optimize_minmax_comparison): Avoid creating garbage.
736 (fold_unary): Use fold_truth_not_expr for folding
738 (fold_ternary): Replace uses of invert_truthvalue with
739 fold_truth_not_expr where applicable.
740 * tree.h (fold_truth_not_expr): Prototype.
742 2006-06-16 Richard Guenther <rguenther@suse.de>
744 PR tree-optimization/27781
745 * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
746 * ipa-pure-const.c (target.h): Include.
747 (analyze_function): Do not analyze functions that do not
750 2006-06-15 Andrew MacLeod <amacleod@redhat.com>
753 * tree-dfa.c (referenced_vars_dup_list): Remove.
754 (find_referenced_vars): Remove assert.
755 (referenced_var_check_and_insert): Replace dup list with assert.
756 * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
757 * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
759 2006-06-15 Richard Guenther <rguenther@suse.de>
761 * tree-ssa-structalias.c (alias_get_name): Avoid creating
762 extra unused identifiers if not dumping.
763 (create_variable_info_for): Likewise.
765 2006-06-15 Zdenek Dvorak <dvorakz@suse.cz>
767 * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
768 (derive_constant_upper_bound): Derive more precise upper bound in
769 common cases. Return type changed to double_int.
770 (record_estimate): Reflect the changed return type of
771 derive_constant_upper_bound.
772 * double-int.c (double_int_zext, double_int_sext): Fix.
774 2006-06-15 Paolo Bonzini <bonzini@gnu.org>
776 * configure.ac (CFLAGS): Get them from the toplevel or from the
777 configure invocation.
778 * configure: Regenerate.
779 * Makefile.in (CFLAGS): Substitute value provided by configure.
781 2006-06-14 Mark Mitchell <mark@codesourcery.com>
784 * c-common.h (c_finish_omp_atomic): Adjust declaration.
785 * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
786 rather than calling add_stmt on it.
787 * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
789 2006-06-14 Andreas Krebbel <krebbel1@de.ibm.com>
792 * reload1.c (reload): Remove registers returned by update_eliminables
793 from used_spill_regs.
795 2006-06-13 DJ Delorie <dj@redhat.com>
797 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
799 2006-06-13 Carlos O'Donell <carlos@codesourcery.com>
801 * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
802 html__strip_dir, html__mkdir_p. Enhance install-html target.
803 * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
804 * configure: Regenerate.
806 2006-06-13 Fariborz Jahanian <fjahanian@apple.com>
808 * fold-const.c (fold_cond_expr_with_comparison): Check for
809 Objective-C++ as language in deciding COND_EXPR transformation.
811 2006-06-06 J"orn Rennecke <joern.rennecke@st.com>
814 * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
815 * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
816 * config/sh/lib1funcs.h (SL, SL1): Define.
817 * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
818 * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
819 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
820 (OBJS_Os_4_200): New variable.
821 ($(T)libgcc-Os-4-200.a): Use it.
822 * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
823 when dividing 1 and/or by 0.
825 2006-06-13 Roger Sayle <roger@eyesopen.com>
827 * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
828 before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
829 * configure: Regenerate.
831 2006-06-13 Jie Zhang <jie.zhang@analog.com>
833 * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
834 for real instruction.
836 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
839 * haifa-sched.c (check_cfg): Handle special case.
841 2006-06-13 Eric Botcazou <ebotcazou@adacore.com>
844 * gimplify.c (declare_tmp_vars): Rename into declare_vars.
845 Add debug_info parameter. Chain the vars to the BLOCK instead
846 of the BIND_EXPR if debug info are requested for them.
847 (pop_gimplify_context): Adjust for above change.
848 (gimple_add_tmp_var): Likewise.
849 * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
851 * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
852 (convert_local_reference): Likewise.
853 (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
854 (finalize_nesting_tree_1): Request that debug info be emitted
857 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
859 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
862 2006-06-13 Richard Guenther <rguenther@suse.de>
865 * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
867 2006-06-13 Richard Guenther <rguenther@suse.de>
869 PR tree-optimization/27830
870 * tree-inline.c (copy_body_r): For copying the operand
871 of an ADDR_EXPR make sure to fold &* afterwards.
873 2006-06-12 Eric Botcazou <ebotcazou@adacore.com>
875 * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
876 lvalues in the fb_none case with side-effects.
878 2006-06-12 Kazu Hirata <kazu@codesourcery.com>
880 * tree-flow.h: Remove the prototype for
881 compute_phi_arg_on_exit.
882 * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
883 protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
886 2006-06-12 Mark Shinwell <shinwell@codesourcery.com>
888 * builtins.c (expand_builtin_return_addr): Only use
889 frame_pointer_rtx when count == 0 and we are expanding
890 __builtin_return_address.
892 2006-06-12 Fred Fish <fnf@specifix.com>
894 * config/mips/mips.c (mips_file_start): Create special section
895 ".gcc_compiled_longXX" for o64 ABI as well as EABI.
897 2006-06-11 Eric Christopher <echristo@apple.com>
900 * stor-layout.c (place_field): Remove check for
901 remaining_in_alignment when aligning at the end of a run.
903 2006-06-11 Eric Christopher <echristo@apple.com>
906 * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
909 2006-06-11 Roger Sayle <roger@eyesopen.com>
912 Revert incorrect fix for PR target/27158
913 2006-05-08 Roger Sayle <roger@eyesopen.com>
914 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
915 of a reg_equiv_constant if the result is a legitimate constant.
917 2006-06-11 Roger Sayle <roger@eyesopen.com>
920 * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
921 extract a CONST_VECTOR element and interpret it as an integer.
922 (vspltis_constant): Use const_vector_elt_as_int instead of the
923 macro CONST_VECTOR_ELT in order to handle FP vector modes.
924 * config/rs6000/predicates.md (easy_vector_const): Consider
925 floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
927 2006-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
930 * stor-layout.c (update_alignment_for_field): Don't add extra
931 alignment for packed non-bitfield fields in ms_bitfield_layout_p
934 2006-06-09 Ralf Corsepius <ralf.corsepius@rtems.org>
936 * config/mips/t-rtems: Add EL/EB multilib variants.
938 2006-06-09 Mike Stump <mrs@apple.com>
940 * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
942 2006-06-09 David Daney <ddaney@avtrex.com>
944 * doc/install.texi: Add binutils version recommendation for mips-*-*.
946 2006-06-09 Andreas Krebbel <krebbel1@de.ibm.com>
948 * reload.c (find_reloads): Unset force_reload for 'X' constraint.
950 2006-06-09 Richard Guenther <rguenther@suse.de>
952 PR tree-optimization/26998
953 * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
954 of signed types, only TYPE_MIN_VALUE is special, but for both,
955 minimum and maximum value. Likewise VR_ANTI_RANGE is special
956 in this case, as is -fwrapv.
958 2006-06-08 Mike Stump <mrs@apple.com>
961 * config/darwin.c (darwin_asm_output_anchor): Disable
962 -fsection-anchors on darwin for now.
963 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
964 * rs6000/rs6000.c (optimization_options): Likewise.
966 2006-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
969 * config/i386/i386.c (classify_argument): Skip fields with invalid
972 2006-06-08 Steven Bosscher <steven@gcc.gnu.org>
974 * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
975 (cse_insn): Likewise for the stack_pointer_rtx.
977 2006-06-08 Roger Sayle <roger@eyesopen.com>
979 * tree-ssa-dom.c (record_conditions): Only record "unordered"
980 conditions from floating point comparisons.
982 2006-06-08 Paolo Bonzini <bonzini@gnu.org>
985 * expmed.c (struct alg_hash_entry): Fix type of field T
986 to match synth_mult argument.
987 (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
989 2006-06-08 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
992 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
995 2006-06-08 Richard Guenther <rguenther@suse.de>
998 * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
999 only, if overflow is defined and not trapping.
1000 (negate_expr): Likewise.
1002 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
1004 PR tree-optimization/27872
1005 * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
1006 flag on the new exit edge of the unrolled loop.
1008 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
1010 PR rtl-optimization/26449
1011 * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
1013 2006-06-07 Andrew MacLeod <amacleod@redhat.com>
1016 * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate
1017 referenced_variables with matching DECL_UID's.
1018 (find_referenced_vars): Make sure duplicate list is empty to start.
1019 (referenced_var_p): Remove.
1020 (referenced_var_check_and_insert): Renamed from referenced_var_insert.
1021 Check if var is in the list, and add if needed. Update the duplicate
1022 list if a different var is in the list with the same DECL_UID.
1023 (add_referenced_var): Call routine to check and insert.
1024 * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
1025 * tree-flow.h (referenced_vars_dup_list): External declaration.
1027 2006-06-07 Fred Fish <fnf@specifix.com>
1029 * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
1032 2006-06-07 Paolo Bonzini <bonzini@gnu.org>
1035 * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
1036 the imaginary and real parts of a clobbered register.
1037 Emit insn to set the imaginary part.
1039 2006-06-06 Peter Lemieszewski <lemie@us.ibm.com>
1041 * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
1042 in lieu of unwind-dw2-fde.c.
1044 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1046 * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
1048 2006-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1051 * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
1052 ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
1053 ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
1054 V4SImode temporaries and operations instead.
1056 2006-06-06 Joseph S. Myers <joseph@codesourcery.com>
1058 * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
1061 2006-06-06 Mike Stump <mrs@apple.com>
1063 * Makefile.in: Rename to htmldir to build_htmldir to avoid
1064 installing during build.
1066 2006-06-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1068 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
1070 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
1071 * config/ia64/ia64.c (params.h): New header.
1072 (ia64_optimization_options): New function to adjust parameters.
1073 * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
1074 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
1075 * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
1077 2006-06-05 Kazu Hirata <kazu@codesourcery.com>
1079 * stor-layout.c (debug_rli): Fix a typo in a debug message.
1081 2006-06-05 Steve Ellcey <sje@cup.hp.com>
1084 * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
1086 2006-06-05 Dorit Nuzman <dorit@il.ibm.com>
1087 Victor Kaplansky <victork@il.ibm.com>
1089 PR tree-optimization/26360
1090 * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
1093 2006-06-04 Roger Sayle <roger@eyesopen.com>
1094 Andrew Pinski <pinskia@physics.uc.edu>
1097 * c-common.c (c_common_truthvalue_conversion): Explicitly check
1098 for LABEL_DECL before calling DECL_WEAK.
1101 * c-typeck.c (build_binary_op): Likewise, explicitly check for
1102 LABEL_DECL and PARM_DECL.
1104 2006-06-05 Joseph S. Myers <joseph@codesourcery.com>
1108 * c-decl.c (grokdeclarator): Disallow variably modified types at
1109 file scope. Avoid marking shared array type of constant size as
1112 2006-06-04 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1115 * c-common.c (fold_offsetof_1): Handle static members.
1117 2006-06-04 Eric Christopher <echristo@apple.com>
1119 * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
1120 (debug_rli): Output value for remaining_in_alignment.
1121 (update_alignment_for_field): Unconditionalize
1122 ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
1123 extra alignment code.
1124 (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
1125 ms_bitfield_layout_p code. Rewrite handling of structure fields.
1126 * tree.h (record_layout_info_s): Remove prev_packed.
1127 * doc/extend.texi (ms_struct): Add documentation of format.
1129 2006-06-04 Mark Shinwell <shinwell@codesourcery.com>
1131 * tree.h: Declare folding_initializer.
1132 * builtins.c (fold_builtin_constant_p): Give definite answer
1133 if folding inside an initializer.
1134 * fold-const.c: Define folding_initializer.
1135 (START_FOLD_INIT): Save and then set folding_initializer.
1136 (END_FOLD_INIT): Restore folding_initializer.
1138 2006-06-04 Richard Guenther <rguenther@suse.de>
1140 PR tree-optimization/27039
1141 * fold-const.c (fold_comparison): Handle pointer comparison
1142 again for all comparison codes. Compare offsets in signed
1144 (fold_binary): Move code from here.
1146 2006-06-03 Roger Sayle <roger@eyesopen.com>
1149 * config/i386/i386.c (construct_container): Split static issued_error
1150 flag into issued_sse_arg_error, issued_sse_ret_error and
1151 issued_x87_ret_error. Issue a daignostic if the x86-64 ABI
1152 requires the use of x87 registers and the user explicitly
1153 specified the -mno-80387 command line option.
1155 2006-06-02 Geoffrey Keating <geoffk@apple.com>
1157 * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
1158 HAVE_DECL_SIGALTSTACK.
1160 (segv_handler): Use MC_FLD.
1161 * configure.ac: Check for a sigaltstack declaration.
1162 Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
1163 * configure: Regenerate.
1164 * config.in: Regenerate.
1166 2006-06-03 J"orn Rennecke <joern.rennecke@st.com>
1169 * Makefile.in (stmp-fixinc): Fix typo.
1171 2006-06-02 Roger Sayle <roger@eyesopen.com>
1173 * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
1174 are type correct. Clean-up.
1175 <REALPART_EXPR>: Likewise. Optimize creal(~z) as creal(z).
1176 <IMAGPART_EXPR>: Likewise. Optimize cimag(~z) as -cimag(z).
1178 2006-06-01 DJ Delorie <dj@redhat.com>
1180 * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
1181 shift, as we've disabled the "switch" insn that needs it.
1183 2006-06-01 Per Bothner <bothner@bothner.com>
1185 Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
1186 * c-opts.c (finish_options): Use internal line 0 for <command-line>.
1187 * c-ppoutput.c (cb_define): Don't increment line 0.
1189 2006-06-01 Pete Steinmetz <steinmtz@us.ibm.com>
1191 * doc/invoke.texi: Add cpu_type power6.
1192 * config.gcc: Add cpu_type power6.
1193 * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
1194 to power5+ with Altivec.
1195 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
1196 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
1198 2006-05-30 Anatoly Sokolov <aesok@post.ru>
1200 * config/avr/avr.h (SET_ASM_OP): Define.
1202 2006-06-01 Kazu Hirata <kazu@codesourcery.com>
1204 * config/bfin/bfin.c: Fix comment typos.
1206 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
1209 * doc/install.texi: Document --enable-bootstrap and
1210 --disable-bootstrap.
1212 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
1214 * doc/install.texi: Document that InfoZIP can replace jar.
1216 2006-05-31 Roger Sayle <roger@eyesopen.com>
1218 * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
1219 isn't available, directly generate the simpler x87 patterns without
1220 the (use (const_int 0)).
1221 * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
1222 implementation isn't available.
1223 (*negdf2_1): Likewise.
1224 (*negxf2_1): XF mode negation is always done using the x87.
1225 (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
1227 2006-05-31 Roger Sayle <roger@eyesopen.com>
1229 * builtins.c (fold_builtin_cabs): Delete prototype. Require an
1230 additional FNDECL argument. Optimize cabs(-z) and cabs(~z) as
1232 (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
1234 2006-05-31 Jie Zhang <jie.zhang@analog.com>
1236 * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
1237 * config/bfin/bfin.c (basic-block.h): Include.
1238 (struct machine_function): New.
1239 (bfin_init_machine_status): New.
1240 (override_options): Initialize init_machine_status.
1241 (bfin_hardware_loop): New.
1242 (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
1243 (DEF_VEC_P (loop_info)): New.
1244 (DEF_VEC_ALLOC_P (loop_info,heap)): New.
1245 (struct loop_info): New.
1246 (loop_info): New typedef.
1247 (struct loop_work): New.
1248 (loop_work): New typedef.
1249 (DEF_VEC_O (loop_work)): New.
1250 (DEF_VEC_ALLOC_O (loop_work,heap)): New.
1251 (bfin_dump_loops): New.
1252 (bfin_bb_in_loop): New.
1253 (bfin_scan_loop): New.
1254 (bfin_optimize_loop): New.
1255 (bfin_reorg_loops): New.
1256 (bfin_reorg): Use bfin_reorg_loops.
1257 * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
1259 (I_REGNO_P): Simplify.
1260 (DP_REGNO_P, DPREG_P): New macros.
1261 (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
1262 REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
1263 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
1264 Add LT_REGS, LC_REGS, LB_REGS.
1265 (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
1267 (REGNO_REG_CLASS): Deal with loop registers.
1268 * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
1270 (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
1271 New constants for loop registers.
1272 (UNSPEC_LSETUP_END): New.
1273 (seq_insns): New define_attr. Set it for appropriate insns.
1274 (movsi_insn): Add alternatives for move from/to
1275 loop count registers.
1276 (doloop_end): New define_expand.
1277 (loop_end): New define_insn.
1278 (define_split for bad doloop_end): New.
1279 (lsetup_with_autoinit): New define_insn.
1280 (lsetup_without_autoinit): New define_insn.
1281 (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
1282 * config/bfin/predicates.md (lc_register_operand): New.
1283 (lt_register_operand): New.
1284 (lb_register_operand): New.
1285 (nondp_register_operand): New.
1286 (nondp_reg_or_memory_operand): New.
1287 * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
1289 2006-05-31 Jie Zhang <jie.zhang@analog.com>
1291 * config/bfin/bfin.c (bfin_delegitimize_address): New.
1292 (TARGET_DELEGITIMIZE_ADDRESS): Define.
1294 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
1296 * Makefile.in (CATALOGS): Add po/ prefix.
1297 * configure: Regenerated.
1299 2006-05-31 Richard Earnshaw <richard.earnshaw@arm.com>
1302 * arm.c (arm_print_operand case 'S'): Validate that the operand is
1303 a shift operand before calling shift_op. Avoid redundant call of
1306 2006-05-30 Naveen.H.S <naveenh@kpitcummins.com>
1307 DJ Delorie <dj@redhat.com>
1309 * config/m32c/m32c.c (m32c_expand_insv): Check that the value
1310 we're inserting is a singlt-bit constant.
1312 2006-05-30 Roger Sayle <roger@eyesopen.com>
1314 * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
1315 width to HOST_WIDE_INT to avoid comparison warnings on some targets.
1317 2006-05-30 Roger Sayle <roger@eyesopen.com>
1319 PR tree-optimization/23452
1320 * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
1321 to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
1322 (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
1323 complex values and with -ffast-math for FP complex values.
1325 2006-05-30 Kazu Hirata <kazu@codesourcery.com>
1327 * c-common.h: Remove the prototype for yyparse.
1328 * rtl.h: Remove the prototype for init_loop.
1330 2006-05-30 Andreas Krebbel <krebbel1@de.ibm.com>
1332 * cse.c (validate_canon_reg, cse_insn): Don't change insns without
1335 2006-05-30 Roger Sayle <roger@eyesopen.com>
1337 * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
1339 <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
1340 log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
1342 2006-05-30 Dirk Mueller <dmueller@suse.de>
1345 * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
1346 for CONSTANT_CLASS_P expresisons.
1348 2006-05-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1351 * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
1353 2006-05-30 Zdenek Dvorak <dvorakz@suse.cz>
1355 PR tree-optimization/27779
1356 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
1357 initial_condition instead of CHREC_LEFT.
1359 2006-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1361 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
1362 * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
1363 Make prototypes ISO C90.
1365 2006-05-30 Mircea Namolaru <namolaru@il.ibm.com>
1366 Leehod Baruch <leehod.baruch@weizmann.ac.il>
1368 * see.c (see_analyze_one_def): Correct check.
1369 (see_get_extension_data): Check if extension is parallel.
1370 (see_get_extension_reg): Likewise.
1372 2006-05-30 Uros Bizjak <uros@kss-loka.si>
1375 * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
1376 into register for (code == GTU).
1378 2006-05-29 Roger Sayle <roger@eyesopen.com>
1380 PR tree-optimization/24964
1381 * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
1382 <MULT>: Minor clean-up. Don't convert x*-1.0 into -x if we honor
1383 signaling NaNs. Optimize -x*-x as x*x for all float modes, and
1384 abs(x)*abs(x) as x*x for scalar floating point modes.
1386 2006-05-29 Sebastian Pop <pop@cri.ensmp.fr>
1389 * lambda-code.c (perfect_nestify): Don't copy statements
1390 in the inner loop: move them to the inner loop header.
1392 2006-05-29 Diego Novillo <dnovillo@redhat.com>
1395 * c-tree.texi: Document OpenMP directives and clauses.
1397 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
1399 * varasm.c (globalize_decl): Fix indentation.
1401 2006-05-29 Diego Novillo <dnovillo@redhat.com>
1404 * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
1405 pass_fre, pass_store_ccp, pass_copy_prop,
1406 pass_store_copy_prop, pass_merge_phi, pass_nrv,
1407 pass_return_slot, pass_object_size, pass_lim,
1408 pass_linear_transform, pass_empty_loop, pass_complete_unroll,
1409 pass_loop_prefetch and pass_stdarg.
1411 2005-05-29 Bernd Schmidt <bernd.schmidt@analog.com>
1413 * config/bfin/bfin.opt (mfdpic): New option.
1414 * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
1415 (EXTRA_MULTILIB_PARTS): Likewise.
1416 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
1417 (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
1419 * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
1420 (CRT_CALL_STATIC_FUNCTION): New.
1421 * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
1423 (CRT_CALL_STATIC_FUNCTION): New.
1424 * config/bfin/bfin.c (legitimize_pic_address): Now static. Handle
1426 (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
1427 (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
1428 (initialize_trampoline): Changed to handle FD-PIC code generation.
1429 (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
1430 (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
1431 (override_options): Disallow -mid-shared-library -mfdpic combination.
1432 Can't do unaligned ops if FD-PIC.
1433 Turn off flag_pic if trying to generate non-id-shared-library
1434 non-fdpic code, since it's not supported.
1435 (bfin_assemble_integer): New function.
1436 (TARGET_ASM_INTEGER): Define.
1437 * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
1439 * config/bfin/crtn.s: Restore them.
1440 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
1442 (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
1443 LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
1444 (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
1445 (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
1446 (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
1448 (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
1449 FDPIC_REGS and FDPIC_FPTR_REGS.
1450 (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
1451 * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
1452 UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
1453 (load_funcdescsi): New pattern.
1454 (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
1455 sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
1456 call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
1458 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
1460 * gcse.c, rtlanal.c: Remove obsolete comments associated with
1463 * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
1465 * tree-flow.h: Remove the prototype for add_type_alias.
1466 * tree-ssa-alias.c (add_type_alias): Remove.
1468 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
1470 * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
1471 config/fr30/fr30.md, config/i386/i386-interix.h,
1472 config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
1473 config/sh/superh64.h, config/v850/v850.c, df-core.c,
1474 df-problems.c, df.h, except.c, final.c, haifa-sched.c,
1475 lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
1476 reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
1477 tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
1478 Follow spelling conventions.
1479 * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
1480 Follow spelling conventions.
1482 2006-05-27 Richard Guenther <rguenther@suse.de>
1485 * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
1486 to produce a constant of value 1 of generic type.
1488 2006-05-27 Dirk Mueller <dmueller@suse.de>
1490 * cgraphunit.c (decide_is_function_needed): Fix wrong
1493 2006-05-26 Ulrich Weigand <uweigand@de.ibm.com>
1495 PR rtl-optimization/27661
1496 * reload.c (find_reloads): When reloading a VOIDmode constant
1497 as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
1498 use Pmode as mode of the reload register.
1500 2006-05-26 Eric Botcazou <ebotcazou@adacore.com>
1502 * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
1503 is enabled at -O and above.
1505 2006-05-26 Steven Bosscher <steven@gcc.gnu.org>
1508 * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
1511 2006-05-25 Mark Mitchell <mark@codesourcery.com>
1514 * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
1515 for anonymous variables explicitly declared by front ends.
1517 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
1519 * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
1520 (struct alias_info): Add new field ref_all_symbol_mem_tag.
1521 * tree-ssa-alias.c (compute_may_aliases): If the program contains
1522 ref-all pointers, run a finalization pass for them.
1523 (compute_flow_insensitive_aliasing): Skip ref-all pointers.
1524 (finalize_ref_all_pointers): New function.
1525 (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
1526 regular pointer type to a ref-all pointer type.
1527 (get_tmt_for): Return the special memory tag for ref-all pointers.
1529 2006-05-25 Richard Guenther <rguenther@suse.de>
1532 * fold-const.c (fold_binary): Do not look at the stripped
1533 op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
1535 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
1537 * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
1538 for LT and GT if the computed range is effectively empty.
1540 2006-05-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1543 * pa/pa-modes.def: Use mips_single_format, mips_double_format and
1544 mips_quad_format formats instead of ieee_single_format,
1545 ieee_double_format and ieee_quad_format formats, respectively.
1547 2006-05-24 Zdenek Dvorak <dvorakz@suse.cz>
1549 PR tree-optimization/27639
1550 PR tree-optimization/26719
1551 * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
1552 call to scev_probably_wraps_p.
1553 * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
1554 used_in_pointer_arithmetic_p, convert_step): Removed.
1555 (nowrap_type_p): New function.
1556 (scev_probably_wraps_p): Rewritten.
1557 * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
1558 chrec_convert if chrec_convert_aggressive might have been used.
1559 * tree-chrec.c (convert_affine_scev, chrec_convert_1,
1560 scev_direction): New functions.
1561 (chrec_convert): Changed to a wrapper over chrec_convert_1.
1562 * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
1563 instead of convert_step.
1564 * tree-flow.h (scev_probably_wraps_p): Declaration changed.
1565 (convert_step): Declaration removed.
1566 (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
1568 2006-05-23 Kenneth Zadeck <zadeck@naturalbridge.com>
1570 * df-core.c: Added to header comments.
1571 * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
1572 df_ur_bb_info, df_urec_bb_info): Added comments.
1573 * df-problems (df_ref_bitmap, ru, rd, lr, ur,
1574 urec, ri problems): Fixed header comments.
1575 (df_ru_transfer_function): Fixed in-out set dyslexia when copying
1576 code from df_rd_transfer_function.
1578 2006-05-23 Richard Sandiford <richard@codesourcery.com>
1580 * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
1581 (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
1582 MIN_UNITS_PER_WORD to set the default. Also use it in the guard.
1584 2006-05-23 Joseph Myers <joseph@codesourcery.com>
1586 * expr.c (undefined_operand_subword_p): New.
1587 (emit_move_multi_word): Do not generate move from undefined bits
1588 of a paradoxical subreg.
1590 2006-05-23 Richard Sandiford <richard@codesourcery.com>
1592 PR rtl-optimization/27736
1593 * combine.c (replaced_rhs_value): New variable.
1594 (combine_instructions): Set it.
1595 (distribute_notes): When distributing a note in replaced_rhs_insn,
1596 check whether the value was used in replaced_rhs_value.
1598 2006-05-23 Andrew MacLeod <amacleod@redhat.com>
1601 * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
1602 add_referenced_var instead of add_referenced_tmp_var.
1603 * tree-complex.c (create_one_component_var): Use add_referenced_var.
1604 * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
1606 * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
1607 tree_optimize_tail_calls_1): Use add_referenced_var.
1608 * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
1609 * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
1610 Use add_referenced_var.
1611 * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
1612 * gimplify.c (force_gimple_operand): Use add_referenced_var.
1613 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
1614 Use add_referenced_var.
1615 * tree-dfa.c (struct walk_state): Remove.
1616 (find_referenced_vars): Remove walk state and vars_found hash table.
1617 (make_rename_temp): Use add_referenced_var.
1618 (find_vars_r): Pass less parameters to add_referenced_var.
1619 (referenced_var_p): New. Is var in referenced_var hash table.
1620 (referenced_var_insert): Assert var isn't already in hash table.
1621 (add_referenced_var): Don't need walk_state parameter. Add var if it
1622 isn't already in the hash table.
1623 (add_referenced_tmp_var): Remove.
1624 (find_new_referenced_vars_1): Use add_referenced_var.
1625 * tree-ssa-pre.c (create_expression_by_pieces,
1626 insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
1627 Use add_referenced_var.
1628 * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
1629 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
1630 lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
1632 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
1633 vect_create_data_ref_ptr, vect_create_destination_var,
1634 vect_init_vector, vect_build_loop_niters,
1635 vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
1636 vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
1637 Use add_referenced_var.
1638 * tree-outof-ssa.c (create_temp): Use add_referenced_var.
1639 * tree-flow.h (add_referenced_tmp_var): Remove prototype
1640 (add_referenced_var): Add prototype.
1641 * tree-ssa-structalias.c (get_constraint_for,
1642 intra_create_variable_infos): Use add_referenced_var.
1644 2006-05-23 Alexandre Oliva <aoliva@redhat.com>
1646 * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
1647 big-endian paradoxical subregs.
1648 * var-tracking.c (struct micro_operation_def): Document that,
1649 for modify micro operations, insn is the subsequent instruction.
1650 (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
1651 (var_reg_set, var_mem_set): ... new functions.
1652 (add_stores): Record subsequent insn.
1653 (compute_bb_dataflow): Use new functions for MO_USE.
1654 (emit_notes_in_bb): Use new functions for MO_USE. Emit use
1655 notes after the insn, and modify notes before the insn known
1656 to be the subsequent one.
1657 (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
1659 2006-05-23 Kazu Hirata <kazu@codesourcery.com>
1662 * config/i386/i386.c (ix86_expand_builtin): Use
1663 gen_sse3_monitor64 for TARGET_64BIT.
1665 2006-05-22 Kenneth Zadeck <zadeck@naturalbridge.com>
1667 PR rtl-optimization/26375
1668 PR rtl-optimization/26855
1669 * df-problems (df_ru_bb_local_compute_process_def): Removed update
1671 (df_ru_bb_local_compute): Reversed statements and removed bogus
1672 comment explaining why they should be in wrong order.
1673 (df_ru_dump, df_rd_dump): Enhanced debug info.
1674 * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
1676 * ddg.c (add_deps_for_def): Converted use of reaching defs to
1677 reaching uses and fixed space problem.
1679 2006-05-23 Jan Hubicka <jh@suse.cz>
1681 * cgraphunit.c (decide_is_function_needed): Also nested functions
1682 and functions declared inline can be optimized out at -O0.
1684 2006-05-22 Gerald Pfeifer <gerald@pfeifer.com>
1686 * doc/install.texi (Configuration): Remove reference to CrossGCC
1690 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
1693 * config/i386/i386.c (ix86_expand_branch): Jump to simple if
1694 ix86_compare_emitted is non-NULL.
1696 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1699 * stmt.c (expand_asm_operands): Skip asm statement with erroneous
1702 2006-05-22 Richard Sandiford <richard@codesourcery.com>
1704 PR rtl-optimization/25514
1705 * combine.c (replaced_rhs_insn): New variable.
1706 (combine_instructions): Set replaced_rhs_insn when trying to replace
1707 a SET_SRC with a REG_EQUAL note.
1708 (distribute_notes): Use replaced_rhs_insn when determining the live
1709 range of a REG_DEAD register.
1711 2006-18-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
1712 Anatoly Sokolov <aesok@post.ru>
1714 * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
1715 attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
1716 attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
1717 atmega164p, atmega324p, atmega644p, atmega644, atmega329,
1718 atmega3290, atmega649, atmega6490, atmega406, atmega640,
1719 atmega1280, atmega1281, at90can32, at90can64, at90usb646,
1720 at90usb647, at90usb1286 and at90usb1287 devices.
1721 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1722 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1724 2006-05-22 Richard Sandiford <richard@codesourcery.com>
1726 * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
1728 2006-05-22 Richard Guenther <rguenther@suse.de>
1731 2006-01-31 Richard Guenther <rguenther@suse.de>
1732 Paolo Bonzini <bonzini@gnu.org>
1734 * doc/install.texi (--disable-libgcc-math): Document.
1736 2006-05-22 Richard Guenther <rguenther@suse.de>
1739 2006-01-31 Richard Guenther <rguenther@suse.de>
1741 * doc/invoke.texi (-msselibm): Document.
1742 * target.h (expand_library_builtin): New target hook.
1743 * builtins.c (expand_builtin): Use expand_library_builtin.
1744 (default_expand_library_builtin): New function.
1745 * gcc.c (LINK_GCC_MATH_SPEC): Define.
1746 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
1747 (link_gcc_math_spec): Declare.
1748 (static_specs): Add link_gcc_math_spec.
1749 * expr.h (default_expand_library_builtin): Declare.
1750 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
1751 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
1752 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
1753 * config/i386/i386.opt (msselibm): New target option.
1754 * config/i386/i386.c (ix86_builtin_function_variants): New array.
1755 (ix86_init_sse_abi_builtins): New function.
1756 (ix86_expand_library_builtin): Likewise.
1757 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
1758 (override_options): Handle error conditions wrt -msselibm.
1759 (ix86_builtins): Add function codes for SSE2 ABI builtins.
1760 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
1761 * doc/extend.texi (__builtin_sse2_*): Document new target specific
1764 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1767 * c-common.c (self_promoting_args_p): Skip erroneous args.
1770 * c-decl.c (finish_struct): Skip erroneous fields.
1772 2006-05-22 Nick Clifton <nickc@redhat.com>
1774 * config/cris/cris.opt (march): Remove VarExists attribute.
1775 (max-stackframe=): Likewise.
1777 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
1779 * doc/rtl.texi: Fix a typo.
1780 * see.c: Fix comment typos.
1782 * tree-ssa-structalias.h (alias_info): Remove num_references.
1784 2006-05-21 Mike Stump <mrs@apple.com>
1786 * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
1788 (darwin_pragma_options): Use BAD instead.
1789 (darwin_pragma_unused): Likewise.
1790 (darwin_pragma_ms_struct): Likewise.
1792 2006-05-21 David Edelsohn <edelsohn@gnu.org>
1794 * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
1796 2006-05-21 Kazu Hirata <kazu@codesourcery.com>
1798 PR rtl-optimization/27671
1799 * simplify-rtx.c (simplify_relational_operation_1): Fix
1800 simplifications of (eq/ne (xor x y) y) and
1801 (eq/ne (xor x y) x).
1803 PR tree-optimization/26622.
1804 * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
1807 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
1809 * tree-cfg.c: Prune whitespace.
1810 (debug_tree_cfg): Point to correct header containing the
1813 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
1816 * cgraphunit.c (verify_cgraph_node): Typo in error message.
1818 2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
1821 * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
1822 or sorry count is non zero.
1824 2006-05-20 Andreas Schwab <schwab@suse.de>
1826 * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
1828 2006-05-19 Daniel Berlin <dberlin@dberlin.org>
1829 Kenneth Zadeck <zadeck@naturalbridge.com>
1831 PR rtl-optimization/26855
1833 * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
1835 (df_scan_alloc): Added code to properly handle multiword hard
1836 registers and add all_blocks parameter.
1837 (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
1838 code to properly handle multiword hard registers.
1839 (df_rescan_blocks): Added code to remove deleted blocks from
1841 (df_ref_create_structure, df_ref_record): Added code to properly
1843 (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
1844 and set DF_REF_PARTIAL.
1845 (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
1846 (df_uses_record): Added DF_REF_PARTIAL for subreg.
1847 (df_scan_add_problem): Added flags parameter.
1848 (df_ref_create_structure): Changed switching structure.
1849 (df_bb_refs_record): Fixed case where duplicate artificial refs
1850 were created. Changed location of flags.
1851 (df_record_entry_block_defs): Added code to make stack pointer
1852 live in entry block. Refined cases where frame pointer is needed.
1853 Changed location of flags.
1854 (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
1855 (df_set_state): Removed function.
1856 (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
1857 df_insn_create_insn_record, df_insn_refs_delete,
1858 df_ref_create_structure): Formatting changes.
1859 * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
1860 df_delete_basic_block): New function.
1861 (df_init): Changed location of flags.
1862 (df_add_problem): Added flags parameter and the way flags are
1864 (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
1865 debug_df_chain): Improved debugging output.
1866 (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
1867 (df_refs_chain_dump): Removed df parameter.
1868 (df_iterative_dataflow): Added consistency check.
1869 (df_prune_to_subcfg): Made public.
1870 (df_analyze_problem): Added blocks_to_init parameter and made
1872 (df_ref_record, df_bb_refs_record, df_mark_reg,
1873 df_record_exit_block_uses): Whitespace changes.
1874 (df_dump): Whitespace changes.
1875 * df.h: Some reordering to remove forward references.
1876 (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
1877 DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
1878 (df_ref_flags.DF_REF_CLOBBER): Deleted field.
1879 (dataflow.flags): New field.
1880 (df.flag): Deleted field.
1881 (df_alloc_function): Added additional bitmap parameter.
1882 (df_dependent_problem_function): New type.
1883 (df_problem.changeable_flags): New field.
1884 (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
1885 DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
1886 (df_mw_hardreg): New struct.
1887 (DF_INSN_UID_MWS): New macro.
1888 (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
1890 (df_add_problem, df_ru_add_problem, df_rd_add_problem,
1891 df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
1892 df_ri_add_problem, df_scan_add_problem): Added flags parameter.
1893 (df_set_state): Removed function.
1894 (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
1895 * df-problems.c (df_chain_dump): Removed df parameter.
1896 (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
1897 df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
1899 (df_ru_alloc, df_rd_alloc): Now resets all blocks.
1900 (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
1901 df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
1902 Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
1903 DF_REF_MUST_CLOBBER cases.
1904 (df_ru_bb_local_compute_process_def,
1905 df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
1906 df_lr_bb_local_compute, df_ur_bb_local_compute,
1907 df_chain_create_bb): Made subreg aware.
1908 (df_ru_bb_local_compute, df_rd_bb_local_compute,
1909 df_lr_bb_local_compute, df_lr_bb_local_compute,
1910 df_chain_create_bb): Cleanup to use proper macros.
1911 (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
1912 code to fixup bitvectors.
1913 (df_ri_alloc): Cleared lifetime.
1914 (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
1915 df_create_unused_note): New function.
1916 (df_ri_bb_compute, df_ri_compute): Added code to create/update
1917 REG_DEAD and REG_UNUSED notes as well as register information.
1918 (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
1919 df_chains_dump): Fixed crash if problem was never run.
1920 (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
1921 df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
1922 df_ri_add_problem): Processes flags in uniform manner.
1923 (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
1924 df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
1925 df_rd_dump, df_urec_free_bb_info): Formatting changes.
1926 (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
1927 df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
1928 df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
1929 df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
1930 df_ur_dump, df_urec_free_bb_info, df_urec_dump,
1931 df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
1932 * modulo-sched.c (sms_schedule): Added flag parameter to calls.
1933 * see.c (see_initialize_data): Ditto.
1934 * final.c (rest_of_clean_state) Added regstack_completed.
1935 * rtl.h (regstack_completed): Ditto.
1936 * reg-stack.c (regstack_completed): Ditto.
1938 2006-05-19 Mike Stump <mrs@apple.com>
1940 * c-tree.h (default_conversion): Remove.
1941 * c-common.h (default_conversion): Add.
1943 2006-05-19 Zdenek Dvorak <dvorakz@suse.cz>
1945 * tree-vrp.c (valid_value_p): New function.
1946 (adjust_range_with_scev): Fail if the value of bound is not
1949 2006-05-19 Richard Sandiford <richard@codesourcery.com>
1951 * config/mips/linux-unwind.h: Include <asm/unistd.h>
1952 (mips_fallback_frame_state): Use syscall numbers to determine
1953 the appropriate li instruction for the current ABI. Only use
1954 __NR_sigreturn for o32.
1956 2006-05-19 Nicolas Setton <setton@adacore.com>
1958 * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
1959 * langhooks.c (lhd_dwarf_name): New function.
1960 * langhooks-def.h (lhd_dwarf_name): Declare.
1961 (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
1962 * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
1963 * ada/misc.c (gnat_dwarf_name): New function.
1964 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
1966 2006-05-19 Richard Sandiford <richard@codesourcery.com>
1968 * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
1970 (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
1971 MIN_UNITS_PER_WORD logic from libgcc2.h. Do nothing if
1972 LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
1973 * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
1974 Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
1975 determine the size of Wtype, etc.
1976 * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
1977 (swfloatfuncs): New variable.
1978 (dwfloatfuncs): Likewise.
1979 (lib2funcs): Remove floating-point conversion functions from
1980 initial assignment. Use LIB2_SIDITI_CONV_FUNCS to determine
1981 the set of conversion routines needed. Allow entries to specify
1982 an object name, filename and word size. Update users accordingly.
1983 * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
1984 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
1988 2006-02-08 Roger Sayle <roger@eyesopen.com>
1991 * config/fixtfdi.c: New libgcc source file.
1992 * config/fixunstfdi.c: New source file.
1993 * config/floatditf.c: New source file.
1994 * config/floatunditf.c: New souce file.
1995 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
1996 files above instead of config/mips/_tilib.c.
1997 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
1999 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2001 * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
2002 * pa/pa-hpux11.h (LIB_SPEC): Update comment.
2004 2006-05-18 Mike Stump <mrs@apple.com>
2006 Fix up vla, vm and [*] sematics.
2012 * c-tree.h (struct c_arg_info): Add had_vla_unspec.
2013 (c_vla_unspec_p): Add.
2014 (c_vla_type_p): Add.
2015 * c-decl.c (struct c_scope): Add had_vla_unspec.
2016 (build_array_declarator): Add support for [*].
2017 (grokdeclarator): Likewise.
2018 (grokparms): Likewise.
2019 (get_parm_info): Likewise.
2020 * c-objc-common.c (c_vla_unspec_p): Likewise.
2021 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
2022 * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
2023 typeof when argument is a variably modified type not inside sizeof or alignof.
2024 (c_parser_direct_declarator_inner): Propagate errors.
2025 (c_parser_sizeof_expression): Add support for [*].
2026 (c_parser_parms_declarator): Initialize had_vla_unspec.
2027 (c_parser_parms_list_declarator): Likewise.
2028 * c-typeck.c (c_vla_type_p): Add.
2029 (composite_type): Add support for vla compositing.
2030 (comptypes_internal): Add support for vla compatibility.
2031 (c_expr_sizeof_expr): Evaluate vla arguments.
2032 * tree.c (variably_modified_type_p): Update comment for [*].
2034 2006-05-18 Michael Matz <matz@suse.de>
2037 * config.host: Make assignments to host_xmake_file cumulative.
2038 * config.host (*-darwin*): Test $host, not $target.
2040 2006-05-12 Stuart Hastings <stuart@apple.com>
2042 * config/i386/i386.opt (-mstackrealign): New flag.
2043 * config/i386/i386.c (force_align_arg_pointer): New attribute.
2044 (ix86_handle_cconv_attribute): Emit error when
2045 force_align_arg_pointer attribute collides with too many regparms.
2046 (ix86_function_regparm): Limit regparms when used with
2047 force_align_arg_pointer attribute. (ix86_internal_arg_pointer):
2048 Support stack-realigning prologue in non-main functions. Emit
2049 warning for nested functions under -mstackrealign, emit error for
2050 nested functions with force_align_arg_pointer attribute.
2051 * doc/extend.texi (force_align_arg_pointer): Document it.
2052 * doc/invoke.texi (-mstackrealign): Document it.
2054 2006-05-17 Kazu Hirata <kazu@codesourcery.com>
2056 PR rtl-optimization/27477
2057 * combine.c (try_combine): Don't split a parallel consisting
2058 of two sets into two individual sets if both sets reference
2061 2006-05-17 H.J. Lu <hongjiu.lu@intel.com>
2063 * config/arm/arm.opt (target_fpe_name): Remove VarExists.
2064 * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
2066 * doc/options.texi (VarExists): Updated.
2068 2006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2070 * unwind-dw2.c: Add declarations for uw_update_context and
2072 * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
2073 detected, advance frame state and context once to skip over stub.
2075 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
2079 * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
2080 Call rewrite_into_loop_closed_ssa only when something changed.
2081 * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
2082 * lambda-code.c (can_convert_to_perfect_nest): Declared.
2083 (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
2084 Test for perfect_nest_p here. Fix formating.
2085 (replace_uses_equiv_to_x_with_y): Fix formating.
2086 (stmt_uses_op): Removed.
2087 (can_convert_to_perfect_nest): Removed loopivs parameter.
2088 Complete the test by checking the scalar dependences.
2089 (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
2092 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
2095 From Dan Kegel <dank@kegel.com>:
2096 * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
2098 2006-05-17 Eric Botcazou <ebotcazou@adacore.com>
2100 * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
2101 if the element type is variably modified without recursing.
2103 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
2106 * tree-loop-linear.c (try_interchange_loops): Test for
2107 no data dependences.
2109 2006-05-17 Zdenek Dvorak <dvorakz@suse.cz>
2111 PR tree-optimization/27548
2112 * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
2113 range of ssa names that appear on abnormal edges.
2114 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
2115 * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
2117 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
2120 * expr.c (safe_from_p): Handle CONSTRUCTOR again.
2122 2006-05-17 Jakub Jelinek <jakub@redhat.com>
2125 * tree.h (OMP_PARALLEL_COMBINED): Define.
2126 * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
2127 (new_omp_context): Add is_combined_parallel argument.
2128 (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
2129 new_omp_context caller.
2130 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
2131 Adjust gimplify_scan_omp_clauses callers.
2132 (omp_is_private): Issue errors if iteration variable is firstprivate
2133 or reduction in the current context.
2134 * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
2135 on combined parallel workshare constructs.
2137 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2139 * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
2140 (gcc-options.o): New rule.
2142 * optc-gen.awk: Protect variables for gcc-options.o with
2143 #ifdef GCC_DRIVER/#endif.
2145 2006-05-16 Daniel Berlin <dberlin@dberlin.org>
2147 Fix PR tree-optimization/27373
2148 * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
2149 (forward_propagate_addr_expr): Update call.
2151 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2153 * doc/options.texi: Move the Negative option.
2155 2006-05-16 Richard Guenther <rguenther@suse.de>
2157 PR tree-optimization/22303
2158 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
2160 (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
2161 ccp_fold did not simplify the statement.
2163 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
2166 * Makefile.in (GCC_OBJS): New.
2167 (OBJS-common): Add opts-common.o.
2168 (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
2169 (cpp$(exeext)): Likewise.
2170 (gcc.o): Also depend on opts.h.
2171 (opts-common.o): New.
2173 * common.opt (gcoff): Add Negative(gdwarf-2).
2174 (gdwarf-2): Add Negative(gstabs).
2175 (gstabs): Add Negative(gstabs+).
2176 (gstabs+): Add Negative(gvms).
2177 (gvms): Add Negative(gxcoff).
2178 (gxcoff): Add Negative(gxcoff+).
2179 (gxcoff+): Add Negative(gcoff).
2180 * config/i386/i386.opt (m32): Add Negative(m64).
2181 (m64): Add Negative(m32).
2183 * doc/options.texi: Document the Negative option.
2185 * gcc.c: Include "opts.h".
2186 (main): Call prune_options after expandargv.
2188 * optc-gen.awk: Generate common declarations for all flag
2189 variables in options.c. Output the neg_index field.
2191 * opts.c (find_opt): Moved to ...
2192 * opts-common.c: Here. New file.
2194 * opts.h (cl_option): Add a neg_index field.
2196 (prune_options): Likewise.
2198 2006-05-16 Jakub Jelinek <jakub@redhat.com>
2201 * omp-low.c (expand_omp_parallel): Don't assert
2202 .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
2203 instead search for it.
2206 * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
2209 2006-05-16 Andreas Schwab <schwab@suse.de>
2211 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
2214 2006-05-15 Roger Sayle <roger@eyesopen.com>
2217 * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
2218 integer constants other than zero are only legitimate on TARGET_64BIT.
2219 <CONST_VECTOR> Only zero vectors are legitimate.
2220 (ix86_cannot_force_const_mem): Integral and vector constants can
2221 always be put in the constant pool.
2223 2006-05-16 DJ Delorie <dj@redhat.com>
2225 * crtstuff.c (__dso_handle): Set section from
2226 TARGET_LBIGCC_SDATA_SECTION if defined.
2227 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
2228 * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
2230 2006-05-16 Danny Smith <dannysmith@users.sourceforge.net>
2233 * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
2236 2006-05-16 Ben Elliston <bje@au.ibm.com>
2238 * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
2240 2006-05-15 Per Bothner <per@bothner.com>
2242 * tree.c: (last_annotated_node): Use source_locus typedef.
2243 This permits bootstrapping with --enable-mapped-location.
2245 2006-05-15 Zdenek Dvorak <dvorakz@suse.cz>
2247 PR tree-optimization/26830
2248 * tree-into-ssa.c (struct ssa_name_info): Add age field.
2249 (info_for_ssa_name, current_info_for_ssa_name_age,
2250 blocks_to_update): New variables.
2251 (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
2252 (clear_ssa_name_info, initialize_flags_in_bb,
2253 mark_block_for_update): New functions.
2254 (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
2255 (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
2256 prepare_def_site_for): Use mark_block_for_update.
2257 (mark_def_interesting): Assert that the processed block is marked in
2258 blocks_to_update. Do not take blocks argument.
2259 (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
2261 (rewrite_update_init_block, rewrite_update_stmt): Only process
2262 blocks with statements to rewrite.
2263 (delete_update_ssa): Do not clear SSA_NAME_AUX.
2264 (update_ssa): Initialize and free blocks_to_update. Do not
2265 clear flags on statements. Do not use blocks bitmap.
2266 * tree.h (SSA_NAME_AUX): Removed.
2267 (struct tree_ssa_name): Removed aux field.
2268 * print-tree.c (print_node): Do not print SSA_NAME_AUX.
2270 2006-05-15 Richard Guenther <rguenther@suse.de>
2272 PR tree-optimization/27603
2273 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
2274 Do computations in original type.
2276 2006-05-15 Mircea Namolaru <namolaru@il.ibm.com>
2278 * see.c: Code style changes such as redundant paranthesis,
2279 redundant intialization of local variables etc.
2280 (see_main): Declared now as static.
2281 * doc/invoke.texi: Update that -fsee is not enabled by
2284 2006-05-15 Jakub Jelinek <jakub@redhat.com>
2286 * omp-low.c (check_omp_nesting_restrictions): New function.
2287 (scan_omp_1): Call it.
2290 * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
2291 construct, return *VAR.
2293 2006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
2295 PR rtl-optimization/27406
2296 * bt-load.c (migrate_btr_def): Skip the block having abnormal
2299 2006-05-14 Roger Sayle <roger@eyesopen.com>
2301 PR rtl-optimization/27538
2302 * combine.c (expand_compound_operation): Call gen_lowpart
2303 before calling simplify_shift_const.
2305 2006-05-14 Roger Sayle <roger@eyesopen.com>
2307 PR rtl-optimization/22563
2308 * expmed.c (store_fixed_bit_field): When using AND and IOR to store
2309 a fixed width bitfield, always force the intermediates into psuedos.
2311 2006-05-14 Bernhard Fischer <aldot@gcc.gnu.org>
2314 * mkconfig.sh: Use operator = instead of == for test.
2316 2006-05-13 Nick Clifton <nickc@redhat.com>
2318 * dwarf2out.c (dbx_reg_number): Check return value from
2319 LEAF_REG_REMAP and only use it if it is valid.
2320 (multiple_reg_loc_descriptor): Likewise.
2322 2006-05-13 Richard Guenther <rguenther@suse.de>
2324 * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
2327 2006-05-13 Steven Bosscher <stevenb.gcc@gmail.com>
2329 * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
2330 information attached to non-INSNs such as NOTEs.
2331 (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
2333 2006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
2335 * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
2337 * config/s390/s390.md: Adjust comment describing On constraint.
2339 2006-05-11 Jan Hubicka <jh@suse.cz>
2341 * cgraphunit.c (decide_is_function_needed): Don't force always_inline
2342 to be output at -O0.
2344 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2347 * fold-const.c (size_binop): Move sanity check for arguments to
2348 the beginning of the function.
2351 * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
2354 2006-05-11 Richard Guenther <rguenther@suse.de>
2357 * fold-const.c (fold_unary): Handle intermediate conversion
2358 to a pointer type like intermediate conversion to an integer
2359 type in folding of (T1)(T2)var to var.
2360 Match the code to the comment in the final conversion for
2361 (T1)(T2)var to (T1)var regarding to type precision. Rather
2362 than disallow T1 being of pointer type, assert that both T1
2363 and var are of pointer type or not. Make sure not to fall
2364 over the frontends lazyness wrt array to pointer decay though.
2366 2006-05-10 Richard Earnshaw <rearnsha@arm.com>
2368 * arm.c (arm_struct_value_rtx): Delete.
2369 (TARGET_STRUCT_VALUE_RTX): Use the default definition.
2370 (arm_init_cumulative_args): Always initialize nregs to zero.
2372 2006-05-10 Richard Guenther <rguenther@suse.de>
2374 PR tree-optimization/27532
2375 * tree-object-size.c (plus_expr_object_size): Fix typo.
2377 2006-05-10 Kazu Hirata <kazu@codesourcery.com>
2380 * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
2381 ashrdi_const, ashrdi3): Use a scratch register.
2383 2006-05-10 Richard Guenther <rguenther@suse.de>
2385 PR tree-optimization/27302
2386 * fold-const.c (operand_equal_p): For two comparisons,
2387 try comparison of one comparison code swapped if that yields
2390 2006-05-10 Ben Elliston <bje@au.ibm.com>
2392 * tree-pretty-print.c (pretty_print_string): No need to handle
2393 '\0' as a special character.
2395 * tree.h: Include "hashtab.h".
2396 (iterative_hash_expr): Use hashval_t in its prototype.
2397 * Makefile.in (TREE_H): Add $(HASHTAB_H).
2399 2006-05-09 Steve Ellcey <sje@cup.hp.com>
2402 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
2403 (hppa*64*-*-hpux11*): Ditto.
2404 (hppa[12]*-*-hpux11*): Ditto.
2406 2006-05-09 David Edelsohn <edelsohn@gnu.org>
2409 * config/rs6000/aix41.h (TARGET_64BIT): Define.
2411 2006-05-09 Michael Matz <matz@suse.de>
2413 * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
2414 host_extra_gcc_objs and host_xmake_file.
2415 (<*-*-linux*>): Don't overwrite host_xmake_file.
2416 * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
2417 * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
2418 (host_detect_local_cpu): Declare.
2419 (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
2420 * config/i386/i386.c (override_options): Handle -mtune=native
2422 * config/i386/x-i386: New file.
2423 * config/i386/driver-i386.c: New file.
2424 * doc/invoke.texi (<i386 and x86-64 Options>): Describe
2427 2006-05-09 Dirk Mueller <dmueller@suse.de>
2428 Richard Guenther <rguenther@suse.de>
2431 * fold-const.c (fold_read_from_constant_string): Relax check
2432 for matching types to matching modes.
2434 2006-05-09 Zdenek Dvorak <dvorakz@suse.cz>
2436 PR rtl-optimization/27335
2437 * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
2440 2006-05-08 Chao-ying Fu <fu@mips.com>
2441 Richard Sandiford <richard@codesourcery.com>
2443 * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
2444 (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
2445 * config/mips/mips.md (UNSPEC_SCC): New constant.
2446 * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
2447 * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
2448 (mips_emit_compare): Use it.
2449 (mips_expand_vcondv2sf): New function.
2451 2006-05-08 Daniel Berlin <dberlin@dberlin.org>
2453 Fix PR tree-optimization/27093
2454 * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
2455 renaming when they become not-used_alone.
2457 2006-05-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2459 * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
2460 relocation and relocation stubs.
2462 2006-05-08 Eric Christopher <echristo@apple.com>
2464 * unwind-dw2-fde-darwin.c (examine_objects): Only check data
2467 2006-05-08 Jan Hubicka <jh@suse.cz>
2470 * cgraphunit.c (decide_is_function_needed): When not optimizing even
2471 unused static functions are needed.
2473 2006-05-08 Roger Sayle <roger@eyesopen.com>
2476 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
2477 of a reg_equiv_constant if the result is a legitimate constant.
2479 2006-05-08 Uros Bizjak <uros@kss-loka.si>
2482 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
2483 standard 80387 constants, raise the cost to prevent
2484 compress_float_constant() to generate load from memory.
2486 2006-05-08 Kazu Hirata <kazu@codesourcery.com>
2488 * config/arm/constraints.md (c): Fix a typo.
2490 * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
2493 2006-05-07 H.J. Lu <hongjiu.lu@intel.com>
2496 * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
2498 (_mm_mwait): Likewise.
2500 * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
2502 (sse3_monitor): Make it 32bit only.
2503 (sse3_monitor64): New. 64bit monitor.
2505 2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2508 * config/i386/i386.c (classify_argument): Skip fields with invalid
2511 2006-05-07 Richard Guenther <rguenther@suse.de>
2513 PR tree-optimization/27409
2514 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2515 Do not try to find zero-sized subvars.
2517 2006-05-07 Richard Guenther <rguenther@suse.de>
2519 PR tree-optimization/27136
2520 * tree-ssa-loop-niter.c (get_val_for): Correct function
2521 comment, assert requirements.
2522 (loop_niter_by_eval): Stop processing if the iterated
2523 value did not simplify.
2525 2006-05-07 Mircea Namolaru <namolaru@il.ibm.com>
2527 * opts.c (flag_see): remove its setting at -O3.
2529 2006-05-07 Richard Earnshaw <rearnsha@arm.com>
2531 * genpeep.c (main): Make insn-peep.c depend on flags.h.
2532 * arm/constraints.md: New file.
2533 * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
2534 (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
2535 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
2536 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
2537 (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
2538 (EXTRA_MEMORY_CONSTRAINT): Likewise.
2539 * arm.md: Include constraints.md.
2540 (thumb_movsi_insn): Use satisfies_constraint_J.
2541 (movhi, movqi): Use satisfies_constraint_I.
2543 2006-04-29 Anatoly Sokolov <aesok@post.ru>
2545 * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
2546 for atmeg a645 device.
2548 2006-05-06 Richard Guenther <rguenther@suse.de>
2550 PR tree-optimization/27151
2551 * tree-vect-transform.c (vectorizable_condition): Punt on
2552 values that have a different type than the condition.
2554 2006-05-03 Aldy Hernandez <aldyh@redhat.com>
2557 * c-parser.c (c_parser_cast_expression): Only insert casts into
2558 hash table if pointer.
2559 * function.c (used_types_insert_helper): Rename from
2561 (used_types_insert): Call used_types_insert_helper.
2562 * function.h (used_types_insert): Accept only one argument.
2564 2006-05-05 David Edelsohn <edesohn@gnu.org>
2566 * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
2567 scratch with output modifier.
2569 2006-05-04 David Edelsohn <edelsohn@gnu.org>
2572 * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
2573 with output modifier.
2575 2006-05-04 Richard Sandiford <richard@codesourcery.com>
2578 * config/mips/mips.c (mips_symbolic_address_p): Return true
2579 for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
2580 SYMBOL_GOTTPREL, and SYMBOL_TLS.
2582 2006-05-04 Richard Guenther <rguenther@suse.de>
2584 PR tree-optimization/14287
2585 PR tree-optimization/14844
2586 PR tree-optimization/19792
2587 PR tree-optimization/21608
2588 PR tree-optimization/27090
2589 * tree-ssa-pre.c (try_combine_conversion): New function.
2590 (compute_avail): After constructing the value-handle
2591 expression, use try_combine_conversion to combine NOP_EXPRs
2592 with previous value-handle expressions and use the result if it
2595 2006-05-04 Joseph S. Myers <joseph@codesourcery.com>
2597 * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
2599 2006-05-04 Jan Hubicka <jh@suse.cz>
2602 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
2604 2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
2606 * config/bfin/predicates.md (const01_rtx): Tell generator programs
2607 that this only matches CONST_INTs. All users changed to VOIDmode
2610 * config/bfin/bfin.c: Include "optabs.h".
2611 (bfin_rtx_costs): Some costs for vector operations, to allow combine
2613 (enum bfin_builtins): Add a number of fractional and vector builtins.
2614 (bfin_init_builtins): Likewise.
2615 (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
2616 (safe_vector_operand, bfin_expand_binop_builtin,
2617 bfin_expand_unop_builtin): New functions.
2618 (bfin_expand_builtin): Handle the new builtins.
2619 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2622 2006-05-04 Leehod Baruch <leehod@il.ibm.com>
2625 * Makefile.in (OBJS-common): Add see.o.
2626 (see.o): Add dependencies.
2627 * common.opt (fsee): New flag for the see optimization was added.
2628 * opts.c (flag_see): Initialized.
2629 * passes.c (init_optimization_passes, pass_see): New pass.
2630 * rtl.h (see_main): Declaration as extern.
2631 * timevar.def (TV_SEE): New.
2632 * tree-pass.h (pass_see): Declaration as extern.
2633 * invoke.texi (-fsee): Document.
2634 * recog.c (validate_simplify_insn): New function.
2635 * recog.h (validate_simplify_insn): Declaration as extern.
2636 * df-problems.c (df_chain_dump): Check for NULL.
2638 2006-05-04 Kenneth Zadeck <zadeck@naturalbridge.com>
2639 Daniel Berlin <dberlin@dberlin.org>
2641 * cfgrtl.c (insert_insn_bb_end_new): New function.
2642 * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
2644 2006-05-04 Leehod Baruch <leehod.baruch@weizmann.ac.il>
2646 * df.h (struct web_entry): Moved from web.c.
2647 (union_defs): Declaration as extern.
2648 (unionfind_root): Likewise.
2649 (unionfind_union): Likewise.
2650 * web.c (struct web_entry): Moved to df.h.
2651 (unionfind_root): Remove static declaration.
2652 (unionfind_union): Likewise.
2653 (union_defs): Likewise and generalize to use callback function.
2654 (web_main): Update arguments for union_defs function call.
2656 2006-05-04 Richard Guenther <rguenther@suse.de>
2658 PR tree-optimization/26447
2659 * tree-ssa-pre.c (realify_fake_stores): For necessary loads
2660 produce SSA_NAME copies before the store stmt to avoid
2661 breaking exception handling.
2663 2006-05-04 Jakub Jelinek <jakub@redhat.com>
2666 * gimplify.c (omp_is_private): If var is shared in some outer context,
2667 return false instead of true. Stop searching on parallel context
2670 2006-05-03 Alexandre Oliva <aoliva@redhat.com>
2673 * coverage.c: Use get_gcov_unsigned_t() instead of
2674 unsigned_type_node all over.
2676 2006-05-02 Andrew MacLeod <amacleod@redhat.com>
2678 PR tree-optimization/27381
2679 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
2680 maintain the same immediate_use links.
2681 * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
2682 node rather than segfaulting.
2684 2006-05-03 Jakub Jelinek <jakub@redhat.com>
2687 * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
2688 rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
2689 bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
2691 2006-05-02 Daniel Berlin <dberlin@dberlin.org>
2693 Fix PR tree-optimization/26626
2694 * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
2696 * tree-ssa-operands.c (access_can_touch_variable): Allow
2697 typecasting through union pointers.
2699 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2702 * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
2703 (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
2704 to find if var will be a global variable even in the nested context.
2705 (omp_copy_decl): Only check for global variable at the end, it might
2706 be overridden in outer contexts.
2707 (scan_sharing_clauses): For global variables don't create a field.
2708 (lower_rec_input_clauses): Do nothing for global shared variables.
2709 Emit a barrier at the end of ILIST if there were any decls in both
2710 firstprivate and lastprivate clauses.
2711 (lower_send_clauses): Do nothing for global variables except for
2714 2006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
2716 * tree.c (unsigned_type_for, signed_type_for): Make sure a type
2717 of the correct signedness is returned.
2719 2006-05-02 Jeff Law <law@redhat.com>
2721 PR tree-optimization/27364
2722 * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
2723 multiply expressions.
2725 2006-05-02 Tom Tromey <tromey@redhat.com>
2727 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
2729 2006-05-02 Kazu Hirata <kazu@codesourcery.com>
2732 * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
2733 -mthumb -fPIC are used.
2735 2006-05-02 Stanislaw Skowronek <skylark@linux-mips.org>
2736 Joshua Kinard <kumba@gentoo.org>
2739 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
2740 with 64-bit pointers.
2742 2006-05-02 Paul Brook <paul@codesourcery.com>
2744 * config/arm/arm.c (add_minipool_forward_ref): Check if insn
2746 (create_fix_barrier): Check that a suitable barrier location is
2748 (arm_reorg): Include ftmp->address in allowable range of addresses.
2750 2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
2753 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
2756 2006-05-02 Jakub Jelinek <jakub@redhat.com>
2759 * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
2760 around RESULT_DECL for result passed by reference.
2761 (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
2762 * omp-low.c (use_pointer_for_field): Don't look at
2763 DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
2764 (scan_omp_1): Call remap_decl on RESULT_DECLs.
2765 (lower_rec_input_clauses): Don't allocate VLA memory for the second
2766 time or var for passing by reference for
2767 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
2768 TREE_ADDRESSABLE variables when passing by reference.
2770 * omp-low.c (dump_omp_region): Fix output formatting.
2773 * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
2774 (expand_omp_parallel): Likewise.
2775 * tree-cfg.c (move_sese_region_to_fn): Likewise.
2778 * omp-low.c (lower_omp_sections): Call maybe_catch_exception
2779 on statement list containing also constructors and destructors.
2780 (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
2783 * except.c (duplicate_eh_regions): Fix clearing of
2784 cfun->eh->region_array entries.
2786 2006-05-01 DJ Delorie <dj@redhat.com>
2788 * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
2790 (gcc_cv_objdump): Likewise.
2791 * configure: Regenerated.
2793 2006-05-01 Kazu Hirata <kazu@codesourcery.com>
2796 * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
2797 templates for case 3 and 4.
2799 2006-05-01 DJ Delorie <dj@redhat.com>
2801 * vec.c: Include bconfig.h when appropriate.
2802 * Makefile.in (build/vec.o): Adjust dependencies.
2803 * mkconfig.sh: Make sure config.h isn't used for build machine
2806 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
2808 * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
2810 (mark_phi_for_rewrite): New function.
2811 (insert_phi_nodes_for, mark_use_interesting): Call
2812 mark_phi_for_rewrite.
2813 (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
2814 (update_ssa): Initialize and free phis_to_rewrite.
2816 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
2818 PR rtl-optimization/27291
2819 * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
2820 folded to a constant.
2822 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
2824 PR tree-optimization/27283
2825 * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
2826 not whole # of iteration descriptions.
2827 (niter_for_exit): Return just # of iterations. Fail if # of iterations
2828 uses abnormal ssa name.
2829 (niter_for_single_dom_exit): Ditto.
2830 (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
2831 return just the number of iterations.
2833 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
2835 PR tree-optimization/27144
2836 * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
2837 (record_estimate): Only record constant upper bound.
2838 (infer_loop_bounds_from_undefined): Call
2839 compute_estimated_nb_iterations just once.
2840 (proved_non_wrapping_p): Renamed to ...
2841 (n_of_executions_at_most): ... this. Expect bound to be a constant.
2842 (convert_step_widening, scev_probably_wraps_p): Call
2843 n_of_executions_at_most instead of proved_non_wrapping_p.
2844 (substitute_in_loop_info): Do not replace values in bounds.
2845 * cfgloop.h (struct nb_iter_bound): Remove "additional" field. Update
2848 2006-05-01 Richard Henderson <rth@redhat.com>
2851 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
2852 c_parser_skip_to_pragma_eol. Convert to switch statement. Handle
2855 2006-05-01 Roger Sayle <roger@eyesopen.com>
2857 * c-typeck.c (parser_build_binary_op): Don't call the function
2858 unsigned_conversion_warning to spot operand/result type overflow.
2859 (build_binary_op): Instead, call convert_and_check instead of
2860 convert to report the problem when the operands are promoted.
2861 * c-common.c (unsigned_conversion_warning): Make static.
2862 * c-common.h (unsigned_conversion_warning): Delete prototype.
2864 2006-05-01 Richard Guenther <rguenther@suse.de>
2866 PR tree-optimization/26726
2867 * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
2869 (find_interesting_uses_address): ... we work around here
2870 by folding INDIRECT_REFs in the substituted base.
2872 2006-05-01 Diego Novillo <dnovillo@redhat.com>
2874 * omp-low.c (dump_omp_region): Add newlines.
2876 2006-04-30 Roger Sayle <roger@eyesopen.com>
2878 * common.opt (Woverflow): New command line option.
2879 * c-common.c (constant_expression_warning): Check warn_overflow.
2880 (overflow_waring): Pass OPT_Woverflow to warning.
2881 (unsigned_conversion_warning): Likewise.
2882 (convert_and_check): Likewise.
2883 * doc/invoke.texi: Document new command line option.
2885 2006-04-30 David Edelsohn <edelsohn@gnu.org>
2887 * config/rs6000/rs6000.c (rs6000_override_options): Enable
2888 TARGET_NO_FP_IN_TOC for section anchors.
2889 (optimization_options): Enable section anchors for all
2890 non-"Objective" languages.
2892 2006-04-28 Eric Christopher <echristo@apple.com>
2894 * config/darwin-c.c (darwin_ms_struct): Move this
2895 (darwin_set_default_type_attributes): and this...
2896 * config/darwin.c: ... here.
2897 * config/darwin.h (darwin_ms_struct): Declare.
2899 2006-04-28 Andrew MacLeod <amacleod@redhat.com>
2901 * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
2903 2006-04-28 Roger Sayle <roger@eyesopen.com>
2906 * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
2907 (push_array_bounds): Delete prototype. Change BOUNDS argument to
2908 an unsigned HOST_WIDE_INT.
2909 (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
2911 (really_start_incremental_init): No need to call convert because
2912 bitsize_zero_node is already of type bitsizetype.
2913 (push_init_level): Extract the value of constructor_index as an
2914 unsigned HOST_WIDE_INT quantity, using tree_low_cst.
2915 (process_init_element): Likewise.
2917 2006-04-28 Joseph S. Myers <joseph@codesourcery.com>
2919 * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
2920 value before passing to make_relative_prefix.
2922 2006-04-28 Alan Modra <amodra@bigpond.net.au>
2925 * builtins.c (expand_builtin_memset): Expand val in original mode.
2927 2006-04-27 Eric Christopher <echristo@apple.com>
2929 * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
2930 with #ifndef/#endif.
2931 * config/darwin-c.c (darwin_ms_struct): New.
2932 (darwin_pragma_ms_struct): Ditto.
2933 (darwin_set_default_type_attributes): Ditto.
2934 * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
2935 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
2936 Register ms_struct pragma.
2937 * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
2938 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
2939 * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
2940 darwin_set_default_type_attributes if TARGET_MACHO.
2942 2006-04-27 Andrew MacLeod <amacleod@redhat.com>
2944 PR tree-optimization/26854
2945 * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
2946 * doc/tree-ssa.texi: Update immuse iterator documentation.
2947 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
2948 * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
2949 * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
2950 first_safe_imm_use, next_safe_imm_use): Remove.
2951 (end_imm_use_stmt_p): New. Check for end of immuse stmt traversal.
2952 (end_imm_use_stmt_traverse): New. Terminate immuse stmt traversal.
2953 (move_use_after_head): New. Helper function to sort immuses in a stmt.
2954 (link_use_stmts_after): New. Link all immuses in a stmt consescutively.
2955 (first_imm_use_stmt): New. Get first stmt in an immuse list.
2956 (next_imm_use_stmt): New. Get next stmt in an immuse list.
2957 (first_imm_use_on_stmt): New. Get first immuse on a stmt.
2958 (end_imm_use_on_stmt_p): New. Check for end of immuses on a stmt.
2959 (next_imm_use_on_stmt): New. Move to next immuse on a stmt.
2960 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
2961 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
2962 (perfect_nestify): Use new iterator.
2963 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
2965 * tree-flow.h (struct immediate_use_iterator_d): Add comments.
2966 (next_imm_name): New field in struct immediate_use_iterator_d.
2967 (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
2968 (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
2969 FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
2970 * tree-cfg.c (replace_uses_by): Use new iterator.
2971 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
2972 * tree-ssa-operands.c (correct_use_link): Remove.
2973 (finalize_ssa_use_ops): No longer call correct_use_link.
2975 2006-04-27 Stuart Hastings <stuart@apple.com>
2977 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
2978 * config/t-darwin (crt3.o): Use it.
2979 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
2980 'pmode', use Pmode instead of SImode for SYMBOL_REF.
2981 * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
2982 call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
2983 call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
2986 2006-04-27 Roger Sayle <roger@eyesopen.com>
2988 * expmed.c (store_fixed_bit_field): If we're not optimizing for
2989 size, force the intermediate into a new pseudo rather instead of
2990 performing both a bitwise AND and a bitwise IOR in memory.
2992 2006-04-27 Richard Guenther <rguenther@suse.de>
2994 PR rtl-optimization/26685
2995 * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
2996 this one "max-flow-memory-locations".
2998 2006-04-27 Richard Guenther <rguenther@suse.de>
3000 PR tree-optimization/25148
3001 * tree-vrp.c (compare_values): Remove code dealing with
3002 comparisons against type min/max value. Honour overflow
3003 and negative constants in code dealing with comparisons
3004 of plus and minus expressions.
3005 (value_inside_range): Use fold_binary with LE_EXPR and
3006 GE_EXPR rather than compare_values.
3008 2006-04-27 Dirk Mueller <dmueller@suse.de>
3010 * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
3013 2006-04-26 Kenneth Zadeck <zadeck@naturalbridge.com>
3015 * basic-block.h (safe_insert_insn_on_edge): Removed.
3016 * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
3018 2006-04-26 David Edelsohn <edelsohn@gnu.org>
3019 Paolo Bonzini <bonzini@gnu.org>
3022 * combine.c (simplify_and_const_int_1): Use gen_int_mode.
3023 (simplify_and_const_int): Same.
3025 2006-04-26 Aldy Hernandez <aldyh@redhat.com>
3027 * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
3029 2006-04-26 Jakub Jelinek <jakub@redhat.com>
3032 * cgraph.c (cgraph_varpool_finalize_decl): Don't call
3033 cgraph_varpool_assemble_pending_decls if -fopenmp, unless
3034 cgraph_global_info_ready.
3037 * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
3040 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
3041 either decl or init is error_mark_node.
3044 * tree-flow.h (struct omp_region): Add sched_kind.
3045 * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
3046 instead of extracting omp for data.
3047 (expand_omp_for): Save extracted sched_kind.
3049 2006-04-25 Roger Sayle <roger@eyesopen.com>
3051 * expmed.c (store_bit_field): Also check whether the bitsize is
3052 valid for the machine's "insv" instruction before moving the
3053 target into a pseudo for use with the insv.
3054 * config/i386/predicates.md (const8_operand): New predicate.
3055 * config/i386/i386.md (extv, extzv, insv): Use the new
3056 const8_operand predicate where appropriate.
3058 2006-04-25 DJ Delorie <dj@redhat.com>
3060 * doc/install.texi (Specific): Clarify that this is not a list of
3061 supported hosts or targets.
3063 2006-04-25 Richard Sandiford <richard@codesourcery.com>
3065 PR rtl-optimization/26725
3066 * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
3067 block's BB_DIRTY flag.
3069 2006-04-25 Geoffrey Keating <geoffk@apple.com>
3071 * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
3074 * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
3075 to print an integer.
3077 2006-04-25 David Edelsohn <edelsohn@gnu.org>
3079 * varasm.c (align_variable): New function.
3080 (get_block_for_decl): Apply align_variable to DECL before
3081 calculating section information.
3082 (assemble_variable): Split out alignment computation.
3084 2006-04-25 Andreas Krebbel <krebbel1@de.ibm.com>
3086 * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
3089 2006-04-25 Bernd Schmidt <bernd.schmidt@analog.com>
3091 * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
3092 MODE_PARTIAL_INT mode.
3093 * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
3094 * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
3096 (hard_regno_mode_ok): V2PDImode is ok for accumulators.
3097 * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
3099 * config/bfin/predicates.md (const01_operand, vec_shift_operand):
3101 * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
3103 (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
3104 MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
3105 MACFLAG_IH): Likewise.
3106 (movstricthi_1): Renamed from "*movstricthi".
3107 (load_accumulator, load_accumulator_pair, movsi_insv, insv,
3108 ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
3109 abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
3110 movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
3111 movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
3112 movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
3113 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
3114 sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
3115 addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
3116 mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
3117 ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
3118 flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
3119 flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
3120 flag_macv2hi_parts, flag_macv2hi_parts_acconly,
3121 flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
3123 * doc/rtl.texi (ss_ashift): Improve wording.
3125 2006-04-24 Geoffrey Keating <geoffk@apple.com>
3127 * dwarf2out.c (verify_marks_clear): New.
3128 (prune_unused_types): Call verify_marks_clear initially, not
3131 2006-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
3133 * rtl.def (SS_ASHIFT, SS_NEG): New codes.
3134 * doc/rtl.texi: Document them.
3135 * simplify-rtx.c (simplify_unary_operation,
3136 simplify_binary_operation_1): Don't abort when we see them.
3138 2006-04-24 Mark Mitchell <mark@codesourcery.com>
3141 2006-04-23 Mark Mitchell <mark@codesourcery.com>
3142 * configure.ac: Completely disregard languages that are not
3144 * configure: Regenerated.
3146 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
3147 Richard Guenther <rguenther@suse.de>
3149 PR tree-optimization/27236
3150 * tree-inline.c (copy_body_r): Make sure to copy
3151 TREE_THIS_VOLATILE flag.
3153 2006-04-24 Richard Guenther <rguenther@suse.de>
3156 * tree-complex.c (update_parameter_components): Don't handle
3157 unused parameters which have no default def.
3159 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
3160 Richard Guenther <rguenther@suse.de>
3162 PR tree-optimization/27218
3163 * tree-inline.c (expand_call_inline): Strip useless type
3164 conversions for the return slot address.
3166 2006-04-24 Richard Guenther <rguenther@suse.de>
3168 * cfgloop.h (struct loops): Remove unused field array. Reorder
3170 (LOOP_PREFETCH): Remove.
3172 2006-04-24 Richard Guenther <rguenther@suse.de>
3174 PR tree-optimization/22525
3175 * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
3176 variable, adjust types of generated expressions.
3178 2006-04-23 H.J. Lu <hongjiu.lu@intel.com>
3180 * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
3181 (tree-vect-patterns.o): Likewise.
3183 (cselib.o): Likewise.
3184 (loop-doloop.o): Likewise.
3185 (regclass.o): Likewise.
3186 (reload1.o): Likewise.
3187 (explow.o): Replace target.h with $(TARGET_H).
3188 (ipa-prop.o): Likewise.
3189 (ipa-cp.o): Likewise.
3190 (ipa-inline.o): Likewise.
3191 (reorg.o): Likewise.
3192 (reg-stack.o): Likewise.
3194 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
3196 * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
3198 2006-04-23 Mark Mitchell <mark@codesourcery.com>
3200 * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
3202 * configure.ac: Completely disregard languages that are not
3204 * configure: Regenerated.
3207 * c-common.h (c_build_bitfield_integer_type): Declare.
3208 * c-decl.c (c_build_bitfield_integer_type): Move to ...
3209 * c-common.c (c_build_bitfield_integer_type): ... here.
3211 2006-04-23 Roger Sayle <roger@eyesopen.com>
3214 * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
3215 a SImode SUBREG of a floating point register after no_new_pseudos.
3217 2006-04-23 Roger Sayle <roger@eyesopen.com>
3219 * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
3220 identify potentially eliminable registers to additionally catch
3221 VIRTUAL_INCOMING_ARGS_REGNUM.
3222 (addsi3): Update the conditions on when to use addsi_small_int.
3224 2006-04-23 Roger Sayle <roger@eyesopen.com>
3227 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
3228 STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
3229 rtx to stack_pointer_rtx or frame_pointer_rtx directly.
3231 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
3233 * fold-const.c (range_predecessor): Use operand_equal_p
3234 as the predicate for equality.
3235 (range_successor): Likewise.
3237 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
3240 * config/soft-fp/op-common.h: Fix a typo.
3242 2006-04-22 Frank Ch. Eigler <fche@redhat.com>
3245 * common.opt (flag_mudflap_threads): Overload flag_mudflap.
3246 * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
3248 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
3250 * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
3252 * doc/tm.texi: Fix a typo.
3254 2006-04-21 Geoffrey Keating <geoffk@apple.com>
3256 * dwarf2out.c (struct die_struct): Document that die_sib makes
3257 a circular linked list.
3258 (FOR_EACH_CHILD): New.
3259 (reverse_die_lists): Delete.
3260 (reverse_all_dies): Delete.
3261 (add_dwarf_attr): Correct documentation.
3262 (remove_child_with_prev): New.
3263 (remove_child_TAG): Update for change to die_struct, use
3264 remove_child_with_prev.
3265 (add_child_die): Update for change to die_struct.
3266 (splice_child_die): Use remove_child_with_prev and add_child_die.
3267 (print_die): Use FOR_EACH_CHILD.
3268 (die_checksum): Likewise.
3269 (assign_symbol_names): Likewise.
3270 (output_location_lists): Likewise.
3271 (build_abbrev_table): Likewise.
3272 (calc_die_sizes): Likewise.
3273 (mark_dies): Likewise.
3274 (unmark_dies): Likewise.
3275 (unmark_all_dies): Likewise.
3276 (output_die): Likewise.
3277 (prune_unused_types_mark): Likewise.
3278 (prune_unused_types_walk): Likewise.
3279 (same_die_p): Update for change to die_struct.
3280 (break_out_includes): Likewise.
3281 (prune_unused_types_prune): Likewise.
3282 (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
3283 (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
3285 (dwarf2out_finish): Don't call reverse_all_dies.
3287 2006-04-21 Eric Christopher <echristo@apple.com>
3289 * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
3290 in comments and function names.
3292 2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3295 * c-typeck.c (digest_init): Robustify.
3297 * c-typeck.c (pop_init_level): Simplify.
3299 2006-04-21 Steve Ellcey <sje@cup.hp.com>
3301 * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
3303 2006-04-21 Paul Brook <paul@codesourcery.com>
3305 * config/arm/arm.c (arm_override_options): Error on iWMMXt and
3306 hardware floating point.
3308 2006-04-21 David Edelsohn <edelsohn@gnu.org>
3310 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
3313 2006-04-21 Nick Clifton <nickc@redhat.com>
3315 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
3318 2006-04-21 Alan Modra <amodra@bigpond.net.au>
3321 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
3322 C++ lang type in traceback table for Objective-C++.
3324 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
3326 2006-04-20 H.J. Lu <hongjiu.lu@intel.com>
3328 * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
3330 2006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3333 * tree-mudflap.c (mudflap_finish_file): Skip function when there
3334 were errors. Remove check for erroneous objects.
3336 2006-04-20 Jeff Law <law@redhat.com>
3338 PR tree-optimization/26854
3339 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
3340 checking for zero or one use.
3341 * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
3342 * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
3343 * tree-ssa-reassoc.c (negate_value): Similarly.
3344 (reassociate_bb): Similarly.
3346 2006-04-20 Jakub Jelinek <jakub@redhat.com>
3348 * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
3349 TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
3350 than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
3352 2006-04-20 Alan Modra <amodra@bigpond.net.au>
3354 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
3355 fp regs if the last fp arg doesn't fit in regs.
3357 2006-04-20 Kaz Kojima <kkojima@gcc.gnu.org>
3360 * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
3361 that the last insn has the REG_INC note.
3363 2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
3364 Nathan Sidwell <nathan@codesourcery.com>
3367 * stor-layout.c (update_alignment_for_field): Do not align
3369 (place_union_field): Place union field at the start of the union.
3370 (place_field): Move ERROR_MARK check later, and use the current
3371 allocation position to maintain monotonicity.
3373 2006-04-19 Zdenek Dvorak <dvorakz@suse.cz>
3375 * dominance.c: Include timevar.h.
3376 (calculate_dominance_info): Use TV_DOMINANCE.
3377 * timevar.def (TV_DOMINANCE): New timevar.
3378 * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
3380 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
3382 PR rtl-optimization/14261
3383 * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
3384 move would be an INSV insn.
3385 (noce_process_if_block): Don't optimize if the destination is a
3386 ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
3388 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
3390 * config/s390/s390.md: Add comments with the instructions emitted
3391 by an insn pattern if macros are used.
3393 2006-04-19 Alan Modra <amodra@bigpond.net.au>
3395 PR rtl-optimization/26026
3396 * fold-const.c (fold_binary): Optimize div and mod where the divisor
3397 is a known power of two shifted left a variable amount.
3399 2006-04-18 Geoffrey Keating <geoffk@apple.com>
3401 * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
3402 to hash table twice when the debug_str section has SECTION_MERGE.
3404 2006-04-18 Joseph S. Myers <joseph@codesourcery.com>
3406 * config/soft-fp: New directory. From glibc.
3407 * config/soft-fp/t-softfp: New.
3408 * config/soft-fp/README: New.
3409 * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
3410 * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
3411 (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
3412 (LIBGCC_DEPS): Add $(SFP_MACHINE).
3413 * config.gcc: Use rs6000/t-fprules-fpbit or
3414 rs6000/t-fprules-softfp and soft-fp/t-softfp together with
3416 * config/rs6000/sfp-machine.h: New. Based on glibc.
3417 * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
3419 * config/rs6000/t-fprules: Remove fp-bit rules.
3420 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
3421 * config/rs6000/t-linux64: Likewise. Remove duplicates from
3422 LIB2FUNCS_EXTRA. Remove fp-bit rules.
3423 (softfp_wrap_start, softfp_wrap_end): New.
3425 2006-04-18 DJ Delorie <dj@redhat.com>
3427 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
3429 2006-04-18 Devang Patel <dpatel@apple.com>
3431 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
3433 2006-04-18 Nick Clifton <nickc@redhat.com>
3435 * config/sh/t-symbian: Add rule to build sh-c.o
3436 * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
3437 of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
3438 (sh_symbian_encode_section_info): Likewise.
3440 2006-04-18 Andreas Krebbel <krebbel1@de.ibm.com>
3442 * builtins.c (expand_builtin_strcmp): Cover label definition of
3443 do_libcall with HAVE_cmpstrnsi.
3445 2006-04-18 Kazu Hirata <kazu@codesourcery.com>
3447 * function.c (temp_slots_at_level, max_slot_level): Use VEC
3449 * function.h (temp_slot_p): New.
3450 (function): Change the type of x_used_temp_slots to
3451 VEC(temp_slot_p,gc) *.
3453 2006-04-18 Nick Clifton <nickc@redhat.com>
3455 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
3456 flag_strength_reduce.
3458 * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
3460 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
3464 Partial revert of revision 112637
3465 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
3466 Dale Johannesen <dalej@apple.com>
3469 * regclass.c (struct reg_pref): Update documentation.
3470 (regclass): Set prefclass to NO_REGS if memory is the best option.
3471 (record_reg_classes): Cope with a prefclass set to NO_REGS.
3473 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
3475 PR tree-optimization/26821
3476 * tree-ssa-math-opts.c (get_constant_one): New.
3477 (insert_reciprocals): Use it.
3479 2006-04-17 Geoffrey Keating <geoffk@apple.com>
3481 * dwarf2out.c (free_AT): Delete.
3482 (remove_AT): Update string ref counts.
3483 (remove_child_TAG): Don't call free_die.
3485 (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
3486 or DW_TAG_GNU_EINCL.
3487 (prune_unused_types_walk_attribs): Reset string refcounts.
3488 (prune_unused_types_update_strings): New.
3489 (prune_unused_types_prune): Don't make unnecessary stores. Don't
3490 call free_die. Do call prune_unused_types_update_strings.
3491 (prune_unused_types): Empty debug_str_hash.
3493 2006-04-17 Roger Sayle <roger@eyesopen.com>
3495 * expr.c (expand_assignment): Optimize away no-op moves where the
3496 source and destination are equal and have no side-effects.
3498 2006-04-17 Richard Guenther <rguenther@suse.de>
3501 * reload.c (push_reload): Guard calls to get_secondary_mem
3504 2006-04-16 Kazu Hirata <kazu@codesourcery.com>
3506 * alias.c (reg_base_value, old_reg_base_value): Change the
3507 type to VEC(rtx,gc) *.
3508 (REG_BASE_VALUE, find_base_value, record_set,
3509 init_alias_analysis): Use VEC instead of VARRAY.
3511 * alias.c (alias_sets): Change the type to
3512 VEC(alias_set_entry,gc) *.
3513 (get_alias_set_entry, new_alias_set, record_alias_subset): Use
3514 VEC instead of VARRAY.
3515 (last_alias_set): Remove.
3517 * cgraph.h (cgraph_edge_p): New.
3518 Update the prototype of cgraph_function_versioning.
3519 * cgraphunit.c (cgraph_copy_node_for_versioning,
3520 cgraph_function_versioning): Use VEC instead of VARRAY.
3521 * ipa-cp.c (ipcp_insert_stage): Likewise.
3523 2006-04-16 Roger Sayle <roger@eyesopen.com>
3526 * fold-const.c (fold_ternary): When converting "A ? B : C" into either
3527 "A op B" or "A op C", we may need to convert A to the type of B and C.
3529 2006-04-16 Adam Nemet <anemet@caviumnetworks.com>
3531 * target.h (struct gcc_target): Add mode_rep_extended.
3532 * rtlanal.c (num_sign_bit_copies_in_rep): New global.
3533 (init_num_sign_bit_copies_in_rep): Initialize it using
3535 (truncate_to_mode): Use it.
3536 (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
3537 * targhooks.h (default_mode_rep_extended): Declare it.
3538 * targhooks.c (default_mode_rep_extended): Define it.
3539 * target-def.h (TARGET_MODE_REP_EXTENDED): New macro. Default to
3540 default_mode_rep_extended.
3541 (TARGET_INITIALIZER): Include it.
3542 * doc/tm.texi (Misc): Document it.
3543 * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
3544 (mips_truncated_to_mode): New function.
3546 2006-04-16 Roger Sayle <roger@eyesopen.com>
3549 * expr.c (compress_float_constant): Copy the narrow constant into
3550 a new pseudo before extending it to its final width.
3552 2006-04-16 Roger Sayle <roger@eyesopen.com>
3553 Andrew Pinski <pinskia@gcc.gnu.org>
3554 Dale Johannesen <dalej@apple.com>
3557 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
3558 special case code to implement V8HImode and V16QImode with SSE2.
3560 2006-04-15 Roger Sayle <roger@eyesopen.com>
3562 * config/i386/i386.c (ix86_va_start): Ensure all integer constant
3563 trees are constructed with a suitable tree type.
3565 2006-04-15 Roger Sayle <roger@eyesopen.com>
3567 * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
3568 (integer_onep): Likewise.
3569 (integer_all_onesp): Likewise.
3570 (integer_pow2p): Likewise.
3571 (integer_nonzerop): Likewise.
3572 (real_zerop): Likewise.
3573 (real_onep): Likewise.
3574 (real_twop): Likewise.
3575 (real_minus_onep): Likewise.
3576 (int_size_in_bytes): Likewise.
3577 (host_integerp): Likewise.
3579 2006-04-15 Kazu Hirata <kazu@codesourcery.com>
3581 * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
3582 jump.c, mips-tfile.c, omp-low.c, sched-int.h,
3583 tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
3585 * tree-ssa-structalias.h (alias_info): Remove num_references.
3587 2006-04-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3589 * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
3590 (output_bvb patterns): Likewise.
3591 * pa.c (output_bb): Use 'bb' insn for long branch case.
3592 (output_bvb): Likewise use '{bvb|bb}' for long branch case.
3593 (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
3594 1. Correct length operand for alternatives 1 and 2.
3595 (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
3596 1, 2 and 3. Correct length operand for alternatives 1, 2 and 3.
3598 2006-04-14 Roger Sayle <roger@eyesopen.com>
3600 * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
3601 is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
3602 were accidentally reverted by r112959.
3604 2006-04-15 Jakub Jelinek <jakub@redhat.com>
3607 * except.h (eh_region_outermost): New prototype.
3608 * except.c (eh_region_outermost): New function.
3609 * tree-cfg.c (find_outermost_region_in_block): Use it.
3611 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
3613 * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
3615 * reload1.c (reg_equiv_memory_loc_varray): Rename to
3616 reg_equiv_memory_loc_vec. Change the type to VEC(rtx,gc) *.
3617 (init_reload, reload): Use VEC instead of VARRAY.
3618 * reload.h: Update the prototype for
3619 reg_equiv_memory_loc_varray.
3621 2006-04-14 Alexey Starovoytov <alexey.starovoytov@sun.com>
3622 Eric Botcazou <ebotcazou@libertysurf.fr>
3624 * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
3627 2005-04-13 Uros Bizjak <uros@kss-loka.si>
3630 * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
3631 to expand fallback builtin function call.
3633 2006-04-14 Alan Modra <amodra@bigpond.net.au>
3636 * builtins.c: (expand_builtin_memset): Stabilize args before expansion
3637 and emit libcall here in case the builtin fails.
3638 (expand_builtin_strcmp): Always emit the libcall here on failure.
3640 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
3642 * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
3643 * flow.c (reg_n_info): Change the type to
3644 VEC(reg_info_p,heap) *.
3645 * regclass.c (allocate_reg_info, free_reg_info): Use VEC
3647 * regs.h (reg_info_p): New.
3648 (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
3649 REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
3650 REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
3653 2006-04-13 Eric Botcazou <ebotcazou@adacore.com>
3655 * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
3657 * params.h (MAX_SCHED_READY_INSNS): New macro.
3658 * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
3659 past MAX_SCHED_READY_INSNS during the first scheduling pass.
3660 (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
3661 the ready list for 1 cycle during the first scheduling pass.
3662 * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
3664 2006-04-13 Richard Henderson <rth@redhat.com>
3667 * gimple-low.c (lower_omp_directive): Remove dead code.
3668 (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
3669 * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
3670 * omp-low.c (struct omp_region): Move to tree-flow.h.
3671 (root_omp_region): Export.
3672 (omp_regions, lookup_omp_region): Remove.
3673 (determine_parallel_type): Update for struct omp_region changes.
3674 (dump_omp_region): Dump regions with block numbers.
3675 (new_omp_region): Take type and block instead of stmt; malloc
3677 (free_omp_region_1, free_omp_regions): New.
3678 (expand_parallel_call): Take entry_stmt as argument; update for
3679 changes to omp_region.
3680 (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
3681 (remove_exit_barriers): New.
3682 (expand_omp_parallel): Update for struct omp_region changes.
3683 (expand_omp_synch): Likewise.
3684 (expand_omp): Likewise.
3685 (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
3686 (expand_omp_for_static_chunk): Likewise.
3687 (expand_omp_for): Likewise.
3688 (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
3689 (expand_omp_sections): Similarly, with GOMP_sections_end.
3690 (expand_omp_single): New.
3691 (build_omp_regions_1): Update for OMP_CONTINUE.
3692 (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
3693 (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
3694 OMP_SECTIONS_SECTIONS.
3695 (lower_omp_single_simple): Don't emit barrier here.
3696 (lower_omp_single_copy): Likewise.
3697 (lower_omp_single): Fix bindings, and lower to straightline now.
3698 (lower_omp_master, lower_omp_ordered): Likewise.
3699 (lower_omp_critical): Likewise.
3700 (lower_omp_for): Likewise. Emit OMP_CONTINUE.
3701 * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
3702 omp edges, free it afterward.
3703 (make_omp_sections_edges): Remove.
3704 (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
3705 (move_stmt_r): Handle OMP_CONTINUE.
3706 * tree-flow.h (struct omp_region): Move from omp-low.c. Switch
3707 statement pointers to basic blocks. Add type member.
3708 (root_omp_region, new_omp_region, free_omp_regions): Declare.
3709 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
3710 * tree-inline.c (estimate_num_insns_1): Likewise.
3711 * tree-pretty-print.c (dump_generic_node): Likewise.
3712 * tree-ssa-operands.c (get_expr_operands): Likewise.
3713 * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
3714 (OMP_RETURN): Rename from OMP_RETURN_EXPR.
3715 (OMP_CONTINUE): New.
3716 * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
3717 (OMP_SECTIONS_SECTIONS): Remove.
3718 (OMP_SECTION_LAST): New.
3719 (OMP_RETURN_NOWAIT): New.
3721 2006-04-13 Roger Sayle <roger@eyesopen.com>
3723 * fold-const.c (native_encode_vector, native_interpret_real):
3724 Correct obvious mistakes in the previous check-in.
3726 2006-04-13 Roger Sayle <roger@eyesopen.com>
3728 * fold-const.c (native_encode_expr): New function to encode
3729 the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
3730 or VECTOR_CST into a specified buffer.
3731 (native_encode_int): New function.
3732 (native_encode_real): New function.
3733 (native_encode_complex): New function.
3734 (native_encode_vector): New function.
3735 (native_interpret_expr): Inverse of native_encode_expr to convert
3736 a target representation into an INTEGER_CST, REAL_CST etc...
3737 (native_interpret_int): New function.
3738 (native_interpret_real): New function.
3739 (native_interpret_complex): New function.
3740 (native_interpret_vector): New function.
3741 (fold_view_convert_expr): New function to constant fold/evaluate
3742 a VIEW_CONVERT_EXPR of a suitable constant expression.
3743 (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
3744 Change call of build1 to fold_build1 when constructing a
3747 2006-04-13 Paolo Bonzini <bonzini@gnu.org>
3748 Ulrich Weigand <uweigand@de.ibm.com>
3751 * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
3754 2006-04-13 Alan Modra <amodra@bigpond.net.au>
3757 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
3758 optimize to lo_sum for DFmode if !TARGET_FPRS.
3760 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
3762 * tree-ssa-alias.c (set_initial_properties, init_alias_info,
3763 delete_alias_info, compute_flow_sensitive_aliasing,
3764 group_aliases): Use VEC instead of VARRAY.
3765 * tree-ssa-structalias.c (update_alias_info): Likewise.
3766 * tree-ssa-structalias.h (alias_info): Change the type of
3767 processed_ptrs to VEC(tree,heap) *.
3769 2006-04-12 J"orn Rennecke <joern.rennecke@st.com>
3772 * config/sh/lib1funcs.h: New file, broken out of:
3773 * config/sh/lib1funcs.asm.
3774 * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
3776 * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
3777 * config/sh/lib1funcs-Os-4-200.asm: New file.
3778 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
3779 * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
3780 (EXTRA_MULTILIB_PARTS): Include it.
3781 ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
3782 ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
3783 * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
3784 * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
3787 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
3789 * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
3790 * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
3791 tpa_compact, root_var_init, type_var_init): Use VEC instead of
3793 * tree-ssa-live.h: Include vecprim.h.
3794 (tree_partition_associator_d): Change the type of
3795 first_partition to VEC(int,heap) *.
3796 (tpa_first_partition): Use VEC instead of VARRAY.
3798 * Makefile.in (GTFILES): Move functions.h after tree.h.
3799 * function.c (reset_block_changes, record_block_change,
3800 check_block_change, free_block_changes): Use VEC instead of
3802 * function.h (function): Change the type of
3803 ib_boundaries_block to VEC(tree,gc) *.
3804 * tree-inline.c (copy_cfg_body): Initialize
3805 ib_boundaries_block to NULL instead of (varray_type) 0.
3807 2006-04-12 Roger Sayle <roger@eyesopen.com>
3809 * expr.c (emit_group_store): Correct operand order in call to
3810 subreg_lowpart_offset. Always create paradoxical SUBREGs with
3811 a SUBREG_BYTE of zero.
3813 2006-04-12 Richard Guenther <rguenther@suse.de>
3815 * profile.c (compute_branch_probabilities): Remove code
3816 encapsulated in !ir_type (), which are remanents of the
3817 removed RTL profiling code.
3818 * rtl-profile.c: Remove.
3820 2006-04-12 Alan Modra <amodra@bigpond.net.au>
3822 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
3823 magic NULL_RTX comment.
3824 (function_arg): Store entire fp arg to mem if any part should go
3826 (rs6000_arg_partial_bytes): Adjust for above change.
3828 2006-04-11 Roger Sayle <roger@eyesopen.com>
3830 * dwarf2out.c (output_call_frame_info): Create debug_frame_section
3831 if it hasn't been initialized by dwarf2out_init.
3833 2006-04-11 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
3835 * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
3836 symbolic constants in branch patterns.
3838 2006-04-11 Roger Sayle <roger@eyesopen.com>
3840 * caller-save.c: #include "addresses.h" after #include "tm_p.h".
3842 2006-04-11 Richard Sandiford <richard@codesourcery.com>
3844 PR rtl-optimization/27073
3845 * gcse.c (try_replace_reg): Revert last change. Continue to search
3846 for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
3849 2006-04-11 Eric Botcazou <ebotcazou@libertysurf.fr>
3851 * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
3852 aggregate types other than record and union types.
3853 (function_arg): Likewise.
3854 (function_arg_pass_by_reference): In 64-bit mode, return 0 for
3856 (function_value): In 64-bit mode, return objects that require it
3859 2006-04-11 Roger Sayle <roger@eyesopen.com>
3861 * dwarf2out.c (premark_used_types): Remove problematic prototype.
3863 2006-04-11 Jakub Jelinek <jakub@redhat.com>
3865 * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
3867 2006-04-03 Jeff Law <law@redhat.com>
3870 * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
3871 alias information too.
3873 2006-04-10 Mike Frysinger <vapier@gentoo.org>
3875 * Makefile.in (gcc-cross): Add $(exeext) to target name.
3877 2006-04-10 Aldy Hernandez <aldyh@redhat.com>
3880 * dwarf2out.c (struct die_struct): Add die_perennial_p field.
3881 (premark_used_types_helper): New.
3882 (premark_used_types): New.
3883 (gen_subprogram_die): Call premark_used_types.
3884 (prune_unused_types_walk): Do not prune perennial dies.
3885 * function.c (used_types_insert): New.
3886 * function.h (struct function): Add used_types_hash field.
3887 (used_types_insert): Add prototype.
3888 * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
3889 * c-parser.c (c_parser_cast_expression): Save casted types in used
3892 2006-04-11 Mark Mitchell <mark@codesourcery.com>
3895 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
3896 rs6000_explicit_options.float_gprs.
3898 2006-04-10 Roger Sayle <roger@eyesopen.com>
3900 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
3901 from ix86_expand_vector_init_low_nonzero. Take an additional
3902 one_var argument indicating which element is non-zero. Support
3903 one_var != 0 for V4SFmode and V4SImode by permuting the result.
3904 (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
3905 with one_var instead of ix86_expand_vector_init_low_nonzero.
3907 2006-04-10 Kazu Hirata <kazu@codesourcery.com>
3909 * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
3910 tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
3911 global.o, cfglayout.o, lambda-code.o, reg-stack.o,
3912 build/genextract.o): Depend on vecprim.h.
3913 * cfglayout.c, df-problems.c, function.c, genextract.c,
3914 global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
3915 tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
3919 2006-04-10 Geoffrey Keating <geoffk@apple.com>
3921 * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
3922 Declare VECs of this type.
3923 (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
3924 (remove_children): Delete.
3925 (add_dwarf_attr): Use VEC routines.
3926 (add_AT_flag): Update for changes to add_dwarf_attr.
3927 (add_AT_int): Likewise.
3928 (add_AT_unsigned): Likewise.
3929 (add_AT_long_long): Likewise.
3930 (add_AT_vec): Likewise.
3931 (add_AT_string): Likewise.
3932 (add_AT_die_ref): Likewise.
3933 (add_AT_fde_ref): Likewise.
3934 (add_AT_loc): Likewise.
3935 (add_AT_loc_list): Likewise.
3936 (add_AT_addr): Likewise.
3937 (add_AT_lbl_id): Likewise.
3938 (add_AT_lineptr): Likewise.
3939 (add_AT_macptr): Likewise.
3940 (add_AT_offset): Likewise.
3941 (add_AT_range_list): Likewise.
3942 (get_AT): Use VEC_iterate.
3943 (remove_AT): Use VEC_ordered_remove.
3944 (free_die): Fold remove_children into here; have it use VEC_iterate.
3945 (print_die): Use VEC_iterate on attrs.
3946 (reverse_die_lists): Don't reverse attr lists.
3947 (die_checksum): Use VEC_iterate on attrs.
3948 (same_die_p): Likewise.
3949 (output_location_lists): Likewise.
3950 (build_abbrev_table): Likewise.
3951 (size_of_die): Likewise.
3952 (unmark_all_dies): Likewise.
3953 (output_abbrev_section): Likewise.
3954 (output_die): Likewise.
3955 (prune_unused_types_walk_attribs): Likewise.
3957 2006-04-10 Eric Botcazou <ebotcazou@libertysurf.fr>
3959 * doc/install.texi (*-*-solaris2*): Point to the configure page.
3961 2006-04-10 Jakub Jelinek <jakub@redhat.com>
3964 * dwarf2out.c (is_symbol_die): Return true also for namespaces.
3966 2006-04-09 Roger Sayle <roger@eyesopen.com>
3968 * expr.c (store_constructor): Don't bother clearing target if
3969 we're about to assign a vector to it using vec_init_optab.
3971 2006-04-10 Daniel Berlin <dberlin@dberlin.org>
3973 * tree-ssa-alias.c (lhs_may_store_to): New function.
3974 (recalculate_used_alone): Handle LHS of calls.
3976 2006-04-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3980 * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
3981 * pa64-hpux.h (LIB_SPEC): Correct typo. Don't append milli.a.
3982 (LINK_GCC_C_SEQUENCE_SPEC): Define. Append milli.a here.
3983 (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
3984 (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
3985 (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
3986 section. Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
3987 stubs. Add ".align 8" directives before all ".dword" directives.
3988 (GTHREAD_USE_WEAK): Revise comment.
3989 (TARGET_ATTRIBUTE_WEAK): Define.
3990 * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
3991 dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
3992 * stublib.c: New file.
3997 * pa.md (cbranch patterns): Revise arguments used in calls to
3998 output_cbranch, output_bb and output_bvd. Add long branch length
4000 (fbranch patterns): Handle long branches.
4001 (jump): Revise length check. Revise arguments for output_lbranch call.
4002 Add long branch length attributes.
4003 (decrement_and_branch_until_zero): Add long branch length attributes.
4004 (output_movb, output_parallel_addb and output_parallel_movb patterns):
4005 Likewise. Revise arguments for output_parallel_addb and
4006 output_parallel_movb calls.
4007 * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
4008 output_parallel_movb and output_parallel_addb): Update prototypes.
4009 * pa.c (output_cbranch): Revise arguments. Correct handling of
4010 nullification in long branches.
4011 (output_lbranch): Add new argument to control extraction of delay
4013 (output_bb): Handle long branches.
4014 (output_bvb, output_dbra, output_movb, output_parallel_movb,
4015 output_parallel_addb): Likewise.
4017 2006-04-09 Richard Sandiford <richard@codesourcery.com>
4019 PR rtl-optimization/27073
4020 * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
4023 2006-04-08 Daniel Berlin <dberlin@dberlin.org>
4025 * tree.h (tree_memory_tag): Add old_used_alone.
4026 (SMT_OLD_USED_ALONE): New macro.
4027 * tree-ssa-alias.c (recalculate_used_alone): Stop
4028 marking things for renaming unnecessarily.
4030 2006-04-08 Kazu Hirata <kazu@codesourcery.com>
4032 * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
4033 config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
4034 config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
4035 haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
4036 sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
4037 tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
4038 tree-vect-patterns.c, tree-vrp.c: Fix comment typos. Follow
4039 spelling convensions.
4040 * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
4041 doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
4042 typos. Follow spelling conventions.
4044 2006-04-07 DJ Delorie <dj@redhat.com>
4046 * config/m32c/m32c.c (m32c_function_arg): Structures are always
4047 passed on the stack.
4048 (m32c_init_cumulative_args): When a function returns a structure,
4049 always pass the pointer to that return area on the stack.
4050 (m32c_function_arg_advance): Don't increment the parameter number
4051 if we're processing the returned structure pointer.
4052 (pushm_info): Reverse order of registers.
4054 2006-04-07 Sebastian Pop <pop@cri.ensmp.fr>
4056 * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
4057 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
4058 number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
4059 estimate_numbers_of_iterations_loop): Use build_int_cst instead of
4061 * tree-chrec.c (chrec_fold_multiply_poly_poly,
4062 chrec_fold_multiply): Same.
4063 * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
4064 force_expr_to_var_cost): Same.
4065 * tree-mudflap.c (mf_xform_derefs_1): Same.
4066 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
4068 2006-04-07 David Edelsohn <edelsohn@gnu.org>
4070 * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
4071 treat CONST_DOUBLE as INTVAL. and64_2_operands require an extra
4074 2006-04-07 Jan Hubicka <jh@suse.cz>
4076 * ipa-inline.c (cgraph_early_inlining): Collect garbage.
4078 2006-04-07 Richard Guenther <rguenther@suse.de>
4080 PR tree-optimization/26135
4081 * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
4082 loads for store copy-prop.
4083 (copy_prop_visit_stmt): Likewise.
4085 2006-04-05 Robert Millan <robertmh@gnu.org>
4087 * config/i386/linux.h: Add a comment to mark macros that are
4088 being overriden in config/k*bsd-gnu.h.
4089 * config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of