OSDN Git Service

pf3gnuchains/gcc-fork.git
21 years ago PR c++/10471
mmitchel [Thu, 24 Apr 2003 05:54:46 +0000 (05:54 +0000)]
PR c++/10471
* call.c (build_cxx_call): Robustify.

PR c++/10471
* g++.dg/template/defarg2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66032 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR opt/8300
rth [Thu, 24 Apr 2003 04:32:58 +0000 (04:32 +0000)]
PR opt/8300
* toplev.c (rest_of_compilation): Delay no_new_pseudos until
after initialize_uninitialized_subregs; update reg info assuming
new pseudos were created.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66030 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Thu, 24 Apr 2003 00:17:06 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66026 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
neil [Wed, 23 Apr 2003 22:44:06 +0000 (22:44 +0000)]
* Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
* c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
(lex_string): Take cpp_string with full spelling.
(cb_ident): Update.
(c_lex): Update diagnostics.
* cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
(create_literal): New.
(lex_string): Unterminated literals have type CPP_OTHER.
(_cpp_lex_direct): Update calls to lex_string.  Use create_literal
for CPP_OTHER.
(cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
(_cpp_equiv_tokens, cpp_interpret_charconst): Update.
* cpplib.c (parse_include, do_line, do_linemarker,
destringize_and_run): Update for token storing full spelling.
* cpplib.h: Update token spelling types.
* cppmacro.c (stringify_arg, check_trad_stringification):
Update for token storing full spelling.
cp:
* Make-lang.in (lex.o): Remove mbchar.h.
* lex.c (MULTIBYTE_CHARS): Lose.
* parser.c (cp_lexer_get_preprocessor_token): CPP_OTHER handled
in c-lex.c.
testsuite:
* gcc.dg/cpp/include2.c: Update.
* gcc.dg/cpp/multiline-2.c: New.
* gcc.dg/cpp/multiline.c: Update.
* gcc.dg/cpp/strify2.c: Update.
* gcc.dg/cpp/trad/literals-2.c: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66019 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-23 Paolo Carlini <pcarlini@unitus.it>
paolo [Wed, 23 Apr 2003 22:34:51 +0000 (22:34 +0000)]
2003-04-23  Paolo Carlini  <pcarlini@unitus.it>

* testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
belongs to basic_filebuf.
* testsuite/27_io/basic_fstream/3.cc: Likewise.
* testsuite/27_io/basic_ifstream/3.cc: Likewise.
* testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
instantiation (now belongs to basic_filebuf).
* testsuite/27_io/basic_iostream/3.cc: Likewise.
* testsuite/27_io/basic_istream/3.cc: Likewise.
* testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
_S_pback_size now belongs to basic_filebuf.
* testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
instantiation (now belongs to basic_filebuf).
* testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
belongs to basic_filebuf.
* testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
instantiation (now belongs to basic_filebuf).
* testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
_S_pback_size now belongs to basic_filebuf.
* testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
instantiation (now belongs to basic_filebuf).
* testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
to basic_filebuf.
* testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
instantiation (now belongs to basic_filebuf).
* testsuite/27_io/basic_stringstream/3.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66018 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Wed, 23 Apr 2003 22:31:44 +0000 (22:31 +0000)]
2003-04-23  Benjamin Kosnik  <bkoz@redhat.com>

* configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
* configure: Regenerated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66017 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * g++.dg/other/packed1.C: XFAIL hppa*-*-*.
danglin [Wed, 23 Apr 2003 21:42:14 +0000 (21:42 +0000)]
* g++.dg/other/packed1.C: XFAIL hppa*-*-*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66012 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-23 Benjamin Kosnik <bkoz@belmont.constant.com>
bkoz [Wed, 23 Apr 2003 19:30:33 +0000 (19:30 +0000)]
2003-04-23  Benjamin Kosnik  <bkoz@belmont.constant.com>

* config/locale/generic/c_locale.h (__convert_from_v): Use
attribute unused.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66009 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * resolve.cc (_Jv_PrepareClass): Round size up to alignment
tromey [Wed, 23 Apr 2003 19:09:56 +0000 (19:09 +0000)]
* resolve.cc (_Jv_PrepareClass): Round size up to alignment
required by this object.  Search superclasses to find required
alignment.
(get_alignment_from_class): Use alignment of type as it appears
in a struct.
(ALIGNOF): New macro.
(struct aligner): New helper structure.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66008 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * g++.dg/parse/typedef1.C: Tweak after fix for PR 10428.
mmitchel [Wed, 23 Apr 2003 18:28:31 +0000 (18:28 +0000)]
* g++.dg/parse/typedef1.C: Tweak after fix for PR 10428.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66006 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
uweigand [Wed, 23 Apr 2003 17:13:11 +0000 (17:13 +0000)]
* config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66002 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago* arm.h (TARGET_OPTIONS): Add value field.
rearnsha [Wed, 23 Apr 2003 16:39:30 +0000 (16:39 +0000)]
* arm.h (TARGET_OPTIONS): Add value field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65999 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR c++/9847
mmitchel [Wed, 23 Apr 2003 16:27:27 +0000 (16:27 +0000)]
PR c++/9847
* cp-tree.h (duplicate_tag_error): Remove.
* class.c (duplicate_tag_error): Remove.
* semantics.c (begin_class_definition): Return immediately for a
duplicate class definition.

