gcc.git
21 years agore PR c/10675 (Compile time increases quadratically with struct size)
Richard Henderson [Mon, 12 May 2003 03:25:38 +0000 (20:25 -0700)]
re PR c/10675 (Compile time increases quadratically with struct size)

        PR c/10675
        * c-decl.c: Include hashtab.h.
        (detect_field_duplicates): New.
        (finish_struct): Use it.
        * Makefile.in (c-decl.o): Update.
        * c-parse.in (structsp_attr): Nreverse component_decl_list results.
        (component_decl_list, component_decl_list2,
        components, components_notype): Build list in reverse order.
        (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
        * tree.c (chainon): Special case op2 null as well.
        Reorg for clarity.

From-SVN: r66710

21 years agoi386.md (logsf2, [...]): New patterns to implement log, logf and logl built-ins as...
Roger Sayle [Mon, 12 May 2003 02:51:40 +0000 (02:51 +0000)]
i386.md (logsf2, [...]): New patterns to implement log, logf and logl built-ins as inline x87 intrinsics.

* config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
to implement log, logf and logl built-ins as inline x87 intrinsics.
(UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
(*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
patterns for x87's "fyl2x" instruction, used by log?f2 patterns.

* reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
UNSPEC_FPATAN, i.e. replaces two stack operands with single result.

* gcc.dg/i386-387-1.c: Update to also test log.
* gcc.dg/i386-387-2.c: Likewise.

From-SVN: r66709

21 years ago* Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
Kaveh R. Ghazi [Mon, 12 May 2003 02:29:38 +0000 (02:29 +0000)]
* Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.

From-SVN: r66708

21 years ago* sparc.c (print_operand): Fix uninitialized warning.
Kaveh R. Ghazi [Mon, 12 May 2003 02:05:52 +0000 (02:05 +0000)]
* sparc.c (print_operand): Fix uninitialized warning.

From-SVN: r66707

21 years agoMakefile.am: Properly quote /both/ LD_RUN_PATHs.
Phil Edwards [Mon, 12 May 2003 00:41:35 +0000 (00:41 +0000)]
Makefile.am: Properly quote /both/ LD_RUN_PATHs.

2003-05-11  Phil Edwards  <pme@gcc.gnu.org>

* testsuite/Makefile.am:  Properly quote /both/ LD_RUN_PATHs.
* testsuite/Makefile.in:  Regenerate.

From-SVN: r66706

21 years agoDaily bump.
GCC Administrator [Mon, 12 May 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r66704

21 years agoMakefile.am: Properly quote LD_RUN_PATH.
Phil Edwards [Mon, 12 May 2003 00:00:05 +0000 (00:00 +0000)]
Makefile.am: Properly quote LD_RUN_PATH.

2003-05-11  Phil Edwards  <pme@gcc.gnu.org>

* testsuite/Makefile.am:  Properly quote LD_RUN_PATH.
* testsuite/Makefile.in:  Regenerate.

From-SVN: r66701

21 years agocfgloopanal.c (num_loop_insns, [...]): Count only real insns.
Zdenek Dvorak [Sun, 11 May 2003 22:54:33 +0000 (00:54 +0200)]
cfgloopanal.c (num_loop_insns, [...]): Count only real insns.

* cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
real insns.
* loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
condition.

From-SVN: r66700

21 years ago* doc/cpp.texi: Fix typos.
Neil Booth [Sun, 11 May 2003 20:16:39 +0000 (20:16 +0000)]
* doc/cpp.texi: Fix typos.

From-SVN: r66697

21 years agos390.c (s390_function_arg_float): New function.
Ulrich Weigand [Sun, 11 May 2003 20:01:01 +0000 (20:01 +0000)]
s390.c (s390_function_arg_float): New function.

* config/s390/s390.c (s390_function_arg_float): New function.
(s390_function_arg_pass_by_reference): Use it.
(s390_function_arg_advance): Likewise.
(s390_function_arg): Likewise.
(s390_va_arg): Likewise

From-SVN: r66696

21 years agocoverage.h (coverage_counter_alloc): New function.
Nathan Sidwell [Sun, 11 May 2003 19:21:32 +0000 (19:21 +0000)]
coverage.h (coverage_counter_alloc): New function.

* coverage.h (coverage_counter_alloc): New function.
* function.h (struct function): Remove arc_profile flag.
* coverage.c (fn_ident): Remove.
(fn_b_ctrs, no_coverage): New.
(get_coverage_counts): Use current_function_funcdef_no.
(coverage_counter_alloc): New.
(coverage_counter_ref): Adjust.
(coverage_begin_output): Check no_coverage. Use
current_function_funcdef_no.
(coverage_end_function): Likewise.
(create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
than clearing flag_inline_functions. Do not clear arc_profile
flag.
* function.c (prepare_function_start): Do not set arc_profile
flag.
* profile.c (instrument_edges): Return number of instrumented
edges. Use a for loop.
(branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
local to here and simplify. Use profile_arc_flag not arc_profile
flag.
(find_spanning_tree): Reformat.
* toplev.c (rest_of_compilation): Use profile_arc_flags and
flag_test_coverage rather than arc_profile flag.

From-SVN: r66695

21 years ago* method.c (synthesize_method): Call push/pop_deferring_access_checks.
Kriang Lerdsuwanakij [Sun, 11 May 2003 16:16:47 +0000 (16:16 +0000)]
* method.c (synthesize_method): Call push/pop_deferring_access_checks.

From-SVN: r66694

21 years ago* doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
Gabriel Dos Reis [Sun, 11 May 2003 16:06:21 +0000 (16:06 +0000)]
* doc/invoke.texi (Wctor-dtor-privacy): Update documentation.

From-SVN: r66693

21 years ago* varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
Richard Kenner [Sun, 11 May 2003 15:47:54 +0000 (15:47 +0000)]
* varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.

From-SVN: r66692

21 years ago* cppinit.c (cpp_init_builtins): Use _cpp_define_builtin
Neil Booth [Sun, 11 May 2003 15:15:35 +0000 (15:15 +0000)]
* cppinit.c (cpp_init_builtins): Use _cpp_define_builtin

From-SVN: r66691

21 years agoMissed from previous commit.
Richard Sandiford [Sun, 11 May 2003 14:52:29 +0000 (14:52 +0000)]
Missed from previous commit.

From-SVN: r66690

21 years ago* cppinit.c (cpp_init_builtins): Use _cpp_define_builtin
Neil Booth [Sun, 11 May 2003 13:58:10 +0000 (13:58 +0000)]
* cppinit.c (cpp_init_builtins): Use _cpp_define_builtin

From-SVN: r66689

21 years agoc-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into cpplib as it's a Standard...
Neil Booth [Sun, 11 May 2003 13:43:36 +0000 (13:43 +0000)]
c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into cpplib as it's a Standard Predefined Macro.

* c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
cpplib as it's a Standard Predefined Macro.
* c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
* cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
__STDC_HOSTED__ appropriately.
* cpplib.h (_cpp_init_builtins): Update.
* fix-header.c (read_scan_file): Update.
* doc/cpp.texi, doc/cppopts.texi: Update documentation.
* cppfiles.c (find_or_create_entry): Preserve errno.

From-SVN: r66688

21 years agoFix expected error message.
Kriang Lerdsuwanakij [Sun, 11 May 2003 13:26:55 +0000 (13:26 +0000)]
Fix expected error message.

From-SVN: r66687

21 years agoint8421.f: New test.
Toon Moene [Sun, 11 May 2003 13:03:58 +0000 (15:03 +0200)]
int8421.f: New test.

2003-05-11  Toon Moene  <toon@moene.indiv.nluug.nl>

* g77.f-torture/execute/int8421.f: New test.

From-SVN: r66686

21 years agore PR fortran/10726 (Documentation for function "IDate Intrinsic (Unix)" is wrong)
Toon Moene [Sun, 11 May 2003 12:57:35 +0000 (14:57 +0200)]
re PR fortran/10726 (Documentation for function "IDate Intrinsic (Unix)" is wrong)

2003-05-11  Toon Moene  <toon@moene.indiv.nluug.nl>

PR fortran/10726
* intdoc.in: Fix documentation of IDATE.
* intdoc.texi: Regenerate.
* g77.texi: Document completion of INTEGER*n support.
* news.texi: Update due to the above.

From-SVN: r66685

21 years agore PR c++/689 ([diagnostic] this warning is not helpful: `class xxxx' only defines...
Gabriel Dos Reis [Sun, 11 May 2003 12:47:42 +0000 (12:47 +0000)]
re PR c++/689 ([diagnostic] this warning is not helpful: `class xxxx' only defines a private destructor and has no friend)

PR C++/689
PR C++/9257
* c-opts.c (c_common_decode_option): Don't set
warn_ctor_dtor_privacy wen -Wall.
* c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.

From-SVN: r66684

21 years agoPR c++/10230, c++/10481
Kriang Lerdsuwanakij [Sun, 11 May 2003 10:06:39 +0000 (10:06 +0000)]
PR c++/10230, c++/10481

PR c++/10230, c++/10481
* semantics.c (finish_non_static_data_member): Handle when the
non-static member is not from a base of the current class type.

* g++.dg/lookup/scoped5.C: New test.

From-SVN: r66683

21 years agore PR c++/10552 (Small sample using nested templates causes internal compiler error.)
Kriang Lerdsuwanakij [Sun, 11 May 2003 09:45:30 +0000 (09:45 +0000)]
re PR c++/10552 (Small sample using nested templates causes internal compiler error.)

PR c++/10552
* pt.c (tsubst_copy): Handle TEMPLATE_DECL that is a member class
template and has dependent context.

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

From-SVN: r66682

21 years agore PR libstdc++/3181 (Unable to use sqrt,cos,sin,... with int argument.)
Gabriel Dos Reis [Sun, 11 May 2003 09:07:17 +0000 (09:07 +0000)]
re PR libstdc++/3181 (Unable to use sqrt,cos,sin,... with int argument.)

PR libstdc++/3181
* include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
(acos): Handle integer argument.
(asin): Likewise.
(atan): Likewise.
(atan2): Likewise.
(ceil): Likewise.
(cos): Likewise.
(cosh): Likewise.
(exp): Likewise.
(fabs): Likewise.
(floor): Likewise.
(frexp): Likewise.
(ldexp): Likewise.
(log): Likewise.
(log10): Likewise.
(sin): Likewise.
(sinh): Likewise.
(sqrt): Likewise.
(tan): Likewise.
(tanh): Likewise.
* include/bits/cpp_type_traits.h (__are_same<>): New traits.
(__enable_if): Likewise.
* testsuite/26_numerics/cmath/overloads.C: New test.

From-SVN: r66681

21 years agobuiltins: New directory.
Richard Sandiford [Sun, 11 May 2003 08:20:34 +0000 (08:20 +0000)]
builtins: New directory.

* gcc.c-torture/execute/builtins: New directory.
* gcc.c-torture/execute/string-opt-{3,4,16,17,18,19}.c: Move into
gcc.c-torture/execute/builtins.
* gcc.c-torture/execute/string-opt-asm-{1,2}.c: Likewise.
* gcc.c-torture/execute/builtin-noret-{1,2}.c: Move to...
* gcc.dg/torture: ...this new directory.  Turn into link-only tests.
* gcc.dg/no-builtin-1.c: Move into gcc.c-torture/execute/builtins.

From-SVN: r66680

21 years ago[multiple changes]
Benjamin Kosnik [Sun, 11 May 2003 04:20:57 +0000 (04:20 +0000)]
[multiple changes]

2003-05-10  Petur Runolfsson  <peturr02@ru.is>

PR libstdc++/9027
PR libstdc++/9520
PR libstdc++/10096
* include/bits/fstream.tcc (basic_file::_M_underflow):  Add generic
implementation, based on old wchar_t specialization, add support
for codecvt::in() return value of codecvt_base::noconv, remove
_M_file.sys_ungetc() call.
* include/std/std_fstream.h (basic_file::underflow,
basic_file::uflow, basic_file::_M_underflow):  Remove
specialization declarations, call _M_underflow from generic versions
of underflow and uflow.
* src/fstream.cc (basic_file::underflow, basic_file::uflow,
basic_file::_M_underflow):  Remove specializations.
* src/Makefile.am (sources):  Remove fstream.cc.
* src/Makefile.in:  Regenerated.
* testsuite/27_io/basic_filebuf/underflow/10096.cc:  New test.
* testsuite/27_io/basic_filebuf/underflow/char/1.cc:  New test.
* testsuite/27_io/basic_filebuf/underflow/char/9027.cc:  New test.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc:  New test.

2003-05-10  Benjamin Kosnik  <bkoz@redhat.com>

* include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
buffer.
* config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
unbuffered bits.
(__basic_file::xsputn): Same.
(__basic_file::seekoff): Same.
(__basic_file::seekpos): Same.
(__basic_file::showmanyc): Same.
* config/io/basic_file_stdio.cc: Same.
* include/std/std_fstream.h: Same.
* include/bits/fstream.tcc: Same.
* src/fstream.cc: Same.
* testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.

2003-05-10  Petur Runolfsson  <peturr02@ru.is>

PR libstdc++/9520
PR libstdc++/9661
PR libstdc++/9662
* include/ext/stdio_sync_filebuf.h:  New file.
(basic_stdiobuf):  New.
* include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
* include/Makefile.in: Regenerate.
* include/bits/ios_base.h (Init::_S_create_buffers,
Init::_S_destroy_buffers):  Remove declarations.
* src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync):  Define.
* src/ios.cc (Init::_S_create_buffers,
Init::_S_destroy_buffers):  Remove.
(Init::Init):  Create and use syncronized buffers.
(ios_base::sync_with_stdio):  Destroy syncronized buffers,
create and install unsyncronized buffers.
* testsuite/27_io/objects/char/10.cc:  New test.
* testsuite/27_io/objects/char/9.cc:  New test.
* testsuite/27_io/objects/char/9661-1.cc:  New test.
* testsuite/27_io/objects/char/9661-2_xin.cc:  New test.
* testsuite/27_io/objects/char/9661-2_xin.in:  New.
* testsuite/27_io/objects/wchar_t/1.cc:  New test.
* testsuite/27_io/objects/wchar_t/10.cc:  New test.
* testsuite/27_io/objects/wchar_t/2.cc:  New test.
* testsuite/27_io/objects/wchar_t/2523-1_xin.cc:  New test.
* testsuite/27_io/objects/wchar_t/2523-1_xin.in:  New.
* testsuite/27_io/objects/wchar_t/2523-2_xin.cc:  New test.
* testsuite/27_io/objects/wchar_t/2523-2_xin.in:  New.
* testsuite/27_io/objects/wchar_t/3045.cc:  New test.
* testsuite/27_io/objects/wchar_t/3647.cc:  New test.
* testsuite/27_io/objects/wchar_t/3_xin.cc:  New test.
* testsuite/27_io/objects/wchar_t/3_xin.in:  New.
* testsuite/27_io/objects/wchar_t/4_xin.cc:  New test.
* testsuite/27_io/objects/wchar_t/4_xin.in:  New.
* testsuite/27_io/objects/wchar_t/5.cc:  New test.
* testsuite/27_io/objects/wchar_t/5268.cc:  New test.
* testsuite/27_io/objects/wchar_t/5280_xin.cc:  New test.
* testsuite/27_io/objects/wchar_t/5280_xin.in:  New.
* testsuite/27_io/objects/wchar_t/6.cc:  New test.
* testsuite/27_io/objects/wchar_t/6548_xin.cc:  New test.
* testsuite/27_io/objects/wchar_t/6548_xin.in:  New.
* testsuite/27_io/objects/wchar_t/6648-1_xin.cc:  New test.
* testsuite/27_io/objects/wchar_t/6648-1_xin.in:  New.
* testsuite/27_io/objects/wchar_t/6648-2_xin.cc:  New test.
* testsuite/27_io/objects/wchar_t/6648-2_xin.in:  New.
* testsuite/27_io/objects/wchar_t/7.cc:  New test.
* testsuite/27_io/objects/wchar_t/7744_xin.cc:  New test.
* testsuite/27_io/objects/wchar_t/7744_xin.in:  New.
* testsuite/27_io/objects/wchar_t/8.cc:  New test.
* testsuite/27_io/objects/wchar_t/9_xin.cc:  New test.
* testsuite/27_io/objects/wchar_t/9_xin.in:  New.
* testsuite/27_io/objects/wchar_t/9520.cc:  New test.
* testsuite/27_io/objects/wchar_t/9661-1.cc:  New test.
* testsuite/27_io/objects/wchar_t/9661-2_xin.cc:  New test.
* testsuite/27_io/objects/wchar_t/9661-2_xin.in:  New.
* testsuite/27_io/objects/wchar_t/9662.cc:  New test.
* testsuite/ext/stdiobuf_char.cc:  New test.
* testsuite/ext/stdiobuf_wchar_t.cc:  New test.

From-SVN: r66678

21 years agoreload1.c (reload_cse_move2add): Revert part of my 2003-05-09's patch.
Alexandre Oliva [Sun, 11 May 2003 02:15:24 +0000 (02:15 +0000)]
reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's patch.

* reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
patch.

From-SVN: r66677

21 years agodiagnostic.c: Reorder functions for clarity...
Zack Weinberg [Sun, 11 May 2003 02:06:12 +0000 (02:06 +0000)]
diagnostic.c: Reorder functions for clarity...

* diagnostic.c: Reorder functions for clarity, putting all the
functions in the "error" family next to each other, and
likewise all the functions in the "error_with_decl" family.
Some other routines were moved too.  Add comments.
(vbuild_message_string): Fold into sole caller.

From-SVN: r66676

21 years agoDaily bump.
GCC Administrator [Sun, 11 May 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r66674

21 years agoexcept.c (EH_RETURN_STACKADJ_RTX): Do not define.
Ulrich Weigand [Sat, 10 May 2003 22:59:04 +0000 (22:59 +0000)]
except.c (EH_RETURN_STACKADJ_RTX): Do not define.

* except.c (EH_RETURN_STACKADJ_RTX): Do not define.
(EH_RETURN_HANDLER_RTX): Likewise.
(expand_builtin_eh_return): Do not copy stack adjustment
if EH_RETURN_STACKADJ_RTX is not defined.
(expand_eh_return): Likewise.  Also, do not pass stack
adjustment as argument to the eh_return pattern.
* except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
because EH_RETURN_STACKADJ_RTX is not defined.
* unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
is not defined, treat stack pointer like a regular register.
(uw_init_context_1): Set up fake initial stack pointer register.
(uw_install_context_1): Do not compute stack adjustment if
EH_RETURN_STACKADJ_RTX is not defined.

* config/i386/i386.md ("eh_return"): Remove first argument.
* config/mips/mips.md ("eh_return"): Likewise.
* config/rs6000/rs6000.md ("eh_return"): Likewise.
* config/sh/sh.md ("eh_return"): Likewise.

* config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.

From-SVN: r66672

21 years ago* config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
Alexander Aganichev [Sat, 10 May 2003 19:38:02 +0000 (19:38 +0000)]
* config/i386/i386.h (MODES_TIEABLE_P): Fix typo.

From-SVN: r66670

21 years agodefaults.h (GCOV_TYPE_SIZE): Remove.
Nathan Sidwell [Sat, 10 May 2003 19:02:21 +0000 (19:02 +0000)]
defaults.h (GCOV_TYPE_SIZE): Remove.

* defaults.h (GCOV_TYPE_SIZE): Remove.
* gcov-io.h (gcov_type): Set to specific mode int on target.
(gcov_unsigned_t, gcov_position_t): New.
(GCOV_TYPE_NODE): New.
(GCOV_TAG_SUMMARY_LENGTH): Adjust.
(GCOV_COUNTERS_SUMMABLE): New.
(gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
gcov_ctr_info, gcov_info): Adjust types.
(gcov_var): Adjust types.
(gcov_write_unsigned, gcov_write_tag,
gcov_write_length, gcov_write_tag_length, gcov_write_summary,
gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
(gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
* gcov-io.c (gcov_write_unsigned, gcov_write_tag,
gcov_write_length, gcov_write_tag_length, gcov_write_summary,
gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
* libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
__gcov_init, __gcov_merge_add): Adjust gcov types.
* coverage.c (ctr_merge_functions): Constify.
(ctr_names): New.
(read_counts_file): Adjust gcov types. Only summarize & merge
summable counters.
(coverage_counter_ref): Use GCOV_TYPE_NODE.
(build_fn_info_type, build_fn_info_value, build_ctr_info_type,
build_ctr_info_value, build_gcov_info): Adjust types.
* profile.c (branch_prob): Adjust gcov types.
* gcov_dump (dump_file): Adjust gcov types.

From-SVN: r66668

21 years agoProperly remove previous patch.
Richard Kenner [Sat, 10 May 2003 17:31:13 +0000 (13:31 -0400)]
Properly remove previous patch.

From-SVN: r66667

21 years agodefer a mistake until later
Bruce Korb [Sat, 10 May 2003 17:01:29 +0000 (17:01 +0000)]
defer a mistake until later

From-SVN: r66666

21 years ago* pt.c (instantiate_decl): Call push/pop_deferring_access_checks.
Kriang Lerdsuwanakij [Sat, 10 May 2003 15:58:45 +0000 (15:58 +0000)]
* pt.c (instantiate_decl): Call push/pop_deferring_access_checks.

From-SVN: r66665

21 years ago3.cc: Remove unnecessary includes and unused string literals.
Paolo Carlini [Sat, 10 May 2003 15:05:15 +0000 (17:05 +0200)]
3.cc: Remove unnecessary includes and unused string literals.

2003-05-10  Paolo Carlini  <pcarlini@unitus.it>

* testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
unnecessary includes and unused string literals.
* testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.

From-SVN: r66663

21 years agoarm.md (DOM_CC_X_AND_Y, [...]): New constants.
Richard Earnshaw [Sat, 10 May 2003 13:10:47 +0000 (13:10 +0000)]
arm.md (DOM_CC_X_AND_Y, [...]): New constants.

* arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
constants.
(ior_scc_scc, and_scc_scc): New insn_and_split patterns.
* arm.c (arm_select_dominance_cc_mode): Renamed from
select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
Callers updated.
* arm-protos.h (arm_select_dominance_cc_mode): Add prototype.

From-SVN: r66662

21 years agorevert: vxxscale.h, [...]: New files.
Richard Kenner [Sat, 10 May 2003 12:07:04 +0000 (08:07 -0400)]
revert: vxxscale.h, [...]: New files.

Revert:

2003-05-09  Olivier Hainque <hainque@act-europe.fr>

* config/arm/vxxscale.h, config/arm/vxxscale-coff.h: New files.
* config/arm/vxxscale-elf.h, config/arm/t-vxxscale-elf: Likewise.
* config.gcc (xscale-coff-vxworks, xscale-wrs-vxworks): New new cases.
* fixinc/fixinc.copy: New file.
* fixinc/mkfixinc.sh (*-vxworks*): New case, using above.

From-SVN: r66661

21 years agore PR c++/9252 ([New parser] Errors due to legally used "typename")
Kriang Lerdsuwanakij [Sat, 10 May 2003 11:29:53 +0000 (11:29 +0000)]
re PR c++/9252 ([New parser] Errors due to legally used "typename")

PR c++/9252
* cp-tree.h (saved_scope): Remove check_access field.
(tsubst_flags_t): Remove tf_parsing.
* decl.c (maybe_push_to_top_level): Don't initialize
scope_chain->check_access.
(make_typename_type, make_unbound_class_template): Don't use
tf_parsing.
(register_dtor_fn): Use push/pop_deferring_access_checks
instead of scope_chain->check_access.
* method.c (use_thunk): Likewise.
* parser.c (cp_parser_explicit_instantiation
(cp_parser_constructor_declarator_p): Don't call
push/pop_deferring_access_checks here.
(cp_parser_template_argument, cp_parser_class_name): Don't use
tf_parsing.
(yyparse): Check flag_access_control.
* pt.c (instantiate_class_template): Call
push/pop_deferring_access_checks.
* semantics.c (push_deferring_access_checks): Propagate
dk_no_check.
(perform_or_defer_access_check): Make sure basetype_path is
a type before comparison.
* call.c (build_op_delete_call, build_over_call): Use
perform_or_defer_access_check.
* class.c (alter_access): Likewise.
* init.c (build_offset_ref): Likewise.
* lex.c (do_identifier): Likewise.
* method.c (hack_identifier): Likewise.
* search.c (lookup_member): Likewise.
* semantics.c (finish_non_static_data_member): Likewise.
(simplify_aggr_init_exprs_r): Use push/pop_deferring_access_checks
instead of flag_access_control.

* g++.dg/parse/access8.C: New test.
* g++.dg/parse/access9.C: New test.

From-SVN: r66660

21 years agore PR c++/9554 (Out of class declaration of member class template specialisation...
Kriang Lerdsuwanakij [Sat, 10 May 2003 11:06:26 +0000 (11:06 +0000)]
re PR c++/9554 (Out of class declaration of member class template specialisation rejected)

PR c++/9554
* parser.c (cp_parser_class_name): Remove check_access parameter.
All caller adjusted.  Update declaration.
(cp_parser_lookup_name): Likewise.
* semantics.c (push_deferring_access_checks): Change parameter type
to enum deferring_kind.  All caller adjusted.
(resume_deferring_access_checks): Adjust to use new enum.
(stop_deferring_access_checks): Likewise.
(perform_or_defer_access_check): Likewise.
* cp-tree.h (deferring_kind): New enum.
(deferred_access): Adjust field type.
(push_deferring_access_checks): Update declaration.

* g++.dg/parse/access1.C: New test.

From-SVN: r66659

21 years agoButtonUI.java, [...]: New versions from classpath.
Michael Koch [Sat, 10 May 2003 08:14:36 +0000 (08:14 +0000)]
ButtonUI.java, [...]: New versions from classpath.

2003-05-10  Michael Koch  <konqueror@gmx.de>

* javax/swing/plaf/ButtonUI.java,
javax/swing/plaf/ColorUIResource.java,
javax/swing/plaf/ComponentUI.java,
javax/swing/plaf/DimensionUIResource.java,
javax/swing/plaf/FontUIResource.java,
javax/swing/plaf/IconUIResource.java,
javax/swing/plaf/InsetsUIResource.java,
javax/swing/plaf/LabelUI.java,
javax/swing/plaf/ListUI.java,
javax/swing/plaf/OptionPaneUI.java,
javax/swing/plaf/PanelUI.java,
javax/swing/plaf/TabbedPaneUI.java,
javax/swing/plaf/TextUI.java,
javax/swing/plaf/TreeUI.java,
javax/swing/plaf/ViewportUI.java,
javax/swing/plaf/basic/BasicBorders.java,
javax/swing/plaf/basic/BasicButtonUI.java,
javax/swing/plaf/basic/BasicCheckBoxUI.java,
javax/swing/plaf/basic/BasicDefaults.java,
javax/swing/plaf/basic/BasicGraphicsUtils.java,
javax/swing/plaf/basic/BasicIconFactory.java,
javax/swing/plaf/basic/BasicLabelUI.java,
javax/swing/plaf/basic/BasicListUI.java,
javax/swing/plaf/basic/BasicOptionPaneUI.java,
javax/swing/plaf/basic/BasicPanelUI.java,
javax/swing/plaf/basic/BasicRadioButtonUI.java,
javax/swing/plaf/basic/BasicScrollPaneUI.java,
javax/swing/plaf/basic/BasicTabbedPaneUI.java,
javax/swing/plaf/basic/BasicTextUI.java,
javax/swing/plaf/basic/BasicToggleButtonUI.java,
javax/swing/plaf/basic/BasicTreeUI.java,
javax/swing/plaf/basic/BasicViewportUI.java,
javax/swing/plaf/metal/MetalLookAndFeel.java:
New versions from classpath. This adds copyrights to all files and
some serialVersionUIDs.

From-SVN: r66658

21 years ago2003-05-10 Michael Koch <konqueror@gmx.de>
Michael Koch [Sat, 10 May 2003 07:50:00 +0000 (07:50 +0000)]
2003-05-10  Michael Koch  <konqueror@gmx.de>

* java/nio/CharBuffer.java
(offset): Make it package-private.
(backing_buffer): Likewise.
* java/nio/DoubleBuffer.java
(offset): Make it package-private.
(backing_buffer): Likewise.
(put): Reformatted.
* java/nio/FloatBuffer.java
(offset): Make it package-private.
(backing_buffer): Likewise.
* java/nio/IntBuffer.java
(offset): Make it package-private.
(backing_buffer): Likewise.
* java/nio/LongBuffer.java
(offset): Make it package-private.
(backing_buffer): Likewise.
* java/nio/ShortBuffer.java
(offset): Make it package-private.
(backing_buffer): Likewise.

From-SVN: r66657

21 years ago2003-05-10 Michael Koch <konqueror@gmx.de>
Michael Koch [Sat, 10 May 2003 07:41:59 +0000 (07:41 +0000)]
2003-05-10  Michael Koch  <konqueror@gmx.de>

* java/nio/CharBuffer.java
(put): Fixed precondtion check.
(toString): Make it work without backing array.
(put): Skip one level of method calling.

From-SVN: r66656

21 years agoIdentity.java, [...]: New versions from classpath.
Michael Koch [Sat, 10 May 2003 07:12:48 +0000 (07:12 +0000)]
Identity.java, [...]: New versions from classpath.

2003-05-10  Michael Koch  <konqueror@gmx.de>

* java/security/Identity.java,
java/security/IdentityScope.java,
java/security/Key.java,
java/security/KeyPair.java,
java/security/PrivateKey.java,
java/security/Provider.java,
java/security/PublicKey.java,
java/security/SecureRandom.java,
java/security/SecureRandomSpi.java,
java/security/SignedObject.java,
java/security/Signer.java,
java/security/cert/Certificate.java,
java/security/cert/PKIXCertPathBuilderResult.java,
java/security/cert/X509Certificate.java:
New versions from classpath.

From-SVN: r66655

21 years agoalpha.c (alpha_start_function): Declare frame_size as unsigned to avoid signed/unsign...
Roger Sayle [Sat, 10 May 2003 02:05:36 +0000 (02:05 +0000)]
alpha.c (alpha_start_function): Declare frame_size as unsigned to avoid signed/unsigned comparison warnings.

* config/alpha/alpha.c (alpha_start_function): Declare frame_size
as unsigned to avoid signed/unsigned comparison warnings.

From-SVN: r66654

21 years agostdarg1.C: Make sure arg "3" is passed as a long, and not an int.
DJ Delorie [Sat, 10 May 2003 01:07:38 +0000 (21:07 -0400)]
stdarg1.C: Make sure arg "3" is passed as a long, and not an int.

* g++.dg/other/stdarg1.C: Make sure arg "3" is passed as a
long, and not an int.

From-SVN: r66653

21 years agoDaily bump.
GCC Administrator [Sat, 10 May 2003 00:16:13 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r66651

21 years agoxtensa.c (xtensa_emit_loop_end): Only use "nop.n" instruction if the Xtensa density...
Bob Wilson [Fri, 9 May 2003 23:36:39 +0000 (23:36 +0000)]
xtensa.c (xtensa_emit_loop_end): Only use "nop.n" instruction if the Xtensa density option is enabled.

        * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
        instruction if the Xtensa density option is enabled.

From-SVN: r66649

21 years agoTreelang fixes including built failures on PPC and others.
Tim Josling [Fri, 9 May 2003 21:43:54 +0000 (21:43 +0000)]
Treelang fixes including built failures on PPC and others.

From-SVN: r66647

21 years agomklibgcc.in: Remove extra quotes.
Matt Kraai [Fri, 9 May 2003 20:14:52 +0000 (20:14 +0000)]
mklibgcc.in: Remove extra quotes.

2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>

       * mklibgcc.in: Remove extra quotes.

From-SVN: r66644

21 years agors6000.c (spe_init_builtins): Fix typo in creation of int_ftype_void.
Mark Mitchell [Fri, 9 May 2003 19:32:30 +0000 (19:32 +0000)]
rs6000.c (spe_init_builtins): Fix typo in creation of int_ftype_void.

* config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
of int_ftype_void.

From-SVN: r66642

21 years agoMakefile.in: Rebuilt.
Tom Tromey [Fri, 9 May 2003 19:16:54 +0000 (19:16 +0000)]
Makefile.in: Rebuilt.

* Makefile.in: Rebuilt.
* Makefile.am (nat_source_files): Removed old files.
* gnu/java/nio/natDoubleBufferImpl.cc: Removed.
* gnu/java/nio/natFloatBufferImpl.cc: Removed.
* gnu/java/nio/natIntBufferImpl.cc: Removed.
* gnu/java/nio/natLongBufferImpl.cc: Removed.
* gnu/java/nio/natShortBufferImpl.cc: Removed.

From-SVN: r66640

21 years agovxxscale.h, [...]: New files.
Olivier Hainque [Fri, 9 May 2003 19:06:56 +0000 (21:06 +0200)]
vxxscale.h, [...]: New files.

* config/arm/vxxscale.h, config/arm/vxxscale-coff.h: New files.
* config/arm/vxxscale-elf.h, config/arm/t-vxxscale-elf: Likewise.
* config.gcc (xscale-coff-vxworks, xscale-wrs-vxworks): New new cases.
* fixinc/fixinc.copy: New file.
* fixinc/mkfixinc.sh (*-vxworks*): New case, using above.

From-SVN: r66639

21 years agoreload1.c (reload_cse_move2add): Don't turn an implicit truncation into a self-set...
Alexandre Oliva [Fri, 9 May 2003 17:16:54 +0000 (17:16 +0000)]
reload1.c (reload_cse_move2add): Don't turn an implicit truncation into a self-set in the narrow mode.

* reload1.c (reload_cse_move2add): Don't turn an implicit
truncation into a self-set in the narrow mode.

From-SVN: r66638

21 years ago* arm.md (clzsi2): The CLZ instruction is predicable.
Richard Earnshaw [Fri, 9 May 2003 17:10:30 +0000 (17:10 +0000)]
* arm.md (clzsi2): The CLZ instruction is predicable.

From-SVN: r66637

21 years ago* config/xtensa/xtensa.c: Formatting.
Bob Wilson [Fri, 9 May 2003 16:05:46 +0000 (16:05 +0000)]
* config/xtensa/xtensa.c: Formatting.

From-SVN: r66636

21 years agotree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS...
Diego Novillo [Fri, 9 May 2003 15:37:08 +0000 (15:37 +0000)]
tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS...

* tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
instead of TREE_OPERAND to access the operand of a
CONSTRUCTOR node.

From-SVN: r66635

21 years agoPR c++/10555, c++/10576
Kriang Lerdsuwanakij [Fri, 9 May 2003 15:10:28 +0000 (15:10 +0000)]
PR c++/10555, c++/10576

PR c++/10555, c++/10576
* pt.c (lookup_template_class): Handle class template with
multiple levels of parameters when one of the levels contain
errors.

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

From-SVN: r66634

21 years agoupdate_version (ADD_BRANCHES): Add, set to MAIN and tree-ssa-20020619-branch.
Gerald Pfeifer [Fri, 9 May 2003 15:05:41 +0000 (15:05 +0000)]
update_version (ADD_BRANCHES): Add, set to MAIN and tree-ssa-20020619-branch.

* update_version (ADD_BRANCHES): Add, set to MAIN and
tree-ssa-20020619-branch.
(BRANCHES): Always consider branches given by $ADD_BRANCHES.

From-SVN: r66633

21 years agotree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only one operand.
Diego Novillo [Fri, 9 May 2003 13:27:19 +0000 (13:27 +0000)]
tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only one operand.

* tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
one operand.

From-SVN: r66630

21 years agotoplev.h (warning_with_file_and_line): Don't declare.
Gabriel Dos Reis [Fri, 9 May 2003 10:08:19 +0000 (10:08 +0000)]
toplev.h (warning_with_file_and_line): Don't declare.

* toplev.h (warning_with_file_and_line): Don't declare.
(error_with_file_and_line): Likewise.
* diagnostic.c (error_with_file_and_line): Remove.
(warning_with_file_and_line): Likewise.

From-SVN: r66628

21 years agoc-parse.in (if_stmt_locus): New object.
Gabriel Dos Reis [Fri, 9 May 2003 09:25:34 +0000 (09:25 +0000)]
c-parse.in (if_stmt_locus): New object.

* c-parse.in (if_stmt_locus): New object.
(if_prefix rule): Use it.  Don't use warning_with_file_and_line.
(select_or_iter_stmt rule): Likewise.
(if_stmt_file): Remove.
(if_stmt_line): Likewise.
* jump.c: include "diagnostic.h"
(never_reached_warning): Don't use warning_with_file_and_line.
* Makefile.in (jump.o): Add dependce on diagnostic.h

From-SVN: r66627

21 years ago2003-05-09 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 9 May 2003 07:55:59 +0000 (07:55 +0000)]
2003-05-09  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/ByteBufferImpl.java
(nio_cast): Removed.
(ByteBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
(asCharBuffer): Removed implementation and throw exception.
(asShortBuffer): Likewise.
(asIntBuffer): Likewise.
(asLongBuffer): Likewise.
(asFloatBuffer): Likewise.
(asDoubleBuffer): Likewise.
* gnu/java/nio/CharBufferImpl.java
(CharBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
* gnu/java/nio/DoubleBufferImpl.java
(DoubleBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
* gnu/java/nio/FloatBufferImpl.java
(FloatBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
* gnu/java/nio/IntBufferImpl.java
(IntBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
* gnu/java/nio/LongBufferImpl.java
(LongBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
* gnu/java/nio/ShortBufferImpl.java
(ShortBufferImpl): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
(asByteBuffer): Removed.
* gnu/java/nio/natByteBufferImpl.cc
(nio_cast): Removed.
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.
* gnu/java/nio/natCharBufferImpl.cc
(nio_get_Byte): Removed.
(nio_put_Byte): Removed.

From-SVN: r66626

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

* java/net/JarURLConnection.java
(getJarEntry): Merged documentation from classpath.
(getJarFile): Likewise.
(getMainAttributes): Likewise.
(getAttributes): Likewise.
(getManifest): Likewise.
(getCertificates): Reformatted.
* java/net/URLConnection.java:
Little classpath merge.

From-SVN: r66625

21 years ago2003-05-09 Michael Koch <konqueror@gmx.de>
Michael Koch [Fri, 9 May 2003 07:10:58 +0000 (07:10 +0000)]
2003-05-09  Michael Koch  <konqueror@gmx.de>

* java/io/DataOutputStream.java
(writeShort): Made it synchronized.
(writeChar): Likewise.
(writeInt): Likewise.
(writeLong): Liekwise.
(writeUTF): Made it synchronized, renamed argument to match classpath.
* java/io/InputStreamReader.java
(converter): Added documentation.
(read): Merged documentation from classpath.
* java/io/OutputStreamWriter.java
(OutputStreamWriter): Merged documentation from classpath.
(close): Reformatted.
(getEncoding): Likewise.
(flush): Likewise.
(write): Merged documentation from classpath, reformatted.

From-SVN: r66624

21 years agoexpr.c (move_block_from_reg): Remove "size" parm.
Alan Modra [Fri, 9 May 2003 06:37:25 +0000 (06:37 +0000)]
expr.c (move_block_from_reg): Remove "size" parm.

* expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
Move code handling pieces not larger than a word to..
* function.c (assign_parms): ..here, but use change_address instead
of adjust_address and operand_subword, and expand_binop instead of
expand_shift.  Adjust calls to move_block_from_reg.
* expr.h (move_block_from_reg): Update declaration.
(copy_blkmode_from_reg): Formatting.
* Makefile.in (function.o): Add $(OPTABS_H) to deps.
* config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
move_block_from_reg calls.
* config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
* config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
* config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
* config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
* config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
* config/pa/pa.c (hppa_builtin_saveregs): Likewise.
* config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
* config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
* config/sh/sh.c (sh_builtin_saveregs): Likewise.

From-SVN: r66623

21 years agoDaily bump.
GCC Administrator [Fri, 9 May 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r66621

21 years agostormy16.c (xstormy16_expand_builtin_va_arg): Fix to handle arguments for which MUST_...
DJ Delorie [Fri, 9 May 2003 00:00:44 +0000 (20:00 -0400)]
stormy16.c (xstormy16_expand_builtin_va_arg): Fix to handle arguments for which MUST_PASS_IN_STACK is true (e.g....

* config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
variable-sized types).
(xstormy16_function_arg): New.  Pass them that way too.
* config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
* config/stormy16/stormy16.h (FUNCTION_ARG): Call it.

From-SVN: r66619

21 years ago20020404-1.x: New, skip for 16-bit targets.
DJ Delorie [Thu, 8 May 2003 23:38:04 +0000 (19:38 -0400)]
20020404-1.x: New, skip for 16-bit targets.

* gcc.c-torture/execute/20020404-1.x: New, skip for 16-bit
targets.
* gcc.c-torture/execute/20021024-1.x: Likewise.
* gcc.c-torture/execute/shiftdi.x: Likewise.
* g++.old-deja/g++.mike/p700.C: Handle 16-bit targets.
* g++.old-deja/g++.other/exprstmt1.C: Likewise.
* gcc.dg/20021018-1.c: Likewise.

From-SVN: r66618

21 years agoSolaris 7 .register fix.
Jeff Sturm [Thu, 8 May 2003 20:41:24 +0000 (20:41 +0000)]
Solaris 7 .register fix.

From-SVN: r66617

21 years agomklibgcc.in: Use mkinstalldirs when installing multilib directories.
Aldy Hernandez [Thu, 8 May 2003 20:10:57 +0000 (20:10 +0000)]
mklibgcc.in: Use mkinstalldirs when installing multilib directories.

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

        * mklibgcc.in: Use mkinstalldirs when installing multilib
        directories.

From-SVN: r66613

21 years agosh.c (gen_block_redirect, [...]): Use CODE_FOR_jump_compact instead of CODE_FOR_jump
J"orn Rennecke [Thu, 8 May 2003 19:36:55 +0000 (19:36 +0000)]
sh.c (gen_block_redirect, [...]): Use CODE_FOR_jump_compact instead of CODE_FOR_jump

* sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
instead of CODE_FOR_jump

From-SVN: r66611

21 years agoconfigure.host: Set with_libffi_default and libgcj_interpreter to "yes".
Tom Tromey [Thu, 8 May 2003 18:53:44 +0000 (18:53 +0000)]
configure.host: Set with_libffi_default and libgcj_interpreter to "yes".

* configure.host <powerpc64*-*>: Set with_libffi_default and
libgcj_interpreter to "yes".

From-SVN: r66609

21 years agonatGC.cc (drawString): Removed obsolete code.
Scott Gilbertson [Thu, 8 May 2003 18:51:51 +0000 (18:51 +0000)]
natGC.cc (drawString): Removed obsolete code.

2003-05-08  Scott Gilbertson  <scottg@mantatest.com>

* gnu/gcj/xlib/natGC.cc (drawString): Removed obsolete code.

From-SVN: r66608

21 years agoobjc-act.c (error_with_ivar): Don't use error_with_file_and_line.
Gabriel Dos Reis [Thu, 8 May 2003 17:32:30 +0000 (17:32 +0000)]
objc-act.c (error_with_ivar): Don't use error_with_file_and_line.

* objc/objc-act.c (error_with_ivar): Don't use
error_with_file_and_line.
(warn_with_method): Don't use warning_with_file_and_line.

From-SVN: r66607

21 years agostmt.c (emit_locus): New macro.
Gabriel Dos Reis [Thu, 8 May 2003 17:09:09 +0000 (17:09 +0000)]
stmt.c (emit_locus): New macro.

* stmt.c (emit_locus): New macro.
(emit_filename): Remove.
(emit_lineno): Likewise.
(struct stmt_status): Replace members x_emit_filename and
x_emit_lineno with x_emit_locus.
(set_file_and_line_for_stmt): Adjust.
(expand_expr_stmt_value): Don't use warning_with_file_and_file.
(warn_if_unused_value): Likewise.
(check_seenlabel): Likewise.

From-SVN: r66603

21 years agoFix an entry.
David O'Brien [Thu, 8 May 2003 16:27:20 +0000 (16:27 +0000)]
Fix an entry.

From-SVN: r66602

21 years ago* g++.dg/other/packed1.C: Mark xfail for sparc*- not sparc-.
Kaveh R. Ghazi [Thu, 8 May 2003 15:10:01 +0000 (15:10 +0000)]
* g++.dg/other/packed1.C: Mark xfail for sparc*- not sparc-.

From-SVN: r66601

21 years agoc-decl.c (define_label): Tidy.
Gabriel Dos Reis [Thu, 8 May 2003 15:04:44 +0000 (15:04 +0000)]
c-decl.c (define_label): Tidy.

* c-decl.c (define_label): Tidy.  Don't use any of
error_with_file_and_line or warning_with_file_and_file.
(pending_xref_error): Likewise.
(store_parm_decls): Likewise.
(current_function_prototype_locus): New object.  Package from
current_function_prototype_file and current_function_prototype_line.
(start_function): Use it.
(current_function_prototype_file): Remove.
(current_function_prototype_line): Remove;

From-SVN: r66599

21 years agobuiltins.c (readonly_data_expr): New function.
Kaveh R. Ghazi [Thu, 8 May 2003 13:45:38 +0000 (13:45 +0000)]
builtins.c (readonly_data_expr): New function.

gcc:
* builtins.c (readonly_data_expr): New function.
(expand_builtin_memmove): Optimize any rodata source, not just
strings.

testsuite
gcc.c-torture/execute/string-opt-19.c: Add general rodata tests.
(bcopy): Call memmove.

From-SVN: r66597

21 years agore PR fortran/8485 (g77 doesn't accept INTEGER*8 constant in PARAMETER multiplication)
Roger Sayle [Thu, 8 May 2003 13:13:59 +0000 (13:13 +0000)]
re PR fortran/8485 (g77 doesn't accept INTEGER*8 constant in PARAMETER multiplication)

PR fortran/8485
* target.h (FFETARGET_REAL_VALUE_FROM_INT_): Cast to
HOST_WIDE_INT instead of long.
(FFETARGET_REAL_VALUE_FROM_LONGLONG_): New macro.
(FFETARGET_LONGLONG_FROM_INTS_): New macro.
(ffetarget_convert_complex1_integer4): Implement.
(ffetarget_convert_complex2_integer4): Implement.
(ffetarget_convert_integer4_complex1): Implement.
(ffetarget_convert_integer4_complex2): Implement.
(ffetarget_convert_integer4_real1): Implement.
(ffetarget_convert_integer4_real2): Implement.
(ffetarget_convert_real1_integer4): Implement.
(ffetarget_convert_real2_integer4): Implement.
* com.c (ffecom_constantunion): Handle INTEGER*8.
(ffecom_constantunion_with_type): Likewise.

* g77.f-torture/compile/8485.f: New test case.

From-SVN: r66596

21 years agostd_streambuf.h (setg, setp): Don't touch _M_mode.
Paolo Carlini [Thu, 8 May 2003 11:47:45 +0000 (13:47 +0200)]
std_streambuf.h (setg, setp): Don't touch _M_mode.

2003-05-08  Paolo Carlini  <pcarlini@unitus.it>

* include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.

From-SVN: r66595

21 years agoinit.c (build_new_1): Don't reuse a TARGET_EXPR in an expression.
Jason Merrill [Thu, 8 May 2003 05:58:44 +0000 (01:58 -0400)]
init.c (build_new_1): Don't reuse a TARGET_EXPR in an expression.

        * init.c (build_new_1): Don't reuse a TARGET_EXPR in an
        expression.  Undo some of the recent reorg.

From-SVN: r66594

21 years ago* unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
David Mosberger [Thu, 8 May 2003 01:15:40 +0000 (01:15 +0000)]
* unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.

From-SVN: r66590

21 years agoi386.c (ix86_split_long_move): Fix base register mode for XFmode splits for TARGET_64BIT.
Richard Henderson [Thu, 8 May 2003 00:51:15 +0000 (17:51 -0700)]
i386.c (ix86_split_long_move): Fix base register mode for XFmode splits for TARGET_64BIT.

        * config/i386/i386.c (ix86_split_long_move): Fix base register
        mode for XFmode splits for TARGET_64BIT.

From-SVN: r66589

21 years agosched-ebb.c (schedule_ebb): Supply the correct starting block number to save_line_notes.
Richard Henderson [Thu, 8 May 2003 00:18:48 +0000 (17:18 -0700)]
sched-ebb.c (schedule_ebb): Supply the correct starting block number to save_line_notes.

        * sched-ebb.c (schedule_ebb): Supply the correct starting
        block number to save_line_notes.

From-SVN: r66588

21 years agotoplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
Richard Henderson [Thu, 8 May 2003 00:16:31 +0000 (17:16 -0700)]
toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.

        * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
        (dump_file): Likewise.

From-SVN: r66587

21 years agoDaily bump.
GCC Administrator [Thu, 8 May 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r66586

21 years agocrtbegin.asm (__do_jv_register_classes): Don't forget to preserve gp.
David Mosberger [Wed, 7 May 2003 22:29:33 +0000 (22:29 +0000)]
crtbegin.asm (__do_jv_register_classes): Don't forget to preserve gp.

        * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
        forget to preserve gp.
        * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.

        * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
        .prologue directive.
        Use .skip instead of data8 for .bss section to make Intel
        Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
        explicit in the .mib bundles and remove the unnecessary stop
        bits.  Replace local labels with normal labels, to make ias
        happy.  Don't register __do_global_ctors_aux here, do it in
        crtend.asm instead.

        * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
        __do_global_ctors_aux in .init_array section instead of
        declaring it as a hidden global.  Replace local labels with
        ordinary labels to make ias happy.

From-SVN: r66584

21 years agoexcept.c: Revert 04-01 and 04-02 forced-unwind changes.
Richard Henderson [Wed, 7 May 2003 22:11:38 +0000 (15:11 -0700)]
except.c: Revert 04-01 and 04-02 forced-unwind changes.

gcc/
        * except.c: Revert 04-01 and 04-02 forced-unwind changes.
        * flags.h, toplev.c, doc/invoke.texi: Likewise.

        * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
        * unwind.inc (_Unwind_DeleteException): Check for null
        exception_cleanup.

        * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
        * unwind.inc (_Unwind_Resume_or_Rethrow): New.
        * unwind.h: Declare them.
        * libgcc-std.ver (GCC_3.3): Export them.

gcc/cp/
        * cfns.gperf: Comment out POSIX thread cancellation points,
        plus abort and raise.
        * cfns.h: Regenerate.

gcc/testsuite/
        * g++.dg/eh/forced1.C: Expect catch-all handlers to run.
        Verify exception_cleanup not called for rethrows.
        * g++.dg/eh/forced2.C: Test that exception_cleanup is called
        when exiting catch block without rethrowing.
        * g++.dg/eh/forced3.C: New.
        * g++.dg/eh/forced4.C: New.

libstdc++-v3/
        * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
        (__cxa_end_catch): Likewise.
        * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise.  Use
        _Unwind_Resume_or_Rethrow.
        * libsupc++/eh_personality.cc (empty_exception_spec): New.
        (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
        for _UA_FORCE_UNWIND.  Honor empty filter spec for foreign
        exceptions.  Don't push terminate/unexpected to cxa functions.
        (__cxa_call_unexpected): Remove foreign exception fixmes.

From-SVN: r66583

21 years agoFix typo in last changelog entry.
Richard Henderson [Wed, 7 May 2003 22:03:58 +0000 (15:03 -0700)]
Fix typo in last changelog entry.

From-SVN: r66582

21 years agounwind-dw2.c (_Unwind_GetGR): Cast pointer to _Unwind_Ptr, not _Unwind_Word.
Richard Henderson [Wed, 7 May 2003 22:01:37 +0000 (15:01 -0700)]
unwind-dw2.c (_Unwind_GetGR): Cast pointer to _Unwind_Ptr, not _Unwind_Word.

        * unwind-dw2.c (_Unwind_GetGR): Cast pointer to _Unwind_Ptr,
        not _Unwind_Word.

From-SVN: r66581

21 years agocons: New.
Benjamin Kosnik [Wed, 7 May 2003 21:27:29 +0000 (21:27 +0000)]
cons: New.

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

* testsuite/27_io/ios_base/cons: New.
* testsuite/27_io/ios_base/cons/assign_neg.cc: New.
* testsuite/27_io/ios_base/cons/copy_neg.cc: New.

From-SVN: r66580

21 years agostmt.c (force_label_rtx): New function, based on logic formerly found in expand_expr.
Zack Weinberg [Wed, 7 May 2003 21:14:48 +0000 (21:14 +0000)]
stmt.c (force_label_rtx): New function, based on logic formerly found in expand_expr.

* stmt.c (force_label_rtx): New function, based on logic
formerly found in expand_expr.
* expr.h: Prototype it.
* expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
appropriate.
* varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.

* print-tree.c (debug_tree): Free the table after we're done
with it.  Use putc.

treelang:
* Make-lang.in: Set -Wno-error for treelang/lex.o.

From-SVN: r66579

21 years agos/burtle/iterative
Jason Merrill [Wed, 7 May 2003 20:30:32 +0000 (16:30 -0400)]
s/burtle/iterative

From-SVN: r66577

21 years agofix typo
Aldy Hernandez [Wed, 7 May 2003 20:05:27 +0000 (20:05 +0000)]
fix typo

From-SVN: r66576

21 years ago200305051.c: Fix triplet.
Aldy Hernandez [Wed, 7 May 2003 20:02:34 +0000 (20:02 +0000)]
200305051.c: Fix triplet.

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

        * gcc.dg/200305051.c: Fix triplet.

From-SVN: r66573

21 years agospe.h: Reverse arguments for __ev_subfw.
Aldy Hernandez [Wed, 7 May 2003 18:20:08 +0000 (18:20 +0000)]
spe.h: Reverse arguments for __ev_subfw.

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

        * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
        Unreverse arguments for __ev_subw.

        * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.

From-SVN: r66570

21 years agosplay-tree.c (splay_tree_predecessor): Fix comment.
Josef Zlomek [Wed, 7 May 2003 18:19:36 +0000 (20:19 +0200)]
splay-tree.c (splay_tree_predecessor): Fix comment.

* splay-tree.c (splay_tree_predecessor): Fix comment.
(splay_tree_successor): Fix comment.

From-SVN: r66569