]> gcc.gnu.org Git - gcc.git/log
gcc.git
19 years agoalias.c, [...]: Fix comment typos.
Kazu Hirata [Sat, 18 Sep 2004 19:47:10 +0000 (19:47 +0000)]
alias.c, [...]: Fix comment typos.

* alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
tree-ssa-operands.c, tree-ssa-phiopt.c,
tree-ssa-threadupdate.c: Fix comment typos.

From-SVN: r87707

19 years agodarwin-c.c, [...]: Fix comment typos.
Kazu Hirata [Sat, 18 Sep 2004 19:19:40 +0000 (19:19 +0000)]
darwin-c.c, [...]: Fix comment typos.

* config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
config/arm/README-interworking, config/arm/arm-cores.def,
config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
config/frv/frv.md, config/i386/winnt.c,
config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
config/m68hc11/m68hc11.md, config/m68k/m68k.c,
config/mcore/mcore.c, config/mips/mips.h,
config/mn10300/mn10300.md, config/pa/pa.c,
config/pa/pa64-regs.h, config/pdp11/pdp11.c,
config/rs6000/rs6000.c, config/sh/symbian.c,
config/sparc/sparc.h: Fix comment typos.  Follow spelling
conventions.

From-SVN: r87706

19 years agore PR c/17424 (ICE with sizeof an undeclared variable)
Joseph Myers [Sat, 18 Sep 2004 18:28:14 +0000 (19:28 +0100)]
re PR c/17424 (ICE with sizeof an undeclared variable)

PR c/17424
* c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.

testsuite:
* gcc.dg/pr17424-1.c: New test.

From-SVN: r87705

19 years agocall.c, [...]: Follow spelling conventions.
Kazu Hirata [Sat, 18 Sep 2004 17:23:59 +0000 (17:23 +0000)]
call.c, [...]: Follow spelling conventions.

* call.c, semantics.c: Follow spelling conventions.
* class.c: Fix a comment typo.

From-SVN: r87704

19 years agotree-ssa-alias.c (setup_pointers_and_addressables): Don't remove TREE_ADDRESSABLE...
Diego Novillo [Sat, 18 Sep 2004 13:56:23 +0000 (13:56 +0000)]
tree-ssa-alias.c (setup_pointers_and_addressables): Don't remove TREE_ADDRESSABLE from RESULT_DECL.

* tree-ssa-alias.c (setup_pointers_and_addressables): Don't
remove TREE_ADDRESSABLE from RESULT_DECL.

testsuite/ChangeLog

* g++.dg/tree-ssa/pr17153.C: New test.

From-SVN: r87703

19 years ago* tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
Diego Novillo [Sat, 18 Sep 2004 13:53:31 +0000 (13:53 +0000)]
* tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.

From-SVN: r87702

19 years agotree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return NULL.
Jan Hubicka [Sat, 18 Sep 2004 07:31:30 +0000 (09:31 +0200)]
tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return NULL.

* tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
NULL.
* tree-ssa-alias.c (init_alias_info): Likewise.
* tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
(verify_ssa): Likewise.
* tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.

From-SVN: r87698

19 years agoi386.c (legitimize_pic_address): Fix splitting of PLUS with huge offset.
Jan Hubicka [Sat, 18 Sep 2004 07:29:06 +0000 (09:29 +0200)]
i386.c (legitimize_pic_address): Fix splitting of PLUS with huge offset.

* i386.c (legitimize_pic_address): Fix splitting of PLUS with
huge offset.

From-SVN: r87697

19 years agolinux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
Kaz Kojima [Sat, 18 Sep 2004 06:43:09 +0000 (06:43 +0000)]
linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.

* config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
* config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
DW_EH_PE_sdata* for data.
(ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.

From-SVN: r87696

19 years agore PR pch/13361 (const wchar_t * strings not stored in pch)
Geoffrey Keating [Sat, 18 Sep 2004 05:50:52 +0000 (05:50 +0000)]
re PR pch/13361 (const wchar_t * strings not stored in pch)

* tree-inline.c (copy_tree_r): Don't duplicate constants, they're
shared anyway.

PR pch/13361
* c-typeck.c (constructor_asmspec): Delete.
(struct initializer_stack): Delete field 'asmspec'.
(start_init): Delete saving of asmspec.
(finish_init): Don't update constructor_asmspec.
* dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
* stmt.c (expand_asm): Duplicate strings from tree.
(expand_asm_operands): Likewise.
* tree.c (tree_size): Update computation of size of STRING_CST.
(make_node): Don't make STRING_CST nodes.
(build_string): Allocate string with tree node.
(tree_code_size): Clean up assertions, don't allow requests
for "the size of a STRING_CST".
* tree.def (STRING_CST): Update comment.
* tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
(tree_string): Place contents of string in tree node.
* config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
from tree.

From-SVN: r87695

19 years agoMakefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
Zack Weinberg [Sat, 18 Sep 2004 01:07:25 +0000 (01:07 +0000)]
Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).

* Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
* objc/Make-lang.in (objc/objc-parse.o): Likewise.

From-SVN: r87689

19 years ago* charset.c (_cpp_destroy_iconv, emit_numeric_escape)
Zack Weinberg [Sat, 18 Sep 2004 00:56:19 +0000 (00:56 +0000)]
* charset.c (_cpp_destroy_iconv, emit_numeric_escape)
(_cpp_convert_input, _cpp_default_encoding): Add comments.
Some other comments in this file also tweaked.

From-SVN: r87688

19 years agodirectives.c (do_pragma): Save current buffer position before lexing the pragma keywo...
Zack Weinberg [Sat, 18 Sep 2004 00:53:50 +0000 (00:53 +0000)]
directives.c (do_pragma): Save current buffer position before lexing the pragma keywords...

* directives.c (do_pragma): Save current buffer position
before lexing the pragma keywords; don't call
_cpp_backup_tokens in the defer_pragmas case.

From-SVN: r87687

19 years agoconfigure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
Jones Desougi [Sat, 18 Sep 2004 00:50:15 +0000 (00:50 +0000)]
configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.

2004-09-17  Jones Desougi  <jones@ingate.com>

* configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
* configure, config.in: Regenerate.

From-SVN: r87686

19 years agotree.c, tree.h (tree_class_strings): Make array const.
Zack Weinberg [Sat, 18 Sep 2004 00:43:42 +0000 (00:43 +0000)]
tree.c, tree.h (tree_class_strings): Make array const.

* tree.c, tree.h (tree_class_strings): Make array const.
Reindent per coding convention.  Move asterisk to proper place
per coding convention.

From-SVN: r87685