PR c++/10451
* decl.c (grokdeclarator): Correct logic for "mutable" errors.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65998 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/extend.texi: Remove duplicate 2003 copyright date.
mmitchel [Wed, 23 Apr 2003 16:11:34 +0000 (16:11 +0000)]
* doc/extend.texi: Remove duplicate 2003 copyright date.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65997 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoremove my write after aproval entry
nathan [Wed, 23 Apr 2003 14:05:34 +0000 (14:05 +0000)]
remove my write after aproval entry

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65991 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (LIBGCC_DEPS): Add gcov headers.
nathan [Wed, 23 Apr 2003 14:05:11 +0000 (14:05 +0000)]
* Makefile.in (LIBGCC_DEPS): Add gcov headers.
(libgcov.a): Depends on LIBGCC_DEPS.
* basic-block.h (profile_info): Moved here from coverage.h. Made
a pointer.
* coverage.c (struct function_list): Fixed array of counter types.
(struct counts_entry): Keyed by counter type, contains summary.
(profile_info): Moved to profile.c.
(prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
vars.
(profiler_label): Remove.
(ctr_labels): New.
(set_purpose, label_for_tag, build_counter_section_fields,
build_counter_section_value, build_counter_section_data_fields,
build_counter_section_data_values, build_function_info_fields,
build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
(build_fn_info_type, build_fn_info_value, build_ctr_info_type,
build_ctr_info_value, build_gcov_info): New.
(htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
(reads_counts_file): Adjust.
(get_coverage_counts): Takes counter number. Add summary
parameter. Adjust.
(coverage_counter_ref): Tkaes counter number. Adjust. Lazily
create counter array labels.
(coverage_end_function): Adjust.
(create_coverage): Adjust.
(find_counters_section): Remove.
* coverage.h (MAX_COUNTER_SECTIONS): Remove.
(struct section_info, struct profile_info): Remove.
(profile_info): Moved to basic-block.h.
(coverage_counter_ref): Takes a counter number.
(get_coverage_counts): Takes a counter number. Added summary
parameter.
(find_counters_section): Remove.
* gcov-dump.c (tag_arc_counts): Rename to ...
(tag_counters): ... here. Adjust.
(tag_table): Move tag_counters to 3rd entry. Remove
PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
(dump_file): Check for counter tag values here.
(tag_summary): Adjust.
* gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
* gcov-io.h (GCOV_LOCKED): New.
(GCOV_TAG_ARC_COUNTS): Rename to ...
(GCOV_TAG_COUNTS_BASE): ... here.
(GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
Remove.
(GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
(GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
GCOV_TAG_IS_COUNTER): New.
(struct gcov_ctr_summary): New.
(struct gcov_summary): Adjust.
(struct gcov_counter_section): Remove.
struct gcov_counter_section_data): Remove.
(struct gcov_function_info): Rename to ...
(struct gcov_fn_info): ... here. Adjust.
(struct gcov_ctr_info): New.
(struct gcov_info): Adjust.
* gcov.c (read_count_file): Adjust.
(output_lines): Adjust.
* libgcov.c (gcov_exit): Adjust.
(__gcov_flush): Adjust.
* mklibgcc.in (libgcc2_c_dep): Add gcov headers.
* predict.c (maybe_hot_bb_p, probably_cold_bb_p,
probably_never_executed_bb_p, compute_frequency_function): Adjust
profile_info use.
* profile.c (struct counts_entry): Remove.
(profile_info): Define here.
(get_exec_counts): Adjust get_coverage_counts call.
(compute_branch_probablilities): Remove find_counters_section
call.
(gen_edge_profiler): Adjust coverage_counter_ref call.
* tracer.c (tail_duplicate): Adjust profile_info use.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65990 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR optimization/10339
sayle [Wed, 23 Apr 2003 13:09:36 +0000 (13:09 +0000)]
PR optimization/10339
* builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
directly instead of unsafely transforming call into a memcmp.
(expand_builtin_strncmp): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65985 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoMissed tellg() comment from previous checkin somehow.
pme [Wed, 23 Apr 2003 07:21:27 +0000 (07:21 +0000)]
Missed tellg() comment from previous checkin somehow.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65984 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-23 Phil Edwards <pme@gcc.gnu.org>
pme [Wed, 23 Apr 2003 07:05:18 +0000 (07:05 +0000)]
2003-04-23  Phil Edwards  <pme@gcc.gnu.org>

* docs/html/ext/howto.html ('LWG Issues'):  Add issue 60, partial
implementation only.
* include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
Comment and change to comply with DR 60 and the effect on gcount().
* include/std/std_istream.h:  Update comments.
* testsuite/27_io/basic_istream/putback/char/1.cc (test01):  Add
comments about reasons for tests.  Test sync() against gcount().
* testsuite/27_io/basic_istream/seekg/char/2.cc:  New file, test
for effect on gcount().
* testsuite/27_io/basic_istream/tellg/char/2.cc:  New file, test
for effect on gcount().

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65983 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * alias.c (mark_constant_function): Check for constancy and
sayle [Wed, 23 Apr 2003 02:47:41 +0000 (02:47 +0000)]
* alias.c (mark_constant_function):  Check for constancy and
purity even of void functions.  Update both the function decl
and the cgraph RTL info with the results.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65981 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * real.c (do_add): Change to return a bool indicating that the
sayle [Wed, 23 Apr 2003 02:46:03 +0000 (02:46 +0000)]
* real.c (do_add): Change to return a bool indicating that the
result of the operation may be inexact due to loss of precision.
(do_multiply): Likewise.
(do_divide): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65980 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * MAINTAINERS (java): Remove Alexandre Petit-Bianco.
mmitchel [Wed, 23 Apr 2003 02:44:37 +0000 (02:44 +0000)]
* MAINTAINERS (java): Remove Alexandre Petit-Bianco.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65979 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Wed, 23 Apr 2003 00:17:11 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65977 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * dwarf2out.c (fde_table_allocated): Mark with GTY.
ljrittle [Wed, 23 Apr 2003 00:06:31 +0000 (00:06 +0000)]
* dwarf2out.c (fde_table_allocated): Mark with GTY.
(decl_die_table_allocated): Likewise.
(abbrev_die_table_allocated): Likewise.
(line_info_table_allocated): Likewise.
(separate_line_info_table_allocated): Likewise.
(pubname_table_allocated): Likewise.
(arange_table_allocated): Likewise.
(ranges_table_allocated): Likewise.
(decl_die_table_in_use): Unconditionalize; mark with GTY.
(abbrev_die_table_in_use): Likewise.
(line_info_table_in_use): Likewise.
(separate_line_info_table_in_use): Likewise.
(pubname_table_in_use): Likewise.
(arange_table_in_use): Likewise.
(ranges_table_in_use): Likewise.
(have_location_lists): Likewise.
(emitcount): New GTY-marked static, moved...
(maybe_emit_file): ...from here.
(label_num): New GTY-marked static, moved...
(gen_internal_sym): ...from here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65970 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoStrip carriage returns
zack [Tue, 22 Apr 2003 23:41:28 +0000 (23:41 +0000)]
Strip carriage returns

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65969 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR 8866
rth [Tue, 22 Apr 2003 23:17:46 +0000 (23:17 +0000)]
    PR 8866
        * rtl.h (MEM_NOTRAP_P): New.
        (MEM_COPY_ATTRIBUTES): Copy it.
        * rtlanal.c (may_trap_p): Check it.
        * expr.c (do_tablejump): Set it.
        * doc/rtl.texi (Flags): Document it.

        * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65967 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
kenner [Tue, 22 Apr 2003 22:58:05 +0000 (22:58 +0000)]
* config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
set FRP on stack adjustment for outgoing args if frame_pointer_needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65965 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR c++/10446
mmitchel [Tue, 22 Apr 2003 22:53:01 +0000 (22:53 +0000)]
PR c++/10446
* search.c (lookup_fnfields_1): Handle empty slots in the method
vector.

PR c++/10446
* g++.dg/parse/crash3.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65962 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
kenner [Tue, 22 Apr 2003 21:52:04 +0000 (21:52 +0000)]
    * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
        --enable-threads=gnat.
        * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
        * configure.in: Add gnat to the list of thread packages
        * configure: Rebuild.
        * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65961 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
ljrittle [Tue, 22 Apr 2003 21:06:56 +0000 (21:06 +0000)]
* testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
Adjust timing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65957 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR c++/10428
mmitchel [Tue, 22 Apr 2003 21:05:58 +0000 (21:05 +0000)]
PR c++/10428
* g++.dg/parse/elab1.C: New test.

PR c++/10428
* decl.c (check_elaborated_type_specifier): New function, split
out from ...
(xref_tag): ... here.  Use the new function in more places.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65956 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
ghazi [Tue, 22 Apr 2003 19:58:57 +0000 (19:58 +0000)]
* vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
(main): Test that we don't write too much data.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65955 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
neil [Tue, 22 Apr 2003 19:54:20 +0000 (19:54 +0000)]
* cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65954 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoRemove conflict indicator.
dpatel [Tue, 22 Apr 2003 19:53:37 +0000 (19:53 +0000)]
Remove conflict indicator.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65953 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cpptrad.c (_cpp_replacement_text_len): Add check for macro parameter count.
dpatel [Tue, 22 Apr 2003 19:52:51 +0000 (19:52 +0000)]
    * cpptrad.c (_cpp_replacement_text_len): Add check for macro parameter count.
        (_cpp_copy_replacement_text): Same.

        * gcc.dg/cpp/trad/funlike-5.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65952 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * c-lex.c (c_lex): Handle CPP_OTHER differently.
neil [Tue, 22 Apr 2003 19:28:00 +0000 (19:28 +0000)]
* c-lex.c (c_lex): Handle CPP_OTHER differently.
* cppexp.c (_cpp_parse_expr): Similarly.
* cpplex.c (SPELL_CHAR): Remove.
(_cpp_lex_direct): Stray chars are saved as byte strings.
(cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
handle SPELL_CHAR.
(cpp_avoid_paste): Update handling of CPP_OTHER.
* cpplib.h: Spell CPP_OTHER like a number.
(struct cpp_token): Remove member c.
* cppmacro.c (stringify_arg): Update handling of CPP_OTHER.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65951 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-22 Paolo Carlini <pcarlini@unitus.it>
paolo [Tue, 22 Apr 2003 17:32:25 +0000 (17:32 +0000)]
2003-04-22  Paolo Carlini  <pcarlini@unitus.it>

* include/std/std_streambuf.h (_S_pback_size, _M_pback,
_M_pback_cur_save, _M_pback_end_save, _M_pback_init,
_M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
(basic_streambuf::basic_streambuf()): Adjust.
* include/std/std_fstream.h (_S_pback_size, _M_pback,
_M_pback_cur_save, _M_pback_end_save, _M_pback_init,
_M_pback_create(), _M_pback_destroy()): Moved here
from basic_streambuf.
* include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
Adjust.
(basic_filebuf::_S_pback_size): Add declaration.
* include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
Remove declaration.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65950 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * gbl-ctors.h: Add special license exception.
mmitchel [Tue, 22 Apr 2003 17:21:04 +0000 (17:21 +0000)]
* gbl-ctors.h: Add special license exception.
* libgcc2.h: Likewise.
* tsystem.h: Likewise.
* gcov-io.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65949 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoAdded myself as SCO maintainer
jkj [Tue, 22 Apr 2003 16:46:30 +0000 (16:46 +0000)]
Added myself as SCO maintainer

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65946 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
dje [Tue, 22 Apr 2003 15:01:18 +0000 (15:01 +0000)]
    * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
        macro defaulting to original BRANCH_COST heuristic.
        * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.

        * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65942 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-21 Andreas Tobler <a.tobler@schweiz.ch>
andreast [Tue, 22 Apr 2003 13:20:57 +0000 (13:20 +0000)]
2003-04-21  Andreas Tobler <a.tobler@schweiz.ch>

        * g++.dg/other/packed1.C: Fix dg options.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65941 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-22 Aldy Hernandez <aldyh@redhat.com>
aldyh [Tue, 22 Apr 2003 13:06:55 +0000 (13:06 +0000)]
2003-04-22  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/t-spe: Merge in t-fprules into file.

        * config.gcc: Add t-spe to powerpc-eabispe.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65938 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoFixed calls to putenv().
jkj [Tue, 22 Apr 2003 12:44:06 +0000 (12:44 +0000)]
Fixed calls to putenv().

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65937 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago.:
nathan [Tue, 22 Apr 2003 12:28:51 +0000 (12:28 +0000)]
.:
* ginclude/stddef.h: Provide C++ safe offsetof.
testsuite:
* g++.dg/other/offsetof2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65936 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoFix typo in comment.
kenner [Tue, 22 Apr 2003 12:09:09 +0000 (12:09 +0000)]
Fix typo in comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65935 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * function.c (purge_addressof_1): In (mem (addressof (reg))) case
amylaar [Tue, 22 Apr 2003 11:41:58 +0000 (11:41 +0000)]
* function.c (purge_addressof_1): In (mem (addressof (reg))) case
for reg notes, if there are no substitutions, just use a SUBREG.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65934 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * rtti.c (throw_bad_typeid): Use build_cxx_call.
mmitchel [Tue, 22 Apr 2003 07:48:02 +0000 (07:48 +0000)]
* rtti.c (throw_bad_typeid): Use build_cxx_call.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65933 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (calls.o): Depend on except.h.
mmitchel [Tue, 22 Apr 2003 05:44:12 +0000 (05:44 +0000)]
* Makefile.in (calls.o): Depend on except.h.
* calls.c: Include except.h.
(emit_call_1): Call note_eh_region_may_contain_throw if
appropriate.
* except.c (eh_region): Add may_contain_throw.
(expand_eh_region_end_cleanup): Do not include handler code when
it cannot be reached.
(note_eh_region_may_contain_throw): New function.
* except.h (note_eh_region_may_contain_throw): New function.

* call.c (build_over_call): Use build_cxx_call.
(build_cxx_call): New method, split out of build_over_call.
* cp-tree.h (language_function): Add can_throw.
(build_cxx_call): Declare it.
* decl.c (finish_function): If a function does not contain any
calls to functions that can throw an exception, indicate that
fact.
* decl2.c (mark_used): Do not defer the instantiation of
functions, if the current function does not throw.
* optimize.c (maybe_clone_body): Copy TREE_NOTHROW to the clones.
* pt.c (instantiate_decl): Make sure import_export_decl is called
before emitting things.
* rtti.c (throw_bad_cast): Use build_cxx_call.
(build_dynamic_cast_1): Likewise.
* typeck.c (build_function_call): Likewise.

* g++.dg/template/recurse.C: Adjust location of error messages.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65929 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Tue, 22 Apr 2003 00:17:06 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65928 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
mmitchel [Mon, 21 Apr 2003 23:23:39 +0000 (23:23 +0000)]
* config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
changes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65920 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoRefine last change.
kenner [Mon, 21 Apr 2003 22:39:26 +0000 (22:39 +0000)]
Refine last change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65915 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
kenner [Mon, 21 Apr 2003 22:27:49 +0000 (22:27 +0000)]
* fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
a number of conversions required for type consistency and previously
stripped off by STRIP_NOPS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65913 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
kenner [Mon, 21 Apr 2003 22:13:01 +0000 (22:13 +0000)]
* doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
details of conflict handling.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65912 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-21 Aldy Hernandez <aldyh@redhat.com>
aldyh [Mon, 21 Apr 2003 21:47:58 +0000 (21:47 +0000)]
2003-04-21  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
        64-bit long doubles.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65911 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-21 Aldy Hernandez <aldyh@redhat.com>
aldyh [Mon, 21 Apr 2003 21:47:57 +0000 (21:47 +0000)]
2003-04-21  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
        64-bit long doubles.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65910 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-21 Paolo Carlini <pcarlini@unitus.it>
paolo [Mon, 21 Apr 2003 21:44:44 +0000 (21:44 +0000)]
2003-04-21  Paolo Carlini  <pcarlini@unitus.it>

Consistently use _M_in_beg instead of eback(), _M_in_cur
instead of gptr(), and so on.
* include/bits/fstream.tcc (pbackfail, imbue): Here.
* include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
* include/bits/streambuf.tcc (sbumpc, sputbackc,
__copy_streambufs): Ditto.
* include/std/std_streambuf.h (sgetc): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65909 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoRevert hunks not part of last patch.
kenner [Mon, 21 Apr 2003 21:35:44 +0000 (21:35 +0000)]
Revert hunks not part of last patch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65908 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * expmed.c (extract_bit_field): Reverse operands of && condition to
kenner [Mon, 21 Apr 2003 21:32:06 +0000 (21:32 +0000)]
* expmed.c (extract_bit_field): Reverse operands of && condition to
        prevent a potential division by zero in the previously first branch.
* config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65907 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agocommit two parts of my last patch that escaped, somehow
nathan [Mon, 21 Apr 2003 21:23:43 +0000 (21:23 +0000)]
commit two parts of my last patch that escaped, somehow

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65906 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * calls.c (expand_call): Prevent sibcall optimization for calls to
kenner [Mon, 21 Apr 2003 21:08:50 +0000 (21:08 +0000)]
* calls.c (expand_call): Prevent sibcall optimization for calls to
nested subprograms.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65904 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
kenner [Mon, 21 Apr 2003 20:58:05 +0000 (20:58 +0000)]
* fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
when conversion overflows.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65900 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
kenner [Mon, 21 Apr 2003 20:43:21 +0000 (20:43 +0000)]
* stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65899 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
kenner [Mon, 21 Apr 2003 20:39:04 +0000 (20:39 +0000)]
* dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
(subrange_type_die): Likewise.
(modified_type_die): Emit a subrange_type DIE for Ada subrange types.
(is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65898 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago Break out coverage routines to new file.
nathan [Mon, 21 Apr 2003 19:48:10 +0000 (19:48 +0000)]
   Break out coverage routines to new file.
        * Makefile.in (COVERAGE_H): New variable
        (C_OBJS): Add coverage.o
        (coverage.o): New target.
        (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
        dependencies.
        (GTFILES): Adjust.
        (gt-coverage.h): New target.
        (gt-profile.h): Remove.
        * profile.h: Remove. Move to ...
        * coverage.h: ... here. New. #include gcov-io.h.
        * gcov-io.h: Move function definitions to ...
        * gcov-io.c: ... here. New.
        * profile.c: Move coverage routines to coverage.c.
        (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
        end_branch_prob): Adjust.
        * coverage.c: New. Coverage routines from profile.c
        (coverage_counter_ref, coverage_init, coverage_finish,
        coverage_end_function, coverage_begin_output,
        coverage_counter_ref, get_coverage_counts): Define.
        * gcov-dump.c, gcov.c: #include gcov-io.c.
        * libgcov.c: Likewise. Adjust.
        * loop-init.c: Don't #include profile.h
        * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
        * rtl.h: Add coverage prototypes.
        * toplev.c (compile_file): Init coverage, not branch_prob.
        Always call coverage_finish.
        (rest_of_compilation): Call coverage_end_function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65897 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
janis [Mon, 21 Apr 2003 19:35:19 +0000 (19:35 +0000)]
2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>

* config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65896 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
janis [Mon, 21 Apr 2003 19:34:43 +0000 (19:34 +0000)]
2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>

* config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65895 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * c-ppoutput.c (cb_include): Don't take a cpp_token.
neil [Mon, 21 Apr 2003 19:21:59 +0000 (19:21 +0000)]
* c-ppoutput.c (cb_include): Don't take a cpp_token.
* cppfiles.c: Don't undef strcmp.
(find_include_file): Don't take a cpp_token.  Check for empty
file names.
(_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
(cpp_push_include): Simplify.
* cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
* cpplib.c (glue_header_name): Return the file name, not a cpp_token.
(parse_include): Similary.  Don't check for zero-length filenames.
(do_include_common, do_pragma_dependency): Update accordingly.
* cpplib.h (struct cpp_callbacks): Change prototype of include.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65894 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-21 Paolo Carlini <pcarlini@unitus.it>
paolo [Mon, 21 Apr 2003 18:46:44 +0000 (18:46 +0000)]
2003-04-21  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/sstream.tcc (pbackfail, overflow):
Formatting fixes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65893 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * MAINTAINERS (gcov): Add myself and Jan Hubicka.
nathan [Mon, 21 Apr 2003 18:43:10 +0000 (18:43 +0000)]
* MAINTAINERS (gcov): Add myself and Jan Hubicka.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65892 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-21 Paolo Carlini <pcarlini@unitus.it>
paolo [Mon, 21 Apr 2003 18:11:51 +0000 (18:11 +0000)]
2003-04-21  Paolo Carlini  <pcarlini@unitus.it>

* include/std/std_streambuf.h (uflow()): It's used only by
basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
therefore do not consider the _M_buf_unified == true case.

* include/std/std_streambuf.h (sgetc()): Restore __ret variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65891 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
kenner [Mon, 21 Apr 2003 17:50:51 +0000 (17:50 +0000)]
* expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
before clearing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65890 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
mmitchel [Mon, 21 Apr 2003 15:20:39 +0000 (15:20 +0000)]
* config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
have the same form as the old RTL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65885 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * libI77/configure.in (_XOPEN_SOURCE): Bump to 600.
ljrittle [Mon, 21 Apr 2003 13:37:48 +0000 (13:37 +0000)]
* libI77/configure.in (_XOPEN_SOURCE): Bump to 600.
* libI77/configure: Regenerate.
* libU77/configure.in (_XOPEN_SOURCE): Bump to 600.
* libU77/configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65884 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
aj [Mon, 21 Apr 2003 12:06:12 +0000 (12:06 +0000)]
    * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65883 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agocp:
nathan [Mon, 21 Apr 2003 11:16:57 +0000 (11:16 +0000)]
cp:
PR c++/9881
* typeck.c (build_unary_op): Fold all COMPONENT_REF addr
expressions. Reverts my 2002-08-08 patch.

* typeck.c (comp_ptr_ttypes_real): Swap final && operands for
cheaper early exit.
testsuite:
PR c++/9881
* g++.dg/init/addr-const1.C: New test.
* g++.dg/other/packed1.C: XFAIL on aligned architectures.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65882 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Mon, 21 Apr 2003 00:17:04 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65877 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-20 Scott Gilbertson <scottg@mantatest.com>
tromey [Sun, 20 Apr 2003 23:21:06 +0000 (23:21 +0000)]
2003-04-20  Scott Gilbertson  <scottg@mantatest.com>

* java/awt/Container.java (addImpl): Enable paint events if adding
a lightweight to a heavyweight.
(addNotify): Ensure that peer is created before
addNotifyContainerChildren.
(addNotifyContainerChildren): Enable paint events if a heavyweight
container contains a lightweight.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65870 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
zack [Sun, 20 Apr 2003 22:58:28 +0000 (22:58 +0000)]
* c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
genrtl_cleanup_stmt.  Correct comment at head of
genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).

* stmt.c (struct nesting): Kill n_function_calls.
(expand_start_bindings): Don't set
thisblock->data.block.n_function_calls.
(expand_end_bindings): Compare function_call_count against 0.
(expand_cleanups): Kill DONT_DO argument; all callers passed
NULL_TREE. All callers updated to match.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65869 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * java/io/BufferedReader.java, java/io/BufferedWriter.java,
tromey [Sun, 20 Apr 2003 22:47:43 +0000 (22:47 +0000)]
* java/io/BufferedReader.java, java/io/BufferedWriter.java,
java/io/DataInput.java, java/io/DataOutput.java: Imports from
Classpath.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65868 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-20 Mohan Embar <gnustuff@thisiscool.com>
tromey [Sun, 20 Apr 2003 22:45:02 +0000 (22:45 +0000)]
2003-04-20  Mohan Embar  <gnustuff@thisiscool.com>

* jcf-io.c (find_class): use DIR_SEPARATOR instead of
'/' when computing java source filename

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65867 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
zack [Sun, 20 Apr 2003 22:43:59 +0000 (22:43 +0000)]
* varasm.c (struct deferred_constant, defer_addressed_constants_flag)
(defer_addressed_constants, output_deferred_addressed_constants): Kill.
(output_constant_def): Remove code predicated on
defer_addressed_constants_flag.

* output.h: Remove prototypes of deleted functions.
* c-typeck.c (constructor_subconstants_deferred): Kill.
(struct initializer_stack): Remove 'deferred' field.
(start_init): Remove all references to the above.
(finish_init): Likewise. Also remove never-executed call to
output_deferred_addressed_constants.  Pull assignment to
defstr out of if expression.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65865 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-20 Paolo Carlini <pcarlini@unitus.it>
paolo [Sun, 20 Apr 2003 22:18:49 +0000 (22:18 +0000)]
2003-04-20  Paolo Carlini  <pcarlini@unitus.it>

* docs/html/ext/howto.html ('LWG Issues'):
Add issues 19, 90, 171, 231, 271.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65863 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
neil [Sun, 20 Apr 2003 19:02:53 +0000 (19:02 +0000)]
* cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
NOTE_NEWLINE): Remove.
* cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
to handle new form of line note type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65860 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * target.h (encode_section_info): Add new argument carrying
zack [Sun, 20 Apr 2003 18:20:39 +0000 (18:20 +0000)]
* target.h (encode_section_info): Add new argument carrying
the RTL to be modified by the hook.

* varasm.c (make_decl_rtl, output_constant_def): Update calls
to encode_section_info.
(default_encode_section_info): Take and use RTL argument,
don't use TREE_CST_RTL or DECL_RTL.
* output.h: Update prototype of default_encode_section_info.
* config/darwin.h (ASM_DECLARE_OBJECT_NAME)
(ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
Update calls to encode_section_info.

* config/darwin.c, config/arm/arm.c, config/arm/pe.c
* config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
* config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
* config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
* config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
* config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
except for PE dllimport/dllexport.  Update calls to
default_encode_section_info.

* config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
Update prototypes.

* doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65859 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago PR/8705
danglin [Sun, 20 Apr 2003 17:18:03 +0000 (17:18 +0000)]
PR/8705
* pa.md (movccfp): New expander.
(setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
Reverse fcmp conditions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65858 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-20 Paolo Carlini <pcarlini@unitus.it>
paolo [Sun, 20 Apr 2003 13:54:45 +0000 (13:54 +0000)]
2003-04-20  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/sstream.tcc (pbackfail): Remove redundant
NULL pointer check from test involving _M_in_*.
(overflow, seekoff, seekpos): Const qualify bool variables.
* include/std/std_sstream.h (underflow): Remove redundant
NULL pointer check from test involving _M_in_*.
(_M_really_sync): Const qualify bool variables.
* src/fstream.cc (_M_underflow_common): Remove redundant
NULL pointer check from test involving _M_in_*, const qualify
bool variables.

* include/std/std_streambuf.h (sgetc): Remove redundant
variable.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65853 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
marekm [Sun, 20 Apr 2003 13:24:06 +0000 (13:24 +0000)]
* config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
of operand 1 correctly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65850 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago.:
nathan [Sun, 20 Apr 2003 11:57:38 +0000 (11:57 +0000)]
.:
* cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
* gcov.c (output_lines): Don't be so fussy about going past EOF.
cp:
* cp/decl2.c (start_static_storage_duration_function): Take count
arg, don't check if it wraps round.
(generate_ctor_or_dtor_function): Add locus arg, use it.
(generate_ctor_and_dtor_functions_for_priority): Data arg is a
locus.
(finish_file): Set line numbers to past EOF for synthesized
functions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65847 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agocp:
nathan [Sun, 20 Apr 2003 11:48:36 +0000 (11:48 +0000)]
cp:
PR c++/10405
* search.c (lookup_field_1): Final scan goes backwards for
types, forwards for non-types.
testsuite:
PR c++/10405
* g++.dg/lookup/struct-hack1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65846 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
neil [Sun, 20 Apr 2003 07:29:23 +0000 (07:29 +0000)]
* Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
(cppcharset.o): New target.
* c-lex.c (is_extended_char): Move to cppcharset.c.
(utf8_extend_token): Delete.
* cppcharset.c: New file.
* cpphash.h (_cpp_valid_ucn): New.
* cpplex.c (lex_identifier): Update prototype.
(continues_identifier_p): Rename forms_identifier_p.  Handle UCN
escapes.
(maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
in cppcharset.c.
(lex_number, lex_identifier, cpp_parse_escape): Update.
(_cpp_lex_direct): Update to handle UCNs.
(cpp_avoid_paste): Don't paste to form a UCN.
testsuite:
* ucs.c: Update diagnostic messages.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65845 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * builtins.c (expand_builtin): Don't expand a pure or const
sayle [Sun, 20 Apr 2003 03:11:14 +0000 (03:11 +0000)]
* builtins.c (expand_builtin):  Don't expand a pure or const
built-in function if the result will be ignored and none of
its arguments are volatile.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65843 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoDaily bump.
gccadmin [Sun, 20 Apr 2003 00:17:05 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65841 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoAdd my entry
jkj [Sat, 19 Apr 2003 21:30:21 +0000 (21:30 +0000)]
Add my entry

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65834 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoChangeLog entry for part of the SCO patches.
jkj [Sat, 19 Apr 2003 21:24:12 +0000 (21:24 +0000)]
ChangeLog entry for part of the SCO patches.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65833 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoPart 2 of the SCO port update. This is everything I have approval for.
jkj [Sat, 19 Apr 2003 21:23:20 +0000 (21:23 +0000)]
Part 2 of the SCO port update. This is everything I have approval for.
There are two outstanding patches I await approval to check in.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65832 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * java/sql/Date.java, java/sql/DriverManager.java,
tromey [Sat, 19 Apr 2003 21:17:50 +0000 (21:17 +0000)]
* java/sql/Date.java, java/sql/DriverManager.java,
java/sql/Time.java, java/sql/Timestamp.java: New versions from
Classpath.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65831 138bc75d-0d04-0410-961f-82ee72b054a4

21 years agoPart 1 of the checkins for the SCO port update. This is the fixinclude
jkj [Sat, 19 Apr 2003 21:10:08 +0000 (21:10 +0000)]
Part 1 of the checkins for the SCO port update. This is the fixinclude
stuff.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65830 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago * Makefile.in: Rebuilt.
tromey [Sat, 19 Apr 2003 20:54:55 +0000 (20:54 +0000)]
* Makefile.in: Rebuilt.
* Makefile.am (ordinary_java_source_files): Added new files.
* java/security/AlgorithmParameterGenerator.java,
java/security/AlgorithmParameters.java, java/security/Engine.java,
java/security/Identity.java, java/security/IdentityScope.java,
java/security/KeyFactory.java,
java/security/KeyPairGenerator.java, java/security/KeyStore.java,
java/security/MessageDigest.java, java/security/Policy.java,
java/security/ProtectionDomain.java,
java/security/SecureRandom.java, java/security/Security.java,
java/security/Signature.java, java/security/SignatureSpi.java,
java/security/SignedObject.java, java/security/Signer.java,
java/security/interfaces/RSAMultiPrimePrivateCrtKey.java,
java/security/spec/PSSParameterSpec.java,
java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java,
java/security/spec/RSAOtherPrimeInfo.java: New versions from
Classpath.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65829 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-19 Scott Gilbertson <scottg@mantatest.com>
tromey [Sat, 19 Apr 2003 19:54:39 +0000 (19:54 +0000)]
2003-04-19  Scott Gilbertson  <scottg@mantatest.com>

* gnu/awt/xlib/XGraphics.java (XGraphics): Use new GC.create.
(dispose): Null metrics.
* gnu/awt/xlib/XToolkit.java (sync): Implement.
* gnu/gcj/xlib/Clip.java (dispose): Change name of native from
finalize.
(finalize): Call dispose.
* gnu/gcj/xlib/Drawable.java (gcCache): New field.
(gcCachedCount): New field.
(finalize): New method.
(putGCInCache): New method.
(getGCFromCache): New method.
* gnu/gcj/xlib/GC.java (GC): Make protected.
(clone): Get new GC from cache if possible.
(create): New static method.
(dispose): Save old GC in cache.
* gnu/gcj/xlib/natClip.cc (dispose): Check for null before
deleting.
* gnu/gcj/xlib/natGC.cc (initStructure): Call XCreateGC only if gc
is null.
* gnu/gcj/xlib/Pixmap.java (Pixmap): Use new GC.create.
* java/awt/Container.java (visitChild): Dispose gfx2 when
finished.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65827 138bc75d-0d04-0410-961f-82ee72b054a4

21 years ago2003-04-19 Jerry Quinn <jlquinn@optonline.net>
tromey [Sat, 19 Apr 2003 19:26:41 +0000 (19:26 +0000)]
2003-04-19  Jerry Quinn  <jlquinn@optonline.net>

* java/math/BigInteger.java (probablePrime): New.
* java/math/BigDecimal.java (unscaledValue): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65825 138bc75d-0d04-0410-961f-82ee72b054a4