summaryrefslogtreecommitdiff
path: root/gcc
Commit message (Collapse)AuthorAgeFilesLines
* 20040917-1.c: New test.Kenneth Zadeck2004-09-172-0/+36
| | | | | | | | 2004-09-17 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com> * gcc.c-torture/execute/20040917-1.c: New test. From-SVN: r87674
* re PR tree-optimization/17319 (-fno-tree-dce cause ICE)Diego Novillo2004-09-174-0/+33
| | | | | | | | | | | | | | PR tree-optimization/17319 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also examine pointers on the LHS of an assignment. (collect_points_to_info_r): Handle RETURN_EXPR. testsuite/ChangeLog PR tree-optimization/17319 * gcc.dg/pr17319.c: New test. From-SVN: r87673
* tree-ssa-dom.c (const_and_copies_stack): New.Jeff Law2004-09-172-54/+56
| | | | | | | | | | | | | | | | | | * tree-ssa-dom.c (const_and_copies_stack): New. (dom_walk_block_data): Remove const_and_copies field. (record_const_or_copy): No longer need to pass in varray_type *. Use CONST_AND_COPIES_STACK rather than passed in block local stack. Callers updated. (record_equality): Similarly. (restore_vars_to_original_value): Similarly. Revamp to use new single global stack rather than per-block stacks. (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK. (thread_across_edge): Remove now unused parameters. (dom_opt_initialize_block_local_data): No longer test the block local CONST_AND_COPIES. (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK. From-SVN: r87670
* re PR tree-optimization/17509 (ICE in verify_cgraph_node)Jan Hubicka2004-09-172-1/+29
| | | | | | | | PR tree-optimization/17509 * tree-optimize.c (update_inlined_to_pointers): New function. (tree_rest_of_compilation): Use it. From-SVN: r87669
* dbxout.c (get_lang_number): New.Devang Patel2004-09-175-2/+63
| | | | | | | | | | | | * dbxout.c (get_lang_number): New. (dbxout_init): Include lang number in N_SO stab. * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN, N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define. testsuite * gcc.dg/20040813-1.c: New test. From-SVN: r87663
* re PR tree-optimization/17273 (ICE in get_indirect_ref_operands)Diego Novillo2004-09-174-0/+52
| | | | | | | | | | | | | PR tree-optimization/17273 * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the replacement is a constant. testsuite/ChangeLog PR tree-optimization/17273 * gcc.c-torture/compile/pr17273.c: New test. From-SVN: r87662
* c-tree.h (enum c_typespec_keyword): New.Joseph Myers2004-09-179-265/+602
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * c-tree.h (enum c_typespec_keyword): New. (struct c_declspecs): Adjust description of "type". Remove specbits, explicit_int_p and explicit_char_p. Rename typedef_signed_p to explicit_signed_p. Add default_int_p, long_p, short_p, signed_p, unsigned_p and complex_p. (finish_declspecs): New. * c-parse.in (datadef, datadecl, setspecs, decl, component_decl, typename): Call finish_declspecs. * c-decl.c (finish_declspecs): New. (declspecs_add_type): Check for combinations which cannot occur in valid specifier lists. Update comments. (shadow_tag_warned): Remove checks done in finish_declspecs. Don't report useless type name if type defaulted to int. (grokdeclarator): Remove checks and actions done in finish_declspecs. Don't allow for type being NULL. Update for datastructures changes. Initialize decl_attr. (build_null_declspecs, quals_from_declspecs): Update for datastructures changes. testsuite: * gcc.dg/declspec-4.c, gcc.dg/declspec-5.c, gcc.dg/declspec-6.c: Update expected messages. * gcc.dg/declspec-13.c: New test. From-SVN: r87660
* * doc/extend.texi: Fix duplicated word.Sylvain Pion2004-09-172-1/+5
| | | | From-SVN: r87657
* gfortran.h (struct gfc_linebuf): Don't use C99 empty arrays.Paul Brook2004-09-173-3/+11
| | | | | | | | * gfortran.h (struct gfc_linebuf): Don't use C99 empty arrays. (gfc_linebuf_header_size): Define. * scanner.c (load_file): Use it. From-SVN: r87655
* invoke.texi: Remove stray explanation on -freduce-all-givs and ↵Toon Moene2004-09-172-9/+5
| | | | | | | | | | | -fmove-all-movables. 2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl> * doc/invoke.texi: Remove stray explanation on -freduce-all-givs and -fmove-all-movables. From-SVN: r87651
* cfg.texi: Use @smallexample.James A. Morrison2004-09-176-25/+33
| | | | | | | | | | | | 2004-09-17 James Morrison <phython@gcc.gnu.org> * doc/cfg.texi: Use @smallexample. * doc/md.texi: Likewise. * doc/tree-ssa.texi: Likewise. * doc/extend.texi: Likewise. Use @r{} in comments. * doc/trouble.texi: Use @r{} in comments. From-SVN: r87646
* * gcc.dg/darwin-longlong.c: XFAIL on AIX and SPE.David Edelsohn2004-09-172-0/+5
| | | | From-SVN: r87645
* prj-attr-pm.ads, [...]: New files, to split some private capabilities of the ↵Vincent Celier2004-09-173-0/+118
| | | | | | | | | | | general project manager. 2004-09-17 Vincent Celier <celier@gnat.com> * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private capabilities of the general project manager. From-SVN: r87644
* configure.ac (gcc_cv_gld_version): Handle whitespace before "VERSION=".Hans-Peter Nilsson2004-09-174-4/+11
| | | | | | | | | * configure.ac (gcc_cv_gld_version): Handle whitespace before "VERSION=". * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto. * configure: Regenerate. From-SVN: r87643
* pr17252.c: Use post-increment to change what 'a' is pointing to.Diego Novillo2004-09-172-1/+6
| | | | | | | * gcc.c-torture/execute/pr17252.c: Use post-increment to change what 'a' is pointing to. From-SVN: r87642
* Be more precise in last entry.Joern Rennecke2004-09-171-0/+9
| | | | From-SVN: r87641
* sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.Joern Rennecke2004-09-173-4/+10
| | | | | | | | | | | * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference. (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug. * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g . * t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match trailing slashes in substitutions. (MULTILIB_DIRNAMES): Remove defunct removal of /media32. From-SVN: r87640
* basic-block.h, [...]: Fix comment typos.Kazu Hirata2004-09-1715-16/+24
| | | | | | | | | | * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c, gimplify.c, lambda-code.c, optabs.c, predict.c, tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c, tree-ssa.c, vec.h: Fix comment typos. Follow spelling conventions. From-SVN: r87637
* compat.texi, [...]: Use @option around options.Kazu Hirata2004-09-1711-40/+48
| | | | | | | | | * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi, doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi, doc/trouble.texi: Use @option around options. From-SVN: r87635
* * Makefile.in (gen-protos.o): Depend on errors.h.Richard Sandiford2004-09-172-1/+6
| | | | From-SVN: r87634
* re PR c++/16002 (Strange error message with new parser)Mark Mitchell2004-09-176-2/+51
| | | | | | | | | | | | | | | | | | | | PR c++/16002 * parser.c (cp_parser_simple_declaration): Commit to tentative parses after seeing a decl-specifier. (cp_parser_simple_declaration): Eliminate spurious message. (cp_parser_init_declarator): Adjust error message. PR c++/16029 * lex.c (unqualified_name_lookup_error): Mark the dummy declaration as used. PR c++/16002 * g++.dg/template/error18.C: New test. PR c++/16029 * g++.dg/warn/Wunused-8.C: New test. From-SVN: r87633
* re PR rtl-optimization/17513 (ICE: verify_flow_info failed after gcse)Steven Bosscher2004-09-174-4/+70
| | | | | | | | | | PR tree-optimization/17513 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE for successors of the entry block. * gcc.dg/20040916-1.c: New test. From-SVN: r87632
* re PR rtl-optimization/15187 (Inefficient if optimization with -O2 -ffast-math)Uros Bizjak2004-09-172-0/+26
| | | | | | | | PR rtl-optimization/15187 * ifcvt.c (noce_try_cmove_arith): Exit early if total insn_rtx_cost of both branches > BRANCH_COST From-SVN: r87631
* re PR tree-optimization/17528 (tree optimization incorrectly optimizes away ↵Diego Novillo2004-09-162-3/+7
| | | | | | | | | | | entire function (incorrect aliasing detection?)) PR tree-optimization/17528 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not erase the may-alias set for a tag when merging it with another. From-SVN: r87624
* Daily bump.GCC Administrator2004-09-171-1/+1
| | | | From-SVN: r87622
* sh.md (call): Extend 32-bit addresses to DImode for 32-bit TARGET_SHMEDIA.Kaz Kojima2004-09-162-2/+24
| | | | | | | | * config/sh/sh.md (call): Extend 32-bit addresses to DImode for 32-bit TARGET_SHMEDIA. (call_value): Likewise. From-SVN: r87619
* re PR c++/17501 (Confusion with member templates)Mark Mitchell2004-09-164-1/+33
| | | | | | | | | | | PR c++/17501 * parser.c (cp_parser_nested_name_specifier): Do not resolve typename types if the user explicitly said "typename". PR c++/17501 * g++.dg/template/typename7.C: New test. From-SVN: r87616
* tree-ssa-operands.c (add_call_clobber_ops): Make read-only test apply only ↵Diego Novillo2004-09-162-2/+13
| | | | | | | | | to TREE_STATIC and DECL_EXTERNAL. * tree-ssa-operands.c (add_call_clobber_ops): Make read-only test apply only to TREE_STATIC and DECL_EXTERNAL. From-SVN: r87615
* Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.Zdenek Dvorak2004-09-169-89/+504
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency. * basic-block.h (get_dominated_by_region): Declare. * dominance.c (get_dominated_by_region): New function. * tree-cfg.c: Include cfglayout.h. (tree_duplicate_bb): Duplicate also phi nodes. (struct ssa_name_map_entry): New type. (add_phi_args_after_copy_bb, add_phi_args_after_copy, ssa_name_map_entry_hash, ssa_name_map_entry_eq, allocate_ssa_names, rewrite_to_new_ssa_names_def, rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions. * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb, add_phi_args_after_copy, rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names, allocate_ssa_names, rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare. * tree-ssa-loop-ch.c (duplicate_blocks): Removed. (copy_loop_headers): Use tree_duplicate_sese_region. * gcc.dg/tree-ssa/copy-headers.c: Update outcome. From-SVN: r87614
* profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.Frank Ch. Eigler2004-09-162-15/+25
| | | | | | | | 2004-09-16 Frank Ch. Eigler <fche@redhat.com> * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION. From-SVN: r87613
* bprob.exp, bprob.exp: Iterate tests with -ftree-based-profiling also.Frank Ch. Eigler2004-09-164-25/+44
| | | | | | | | | | 2004-09-16 Frank Ch. Eigler <fche@redhat.com> * gcc.misc-tests/bprob.exp, g++.dg/bprob/bprob.exp: Iterate tests with -ftree-based-profiling also. * lib/profopt.exp: Support late-set profile_option/feedback_option. From-SVN: r87612
* tree-into-ssa.c (block_defs_stack): New toplevel varray.Jeff Law2004-09-163-113/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tree-into-ssa.c (block_defs_stack): New toplevel varray. (rewrite_block_data): Remove, no longer used. (rewrite_initialize_block_local_data): Remove, no longer used. (rewrite_initialize_block): Mark parameters as unused as needed. Change references to the block local block_defs to be block_defs_stack. Push a marker onto the block_defs_stack. (ssa_rewrite_initialize_block): Similarly. (rewrite_stmt, ssa_rewrite_stmt): Similarly. (ssa_register_new_def): No longer needs varray argument. Use block_defs_stack instead. No longer handle possibly null block_defs varray. Reverse order of items we push on the stack to make it easier to identify our marker. (register_new_def): No longer handle possibly null block_defs varray. (rewrite_finalize_block): Revamp to look for markers in the global block_defs_stack varray rather than wiping a block local varray. Mark arguments as unused as needed. (ssa_rewrite_finalize_block): Similarly. (rewrite_into_ssa): Update initialization of dom walker structure to reflect that we don't need block local data anymore. Initialize the block_defs_stack varray. (rewrite_ssa_into_ssa): Similarly. * tree-ssa-dom.c (block_defs_stack): New toplevel varray. (struct dom_walk_data): Kill block_defs field. (tree_ssa_dominator_optimize): Initialize block_defs_stack. (thread_across_edge): Use the global block_defs_stack instead of the old block_defs varray. (dom_opt_initialize_block_local_data): Update now that we don't have block_defs field to check anymore. (dom_opt_initialize_block): Push a marker onto block_defs_stack. (restore_currdefs_to_original_value): Use the new block_defs_stack instead of a block local varray. (dom_opt_finalize_block): Similarly. (record_equivalencs_from_phis): Similarly. (optimize_stmt, register_definitions_for_stmt): Similarly. From-SVN: r87611
* error.c (dump_decl): Make sure there is lang_specific info before checking ↵Andrew MacLeod2004-09-162-3/+8
| | | | | | | | | | | for DTOR and CTOR decls. 2004-09-16 Andrew MacLeod <amacleod@redhat.com> * error.c (dump_decl): Make sure there is lang_specific info before checking for DTOR and CTOR decls. From-SVN: r87610
* re PR tree-optimization/17517 (ICE: SSA corruption)Andrew MacLeod2004-09-162-10/+16
| | | | | | | | | | 2004-09-16 Andrew MacLeod <amacleod@redhat.com> PR tree-optimization/17517 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't coalesce same-root variables without checking for abnormal PHI usage. From-SVN: r87609
* [multiple changes]Daniel Berlin2004-09-168-144/+786
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-09-16 Daniel Berlin <dberlin@dberlin.org> * cfgloop.h (duplicate_loop): Add prototype. * cfgloopmanip.c (duplicate_loop): Make non-static. * lambda-code.c (perfect_nestify): Factor out test whether we can handle this loop into separate function. Call it. (can_convert_to_perfect_nest): New function. (replace_uses_of_x_with_y): Add modify_stmt call. * tree-loop-linear.c (linear_transform_loops): Call rewrite_into_loop_closed_ssa and free_df. 2004-09-16 Daniel Berlin <dberlin@dberlin.org> * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is loop invariant as well. (perfect_nestify): new function. (gcc_loop_to_lambda_loop): New parameters to track lower bounds, upper bounds, and steps. Set outerinductionvar properly. (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect parameters. Return NULL if we need a perfect loop and can't make one. (lambda_loopnest_to_gcc_loopnest): Correct algorithm. (not_interesting_stmt): New function. (phi_loop_edge_uses_def): Ditto. (stmt_uses_phi_result): Ditto. (stmt_is_bumper_for_loop): Ditto. (perfect_nest_p): Ditto. (nestify_update_pending_stmts): Ditto. (replace_uses_of_x_with_y): Ditto. (stmt_uses_op): Ditto. (perfect_nestify): Ditto. * lambda-mat.c (lambda_matrix_id_p): New function. * lambda-trans.c (lambda_trans_matrix_id_p): Ditto. * lambda.h: Update prototypes. * tree-loop-linear (linear_transform_loop): Use new perfect_nest_p. Detect and ignore identity transform. * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed. 2004-09-16 Sebastian Pop <pop@cri.ensmp.fr> * tree-loop-linear.c (gather_interchange_stats): Add more comments. Gather also strides of accessed data. Pass in the data references array. (try_interchange_loops): Add a new heuristic for handling the temporal locality. Pass in the data references array. (linear_transform_loops): Pass the data references array to try_interchange_loops. From-SVN: r87607
* * doc/invoke.texi: Fix typos. Follow spelling conventions.Kazu Hirata2004-09-162-5/+9
| | | | From-SVN: r87606
* array.c, [...]: Fix comment typos.Kazu Hirata2004-09-1626-68/+77
| | | | | | | | | | | * array.c, data.c, decl.c, dependency.c, error.c, f95-lang.c, interface.c, intrinsic.c, io.c, misc.c, module.c, parse.h, resolve.c, scanner.c, trans-array.c, trans-array.h, trans-common.c, trans-const.h, trans-decl.c, trans-expr.c, trans-intrinsic.c, trans-stmt.c, trans-types.c, trans.c, trans.h: Fix comment typos. Follow spelling conventions. From-SVN: r87605
* class.c (copy_virtuals): Remove.Nathan Sidwell2004-09-162-19/+13
| | | | | | | | | | * class.c (copy_virtuals): Remove. (build_primary_vtable): Use copy_list directly. (build_secondary_vtable): Likewise. (update_vtable_entry_for_fn): Clear BV_CALL_INDEX here. (create_vtable_ptr): Likewise. From-SVN: r87604
* c-tree.texi (Classes): Remove index entries for ↵Nathan Sidwell2004-09-162-3/+5
| | | | | | | | | TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}. * doc/c-tree.texi (Classes): Remove index entries for TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}. From-SVN: r87603
* missing changelog entryNathan Sidwell2004-09-161-0/+16
| | | | | | | | | | | | | | | | | | | missing changelog entry * cp-tree.h (struct lang_type_class): Make pure_virtuals a VEC(tree). (CLASSTYPE_INLINE_FRIENDS, CLASSTYPE_PURE_VIRTUALS): Update comments. * call.c (build_new_method_call): Don't confirm a pure virtual is in CLASSTYPE_PURE_VIRTUALS. Reorder checks. Make it a warning. * class.c (check_methods): CLASSTYPE_INLINE_FRIENDS is a VEC(tree). (fixup_inline_methods, finish_struct): Likewise. * decl.c (finish_method): Likewise. * search.c (dfs_get_pure_virtuals, get_pure_virtuals): CLASSTYPE_PURE_VIRTUALS is a VEC(tree). * typeck2.c (abstract_virtuals_error): Likewise. Truncate the vector to avoid repeating the list in error messages. From-SVN: r87602
* fold-const.c (fold): Fold difference of addresses.Zdenek Dvorak2004-09-166-170/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fold-const.c (fold): Fold difference of addresses. (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on get_inner_reference. * tree-ssa-loop-ivopts.c (peel_address): Removed. (ptr_difference_const): Moved to fold-const.c. (split_address_cost): Use get_inner_reference instead of peel_address. (ptr_difference_cost): Change type of diff to HOST_WIDE_INT. * tree.h (ptr_difference_const): Export. * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction variable type to the dump. Fix indentation. (idx_find_step): Handle nonconstant array_ref_element_size and array_ref_low_bound. (idx_record_use): Handle array_ref_element_size and array_ref_low_bound. (find_interesting_uses_stmt): Handle memory = nontrivial_expression statements correctly. (get_computation_at, iv_value): Do not unshare expressions here. (rewrite_use_outer): Unshare the expression before it is emitted to code. * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for): Moved to tree.c. * tree.c (unsigned_type_for, signed_type_for): Moved from tree-ssa-loop-niter.c. Use langhooks. * tree.h (signed_type_for): Export. From-SVN: r87601
* * search.c: Follow spelling conventions.Kazu Hirata2004-09-162-6/+10
| | | | From-SVN: r87600
* rs6000.c (rs6000_xcoff_asm_named_section): Update prototype.David Edelsohn2004-09-162-1/+6
| | | | | | | * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update prototype. From-SVN: r87599
* trans-io.c (transfer_array_component): New function.Victor Leikehman2004-09-166-13/+190
| | | | | | | | | | | | | | 2004-09-16 Victor Leikehman <lei@il.ibm.com> PR/15364 * trans-io.c (transfer_array_component): New function. (transfer_expr): For array fields, call transfer_array_component. testsuite/ * gfortran.dg/der_array_io_1.f90: New test. * gfortran.dg/der_array_io_2.f90: New test. * gfortran.dg/der_array_io_3.f90: New test. From-SVN: r87596
* * gfortran.texi: Fix a typo.Kazu Hirata2004-09-162-1/+5
| | | | From-SVN: r87595
* cp-tree.h (struct lang_type_class): Make pure_virtuals a VEC(tree).Nathan Sidwell2004-09-167-45/+48
| | | | | | | | | | | | | | | | | | * cp-tree.h (struct lang_type_class): Make pure_virtuals a VEC(tree). (CLASSTYPE_INLINE_FRIENDS, CLASSTYPE_PURE_VIRTUALS): Update comments. * call.c (build_new_method_call): Don't confirm a pure virtual is in CLASSTYPE_PURE_VIRTUALS. Reorder checks. Make it a warning. * class.c (check_methods): CLASSTYPE_INLINE_FRIENDS is a VEC(tree). (fixup_inline_methods, finish_struct): Likewise. * decl.c (finish_method): Likewise. * search.c (dfs_get_pure_virtuals, get_pure_virtuals): CLASSTYPE_PURE_VIRTUALS is a VEC(tree). * typeck2.c (abstract_virtuals_error): Likewise. Truncate the vector to avoid repeating the list in error messages. From-SVN: r87592
* * gcc.pot: Regenerate.Joseph Myers2004-09-162-850/+858
| | | | From-SVN: r87590
* re PR libobjc/11572 (GNU libobjc no longer compiled on Darwin)Andrew Pinski2004-09-1510-16/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-09-15 Andrew Pinski <pinskia@physics.uc.edu> PR target/11572 * c-incpath.h (target_c_incpath_s): Add extra_pre_includes. Add two parameters to extra_includes. (C_INCPATH_INIT): Remove. * c-incpath.c (register_include_chains): Call extra_pre_includes before adding the standard include directory. Update call to extra_includes. (!defined TARGET_EXTRA_INCLUDES): Update hook_void_charptr_charptr_int and add !define TARGET_EXTRA_PRE_INCLUDES. (!define TARGET_EXTRA_INCLUDES): Define as hook_void_charptr_charptr_int. (!define TARGET_EXTRA_PRE_INCLUDES): Likewise. (target_c_incpath): Always declare. * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a empty function. (define TARGET_EXTRA_PRE_INCLUDES): Likewise. * config/darwin.h: (darwin_register_frameworks): Update for the two new parameters. (darwin_register_objc_includes): Add prototype. (TARGET_EXTRA_PRE_INCLUDES): Define. * config/darwin-c.c (darwin_register_objc_includes): New function. (darwin_register_frameworks): Update for the two new parameters. (target_c_incpath): Remove. * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to the compile line. * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new parameters. (TARGET_EXTRA_PRE_INCLUDES): Document. * gcc.c (spec_function): Add replace-outfile. (replace_outfile_spec_function): New function. * config/darwin.h (LINK_SPEC): Add replace -lobjc with -lobjc-gnu if -fgnu-runtime is supplied. * invoke.texi (replace-outfile): Document. From-SVN: r87588
* cxxabi_tweaks.h (__cxa_cdtor_return_type): Define.Mark Mitchell2004-09-162-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type): Define. * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type): Define. * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type. (__cxa_vec_new): Use it. (__cxa_vec_new2): Likewise. (__cxa_vec_new3): Likewise. (__cxa_vec_cdtor): Likewise. (__cxa_vec_cctor): Likeiwse. (__cxa_vec_dtor): Likewise. (__cxa_vec_cleanup): Likewise. (__cxa_vec_delete2): Likewise. (__cxa_vec_delete3): Likewise. * libsupc++/vec.cc (__cxa_vec_new): Likewise. (__cxa_vec_new2): Likewise. (__cxa_vec_new3): Likewise. (__cxa_vec_cdtor): Likewise. (__cxa_vec_cctor): Likeiwse. (__cxa_vec_dtor): Likewise. (__cxa_vec_cleanup): Likewise. (__cxa_vec_delete2): Likewise. (__cxa_vec_delete3): Likewise. (__aeabi_vec_ctor_nocookie_nodtor): New function. (__aeabi_vec_ctor_cookie_nodtor): Likewise. (__aeabi_vec_cctor_nocookie_nodtor): Likewise. (__aeabi_vec_new_cookie_noctor): Likewise. (__aeabi_vec_new_nocookie): Likewise. (__aeabi_vec_new_cookie_nodtor): Likewise. (__aeabi_vec_new_cookie): Likewise. (__aeabi_vec_dtor): Likewise. (__aeabi_vec_dtor_cookie): Likewise. (__aeabi_vec_delete): Likewise. (__aeabi_vec_delete3): Likewise. (__aeabi_vec_delete3_nodtor): Likewise. (__aeabi_atexit): Likewise. * testsuite/g++.old-deja/g++.abi/cxa_vec.C: Adjust for ARM EABI. From-SVN: r87585
* Revert accidental commit of unrelated/unfinished changes.Paul Brook2004-09-161-85/+5
| | | | From-SVN: r87583