19 years agoDaily bump.
GCC Administrator [Sat, 18 Sep 2004 00:16:19 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r87683

19 years agoinclhack.def (linux_ia64_ucontext): New fix.
Roger Sayle [Fri, 17 Sep 2004 22:58:40 +0000 (22:58 +0000)]
inclhack.def (linux_ia64_ucontext): New fix.

* inclhack.def (linux_ia64_ucontext): New fix.
* fixincl.x: Regenerate.
* tests/base/sys/ucontext.h: New file.

From-SVN: r87677

19 years agoMakefile.in (gimple-low.o): Depend on $(EXPR_H).
Andreas Schwab [Fri, 17 Sep 2004 22:14:58 +0000 (22:14 +0000)]
Makefile.in (gimple-low.o): Depend on $(EXPR_H).

* Makefile.in (gimple-low.o): Depend on $(EXPR_H).
(tree-vectorizer.o): Likewise.
(targhooks.o): Likewise.

From-SVN: r87676

19 years agoalias.c (find_base_decl): Remove unreachable case '3' block.
Jeffrey D. Oldham [Fri, 17 Sep 2004 21:55:02 +0000 (21:55 +0000)]
alias.c (find_base_decl): Remove unreachable case '3' block.

2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
    Zack Weinberg  <zack@codesourcery.com>

* alias.c (find_base_decl): Remove unreachable case '3' block.
* expr.c (safe_from_p): Abort if passed a type.
* tree-gimple.c (recalculate_side_effects): Abort if passed
anything other than an expression.
* tree-ssa-pre.c (phi_translate): Return expr immediately if
is_gimple_min_invariant is true for it.  Reorder cases for clarity.
Abort on un-handled tree classes.
(valid_in_set): Likewise.
* tree.c (tree_code_class_strings): New static data.

* tree.h (enum tree_code_class): New.
(tree_code_class_strings): Declare.
(TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
(REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
(STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
(TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
(checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.

* tree.def, c-common.def, objc/objc-tree.def: Use
tree_code_class enumeration constants instead of code letters.

* alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
* c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
* emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
* langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
* tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
* tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
* tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
* tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
* tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
* tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
* tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
* config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
* config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
Update to match.

* LANGUAGES: Add note about change.

ada:
* ada-tree.def: Use tree_code_class enumeration constants
instead of code letters.
* ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
Update for new tree-class enumeration constants.

cp:
* cp-tree.def: Use tree_code_class enumeration constants
instead of code letters.
* call.c, class.c, cp-gimplify.c, cp-lang.c, cxx-pretty-print.c
* mangle.c, pt.c, semantics.c, tree.c, typeck.c:
Update for new tree-class enumeration constants.

fortran:
* f95-lang.c, trans-expr.c, trans.c: Update for new tree-class
enumeration constants.

java:
* java-tree.def: Use tree_code_class enumeration constants
instead of code letters.
* java-gimplify.c, jcf-write.c, lang.c, parse.y: Update for
new tree-class enumeration constants.

treelang:
* treetree.c: Update for new tree-class enumeration constants.

From-SVN: r87675

19 years ago20040917-1.c: New test.
Kenneth Zadeck [Fri, 17 Sep 2004 21:49:39 +0000 (21:49 +0000)]
20040917-1.c: New test.

2004-09-17  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>

* gcc.c-torture/execute/20040917-1.c: New test.

From-SVN: r87674

19 years agore PR tree-optimization/17319 (-fno-tree-dce cause ICE)
Diego Novillo [Fri, 17 Sep 2004 21:30:23 +0000 (21:30 +0000)]
re PR tree-optimization/17319 (-fno-tree-dce cause ICE)

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

19 years agotree-ssa-dom.c (const_and_copies_stack): New.
Jeff Law [Fri, 17 Sep 2004 21:16:07 +0000 (15:16 -0600)]
tree-ssa-dom.c (const_and_copies_stack): New.

* 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

19 years agore PR tree-optimization/17509 (ICE in verify_cgraph_node)
Jan Hubicka [Fri, 17 Sep 2004 21:04:56 +0000 (23:04 +0200)]
re PR tree-optimization/17509 (ICE in verify_cgraph_node)

PR tree-optimization/17509
* tree-optimize.c (update_inlined_to_pointers): New function.
(tree_rest_of_compilation): Use it.

From-SVN: r87669

19 years agodbxout.c (get_lang_number): New.
Devang Patel [Fri, 17 Sep 2004 18:47:19 +0000 (11:47 -0700)]
dbxout.c (get_lang_number): New.

       * 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

19 years agore PR tree-optimization/17273 (ICE in get_indirect_ref_operands)
Diego Novillo [Fri, 17 Sep 2004 18:42:51 +0000 (18:42 +0000)]
re PR tree-optimization/17273 (ICE in get_indirect_ref_operands)

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

19 years agoc-tree.h (enum c_typespec_keyword): New.
Joseph Myers [Fri, 17 Sep 2004 18:18:05 +0000 (19:18 +0100)]
c-tree.h (enum c_typespec_keyword): New.

* 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

19 years ago* doc/extend.texi: Fix duplicated word.
Sylvain Pion [Fri, 17 Sep 2004 17:24:17 +0000 (19:24 +0200)]
* doc/extend.texi: Fix duplicated word.

From-SVN: r87657

19 years agogfortran.h (struct gfc_linebuf): Don't use C99 empty arrays.
Paul Brook [Fri, 17 Sep 2004 17:07:43 +0000 (17:07 +0000)]
gfortran.h (struct gfc_linebuf): Don't use C99 empty arrays.

* 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

19 years agoinvoke.texi: Remove stray explanation on -freduce-all-givs and -fmove-all-movables.
Toon Moene [Fri, 17 Sep 2004 15:51:58 +0000 (17:51 +0200)]
invoke.texi: Remove stray explanation on -freduce-all-givs and -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

19 years agostl_algo.h (remove): Remove too restrictive concept-check.
Jonathan Wakely [Fri, 17 Sep 2004 14:11:59 +0000 (15:11 +0100)]
stl_algo.h (remove): Remove too restrictive concept-check.

2004-09-17  Jonathan Wakely  <redi@gcc.gnu.org>

* include/bits/stl_algo.h (remove): Remove too restrictive
concept-check.

From-SVN: r87650

19 years agofstream.tcc (xsgetn): Slightly tweak conditional, as per Nathan's original suggestion.
Paolo Carlini [Fri, 17 Sep 2004 14:01:18 +0000 (14:01 +0000)]
fstream.tcc (xsgetn): Slightly tweak conditional, as per Nathan's original suggestion.

2004-09-17  Paolo Carlini  <pcarlini@suse.de>

* include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
as per Nathan's original suggestion.

From-SVN: r87647

19 years agocfg.texi: Use @smallexample.
James A. Morrison [Fri, 17 Sep 2004 13:57:03 +0000 (13:57 +0000)]
cfg.texi: Use @smallexample.

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

19 years ago* gcc.dg/darwin-longlong.c: XFAIL on AIX and SPE.
David Edelsohn [Fri, 17 Sep 2004 13:48:43 +0000 (13:48 +0000)]
* gcc.dg/darwin-longlong.c: XFAIL on AIX and SPE.

From-SVN: r87645

19 years agoprj-attr-pm.ads, [...]: New files, to split some private capabilities of the general...
Vincent Celier [Fri, 17 Sep 2004 13:46:12 +0000 (13:46 +0000)]
prj-attr-pm.ads, [...]: New files, to split some private capabilities of the 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

19 years agoconfigure.ac (gcc_cv_gld_version): Handle whitespace before "VERSION=".
Hans-Peter Nilsson [Fri, 17 Sep 2004 12:45:34 +0000 (12:45 +0000)]
configure.ac (gcc_cv_gld_version): Handle whitespace before "VERSION=".

* configure.ac (gcc_cv_gld_version): Handle whitespace before
"VERSION=".
* aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
* configure: Regenerate.

From-SVN: r87643

19 years agopr17252.c: Use post-increment to change what 'a' is pointing to.
Diego Novillo [Fri, 17 Sep 2004 12:22:19 +0000 (12:22 +0000)]
pr17252.c: Use post-increment to change what 'a' is pointing to.

* gcc.c-torture/execute/pr17252.c: Use post-increment to
change what 'a' is pointing to.

From-SVN: r87642

19 years agoBe more precise in last entry.
Joern Rennecke [Fri, 17 Sep 2004 12:01:33 +0000 (13:01 +0100)]
Be more precise in last entry.

From-SVN: r87641

19 years agosh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
Joern Rennecke [Fri, 17 Sep 2004 11:53:14 +0000 (12:53 +0100)]
sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.

* 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

19 years agotune-1.cc: Use VERIFY, clean up a bit.
Paolo Carlini [Fri, 17 Sep 2004 11:18:27 +0000 (11:18 +0000)]
tune-1.cc: Use VERIFY, clean up a bit.

2004-09-17  Paolo Carlini  <pcarlini@suse.de>

* testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
up a bit.
* testsuite/ext/mt_allocator/tune-2.cc: Likewise.
* testsuite/ext/mt_allocator/tune-3.cc: Likewise.
* testsuite/ext/mt_allocator/tune-4.cc: Likewise.

From-SVN: r87638

19 years agobasic-block.h, [...]: Fix comment typos.
Kazu Hirata [Fri, 17 Sep 2004 09:14:12 +0000 (09:14 +0000)]
basic-block.h, [...]: Fix comment typos.

* 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

19 years agobasic_file_stdio.cc (__basic_file<>::close)): Don't call unnecessarily sync, that...
Paolo Carlini [Fri, 17 Sep 2004 08:42:07 +0000 (08:42 +0000)]
basic_file_stdio.cc (__basic_file<>::close)): Don't call unnecessarily sync, that is fflush...

2004-09-17  Paolo Carlini  <pcarlini@suse.de>
    Andrea Arcangeli  <andrea@suse.de>

* config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
call unnecessarily sync, that is fflush: the library, since 3.4.0
does not use buffered fread/fwrite.
* include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.

Co-Authored-By: Andrea Arcangeli <andrea@suse.de>
From-SVN: r87636

19 years agocompat.texi, [...]: Use @option around options.
Kazu Hirata [Fri, 17 Sep 2004 08:22:53 +0000 (08:22 +0000)]
compat.texi, [...]: Use @option around options.

* 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

19 years ago* Makefile.in (gen-protos.o): Depend on errors.h.
Richard Sandiford [Fri, 17 Sep 2004 07:15:22 +0000 (07:15 +0000)]
* Makefile.in (gen-protos.o): Depend on errors.h.

From-SVN: r87634

19 years agore PR c++/16002 (Strange error message with new parser)
Mark Mitchell [Fri, 17 Sep 2004 07:01:11 +0000 (07:01 +0000)]
re PR c++/16002 (Strange error message with new parser)

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

19 years agore PR rtl-optimization/17513 (ICE: verify_flow_info failed after gcse)
Steven Bosscher [Fri, 17 Sep 2004 06:23:54 +0000 (06:23 +0000)]
re PR rtl-optimization/17513 (ICE: verify_flow_info failed after gcse)

        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

19 years agore PR rtl-optimization/15187 (Inefficient if optimization with -O2 -ffast-math)
Uros Bizjak [Fri, 17 Sep 2004 05:32:36 +0000 (07:32 +0200)]
re PR rtl-optimization/15187 (Inefficient if optimization with -O2 -ffast-math)

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

19 years agore PR tree-optimization/17528 (tree optimization incorrectly optimizes away entire...
Diego Novillo [Fri, 17 Sep 2004 01:10:28 +0000 (01:10 +0000)]
re PR tree-optimization/17528 (tree optimization incorrectly optimizes away 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

19 years agoDaily bump.
GCC Administrator [Fri, 17 Sep 2004 00:16:17 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r87622

19 years agosh.md (call): Extend 32-bit addresses to DImode for 32-bit TARGET_SHMEDIA.
Kaz Kojima [Thu, 16 Sep 2004 23:37:00 +0000 (23:37 +0000)]
sh.md (call): Extend 32-bit addresses to DImode for 32-bit TARGET_SHMEDIA.

* config/sh/sh.md (call): Extend 32-bit addresses to DImode
for 32-bit TARGET_SHMEDIA.
(call_value): Likewise.

From-SVN: r87619

19 years agore PR c++/17501 (Confusion with member templates)
Mark Mitchell [Thu, 16 Sep 2004 22:55:13 +0000 (22:55 +0000)]
re PR c++/17501 (Confusion with member templates)

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

19 years agotree-ssa-operands.c (add_call_clobber_ops): Make read-only test apply only to TREE_ST...
Diego Novillo [Thu, 16 Sep 2004 22:16:56 +0000 (22:16 +0000)]
tree-ssa-operands.c (add_call_clobber_ops): Make read-only test apply only 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

19 years agoMakefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
Zdenek Dvorak [Thu, 16 Sep 2004 21:29:43 +0000 (23:29 +0200)]
Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.

* 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

19 years agoprofile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
Frank Ch. Eigler [Thu, 16 Sep 2004 20:42:00 +0000 (20:42 +0000)]
profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.

2004-09-16  Frank Ch. Eigler  <fche@redhat.com>

* profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.

From-SVN: r87613

19 years agobprob.exp, bprob.exp: Iterate tests with -ftree-based-profiling also.
Frank Ch. Eigler [Thu, 16 Sep 2004 20:37:09 +0000 (20:37 +0000)]
bprob.exp, bprob.exp: Iterate tests with -ftree-based-profiling also.

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

19 years agotree-into-ssa.c (block_defs_stack): New toplevel varray.
Jeff Law [Thu, 16 Sep 2004 19:06:12 +0000 (13:06 -0600)]
tree-into-ssa.c (block_defs_stack): New toplevel varray.

* 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

19 years agoerror.c (dump_decl): Make sure there is lang_specific info before checking for DTOR...
Andrew MacLeod [Thu, 16 Sep 2004 18:52:48 +0000 (18:52 +0000)]
error.c (dump_decl): Make sure there is lang_specific info before checking 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

19 years agore PR tree-optimization/17517 (ICE: SSA corruption)
Andrew MacLeod [Thu, 16 Sep 2004 18:45:33 +0000 (18:45 +0000)]
re PR tree-optimization/17517 (ICE: SSA corruption)

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

19 years ago[multiple changes]
Daniel Berlin [Thu, 16 Sep 2004 16:16:14 +0000 (16:16 +0000)]
[multiple changes]

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

19 years ago* doc/invoke.texi: Fix typos. Follow spelling conventions.
Kazu Hirata [Thu, 16 Sep 2004 16:12:13 +0000 (16:12 +0000)]
* doc/invoke.texi: Fix typos.  Follow spelling conventions.

From-SVN: r87606

19 years agoarray.c, [...]: Fix comment typos.
Kazu Hirata [Thu, 16 Sep 2004 16:00:45 +0000 (16:00 +0000)]
array.c, [...]: Fix comment typos.

* 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

19 years agoclass.c (copy_virtuals): Remove.
Nathan Sidwell [Thu, 16 Sep 2004 15:21:41 +0000 (15:21 +0000)]
class.c (copy_virtuals): Remove.

* 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

19 years agoc-tree.texi (Classes): Remove index entries for TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
Nathan Sidwell [Thu, 16 Sep 2004 15:13:34 +0000 (15:13 +0000)]
c-tree.texi (Classes): Remove index entries for TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.

* doc/c-tree.texi (Classes): Remove index entries for
TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.

From-SVN: r87603

19 years agomissing changelog entry
Nathan Sidwell [Thu, 16 Sep 2004 15:04:34 +0000 (15:04 +0000)]
missing changelog entry

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

19 years agofold-const.c (fold): Fold difference of addresses.
Zdenek Dvorak [Thu, 16 Sep 2004 14:58:01 +0000 (16:58 +0200)]
fold-const.c (fold): Fold difference of addresses.

* 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

19 years ago* search.c: Follow spelling conventions.
Kazu Hirata [Thu, 16 Sep 2004 14:16:42 +0000 (14:16 +0000)]
* search.c: Follow spelling conventions.

From-SVN: r87600

19 years agors6000.c (rs6000_xcoff_asm_named_section): Update prototype.
David Edelsohn [Thu, 16 Sep 2004 14:09:27 +0000 (14:09 +0000)]
rs6000.c (rs6000_xcoff_asm_named_section): Update prototype.

        * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
        prototype.

From-SVN: r87599

19 years agotrans-io.c (transfer_array_component): New function.
Victor Leikehman [Thu, 16 Sep 2004 13:29:56 +0000 (13:29 +0000)]
trans-io.c (transfer_array_component): New function.

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

19 years ago* gfortran.texi: Fix a typo.
Kazu Hirata [Thu, 16 Sep 2004 13:13:39 +0000 (13:13 +0000)]
* gfortran.texi: Fix a typo.

From-SVN: r87595

19 years agocp-tree.h (struct lang_type_class): Make pure_virtuals a VEC(tree).
Nathan Sidwell [Thu, 16 Sep 2004 09:53:40 +0000 (09:53 +0000)]
cp-tree.h (struct lang_type_class): Make pure_virtuals a VEC(tree).

* 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

19 years agoencoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.
Andrew Pinski [Thu, 16 Sep 2004 08:35:01 +0000 (08:35 +0000)]
encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.

2004-09-16  Andrew Pinski  <apinski@apple.com>

        * encoding.c (ALTIVEC_VECTOR_MODE): Define a bogus macro.

From-SVN: r87591

19 years ago* gcc.pot: Regenerate.
Joseph Myers [Thu, 16 Sep 2004 08:01:11 +0000 (09:01 +0100)]
* gcc.pot: Regenerate.

From-SVN: r87590

19 years agore PR libobjc/11572 (GNU libobjc no longer compiled on Darwin)
Andrew Pinski [Thu, 16 Sep 2004 06:57:28 +0000 (06:57 +0000)]
re PR libobjc/11572 (GNU libobjc no longer compiled on Darwin)

2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/11572
        * configure.in (*-*-darwin*): Renable libobjc.
        * configure: Regenerate.

From-SVN: r87589

19 years agore PR libobjc/11572 (GNU libobjc no longer compiled on Darwin)
Andrew Pinski [Thu, 16 Sep 2004 06:49:59 +0000 (06:49 +0000)]
re PR libobjc/11572 (GNU libobjc no longer compiled on Darwin)

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

19 years agocxxabi_tweaks.h (__cxa_cdtor_return_type): Define.
Mark Mitchell [Thu, 16 Sep 2004 03:41:19 +0000 (03:41 +0000)]
cxxabi_tweaks.h (__cxa_cdtor_return_type): Define.

* 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

19 years agoRevert accidental commit of unrelated/unfinished changes.
Paul Brook [Thu, 16 Sep 2004 02:10:43 +0000 (02:10 +0000)]
Revert accidental commit of unrelated/unfinished changes.

From-SVN: r87583

19 years agoDaily bump.
GCC Administrator [Thu, 16 Sep 2004 00:16:16 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r87581

19 years agopredict.c (expr_expected_value, [...]): New function.
Jan Hubicka [Thu, 16 Sep 2004 00:01:41 +0000 (02:01 +0200)]
predict.c (expr_expected_value, [...]): New function.

* predict.c (expr_expected_value, strip_builtin_expect): New function.
(tree_predict_by_opcode): Use it.
(tree_estimate_probability): Add, for now disabled,
strip_builtin_expect call.

From-SVN: r87578

19 years agoFix linux kernel miscompilation.
James E Wilson [Wed, 15 Sep 2004 23:26:33 +0000 (23:26 +0000)]
Fix linux kernel miscompilation.

PR target/17455
* config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
if current_function_decl is a sibcall.

From-SVN: r87574

19 years agovarasm.c (default_function_rdodata_section): Make sure to pass along a decl for a...
Mark Mitchell [Wed, 15 Sep 2004 22:16:33 +0000 (22:16 +0000)]
varasm.c (default_function_rdodata_section): Make sure to pass along a decl for a link-once section.

* varasm.c (default_function_rdodata_section): Make sure to pass
along a decl for a link-once section.

* g++.dg/opt/switch1.C: New test.

From-SVN: r87569

19 years agotime.h: Correct mismatch in 2004-09-10 check-in.
Roger Sayle [Wed, 15 Sep 2004 22:12:58 +0000 (22:12 +0000)]
time.h: Correct mismatch in 2004-09-10 check-in.

* tests/base/sys/time.h: Correct mismatch in 2004-09-10 check-in.
* tests/base/stdlib.h: Likewise.

From-SVN: r87568

19 years agotree-ssa-operands.c (add_call_clobber_ops): Fix unused variable warning with code...
Richard Henderson [Wed, 15 Sep 2004 22:05:39 +0000 (15:05 -0700)]
tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable warning with code disable.

        * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
        warning with code disable.  Fix formatting.

From-SVN: r87567

19 years agoMakefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
Steven Bosscher [Wed, 15 Sep 2004 21:47:45 +0000 (21:47 +0000)]
Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.

* Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
* tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
after propagating into an ADDR_EXPR.

From-SVN: r87566

19 years agore PR rtl-optimization/17427 (powerpc-linux does not bootstrap on HEAD with --disable...
Andrew Pinski [Wed, 15 Sep 2004 21:45:28 +0000 (21:45 +0000)]
re PR rtl-optimization/17427 (powerpc-linux does not bootstrap on HEAD with --disable-checking)

2004-09-15  Andrew Pinski  <apinski@apple.com>

        PR rtl-opt/17427
        * gcse.c (process_insert_insn): insn_invalid_p has side effects.
        Move it out of gcc_assert.

From-SVN: r87565

19 years agoturn off code clobbering optimization for static variables until
Kenneth Zadeck [Wed, 15 Sep 2004 20:54:38 +0000 (20:54 +0000)]
turn off code clobbering optimization for static variables until
analysis behind it can be fixed in a couple of days.

From-SVN: r87564

19 years agoattribs.c, [...]: Use %<, %> and %q for quoting in diagnostics going through pretty...
Joseph Myers [Wed, 15 Sep 2004 20:48:10 +0000 (21:48 +0100)]
attribs.c, [...]: Use %<, %> and %q for quoting in diagnostics going through pretty-print.c.

gcc:
* attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
except.c, fold-const.c, function.c, langhooks.c, params.c,
reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
for quoting in diagnostics going through pretty-print.c.  Use ''
for quoting in other diagnostic text.
* langhooks.c: Include intl.h.  Mark text locating diagnostics for
translation.
* Makefile.in (langhooks.o): Update dependencies.
* pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
formats.

gcc/testsuite:
* g++.dg/ext/member-attr.C, g++.dg/warn/deprecated.C,
gcc.dg/deprecated.c, gcc.dg/noreturn-1.c, gcc.dg/noreturn-4.c:
Update expected messages.

libmudflap:
* testsuite/libmudflap.c/pass35-frag.c: Update expected message.

From-SVN: r87563

19 years ago* Make-lang.in (treelang-warn): Set to $(STRICT_WARN).
Zack Weinberg [Wed, 15 Sep 2004 20:05:11 +0000 (20:05 +0000)]
* Make-lang.in (treelang-warn): Set to $(STRICT_WARN).

From-SVN: r87562

19 years agoline-map.h (line_map_start): Add parameter names so preceding comment makes sense.
Per Bothner [Wed, 15 Sep 2004 19:39:22 +0000 (12:39 -0700)]
line-map.h (line_map_start): Add parameter names so preceding comment makes sense.

* include/line-map.h (line_map_start):  Add parameter names so
preceding comment makes sense.
(linemap_add):  Remove from comment mention of non-existing parameter.

From-SVN: r87561

19 years agoconfigure.ac: Check for COMDAT support.
Mark Mitchell [Wed, 15 Sep 2004 17:03:22 +0000 (17:03 +0000)]
configure.ac: Check for COMDAT support.

* configure.ac: Check for COMDAT support.  Robustify check for
SHF_MERGE support.
* configure: Regenerated.
* config.in: Likewise.
* langhooks-def.h (lhd_comdat_group): New function.
(LANG_HOOKS_COMDAT_GROUP): New macro.
(LANG_HOOKS_DECLS): Use it.
* langhooks.c (lhd_comdat_group): Define.
* langhooks.h (lang_hooks_for_decls): Add comdat_group.
* output.h (named_section_flags): Make it a macro.
(named_section_real): New function.
(default_no_named_section): Add decl parameter.
(default_elf_asm_named_section): Likewise.
(default_coff_asm_named_section): Likewise.
(default_pe_asm_named_section): Likewise.
* target.h (gcc_target): Adjust type of named_section.
* varasm.c (named_section_flags): Rename to named_section_real.
Add decl parameter.
(default_no_named_section): Add decl parameter.
(default_elf_asm_named_section): Use COMDAT, if available.  Deal
with the case that ASM_COMMENT_START is "@".
(default_coff_asm_named_section): Add decl parameter.
(default_pe_asm_named_section): Likewise.
* config/alpha/alpha.c (vms_asm_named_section): Add decl
parameter.
(unicosmk_asm_named_section): Likewise.
* config/arm/arm.c (arm_elf_asm_named_section): Remove.
* config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
* config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
* config/cris/cris-protos.h (cris_target_asm_named_section):
Likewise.
* config/cris/cris.c (cris_target_asm_named_section):
Likewise.
* config/h8300/h8300.c (h8300_asm_named_section): Likewise.
* config/i386/i386-protos.h (i386_pe_asm_named_section):
Likewise.
* config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
* config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
* config/mcore/mcore.c (mcore_asm_named_section): Likewise.
* config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
Likewise.
* config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.

* cp-objcp-common.h (LANG_HOOKS_COMDAT_GROUP): Define.
* cp-tree.h (cxx_comdat_group): Declare.
* decl.c (cxx_comdat_group): New function.

From-SVN: r87557

19 years agoparse.c (eof_buf): Rename eof to eof_buf.
Aaron W. LaFramboise [Wed, 15 Sep 2004 14:19:12 +0000 (08:19 -0600)]
parse.c (eof_buf): Rename eof to eof_buf.

2004-09-15  Aaron W. LaFramboise <aaronavay62@aaronwl.com>

* parse.c (eof_buf): Rename eof to eof_buf.
(unexpected_eof): Same.
(gfc_parse_file): Same.

From-SVN: r87556

19 years agocheck.c (gfc_check_getcwd_sub): New function.
Steven G. Kargl [Wed, 15 Sep 2004 14:17:26 +0000 (14:17 +0000)]
check.c (gfc_check_getcwd_sub): New function.

2004-09-15  Steven G. Kargl  <kargls@comcast.net>

* check.c (gfc_check_getcwd_sub): New function.
* gfortran.h (GFC_ISYM_GETCWD): New symbol.
* intrinsic.c (add_functions): Add function definition;
Use symbol.
* intrinsic.c (add_subroutines): Add subroutine definitions.
* intrinsic.h: Add prototypes.
* iresolve.c (gfc_resolve_getcwd, gfc_resolve_getcwd_sub):
New functions.
* trans-intrinsic.c (gfc_conv_intrinsic_function): Use symbol.
libgfortran/
* intrincics/getcwd.c: New file.
* Makefile.am: Add getcwd.c.
* Makefile.in: Regenerated.

From-SVN: r87555

19 years agotree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
Jan Hubicka [Wed, 15 Sep 2004 14:15:36 +0000 (16:15 +0200)]
tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.

* tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
* tree-tailcall.c (eliminate_tail_call): Release SSA name.

From-SVN: r87554

19 years ago* tree-cfg.c (remove_bb): Release SSA defs.
Jan Hubicka [Wed, 15 Sep 2004 14:14:03 +0000 (16:14 +0200)]
* tree-cfg.c (remove_bb): Release SSA defs.

From-SVN: r87553

19 years agocheck.c (gfc_check_getcwd_sub): New function.
Steven G. Kargl [Wed, 15 Sep 2004 14:09:17 +0000 (14:09 +0000)]
check.c (gfc_check_getcwd_sub): New function.

2004-09-15  Steven G. Kargl  <kargls@comcast.net>

* check.c (gfc_check_getcwd_sub): New function.
* gfortran.h (GFC_ISYM_GETCWD): New symbol.
* intrinsic.c (add_functions): Add function definition;
Use symbol.
* intrinsic.c (add_subroutines): Add subroutine definitions.
* intrinsic.h: Add prototypes.
* iresolve.c (gfc_resolve_getcwd, gfc_resolve_getcwd_sub):
New functions.
* trans-intrinsic.c (gfc_conv_intrinsic_function): Use symbol.
libgfortran/
* intrinsics/getcwd.c: New file.
* Makefile.am: Add getcwd.c.
* Makefile.in: Regenerated.

From-SVN: r87552

19 years agore PR fortran/16485 (Private subroutines from different modules collide during linking.)
Tobias Schlüter [Wed, 15 Sep 2004 13:12:52 +0000 (13:12 +0000)]
re PR fortran/16485 (Private subroutines from different modules collide during linking.)

2004-09-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>

PR fortran/16485
* module.c (write_symbol): Don't fill in module name here.
(write_symbol0): Fill in here instead.
testsuite/
* gfortran.dg/same_name_1.f90: New test.

From-SVN: r87551

19 years ago* doc/tm.texi: Follow spelling conventions.
Kazu Hirata [Wed, 15 Sep 2004 13:12:33 +0000 (13:12 +0000)]
* doc/tm.texi: Follow spelling conventions.

From-SVN: r87550

19 years ago* tree-ssa-dom.c: Fix comment typos.
Kazu Hirata [Wed, 15 Sep 2004 13:06:30 +0000 (13:06 +0000)]
* tree-ssa-dom.c: Fix comment typos.

From-SVN: r87549

19 years agoFix typo.
Paul Brook [Wed, 15 Sep 2004 13:02:08 +0000 (13:02 +0000)]
Fix typo.

From-SVN: r87548

19 years agoenv.c (getenv, [...]): Remove trailing white space.
Steven G. Kargl [Wed, 15 Sep 2004 12:59:22 +0000 (12:59 +0000)]
env.c (getenv, [...]): Remove trailing white space.

2004-09-15  Steven G. Kargl  <kargls@comcast.net>
Paul Brook  <paul@codesourcery.com>

* intrinsics/env.c (getenv, get_environmental_variable): Remove
trailing white space.  Uase alloca.  Honour trim_name.

Co-Authored-By: Paul Brook <paul@codesourcery.com>
From-SVN: r87547

19 years ago2004-09-15 Michael Koch <konqueror@gmx.de>
Michael Koch [Wed, 15 Sep 2004 12:38:46 +0000 (12:38 +0000)]
2004-09-15  Michael Koch  <konqueror@gmx.de>

* gnu/java/net/protocol/file/Handler.java
(openConnection): Don't throw exception if host part for file: URI is
present. setURL() keeps file: protocol if ftp: protocol is not
available.

From-SVN: r87546

19 years agopr17252.c: Fix thinko.
Diego Novillo [Wed, 15 Sep 2004 12:09:55 +0000 (12:09 +0000)]
pr17252.c: Fix thinko.

* gcc.c-torture/execute/pr17252.c: Fix thinko.  Don't
dereference garbage pointers.

From-SVN: r87545

This page took 0.111999 seconds and 5 git commands to generate.