aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2004-10-15* decl.c: Fix a comment typo.Kazu Hirata2-1/+5
From-SVN: r89095
2004-10-15* pointer-set.c, tree-vectorizer.c: Fix comment typos.Kazu Hirata3-5/+9
From-SVN: r89094
2004-10-15[multiple changes]Andrew Pinski4-1/+21
2004-10-13 Andrew Pinski <pinskia@physics.uc.edu> PR c++/16301 * name-lookup.c (parse_using_directive): If we have a error_mark_node, do not set the decl namespace associations on it. 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu> PR c++/16301 * g++.dg/lookup/strong-using-4.C: New test. From-SVN: r89093
2004-10-15re PR middle-end/16567 (Nested function and variable-sized structure ICE)Andrew Pinski2-0/+24
2004-10-14 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/16567 * gcc.c-torture/compile/nested-1.c: New test. From-SVN: r89092
2004-10-15vect-44.c: xfail on i?86-*-*...Dorit Naishlos8-27/+38
* testsuite/gcc.dg/vect/vect-44.c: xfail on i?86-*-*, x86_64-*-*, and mipsisa64*-*-* (until support for misaligned loads is added). * testsuite/gcc.dg/vect/vect-50.c: Likewise. * testsuite/gcc.dg/vect/vect-52.c: Likewise. * testsuite/gcc.dg/vect/vect-54.c: Likewise. * testsuite/gcc.dg/vect/vect-58.c: Likewise. * testsuite/gcc.dg/vect/vect-60.c: Likewise. * testsuite/gcc.dg/vect/vect-80.c: Likewise. From-SVN: r89088
2004-10-15tree-optimize.c (execute_one_pass): Stop timer right after executing the pass.Diego Novillo2-3/+10
* tree-optimize.c (execute_one_pass): Stop timer right after executing the pass. From-SVN: r89086
2004-10-15re PR c++/17976 (Calls the dtor twice)Mark Mitchell4-4/+50
PR c++/17976 * decl.c (cp_finish_decl): Do not call expand_static_init more than once for a single variable. PR c++/17976 * g++.dg/init/dtor3.C: New test. From-SVN: r89081
2004-10-14revert: re PR middle-end/17967 (Expand is considered slower? ↵Andrew Pinski2-0/+17
(remove_useless_stmts is considered part of expand)) 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu> Revert: 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/17967 Revert: * tree-cfg.c (remove_usless_stmts_cond): Fold statement. (remove_useless_stmts_1): Fold trees we know how to fold. From-SVN: r89080
2004-10-14configure.ac: Add .machine power4 directive when testing for mfcr field.David Edelsohn3-2/+10
* configure.ac: Add .machine power4 directive when testing for mfcr field. * configure: Regenerate. From-SVN: r89076
2004-10-15* config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.Geoffrey Keating2-7/+4
From-SVN: r89075
2004-10-14tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor always.Andrew Pinski2-2/+5
2004-10-14 Andrew Pinski <pinskia@physics.uc.edu> * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor always. From-SVN: r89074
2004-10-15Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r89071.2
2004-10-15* gcc.dg/ppc-stackalign-1.c: Set dg-options to {}.Ben Elliston2-0/+5
From-SVN: r89068
2004-10-14rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS for 'f' if !TARGET_FPRS.Daniel Jacobowitz2-1/+6
* config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS for 'f' if !TARGET_FPRS. From-SVN: r89067
2004-10-14re PR debug/14492 (loc_descriptor_from_tree, in dwarf2out.c:9031)Richard Henderson2-0/+11
PR debug/14492 * dwarf2out.c (loc_descriptor_from_tree): Handle FIX_*_EXPR. From-SVN: r89066
2004-10-14re PR c/17023 (ICE with nested functions in parameter declaration)Richard Henderson4-2/+21
PR c/17023 * c-decl.c (store_parm_decls_oldstyle): Care for parameter type as error_mark_node. * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null instaed of current_function_decl non-null. From-SVN: r89063
2004-10-14Speed up walk_tree by introducing a special-purpose hash table.Matt Austern18-57/+296
* pointer-set.c: New file, special-purpose hash table. * pointer-set.h: New file. * tree.h (struct pointer_set_t): Declare as opaque type. (tree_walk): Last argument is pointer_set_t* now. * tree-inline.c (WALK_SUBTREE): Convert from htab to pset. (walk_type_fields): (walk_tree): Convert from htab_t to pointer_set_t for keeping track of which nodes have already been visited. (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t. * cgraphunit.c (cgraph_create_edges): Likewise. (cgraph_characterize_statics_local): Likewise. * tree-dfa.c (collect_dfa_stats): Likewise. * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is pointer_set_t* now. * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise. * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type of walk_subtrees is pointer_set_t* now. * Makefile.in (OBJS-common): add pointer-set.o (tree-inline.o): Depends on pointer-set.h (tree-dfa.o): Likewise (cgraphunit.o): Likewise * cp/Make-lang.in (pt.o): depends on pointer-set.h * cp/cp-tree.h (cp_walk_subtrees): Last argument is pointer_set_t* now. * cp/pt.c (struct pair_fn_data): Use pointer_set_t, not htab_t (for_each_template_parm): Convert from htab_t to pointer_set_t. * cp/tree.c (cp_walk_subtrees): Last argument is pointer_set_t* now. * java/lang.c (java_tree_inlining_walk_subtrees): Last arg is struct pointer_set_t* now. From-SVN: r89062
2004-10-14darwin.h (ASM_SPEC): Delete.Geoffrey Keating10-43/+86
2004-10-14 Geoffrey Keating <geoffk@apple.com> * config/rs6000/darwin.h (ASM_SPEC): Delete. (TARGET_ASM_FILE_START): Define. * config/darwin.h (ASM_SPEC): Define. * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply -mlong-double-128, it's the default. Update comment about reason for force_cpusubtype_ALL. * config/rs6000/darwin-vecsave.asm: Supply .machine. * config/rs6000/darwin-world.asm: Likewise. * config/rs6000/rs6000.c (rs6000_darwin_file_start): New. (symbolic_operand): Delete #if 0ed code. Index: testsuite/ChangeLog 2004-10-14 Geoffrey Keating <geoffk@apple.com> * gcc.dg/darwin-misaligned.c: Don't supply -force_cpusubtype_ALL. * gcc.dg/macho-lo-sum.c: Likewise. From-SVN: r89059
2004-10-14stmt.c (add_case_node): Make sure that we have integer constant before ↵Andrew Pinski2-6/+17
calling tree_int_cst_compare. 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu> * stmt.c (add_case_node): Make sure that we have integer constant before calling tree_int_cst_compare. From-SVN: r89058
2004-10-14re PR middle-end/17967 (Expand is considered slower? (remove_useless_stmts ↵Andrew Pinski2-8/+7
is considered part of expand)) 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/17967 Revert: * tree-cfg.c (remove_usless_stmts_cond): Fold statement. (remove_useless_stmts_1): Fold trees we know how to fold. From-SVN: r89057
2004-10-14eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS), [...]): Disallow -m64.Joseph Myers5-2/+22
* config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS), config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow -m64. testsuite: * gcc.dg/ppc-spe64-1.c: New test. From-SVN: r89048
2004-10-14reload.c (find_reloads): When reloading a PLUS with constant operand...Ulrich Weigand3-15/+31
* reload.c (find_reloads): When reloading a PLUS with constant operand, make sure the constant is pushed to the constant pool if required. * config/s390/s390.c (s390_secondary_input_reload_class): Remove reload bug workaround. (s390_expand_plus_operand): Likewise. From-SVN: r89047
2004-10-14opts.c (common_handle_option): Do not enable flag_speculative_prefetching ↵David Edelsohn2-2/+7
for -fprofile-generate/use. * opts.c (common_handle_option): Do not enable flag_speculative_prefetching for -fprofile-generate/use. From-SVN: r89046
2004-10-14tree-if-conv.c (process_phi_nodes): Process latch block.Devang Patel3-5/+21
* tree-if-conv.c (process_phi_nodes): Process latch block. (combine_blocks): Process latch block and update loop structure. * gcc.dg/pr17635.c : New test. From-SVN: r89045
2004-10-142004-10-14 Olga Golovanevsky <olga@il.ibm.com>Olga Golovanevsky23-97/+1677
* tree-vectorizer.c (vect_generate_tmps_on_preheader): (vect_update_ivs_after_vectorizer): (vect_transform_for_unknown_loop_bound): (tree_duplicate_loop_to_edge): (allocate_new_names): (rename_use_op): (rename_def_op): (rename_variables_in_bb): (free_new_names): (rename_variables_in_loop): (copy_phi_nodes): (update_phis_for_duplicate_loop): (update_phi_nodes_for_guard): (make_loop_iterate_ntimes): (tree_duplicate_loop_to_edge_cfg): (add_loop_guard): (vect_analyze_loop_with_symbolic_num_of_iters): (verify_loop_for_duplication): (vect_gen_niters_for_prolog_loop): (vect_update_niters_after_peeling): (vect_update_inits_of_dr): (vect_update_inits_of_drs): (vect_build_loop_niters): (vect_do_peeling_for_alignment): New functions. (vect_transform_loop): Add unknown and known but indivisible loop bound support; add peeling for unalignment support. (vect_analyze_loop_form): Support symbolic number of iterations. (vect_transform_loop_bound): New input parameter. (vect_get_loop_niters): Change input parameter type. (new_loop_vec_info): LOOP_VINFO_NITERS is tree now. (vectorizable_store): Allow unaligned access. (vectorize_loops): Add rewrite_into_loop_closed_ssa. (vect_analyze_data_refs_alignment): Allowed one unaligned store. * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined to use tree. (LOOP_VINFO_INT_NITERS): New macro. (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define. (do_peeling_for_alignment): (unaligned_drs): New members of _loop_vec_info. (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro. From-SVN: r89040
2004-10-14tree.h (TREE_STRING_POINTER): Wrap in "const char *".Ranjit Mathew2-2/+8
* tree.h (TREE_STRING_POINTER): Wrap in "const char *". (struct tree_string): Remove "const" qualifier for "str". From-SVN: r89039
2004-10-14tree-vectorizer.c (vect_analyze_data_refs): Call ↵Ira Rosen2-5/+13
vect_get_base_and_bit_offset to get memory tag for array ref. 2004-10-14 Ira Rosen <irar@il.ibm.com> * tree-vectorizer.c (vect_analyze_data_refs): Call vect_get_base_and_bit_offset to get memory tag for array ref. (vect_create_addr_base_for_vector_ref): Remove redundant checks. From-SVN: r89038
2004-10-14configure.ac: Use $LN_S for creating symlinks (not $LN).Richard Earnshaw3-114/+216
* configure.ac: Use $LN_S for creating symlinks (not $LN). * configure: Regenerate. From-SVN: r89036
2004-10-14install.texi (*-*-solaris2*): Update with info about kernel patches to solve ↵Kaveh R. Ghazi2-0/+16
spurious testsuite failures. * doc/install.texi (*-*-solaris2*): Update with info about kernel patches to solve spurious testsuite failures. From-SVN: r89033
2004-10-14tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.Dorit Naishlos7-22/+195
* tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts. Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode. (vect_analyze_operations): Make sure the vectorization factor > 1. Add gcc_assert under ENABLE_CHECKING. (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to get_vectype_for_scalar_type). (vect_get_vec_def_for_operand): Remove redundant variables. (vect_transform_loop): Likewise. From-SVN: r89032
2004-10-14arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and global for ↵Richard Sandiford5-8/+102
-mcaller-super-interworking. * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and global for -mcaller-super-interworking. (CALLER_INTERWORKING_SLOT_SIZE): New macro. * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does not need a frame pointer. (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to the soft frame pointer offset. (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking. * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use _interwork_{r7,r11}_call_via_rN if some arguments are passed on the stack. Use frame_pointer_needed to choose between them. * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions. (interwork_with_frame): New macro. (interwork): Add _interwork_{r7,r11}_call_via_rN(). From-SVN: r89031
2004-10-14re PR other/17900 (GCC's source path in ICE is wrong)Ben Elliston2-1/+7
PR other/17900 * diagnostic.c (trim_filename): Fix logic bug in walking backwards up the filename looking for a previous directory separator. From-SVN: r89029
2004-10-14errors.c (_cpp_begin_message): Print "error: " for errors.Joseph Myers2-0/+9
libcpp: * errors.c (_cpp_begin_message): Print "error: " for errors. gcc/testsuite: * gcc.dg/cpp/error-1.c: New test. From-SVN: r89025
2004-10-14c-tree.h (enum c_typespec_kind, [...]): New.Joseph Myers7-46/+246
* c-tree.h (enum c_typespec_kind, struct c_typespec, parser_xref_tag): New. (struct c_declspecs): Add tag_defined_p. Adjust definition of typedef_p. (declspecs_add_type): Adjust prototypes. * c-parse.in (%union): Add tstype. (typespec_nonattr, typespec_attr, typespec_reserved_nonattr, typespec_reserved_attr, typespec_nonreserved_nonattr, structsp_attr, structsp_nonattr): Change to tstype. Update actions. * c-decl.c (build_null_declspecs): Initialize tag_defined_p. (declspecs_add_type): Update to take struct c_typespec argument. Set tag_defined_p and typedef_p as appropriate. (xref_tag): Rename to parser_xref_tag and replace by wrapper. Update to return struct c_typespec. (shadow_tag_warned): Don't let empty declarations with qualifiers or storage class specifiers redeclare a tag if a previous declaration is visible. testsuite: * gcc.dg/c99-tag-3.c, gcc.dg/declspec-14.c: New tests. From-SVN: r89021
2004-10-14Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r89018.2
2004-10-13re PR debug/15860 (No DW_AT_location debug info is emitted for formal ↵Richard Henderson2-8/+27
arguments to a function that uses "register" qualifiers) PR debug/15860 * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction for DECL_INCOMING_RTL. From-SVN: r89012
2004-10-13re PR target/17984 (Recent peephole2:s may cause internal compiler errors (2))Hans-Peter Nilsson2-8/+26
PR target/17984 * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply trunc_int_for_mode for constants used in shortened mode. From-SVN: r89011
2004-10-13re PR target/17984 (Recent peephole2:s may cause internal compiler errors (2))Hans-Peter Nilsson2-0/+39
PR target/17984 * gcc.dg/cris-peep2-xsrand2.c: New test. From-SVN: r89010
2004-10-13re PR c/17384 (ICE with mode attribute on structures)Richard Henderson5-8/+48
PR c/17384 * c-common.c (handle_mode_attribute): Disallow mode changes that alter the CODE of the top-level type. * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit integer from internal limits macros. * config/i386/mm3dnow.h (__v2sf): Fix base type. From-SVN: r89009
2004-10-13re PR debug/13841 (missing debug info for _Complex function arguments)Richard Henderson2-2/+17
PR debug/13841 * function.c (instantiate_decl): Recurse for CONCAT. From-SVN: r89007
2004-10-13(extzvdi_internal1): Add attribute "compare".David Edelsohn2-2/+6
(extzvdi_internal2): Same. From-SVN: r89004
2004-10-14trans-decl.c (generate_local_decl): Simplify logic, fix comment typo.Tobias Schlüter2-6/+9
* trans-decl.c (generate_local_decl): Simplify logic, fix comment typo. (gfc_generate_function_code): Fix formatting issue. From-SVN: r89003
2004-10-13rs6000.md (andsi3): Add attribute "compare" for andi./andis.David Edelsohn2-2/+10
* config/rs6000/rs6000.md (andsi3): Add attribute "compare" for andi./andis. (anddi3): Same. From-SVN: r89002
2004-10-13* doc/md.texi (Insn Canonicalizations): Removed extraneous quote.Tom Tromey2-1/+5
From-SVN: r89001
2004-10-13extend.texi (Extended Asm): Rewrite asm volatile description.Dale Johannesen2-27/+33
2004-10-13 Dale Johannesen <dalej@apple.com> * doc/extend.texi (Extended Asm): Rewrite asm volatile description. From-SVN: r88999
2004-10-13toplev.c (compile_file): Call mudflap_finish_file from here ...Frank Ch. Eigler5-11/+13
2004-10-13 Frank Ch. Eigler <fche@redhat.com> * toplev.c (compile_file): Call mudflap_finish_file from here ... * c-decl.c (c_write_global_declarations): ... instead of here ... * cp/decl.c (cp_finish_file): ... and here. * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message. From-SVN: r88995
2004-10-13tree-ssa-dom.c (record_range): Free the element if we are not going to use it.Andrew Pinski2-0/+7
2004-10-13 Andrew Pinski <pinskia@physics.uc.edu> * tree-ssa-dom.c (record_range): Free the element if we are not going to use it. From-SVN: r88994
2004-10-13re PR c++/17661 (ICE in create_tmp_var)Andrew Pinski4-0/+34
2004-10-13 Andrew Pinski <pinskia@physics.uc.edu> PR c++/17661 * testsuite/g++.dg/expr/for2.C: New test. 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu> PR c++/17661 * semantics.c (finish_for_expr): Convert expression to void so that we don't create temporaries for a?b:c. From-SVN: r88992
2004-10-13re PR java/15578 (gcj doesn't support -extdirs)Tom Tromey3-5/+17
PR java/15578: * lang.opt (--extdirs): Document. * jvspec.c (lang_specific_driver): Recognize -encoding and -extdirs. From-SVN: r88991
2004-10-13re PR java/15578 (gcj doesn't support -extdirs)Tom Tromey2-0/+7
PR java/15578: * gcc.c (option_map): Added --extdirs and --encoding. From-SVN: r88990