aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2004-11-12expr.c (emit_group_load): Use extract_bit_field to load from the stack.Eric Botcazou2-2/+8
* expr.c (emit_group_load) <CONCAT>: Use extract_bit_field to load from the stack. From-SVN: r90521
2004-11-11toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.Richard Henderson3-43/+58
* toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI. (exact_log2): Rename from exact_log2_wide, use CTZ_HWI. * toplev.h (FL2T__): Remove. (CLZ_HWI): Rename from FL2T_CLZ__. (CTZ_HWI): New. (floor_log2): Simplify. (exact_log2): New. From-SVN: r90519
2004-11-12* lib/gcc-dg.exp (dg-target-list): New.Janis Johnson2-0/+23
From-SVN: r90516
2004-11-12target-supports.exp (get-compiler_messages): New.Janis Johnson3-16/+91
* lib/target-supports.exp (get-compiler_messages): New. (check_named_sections_available): Use it. (check_effective_target_ilp32): New. (check_effective_target_lp64): New. (is-effective-target): New. * lib/gcc-dg.exp (dg-require-effective-target): New. Co-Authored-By: Richard Sandiford <rsandifo@redhat.com> From-SVN: r90515
2004-11-12Daily bump.GCC Administrator1-1/+1
From-SVN: r90513
2004-11-12re PR middle-end/18005 (ICE with simple loop with VLA)Sebastian Pop2-5/+26
* tree-data-ref.c (analyze_subscript_affine_affine): Correctly compute the first overlapping iterations. PR middle-end/18005 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure that arguments of EXACT_DIV_EXPR are INTEGER_CST. From-SVN: r90510
2004-11-12When will I remember to add a PR number...Steven Bosscher1-0/+1
From-SVN: r90509
2004-11-12tree-ssa.c (walk_use_def_chains_1): Make the visited map a pointer set ↵Steven Bosscher3-13/+27
instead of a bitmap. * tree-ssa.c (walk_use_def_chains_1): Make the visited map a pointer set instead of a bitmap. (walk_use_def_chains): Create, pass and clean up that pointer_set. * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited field an sbitmap. (init_alias_info): Allocate and zero it here. (delete_alias_info): Delete it here. (collect_points_to_info_for): Use it. From-SVN: r90508
2004-11-11varasm.c (get_named_section_flags, [...]): Make them static.Kazu Hirata4-4/+7
* varasm.c (get_named_section_flags, decl_tls_model): Make them static. * output.h: Remove the prototype for get_named_section_flags. * tree.h: Remove the prototype for decl_tls_model. From-SVN: r90506
2004-11-11c-typeck.c (c_size_in_bytes, [...]): Make them static.Kazu Hirata3-5/+4
* c-typeck.c (c_size_in_bytes, record_maybe_used_decl): Make them static. * c-tree.h: Remove the corresponding prototypes. From-SVN: r90505
2004-11-11c-typeck.c (c_size_in_bytes, [...]): Make them static.Kazu Hirata3-4/+7
* c-typeck.c (c_size_in_bytes, record_maybe_used_decl): Make them static. * c-tree.h: Remove the corresponding prototypes. From-SVN: r90504
2004-11-11cfgloopmanip.c (update_single_exits_after_duplication, unloop): Make them ↵Kazu Hirata3-5/+7
static. * cfgloopmanip.c (update_single_exits_after_duplication, unloop): Make them static. * cfgloop.h: Remove the corresponding prototypes. From-SVN: r90503
2004-11-11cfglayout.c (choose_inner_scope): Make it static.Kazu Hirata3-2/+4
* cfglayout.c (choose_inner_scope): Make it static. * rtl.h: Remove the corresponding prototype. From-SVN: r90502
2004-11-11alias.c (record_alias_subset, [...]): Make them static.Kazu Hirata5-5/+12
* alias.c (record_alias_subset, addr_side_effect_eval): Make them static. * alias.h: Remove the prototype for record_alias_subset. * expr.h: Remove the commented-out prototype for record_alias_subset. * rtl.h: Remove the prototype for addr_side_effect_eval. From-SVN: r90501
2004-11-11Fix a ChangeLog typo in the last commit.Kazu Hirata1-1/+1
From-SVN: r90498
2004-11-11function.c (expand_function_end): Remove an "if" statement that always trigger.Kazu Hirata3-14/+9
* function.c (expand_function_end): Remove an "if" statement that always trigger. * stmt.c (expand_null_return_1): Likewise. From-SVN: r90497
2004-11-11Fix complex long double testsuite failures.James E Wilson2-4/+15
* config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode. (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED, CLASS_MAX_NREGS): Likewise. From-SVN: r90495
2004-11-11* gcc.dg/precedence-1.c: New test.Joseph Myers2-0/+157
From-SVN: r90493
2004-11-11re PR tree-optimization/17742 (C Optimization error with -O1 on i686)Zdenek Dvorak2-55/+11
PR tree-optimization/17742 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle MINUS_EXPR correctly. From-SVN: r90492
2004-11-11tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi): Give up as soon ↵Sebastian Pop2-0/+10
as the evolution is known not computable. * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi): Give up as soon as the evolution is known not computable. From-SVN: r90491
2004-11-11* gcc.misc-tests/linkage.exp: Handle biarch GCC for powerpc64.Janis Johnson2-0/+7
From-SVN: r90488
2004-11-11linkage.exp: Prepend directory name to pass/fail message...Janis Johnson2-5/+16
* gcc.misc-tests/linkage.exp: Prepend directory name to pass/fail message, delete generated files, use more descriptive name for executable, and make the test unsupported when it cannot be run. From-SVN: r90487
2004-11-11gcc-dg.exp (skip_test_and_clear_xfail): New procedure.Janis Johnson2-29/+36
* lib/gcc-dg.exp (skip_test_and_clear_xfail): New procedure. (dg-require-weak, dg-require-visibility, dg-require-alias, dg-require-gc-sections, dg-require-profiling, dg-require-dll, dg-require-iconv, dg-require-named-sections): Use it. From-SVN: r90486
2004-11-11* lib/gcc-dg.exp (dg-xfail-if): Ignore if skipping the test.Janis Johnson2-0/+10
From-SVN: r90485
2004-11-11re PR target/16457 (PowerPC - Combine two rldicr instructions into a single ↵Nathan Sidwell5-17/+64
rlwinm.) .: PR target/16457 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call mask64_1or2_operand. (mask64_1or_2_operand): Broken out of mask64_2_operand, add flag to spot rlwinm opportunities. (and64_2_operand): Use mask_1or2_operand. * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible. testsuite: PR target/16457 * gcc.dg/ppc-and-1: New From-SVN: r90481
2004-11-11tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.Dorit Naishlos2-51/+75
2004-11-11 Dorit Naishlos <dorit@il.ibm.com> * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis. (vect_update_ivs_after_vectorizer): Update function documentation. Avoid quadratic behavior and direct write to PHI_ARG_DEF. From-SVN: r90480
2004-11-11* config/arm/arm.c: Fix a comment typo.Kazu Hirata2-1/+5
From-SVN: r90479
2004-11-11bitmap.h (nBITMAP_WORD_BITS): Remove.Nathan Sidwell6-116/+74
* bitmap.h (nBITMAP_WORD_BITS): Remove. (BITMAP_WORD_BITS): Force unsigned by use of 1u. (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove unnecessary casts. (bitmap_first_set_bit): Return unsigned, use ctzl. (bitmap_last_set_bit): Remove. * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator unsigned. (bitmap_first_set_bit): Return unsigned, require non-empty bitmap, remove special case code for two word elements. (bitmap_last_set_bit): Remove. * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of bitmap_first_set_bit with bitmap_empty_p. * tree-outof-ssa.c (analyze_edges_for_bb): Likewise. * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than bitmap_last_bit_set. From-SVN: r90478
2004-11-11Remove CVS conflict marking.Jakub Jelinek1-1/+0
From-SVN: r90477
2004-11-11re PR rtl-optimization/16796 (PowerPC - Unnecessary Floating Point Register ↵Nathan Sidwell4-0/+81
Copy) .: PR target/16796 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes. testsuite: PR target/16796 * gcc.dg/ppc-mov-1.c: New. From-SVN: r90476
2004-11-11re PR target/16458 (PowerPC - redundant compare)Nathan Sidwell4-0/+38
.: PR target/16458 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an unsigned equality compare when we know the operands are unsigned. testsuite: PR target/16458 * gcc.dg/ppc-compare-1.c: New. From-SVN: r90475
2004-11-11linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ only if ↵Peter S. Mazinger8-39/+82
TARGET_ABICALLS. 2004-11-10 Peter S. Mazinger <ps.m@gmx.net> * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ only if TARGET_ABICALLS. (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__. (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass -KPIC only if not -mno-abicalls. * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h * config/sparc/linux.h, config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic. * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__. * config/pa/pa/linux.h (CPP_SPEC): Likewise. * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise. * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise. From-SVN: r90470
2004-11-10typeck.c (cxx_mark_addressable): Add braces around the first if.Andrew Pinski2-9/+15
2004-11-10 Andrew Pinski <pinskia@physics.uc.edu> * typeck.c (cxx_mark_addressable): Add braces around the first if. From-SVN: r90469
2004-11-11arm.c (arm_compute_save_reg0_reg12_mask): Save PIC register if ↵Paul Brook2-3/+15
current_function_uses_pic_offset_table is set. * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC register if current_function_uses_pic_offset_table is set. From-SVN: r90465
2004-11-11Daily bump.GCC Administrator1-1/+1
From-SVN: r90462
2004-11-10* objc.dg/desig-init-2.m: New test.Joseph Myers2-0/+11
From-SVN: r90459
2004-11-10Add 2004 to copyright notices.David Edelsohn8-8/+8
From-SVN: r90457
2004-11-10rs6000.md (define_attr "type"): Add two and three.David Edelsohn15-41/+234
* config/rs6000/rs6000.md (define_attr "type"): Add two and three. Change multi-instruction sequences to new attribute. * config/rs6000/{40x.md,440.md,603.md,6xx.md, 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md, rios1.md,rios2.md,rs64.md}: Add descriptions for two and three. From-SVN: r90456
2004-11-10tree-data-ref.c (build_classic_dist_vector): If either loop is outside of ↵Daniel Berlin3-6/+40
the nest we asked about, the dependence can't matter. 2004-11-10 Daniel Berlin <dberlin@dberlin.org> * tree-data-ref.c (build_classic_dist_vector): If either loop is outside of the nest we asked about, the dependence can't matter. (build_classic_dir_vector): Ditto. From-SVN: r90454
2004-11-10re PR middle-end/18160 (ICE on taking register variable address)Adam Nemet3-0/+34
PR middle-end/18160 * g++.dg/warn/register-var-1.C: New test. * g++.dg/warn/register-var-2.C: New test. From-SVN: r90453
2004-11-10re PR middle-end/18160 (ICE on taking register variable address)Adam Nemet2-3/+16
PR middle-end/18160 * typeck.c (cxx_mark_addressable): Issue an error if address of an explicit register variable is requested. From-SVN: r90452
2004-11-10tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in right order.Zdenek Dvorak3-22/+120
* tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in right order. (force_var_cost): Determine cost of addition and multiplication more precisely. (get_computation_cost_at): Add cost for computing address elements to the final cost. * fold-const.c (fold): Attempt to use ptr_difference_const whenever one of the arguments of MINUS_EXPR is an address. (split_address_to_core_and_offset): New function. (ptr_difference_const): Handle case when one of the operands is a pointer. * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr. (ptr_difference_cost): Pass addresses instead of objects to ptr_difference_const. From-SVN: r90451
2004-11-10re PR fortran/18375 (ICE when compiling spec benchmark fma3d)Paul Brook3-4/+10
PR fortran/18375 * trans-expr.c (gfc_trans_subarray_assign): Free shape before ss. * trans-io.c (transfer_array_component): Ditto. From-SVN: r90449
2004-11-10Test for PR tree-optimization/17892.Fariborz Jahanian1-0/+37
From-SVN: r90447
2004-11-10re PR c++/18143 (Duplicated thunk with a huge member in the hierarchy)Nathan Sidwell5-40/+83
.: * tree.c (tree_check_failed): Emit general error if the list of node types is empty. cp: PR c++/18143 * cp-tree.h (NON_THUNK_FUNCTION_CHECK, THUNK_FUNCTION_CHECK): New. (struct lang_decl_flags): Add thunk_p flag. (struct lang_decl): Remove separate fixed_offset. Place cloned_function and fixed_offset into union. (DECL_CLONED_FUNCTION_P, DECL_CLONED_FUNCTION): Adjust. (DECL_THUNK_P, SET_DECL_THUNK_P): Adjust. (THUNK_FIXED_OFFSET): Adjust. * method.c (make_thunk): Adjust. From-SVN: r90399
2004-11-10sparc.c (function_arg_union_value): New 'slotno' argument.Eric Botcazou4-5/+49
* config/sparc/sparc.c (function_arg_union_value): New 'slotno' argument. When the union is passed in the 6th slot, build a PARALLEL with only one element. (function_arg): Adjust call to function_arg_union_value. (function_value): Likewise. From-SVN: r90396
2004-11-10re PR tree-optimization/17892 (gcc-4.0 should not reassociate floating point ↵Fariborz Jahanian3-1/+13
add or multiplication) Fix for PR tree-optimization/17892. OKed by Roger Sayle. From-SVN: r90395
2004-11-10re PR c++/18369 (Segfault on braced new)Mark Mitchell4-59/+92
PR c++/18369 * init.c (build_new_1): Handle parenthesized type-ids that name an array type. Tidy. PR c++/18369 * g++.dg/init/new12.C: New test. From-SVN: r90394
2004-11-10re PR target/18230 (SPARC VIS instructions are not generated by GCC)James A. Morrison12-2/+206
PR target/18230 (addsi3, subsi3): Set "fptype" attribute. (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns. From-SVN: r90391
2004-11-10basic-block.h (XMALLOC_REG_SET, [...]): New.Steven Bosscher3-39/+70
* basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New. (struct basic_block_def): Remove local_set and cond_local_set fields. Update comment for global_live_at_start. * flow.c (calculate_global_regs_live): Allocate local_sets and cond_local_sets here as arrays of bitmaps previously stored in bb->local_set and bb->cond_local_set. Use xmalloc instead of obstack allocated bitmaps. From-SVN: r90390