gcc.git
22 years agogenautomata.c (copy_node, [...]): Const-ify.
Kaveh R. Ghazi [Sat, 22 Jun 2002 03:08:21 +0000 (03:08 +0000)]
genautomata.c (copy_node, [...]): Const-ify.

* genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
REGEXP_ONEOF, check_name): Const-ify.

From-SVN: r54898

22 years agostl_map.h, [...]: Reformat and complete doxygenation.
Phil Edwards [Sat, 22 Jun 2002 03:03:56 +0000 (03:03 +0000)]
stl_map.h, [...]: Reformat and complete doxygenation.

2002-06-21  Phil Edwards  <pme@gcc.gnu.org>

* include/bits/stl_map.h, include/bits/stl_multimap.h,
include/bits/stl_queue.h, include/bits/stl_stack.h:  Reformat and
complete doxygenation.
* include/bits/boost_concept_check.h:  Minor comment.

From-SVN: r54897

22 years agovax.c (vax_output_function_prologue): Use REGISTER_PREFIX.
Matt Thomas [Fri, 21 Jun 2002 23:58:47 +0000 (23:58 +0000)]
vax.c (vax_output_function_prologue): Use REGISTER_PREFIX.

2002-06-21  Matt Thomas  <matt@3am-software.com>

* config/vax/vax.c (vax_output_function_prologue): Use
REGISTER_PREFIX.  Fix some indentation.
* config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
(VAX_ISTREAM_SYNC): Define.
(INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
i-stream sync to the end.
(REGISTER_PREFIX): Define as "".
(ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.

From-SVN: r54894

22 years agoconfig.gcc (ns32k-*-netbsd*): Remove from list of obsolete configurations.
Jason Thorpe [Fri, 21 Jun 2002 23:36:45 +0000 (23:36 +0000)]
config.gcc (ns32k-*-netbsd*): Remove from list of obsolete configurations.

* config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
configurations.

From-SVN: r54893

22 years ago* configure.in: Fix AIX configury bug.
Nathanael Nerode [Fri, 21 Jun 2002 22:20:17 +0000 (22:20 +0000)]
* configure.in: Fix AIX configury bug.

From-SVN: r54892

22 years agoc_compatibility: New.
Benjamin Kosnik [Fri, 21 Jun 2002 20:21:03 +0000 (20:21 +0000)]
c_compatibility: New.

2002-06-21  Benjamin Kosnik  <bkoz@redhat.com>

* include/c_compatibility: New.
* include/c_compatibility/assert.h: New.
* include/c_compatibility/ctype.h: New.
* include/c_compatibility/errno.h: New.
* include/c_compatibility/float.h: New.
* include/c_compatibility/iso646.h: New.
* include/c_compatibility/limits.h: New.
* include/c_compatibility/locale.h: New.
* include/c_compatibility/math.h: New.
* include/c_compatibility/setjmp.h: New.
* include/c_compatibility/signal.h: New.
* include/c_compatibility/stdarg.h: New.
* include/c_compatibility/stddef.h: New.
* include/c_compatibility/stdio.h: New.
* include/c_compatibility/stdlib.h: New.
* include/c_compatibility/string.h: New.
* include/c_compatibility/time.h: New.
* include/c_compatibility/wchar.h: New.
* include/c_compatibility/wctype.h: New.

* include/c/std_cerrno.h: Get out of the way... define errno.
* include/c/std_cmath.h: Add abs, modf overloads.
Undefine C99 isms. Still not sure how to deal with this sanely.
* include/c/std_csetjmp.h: Tweak.
* include/c/std_cwchar.h: Include cstddef for size_t.

* include/c_std/std_cmath.h: Remove extra function.

Pendantic std usage in testsuites.
* testsuite/17_intro/header_cstdlib.cc (test01): Qualify ldiv_t
with std.
* testsuite/17_intro/header_cwchar.cc: Tweak.
* testsuite/22_locale/codecvt_members_char_char.cc (test03): Use
std::setlocale.
* testsuite/22_locale/ctype_to_wchar_t.cc (test05): Same.
* testsuite/22_locale/ctype_to_char.cc (test05): Same.
* testsuite/22_locale/ctype_is_wchar_t.cc (test05): Same.
* testsuite/22_locale/ctype_is_char.cc (test05): Same.
* testsuite/22_locale/codecvt_members_wchar_t_char.cc (test03): Same.
* testsuite/22_locale/time_get_members_wchar_t.cc (test08): Same.
* testsuite/22_locale/time_get_members_char.cc (test08): Same.
* testsuite/22_locale/time_put_members_wchar_t.cc (test04): Same.
* testsuite/22_locale/time_put_members_char.cc (test04): Same.
* testsuite/22_locale/num_put_members_wchar_t.cc (test04): Same.
* testsuite/22_locale/num_put_members_char.cc (test04): Same.
* testsuite/22_locale/numpunct_members_wchar_t.cc (test03): Same.
* testsuite/22_locale/numpunct_members_char.cc (test03): Same.
* testsuite/22_locale/num_get_members_wchar_t.cc: Same.
* testsuite/22_locale/num_get_members_char.cc: Same.
* testsuite/22_locale/money_put_members_wchar_t.cc (test07): Same.
* testsuite/22_locale/money_put_members_char.cc (test07): Same.
* testsuite/22_locale/moneypunct_members_wchar_t.cc (test03): Same.
* testsuite/22_locale/moneypunct_members_char.cc (test03): Same.
* testsuite/22_locale/money_get_members_wchar_t.cc (test08): Same.
* testsuite/22_locale/money_get_members_char.cc (test08): Same.
* testsuite/22_locale/messages_members_char.cc (test03): Same.
* testsuite/22_locale/collate_members_wchar_t.cc (test04): Same.
* testsuite/22_locale/collate_members_char.cc (test04): Same.
* testsuite/26_numerics/fabs_inline.cc: Use std::printf.
* testsuite/27_io/istream_seeks.cc (test02): Qualify abort.
* testsuite/27_io/istream_extractor_arith.cc (test11): Qualify strtol.

From-SVN: r54891

22 years agomangle.c (integer_type_codes): Const-ify.
Kaveh R. Ghazi [Fri, 21 Jun 2002 20:18:21 +0000 (20:18 +0000)]
mangle.c (integer_type_codes): Const-ify.

cp:
* mangle.c (integer_type_codes): Const-ify.
java:
* decl.c (clear_binding_level): Const-ify.

From-SVN: r54890

22 years agotree.c (tree_node_kind, [...]): Wrap in GATHER_STATISTICS macro.
Kaveh R. Ghazi [Fri, 21 Jun 2002 19:33:24 +0000 (19:33 +0000)]
tree.c (tree_node_kind, [...]): Wrap in GATHER_STATISTICS macro.

* tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
tree_node_kind_names): Wrap in GATHER_STATISTICS macro.

From-SVN: r54888

22 years agonetbsd.h: Adjust a comment.
Matt Thomas [Fri, 21 Jun 2002 19:20:14 +0000 (19:20 +0000)]
netbsd.h: Adjust a comment.

2002-06-21  Matt Thomas  <matt@3am-software.com>

* config/vax/netbsd.h: Adjust a comment.
(TARGET_DEFAULT): Redefine as 0.

From-SVN: r54887

22 years agobb-reorder.c (make_reorder_chain_1): Search harder for the vax casesi fallthru edge.
Richard Henderson [Fri, 21 Jun 2002 19:05:00 +0000 (12:05 -0700)]
bb-reorder.c (make_reorder_chain_1): Search harder for the vax casesi fallthru edge.

2002-06-21  Richard Henderson  <rth@redhat.com>

* bb-reorder.c (make_reorder_chain_1): Search harder for the
vax casesi fallthru edge.
* cfglayout.c (cleanup_unconditional_jumps): Use
redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
* cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
block after ADDR_VEC.

From-SVN: r54885

22 years agoObject.m (forward, [...]): Fix unused parameter warnings.
Kaveh R. Ghazi [Fri, 21 Jun 2002 14:36:37 +0000 (14:36 +0000)]
Object.m (forward, [...]): Fix unused parameter warnings.

* Object.m (forward, read, write): Fix unused parameter warnings.
* encoding.c: Include <stdlib.h>.
(target_flags): Mark with attribute unused.
(atoi): Delete.
* runtime.h (__objc_selector_max_index): Change to unsigned int.
(__objc_generate_gc_type_description): Prototype.
* selector.c (__objc_selector_max_index): Change to unsigned int.

From-SVN: r54884

22 years agoMake-lang.in (treelang/tree1.o, [...]): Add dependency on $(CONFIG_H).
Andreas Jaeger [Fri, 21 Jun 2002 14:09:33 +0000 (16:09 +0200)]
Make-lang.in (treelang/tree1.o, [...]): Add dependency on $(CONFIG_H).

* Make-lang.in (treelang/tree1.o, treelang/treetree.o,
treelang/parse.o, treelang/lex.o): Add dependency on $(CONFIG_H).

From-SVN: r54881

22 years ago* config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
Rainer Orth [Fri, 21 Jun 2002 11:23:06 +0000 (11:23 +0000)]
* config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.

From-SVN: r54879

22 years agoDaily bump.
GCC Administrator [Fri, 21 Jun 2002 07:40:10 +0000 (07:40 +0000)]
Daily bump.

From-SVN: r54877

22 years agoReformat JDBC classes and add new JDK 1.4 classes and methods.
Bryce McKinlay [Fri, 21 Jun 2002 05:39:33 +0000 (05:39 +0000)]
Reformat JDBC classes and add new JDK 1.4 classes and methods.

* java/sql/ParameterMetaData.java, java/sql/SQLPermission.java,
java/sql/Savepoint.java: New files.
* java/sql/Array.java, java/sql/BatchUpdateException.java,
java/sql/Blob.java, java/sql/CallableStatement.java,
java/sql/Clob.java, java/sql/Connection.java,
java/sql/DataTruncation.java, java/sql/DatabaseMetaData.java,
java/sql/Date.java, java/sql/Driver.java,
java/sql/DriverManager.java,
java/sql/DriverPropertyInfo.java, java/sql/PreparedStatement.java,
java/sql/Ref.java, java/sql/ResultSet.java,
java/sql/ResultSetMetaData.java, java/sql/SQLData.java
java/sql/SQLException.java, java/sql/SQLInput.java,
java/sql/SQLOutput.java, java/sql/SQLWarning.java
java/sql/Statement.java, java/sql/Struct.java, java/sql/Time.java,
java/sql/Timestamp.java, java/sql/Types.java: Updated to JDBC 3.0
(JDK 1.4) specification.
* javax/sql/ConnectionEvent.java,
javax/sql/ConnectionEventListener.java,
javax/sql/ConnectionPoolDataSource.java,
javax/sql/DataSource.java, javax/sql/PooledConnection.java,
javax/sql/RowSetEvent.java, javax/sql/RowSetInternal.java,
javax/sql/RowSet.java, javax/sql/RowSetListener.java,
javax/sql/RowSetMetaData.java, javax/sql/RowSetReader.java,
javax/sql/RowSetWriter.java, javax/sql/XAConnection.java,
javax/sql/XADataSource.java: New files.
* Makefile.am: Add new files.
* Makefile.in: Rebuilt.

From-SVN: r54871

22 years agocpperror.c (cpp_error): For traditional CPP, default to diagnostics on pfile->line.
Neil Booth [Fri, 21 Jun 2002 05:29:09 +0000 (05:29 +0000)]
cpperror.c (cpp_error): For traditional CPP, default to diagnostics on pfile->line.

* cpperror.c (cpp_error): For traditional CPP, default to
diagnostics on pfile->line.
* cpplib.c (prepare_directive_trad): Set line number for
diagnostics for #define too.
* cpptrad.c (skip_whitespace): Skip comments properly.
(_cpp_expansions_different_trad): Initialize quote2.
testsuite:
* gcc.dg/cpp/trad: New directory with traditional tests copied
from parent directory.
* gcc.dg/cpp/assert_trad1.c, gcc.dg/cpp/assert_trad2.c,
gcc.dg/cpp/assert_trad3.c, gcc.dg/cpp/defined_trad.c,
gcc.dg/cpp/hash2.c, gcc.dg/cpp/tr-define.c, gcc.dg/cpp/tr-direct.c,
gcc.dg/cpp/tr-sign.c, gcc.dg/cpp/tr-str.c, gcc.dg/cpp/uchar-2.c:
Move to trad/ and rename.
* gcc.dg/cpp/trad/__STDC__.c, gcc.dg/cpp/trad/comment.c,
gcc.dg/cpp/trad/escaped-eof.c, gcc.dg/cpp/trad/redef1.c,
gcc.dg/cpp/trad/redef2.c: New tests.
* gcc.dg/cpp/trad/trad.exp: New driver.

From-SVN: r54870

22 years agommix.md: Change GNU CC to GCC in file header comment.
Hans-Peter Nilsson [Fri, 21 Jun 2002 03:55:47 +0000 (03:55 +0000)]
mmix.md: Change GNU CC to GCC in file header comment.

* config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
* config/mmix/mmix.h: Ditto.
* config/mmix/mmix-protos.h: Ditto.
* config/mmix/mmix.c: Ditto.  Fix typo in comment.
* config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
comment.  Comment extra CC modes.

From-SVN: r54869

22 years agocfglayout.c (scope_to_insns_initialize): Call set_block_levels.
Jan Hubicka [Fri, 21 Jun 2002 02:09:11 +0000 (04:09 +0200)]
cfglayout.c (scope_to_insns_initialize): Call set_block_levels.

        * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
        (scope_to_insns_finalize): Do not call set_block_levels; handle
        sequences.
        (choose_inner_scope): New.
        * rtl.h (choose_inner_scope): Declare.

From-SVN: r54868

22 years agopa-protos.h (pa_asm_output_mi_thunk): Change third argument to HOST_WIDE_INT.
John David Anglin [Fri, 21 Jun 2002 01:37:47 +0000 (01:37 +0000)]
pa-protos.h (pa_asm_output_mi_thunk): Change third argument to HOST_WIDE_INT.

* pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
HOST_WIDE_INT.
* pa.c (pa_asm_output_mi_thunk): Likewise.
(n_deferred_plabels): Change type to size_t.
(output_deferred_plabels, output_call): Use size_t instead of int.

From-SVN: r54867

22 years agoFix thinko last change.
Richard Henderson [Thu, 20 Jun 2002 23:50:13 +0000 (16:50 -0700)]
Fix thinko last change.

From-SVN: r54866

22 years agom68k.md (zero_extendsidi2): Create expander; duplicate pattern and adjust constraints...
Richard Henderson [Thu, 20 Jun 2002 23:47:35 +0000 (16:47 -0700)]
m68k.md (zero_extendsidi2): Create expander; duplicate pattern and adjust constraints for coldfire.

        * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
        pattern and adjust constraints for coldfire.

From-SVN: r54865

22 years agotypeck.c (mark_addressable): Don't test TREE_ADDRESSABLE early.
Richard Henderson [Thu, 20 Jun 2002 23:23:54 +0000 (16:23 -0700)]
typeck.c (mark_addressable): Don't test TREE_ADDRESSABLE early.

        * typeck.c (mark_addressable): Don't test TREE_ADDRESSABLE early.
        Call put_var_into_stack.
        * g++.dg/opt/asm1.C: New.

From-SVN: r54862

22 years ago* explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
Richard Henderson [Thu, 20 Jun 2002 23:15:17 +0000 (16:15 -0700)]
* explow.c (probe_stack_range): Use gen_rtx_fmt_ee.

From-SVN: r54861

22 years agoconfig.gcc (mipsisa64-*-elf*, [...]): New targets.
Chris Demetriou [Thu, 20 Jun 2002 22:41:25 +0000 (22:41 +0000)]
config.gcc (mipsisa64-*-elf*, [...]): New targets.

2002-06-20  Chris Demetriou  <cgd@broadcom.com>

* config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.

From-SVN: r54860

22 years agomips.h (ISA_HAS_FP4): Fix comment to reflect use.
Chris Demetriou [Thu, 20 Jun 2002 22:36:09 +0000 (22:36 +0000)]
mips.h (ISA_HAS_FP4): Fix comment to reflect use.

2002-06-20  Chris Demetriou  <cgd@broadcom.com>

* config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.

From-SVN: r54859

22 years ago* dominance.c: Include errors.h instead of error.h.
Stan Shebs [Thu, 20 Jun 2002 22:33:42 +0000 (22:33 +0000)]
* dominance.c: Include errors.h instead of error.h.

From-SVN: r54858

22 years agocppexp.c (cpp_interpret_integer): Don't force traditional numbers to be unsigned.
Neil Booth [Thu, 20 Jun 2002 20:34:19 +0000 (20:34 +0000)]
cppexp.c (cpp_interpret_integer): Don't force traditional numbers to be unsigned.

* cppexp.c (cpp_interpret_integer): Don't force traditional
numbers to be unsigned.
* cpplib.c (prepare_directive_trad): Set line number for
diagnostics.
* cpptrad.c (scan_out_logical_line): Continue scanning out
at start of buffer.
* gcc.c (trad_capable_cpp): Use cc1 always.
f:
* lang-specs.h: Use cc1 for traditional preprocessing.
testsuite:
* gcc.dg/cpp/assert_trad1.c, gcc.dg/cpp/assert_trad2.c,
gcc.dg/cpp/assert_trad3.c, gcc.dg/cpp/defined_trad.c,
gcc.dg/cpp/hash2.c, gcc.dg/cpp/tr-define.c, gcc.dg/cpp/tr-direct.c,
gcc.dg/cpp/tr-sign.c, gcc.dg/cpp/tr-str.c, gcc.dg/cpp/uchar-2.c:
Remove.

From-SVN: r54856

22 years agoMakefile.am (libsupc__convenience_la_SOURCES): Add c_sources.
Benjamin Kosnik [Thu, 20 Jun 2002 20:25:44 +0000 (20:25 +0000)]
Makefile.am (libsupc__convenience_la_SOURCES): Add c_sources.

2002-06-20  Benjamin Kosnik  <bkoz@redhat.com>

* libsupc++/Makefile.am (libsupc__convenience_la_SOURCES): Add
c_sources.

From-SVN: r54855

22 years agoext-inst.cc (__gnu_cxx): Use instead of std:: for extensions.
Benjamin Kosnik [Thu, 20 Jun 2002 20:13:46 +0000 (20:13 +0000)]
ext-inst.cc (__gnu_cxx): Use instead of std:: for extensions.

2002-06-20  Benjamin Kosnik  <bkoz@redhat.com>

        * src/ext-inst.cc (__gnu_cxx): Use instead of std:: for extensions.
        Use size_type instead of unsigned long.

From-SVN: r54854

22 years ago* MAINTAINERS (Write After Approval): Add self.
Steve Ellcey [Thu, 20 Jun 2002 19:52:23 +0000 (19:52 +0000)]
* MAINTAINERS (Write After Approval): Add self.

From-SVN: r54853

22 years agoext-inst.cc (_S_fetch): Add explicit templates for char and wchar types.
Steve Ellcey [Thu, 20 Jun 2002 19:20:41 +0000 (19:20 +0000)]
ext-inst.cc (_S_fetch): Add explicit templates for char and wchar types.

* src/ext-inst.cc (_S_fetch): Add explicit templates for char and
wchar types.
(_S_min_len): Ditto.

From-SVN: r54850

22 years agoMakefile.am: Add rules.
Benjamin Kosnik [Thu, 20 Jun 2002 19:08:42 +0000 (19:08 +0000)]
Makefile.am: Add rules.

2002-06-20  Benjamin Kosnik  <bkoz@redhat.com>

* include/Makefile.am: Add rules.
* include/Makefile.in: Regenerate.

* acinclude.m4: Define GLIBCPP_C_HEADERS_COMPATIBILITY.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* configure.target (c_model, c_compatibility): Add.

* libsupc++/Makefile.am (c_sources): New.
(libsupc___la_SOURCES): Add c_sources.
(LTCOMPILE): Remove INCLUDES.
(GCC_INCLUDES): New.
(C_COMPILE): New, like COMPILE but without INCLUDES.
(cxa_demangle.o): Use C_COMPILE.
(dyn-string.o): Use C_COMPILE.

* include/c/std_cstdarg.h: Define __need___va_list.
* include/c/std_cstddef.h: Define need_size_t, need_ptrdiff_t,
need_NULL, need_offsetof.

From-SVN: r54849

22 years agoi386.h (TARGET_DEFAULT): Do not turn on frame pointer elimination in leaf functions...
Jeff Law [Thu, 20 Jun 2002 19:07:42 +0000 (13:07 -0600)]
i386.h (TARGET_DEFAULT): Do not turn on frame pointer elimination in leaf functions by default yet.

        * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
        elimination in leaf functions by default yet.

From-SVN: r54848

22 years ago* gcc.dg/20020620-1.c: New test.
Richard Sandiford [Thu, 20 Jun 2002 18:07:29 +0000 (18:07 +0000)]
* gcc.dg/20020620-1.c: New test.

From-SVN: r54847

22 years ago* combine.c (make_extraction): Reapply to the argument of an ASHIFT.
Richard Sandiford [Thu, 20 Jun 2002 18:04:00 +0000 (18:04 +0000)]
* combine.c (make_extraction): Reapply to the argument of an ASHIFT.

From-SVN: r54846

22 years agot-crtfm (crtfastmath.o): Prefix with $(T) for multilibs.
Rainer Orth [Thu, 20 Jun 2002 18:00:02 +0000 (18:00 +0000)]
t-crtfm (crtfastmath.o): Prefix with $(T) for multilibs.

* config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
multilibs.
* config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.

From-SVN: r54845

22 years agoMon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
Jan Hubicka [Thu, 20 Jun 2002 17:57:27 +0000 (17:57 +0000)]
Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>

* basic-block.h: Do not include et-forest.h
(dominance_info): Declare as struct dominance-info.
* cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
deleting block.
* dominance.c (struct dominance_info): Define.
(BB_NODE, SET_BB_NODE): New macros.
(bb_hash_func, bb_eq_func): Kill.
(calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
nearest_common_dominator, dominated_by_p, recount_dominator,
add_to_dominance_info, delete_from_dominance_info): update for new
representation.
(get_dominated_by, redirect_immediate_dominators): Rewrite using
enumerate_sons.
* ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
find_if_case_1, find_if_case_2): Remove killed blocks from dominance
structure.

