Roger Sayle [Tue, 24 Jun 2003 02:20:12 +0000 (02:20 +0000)]
builtins.c (expand_builtin): Use expand_builtin_pow to expand calls for pow...
* builtins.c (expand_builtin): Use expand_builtin_pow to expand
calls for pow, powf, powl and their __builtin_ variants.
(expand_builtin_pow): If the second argument is a constant
integer and compiling with -ffast-math, use expand_powi to
generate RTL if powi_cost is less than POWI_MAX_MULTS.
(powi_cost): New function to return the number of multiplications
necessary to evaluate an Nth power, for integer constant N.
(expand_powi): New function to expand the RTL for evaluating
the Nth power of a floating point value, for integer constant N.
* doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
* gcc.dg/builtins-24.c: New test case.
From-SVN: r68401
Jason Thorpe [Tue, 24 Jun 2003 01:32:33 +0000 (01:32 +0000)]
gcc_update (files_and_dependencies): Add gcc/testsuite/gcc.dg/cpp/_Pragma3.c depends on gcc/testsuite/gcc.dg/cpp/mi1c.h.
* gcc_update (files_and_dependencies): Add
gcc/testsuite/gcc.dg/cpp/_Pragma3.c depends on
gcc/testsuite/gcc.dg/cpp/mi1c.h.
From-SVN: r68398
GCC Administrator [Tue, 24 Jun 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r68396
Keith Seitz [Mon, 23 Jun 2003 22:16:07 +0000 (22:16 +0000)]
Makefile.tpl: Add maybe-configure-itcl to configure-gdb.
* Makefile.tpl: Add maybe-configure-itcl to configure-gdb.
* Makefile.in: Regenerate.
From-SVN: r68393
Jan Hubicka [Mon, 23 Jun 2003 21:11:44 +0000 (23:11 +0200)]
cgraph.c (cgraph_nodes_queue): Declare.
* cgraph.c (cgraph_nodes_queue): Declare.
(eq_node): Take identifier as p2.
(cgraph_node): Update htab_find_slot_with_hash call.
(cgraph_node_for_identifier): New.
(cgraph_mark_needed_node): Move here from cgraphunit.c.
* cgraph.h (cgraph_nodes_queue): Declare.
(cgraph_node_for_identifier): Declare.
* cgraphunit.c (cgraph_finalize_function): Collect entry points here
instead of in cgraph_finalize_compilation_unit; constructors and
destructors are entry points.
(cgraph_finalize_compilation_unit): Reorganize debug outout;
examine nested functions after lowerng; call collect_functions hook.
(cgraph_mark_local_functions): DECL_COMDAT functions are not local.
(cgraph_finalize_compilation_unit): Do not collect entry points.
* varasm.c: Include cgraph.h
(assemble_name): Mark referenced identifier as needed.
* cgraphunit.c (record_call_1): Use get_callee_fndecl.
From-SVN: r68390
Jakub Jelinek [Mon, 23 Jun 2003 20:52:14 +0000 (22:52 +0200)]
i386.c (x86_output_mi_thunk): Don't pass MEM to %P0, just SYMBOL_REF.
* config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
just SYMBOL_REF.
* config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
mode, as it requires pic register loaded.
* varasm.c (resolve_unique_section): Remove prototype. No longer
static.
* tree.h (resolve_unique_section): New prototype.
cp/
* method.c (thunk_labelno): New variable.
(make_alias_for_thunk): New function.
(use_thunk): Use it if defined ASM_OUTPUT_DEF. Put the thunk
into the same section as the function it is calling.
Include gt-cp-method.h.
* Make-lang.in (gt-cp-method.h): Depend on s-gtype.
(cp/method.o): Depend on gt-cp-method.h.
* config-lang.in (gtfiles): Add $(srcdir)/cp/method.c.
From-SVN: r68389
Nathanael Nerode [Mon, 23 Jun 2003 20:34:26 +0000 (20:34 +0000)]
Makefile.def: Introduce flags_to_pass.
* Makefile.def: Introduce flags_to_pass.
* Makefile.tpl: Generate BASE_FLAGS_TO_PASS using it.
* Makefile.in: Regenerate.
From-SVN: r68384
Benjamin Kosnik [Mon, 23 Jun 2003 20:31:31 +0000 (20:31 +0000)]
libstdc++-assign.txt: Update address.
2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/17_intro/libstdc++-assign.txt: Update address.
* testsuite/performance/ifstream_getline.cc: Fix.
From-SVN: r68382
Andreas Schwab [Mon, 23 Jun 2003 19:33:13 +0000 (19:33 +0000)]
re PR debug/9905 (Unhandled STMT_EXPR in loc_descriptor_from_tree)
PR debug/9905
* dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
recursing through first argument.
From-SVN: r68379
Jan Hubicka [Mon, 23 Jun 2003 17:46:26 +0000 (19:46 +0200)]
decl.c (register_dtor_fn): Mark cleanup as used.
* decl.c (register_dtor_fn): Mark cleanup as used.
* decl2.c (mark_vtable_entries): Skip nops.
* rtti.c (get_tinfo_ptr): Mark tinfo as used.
(build_dynamic_cast_1): Likewise.
(tinfo_base_init): Likewise.
(emit_tinfo_decl): Likewise.
From-SVN: r68377
Doug Gregor [Mon, 23 Jun 2003 16:18:53 +0000 (16:18 +0000)]
Types _D -> _Diff, _R -> _Ref
From-SVN: r68375
Kazu Hirata [Mon, 23 Jun 2003 16:11:56 +0000 (16:11 +0000)]
ChangeLog.1: Fix a typo.
* ChangeLog.1: Fix a typo.
* cfgrtl.c: Fix comment typos.
* dwarf2out.c: Likewise.
* expmed.c: Likewise.
* genrecog.c: Likewise.
* jump.c: Likewise.
* rtlanal.c: Likewise.
* ssa-dce.c: Likewise.
* toplev.c: Likewise.
From-SVN: r68374
Kazu Hirata [Mon, 23 Jun 2003 16:01:42 +0000 (16:01 +0000)]
extend.texi: Fix typos.
* doc/extend.texi: Fix typos.
* doc/md.texi: Likewise.
* doc/tm.texi: Likewise.
From-SVN: r68371
Kazu Hirata [Mon, 23 Jun 2003 15:27:37 +0000 (15:27 +0000)]
basic-block.h: Fix comment formatting.
* basic-block.h: Fix comment formatting.
* bt-load.c: Likewise.
* builtins.c: Likewise.
* c-common.c: Likewise.
* c-common.h: Likewise.
* c-format.c: Likewise.
* coverage.c: Likewise.
* cpplib.h: Likewise.
* cpppch.c: Likewise.
* dbxout.c: Likewise.
* diagnostic.c: Likewise.
* dwarf2out.c: Likewise.
* expr.c: Likewise.
* fold-const.c: Likewise.
* function.c: Likewise.
* gcc.c: Likewise.
* gcov-io.c: Likewise.
* gcov-io.h: Likewise.
* gcov.c: Likewise.
* profile.c: Likewise.
* real.h: Likewise.
* sched-deps.c: Likewise.
From-SVN: r68369
Gerald Pfeifer [Mon, 23 Jun 2003 15:09:15 +0000 (15:09 +0000)]
contrib.texi (Contributors): Add a note on testing and remove duplicates from testers list.
* doc/contrib.texi (Contributors): Add a note on testing and
remove duplicates from testers list.
From-SVN: r68367
Jakub Jelinek [Mon, 23 Jun 2003 14:52:00 +0000 (16:52 +0200)]
mangle.c (hash_type): val is the TREE_LIST itself, not a pointer to it.
* mangle.c (hash_type): val is the TREE_LIST itself, not a pointer
to it.
* g++.dg/opt/operator1.C: New test.
From-SVN: r68364
Nick Clifton [Mon, 23 Jun 2003 13:57:39 +0000 (13:57 +0000)]
(read_braced_string): Check for EOF. If encountered issue an error message.
From-SVN: r68363
Kazu Hirata [Mon, 23 Jun 2003 13:29:41 +0000 (13:29 +0000)]
* doc/invoke.texi: Document dump options, dT and dW.
From-SVN: r68361
Kazu Hirata [Mon, 23 Jun 2003 11:58:25 +0000 (11:58 +0000)]
genrecog.c (pred_table): Remove the entry for mode_independent_operand.
* genrecog.c (pred_table): Remove the entry for
mode_independent_operand.
* recog.c (next_insns_test_no_inequality): Remove.
(mode_independent_operand): Likewise.
* recog.h: Remove the prototype for mode_independent_operand.
From-SVN: r68360
Kazu Hirata [Mon, 23 Jun 2003 03:37:36 +0000 (03:37 +0000)]
h8300.c (output_simode_bld): Use rotxl.l to store into bit 0.
* config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
store into bit 0.
* config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
second alternative to set_znv.
(*extzv_1_r_inv_h8300hs): Likewise.
From-SVN: r68358
Hans-Peter Nilsson [Mon, 23 Jun 2003 01:13:35 +0000 (01:13 +0000)]
configure.in (in_tree_gas): Find out here whether GAS is ELF, set in_tree_gas_is_elf accordingly.
* configure.in (in_tree_gas): Find out here whether GAS is ELF,
set in_tree_gas_is_elf accordingly.
(in_tree_ld): Find out whether LD emulation is ELF, set
in_tree_ld_is_elf accordingly.
(gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
(gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
(gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
(gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
grepping gas/Makefile.
(gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
$in_tree_ld_is_elf instead of grepping ld/Makefile.
* configure: Regenerate.
From-SVN: r68356
Roger Sayle [Mon, 23 Jun 2003 00:52:24 +0000 (00:52 +0000)]
builtins.c (expand_builtin_mathfn_2): Use tree_cons to build up the stabilized argument list, not build_tree_list.
* builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
up the stabilized argument list, not build_tree_list.
(expand_builtin_strcpy): Construct new argument list manually
instead of using chainon to modify the original argument list.
(expand_builtin_stpcpy): Construct new argument list manually
instead of using copy_list and chainon.
(expand_builtin_sprintf): New function. Optimize calls to
sprintf when the format is "%s" or doesn't contain a '%'.
(expand_builtin): Expand BUILT_IN_SPRINTF using the new function
expand_builtin_sprintf.
* gcc.c-torture/execute/string-opt-16.c: New test case.
From-SVN: r68355
Hans-Peter Nilsson [Mon, 23 Jun 2003 00:42:54 +0000 (00:42 +0000)]
configure.in (noconfigdirs): Disable target-newlib and target-libgloss.
* configure.in (noconfigdirs) <cris-*-*>: Disable target-newlib
and target-libgloss.
<d30v-*-*, fr30-*-*, i960-*-*, m32r-*-*>: Disable gdb.
<h8300*-*-*>: Disable libf2c and ${libgcj}.
* configure: Regenerate.
From-SVN: r68354
GCC Administrator [Mon, 23 Jun 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r68352
Andreas Schwab [Sun, 22 Jun 2003 21:57:19 +0000 (21:57 +0000)]
* function.c (set_insn_locators): Mark as unused.
From-SVN: r68350
Neil Booth [Sun, 22 Jun 2003 20:21:35 +0000 (20:21 +0000)]
common.opt: Add -finline-limit.
* common.opt: Add -finline-limit.
* opts.c (common_handle_options): Handle it.
* opts.sh: Temporary kludge for -finline-limit.
* toplev.c (decode_f_option, independent_decode_option): Die.
(parse_options_and_default_flags): No independent_decode_option.
From-SVN: r68348
Paolo Carlini [Sun, 22 Jun 2003 18:37:10 +0000 (18:37 +0000)]
Nathan C.
2003-06-22 Paolo Carlini <pcarlini@unitus.it>
Nathan C. Myers <ncm-nospam@cantrip.org>
* include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
is now used only for filebuf, when _M_buf_unified is true.
epgtr() plays the role of _M_out_lim but it's only updated
upon overflow, underflow, uflow, seekoff/pos.
* include/bits/sstream.tcc (_M_underflow): New, implements
stringbuf::underflow and uflow.
(seekoff, seekpos): Tweak, use _M_update_egptr.
* include/std/std_sstream.h (str): Rewrote, deal correctly
with the new logic, in particular, when pptr() > egptr().
(_M_sync): When __testout && !__testin set all the get area
pointers to the current string end.
(_M_update_egptr): New, internal function updating egptr()
to the actual string end.
(_M_underflow): New, declare.
(underflow): Dispatch to _M_underflow(false).
(uflow): Dispatch to _M_underflow(true).
* include/bits/sstream.tcc (pbackfail, overflow, seekoff,
seekpos): Use only the documented derivation interface to
basic_streambuf (gptr(), setg(), etc.) to work right with
user specializations.
* include/std/std_sstream.h (str, _M_sync): Likewise.
From-SVN: r68347
Andreas Jaeger [Sun, 22 Jun 2003 17:46:38 +0000 (19:46 +0200)]
* calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
From-SVN: r68346
Kazu Hirata [Sun, 22 Jun 2003 17:36:11 +0000 (17:36 +0000)]
* doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
From-SVN: r68345
Andreas Schwab [Sun, 22 Jun 2003 17:26:49 +0000 (17:26 +0000)]
* doc/invoke.texi: Remove leading `-' from options in index.
From-SVN: r68343
Kazu Hirata [Sun, 22 Jun 2003 16:49:12 +0000 (16:49 +0000)]
* bt-load.c: Follow spelling conventions.
From-SVN: r68342
Kazu Hirata [Sun, 22 Jun 2003 16:40:45 +0000 (16:40 +0000)]
* expr.c (emit_move_insn_1): Fix a comment typo.
From-SVN: r68341
Kazu Hirata [Sun, 22 Jun 2003 16:29:39 +0000 (16:29 +0000)]
* doc/invoke.texi: Alphabetize dump options.
From-SVN: r68339
Kazu Hirata [Sun, 22 Jun 2003 16:18:26 +0000 (16:18 +0000)]
* doc/invoke.texi: Remove a duplicate -dk.
From-SVN: r68338
Kazu Hirata [Sun, 22 Jun 2003 16:05:53 +0000 (16:05 +0000)]
* doc/invoke.texi: Update dump file names.
From-SVN: r68336
Zack Weinberg [Sun, 22 Jun 2003 15:59:49 +0000 (15:59 +0000)]
safe-ctype.h (HC_UNKNOWN, [...]): Rename to HOST_CHARSET_UNKNOWN...
include:
* safe-ctype.h (HC_UNKNOWN, HC_ASCII, HC_EBCDIC): Rename to
HOST_CHARSET_UNKNOWN, HOST_CHARSET_ASCII, HOST_CHARSET_EBCDIC
respectively.
libiberty:
* safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
not HC_ASCII and HC_EBCDIC.
Add documentation in form expected by gather-docs.
* hex.c: Use HOST_CHARSET, not hand-coded check of character set.
* Makefile.in, functions.texi: Regenerate.
gcc:
* config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
From-SVN: r68335
Kazu Hirata [Sun, 22 Jun 2003 15:11:07 +0000 (15:11 +0000)]
* doc/rtl.texi: Fix the @findex for pre_modify.
From-SVN: r68333
Andreas Jaeger [Sun, 22 Jun 2003 15:07:31 +0000 (17:07 +0200)]
Convert to ISO C90.
From-SVN: r68332
Andreas Jaeger [Sun, 22 Jun 2003 15:03:27 +0000 (17:03 +0200)]
caller-save.c: Convert to ISO C90.
* caller-save.c: Convert to ISO C90.
* calls.c: Likewise.
* cfg.c: Likewise.
* cfganal.c: Likewise.
* cfgbuild.c: Likewise.
* cfgcleanup.c: Likewise.
* cfghooks.c: Likewise.
* cfglayout.c: Likewise.
* cfglayout.h: Likewise.
* cfgloop.c: Likewise.
* cfgloop.h: Likewise.
* cfgloopanal.c: Likewise.
* cfgloopmainip.c: Likewise.
* cfgrtl.c: Likewise.
From-SVN: r68331
Richard Earnshaw [Sun, 22 Jun 2003 14:06:33 +0000 (14:06 +0000)]
arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting 64-bit alignment.
* arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
64-bit alignment.
From-SVN: r68330
Richard Earnshaw [Sun, 22 Jun 2003 13:54:38 +0000 (13:54 +0000)]
arm.md (all call_value patterns): Remove register constraints on value operand.
* arm.md (all call_value patterns): Remove register constraints on
value operand.
From-SVN: r68329
Neil Booth [Sun, 22 Jun 2003 13:44:40 +0000 (13:44 +0000)]
common.opt: More -f switches.
* common.opt: More -f switches.
* opts.c (common_handle_options): Handle them.
* toplev.c (time_report): Make extern.
(f_options): USe flag_dummy.
(decode_f_option): No need to use f_options now.
* toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
From-SVN: r68328
Andreas Jaeger [Sun, 22 Jun 2003 13:41:26 +0000 (15:41 +0200)]
c-lex.c: Convert to ISO C90.
* c-lex.c: Convert to ISO C90.
* c-objc-common.c: Likewise.
* c-opts.c: Likewise.
* c-pch.c: Likewise.
* c-ppoutput.c: Likewise.
* c-pragma.h: Likewise.
* c-pretty-print.c: Likewise.
* c-pretty-print.h: Likewise.
* c-semantics.c: Likewise.
* c-tree.h: Likewise.
* c-typeck.c: Likewise.
From-SVN: r68327
Andreas Jaeger [Sun, 22 Jun 2003 12:55:44 +0000 (14:55 +0200)]
* c-lang.c: Convert to ISO C90.
From-SVN: r68326
Neil Booth [Sun, 22 Jun 2003 09:04:57 +0000 (09:04 +0000)]
opts.c (find_opt): Fix to always guarantee a find of a switch with joined parameter.
* opts.c (find_opt): Fix to always guarantee a find of a
switch with joined parameter.
* opts.h (struct cl_option): New member back_chain.
* opts.sh: Update to calculate and add back_chain member.
From-SVN: r68324
Gabriel Dos Reis [Sun, 22 Jun 2003 08:05:39 +0000 (08:05 +0000)]
diagnostic.h (output_host_wide_integer): Declare.
* diagnostic.h (output_host_wide_integer): Declare.
* diagnostic.c (output_long_long_decicaml): New function.
(output_host_wide_integer): Likewise.
(output_format): Use them. Handle "%ll" and "%w".
From-SVN: r68323
Jason Thorpe [Sun, 22 Jun 2003 04:53:22 +0000 (04:53 +0000)]
* config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
From-SVN: r68322
GCC Administrator [Sun, 22 Jun 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r68320
Zack Weinberg [Sat, 21 Jun 2003 23:22:30 +0000 (23:22 +0000)]
safe-ctype.h (HC_UNKNOWN, [...]): New #defines.
include:
* safe-ctype.h (HC_UNKNOWN, HC_ASCII, HC_EBCDIC, HOST_CHARSET):
New #defines.
libiberty:
* safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
for charset determination.
gcc:
* aclocal.m4 (gcc_AC_C_CHARSET): Delete.
* configure.in: Don't use gcc_AC_C_CHARSET.
* configure, config.in: Regenerate.
* config/i370/i370.c, config/i370/i370.h: Use
(HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
instead of HOST_EBCDIC or !HOST_EBCDIC. Clarify comments a tad.
From-SVN: r68317
Neil Booth [Sat, 21 Jun 2003 20:28:18 +0000 (20:28 +0000)]
Makefile.in: Update.
* Makefile.in: Update.
* common.opt: New switches.
* opts.c: Include diagnostic.h.
(common_handle_option): Handle new switches.
* toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
flag_if_conversion2, flag_delete_null_pointer_checks,
flag_rerun_cse_after_loop): Make extern.
(flag_dummy): New.
(f_options): Update to use flag_dummy for moved options.
(decode_f_option): Some switches moved to opts.c.
* toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
flag_if_conversion2, flag_delete_null_pointer_checks,
flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
flag_tracer, flag_thread_jumps, flag_unroll_loops,
flag_unroll_all_loops, flag_unswitch_loops): New.
f:
* lang.opt: Add -fpreprocessed.
* top.c (ffe_handle_option): Handle it.
From-SVN: r68315
Gabriel Dos Reis [Sat, 21 Jun 2003 17:39:58 +0000 (17:39 +0000)]
re PR c++/10784 (Warning about choosing custom operator over copy constructor cannot be turned off (and it's useless in the first place))
cp/
PR c++/10784
* call.c (joust): Warn about choosing conversion sequence only if
-Wconversion.
testsuite/
* g++.old-deja/g++.benjamin/16077.C: Add -Wconversion option.
* g++.old-deja/g++.other/conv7.C: Likewise
* g++.old-deja/g++.other/overcnv2.C: Likewise.
* g++.old-deja/g++.other/overload14.C: Likewise.
From-SVN: r68312
Michael Koch [Sat, 21 Jun 2003 17:06:56 +0000 (17:06 +0000)]
2003-06-21 Michael Koch <konqueror@gmx.de>
* java/io/File.java
(static): Load javaio lib if existing (only in classpath).
(File): Revised documentation to show the correct argument name.
(createTempFile): Partly merged with classpath.
(compareTo): Simplified.
(lastModified): Throw exception if time < 0.
(deleteOnExit): Revised documentation.
From-SVN: r68310
Gabriel Dos Reis [Sat, 21 Jun 2003 16:43:44 +0000 (16:43 +0000)]
PC c++/10864
PC c++/10864
* call.c (op_error): Tidy.
* error.c (dump_expr): Properly format 'T()' when T is an
aggregate type.
From-SVN: r68309
Neil Booth [Sat, 21 Jun 2003 15:59:31 +0000 (15:59 +0000)]
Makefile.in: Update.
* Makefile.in: Update.
* c-opts.c (c_common_handle_option): Don't return -1.
* common.opt: New switches.
* opts.c: Include rtl.h, ggc.h and output.h.
(find_opt): Only stop searching when input switch compares
less than the stored switch. Continue searching if greater.
(handle_option): No need to handle negative return values.
(common_handle_option): Handle new switches.
(set_fast_math_flags, fast_math_flags_set_p): New.
* toplev.c (set_fast_math_flags, fast_math_flags_set_p):
Move to opts.c.
(decode_f_option): Some switches moved to opts.c.
(parse_options_and_default_flags): No need to cater for negative
return values.
f:
* top.c (ffe_handle_option): No need to return -1 any more.
From-SVN: r68307
Michael Koch [Sat, 21 Jun 2003 14:02:10 +0000 (14:02 +0000)]
PlainSocketImpl.java: Reformatted.
2003-06-21 Michael Koch <konqueror@gmx.de>
* java/net/PlainSocketImpl.java:
Reformatted.
(PlainSocketImpl): Merged class documentaion with classpath.
(in): Moved.
(out): Moved.
(PlainSocketImpl): New empty constructor.
(finalize): Moved.
(setOption): Merged documentation from classpath.
(getOption): Likewise.
(create): Likewise.
(connect): Likewise.
(bind): Likewise.
(listen): Likewise.
(accept): Likewise.
(available): Likewise.
(close): Likewise.
(read): Likewise.
(write): Likewise.
(getInputStream): Made synchronozed to get sure that only one stream
object can be created for this socket, merged documentation from
classpath.
(getOutputStream): Likewise.
From-SVN: r68305
Michael Koch [Sat, 21 Jun 2003 13:24:13 +0000 (13:24 +0000)]
PlainSocketImpl.java: Reformatting.
2003-06-21 Michael Koch <konqueror@gmx.de>
* java/net/PlainSocketImpl.java:
Reformatting.
(static): New implicit method.
(read): Made package private.
(write): Likewise.
From-SVN: r68304
Gabriel Dos Reis [Sat, 21 Jun 2003 13:09:05 +0000 (13:09 +0000)]
re PR c++/10915 (a not-useful non-avoidable warning: conversion to a reference to the same type will never use a type conversion operator)
testsuite/
* g++.old-deja/g++.jason/conversion5.C: Adjust option.
* g++.old-deja/g++.bugs/900215_01.C: Likewise.
cp/
PR c++/10915
* decl.c (grok_op_properties): Warn possible confusing conversion
only if -Wconversion.
From-SVN: r68303
Michael Koch [Sat, 21 Jun 2003 12:49:39 +0000 (12:49 +0000)]
SimpleTimeZone.java: Removed unneeded import, reformatting.
2003-06-21 Michael Koch <konqueror@gmx.de>
* java/util/SimpleTimeZone.java:
Removed unneeded import, reformatting.
From-SVN: r68301
Michael Koch [Sat, 21 Jun 2003 12:42:26 +0000 (12:42 +0000)]
DateFormat.java, [...]: New versions from classpath.
2003-06-21 Michael Koch <konqueror@gmx.de>
* java/text/DateFormat.java,
java/text/SimpleDateFormat.java,
java/util/Locale.java:
New versions from classpath.
From-SVN: r68300
Michael Koch [Sat, 21 Jun 2003 12:02:11 +0000 (12:02 +0000)]
SpinnerModel.java: New file from classpath.
2003-06-21 Michael Koch <konqueror@gmx.de>
* javax/swing/SpinnerModel.java:
New file from classpath.
* javax/swing/border/LineBorder.java,
javax/swing/border/SoftBevelBorder.java,
javax/swing/plaf/BorderUIResource.java,
javax/swing/plaf/basic/BasicBorders.java:
New versions from classpath.
* javax/swing/plaf/basic/doc-files/BasicBorders.MenuBarBorder-1.png,
javax/swing/plaf/basic/doc-files/BasicBorders.RadioButtonBorder-1.png,
javax/swing/plaf/basic/doc-files/BasicBorders.SplitPaneBorder-1.png,
javax/swing/plaf/basic/doc-files/BasicBorders.SplitPaneBorder-2.png,
javax/swing/plaf/basic/doc-files/BasicBorders.SplitPaneDividerBorder-1.png,
javax/swing/plaf/basic/doc-files/BasicBorders.ToggleButtonBorder-1.png:
New binary files from classpath.
From-SVN: r68299
Jan Hubicka [Sat, 21 Jun 2003 11:51:36 +0000 (13:51 +0200)]
* i386.c (ix86_va_arg): Fix allocation of temporary slot.
From-SVN: r68298
Kazu Hirata [Sat, 21 Jun 2003 11:32:54 +0000 (11:32 +0000)]
h8300-protos.h: Add a prototype for same_cmp_preceding_p.
* config/h8300/h8300-protos.h: Add a prototype for
same_cmp_preceding_p.
* config/h8300/h8300.c (same_cmp_preceding): New.
* config/h8300/h8300.md: Extend peephole2's that transform
compare:SI into shorter sequences so that they can deal with
signed comparisons.
From-SVN: r68296
Michael Koch [Sat, 21 Jun 2003 10:31:55 +0000 (10:31 +0000)]
LogRecord.java, [...]: New files from classpath.
2003-06-21 Michael Koch <konqueror@gmx.de>
* java/util/logging/LogRecord.java,
java/util/logging/Logger.java,
java/util/logging/SocketHandler.java,
java/util/logging/SimpleFormatter.java,
java/util/logging/Formatter.java,
java/util/logging/ErrorManager.java,
java/util/logging/Handler.java,
java/util/logging/FileHandler.java,
java/util/logging/LogManager.java,
java/util/logging/Level.java,
java/util/logging/ConsoleHandler.java,
java/util/logging/StreamHandler.java,
java/util/logging/LoggingPermission.java,
java/util/logging/Filter.java,
java/util/logging/MemoryHandler.java,
java/util/logging/XMLFormatter.java:
New files from classpath.
From-SVN: r68295
Gerald Pfeifer [Sat, 21 Jun 2003 08:26:29 +0000 (10:26 +0200)]
contrib.texi (Contributors): Use Windows instead of Win32.
* doc/contrib.texi (Contributors): Use Windows instead of Win32.
Update Andreas Jaeger's entry.
Merge the two entries of Kaveh Ghazi, David Edelsohn, and
Loren J. Rittle.
From-SVN: r68293
Nathanael Nerode [Sat, 21 Jun 2003 05:20:05 +0000 (05:20 +0000)]
* mkconfig.sh: Add multiple inclusion guards to generated headers.
From-SVN: r68292
GCC Administrator [Sat, 21 Jun 2003 00:16:09 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r68290
Doug Gregor [Fri, 20 Jun 2003 23:40:11 +0000 (23:40 +0000)]
Testsuite corrections
From-SVN: r68288
Neil Booth [Fri, 20 Jun 2003 22:56:36 +0000 (22:56 +0000)]
c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
* c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
* common.opt: Add remaining -W options and -g.
* diagnostic.c (warnings_are_errors): Remove.
* flags.h: Make most warning flags boolean.
* opts.c (common_handle_option): Handle remaining -W options, and -g.
Move many warning flags from toplev.c, making them boolean.
* toplev.c: Remove many warning flags.
(decode_W_option): Remove.
(decode_g_option): Make extern. Error on unknown switch.
(lang_independent_W_options): Use warn_dummy.
(independent_decode_option): Just handle -f switches now.
* toplev.h (decode_g_option): New.
From-SVN: r68287
Doug Gregor [Fri, 20 Jun 2003 22:12:18 +0000 (22:12 +0000)]
fix basic_string::replace for integral types
From-SVN: r68286
Aldy Hernandez [Fri, 20 Jun 2003 20:16:24 +0000 (20:16 +0000)]
rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for vectors.
2003-06-20 Aldy Hernandez <aldyh@redhat.com>
PR/11092
* config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
vectors.
From-SVN: r68284
Aldy Hernandez [Fri, 20 Jun 2003 20:16:17 +0000 (20:16 +0000)]
rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for vectors.
2003-06-20 Aldy Hernandez <aldyh@redhat.com>
PR/11092
* config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
vectors.
[[Split portion of a mixed commit.]]
From-SVN: r68283.2
Kelley Cook [Fri, 20 Jun 2003 20:07:51 +0000 (20:07 +0000)]
* opts.sh: Tweak awk script for portability.
From-SVN: r68282
Mark Mitchell [Fri, 20 Jun 2003 19:55:29 +0000 (19:55 +0000)]
re PR c++/10888 (inlining failure for allocate in ~vector())
PR c++/10888
* tree-inline.c (expand_call_inline): Do not warn about failing to
inline functions declared in system headers.
* doc/invoke.texi (-Winline): Expand on documentation.
PR c++/10888
* g++.dg/warn/Winline-3.C: New test.
From-SVN: r68281
Richard Henderson [Fri, 20 Jun 2003 19:37:17 +0000 (12:37 -0700)]
alpha.c (alpha_file_start): Disable file_start_file_directive for ELF and not MDEBUG.
* config/alpha/alpha.c (alpha_file_start): Disable
file_start_file_directive for ELF and not MDEBUG.
From-SVN: r68280
J"orn Rennecke [Fri, 20 Jun 2003 19:28:13 +0000 (19:28 +0000)]
* sh.h (ROUND_TYPE_ALIGN): Remove.
From-SVN: r68279
Mark Mitchell [Fri, 20 Jun 2003 19:11:07 +0000 (19:11 +0000)]
target-supports.exp (check_alias_available): Make the test program acceptable to the Solaris assembler.
* lib/target-supports.exp (check_alias_available): Make the test
program acceptable to the Solaris assembler.
From-SVN: r68277
Mark Mitchell [Fri, 20 Jun 2003 18:55:47 +0000 (18:55 +0000)]
re PR c++/10749 (triple nested template classes in namespace need to qualify ns)
PR c++/10749
* parser.c (cp_parser_class_head): See through dependent names
when parsing a class-head.
PR c++/10749
* g++.dg/template/memclass2.C: New test.
From-SVN: r68276
Richard Henderson [Fri, 20 Jun 2003 17:30:05 +0000 (10:30 -0700)]
hooks.c (hook_int_void_no_regs): Rename from hook_reg_class_void_no_regs; change return type.
* hooks.c (hook_int_void_no_regs): Rename from
hook_reg_class_void_no_regs; change return type.
* hooks.h: Update.
* target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
* target.h (branch_target_register_class): Change return type to int.
Add documentation.
* config/sh/sh.c (sh_target_reg_class): Change return type.
* doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
From-SVN: r68275
Andreas Tobler [Fri, 20 Jun 2003 16:36:09 +0000 (18:36 +0200)]
c-format.c: Change _Bool to bool reverting part of the last patch.
2003-06-20 Andreas Tobler <toa@pop.agri.ch>
* c-format.c: Change _Bool to bool reverting part of the last
patch.
From-SVN: r68273
Mark Mitchell [Fri, 20 Jun 2003 16:10:13 +0000 (16:10 +0000)]
gcc-dg.exp (dg-xfail-if): Do not process conditional xfail data for non-matching targets.
* lib/gcc-dg.exp (dg-xfail-if): Do not process conditional xfail
data for non-matching targets.
* gcc.c-torture/compile/simd-5.c: Fix typo in conditional xfail.
Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>
From-SVN: r68272
Mark Mitchell [Fri, 20 Jun 2003 15:44:25 +0000 (15:44 +0000)]
re PR c++/10845 (template member function (getting a nested template as parameter) cannot be called anymore if another unrelated template member function is defined.)
PR c++/10845
* pt.c (try_class_unification): Correct handling of member class
templates.
* semantics.c (genrtl_finish_function): Adjust
expand_function_end call.
From-SVN: r68269
Benjamin Kosnik [Fri, 20 Jun 2003 15:26:23 +0000 (15:26 +0000)]
testsuite_performance.h (resource_counter): Don't use mallinfo at the moment.
2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/testsuite_performance.h (resource_counter): Don't use
mallinfo at the moment.
From-SVN: r68268
John David Anglin [Fri, 20 Jun 2003 14:08:35 +0000 (14:08 +0000)]
som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to strip name encoding.
* som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
strip name encoding.
From-SVN: r68267
Rainer Orth [Fri, 20 Jun 2003 13:59:31 +0000 (13:59 +0000)]
re PR driver/9362 (solaris 'as' dies when fed .s and "-gstabs")
* configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
* configure: Regenerate.
Fixes PR driver/9362.
From-SVN: r68266
Richard Kenner [Fri, 20 Jun 2003 13:24:55 +0000 (13:24 +0000)]
* config/alpha/alpha.c (alpha_file_start): Fix typo.
From-SVN: r68264
Rainer Orth [Fri, 20 Jun 2003 12:16:26 +0000 (12:16 +0000)]
mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg to ASM_OUTPUT_SOURCE_LINE.
* config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
to ASM_OUTPUT_SOURCE_LINE.
From-SVN: r68262
Michael Koch [Fri, 20 Jun 2003 12:13:19 +0000 (12:13 +0000)]
2003-06-20 Michael Koch <konqueror@gmx.de>
* java/io/ObjectStreamField.java
(unshared): new member variable.
(ObjectStreamField): New constructor.
(isUnshared): New method.
From-SVN: r68261
Michael Koch [Fri, 20 Jun 2003 12:07:22 +0000 (12:07 +0000)]
2003-06-20 Michael Koch <konqueror@gmx.de>
* java/net/URLStreamHandler.java
(hostsEqual): Rewritten.
From-SVN: r68260
Michael Koch [Fri, 20 Jun 2003 12:01:54 +0000 (12:01 +0000)]
MappedByteFileBuffer.java, [...]: Removed
2003-06-20 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/MappedByteFileBuffer.java,
gnu/java/nio/natMappedByteFileBuffer.cc:
Removed
* java/nio/MappedByteBufferImpl.java:
New file.
* gnu/java/nio/FileChannelImpl.java:
Use MappedByteBufferImpl instead of MappedByteFileBuffer.
* Makefile.am
(ordinary_java_source_files): Removed
gnu/java/nio/MappedByteFileBuffer.java and added
java/nio/MappedByteBufferImpl.java.
(nat_source_files): Removed gnu/java/nio/natMappedByteFileBuffer.cc
* Makefile.in: Regenerated.
From-SVN: r68259
Daniel Egger [Fri, 20 Jun 2003 11:18:03 +0000 (11:18 +0000)]
install.texi (Building): Correct and improve statement about parallel builds.
* doc/install.texi (Building): Correct and improve statement
about parallel builds.
Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
From-SVN: r68257
Andreas Jaeger [Fri, 20 Jun 2003 10:00:22 +0000 (12:00 +0200)]
c-common.c: Change _Bool to bool reverting part of the last patch.
* c-common.c: Change _Bool to bool reverting part of the last
patch.
From-SVN: r68256
Nathan Sidwell [Fri, 20 Jun 2003 09:08:23 +0000 (09:08 +0000)]
tree.h (expand_function_end): Remove all parameters.
* tree.h (expand_function_end): Remove all parameters.
* function.c (expand_function_end): Remove all parameters.
Use input_location. Never expand_end_bindings.
* c-decl.c (c_expand_body_1): Adjust expand_function_end call.
* coverage.c (create_coverage): Likewise.
* ada/utils.c (end_subprog_body): Adjust expand_function_end
call.
* cp/semantics.c (genrtl_finish_function): Adjust
expand_function_end call.
* f/com.c (finish_function): Adjust expand_function_end call.
* java/class.c (push_class): Use a location_t to save place.
(emit_register_classes): Set input_location. Adjust
expand_function_end call.
* java/resource.c (write_resource_constructor): Likewise.
* java/decl.c (end_java_method): Adjust expand_function_end call.
* java/parse.y (source_end_java_method): Likewise.
* treelang/treetree.c (tree_code_create_function_wrapup): Adjust
expand_function_end call.
From-SVN: r68255
Matthias Klose [Fri, 20 Jun 2003 08:10:54 +0000 (08:10 +0000)]
configure.host: Set try_cpu to target_cpu for existing baseline files.
2003-06-20 Matthias Klose <doko@debian.org>
* configure.host: Set try_cpu to target_cpu for existing
baseline files.
From-SVN: r68254
Nick Clifton [Fri, 20 Jun 2003 08:08:20 +0000 (08:08 +0000)]
(ARM Built-in Functions): New node.
(ARM Built-in Functions): New node. Document ARM builtin functions for iWMMXt
support.
From-SVN: r68252
Eric Botcazou [Fri, 20 Jun 2003 08:00:02 +0000 (10:00 +0200)]
install.texi (--with-gnu-as): Mention SPARC/Solaris and SPARC64/Solaris as platforms where --with-gnu-as...
* doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
(--with-as): Add @anchor.
(--with-gnu-ld): Fix typo.
(--with-ld): Add @uref to --with-as.
From-SVN: r68249
Zack Weinberg [Fri, 20 Jun 2003 06:41:12 +0000 (06:41 +0000)]
tm.texi: Uniformly use @defmac for macros, rather than @table items.
* doc/tm.texi: Uniformly use @defmac for macros, rather than
@table items. Minor formatting and editorial corrections.
From-SVN: r68248
Mark Mitchell [Fri, 20 Jun 2003 05:52:43 +0000 (05:52 +0000)]
re PR c++/10939 (ICE with templated code)
PR c++/10939
* pt.c (tsubst_decl): Do not try to substitute into non-dependent
functions.
(value_dependent_expression_p): Correct logic for FUNCTION_DECLs.
PR c++/10939
* g++.dg/template/func1.C: New test.
From-SVN: r68244
Neil Booth [Fri, 20 Jun 2003 05:51:13 +0000 (05:51 +0000)]
* line-map.c, line-map.h: Convert to ISO prototypes.
From-SVN: r68242
Mark Mitchell [Fri, 20 Jun 2003 02:40:37 +0000 (02:40 +0000)]
re PR c++/9649 (ICE in finish_member_declaration at cp/semantics.c:1850 when redeclaring a static member variable)
PR c++/9649
* cp-tree.h (pushdecl_class_level): Change prototype.
(push_class_level_binding): Likewise.
* decl.c (add_binding): Reject duplicate static data members.
(pushdecl_class_level): Return a value indicating whether or not
the binding was valid.
(push_class_level_binding): Likewise.
* semantics.c (finish_member_declaration): Don't keep invalid
declarations.
PR c++/9649
* g++.dg/template/static4.C: New test.
* g++.old-deja/g++.other/anon7.C: Remove spurious error messages.
From-SVN: r68240
Mark Mitchell [Fri, 20 Jun 2003 00:48:44 +0000 (00:48 +0000)]
re PR middle-end/11041 (ICE: const myclass &x = *x; (when operator*() defined))
PR c++/11041
* call.c (initialize_reference): Do not use cp_finish_decl to emit
temporary variables.
* cp-tree.h (static_aggregates): Declare.
(pushdecl_top_level_and_finish): Likewise.
* decl.c (pushdecl_top_level_1): New function.
(pushdecl_top_level): Use it.
(pushdecl_top_level_and_finish): New function.
(initialize_local_var): Remove redundant code.
(cp_finish_decl): Remove support for RESULT_DECLs. Don't check
building_stmt_tree.
* decl.h (static_aggregates): Remove.
* decl2.c (get_guard): Use pushdecl_top_level_and_finish.
* rtti.c (get_tinfo_decl): Use pushdecl_top_level_and_finish.
(tinfo_base_init): Likewise.
PR c++/11041
* g++.dg/init/ref7.C: New test.
From-SVN: r68236