platform/upstream/gcc.git
21 years agomn10300.h (PREDICATE_CODES): Define.
Alexandre Oliva [Thu, 10 Jul 2003 02:56:29 +0000 (02:56 +0000)]
mn10300.h (PREDICATE_CODES): Define.

* config/mn10300/mn10300.h (PREDICATE_CODES): Define.
2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
* config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
to flag_unsafe_math_optimizations.
2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
* config/mn10300/mn10300.c (expand_prologue): Mark
FP-register-saving insns as frame-related.
2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
* config/mn10300/mn10300.c
(mn10300_get_live_callee_saved_regs): Don't search past
LAST_EXTENDED_REGNUM.
(mn10300_gen_multiple_store, store_multiple_operation): Likewise.
* config/mn10300/mn10300.md: Remove excessive line breaks from
`@' output patterns that were accounted as additional
alternatives.
* config/mn10300/mn10300.md, config/mn10300/mn10300.c:
Re-introduce changes accidentally removed in Richard Sandiford's
2000-12-05's patch.
* config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
Re-instate am33-2 lost in merge from net GCC.
2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
* config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
floating-point registers.
2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
* config/mn10300/mn10300.md (movdf): Revert some am33-specific
pessimizations that had gone in on 2000-05-08.
2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
* config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
* config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
operand 0.
* (movhi): Likewise.
* (movsi): Likewise.
* (movsf): Likewise.
* (movdi): Likewise.
* (movdf): Likewise.
Wed May 24 13:16:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
* config/mn10300/mn10300.c (fp_regs_to_save): New function.
(can_use_return_insn, initial_offset): Add fp_regs_to_save.
(expand_prologue, expand_epilogue): Save and restore FP regs.
2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
* config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
* config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
Do not clobber cc0.
2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
* config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
Discourage the two-argument, longer opcodes.
(addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
ones.
* config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
(CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
* config/mn10300/mn10300.md (cmpsf): New pattern.
(branch): Test mdep.fpCC and output fbCC.
* config/mn10300/mn10300.c (print_operand): Output conditions.
(notice_cc_update): Recognize fcmp and set mdep.fpCC.
2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
* config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
mulsf3, divsf3): Use the `F' constraint for FP values.
* config/mn10300/mn10300.c (const_1f_operand): New function.
* config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
* config/mn10300/mn10300.md (sqrtsf2): New expand.
(rsqrtsf2): New insn.
2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
* config/mn10300/mn10300.md (movdf): Oops, I missed it in my
previous check-in.
2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
* config/mn10300/mn10300.md (abssf2, negdf2): On
TARGET_AM33_2, expand to...
(abssf2_am33_2, negdf2_am33_2): New insns.
(addsf3, subsf3, mulsf3, divsf3): Likewise.
(fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
* config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
movdi, movdf): Added FP regs.
* invoke.texi (-mam33-2, -mno-am33-2): Document.
2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
* config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
New macros.
(REGNO_AM33_2_FP_P): Renamed to...
(REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
(CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
* config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
regs from GENERAL_REGS.
2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
* config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
* config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
* config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
* config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
as FP_REGS.
2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
* config/mn10300/mn10300.h (OK_FOR_Q): New macro.
(EXTRA_CONSTRAINT): Added OK_FOR_Q.
* config/mn10300/mn10300.c (secondary_reload_class): Adjust.
* config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
* config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
(FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
AM33/2.0 floating-point registers.
(CONDITIONAL_REGISTER_USAGE): Adjust.
(enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
(REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
(REG_CLASS_FROM_LETTER): Added `f' and `A'.
(REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
* config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
(MULTILIB_DIRNAMES): Likewise.
* config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
`__AM33_2__' when `-mam33-2' is given.
(TARGET_AM33_2): Define.
(TARGET_SWITCHES): Adjust.
* config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
when appropriate.

From-SVN: r69167

21 years ago* doc/install.texi: Add missing @.
Matt Kraai [Thu, 10 Jul 2003 01:41:38 +0000 (01:41 +0000)]
* doc/install.texi: Add missing @.

From-SVN: r69166

21 years ago* config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
Bob Wilson [Thu, 10 Jul 2003 00:22:51 +0000 (00:22 +0000)]
* config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.

From-SVN: r69165

21 years agoDaily bump.
GCC Administrator [Thu, 10 Jul 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r69163

21 years agotypeck.c (build_x_unary_op): Take note of the fact that PREINCREMENT_EXPR and POSTINC...
Mark Mitchell [Wed, 9 Jul 2003 23:39:14 +0000 (23:39 +0000)]
typeck.c (build_x_unary_op): Take note of the fact that PREINCREMENT_EXPR and POSTINCREMENT_EXPR are binary...

* typeck.c (build_x_unary_op): Take note of the fact that
PREINCREMENT_EXPR and POSTINCREMENT_EXPR are binary operations on
trees.

From-SVN: r69161

21 years agoparser.c (cp_parser_primary_expression): Preserve the form of qualified expressions...
Mark Mitchell [Wed, 9 Jul 2003 23:06:39 +0000 (23:06 +0000)]
parser.c (cp_parser_primary_expression): Preserve the form of qualified expressions in templates...

* parser.c (cp_parser_primary_expression): Preserve the form of
qualified expressions in templates, even if they are not
dependent.
* pt.c (convert_nontype_argument): Handle non-dependent SCOPE_REFs.
(tsubst_qualified_id): Likewise.
* search.c (accessible_p): Treat everything in the body of a

From-SVN: r69160

21 years agoi386.c (ix86_function_arg_boundary): Remove abort.
Aldy Hernandez [Wed, 9 Jul 2003 22:19:04 +0000 (22:19 +0000)]
i386.c (ix86_function_arg_boundary): Remove abort.

2003-07-09  Aldy Hernandez  <aldyh@redhat.com>

PR/11144
* config/i386/i386.c (ix86_function_arg_boundary): Remove abort.

From-SVN: r69159

21 years agore PR bootstrap/11043 ([arc-elf32] make fails due to missing rules)
Nathanael Nerode [Wed, 9 Jul 2003 21:25:40 +0000 (21:25 +0000)]
re PR bootstrap/11043 ([arc-elf32] make fails due to missing rules)

PR bootstrap/11043
* config/arc/t-arc: Replace bogus references to "x-crtinit.o",
"x-crtfini.o" with "crtinit.o", "crtfini.o".

From-SVN: r69156

21 years agore PR fortran/11301 (ICE with -fno-globals)
Toon Moene [Wed, 9 Jul 2003 21:12:54 +0000 (23:12 +0200)]
re PR fortran/11301 (ICE with -fno-globals)

2003-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>

PR Fortran/11301
* com.c (ffecom_sym_transform_): finish_decl should have
the same last argument as start_decl.

From-SVN: r69155

21 years agoinclhack.def (limits_ifndefs): Add select test.
Nathanael Nerode [Wed, 9 Jul 2003 21:08:20 +0000 (21:08 +0000)]
inclhack.def (limits_ifndefs): Add select test.

* fixinc/inclhack.def (limits_ifndefs): Add select test.
* fixinc/fixincl.x: Rebuild.

From-SVN: r69154

21 years agoSyncTest.java (run): Cache .class value.
Jeff Sturm [Wed, 9 Jul 2003 21:07:42 +0000 (21:07 +0000)]
SyncTest.java (run): Cache .class value.

2003-07-09  Jeff Sturm  <jsturm@one-point.com>

* libjava.lang/SyncTest.java (run): Cache .class value.

From-SVN: r69153

21 years agoMakefile.in: Rebuilt.
Tom Tromey [Wed, 9 Jul 2003 21:03:31 +0000 (21:03 +0000)]
Makefile.in: Rebuilt.

* Makefile.in: Rebuilt.
* Makefile.am (AM_MAKEFLAGS): Added CPPFLAGS.

From-SVN: r69152

21 years agoinclhack.def (math_exception): Improve bypass and comment.
Nathanael Nerode [Wed, 9 Jul 2003 21:00:01 +0000 (21:00 +0000)]
inclhack.def (math_exception): Improve bypass and comment.

* fixinc/inclhack.def (math_exception):  Improve bypass and comment.
* fixinc/fixincl.x: Rebuild.

From-SVN: r69151

21 years agostl_tree.h: Move larger member functions in _Rb_tree_base_iterator and _Rb_tree_node...
Gawain Bolton [Wed, 9 Jul 2003 20:58:32 +0000 (20:58 +0000)]
stl_tree.h: Move larger member functions in _Rb_tree_base_iterator and _Rb_tree_node to...

2003-07-09  Gawain Bolton  <gp.bolton@computer.org>

* include/bits/stl_tree.h: Move larger member functions in
_Rb_tree_base_iterator and _Rb_tree_node to...
* src/stl_tree.cc: Here.
* src/Makefile.in: Add stl_tree.cc.
* src/Makefile.in: Regenerated.
* config/linker-map.gnu: Add symbols here.

From-SVN: r69150

21 years agoinstall.texi (Configuration): Document the valgrind option to --enable-checking.
Hans-Peter Nilsson [Wed, 9 Jul 2003 18:51:36 +0000 (18:51 +0000)]
install.texi (Configuration): Document the valgrind option to --enable-checking.

* doc/install.texi (Configuration): Document the valgrind option
to --enable-checking.

From-SVN: r69146

21 years agobprob.exp (prof_ext): Update.
Nathan Sidwell [Wed, 9 Jul 2003 14:57:21 +0000 (14:57 +0000)]
bprob.exp (prof_ext): Update.

* g++.dg/bprob/bprob.exp (prof_ext): Update.
* g77.dg/bprob/bprob.exp (prof_ext): Update.
* gcc.misc-tests/bprob.exp (prof_ext): Update.
* gcc.misc-tests/gcov.exp: Update
* g++.dg/gcov/gcov.exp: Update
* lib/gcov.exp: Update.

From-SVN: r69145

21 years ago* objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
Jan Hubicka [Wed, 9 Jul 2003 14:37:15 +0000 (16:37 +0200)]
* objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.

From-SVN: r69144

21 years agogcc_release (announce_snapshot): Add substitution of @BRANCH for README and index...
Gerald Pfeifer [Wed, 9 Jul 2003 13:24:07 +0000 (15:24 +0200)]
gcc_release (announce_snapshot): Add substitution of @BRANCH for README and index.html.

* gcc_release (announce_snapshot): Add substitution of @BRANCH
for README and index.html.  Remove substitution of @LONG_DATE.
Put index.html into the respective snapshot directory.
Adjust subject of the notification mail to the new naming scheme
for CVS tags.
Adjust name of the LATEST-IS-... files to the new naming scheme
for snapshot directories.
(FTP_PATH): Ditto.
(LAST_DIR): Ditto.
(LAST_LONG_DATE): Remove.

* snapshot-README: Adjust to the new naming schemes for directories
and snapshots per se.
Dynamically fill in the respective branch instead of hardcoding it.

* snapshot-index.html: Replace individual links to diffs with a
general link to the diff/ subdirectory.
Mention the concrete snapshot in <title> and <h1>.
Adjust links to the new location of index.html.

From-SVN: r69143

21 years ago* c-lex.c (cb_ident): Cast cstr.text to const char *.
Rainer Orth [Wed, 9 Jul 2003 12:21:12 +0000 (12:21 +0000)]
* c-lex.c (cb_ident): Cast cstr.text to const char *.

From-SVN: r69138

21 years agogcov-io.h: Update documentation.
Nathan Sidwell [Wed, 9 Jul 2003 12:12:29 +0000 (12:12 +0000)]
gcov-io.h: Update documentation.

* gcov-io.h: Update documentation.
(GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
GCOV_NOTE_MAGIC.
(GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
(GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
(struct gcov_var): Change buffer's type. Add endian flag.
(gcov_open): Remove mode in libgcov.
(gcov_magic): Prototype.
* gcov-io.c (from_file): New.
(gcov_open): Clear endian flag.
(gcov_magic): New.
(gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
pointers.
(gcov_write_unsigned, gcov_write_counter, gcov_write_string,
gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
(gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
* gcov-iov.c (main): Correct cast.
* coverage.c (read_counts_file): Use gcov_magic. Remove endianness
conversion.
(gcov_begin_output): Use GCOV_NOTE_MAGIC.
(coverage_init): Use GCOV_NOTE_SUFFIX.
* libgcov.c (gcov_version_mismatch): Remove endianness conversion.
Rename to gcov_version, and return flag.
(gcov_exit): Use gcov_version.
(__gcov_init): Use gcov_version.
* Makefile.in (coverageexts): Update.
* gcov.c (print_version): Remove endianness conversion.
(create_file_names): Use GCOV_NOTE_SUFFIX.
(read_graph_file): Use gcov_magic.
(read_count_file): Likewise.
* gcov-dump.c (dump_file): Remove endianness conversion, use
gcov_magic.

From-SVN: r69137

21 years agoconfigure.in (BUILD_PREFIX, [...]): Set if enable coverage is on.
Nathan Sidwell [Wed, 9 Jul 2003 11:48:24 +0000 (11:48 +0000)]
configure.in (BUILD_PREFIX, [...]): Set if enable coverage is on.

* configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
coverage is on.
* configure: Regenerated.
* Makefile.in (ALL_CFLAGS): Correct its comment.

From-SVN: r69136

21 years agoObjectOutputStream.java (writeObject): break after calling writeClassDescriptor().
Mark Wielaard [Wed, 9 Jul 2003 10:52:26 +0000 (10:52 +0000)]
ObjectOutputStream.java (writeObject): break after calling writeClassDescriptor().

       * java/io/ObjectOutputStream.java (writeObject): break after
       calling writeClassDescriptor().

From-SVN: r69135

21 years agofold-const.c (make_range): Do not access operand 1 for a zero-operand operator.
Mark Mitchell [Wed, 9 Jul 2003 08:48:08 +0000 (08:48 +0000)]
fold-const.c (make_range): Do not access operand 1 for a zero-operand operator.

* fold-const.c (make_range): Do not access operand 1 for a
zero-operand operator.

2003-07-08  Mark Mitchell  <mark@codesourcery.com>

* cp-tree.def (NON_DEPENDENT_EXPR): New node.
* cp-tree.h (build_call_from_tree): Remove.
(build_member_call): Likewise.
(dependent_template_arg_p): Remove.
(any_dependent_template_arguments_p): New function.
(dependent_template_id_p): Likewise.
(any_type_dependent_arguments_p): Likewise.
(build_non_dependent_expr): Likewise.
(build_non_dependent_args): Likewise.
(build_x_compound_expr): Adjust prototype.
* call.c (build_new_method_call): Handle non-dependent expressions
correctly.
* decl2.c (grok_array_decl): Likewise.
(build_offset_ref_call_from_tree): Likewise.
(build_call_from_tree): Remove.
* error.c (dump_decl): Handle NON_DEPENDENT_EXPR.
(dump_expr): Likewise.
* init.c (build_member_call): Remove.
* mangle.c (write_expression): Update handling for template-ids.
* parser.c (cp_parser_primary_expression): Use
any_dependent_template_arguments_p.  Update constant-expression
handling.
(cp_parser_postfix_expression): Use
any_type_dependent_arguments_p.  Simplify call processing.
(cp_parser_unary_expression): Simplify.
(cp_parser_expression): Adjust for changes to
build_x_compound_expr.
(cp_parser_template_argument): Implement standard-conforming
parsing of non-type template arguments.
(cp_parser_direct_declarator): Use
cp_parser_fold_non_dependent_expr.
(cp_parser_fold_non_dependent_expr): New function.
(cp_parser_next_token_ends_template_argument_p): Likewise.
* pt.c (convert_template_argument): Do not call
maybe_fold_nontype_arg.
(tsubst_baselink): Likewise.
(tsubst_copy_and_build): Share common code.  Make sizeof/alignof
processing work correctly for non-dependent expressions.  Adjust
handling of COMPOUND_EXPR.  Simplify call processing.
(value_dependent_expression_p): Deal with functional casts and
sizeof/alignof correctly.
(type_dependent_expression_p): Handle overloaded functions.
(any_type_dependent_arguments_p): New function.
(any_dependent_template_arguments_p): Likewise.
(dependent_template_p): Treat SCOPE_REFs as dependent.
(dependent_template_id_p): Simplify.
(build_non_dependent_expr): New function.
(build_non_dependent_args): Likewise.
* semantics.c (finish_stmt_expr): Don't make dependent
statement-expresions have void type.
(finish_call_expr): Handle non-dependent expressions
correctly.
* tree.c (lvalue_p_1): Treat NON_DEPENDENT_EXPRs as lvalues.
* typeck.c (cxx_sizeof_or_alignof_type): Give the expression
type size_t, even in templates.
(expr_sizeof): Likewise.
(finish_class_member_access_expr): Handle non-dependent expressions
correctly.
(build_x_indirect_ref): Likewise.
(build_x_binary_op): Likewise.
(build_x_unary_op): Likewise.
(build_x_conditional_expr): Likewise.
(build_x_compound_expr): Likewise.
* typeck2.c (build_x_arrow): Likewise.

2003-07-08  Mark Mitchell  <mark@codesourcery.com>

* g++.dg/abi/mangle17.C: Make sure template expressions are
dependent.
* g++.dg/abi/mangle4.C: Mark erroneous casts.
* g++.dg/debug/debug7.C: Mark erronous new-declarator.
* g++.dg/opt/stack1.C: Remove erroneous code.
* g++.dg/parse/template7.C: New test.
* g++.dg/template/dependent-expr1.C: Mark erroneous code.
* g++.old-deja/g++.pt/crash4.C: Likewise.

2003-07-09  Mark Mitchell  <mark@codesourcery.com>

* gcj/array.h (JvPrimClass): Don't parenthesize the output.

From-SVN: r69130

21 years agoGtkComponentPeer.java, [...]: Explicitly import used classes.
Michael Koch [Wed, 9 Jul 2003 07:50:01 +0000 (07:50 +0000)]
GtkComponentPeer.java, [...]: Explicitly import used classes.

2003-07-09  Michael Koch  <konqueror@gmx.de>

* gnu/java/awt/peer/gtk/GtkComponentPeer.java,
gnu/java/awt/peer/gtk/GtkContainerPeer.java,
gnu/java/awt/peer/gtk/GtkDialogPeer.java,
gnu/java/awt/peer/gtk/GtkWindowPeer.java:
Explicitly import used classes.
* java/awt/Container.java: New version from classpath.

From-SVN: r69129

21 years ago2003-07-09 Michael Koch <konqueror@gmx.de>
Michael Koch [Wed, 9 Jul 2003 07:11:13 +0000 (07:11 +0000)]
2003-07-09  Michael Koch  <konqueror@gmx.de>

* libgcj.pc.in
* Makefile.am
* Makefile.in
* configure
* configure.in

From-SVN: r69128

21 years agoconst-elim-1.c (dg-final): Change regexp to match labels with zero or one occurence...
John David Anglin [Wed, 9 Jul 2003 06:19:44 +0000 (06:19 +0000)]
const-elim-1.c (dg-final): Change regexp to match labels with zero or one occurence of `$' after the...

* gcc.dg/const-elim-1.c (dg-final): Change regexp to match labels
with zero or one occurence of `$' after the initial `L'.

From-SVN: r69127

21 years agotoplev.c (warn_dummy, W_options): Die.
Neil Booth [Wed, 9 Jul 2003 05:28:04 +0000 (05:28 +0000)]
toplev.c (warn_dummy, W_options): Die.

* toplev.c (warn_dummy, W_options): Die.
(display_help): Don't print W_options.
* common.opt: Add W_options help from toplev.c.

From-SVN: r69125

21 years agoopts.c (wrap_help): Only pass int arguments as arguments to printf's '*' modifier.
Andreas Jaeger [Wed, 9 Jul 2003 05:13:09 +0000 (07:13 +0200)]
opts.c (wrap_help): Only pass int arguments as arguments to printf's '*' modifier.

* opts.c (wrap_help): Only pass int arguments as arguments to
printf's '*' modifier.  Change argument of function.

From-SVN: r69124

21 years ago* doc/invoke.texi: Fix misspelling of "@item".
Matt Kraai [Wed, 9 Jul 2003 04:07:44 +0000 (04:07 +0000)]
* doc/invoke.texi: Fix misspelling of "@item".

From-SVN: r69123

21 years ago* gcc.c-torture/compile/20030704-1.c: Add a comment.
Kazu Hirata [Wed, 9 Jul 2003 03:02:17 +0000 (03:02 +0000)]
* gcc.c-torture/compile/20030704-1.c: Add a comment.

From-SVN: r69122

21 years agoi386.md: Remove an old comment about NOTICE_UPDATE_CC.
Kazu Hirata [Wed, 9 Jul 2003 02:56:47 +0000 (02:56 +0000)]
i386.md: Remove an old comment about NOTICE_UPDATE_CC.

* config/i386/i386.md: Remove an old comment about
NOTICE_UPDATE_CC.

From-SVN: r69121

21 years agocgraph.c (cgraph_node_name): New function.
Jan Hubicka [Wed, 9 Jul 2003 01:20:24 +0000 (03:20 +0200)]
cgraph.c (cgraph_node_name): New function.

* cgraph.c (cgraph_node_name): New function.
(dump_cgraph): Use it.
* cgraph.h (cgraph_dump_file): Declare.
(cgraph_node_name): Declare.
* cgraphunit.c: Include timevar.h
(cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
(cgraph_optimize_function): Use TV_INTEGRATION.
(cgraph_mark_local_functions): reorganize dumps.
(cgraph_mark_functions_to_inline_once): Likewise.
(cgraph_optimize): Likewise; use timevar.
* timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
* toplev.c (dump_file_index): Add DFI_cgraph.
(dump_file_info): Likewise.
(cgraph_dump_file): New global variable.
(do_compile): Open and close cgraph dump.
* invoke.texi (-d): Document new flag; renumber.

From-SVN: r69120

21 years agore PR other/11370 (-Wunreachable-code gives false complaints)
Roger Sayle [Wed, 9 Jul 2003 01:17:28 +0000 (01:17 +0000)]
re PR other/11370 (-Wunreachable-code gives false complaints)

PR c/11370
* calls.c (emit_call_1): Don't bother popping the arguments off of
the stack after a noreturn function call;  The adjustment is dead.
(expand_call): Likewise.

* gcc.dg/Wunreachable-6.c: New testcase.
* gcc.dg/Wunreachable-7.c: New testcase.

From-SVN: r69119

21 years agoexpr.c (MOVE_MAX_PIECES): Move from here...
Geoffrey Keating [Wed, 9 Jul 2003 00:58:58 +0000 (00:58 +0000)]
expr.c (MOVE_MAX_PIECES): Move from here...

* expr.c (MOVE_MAX_PIECES): Move from here...
* defaults.h (MOVE_MAX_PIECES): ... to here.

From-SVN: r69118

21 years ago* Makefile.in (stage1-start): Handle an empty SUBDIRS.
Matt Kraai [Wed, 9 Jul 2003 00:51:42 +0000 (00:51 +0000)]
* Makefile.in (stage1-start): Handle an empty SUBDIRS.

From-SVN: r69117

21 years agogenattr.c (internal_dfa_insn_code): Don't prototype.
Kaveh R. Ghazi [Wed, 9 Jul 2003 00:44:34 +0000 (00:44 +0000)]
genattr.c (internal_dfa_insn_code): Don't prototype.

* genattr.c (internal_dfa_insn_code): Don't prototype.
* genattrtab.c (attr_desc): Add `static_p' field.
(expand_units): Make blockage range and ready cost functions
static.
(write_attr_get): Don't add extern prototypes in C file.  Mark
static functions as appropriate.
(find_attr, make_internal_attr): Initialize static_p.
* genattrtab.h (ATTR_STATIC): New macro.
* genautomata.c (output_internal_reset_func): Mark output function
as inline.
(make_internal_dfa_insn_code_attr): Mark output function as static.

From-SVN: r69116

21 years agopod_char_traits.cc: New.
Benjamin Kosnik [Wed, 9 Jul 2003 00:40:29 +0000 (00:40 +0000)]
pod_char_traits.cc: New.

2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/ext/pod_char_traits.cc: New.
* include/ext/pod_char_traits.h: New.
* include/Makefile.am (ext_headers): Add pod_char_traits.h.
* include/Makefile.in: Regenerate.
* docs/html/21_strings/howto.html: Update.

From-SVN: r69115

21 years agogenattrtab.h: Add new macros for attr `special' flags.
Kaveh R. Ghazi [Wed, 9 Jul 2003 00:38:40 +0000 (00:38 +0000)]
genattrtab.h: Add new macros for attr `special' flags.

* genattrtab.h: Add new macros for attr `special' flags.
* genattrtab.c (attr_desc): Reorder/resize fields better.
Use attr `special' macros in all calls to make_internal_attr.
* genautomata.c: Likewise.

From-SVN: r69114

21 years agojava-tree.h (DECL_NUM_STMTS): Rename to...
Jan Hubicka [Wed, 9 Jul 2003 00:31:20 +0000 (02:31 +0200)]
java-tree.h (DECL_NUM_STMTS): Rename to...

* java-tree.h (DECL_NUM_STMTS): Rename to...
(DECL_ESTIMATED_INSNS): ... this.
* lang.c (java_estimate_num_insns, java_estimate_num_insns_1):
New static functions.
(LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Define.
* parser.y (add_stmt_to_compound): Do not account statements.

* cp-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
* decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
(start_function): Use DECL_ESTIMATED_INSNS.
* optimize.c (maybe_clone_body): Use DECL_ESTIMATED_INSNS.

* decl2.c (maybe_emit_vtables): Fix marking vtables as needed in
unit-at-a-time

* c-common.c (c_estimate_num_insns_1): New static function.
(c_estimate_num_insns): New global function.
* c-common.h (DECL_NUM_STMTS): Rename to...
(DECL_ESTIMATED_INSNS): ... this.
(c_estimate_num_insns): Declare.
* c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
* c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
* c-semantics.c (add_stmt): Do not account statements.
* langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
New.
* langhooks.h (lang_hooks_for_tree_inlining): Add
estimate_num_insns
* params.def (max-inline-insns-auto, max-inline-insns-auto): set
to 100.
(max-inline-insns): set to 300.
(min-inline-insns): set to 10.
* tree-inline.c (struct inline_data): Rename inlined_stmts to
inlined-insns.
(INSNS_PER_STMT): Kill.
(inlinable_function_p): Compute and store body size.
(expand_call_inline): Likewise.
(optimize_inline_calls): Likewise.

From-SVN: r69113

21 years agopartial fix for PR target/10021
James E Wilson [Wed, 9 Jul 2003 00:18:19 +0000 (17:18 -0700)]
partial fix for PR target/10021

partial fix for PR target/10021
* emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
loop over new variable t2 instead of t.

From-SVN: r69111

21 years agoDaily bump.
GCC Administrator [Wed, 9 Jul 2003 00:16:05 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r69109

21 years agore PR bootstrap/11455 (Bootstrap failure in Cygwin)
Danny Smith [Tue, 8 Jul 2003 23:40:36 +0000 (23:40 +0000)]
re PR bootstrap/11455 (Bootstrap failure in Cygwin)

PR bootstrap/11455
* config/i386/winnt.c: Replace use of error(), warning() with
error_with_decl(), warning_with_decl(),  throughout.

From-SVN: r69107

21 years ago* opts.c (wrap_help): Use unsigned int, not size_t.
Neil Booth [Tue, 8 Jul 2003 21:36:34 +0000 (21:36 +0000)]
* opts.c (wrap_help): Use unsigned int, not size_t.

From-SVN: r69106

21 years agolist_create_fill_sort.cc: New.
Gawain Bolton [Tue, 8 Jul 2003 21:33:18 +0000 (21:33 +0000)]
list_create_fill_sort.cc: New.

2003-07-08  Gawain Bolton  <gp.bolton@computer.org>

* testsuite/performance/list_create_fill_sort.cc: New.

From-SVN: r69105

21 years agocni.h: CNI now expands to Compiled Native Interface.
Mark Wielaard [Tue, 8 Jul 2003 21:27:37 +0000 (21:27 +0000)]
cni.h: CNI now expands to Compiled Native Interface.

       * gcj/cni.h: CNI now expands to Compiled Native Interface.

       * java/lang/e_pow.c: CYGNUS LOCAL should be GCJ LOCAL.
       * java/lang/fdlibm.h: Likewise.

From-SVN: r69104

21 years ago* gcj.texi: CNI now expands to Compiled Native Interface.
Mark Wielaard [Tue, 8 Jul 2003 21:25:54 +0000 (21:25 +0000)]
* gcj.texi: CNI now expands to Compiled Native Interface.

From-SVN: r69103

21 years agom68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define as .file/.loc directives are...
Stephane Carrez [Tue, 8 Jul 2003 21:05:39 +0000 (23:05 +0200)]
m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define as .file/.loc directives are incompatible with linker relaxation.

* config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
as .file/.loc directives are incompatible with linker relaxation.

From-SVN: r69101

21 years agooops, left this bit out
Zack Weinberg [Tue, 8 Jul 2003 20:43:37 +0000 (20:43 +0000)]
oops, left this bit out

From-SVN: r69100

21 years agoMakefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
Zack Weinberg [Tue, 8 Jul 2003 20:42:19 +0000 (20:42 +0000)]
Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.

* Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
* fixinc/Makefile.in: Remove all references to gnu-regex.[och].
* fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
* fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
* fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
* fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
Escape { and } characters which are not part of range expressions.
* fixinc/fixincl.x: Regenerate.

From-SVN: r69099

21 years agonumeric_members.cc: Correct type info.
Benjamin Kosnik [Tue, 8 Jul 2003 20:25:39 +0000 (20:25 +0000)]
numeric_members.cc: Correct type info.

2003-07-08  Benjamin Kosnik  <bkoz@redhat.com>

* config/locale/generic/numeric_members.cc: Correct type info.
* config/locale/gnu/numeric_members.cc: Same.
* include/bits/locale_facets.h: Same.

* include/bits/char_traits.h: Correct spacing.

* src/locale.cc: Wrap to 80 col.

From-SVN: r69098

21 years agore PR c/1687 (Exponential time behavior with -O -finline-functions (compile time...
Steven Bosscher [Tue, 8 Jul 2003 19:44:17 +0000 (19:44 +0000)]
re PR c/1687 (Exponential time behavior with -O -finline-functions (compile time regression from 3.2, 3.3))

2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>

PR c/1687
* tree-inline.c (find_alloca_call): Use
walk_tree_without_duplicates, instead of walk_tree.
(find_builtin_longjmp_call): Likewise.
* c-objc-common.c (c_cannot_inline_fn): Likewise.
* c-semantics.c (find_reachable_label): Likewise.

From-SVN: r69097

21 years agore PR target/11420 ([x86_64] gcc generates invalid asm code when "-O -fPIC" is used...
Jakub Jelinek [Tue, 8 Jul 2003 18:01:51 +0000 (20:01 +0200)]
re PR target/11420 ([x86_64] gcc generates invalid asm code when "-O -fPIC" is used (suffix or operands invalid for `movabs'))

PR c/11420
* config/i386/i386.c (ix86_check_movabs): New function.
* config/i386/i386-protos.h (ix86_check_movabs): New prototype.
* config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
(movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.

* gcc.dg/20030708-1.c: New test.

From-SVN: r69092

21 years agoMakefile.in (install-po): Cope with empty CATALOGS.
Chris Demetriou [Tue, 8 Jul 2003 17:47:16 +0000 (17:47 +0000)]
Makefile.in (install-po): Cope with empty CATALOGS.

2003-07-08  Chris Demetriou  <cgd@broadcom.com>

        * Makefile.in (install-po): Cope with empty CATALOGS.

From-SVN: r69091

21 years agoelf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
Richard Sandiford [Tue, 8 Jul 2003 17:36:01 +0000 (17:36 +0000)]
elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.

* config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
(EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
(SECTION_FUNCTION_TEMPLATE): Delete.
* config/mips/elf.h: As for elf64.h.
(ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
* config/mips/linux.h: As for elf.h
* config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
* config/mips/iris6.h (EXTRA_SECTIONS): Delete.
(EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
of in_sdata from current_section_name and current_section_flags.
* config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
* config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
(MASK_GP_OPT, TARGET_GP_OPT): Delete.
(MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
(TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
(SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
* config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
(TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
(mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
(override_options): Remove setting of MASK_GPOPT.
(mips_output_external): Use mips_in_small_data_p to check whether a
symbol needs an .extern directive.  Don't emit such directives for
TARGET_EXPLICIT_RELOCS.
(mips_declare_object): Update accordingly.
(mips_select_rtx_section): Call named_section rather than
SMALL_DATA_SECTION.
(mips_select_section): Use default_elf_section_section for everything
except .text string constants.
(mips_in_small_data_p): New function.
(mips_encode_section_info): Remove small data handling.
(mips_unique_section): Delete.
(iris6_section_type_flags): New function.
* doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.

From-SVN: r69090

21 years agoMake-lang.in (f/g77.dvi): Use PWD_COMMAND.
Rainer Orth [Tue, 8 Jul 2003 16:00:54 +0000 (16:00 +0000)]
Make-lang.in (f/g77.dvi): Use PWD_COMMAND.

f:
* Make-lang.in (f/g77.dvi): Use PWD_COMMAND.

java:
* Make-lang.in (java/gcj.dvi): Use PWD_COMMAND.

From-SVN: r69089

21 years agore PR c++/11030 (Cannot befriend a template specialization)
Kriang Lerdsuwanakij [Tue, 8 Jul 2003 15:35:53 +0000 (15:35 +0000)]
re PR c++/11030 (Cannot befriend a template specialization)

PR c++/11030
* pt.c (instantiate_class_template): Don't call xref_tag to
inject name when the friend class is a specialization.

* g++.dg/template/friend19.C: New test.

From-SVN: r69088

21 years agore PR target/11453 (gcc > 3.3 ICE)
John David Anglin [Tue, 8 Jul 2003 15:26:04 +0000 (15:26 +0000)]
re PR target/11453 (gcc > 3.3 ICE)

PR Target/11453
* pa.md: Disparage all mtsar constraints.
(extzv, extv, insv): Don't fail on length of {32|64}.

From-SVN: r69087

21 years agosystem.h: Poison MAP_CHARACTER.
Zack Weinberg [Tue, 8 Jul 2003 15:10:16 +0000 (15:10 +0000)]
system.h: Poison MAP_CHARACTER.

* system.h: Poison MAP_CHARACTER.
* config/i370/i370-protos.h (mvs_map_char): Delete.
* config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
* config/i370/i370.h (MAP_CHARACTER): Delete definition.
(ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
f:
* lex.c: Remove error block #ifdef MAP_CHARACTER.

From-SVN: r69086

21 years ago* Update my e-mail address.
Manfred Hollstein [Tue, 8 Jul 2003 13:10:53 +0000 (13:10 +0000)]
* Update my e-mail address.

From-SVN: r69084

21 years ago* toplev.c (randomize): Correct call to time().
Danny Smith [Tue, 8 Jul 2003 10:40:33 +0000 (10:40 +0000)]
* toplev.c (randomize): Correct call to time().

From-SVN: r69083

21 years agogcc_release: Move handling of complex modes directly after switch handling.
Gerald Pfeifer [Tue, 8 Jul 2003 09:54:24 +0000 (11:54 +0200)]
gcc_release: Move handling of complex modes directly after switch handling.

* gcc_release: Move handling of complex modes directly after
switch handling.
(TAG): Include the branch name as part of snapshot CVS tags.

From-SVN: r69082

21 years agounroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and REG_EQUIV notes as...
Jakub Jelinek [Tue, 8 Jul 2003 07:26:27 +0000 (09:26 +0200)]
unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and REG_EQUIV notes as well.

* unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
REG_EQUIV notes as well.

* g++.dg/opt/strength-reduce.C: New test.

From-SVN: r69076

21 years ago* doc/md.texi: Fix the description of addmodecc.
Kazu Hirata [Tue, 8 Jul 2003 06:44:00 +0000 (06:44 +0000)]
* doc/md.texi: Fix the description of addmodecc.

From-SVN: r69073

21 years agoMakefile.tpl (configure-gcc): Depend on maybe-configure-intl.
Zack Weinberg [Tue, 8 Jul 2003 05:55:11 +0000 (05:55 +0000)]
Makefile.tpl (configure-gcc): Depend on maybe-configure-intl.

top:
* Makefile.tpl (configure-gcc): Depend on maybe-configure-intl.
* Makefile.in: Regenerate.
config:
* gettext.m4: Delete all former contents.
(ZW_GNU_GETTEXT_SISTER_DIR): New macro.
* progtest.m4: New file.
gcc:
* Makefile.in (top_builddir): Set to "..", not ".".
(INTLLIBS, INTLDEPS): Delete.
(LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
(LIBDEPS): Add $(LIBICONV_DEP).
(LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
(INCLUDES): Replace -I../intl with @INCINTL@.
($(top_builddir)/intl/libintl.a): Delete rule.
(stage2-start, stage3-start, stage4-start, stageprofile-start,
stagefeedback-start): Use $$ for variable to be evaluated by
shell, not make.
* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
* aclocal.m4: sinclude ../config/progtest.m4.  Add
contents of lcmessage.m4 from gettext distro.
* configure.in: Check for wchar.h and setlocale.  Set
LIBICONV_DEP to the empty string and substitute it.
Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
in $LIBINTL, to avoid linking it twice.
* configure, config.in: Regenerate.
intl:
* README: Update.
* Makefile.in (INSTALL, INSTALL_DATA, MKINSTALLDIRS,
mkinstalldirs, gettextsrcdir, l): Delete.
(COMPILE): Add $(DEFS-$@), remove $(XCFLAGS).
(HEADERS): libgnuintl.h not libgnuintl.h.in.  Remove os2compat.h.
(SOURCES): Remove os2compat.c.
(DEFS-dcigettext.o, DEFS-localealias.o, DEFS-localcharset.o,
DEFS-relocatable.o): New.
(all-yes): Add config.intl.
(libintl.h): Use cp, not cat.
(INCLUDES): Remove -I..
(TAGS, CTAGS, ID): Word wrap.
(mostlyclean, distclean): Remove junk.
(config.intl): New rule.
* aclocal.m4: sinclude ../config/progtest.m4 instead of
including it inline.
* config.intl.in: New file.
* configure.in: Take out unnecessary AC_CONFIG_AUX_DIR.
Take out AC_DEFINEs for LOCALEDIR, LOCALE_ALIAS_PATH,
LIBDIR, INSTALLDIR.  Set LIBINTL_DEP and INCINTL and AC_SUBST
them.  Add config.intl to AC_OUTPUT.
* os2compat.c, os2compat.h: Delete, unused.

From-SVN: r69071

21 years agomkfixinc.sh: Remove winnt support.
Nathanael Nerode [Tue, 8 Jul 2003 05:49:59 +0000 (05:49 +0000)]
mkfixinc.sh: Remove winnt support.

* fixinc/mkfixinc.sh: Remove winnt support.
* fixinc/fixinc.winnt: Delete with extreme prejudice.

From-SVN: r69070

21 years agoForgotten commit
Neil Booth [Tue, 8 Jul 2003 05:26:27 +0000 (05:26 +0000)]
Forgotten commit

From-SVN: r69069

21 years agoMakefile.in: Update.
Neil Booth [Tue, 8 Jul 2003 05:25:39 +0000 (05:25 +0000)]
Makefile.in: Update.

* Makefile.in: Update.
* c-opts.c (c_common_handle_option): opt_text now contains the '-'.
* c.opt: Update documentation.
* common.opt: Add some help text.
* opts.c: Include intl.h.
(wrap_help, print_help): New.
(find_opt, handle_option, common_handle_option): opt_text now
contains the '-'.  Use print_help to output help.
* opts.h (struct cl_option): New member "help".
* opts.sh: Update to handle help text output and to prepend
options with '-'.
* toplev.c (display_help): Remove some help text.

From-SVN: r69068

21 years agoposix.cc: added #include<stdio.h>
Adam Megacz [Tue, 8 Jul 2003 04:49:16 +0000 (04:49 +0000)]
posix.cc: added #include<stdio.h>

2003-07-07  Adam Megacz <adam@xwt.org>

        * posix.cc: added #include<stdio.h>

From-SVN: r69066

21 years agoconfigure.in: Test for PowerPC mfcr field support in assembler.
David Edelsohn [Tue, 8 Jul 2003 01:45:30 +0000 (01:45 +0000)]
configure.in: Test for PowerPC mfcr field support in assembler.

2003-07-07  David Edelsohn  <edelsohn@gnu.org>
            Fariborz Jahanian  <fjahanian@apple.com>

        * configure.in: Test for PowerPC mfcr field support in assembler.
        * config.in, configure: Regenderated.

        * config/rs6000/power4.md: Add mfcrf reservation.
        * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
        * config/rs6000/rs6000.c (mfcr_operation): Define.
        (print_operand): Add 'Q' case for mfcrf.
        * config/rs6000/rs6000.h (TARGET_MFCRF): New.
        * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
        (movcc_internal1): Emit optional field operand for mfcr and set
        "type" attribute appropriately.
        (mfcr SCC): Likewise.
        (movesi_from_cr_one): New.

Co-Authored-By: Fariborz Jahanian <fjahanian@apple.com>
From-SVN: r69064

21 years agocp-tree.h (build_scoped_method_call): Remove.
Mark Mitchell [Tue, 8 Jul 2003 01:38:44 +0000 (01:38 +0000)]
cp-tree.h (build_scoped_method_call): Remove.

* cp-tree.h (build_scoped_method_call): Remove.
(lookup_qualified_name): Remove parameter.
(tsubst_copy_and_build): Declare.
(finish_qualified_object_call_expr): Remove.
(check_accessibility_of_qualified_id): New function.
(finish_qualified_id_expr): Likewise.
(non_reference): Likewise.
(build_expr_from-tree): Remove.
* call.c (non_reference): Remove.
(build_scoped_method_call): Likewise.
(build_method_call): Use error_operand_p.  Assert that we are not
processing a template.
(standard_conversion): Use non_reference.
* class.c (build_vtbl_entry_ref): Likewise.
(build_vtbl_ref_1): Likewise.
* cvt.c (build_expr_type_conversion): Use non_reference.
* decl.c (lookup_qualified_name): Remove flags parameter.
(grok_op_properties): Use non_reference.
* decl2.c (grok_array_decl): Likewise.
(build_expr_from_tree): Remove.
(build_offset_ref_call_from_tree): Update comment.
* error.c (parm_to_string): Call reinit_global_formatting_buffer.
* except.c (prepare_eh_types): Use non_reference.
(can_convert_eh): Likewise.
* init.c (build_dtor_call): Avoid using build_method_call.
* mangle.c (write_template_param): Remove misleading comment.
* method.c (locate_copy): Use non_reference.
* parser.c (cp_parser_scope_through_which_access_occurs): Remove.
(cp_parser_primary_expression): Do not create SCOPE_REFs is
non-dependent contexts.
(cp_parser_postfix_expression): Use finish_qualified_id_expr.
(cp_parser_direct_declarator): Use tsubst_copy_and_build, not
build_expr_from_tree.
(cp_parser_lookup_name): Adjust call to lookup_qualified_name.
Use check_accessibility_of_qualified_id.
* pt.c (maybe_fold_nontype_arg): Use tsubst_copy_and_build, not
build_expr_from_tree.
(tsubst_baselink): New function.
(tsubst_qualified_id): Likewise.
(tsubst_copy): Use them.  Remove support for METHOD_CALL_EXPR.
(tsubst_expr): Adjust call to lookup_qualified_name.
(tsubst_copy_and_build): Handle SCOPE_REFs specially.  Adjust
handling of CALL_EXPRs.
(value_dependent_expression_p): Use INTEGRAL_OR_ENUMERATION_TYPE_P.
* rtti.c (get_tinfo_decl_dynamic): Use non_reference.
* search.c (check_final_overrider): Likewise.
* semantics.c (check_accessibility_of_qualified_id): New function.
(finish_qualified_object_call_expr): Remove.
* typeck.c (target_type): Use non_reference.
(cxx_sizeof_or_alignof_type): Likewise.
(dubious_conversion_warnings): Likewise.
(convert_for_initialization): Likewise.
(non_reference): New function.

From-SVN: r69063

21 years ago* config/i386/i386.md: Correct check-in of incorrect version.
Roger Sayle [Tue, 8 Jul 2003 00:43:49 +0000 (00:43 +0000)]
* config/i386/i386.md: Correct check-in of incorrect version.

From-SVN: r69062

21 years agobitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with adjacent stdio calls.
Kaveh R. Ghazi [Tue, 8 Jul 2003 00:35:52 +0000 (00:35 +0000)]
bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with adjacent stdio calls.

gcc:
* bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
adjacent stdio calls.
* c-decl.c (c_print_identifier): Likewise.
* mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
* print-rtl.c (print_rtx): Likewise.
* print-tree.c (print_node_brief, print_node): Likewise.
* system.h (HOST_PTR_PRINTF): Ensure we have a literal string.

* configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
* config.in, configure: Regenerated.

cp:
* decl.c (print_binding_level, print_other_binding_stack,
print_binding_stack): Merge uses of HOST_PTR_PRINTF with adjacent
stdio calls.
* ptree.c (cxx_print_decl, cxx_print_binding): Likewise.

From-SVN: r69061

21 years agore PR target/10979 (ICE in subst_stack_regs_pat with -O -ffast-math and atan2)
Roger Sayle [Tue, 8 Jul 2003 00:28:47 +0000 (00:28 +0000)]
re PR target/10979 (ICE in subst_stack_regs_pat with -O -ffast-math and atan2)

PR target/10979
* config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
Changed to define_expand patterns that copy operand[1] to prevent
it from being clobbered before emitting an atan2?f3_1 insn.
(atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
patterns that actually specify the behaviour of x87's FPATAN.

* gcc.dg/20030707-1.c: New testcase.

From-SVN: r69060

21 years agoDaily bump.
GCC Administrator [Tue, 8 Jul 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r69058

21 years agognu_java_awt_peer_gtk_GtkMainThread.c: Fix formatting.
Thomas Fitzsimmons [Mon, 7 Jul 2003 21:50:47 +0000 (21:50 +0000)]
gnu_java_awt_peer_gtk_GtkMainThread.c: Fix formatting.

* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c: Fix
formatting.

From-SVN: r69056

21 years agors6000.c (rs6000_output_mi_thunk): Remove bogus clearing of SYMBOL_FLAG_LOCAL bit.
Jakub Jelinek [Mon, 7 Jul 2003 20:53:44 +0000 (22:53 +0200)]
rs6000.c (rs6000_output_mi_thunk): Remove bogus clearing of SYMBOL_FLAG_LOCAL bit.

* config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
clearing of SYMBOL_FLAG_LOCAL bit.
If vcall_offset fits into signed 16-bit immediate, use
one instruction for both addition and load.

From-SVN: r69055

21 years ago* gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
Thomas Fitzsimmons [Mon, 7 Jul 2003 19:56:04 +0000 (19:56 +0000)]
* gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
(setCaretPosition, setEditable): Rely entirely on native
implementation.
(getArgs): Remove.
(postTextEvent): New method.
(handleEvent): New method.
* gnu/java/awt/peer/gtk/GtkTextFieldPeer.java (handleEvent): New
method.
* java/awt/event/ActionEvent.java (paramString): Fix formatting.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
(keysym_to_awt_keycode): Fix range checks.
(generates_key_typed_event): New function.
(awt_event_handler): Post AWT_KEY_RELEASED events to event
queue.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
(gtkInit): Store TextComponent's postTextEvent method ID.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
(setText): Post TEXT_VALUE_CHANGED event to event queue.

From-SVN: r69054

21 years agoopts.c (common_handle_option): Correct handling of the -falign- switches that do...
Neil Booth [Mon, 7 Jul 2003 19:27:30 +0000 (19:27 +0000)]
opts.c (common_handle_option): Correct handling of the -falign- switches that do and don't take an argument.

* opts.c (common_handle_option): Correct handling of the
-falign- switches that do and don't take an argument.

From-SVN: r69053

21 years ago* friend.c: Convert to ISO C90 prototypes.
Andreas Jaeger [Mon, 7 Jul 2003 19:19:07 +0000 (21:19 +0200)]
* friend.c: Convert to ISO C90 prototypes.

From-SVN: r69052

21 years agoh8300.md (pushqi1_h8300hs): Revert my patch today.
Kazu Hirata [Mon, 7 Jul 2003 19:19:01 +0000 (19:19 +0000)]
h8300.md (pushqi1_h8300hs): Revert my patch today.

* config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
today.
(pushhi1_h8300hs): Likewise.

From-SVN: r69051

21 years agogenextract.c: Convert remaining prototypes to ISO C90.
Andreas Jaeger [Mon, 7 Jul 2003 19:11:59 +0000 (21:11 +0200)]
genextract.c: Convert remaining prototypes to ISO C90.

2003-07-07  Andreas Jaeger  <aj@suse.de>

* genextract.c: Convert remaining prototypes to ISO C90.

* cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
* fold-const.c (fold_single_bit_test): Likewise.
* diagnostic.c (default_diagnostic_finalizer): Likewise.
* cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.

* gengtype.c (write_array): Generate ISO C90 prototypes.

* genflags.c (gen_proto): Generate ISO C90 prototypes.

For cp:
2003-07-07  Andreas Jaeger  <aj@suse.de>

* friend.c: Convert to ISO C90 prototypes.

* Make-lang.in ($(srcdir)/cp/cfns.h): Use ANSI-C as output
language.
* cfns.h: Regenerate.

* typeck.c: Convert remaining prototypes to ISO C90.
* search.c: Likewise.

* decl2.c (build_expr_from_tree): Convert prototype to ISO C90.
* semantics.c (expand_or_defer_fn): Likewise
* mangle.c (discriminator_for_string_literal): Likewise.
* g++spec.c (lang_specific_driver): Likewise.

* search.c (lookup_base_r): Remove unused variable.

From-SVN: r69050

21 years agore PR rtl-optimization/11059 (empty union optimization ice)
Roger Sayle [Mon, 7 Jul 2003 18:54:28 +0000 (18:54 +0000)]
re PR rtl-optimization/11059 (empty union optimization ice)

PR optimization/11059
* expr.c (can_store_by_pieces): Return true if length is zero.
(store_by_pieces): If length is zero and endp is two, abort,
othwerise, if length is zero and endp is not two, return "to".
(clear_by_pieces): Do nothing if length is zero.
(clear_storage): Do nothing if length is zero.
(store_constructor): Simplify code when size is zero, or the
target has already been cleared.  This avoids emitting a
blockage instruction when initializing empty structures.

* g++.dg/opt/emptyunion.C: New testcase.

From-SVN: r69049

21 years agomips-tfile.c: Convert prototypes to ISO C90.
Andreas Jaeger [Mon, 7 Jul 2003 18:05:22 +0000 (20:05 +0200)]
mips-tfile.c: Convert prototypes to ISO C90.

* mips-tfile.c: Convert prototypes to ISO C90.
* mips-tdump.c: Convert prototypes to ISO C90.

From-SVN: r69048

21 years agortl.h (emit_line_note): Take a location_t.
Nathan Sidwell [Mon, 7 Jul 2003 17:57:30 +0000 (17:57 +0000)]
rtl.h (emit_line_note): Take a location_t.

* rtl.h (emit_line_note): Take a location_t.
(emit_line_note_force): Remove.
(set_file_and_line_for_statement): Take a location_t.
* tree.g (emit_line_note): Take a location_t.
* emit-rtl.c (emit_line_note): Take a location_t.
(emit_line_note_force): Remove.
* function.c (init_function_start): Adjust emit_line_note call.
(expand_function_end): Use force_next_line_note, not
emit_line_note_force.
* c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
* c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
genrtl_continue_stmt, genrtl_switch_stmt,
genrtl_asm_stmt): Likewise.
* expr.c (expand_expr): Likewise.
* integrate.c (expand_inline_function): Likewise.
* stmt.c (set_file_and_line_for_stmt): Take a location_t.
(expand_decl_init): Adjust emit_line_note call.

* ada/trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
calls.

* cp/semantics.c: (genrtl_try_block) Adjust emit_line_note
calls.

* f/com.c (bison_rule_pushlevel_, bison_rule_compstmt_): Adjust
emit_line_note calls.
* f/ste.c (ffeste_emit_line_note_): Likewise.

* java/expr.c (expand_byte_code):

* treelang/treetree.c (tree_code_if_start, tree_code_if_else,
tree_code_if_end, tree_code_create_function_initial,
tree_code_create_function_wrapup, tree_code_generate_return,
tree_code_output_expression_statement): Adjust emit_line_note
calls.

From-SVN: r69047

21 years agoFix PR 10900.
Dale Johannesen [Mon, 7 Jul 2003 17:27:53 +0000 (17:27 +0000)]
Fix PR 10900.

From-SVN: r69045

21 years agoi386-protos.h: Convert prototypes to ISO C90.
Andreas Jaeger [Mon, 7 Jul 2003 15:56:23 +0000 (17:56 +0200)]
i386-protos.h: Convert prototypes to ISO C90.

* config/i386/i386-protos.h: Convert prototypes to ISO C90.
* config/i386/i386.c: Likewise.

From-SVN: r69044

21 years agoh8300.md: Use gen_int_mode instead of GEN_INT (trunc_int_for_mode (...)).
Kazu Hirata [Mon, 7 Jul 2003 15:51:27 +0000 (15:51 +0000)]
h8300.md: Use gen_int_mode instead of GEN_INT (trunc_int_for_mode (...)).

* config/h8300/h8300.md: Use gen_int_mode instead of
GEN_INT (trunc_int_for_mode (...)).

From-SVN: r69043

21 years agoh8300.md (pushqi1_h8300hs): Optimize by pushing 2 bytes and then subtract 2 from...
Kazu Hirata [Mon, 7 Jul 2003 15:46:02 +0000 (15:46 +0000)]
h8300.md (pushqi1_h8300hs): Optimize by pushing 2 bytes and then subtract 2 from the stack pointer.

* config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
2 bytes and then subtract 2 from the stack pointer.
(pushhi1_h8300hs): Likewise.

From-SVN: r69042

21 years agoconfigure.in: Check for usleep declaration.
Rainer Orth [Mon, 7 Jul 2003 14:11:09 +0000 (14:11 +0000)]
configure.in: Check for usleep declaration.

* configure.in: Check for usleep declaration.
* acconfig.h (HAVE_USLEEP_DECL): Provide template.
* configure: Regenerate.
* include/config.h.in: Likewise.
* include/posix.h [!HAVE_USLEEP_DECL]: Declare usleep.

From-SVN: r69041

21 years agostd_complex.h: Partially revert last changes: cmath functions must not be qualified.
Paolo Carlini [Mon, 7 Jul 2003 12:15:00 +0000 (14:15 +0200)]
std_complex.h: Partially revert last changes: cmath functions must not be qualified.

2003-07-07  Paolo Carlini  <pcarlini@unitus.it>

* include/std/std_complex.h: Partially revert last
changes: cmath functions must not be qualified.

From-SVN: r69040

21 years agoconfigure.in (enable_coverage): Remove -DSELF_COVERAGE, add -frandom-seed.
Nathan Sidwell [Mon, 7 Jul 2003 11:12:31 +0000 (11:12 +0000)]
configure.in (enable_coverage): Remove -DSELF_COVERAGE, add -frandom-seed.

* configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
-frandom-seed.
* configure: Regenerated.
* Makefile.in: Remove extraneous comment.
* toplev.c (randomize): Protect against potential multiple calls.
* doc/invoke.texi (-frandom-seed): Document use for in coverage
files.

From-SVN: r69039

21 years agore PR rtl-optimization/11198 (-O2 -frename-registers generates wrong code)
Richard Kenner [Mon, 7 Jul 2003 07:25:36 +0000 (07:25 +0000)]
re PR rtl-optimization/11198 (-O2 -frename-registers generates wrong code)

PR optimization/11198
* alias.c (objects_must_conflict_p): Return 1 if the types have
the same alias set, not if the alias sets only conflict.

Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>
From-SVN: r69034

21 years ago* search.c (lookup_base_r): Remove unused variable.
Andreas Jaeger [Mon, 7 Jul 2003 05:39:28 +0000 (07:39 +0200)]
* search.c (lookup_base_r): Remove unused variable.

From-SVN: r69033

21 years agore PR debug/10055 (g++ emits "<internal>" as source filename with -gstabs+)
Michael Chastain [Mon, 7 Jul 2003 05:02:22 +0000 (05:02 +0000)]
re PR debug/10055 (g++ emits "<internal>" as source filename with -gstabs+)

PR debug/10055
* lex.c (cxx_init): Call push_srcloc and pop_srcloc rather than
assigning to input_filename directly.

From-SVN: r69032

21 years agoinvoke.texi (-falign-functions): Document that when n is zero then a machine-dependen...
Andreas Jaeger [Mon, 7 Jul 2003 04:49:24 +0000 (06:49 +0200)]
invoke.texi (-falign-functions): Document that when n is zero then a machine-dependent default is used.

* doc/invoke.texi (-falign-functions): Document that
when n is zero then a machine-dependent default is used.
(-falign-labels): Document that when n is zero then a
machine-dependent default is used and that -falign-labels =1
is equivalent to -fno-align-labels.
(-falign-loops): Likewise.
(-falign-jumps): Likewise.

From-SVN: r69031

21 years agoinvoke.texi (-falign-functions): Document that when n is zero then a machine-dependen...
Andrew Pinski [Mon, 7 Jul 2003 04:49:00 +0000 (06:49 +0200)]
invoke.texi (-falign-functions): Document that when n is zero then a machine-dependent default is used.

2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>

* doc/invoke.texi (-falign-functions): Document that
when n is zero then a machine-dependent default is used.
(-falign-labels): Document that when n is zero then a
machine-dependent default is used and that -falign-labels =1
is equivalent to -fno-align-labels.
(-falign-loops): Likewise.
(-falign-jumps): Likewise.

From-SVN: r69030

21 years agocppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
Andrew Pinski [Mon, 7 Jul 2003 04:46:29 +0000 (04:46 +0000)]
cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.

2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>

* cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
(convert_cset): Change inbuf to type ICONV_CONST char.
* Makefile.in (LIBS): Add LIBICONV.

From-SVN: r69029

21 years agoPatch from Art Haas
Art Haas [Mon, 7 Jul 2003 04:06:29 +0000 (04:06 +0000)]
Patch from Art Haas
* f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
initializer syntax.

From-SVN: r69028

21 years agore PR rtl-optimization/9812 ([m68k] ICE in extract_insn, at recog.c:2148)
James E Wilson [Mon, 7 Jul 2003 03:42:23 +0000 (20:42 -0700)]
re PR rtl-optimization/9812 ([m68k] ICE in extract_insn, at recog.c:2148)

PR optimization/9812
* rtl.h (mem_for_const_double): Delete prototype.
* varasm.c (mem_for_const_double): Delete function.
* config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
(LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
* config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
(LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
* config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
comment about confused support for XFmode constants.

From-SVN: r69027

21 years agoDaily bump.
GCC Administrator [Mon, 7 Jul 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r69025