* et-forest.h: Update copyright; revamp all function to operate on
nodes
(et_forest_value): Kill.
(et_forest_enumerate_sons, et_forest_node_value): New.
* et-forest.c: Update copyright.
* et-forest.h: Update copyright; revamp all function to operate on
nodes
(et_forest_value): Kill.
(et_forest_enumerate_sons, et_forest_node_value): New.

Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>

* basic-block.h: Inlude et-forest.h
(basic_block_def): Kill dominator.
(dominance_info): New type.
(loops): Use dominace_info.
(dominace handling functions): Take dominace_info as argument
instead of bitmaps.
(create_preheader): Likewise.
* cfg.c (entry_exit_blocks): Kill dominator.
(dump_flow_info): Do not dump dominators.
* cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
dominators.
* cfgloop.c (flow_pre_header_find): Use dominacne_info.
(flow_loops_pre_header_scan, make_forwarder_block,
canonicale_loop_headers, flow_loops_find): Likewise.
* dominance.c: Include error.h
(idoms_to_doms): Kill.
(bb_hash_func, bb_eq_func): New static functions.
(debug_dominace_info): New global function.
(calculate_dominance_info): Use new et forest structure.
(free_dominace_info, get_immediate_dominator, set_immediate_dominator,
get_dominated_by, redirect_immediate_dominators,
nearest_common_dominator, dominated_by_p, verify_dominators,
recount_dominator, iterate_fix_dominators, add_to_dominace_info,
delete_from_dominance_info): New global functions.
* gcse.c (domnators): CHange to dominance_info.
(alloc_hoist_mem): Do not alloc dominators
(free_code_hoist_mem): Use free_dominance_info.
(compute_code_hoist_data): Use dominance_info.
(hoist_code): Likewise.
* ifcvt.c (post_dominators): Likewise.
(find_if_case_2, if_convert): Likewise.
* predict.c (process_note_predictions, process_note_prediction,
estimate-probability): Likewise.
* sched-rgn.c (find_rgns, init_regions): Likewise.
* ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
* ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
find_evaluations, convert_to_ssa): Likewise.
* ssa.h (compute_dominance_frontiers): Likewise.

Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>

* Makefile.in (et-forest.c): Add.
* et-forest.c: New file.
* at-forest.h: New file.

From-SVN: r54844

22 years agoMon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
Jan Hubicka [Thu, 20 Jun 2002 17:51:06 +0000 (19:51 +0200)]
Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>

* basic-block.h: Do not include et-forest.h
(dominance_info): Declare as struct dominance-info.
* cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
deleting block.
* dominance.c (struct dominance_info): Define.
(BB_NODE, SET_BB_NODE): New macros.
(bb_hash_func, bb_eq_func): Kill.
(calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
nearest_common_dominator, dominated_by_p, recount_dominator,
add_to_dominance_info, delete_from_dominance_info): update for new
representation.
(get_dominated_by, redirect_immediate_dominators): Rewrite using
enumerate_sons.
* ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
find_if_case_1, find_if_case_2): Remove killed blocks from dominance
structure.

* et-forest.h: Update copyright; revamp all function to operate on
nodes
(et_forest_value): Kill.
(et_forest_enumerate_sons, et_forest_node_value): New.
* et-forest.c: Update copyright.
* et-forest.h: Update copyright; revamp all function to operate on
nodes
(et_forest_value): Kill.
(et_forest_enumerate_sons, et_forest_node_value): New.

Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>

* basic-block.h: Inlude et-forest.h
(basic_block_def): Kill dominator.
(dominance_info): New type.
(loops): Use dominace_info.
(dominace handling functions): Take dominace_info as argument
instead of bitmaps.
(create_preheader): Likewise.
* cfg.c (entry_exit_blocks): Kill dominator.
(dump_flow_info): Do not dump dominators.
* cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
dominators.
* cfgloop.c (flow_pre_header_find): Use dominacne_info.
(flow_loops_pre_header_scan, make_forwarder_block,
canonicale_loop_headers, flow_loops_find): Likewise.
* dominance.c: Include error.h
(idoms_to_doms): Kill.
(bb_hash_func, bb_eq_func): New static functions.
(debug_dominace_info): New global function.
(calculate_dominance_info): Use new et forest structure.
(free_dominace_info, get_immediate_dominator, set_immediate_dominator,
get_dominated_by, redirect_immediate_dominators,
nearest_common_dominator, dominated_by_p, verify_dominators,
recount_dominator, iterate_fix_dominators, add_to_dominace_info,
delete_from_dominance_info): New global functions.
* gcse.c (domnators): CHange to dominance_info.
(alloc_hoist_mem): Do not alloc dominators
(free_code_hoist_mem): Use free_dominance_info.
(compute_code_hoist_data): Use dominance_info.
(hoist_code): Likewise.
* ifcvt.c (post_dominators): Likewise.
(find_if_case_2, if_convert): Likewise.
* predict.c (process_note_predictions, process_note_prediction,
estimate-probability): Likewise.
* sched-rgn.c (find_rgns, init_regions): Likewise.
* ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
* ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
find_evaluations, convert_to_ssa): Likewise.
* ssa.h (compute_dominance_frontiers): Likewise.

Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>

* Makefile.in (et-forest.c): Add.
* et-forest.c: New file.
* at-forest.h: New file.

Co-Authored-By: Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
From-SVN: r54843

22 years agoutils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit array size calculation.
Kaveh R. Ghazi [Thu, 20 Jun 2002 17:38:23 +0000 (17:38 +0000)]
utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit array size calculation.

ada:
* utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
array size calculation.

gcc:
* c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
array size calculation.
* gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
Likewise.

cp:
* spew.c (remove_last_token): Use ARRAY_SIZE in lieu of explicit
array size calculation.

From-SVN: r54842

22 years agodiagnostic.c (diagnostic_kind_text): Const-ify.
Kaveh R. Ghazi [Thu, 20 Jun 2002 16:59:01 +0000 (16:59 +0000)]
diagnostic.c (diagnostic_kind_text): Const-ify.

* diagnostic.c (diagnostic_kind_text): Const-ify.
* gengtype.c (lang_names): Likewise.

From-SVN: r54840

22 years ago* combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
Jan Hubicka [Thu, 20 Jun 2002 15:39:58 +0000 (15:39 +0000)]
* combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.

From-SVN: r54839

22 years agoFor PR libgcj/7073:
Tom Tromey [Thu, 20 Jun 2002 15:10:49 +0000 (15:10 +0000)]
For PR libgcj/7073:

* resolve.cc (_Jv_PrepareClass): Only resolve superclass if it
exists.
* defineclass.cc (handleClassBegin): Superclass for interface is
`null'.

From-SVN: r54835

22 years agore PR c++/6892 (ICE from #include inside switch(){} inside template function)
Kriang Lerdsuwanakij [Thu, 20 Jun 2002 14:44:37 +0000 (14:44 +0000)]
re PR c++/6892 (ICE from #include inside switch(){} inside template function)

PR c++/6892
* pt.c (tsubst_expr): Handle FILE_STMT.

From-SVN: r54832

22 years agore PR c++/6723 (ICE on source code successfully compiled by previous versions)
Kriang Lerdsuwanakij [Thu, 20 Jun 2002 14:38:06 +0000 (14:38 +0000)]
re PR c++/6723 (ICE on source code successfully compiled by previous versions)

PR c++/6723
* pt.c (lookup_template_class): Don't build complete argument of
BOUND_TEMPLATE_TEMPLATE_PARM if appeared as a default template
argument.

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

From-SVN: r54831

22 years agocom.c (ffecom_prepare_expr_,ffecom_expr_power_integer_): Remove #ifdefed HAHA sections.
Andreas Jaeger [Thu, 20 Jun 2002 12:31:28 +0000 (14:31 +0200)]
com.c (ffecom_prepare_expr_,ffecom_expr_power_integer_): Remove #ifdefed HAHA sections.

* com.c (ffecom_prepare_expr_,ffecom_expr_power_integer_):
Remove #ifdefed HAHA sections.

From-SVN: r54829

22 years agosol2.h: New file.
Rainer Orth [Thu, 20 Jun 2002 11:03:40 +0000 (11:03 +0000)]
sol2.h: New file.

* config/sol2.h: New file.
* config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
(sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
(sparc-*-chorusos*): Likewise.
(sparc-*-elf*): Likewise.
(sparc-*-rtems*, sparc-*-rtemself*): Likewise.
(sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
(sparc-hal-solaris2*): Likewise.
(sparc-*-solaris2*): Likewise.
(sparclite-*-elf*): Likewise.
(sparc86x-*-elf*): Likewise.
(sparc64-*-elf*): Likewise.

* config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
config/sol2.h.
(ASM_SPEC): Override config/sol2.h version for now.
Removed obsolete GAS_REJECTS_MINUS_S variant.
(WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
(HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
(TARGET_OS_CPP_BUILTINS): Likewise.
Assert system=unix.
(CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
(LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
config/sol2.h.
(SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
(ASM_CPU_SPEC): Define.
(SUBTARGET_EXTRA_SPECS): Define.

* config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
in config/sparc/sol2.h.
(ASM_SPEC): Moved to config/sol2.h.
(CPP_CPU_SPEC): Simplified.
(STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
consistency.
(STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
(STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
STARTFILE_ARCH64_SPEC.
(STARTFILE_SPEC): Moved to config/sol2.h
(SUBTARGET_EXTRA_SPECS): Add startfile_arch.
(LINK_ARCH32_SPEC): Moved to config/sol2.h.
(LINK_ARCH64_SPEC): Simplified.
(LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
(LINK_SPEC): Moved to config/sol2.h

* config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
config/sol2.h.
Use BITS_PER_WORD for size.
(WINT_TYPE, WINT_TYPE_SIZE): Likewise.
(HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
(CPP_PREDEFINES): Removed OS-specific part handled by
TARGET_OS_CPP_BUILTINS.
(CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
(CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
(ASM_SPEC): Moved to config/sol2.h.
(PREFERRED_DEBUGGING_TYPE): Likewise.
(STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
(SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
(TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
(TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h

* config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
* config/i386/sol2gas.h: Removed.

From-SVN: r54827

22 years ago* i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
Jan Hubicka [Thu, 20 Jun 2002 10:15:59 +0000 (12:15 +0200)]
* i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.

From-SVN: r54826

22 years agocom.c: Remove #ifdef HOHO sections.
Nathanael Nerode [Thu, 20 Jun 2002 09:13:57 +0000 (11:13 +0200)]
com.c: Remove #ifdef HOHO sections.

2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>

* com.c: Remove #ifdef HOHO sections.

From-SVN: r54824

22 years agoc-common.c (c_common_get_alias_set): Correctly handle characters.
Richard Henderson [Thu, 20 Jun 2002 07:30:04 +0000 (00:30 -0700)]
c-common.c (c_common_get_alias_set): Correctly handle characters.

        * c-common.c (c_common_get_alias_set): Correctly handle characters.
        Rearrange order of expressions; don't handle vectors here.
        * alias.c (get_alias_set): Let vectors match their components.

From-SVN: r54821

22 years agoDaily bump.
GCC Administrator [Thu, 20 Jun 2002 07:27:58 +0000 (07:27 +0000)]
Daily bump.

From-SVN: r54820

22 years agomips.c (mips_emit_prefetch): Use hints which match desired locality.
Chris Demetriou [Thu, 20 Jun 2002 02:48:29 +0000 (02:48 +0000)]
mips.c (mips_emit_prefetch): Use hints which match desired locality.

2002-06-19  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.c (mips_emit_prefetch): Use hints which
match desired locality.

From-SVN: r54815

22 years agoh8300.c (TARGET_INSERT_ATTRIBUTES): Define.
Dhananjay R. Deshpande [Thu, 20 Jun 2002 02:43:13 +0000 (02:43 +0000)]
h8300.c (TARGET_INSERT_ATTRIBUTES): Define.

* config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
(h8300_insert_attributes): New.

From-SVN: r54814

22 years agoc-parse.in (initelt: identifier ':' initval): Add an empty action to fix a type clash.
Akim Demaille [Thu, 20 Jun 2002 01:30:57 +0000 (01:30 +0000)]
c-parse.in (initelt: identifier ':' initval): Add an empty action to fix a type clash.

2002-06-19  Akim Demaille  <akim@epita.fr>

* c-parse.in (initelt: identifier ':' initval): Add an empty
action to fix a type clash.
(aliasdecl, classdef): Add the missing closing `;'.
Whitespace changes.
* gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
$$ = $1 type clashes.

cp:
* parse.y (TYPENAME): Rename as tTYPENAME to avoid the clash with
decl.h's TYPENAME.
* spew.c, lex.c: Adjust.
* parse.y (explicit_instantiation): Add empty action to override
the default $$ = $1 where it introduces a type clash.

From-SVN: r54811

22 years ago* configure.in: replace ${topsrcdir} with ${srcdir}
Nathanael Nerode [Wed, 19 Jun 2002 23:57:38 +0000 (23:57 +0000)]
* configure.in: replace ${topsrcdir} with ${srcdir}

From-SVN: r54810

22 years agoconfigure.in: Move definition of libstdcxx_flags right above usage, rather than waaay...
Nathanael Nerode [Wed, 19 Jun 2002 23:53:29 +0000 (23:53 +0000)]
configure.in: Move definition of libstdcxx_flags right above usage, rather than waaay earlier.

* configure.in: Move definition of libstdcxx_flags
right above usage, rather than waaay earlier.

From-SVN: r54809

22 years ago* configure.in: Rearrange a little.
DJ Delorie [Wed, 19 Jun 2002 23:47:43 +0000 (19:47 -0400)]
* configure.in: Rearrange a little.

From-SVN: r54808

22 years ago* configure.in: Pull definition of is_cross_compiler earlier.
Nathanael Nerode [Wed, 19 Jun 2002 23:39:42 +0000 (23:39 +0000)]
* configure.in: Pull definition of is_cross_compiler earlier.

From-SVN: r54807

22 years ago* configure.in: Rearrange a little.
Nathanael Nerode [Wed, 19 Jun 2002 23:24:14 +0000 (23:24 +0000)]
* configure.in: Rearrange a little.

From-SVN: r54806

22 years agomips.c (symbol_operand): New function.
Eric Christopher [Wed, 19 Jun 2002 23:18:00 +0000 (23:18 +0000)]
mips.c (symbol_operand): New function.

2002-06-19  Eric Christopher  <echristo@redhat.com>

* config/mips/mips.c (symbol_operand): New function.
(mips_emit_prefetch): Ditto.
* config/mips/mips-protos.h: Define.
* config/mips/mips.h (ISA_HAS_PREFETCH): Define.
(CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
(LEGITIMIZE_ADDRESS): Ditto.
* config/mips/mips.md (prefetch, prefetch_si_address,
prefetch_si, prefetch_di_address, prefetch_di): New patterns.

From-SVN: r54805

22 years agoconfigure.in: Remove references to librx.
Nathanael Nerode [Wed, 19 Jun 2002 23:06:06 +0000 (23:06 +0000)]
configure.in: Remove references to librx.

* configure.in: Remove references to librx.
* Makefile.in: Remove references to librx.

From-SVN: r54804

22 years agofp-bit.h: Add unordered defines for gofast.
Eric Christopher [Wed, 19 Jun 2002 23:01:59 +0000 (23:01 +0000)]
fp-bit.h: Add unordered defines for gofast.

2002-06-19  Eric Christopher  <echristo@redhat.com>

* config/fp-bit.h: Add unordered defines for gofast.

From-SVN: r54803

22 years agogenautomata.c (DECL_UNIT, [...]): New macros with checking and without it.
Vladimir Makarov [Wed, 19 Jun 2002 22:37:30 +0000 (22:37 +0000)]
genautomata.c (DECL_UNIT, [...]): New macros with checking and without it.

2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>

* genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
checking and without it.
(decl_name, decl_mode_check_failed, regexp_name,
regexp_mode_check_failed): New functions.
(gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
gen_presence_set, gen_absence_set, gen_automaton,
gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
gen_regexp_sequence, gen_reserv, gen_insn_reserv,
automaton_decl_hash, automaton_decl_eq_p): Use the macros.
(find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
(insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
(find_insn_decl): Ditto.  Set up mode of work_insn_decl.
(decl_hash, decl_eq_p): Use the macros.
(find_decl): Ditto.  Set up mode of work_decl.
(process_excls, process_presence_absence, process_decls,
check_automaton_usage, process_regexp, process_regexp_decls,
check_usage, loop_in_regexp, check_loops_in_regexps,
process_regexp_cycles, add_advance_cycle_insn_decl,
initiate_states, initiate_excl_sets,
initiate_presence_absence_sets, copy_insn_regexp, transform_1,
transform_2): Use the macros.
(transform_3): Ditto.  Check mode before making transformations of
ALLOF.
(regexp_transform_func, transform_insn_regexps,
process_unit_to_form_the_same_automaton_unit_lists,
form_the_same_automaton_unit_lists_from_regexp,
form_the_same_automaton_unit_lists,
process_seq_for_forming_states, process_alts_for_forming_states,
create_alt_states, form_ainsn_with_same_reservs, make_automaton,
form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
estimate_one_automaton_bound, compare_max_occ_cycle_nums,
units_to_automata_heuristic_distr, create_ainsns,
units_to_automata_distr, create_automata): Use the macros.
(form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
(longest_path_length, min_issue_delay_pass_states,
output_dead_lock_vect, output_tables, output_insn_code_cases,
output_internal_insn_latency_func, output_print_reservation_func,
output_description, output_automaton_units, generate): Use the
macros.
(make_insn_alts_attr): Ditto.  Check case when there are not
alternatives in the reservation.
(make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
make_bypass_attr, form_important_insn_automata_lists,
expand_automata): Use the macros.

From-SVN: r54802

22 years agoconfig.sub: Add support for avr target.
Denis Chertykov [Wed, 19 Jun 2002 20:46:38 +0000 (20:46 +0000)]
config.sub: Add support for avr target.

* config.sub: Add support for avr target.
Import from master sources, rev 1.255

From-SVN: r54801

22 years agoClean up configure.in checks for bad languages; fix typos in treelang.
Tim Josling [Wed, 19 Jun 2002 20:30:23 +0000 (20:30 +0000)]
Clean up configure.in checks for bad languages; fix typos in treelang.

From-SVN: r54800

22 years agoconfigure.in (HAVE_FINITE*, [...]): Remove definitions in hpux11 cross-build because...
Steve Ellcey [Wed, 19 Jun 2002 20:30:13 +0000 (20:30 +0000)]
configure.in (HAVE_FINITE*, [...]): Remove definitions in hpux11 cross-build because these functions do not exist...

2002-06-19  Steve Ellcey  <sje@cup.hp.com>

* configure.in (HAVE_FINITE*, HAVE_ISINF*, HAVE_ISNAN*):  Remove
definitions in hpux11 cross-build because these functions do
not exist on hpux11 (but some exist on hpux10); move defaults out
into existing sections.
* configure:  Regenerate.

From-SVN: r54799

22 years agotm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of builtin_define and builtin_d...
Matt Kraai [Wed, 19 Jun 2002 20:14:19 +0000 (20:14 +0000)]
tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of builtin_define and builtin_define_std.

* doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
builtin_define and builtin_define_std.

From-SVN: r54798

22 years ago* cpptrad.c (_cpp_replacement_text_len): initialize len.
Andrew Pinski [Wed, 19 Jun 2002 19:59:45 +0000 (19:59 +0000)]
* cpptrad.c (_cpp_replacement_text_len): initialize len.

From-SVN: r54797

22 years agoMakefile.in (unstrap, restrap): New targets.
Jason Merrill [Wed, 19 Jun 2002 19:00:09 +0000 (15:00 -0400)]
Makefile.in (unstrap, restrap): New targets.

        * Makefile.in (unstrap, restrap): New targets.
        (bootstrap): Mention restrap.

From-SVN: r54795

22 years ago* except.c (ehl_free): Remove.
Matt Kraai [Wed, 19 Jun 2002 18:48:28 +0000 (18:48 +0000)]
* except.c (ehl_free): Remove.

From-SVN: r54794

22 years agoconfigure, .cvsignore: Revert previous change...
Phil Edwards [Wed, 19 Jun 2002 18:10:09 +0000 (18:10 +0000)]
configure, .cvsignore: Revert previous change...

2002-06-19  Phil Edwards  <pme@gcc.gnu.org>

* configure, .cvsignore:  Revert previous change...
* Makefile:  ...delete.

From-SVN: r54792

22 years agons32k.md: Give "*xxx" names to all unnamed insn's.
Ian Dall [Wed, 19 Jun 2002 17:45:15 +0000 (10:45 -0700)]
ns32k.md: Give "*xxx" names to all unnamed insn's.

        * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
        (sCOND): Restrict operand class so that gcc knows how to reload them.
        (bitfield_set): Merge two unnamed insn's using alternatives.
        (call_value): Remove constraint on unused uperand.
        (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
        (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.

        * longlong.h (count_trailing_zeros): Escape newline and beautify.

From-SVN: r54788

22 years ago* configure.in: Eliminate ${gasdir} variable.
Nathanael Nerode [Wed, 19 Jun 2002 17:39:21 +0000 (17:39 +0000)]
* configure.in: Eliminate ${gasdir} variable.

From-SVN: r54786

22 years ago* Makefile.in (QMTEST_DIR): Simplify definition.
Mark Mitchell [Wed, 19 Jun 2002 16:09:21 +0000 (16:09 +0000)]
* Makefile.in (QMTEST_DIR): Simplify definition.

From-SVN: r54783

22 years agostd_cwchar.h: Guard.
Benjamin Kosnik [Wed, 19 Jun 2002 15:19:53 +0000 (15:19 +0000)]
std_cwchar.h: Guard.

2002-06-18  Benjamin Kosnik  <bkoz@redhat.com>

* include/c/std_cwchar.h: Guard. Add mbstate_t bits.
* include/c/std_cwctype.h: Guard.

* libsupc++/eh_alloc.cc: Tweak include order.
* libsupc++/pure.cc: Use cstdio.
* libsupc++/new_op.cc: Remove malloc forward declaration, as
cstdlib brings it in. Use std::malloc.

* src/Makefile.am (sources): Remove cmath.cc.
* src/Makefile.in: Regenerate.
* src/cmath.cc: Remove.

From-SVN: r54782

22 years ago* g++.dg/opt/vt1.C: Fix regexp.
Jakub Jelinek [Wed, 19 Jun 2002 14:45:06 +0000 (16:45 +0200)]
* g++.dg/opt/vt1.C: Fix regexp.

From-SVN: r54781

22 years ago(CUMULATIVE_ARGS): Replace typedef with #define.
Nick Clifton [Wed, 19 Jun 2002 10:00:42 +0000 (10:00 +0000)]
(CUMULATIVE_ARGS): Replace typedef with #define.

From-SVN: r54779

22 years agoDaily bump.
GCC Administrator [Wed, 19 Jun 2002 07:19:42 +0000 (07:19 +0000)]
Daily bump.

From-SVN: r54776

22 years agocpphash.h (struct cpp_reader): Make date and time strings.
Neil Booth [Wed, 19 Jun 2002 05:40:08 +0000 (05:40 +0000)]
cpphash.h (struct cpp_reader): Make date and time strings.

* cpphash.h (struct cpp_reader): Make date and time strings.
(_cpp_builtin_macro_text, _cpp_copy_replacement_text,
_cpp_replacement_text_len): New.
* cppinit.c (cpp_create_reader): Update.
(init_builtins): Register appropriate builtins for -traditional-cpp.
* cppmacro.c (new_number_token): Remove.
(_cpp_builtin_macro_text): New.
(builtin_macro): Use it.
(cpp_macro_definition): Update to handle traditional macros.
* cppmain.c (cb_line_change): Don't do column positioning for
traditional output.
* cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
state ls_fun_close.
(skip_whitespace): Fix.
(maybe_start_funlike): Don't set state.parsing_args.
(scan_out_logical_line): Remove duplicate error.  Use lex_state
rather than state.parsing_args.
(push_replacement_text): Handle builtins.
(_cpp_replacement_text_len, _cpp_copy_replacement_text): New.

From-SVN: r54771

22 years agoconfigure.target: Force mips to use the generic cpu routines.
Phil Edwards [Wed, 19 Jun 2002 01:30:39 +0000 (01:30 +0000)]
configure.target: Force mips to use the generic cpu routines.

2002-06-18  Phil Edwards  <pme@gcc.gnu.org>

* configure.target:  Force mips to use the generic cpu routines.

From-SVN: r54769

22 years agofp-bit.c (_fpmul_parts, [...]): Mark with attribute __always_inline__.
Hans-Peter Nilsson [Wed, 19 Jun 2002 00:51:03 +0000 (00:51 +0000)]
fp-bit.c (_fpmul_parts, [...]): Mark with attribute __always_inline__.

* config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
attribute __always_inline__.

Co-Authored-By: Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
From-SVN: r54768

22 years agopure-1.c: Make functions static again.
Kaveh R. Ghazi [Wed, 19 Jun 2002 00:43:33 +0000 (00:43 +0000)]
pure-1.c: Make functions static again.

* gcc.c-torture/execute/pure-1.c: Make functions static again.
Don't use attribute `noinline'.

From-SVN: r54767

22 years agomerge from src
Dave Brolley [Tue, 18 Jun 2002 21:58:44 +0000 (17:58 -0400)]
merge from src

From-SVN: r54766

22 years agoxtensa.h (FUNCTION_PROFILER): Respect flag_pic when generating the call to _mcount.
Bob Wilson [Tue, 18 Jun 2002 21:18:46 +0000 (21:18 +0000)]
xtensa.h (FUNCTION_PROFILER): Respect flag_pic when generating the call to _mcount.

        * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
        when generating the call to _mcount.
        (NO_PROFILE_COUNTERS): Define.

From-SVN: r54765

22 years agoconfigure: Remove garbage from previous commit.
Phil Edwards [Tue, 18 Jun 2002 20:41:47 +0000 (20:41 +0000)]
configure: Remove garbage from previous commit.

2002-06-18  Phil Edwards  <pme@gcc.gnu.org>

* configure:  Remove garbage from previous commit.

From-SVN: r54763

22 years agoprint-rtl.c (print_rtx): Adjust NOTE argument numbers for 2002-06-02 change.
Richard Henderson [Tue, 18 Jun 2002 20:12:13 +0000 (13:12 -0700)]
print-rtl.c (print_rtx): Adjust NOTE argument numbers for 2002-06-02 change.

        * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
        2002-06-02 change.

From-SVN: r54762

22 years agoconfigure: For in-source builds, make a subdir and re-exec there.
Phil Edwards [Tue, 18 Jun 2002 20:02:21 +0000 (20:02 +0000)]
configure: For in-source builds, make a subdir and re-exec there.

2002-06-18  Phil Edwards  <pme@gcc.gnu.org>

* configure:  For in-source builds, make a subdir and re-exec there.
* Makefile:  New file.  Pass targets through to build directory.
* .cvsignore:  No longer ignore "Makefile".

From-SVN: r54759

22 years agot-sh (MULTILIB_EXCEPTIONS): Set to ml.
J"orn Rennecke [Tue, 18 Jun 2002 19:56:54 +0000 (19:56 +0000)]
t-sh (MULTILIB_EXCEPTIONS): Set to ml.

* t-sh (MULTILIB_EXCEPTIONS): Set to ml.
config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
* config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
* config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.

From-SVN: r54758

22 years agoconfigure.host: Delete file.
Phil Edwards [Tue, 18 Jun 2002 19:07:12 +0000 (19:07 +0000)]
configure.host: Delete file.

2002-06-18  Phil Edwards  <pme@gcc.gnu.org>

* configure.host:  Delete file.
* configure.target:  More documentation.  Factor out common parts of
script into "intelligent" settings about defaults.  Remove redundancy.

* acinclude.m4:  Update comments.  Do not call configure.host.
(GLIBCPP_ENABLE_SYMVERS):  If disabled, do not bother checking for
libgcc_s.
* configure.in:  Slight reformatting, more comments.  Factor out
"config/" from all the directories.
* docs/html/17_intro/porting.texi:  Update and expand.
* testsuite/Makefile.am (AM_RUNTESTFLAGS):  Move empty setting
from configure.host.

* aclocal.m4, configure, docs/html/17_intro/porting.html,
testsuite/Makefile.in:  Regenerate.

From-SVN: r54757

22 years agosh-protos.h (sh_pr_interrupt): Declare.
J"orn Rennecke [Tue, 18 Jun 2002 19:03:18 +0000 (19:03 +0000)]
sh-protos.h (sh_pr_interrupt): Declare.

* sh-protos.h (sh_pr_interrupt): Declare.
* sh.c (sh_pr_interrupt): New function.
(print_operand, calc_live_regs, sh_expand_prologue): Use it.
(sh_hard_regno_rename_ok): Likewise.
* sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.

From-SVN: r54756

22 years agojavaprims.h: Updated class declaration list.
Tom Tromey [Tue, 18 Jun 2002 17:06:44 +0000 (17:06 +0000)]
javaprims.h: Updated class declaration list.

* gcj/javaprims.h: Updated class declaration list.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Removed
BasicMapEntry.java.
* java/util/BasicMapEntry.java: Removed.

From-SVN: r54753

22 years agonatPlainDatagramSocketImpl.cc (receive): Check bounds of argument to FD_SET.
Jeff Sturm [Tue, 18 Jun 2002 16:25:00 +0000 (16:25 +0000)]
natPlainDatagramSocketImpl.cc (receive): Check bounds of argument to FD_SET.

* java/net/natPlainDatagramSocketImpl.cc (receive):
Check bounds of argument to FD_SET.
(setOption): Throw exception if socket is closed.

* java/net/natPlainSocketImpl.cc (accept, read):
Check bounds of argument to FD_SET.
(setOption): Throw exception if socket is closed.

From-SVN: r54750

22 years agosemantics.c (begin_for_stmt): Push the 'for' scope before adding the FOR_STMT.
Jason Merrill [Tue, 18 Jun 2002 16:21:25 +0000 (12:21 -0400)]
semantics.c (begin_for_stmt): Push the 'for' scope before adding the FOR_STMT.

        * semantics.c (begin_for_stmt): Push the 'for' scope before
        adding the FOR_STMT.

From-SVN: r54749

22 years agortl.def (DEFINE_AUTOMATON): Add description of new options `time' and `v'.
Vladimir Makarov [Tue, 18 Jun 2002 16:18:23 +0000 (16:18 +0000)]
rtl.def (DEFINE_AUTOMATON): Add description of new options `time' and `v'.

2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>

* rtl.def (DEFINE_AUTOMATON): Add description of new options
`time' and `v'.  Fix incorrect description of option `w'.

* doc/md.texi: Ditto.

* genautomata.c (TIME_OPTION, V_OPTION): New macros.
(gen_automata_option): Process the new options.
(transform_2, transform_3): Initialize some variables.
(initiate_automaton_gen): Use the new macros.

From-SVN: r54748

22 years agoC++ ABI changes.
Jason Merrill [Tue, 18 Jun 2002 16:05:31 +0000 (12:05 -0400)]
C++ ABI changes.

        * class.c (build_base_field): Set DECL_PACKED.
        (layout_class_type): Don't use tail padding of PODs.
        * mangle.c (write_unqualified_name): Fix template conversion op
        mangling.

From-SVN: r54747

22 years agojavaprims.h: Updated class declaration list.
Tom Tromey [Tue, 18 Jun 2002 15:40:16 +0000 (15:40 +0000)]
javaprims.h: Updated class declaration list.

* gcj/javaprims.h: Updated class declaration list.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added
PropertyPermissionCollection.java.
* java/lang/Thread.java (group, name): Now package-private.
* java/lang/ThreadGroup.java: Re-merge with Classpath.
* java/util/AbstractList.java: Likewise.
* java/util/AbstractMap.java: Likewise.
* java/util/Calendar.java: Likewise.
* java/util/Collections.java: Likewise.
* java/util/HashMap.java: Likewise.
* java/util/Hashtable.java: Likewise.
* java/util/LinkedHashMap.java: Likewise.
* java/util/LinkedList.java: Likewise.
* java/util/List.java: Likewise.
* java/util/ListResourceBundle.java: Likewise.
* java/util/Map.java: Likewise.
* java/util/Observable.java: Likewise.
* java/util/Properties.java: Likewise.
* java/util/PropertyPermission.java: Likewise.
* java/util/PropertyPermissionCollection.java: Likewise.
* java/util/PropertyResourceBundle.java: Likewise.
* java/util/Random.java: Likewise.
* java/util/SimpleTimeZone.java: Likewise.
* java/util/StringTokenizer.java: Likewise.
* java/util/TimerTask.java: Likewise.
* java/util/TreeMap.java: Likewise.
* java/util/WeakHashMap.java: Likewise.
* java/util/jar/Attributes.java: Likewise.
* java/util/jar/JarException.java: Likewise.
* java/util/jar/Manifest.java: Likewise.

From-SVN: r54743

22 years ago* gcc.c-torture/execute/20020615-1.c: Fix typo in comment.
Hans-Peter Nilsson [Tue, 18 Jun 2002 15:35:36 +0000 (15:35 +0000)]
* gcc.c-torture/execute/20020615-1.c: Fix typo in comment.

From-SVN: r54741

22 years agomips-protos.h (mips_initial_elimination_offset): Declare.
Richard Sandiford [Tue, 18 Jun 2002 11:23:41 +0000 (11:23 +0000)]
mips-protos.h (mips_initial_elimination_offset): Declare.

* config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
(mips_set_return_address, mips_restore_gp): Declare.
* config/mips/mips.h (struct mips_frame_info): Move to mips.c
(current_frame_info): Remove.
(INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
* config/mips/mips.c: Remove uses of current_frame_info.
(struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
(struct machine_function): Add 'frame' and 'insns_len'.
(current_frame_info, zero_frame_info): Remove.
(mips_restore_gp, mips_set_return_address): New.
(mips_initial_elimination_offset): New.
* config/mips/mips.md (exception_receiver): Use mips_restore_gp.
(eh_return define_split): Use mips_set_return_address.

From-SVN: r54738

22 years agoDaily bump.
GCC Administrator [Tue, 18 Jun 2002 07:37:39 +0000 (07:37 +0000)]
Daily bump.

From-SVN: r54737

22 years agocpplib.c (dtable): Update.
Neil Booth [Tue, 18 Jun 2002 06:27:40 +0000 (06:27 +0000)]
cpplib.c (dtable): Update.

* cpplib.c (dtable): Update.
(end_directive): Decrement expansion prevention count.
Clear state.in_expression.
(prepare_directive_trad): Set state.in_expression.
Increment expansion prevention count.
* cpptrad.c (enum ls): New.
(_cpp_overlay_buffer): Set overlaid_buffer.
(_cpp_remove_overlay): Use overlaid_buffer.
(_cpp_read_logcial_line_trad): Update buffer when it might
have changed.
(scan_out_logical_line): Handle state transitions for assertions
and defined() in #if, and for funlike invocations including the
directive case.  Handle '<' and '>' as a quote mechanism in
#include.  Warn about unterminated macro invocations.
* cpphash.h (struct lexer_state): New member in_expression.
(struct cpp_reader): New member overlaid buffer.

From-SVN: r54732

22 years agoarit.c (do_31div, [...]): Mark prototype __always_inline__.
Hans-Peter Nilsson [Tue, 18 Jun 2002 02:55:25 +0000 (02:55 +0000)]
arit.c (do_31div, [...]): Mark prototype __always_inline__.

* config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
__always_inline__.

From-SVN: r54731