platform/upstream/gcc.git
21 years agofile should have been named i386-pentium4-not-mull.c, not i386-pentium4-no-mull.c.
Andrew Pinski [Wed, 16 Jul 2003 20:07:50 +0000 (13:07 -0700)]
file should have been named i386-pentium4-not-mull.c, not i386-pentium4-no-mull.c.

From-SVN: r69478

21 years agoc.opt: Document more options.
Neil Booth [Wed, 16 Jul 2003 19:49:51 +0000 (19:49 +0000)]
c.opt: Document more options.

* c.opt: Document more options.
cp:
* lang-options.h: Remove.

From-SVN: r69477

21 years agocombine.c (subst): Also handle (subreg (const_double ...)) case if created by a subst...
Roger Sayle [Wed, 16 Jul 2003 19:36:38 +0000 (19:36 +0000)]
combine.c (subst): Also handle (subreg (const_double ...)) case if created by a substitution...

* combine.c (subst): Also handle (subreg (const_double ...)) case
if created by a substitution, by using the original inner mode.

From-SVN: r69476

21 years agosimplify-rtx.c (simplify_replace_rtx): Convert constant comparisons to MODE_FLOAT...
Roger Sayle [Wed, 16 Jul 2003 19:34:50 +0000 (19:34 +0000)]
simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons to MODE_FLOAT constants if...

* simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
(simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.

From-SVN: r69475

21 years agoinstall.texi (--without-headers): New.
Andrew Pinski [Wed, 16 Jul 2003 19:28:43 +0000 (19:28 +0000)]
install.texi (--without-headers): New.

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

* doc/install.texi (--without-headers): New.

From-SVN: r69474

21 years agoPartial Fix PR/10129
Andrew Pinski [Wed, 16 Jul 2003 19:05:53 +0000 (19:05 +0000)]
Partial Fix PR/10129

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

        Partial Fix PR/10129
        * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
        (machopic_output_function_base_name): New; print the true pic label.
        (machopic_classify_ident): Pic Base is always a defined data.
        * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
        * config/darwin-proto.h (machopic_output_function_base_name): Prototype.

From-SVN: r69472

21 years agogcse.c (gcse_constant_p): COMPARE of the same registers is a constant if...
Andrew Pinski [Wed, 16 Jul 2003 18:58:12 +0000 (18:58 +0000)]
gcse.c (gcse_constant_p): COMPARE of the same registers is a constant if...

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

* gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
if they are not floating point registers.

From-SVN: r69471

21 years agore PR c/10962 (lookup_field is a linear search on a linked list (can be slow if large...
Andrew Pinski [Wed, 16 Jul 2003 18:45:56 +0000 (18:45 +0000)]
re PR c/10962 (lookup_field is a linear search on a linked list (can be slow if large struct))

2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
ChangeLog:
        PR c/10962
        * ggc.h: Add header guards.
        * c-decl.c (finish_struct): Sort fields if
        number greater than 15 and there are no
        anonymous structs/unions.
        * c-common.h: Include ggc.h.
        (sorted_fields_type): New struct.
        (field_decl_cmp): New prototype.
        (resort_sorted_fields): New prototype.
        (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
        * c-tree.h: (lang_type): Use pointer to sorted_fields_type
        as s, removing other fields.
        * c-typeck.c (lookup_field): Use s in lang_type.
        These were mostly moved from cp/class.c:
        * c-common.c (field_decl_cmp): New static function.
        (field_decl_cmp): New function.
        (resort_sorted_fields): New function.
cp/ChangeLog:
        * class.c (field_decl_cmp): Remove.
        (resort_field_decl_cmp): Remove.
        (resort_sorted_fields): Remove.
        (add_fields_to_vec): Rename to ...
        (add_fields_to_record_type): this.
        (finish_struct_1): Change to be using
        sorted_fields_type's fields.
        * cp-tree.h (lang_decl): In lang_decl_u3
        change sorted_fields to be a pointer to
        sorted_fields_type.
        (resort_sorted_fields): Remove prototype.
        * search.c (lookup_field_1): Change to be using
        sorted_fields_type's fields.

From-SVN: r69470

21 years agore PR target/11008 (improper multiply optimization for pentium4)
Andrew Pinski [Wed, 16 Jul 2003 18:23:32 +0000 (18:23 +0000)]
re PR target/11008 (improper multiply optimization for pentium4)

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

        PR target/11008
        * gcc.dg/i386-pentium4-not-mull.c: New.

From-SVN: r69469

21 years agodarwin.c (machopic_select_section): Use decl_readonly_section to do most of the work.
Geoffrey Keating [Wed, 16 Jul 2003 18:18:00 +0000 (18:18 +0000)]
darwin.c (machopic_select_section): Use decl_readonly_section to do most of the work.

* config/darwin.c (machopic_select_section): Use decl_readonly_section
to do most of the work.

From-SVN: r69468

21 years agoMAINTAINERS: Move self from Bug database only accounts to write-after-approval.
Andrew Pinski [Wed, 16 Jul 2003 18:15:22 +0000 (11:15 -0700)]
MAINTAINERS: Move self from Bug database only accounts to write-after-approval.

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

        * MAINTAINERS: Move self from Bug database only accounts
        to write-after-approval.

From-SVN: r69467

21 years agommix-protos.h: Convert prototypes to ISO C90.
Hans-Peter Nilsson [Wed, 16 Jul 2003 17:44:59 +0000 (17:44 +0000)]
mmix-protos.h: Convert prototypes to ISO C90.

* config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
* config/mmix/mmix.c: Convert functions to ISO C90.
   (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
formatting.
(mmix_get_hard_reg_initial_val): Tweak section head comment.

From-SVN: r69466

21 years agohowto.html: Update URL for SGI STL docs.
Jonathan Wakely [Wed, 16 Jul 2003 17:06:36 +0000 (18:06 +0100)]
howto.html: Update URL for SGI STL docs.

2003-07-16  Jonathan Wakely  <redi@gcc.gnu.org>

* docs/html/ext/howto.html: Update URL for SGI STL docs.
* docs/html/faq/index.html: Same.
* docs/html/faq/index.txt: Regenerate.

From-SVN: r69463

21 years agoc-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
J"orn Rennecke [Wed, 16 Jul 2003 16:25:15 +0000 (16:25 +0000)]
c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.

gcc:
* c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
gcc/testsuite:
* gcc.dg/asm-names.c (ymain): Make it weak.

From-SVN: r69459

21 years agore PR libstdc++/11528 (money_get does not get "$.00")
Paolo Carlini [Wed, 16 Jul 2003 16:12:47 +0000 (18:12 +0200)]
re PR libstdc++/11528 (money_get does not get "$.00")

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

PR libstdc++/11528
* include/bits/locale_facets.tcc (money_get::do_get):
Strip only _leading_ zeros.
* testsuite/22_locale/money_get/get/char/11528.cc: Add.
* testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.

From-SVN: r69458

21 years agore PR c++/5421 (friends+templates: ICE: expected identifier_node, have template_id_ex...
Kriang Lerdsuwanakij [Wed, 16 Jul 2003 15:42:15 +0000 (15:42 +0000)]
re PR c++/5421 (friends+templates: ICE: expected identifier_node, have template_id_expr in grokfndecl, at cp/decl.c:8835)

PR c++/5421
* decl.c (grokdeclarator): Handle TEMPLATE_ID_EXPR if friend
is a member of other class.
* friend.c (do_friend): Don't build TEMPLATE_DECL if friend
is a specialization of function template.

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

From-SVN: r69457

21 years agohash_map (class hash_multimap): Remove extra semicolons from __glibcxx_class_requires...
Gerald Pfeifer [Wed, 16 Jul 2003 14:23:08 +0000 (16:23 +0200)]
hash_map (class hash_multimap): Remove extra semicolons from __glibcxx_class_requires3 entries.

* include/ext/hash_map (class hash_multimap): Remove extra
semicolons from __glibcxx_class_requires3 entries.
* include/ext/hash_set (class hash_set): Ditto.
(class hash_multiset): Ditto.

From-SVN: r69451

21 years agounwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
Jakub Jelinek [Wed, 16 Jul 2003 11:52:55 +0000 (13:52 +0200)]
unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.

* unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
(uw_update_context_1): Use it.
* config/rs6000/rs6000.c (insn_after_throw): Remove.
(rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
in parent frame if _Unwind_* called directly instead of through
.plt.
(rs6000_emit_eh_toc_restore): Remove.
(rs6000_emit_prologue): Update stack pointer before doing any saving
if current_function_calls_eh_return.  Generate unwind info for $r2.
(rs6000_emit_epilogue): Restore stack pointer after doing all
restoring if current_function_calls_eh_return.  Restore $r2.
* config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
* config/rs6000/rs6000.md (eh_return): Remove call to
rs6000_emit_eh_toc_restore.
* config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
* config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.

* gcc.dg/cleanup-8.c: New test.
* gcc.dg/cleanup-9.c: New test.

From-SVN: r69450

21 years agoexpr.c (emit_block_move): Don't move anything if size is const 0.
Jakub Jelinek [Wed, 16 Jul 2003 11:07:54 +0000 (13:07 +0200)]
expr.c (emit_block_move): Don't move anything if size is const 0.

* expr.c (emit_block_move): Don't move anything if size is const 0.
(clear_storage): Test against const0_rtx instead of comparing INTVAL
against 0.

From-SVN: r69441

21 years agosparc.c (sparc_nonflat_function_epilogue): Only emit nop if the last real insn is...
David S. Miller [Wed, 16 Jul 2003 08:36:27 +0000 (01:36 -0700)]
sparc.c (sparc_nonflat_function_epilogue): Only emit nop if the last real insn is CALL_INSN.

2003-07-15  David S. Miller  <davem@redhat.com>

* config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
emit nop if the last real insn is CALL_INSN.

From-SVN: r69440

21 years ago* config.if: Remove unused libc_interface determination.
Nathanael Nerode [Wed, 16 Jul 2003 06:34:53 +0000 (06:34 +0000)]
* config.if: Remove unused libc_interface determination.

From-SVN: r69439

21 years agore PR c++/10903 ([3.3 only] g++ says: "error: object ``type_decl' not supported by...
Gabriel Dos Reis [Wed, 16 Jul 2003 01:43:26 +0000 (01:43 +0000)]
re PR c++/10903 ([3.3 only] g++ says: "error: object ``type_decl' not supported by dump_expr")

        PR c++/10903
        * pt.c (convert_nontype_argument): Fix thinko in diagnostic.
        Improve.

From-SVN: r69435

21 years agoxm-mingw32.h (HOST_BIT_BUCKET): Define as "nul".
Danny Smith [Wed, 16 Jul 2003 01:27:03 +0000 (01:27 +0000)]
xm-mingw32.h (HOST_BIT_BUCKET): Define as "nul".

* config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
as "nul".
* config/i386/xm-mingw32.h: Change GNU CC to GCC.

From-SVN: r69434

21 years agodll-MI1.h: New file.
Danny Smith [Wed, 16 Jul 2003 01:12:19 +0000 (01:12 +0000)]
dll-MI1.h: New file.

* g++.dg/ext/dll-MI1.h: New file.
* g++.dg/ext/dllexport-MI1.C: New file.
* g++.dg/ext/dllimport-MI1.C: New file.

ChangeLog: Remove 'testsuite/' from 2003-07-04 entry.

From-SVN: r69432

21 years agowinnt.c (associated_type): Artificial methods are not affected by the import/export...
Danny Smith [Wed, 16 Jul 2003 01:04:10 +0000 (01:04 +0000)]
winnt.c (associated_type): Artificial methods are not affected by the import/export status of their class...

* config/i386/winnt.c (associated_type): Artificial methods are not
affected by the import/export status of their class unless they are
COMDAT.
(i386_pe_dllimport_p): Do not mark artificial methods as dllimport.

* config/i386/winnt.c: Fix GCC copyright comment.

From-SVN: r69431

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

From-SVN: r69429

21 years agocp-tree.def (LOOKUP_EXPR): Remove.
Mark Mitchell [Wed, 16 Jul 2003 00:09:45 +0000 (00:09 +0000)]
cp-tree.def (LOOKUP_EXPR): Remove.

* cp-tree.def (LOOKUP_EXPR): Remove.
* cp-tree.h (cp_id_kind): Add CP_ID_KIND_UNQUALIFIED_DEPENDENT.
(LOOKUP_EXPR_GLOBAL): Remove.
(get_bindings): Remove.
(is_aggr_type_2): Remove.
* call.c (resolved_scoped_fn_name): Remove support for
LOOKUP_EXPR.
* decl.c (grokfndecl): Likewise.
(grokdeclarator): Likewise.
* error.c (dump_decl): Likewise.
(dump_expr): Likewise.
* friend.c (do_friend): Likewise.
* init.c (build_offset_ref): Likewise.
* lex.c (unqualified_fn_lookup_error): Use pedwarn.  Do not create
LOOKUP_EXPRs
* mangle.c (write_expression): Remove support for LOOKUP_EXPR.
* parser.c (cp_parser_postfix_expression): Modify Koenig lookup
test.
* pt.c (get_bindings): Give it internal linkage.
(check_explicit_specialization): Remove support for LOOKUP_EXPR.
(lookup_template_function): Likewise.
(for_each_tempalte_parm_r): Likewise.
(tsubst_decl): Likewise.
(tsubst_qualified_id): Handle template template parameters.
(tsubst_copy): Remove support for LOOKUP_EXPR.
(tsubst_copy_and_build): Likewise.
(most_general_template): Likewise.
(value_dependent_expression_p): Likewise.
(type_dependent_expression_p): Note that IDENTIFIER_NODEs are
always dependent.
* semantics.c (perform_koenig_lookup): Do not create
IDENTIFIER_NODEs.
(finish_fname): Likewise.
(finish_id_expression): Likewise.
* tree.c (is_aggr_type_2): Remove.

From-SVN: r69427

21 years agore PR c++/11531 (ICE on invalid code (returning to void))
Gabriel Dos Reis [Tue, 15 Jul 2003 23:31:52 +0000 (23:31 +0000)]
re PR c++/11531 (ICE on invalid code (returning to void))

        PR c++/11531
        * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
        not recursing on hard error.
        (diagnostic_for_decl): Likewise.
        * diagnostic.def: Rearrange.

cp/
        * typeck.c (check_return_expr): Fix thinko in diagnostic.

From-SVN: r69425

21 years agodwarf2out.c (expand_builtin_init_dwarf_reg_sizes): If DWARF_FRAME_RETURN_COLUMN doesn...
J"orn Rennecke [Tue, 15 Jul 2003 22:49:07 +0000 (22:49 +0000)]
dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.

2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>

* dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.

2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
    Richard Henderson  <rth@redhat.com>

* unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
to decide if to access a _Unwind_Ptr or a _Unwind_Word.
(_Unwind_SetGR): Likewise.
(_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
(Unwind_SpTmp): New typedef.
(uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
(uw_update_context): Use _Unwind_GetPtr.
(init_dwarf_reg_size_table): Move above uw_init_context_1.
(uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
Use _Unwind_SetSpColumn.
(uw_install_context_1): Don't initialize dwarf_reg_size_table.
Use _Unwind_GetPtr.

Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r69424

21 years agoc.opt: Document more options.
Neil Booth [Tue, 15 Jul 2003 22:19:44 +0000 (22:19 +0000)]
c.opt: Document more options.

* c.opt: Document more options.
* toplev.c (documented_lang_options): Remove all local help strings.
treelang:
* lang-options.h: Remove.
* lang.opt: Document some options.  Remove --help.
* tree1.c (treelang_handle_option): Remove OPT__help case.

From-SVN: r69423

21 years agostring-opt-8.c (main): Remove i370 and s390, it does not have cmpstrsi patterns ...
Jakub Jelinek [Tue, 15 Jul 2003 21:26:36 +0000 (23:26 +0200)]
string-opt-8.c (main): Remove i370 and s390, it does not have cmpstrsi patterns (just cmpmemsi).

* gcc.c-torture/execute/string-opt-8.c (main): Remove i370 and s390,
it does not have cmpstrsi patterns (just cmpmemsi).

From-SVN: r69422

21 years agochar_traits.h (char_traits<wchar_t>::move): Change last parameter from int_type to...
Petur Runolfsson [Tue, 15 Jul 2003 17:30:10 +0000 (17:30 +0000)]
char_traits.h (char_traits<wchar_t>::move): Change last parameter from int_type to size_t.

2003-07-15  Petur Runolfsson  <peturr02@ru.is>

* include/bits/char_traits.h (char_traits<wchar_t>::move):
Change last parameter from int_type to size_t.

From-SVN: r69415

21 years agore PR debug/11473 (ICE with -gstabs when empty struct inheits from an empty struct)
Mark Mitchell [Tue, 15 Jul 2003 16:56:49 +0000 (16:56 +0000)]
re PR debug/11473 (ICE with -gstabs when empty struct inheits from an empty struct)

PR debug/11473
* dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
base classes.

PR debug/11473
* g++.dg/debug/debug8.C: New test.

From-SVN: r69414

21 years agoRotate ChangeLog.
Kazu Hirata [Tue, 15 Jul 2003 16:06:59 +0000 (16:06 +0000)]
Rotate ChangeLog.

From-SVN: r69411

21 years agore PR c++/10108 (tree checking ICE: expected var_decl, have error_mark in tsubst_decl)
Kriang Lerdsuwanakij [Tue, 15 Jul 2003 15:28:38 +0000 (15:28 +0000)]
re PR c++/10108 (tree checking ICE: expected var_decl, have error_mark in tsubst_decl)

PR c++/10108
* pt.c (tsubst_decl) <TEMPLATE_DECL>: Add a check for
error_mark_node.

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

From-SVN: r69409

21 years agore PR target/10795 (ICE in extract_insn, at recog.c:2188)
Kazu Hirata [Tue, 15 Jul 2003 13:44:50 +0000 (13:44 +0000)]
re PR target/10795 (ICE in extract_insn, at recog.c:2188)

PR target/10795
* gcc.c-torture/compile/20030708-1.c: New.

From-SVN: r69408

21 years agore PR target/10795 (ICE in extract_insn, at recog.c:2188)
Kazu Hirata [Tue, 15 Jul 2003 13:42:39 +0000 (13:42 +0000)]
re PR target/10795 (ICE in extract_insn, at recog.c:2188)

PR target/10795
* config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
swap comparison operands if doing so would generate an
unrecognizable insn.

From-SVN: r69407

21 years agoFix formatting.
Eric Botcazou [Tue, 15 Jul 2003 13:12:18 +0000 (13:12 +0000)]
Fix formatting.

From-SVN: r69404

21 years agore PR rtl-optimization/11320 (Scheduler bug)
Eric Botcazou [Tue, 15 Jul 2003 13:02:21 +0000 (15:02 +0200)]
re PR rtl-optimization/11320 (Scheduler bug)

PR optimization/11320
* sched-int.h (struct deps) [reg_conditional_sets]: New field.
(struct sched_info) [compute_jump_reg_dependencies]: New prototype.
* sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
current_sched_info->compute_jump_reg_dependencies. Record which
registers are used and which registers are set by the jump.
Clear deps->reg_conditional_sets after a barrier.
Set deps->reg_conditional_sets if the insn is a COND_EXEC.
Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
(init_deps): Initialize reg_conditional_sets.
(free_deps): Clear reg_conditional_sets.
* sched-ebb.c (compute_jump_reg_dependencies): New prototype.
Mark registers live on entry of the fallthrough block and conditionally
set as set by the jump. Mark registers live on entry of non-fallthrough
blocks as used by the jump.
* sched-rgn.c (compute_jump_reg_dependencies): New prototype.
Mark new parameters as unused.

From-SVN: r69401

21 years ago* texi2pod.pl: Default @itemize's parameter to @bullet.
Matt Kraai [Tue, 15 Jul 2003 09:24:07 +0000 (09:24 +0000)]
* texi2pod.pl: Default @itemize's parameter to @bullet.

From-SVN: r69399

21 years ago* doc/invoke.texi: Resync MIPS -march documentation.
Richard Sandiford [Tue, 15 Jul 2003 08:58:33 +0000 (08:58 +0000)]
* doc/invoke.texi: Resync MIPS -march documentation.

From-SVN: r69398

21 years agomips.h (PROCESSOR_R9000): New processor_type.
Richard Sandiford [Tue, 15 Jul 2003 08:44:26 +0000 (08:44 +0000)]
mips.h (PROCESSOR_R9000): New processor_type.

* config/mips/mips.h (PROCESSOR_R9000): New processor_type.
(TARGET_MIPS9000, TUNE_MIPS9000): New macros.
(GENERATE_MULT3_SI): True for TARGET_MIPS9000.
* config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
(mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
(mips_issue_rate): Handle PROCESSOR_R9000.
(mips_use_dfa_pipeline_interface): Likewise.
* config/mips/9000.md: New file.
* config/mips/mips.md: Include it.
(define_attr cpu): Add r9000.
(mulsi3_mult3): Use "mul" for rm9000 code.

From-SVN: r69397

21 years agomips.h (PROCESSOR_R7000): New processor_type.
Stan Cox [Tue, 15 Jul 2003 08:34:54 +0000 (08:34 +0000)]
mips.h (PROCESSOR_R7000): New processor_type.

* config/mips/mips.h (PROCESSOR_R7000): New processor_type.
(TARGET_MIPS7000, TUNE_MIPS7000): New macros.
(GENERATE_MULT3_SI): True for TARGET_MIPS7000.
* config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
(mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
(mips_issue_rate): Handle PROCESSOR_R7000.
(mips_use_dfa_pipeline_interface): Likewise.
* config/mips/7000.md: New file.
* config/mips/mips.md: Include it.
(define_attr cpu): Add r7000.
(mulsi3_mult3): Use "mul" for rm7000 code.

From-SVN: r69394

21 years agomips.md (define_attr type): Add condmove.
Richard Sandiford [Tue, 15 Jul 2003 08:16:44 +0000 (08:16 +0000)]
mips.md (define_attr type): Add condmove.

* config/mips/mips.md (define_attr type): Add condmove.  Use it for
the conditional move patterns.
* config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
Check for condmove type.
(ir_vr54_arith): Add move type.
* config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
* config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.

From-SVN: r69389

21 years agostl_algo.h (includes, [...]): Document.
Jerry Quinn [Tue, 15 Jul 2003 07:30:29 +0000 (07:30 +0000)]
stl_algo.h (includes, [...]): Document.

2003-07-15  Jerry Quinn  <jlquinn@optonline.net>

* include/bits/stl_algo.h (includes, set_union, set_intersection,
        set_difference, set_symmetric_difference, max_element, min_element,
        next_permutation, prev_permutation, find_first_of, find_end):
        Document.
* include/bits/stl_algobase.h (copy,copy_backward):  Clarify overlap
        restrictions in docs.
* include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
        Document.
* docs/doxygen/doxygroups.cc (setoperations):  New group.

From-SVN: r69387

21 years agobasic_string.h: Document public functions.
Jerry Quinn [Tue, 15 Jul 2003 07:02:40 +0000 (07:02 +0000)]
basic_string.h: Document public functions.

2003-07-15  Jerry Quinn  <jlquinn@optonline.net>

        * include/bits/basic_string.h:  Document public functions.
* docs/doxygen/TODO:  Update c21 todo.

From-SVN: r69386

21 years agostl_list.h: Document more functions.
Jerry Quinn [Tue, 15 Jul 2003 06:15:57 +0000 (06:15 +0000)]
stl_list.h: Document more functions.

2003-07-15  Jerry Quinn  <jlquinn@optonline.net>

        *  include/bits/stl_list.h:  Document more functions.
* docs/doxygen/TODO:  Update c23 todo.

From-SVN: r69385

21 years agoc-opts.c (print_help): Remove.
Neil Booth [Tue, 15 Jul 2003 05:48:16 +0000 (05:48 +0000)]
c-opts.c (print_help): Remove.

* c-opts.c (print_help): Remove.
(c_common_handle_option): Don't handle --help.
* c.opt: Document some options.
(--help): Remove.
* opts.c (print_filtered_help): New.
(print_help): Use it.

From-SVN: r69383

21 years agoc-common.c (c_common_type_for_mode): Handle V4DFmode.
Geoffrey Keating [Tue, 15 Jul 2003 05:44:30 +0000 (05:44 +0000)]
c-common.c (c_common_type_for_mode): Handle V4DFmode.

* c-common.c (c_common_type_for_mode): Handle V4DFmode.
* tree.c: (build_common_tree_nodes_2): Likewise.
* tree.h (enum tree_index): Add TI_V4DF_TYPE.
(V4DF_type_node): New.

From-SVN: r69382

21 years agoc-opts.c (push_command_line_include): Don't free deferred_opts, we'll need it.
Geoffrey Keating [Tue, 15 Jul 2003 05:36:25 +0000 (05:36 +0000)]
c-opts.c (push_command_line_include): Don't free deferred_opts, we'll need it.

* c-opts.c (push_command_line_include): Don't free deferred_opts,
we'll need it.
(finish_options): Reset init_cursor.

From-SVN: r69381

21 years ago* expr.c: Remove the last argument to expand_assignment().
Kazu Hirata [Tue, 15 Jul 2003 05:32:21 +0000 (05:32 +0000)]
* expr.c: Remove the last argument to expand_assignment().

From-SVN: r69380

21 years agoexpr.c (expand_assignment): Remove an unused argument SUGGEST_REG.
Kazu Hirata [Tue, 15 Jul 2003 05:31:44 +0000 (05:31 +0000)]
expr.c (expand_assignment): Remove an unused argument SUGGEST_REG.

* expr.c (expand_assignment): Remove an unused argument
SUGGEST_REG.
* expr.h: Update the prototype.
* function.c: Update the callers.
* stmt.c: Likewise.

From-SVN: r69379

21 years agoinline-3.c: New file.
Geoffrey Keating [Tue, 15 Jul 2003 05:21:37 +0000 (05:21 +0000)]
inline-3.c: New file.

* gcc.dg/pch/inline-3.c: New file.
* gcc.dg/pch/inline-3.hs: New file.
* gcc.dg/pch/inline-4.c: New file.
* gcc.dg/pch/inline-4.hs: New file.

From-SVN: r69378

21 years agore PR debug/11098 ([dwarf2] g++ doesn't emit complete debugging information for local...
Mark Mitchell [Tue, 15 Jul 2003 01:04:21 +0000 (01:04 +0000)]
re PR debug/11098 ([dwarf2] g++ doesn't emit complete debugging information for local variables in destructors)

PR debug/11098
* integrate.c (copy_decl_for_inlining): Do not mark copied decls
as DECL_ABSTRACT.

From-SVN: r69374

21 years agoinclhack.def (avoid_bool_define, [...]): Bypass with __cplusplus, not "we must use...
Nathanael Nerode [Tue, 15 Jul 2003 00:43:24 +0000 (00:43 +0000)]
inclhack.def (avoid_bool_define, [...]): Bypass with __cplusplus, not "we must use the C++ compiler's type"

* fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
with __cplusplus, not "we must use the C++ compiler's type"
* fixinc/inclhack.def (void_null): Note that Interix needs this.
* fixinc/fixincl.x: Regenerate.

From-SVN: r69373

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

From-SVN: r69368

21 years agounwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects and unseen_objects...
Geoffrey Keating [Mon, 14 Jul 2003 23:04:30 +0000 (23:04 +0000)]
unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects and unseen_objects from the global data before calling...

* unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
and unseen_objects from the global data before calling
__deregister_frame_info_bases.
(examine_objects): Insert objects into the seen_objects list,
not unseen_objects.
(_Unwind_Find_FDE): Always unlock the global object lists, even if
we couldn't allocate a data structure to put in it.

From-SVN: r69366

21 years agoobjc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
Geoffrey Keating [Mon, 14 Jul 2003 21:35:37 +0000 (21:35 +0000)]
objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.

* objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
(TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
(SET_TYPE_PROTOCOL_LIST): New.
* objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
(get_object_reference): Likewise.

From-SVN: r69364

21 years agore PR c++/11509 (ICE with expression with static member in template arg)
Mark Mitchell [Mon, 14 Jul 2003 21:32:26 +0000 (21:32 +0000)]
re PR c++/11509 (ICE with expression with static member in template arg)

PR c++/11509
* pt.c (dependent_scope_ref_p): New function.
(value_dependent_expression_p): Use it.
(type_dependent_expression_p): Likewise.

* pt.c (tsubst_friend_function): Use reregister_specialization.

PR c++/11509
* g++.dg/template/crash6.C: New test.

From-SVN: r69363

21 years agocfglayout.c (locator_file): Break out from ....
Jan Hubicka [Mon, 14 Jul 2003 21:18:15 +0000 (23:18 +0200)]
cfglayout.c (locator_file): Break out from ....

* cfglayout.c (locator_file): Break out from ....
(insn_file): ... here.
(locator_line): Break out from ....
(insn_line): ... here.
* rtl.h (locator_file, locator_line): Declare.
(final_start_function): Set proper line/file info.

From-SVN: r69359

21 years ago*** empty log message ***
Gabriel Dos Reis [Mon, 14 Jul 2003 20:52:04 +0000 (20:52 +0000)]
*** empty log message ***

From-SVN: r69358

21 years agomips.c (mips_expand_prologue): Use a single insn to allocate 32768 bytes of stack.
Richard Sandiford [Mon, 14 Jul 2003 20:41:27 +0000 (20:41 +0000)]
mips.c (mips_expand_prologue): Use a single insn to allocate 32768 bytes of stack.

* config/mips/mips.c (mips_expand_prologue): Use a single insn to
allocate 32768 bytes of stack.  Use addition rather than subtraction
when a single insn is enough.
* config/mips/mips.md: Remove insns and splitters for subtracting
constants.
(subsi3): Only accept register operands.
(subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
(subdi3_internal_3, subsi3_internal_2): Likewise.
(casesi): Use expand_binop to subtract the lower bound.

From-SVN: r69357

21 years agomips.c (mips_in_small_data_p): Don't handle TARGET_MIPS16 specially.
Richard Sandiford [Mon, 14 Jul 2003 20:36:28 +0000 (20:36 +0000)]
mips.c (mips_in_small_data_p): Don't handle TARGET_MIPS16 specially.

* config/mips/mips.c (mips_in_small_data_p): Don't handle
TARGET_MIPS16 specially.

From-SVN: r69356

21 years agoelf.h (ASM_OUTPUT_ALIGNED_BSS): Use mips_output_aligned_bss.
Richard Sandiford [Mon, 14 Jul 2003 20:29:34 +0000 (20:29 +0000)]
elf.h (ASM_OUTPUT_ALIGNED_BSS): Use mips_output_aligned_bss.

* config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
mips_output_aligned_bss.
* config/mips/linux.h: Likewise.
* config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
* config/mips/mips.c (mips_output_aligned_bss): New function.

From-SVN: r69355

21 years agoelf.h (DBX_DEBUGGING_INFO): Delete.
Richard Sandiford [Mon, 14 Jul 2003 20:25:55 +0000 (20:25 +0000)]
elf.h (DBX_DEBUGGING_INFO): Delete.

* config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
* config/mips/elf64.h: Likewise.

From-SVN: r69354

21 years agoc_locale.h (__convert_from_v): One more qualification.
Paolo Carlini [Mon, 14 Jul 2003 20:24:18 +0000 (22:24 +0200)]
c_locale.h (__convert_from_v): One more qualification.

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

* config/locale/gnu/c_locale.h (__convert_from_v): One more
qualification.

From-SVN: r69353

21 years agoelf.h (ASM_DECLARE_OBJECT_NAME): Use mips_declare_object_name.
Richard Sandiford [Mon, 14 Jul 2003 20:23:38 +0000 (20:23 +0000)]
elf.h (ASM_DECLARE_OBJECT_NAME): Use mips_declare_object_name.

* config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
mips_declare_object_name.
(ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
* config/mips/elf64.h: As for elf.h.
* config/mips/iris6.h: Likewise.
* config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
* config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
do...while (0) block.
* config/mips/mips-protos.h (mips_declare_object_name): Declare.
(mips_finish_declare_object): Declare.
* config/mips/mips.c (mips_declare_object_name): New function.
(mips_finish_declare_object): New function.

From-SVN: r69352

21 years agore PR c++/7053 (ICE when declaring a function already defined as a friend method...
Mark Mitchell [Mon, 14 Jul 2003 20:20:27 +0000 (20:20 +0000)]
re PR c++/7053 (ICE when declaring a function already defined as a friend method of a template class)

PR c++/7053
* g++.dg/template/friend20.C: New test.

From-SVN: r69351

21 years agoelf.h (SBSS_SECTION_ASM_OP): Delete.
Richard Sandiford [Mon, 14 Jul 2003 20:19:26 +0000 (20:19 +0000)]
elf.h (SBSS_SECTION_ASM_OP): Delete.

* config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
* config/mips/linux.h: Likewise.

From-SVN: r69350

21 years agomips.c (inside_function): Delete.
Richard Sandiford [Mon, 14 Jul 2003 20:15:47 +0000 (20:15 +0000)]
mips.c (inside_function): Delete.

* config/mips/mips.c (inside_function): Delete.
(file_in_function_warning, ignore_line_number): Delete.
(mips_output_filename): Don't warn about changing filenames within
a function.
(mips_output_lineno): Update accordingly.
(mips_output_function_prologue): Don't reset the deleted variables.
* config/mips/mips.h (inside_function): Delete.
(file_in_function_warning, ignore_line_number): Delete.

From-SVN: r69348

21 years agostl_tempbuf.h: Qualify free with std::.
Paolo Carlini [Mon, 14 Jul 2003 20:14:49 +0000 (22:14 +0200)]
stl_tempbuf.h: Qualify free with std::.

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

* include/bits/stl_tempbuf.h: Qualify free with std::.
* src/locale.cc: Include <cstdlib>, qualify getenv.

From-SVN: r69347

21 years agoelf.h (OBJECT_FORMAT_COFF, [...]): Remove undefs.
Richard Sandiford [Mon, 14 Jul 2003 20:12:07 +0000 (20:12 +0000)]
elf.h (OBJECT_FORMAT_COFF, [...]): Remove undefs.

* config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
* config/mips/elf64.h: Likewise.
* config/mips/openbsd.h: Likewise.
* config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
* config/mips/linux.h: Likewise.
* config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
(CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.

From-SVN: r69346

21 years agoconfig.gcc (mips-sgi-irix6*o32, [...]): Add mips/sdb.h to the list of include files...
Richard Sandiford [Mon, 14 Jul 2003 20:09:20 +0000 (20:09 +0000)]
config.gcc (mips-sgi-irix6*o32, [...]): Add mips/sdb.h to the list of include files when using gas.

* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
to the list of include files when using gas.
(mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
* config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
* config/mips/elf64.h: Likewise.
* config/mips/iris5.h: Likewise.
* config/mips/linux.h: Likewise.
* config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
* config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
(SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
* config/mips/sdb.h: ...this new file.

From-SVN: r69345

21 years ago* lang-specs.h (f77-cpp-input): Use -o to specify the CPP output file.
Geoffrey Keating [Mon, 14 Jul 2003 20:03:44 +0000 (20:03 +0000)]
* lang-specs.h (f77-cpp-input): Use -o to specify the CPP output file.

From-SVN: r69344

21 years agoc_locale.h (__convert_from_v): Include <cstdio>.
Paolo Carlini [Mon, 14 Jul 2003 19:46:29 +0000 (21:46 +0200)]
c_locale.h (__convert_from_v): Include <cstdio>.

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

* config/locale/gnu/c_locale.h (__convert_from_v): Include
<cstdio>. Qualify names.
* config/locale/generic/c_locale.h (__convert_from_v): Ditto.

From-SVN: r69343

21 years agore PR c++/7019 ([3.3 only] SFINAE does not work with explicitally specified template...
Mark Mitchell [Mon, 14 Jul 2003 19:05:05 +0000 (19:05 +0000)]
re PR c++/7019 ([3.3 only] SFINAE does not work with explicitally specified template arguments)

PR c++/7019
* cp-tree.h (lookup_qualified_name): Adjust prototype.
* decl.c (lookup_qualified_name): Add complain parameter.  Adjust
call to is_aggr_type.
* parser.c (cp_parser_lookup_name): Adjust call to
lookup_qualified_name.
* pt.c (tsubst_qualified_id): Likewise.
(tsubst_copy_and_build): Likewise.
* semantics.c (finish_qualified_id_expr): Deal with erroneous
expressions.

PR c++/7019
* g++.dg/template/overload2.C: New test.

From-SVN: r69342

21 years agoNathan C.
Paolo Carlini [Mon, 14 Jul 2003 18:23:12 +0000 (20:23 +0200)]
Nathan C.

2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
    Nathan C. Myers  <ncm-nospam@cantrip.org>

PR libstdc++/11378
* include/std/std_fstream.h (xsputn): Declare only.
* include/bits/fstream.tcc (xsputn): Define, optimize for the
always_noconv() case: when __n is sufficiently large flush
the buffer and issue a direct write, if possible combining the
two with writev in __basic_file<>::xsputn_2.
* config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
New, declare.
* config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
Define.
* acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
the availability of writev in <sys/uio.h>.
* configure.in: Call here.
* acconfig.h: Add undef for the corresponding symbol.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* config.h.in: Regenerate.
* testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.

* include/std/std_fstream.h (sync): Constify a variable.

Co-Authored-By: Nathan C. Myers <ncm-nospam@cantrip.org>
From-SVN: r69341

21 years agore PR c++/11510 (Error message with operator __imag__ is missing spaces)
Gabriel Dos Reis [Mon, 14 Jul 2003 17:45:08 +0000 (17:45 +0000)]
re PR c++/11510 (Error message with operator __imag__ is missing spaces)

PR c++/11510
* call.c (op_error): Properly handle REALPART_EXPR
  and IMAGPART_EXPR.
* error.c (dump_expr): Likewise.

From-SVN: r69340

21 years ago[multiple changes]
Nathanael Nerode [Mon, 14 Jul 2003 16:56:03 +0000 (16:56 +0000)]
[multiple changes]

2003-07-14  Douglas Rupp  <rupp@gnat.com>

* fixinc/server.c (server_setup): Don't use non-POSIX NULL first
argument to getcwd; use fixed buffer instead.

2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>

* fixinc/mkfixinc.sh: Treat OpenBSD normally.
* fixinc/fixinc.wrap: Delete.

From-SVN: r69339

21 years ago* error.c (dump_expr): Handle EMPTY_CLASS_EXPR.
Gabriel Dos Reis [Mon, 14 Jul 2003 16:09:58 +0000 (16:09 +0000)]
* error.c (dump_expr): Handle EMPTY_CLASS_EXPR.

From-SVN: r69338

21 years agore PR rtl-optimization/11440 (gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse...
Franz Sirl [Mon, 14 Jul 2003 16:03:29 +0000 (16:03 +0000)]
re PR rtl-optimization/11440 (gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it)

2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

PR optimization/11440
* gcc.c-torture/execute/20030714-1.c: New test.

From-SVN: r69334

21 years agoMAINTAINERS: Move self from write-after-approval to build machinery (*.in).
Nathanael Nerode [Mon, 14 Jul 2003 15:42:43 +0000 (15:42 +0000)]
MAINTAINERS: Move self from write-after-approval to build machinery (*.in).

* MAINTAINERS: Move self from write-after-approval to
build machinery (*.in).

From-SVN: r69333

21 years agore PR c++/5293 (confusing message when binding a temporary to a reference)
Gabriel Dos Reis [Mon, 14 Jul 2003 15:04:32 +0000 (15:04 +0000)]
re PR c++/5293 (confusing message when binding a temporary to a reference)

PR c++/5293
* call.c (initialize_reference): Improve diagnostic.

From-SVN: r69332

21 years agoassign_neg.cc: Fix line numbers.
Benjamin Kosnik [Mon, 14 Jul 2003 14:47:03 +0000 (14:47 +0000)]
assign_neg.cc: Fix line numbers.

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

* testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.

From-SVN: r69331

21 years agoggc-page.c (extra_order_size_table): Insns have 9 slots.
Gerald Pfeifer [Mon, 14 Jul 2003 13:36:56 +0000 (13:36 +0000)]
ggc-page.c (extra_order_size_table): Insns have 9 slots.

* ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
don't have 2.

* ggc-page.c (struct globals): Add new fields to keep track of the
total allocated memory and overhead.
(ggc_print_statistics): Print them.
(ggc_alloc): Keep track of the total allocated memory and the
overhead.

* tree.c (dump_tree_statistics): Increase spacing.
(enum tree_node_kind): Move to ...
* tree.h (enum tree_node_kind): ... here.
(tree_node_counts, tree_node_sizes): Declare.

* doc/include/texinfo.tex: Upgrade to texinfo 4.6.

From-SVN: r69330

21 years agoInclude <cstring> and <cstdlib>.
Gabriel Dos Reis [Mon, 14 Jul 2003 13:32:26 +0000 (13:32 +0000)]
Include <cstring> and <cstdlib>.

From-SVN: r69329

21 years agore PR c++/11154 (spurious ambiguity report for template class specialization)
Kriang Lerdsuwanakij [Mon, 14 Jul 2003 10:48:59 +0000 (10:48 +0000)]
re PR c++/11154 (spurious ambiguity report for template class specialization)

PR c++/11154
* pt.c (more_specialized_class): Add full_args parameter.
(most_specialized_class): Adjust calls to more_specialized_class.
* cp-tree.h (more_specialized_class): Adjust declaration.

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

From-SVN: r69328

21 years ago* lex.c (enum tree_node_kind): Delete.
Dan Nicolaescu [Mon, 14 Jul 2003 10:14:51 +0000 (10:14 +0000)]
* lex.c (enum tree_node_kind): Delete.

From-SVN: r69327

21 years agore PR rtl-optimization/11440 (gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse...
Franz Sirl [Mon, 14 Jul 2003 09:29:44 +0000 (09:29 +0000)]
re PR rtl-optimization/11440 (gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it)

2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

PR optimization/11440
* gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
SIGN_EXTRACT SETs.

From-SVN: r69325

21 years agoUnicastServerRef.java: New version from classpath.
Michael Koch [Mon, 14 Jul 2003 06:05:42 +0000 (06:05 +0000)]
UnicastServerRef.java: New version from classpath.

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

* gnu/java/rmi/server/UnicastServerRef.java:
New version from classpath.

From-SVN: r69322

21 years agoMemoryImageSource.java, [...]: New versions from classpath.
Michael Koch [Mon, 14 Jul 2003 05:33:30 +0000 (05:33 +0000)]
MemoryImageSource.java, [...]: New versions from classpath.

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

* java/awt/image/MemoryImageSource.java,
java/beans/PropertyEditorManager.java,
javax/naming/CompoundName.java,
javax/naming/spi/NamingManager.java,
javax/swing/AbstractButton.java,
javax/swing/ButtonModel.java,
javax/swing/SwingUtilities.java,
javax/swing/UIManager.java,
javax/swing/colorchooser/DefaultColorSelectionModel.java,
javax/swing/event/AncestorEvent.java,
javax/swing/event/InternalFrameEvent.java,
java/util/zip/ZipFile.java:
New versions from classpath.

From-SVN: r69321

21 years agotm.texi (BLOCK_REG_PADDING): Describe.
Alan Modra [Mon, 14 Jul 2003 05:17:18 +0000 (05:17 +0000)]
tm.texi (BLOCK_REG_PADDING): Describe.

* doc/tm.texi (BLOCK_REG_PADDING): Describe.
* expr.h (struct locate_and_pad_arg_data): Add where_pad.
(emit_group_load, emit_group_store): Adjust declarations.
Remove most occurrences of #ifdef TREE_CODE.
* expr.c (emit_group_load): Add "type" param, and use
BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
aligned accesses if !SLOW_UNALIGNED_ACCESS.
(emit_group_store): Likewise.
(emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
emit_group_load and emit_group_store calls.
* calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
BLOCK_REG_PADDING to determine whether we need endian_correction.
(load_register_parameters): Localize vars.  Handle shifting of
small values to the correct end of regs.  Adjust emit_group_load
call.
(expand_call, emit_library_call_value_1): Adjust emit_group_load
and emit_group_store calls.
* function.c (assign_parms): Set mem alignment for stack slots.
Adjust emit_group_store call.  Store values at the "wrong" end
of regs to the stack.  Use BLOCK_REG_PADDING.
(locate_and_pad_parm): Save where_pad.
(expand_function_end): Adjust emit_group_load call.
* stmt.c (expand_value_return): Adjust emit_group_load call.
* Makefile.in (calls.o): Depend on $(OPTABS_H).
* config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
(AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
(MUST_PASS_IN_STACK): Define.
(BLOCK_REG_PADDING): Define.
* config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
(PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
* config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
(function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
Act on AGGREGATES_PAD_UPWARD_ALWAYS.

From-SVN: r69318

21 years agore PR c++/11503 (segfault when instantiating template with ADDR_EXPR)
Mark Mitchell [Mon, 14 Jul 2003 05:12:56 +0000 (05:12 +0000)]
re PR c++/11503 (segfault when instantiating template with ADDR_EXPR)

PR c++/11503
* g++.dg/template/anon1.C: New test.

PR c++/11503
* cp-tree.h (DECL_SELF_REFERENCE_P): New macro.
(SET_DECL_SELF_REFERENCE_P): Likewise.
* class.c (build_self_reference): Use SET_DECL_SELF_REFERENCE_P.
* pt.c (tsubst_decl): Copy it.
* search.c (lookup_base): Use DECL_SELF_REFERENCE_P.

From-SVN: r69317

21 years agore PR c++/11493 (tree check ICE in error.c)
Mark Mitchell [Mon, 14 Jul 2003 03:04:29 +0000 (03:04 +0000)]
re PR c++/11493 (tree check ICE in error.c)

* cp-tree.h (cp_id_kind): New type.
(unqualified_name_lookup_error): Change prototype.
(unqualified_fn_lookup_error): New function.
(do_identifier): Remove.
(do_scoped_id): Likewise.
(tsubst_copy_and_build): Change prototype.
(reregister_specialization): New function.
(perform_koenig_lookup): Likewise.
(finish_id_expression): Likewise.
* call.c (build_method_call): Adjust call to
unqualified_name_lookup_error.
* decl.c (duplicate_decls): Use reregister_specialization.
* lex.c (is_global): Remove.
(unqualified_name_lookup_error): Return a value.
(do_identifier): Remove.
(do_scoped_id): Likewise.
(identifier_typedecl_value): Remove.
(unqualified_fn_lookup_error): New function.
* parser.c (cp_parser_id_kind): Remove.
(cp_parser_non_constant_id_expression): Remove.
(cp_parser_primary_expression): Use finish_id_expression.
(cp_parser_class_or_namespace_name): Use cp_id_kind, not
cp_parser_id_kind.
(cp_parser_postfix_expression): Use perform_koenig_lookup.
(cp_parser_template_argument): Use cp_id_kind.
(cp_parser_fold_non_dependent_expr): Adjust call to
tsubst_copy_and_build.
* pt.c (unregister_specialization): Rename to ...
(reregister_specialization): This.
(tsubst_friend_function): Use it.
(maybe_fold_nontype_arg): Adjust call to tsubst_copy_and_build.
(tsubst_qualified_id): Likewise.
(tsubst_expr): Likewise.
(tsubst_copy_and_build): Add function_p parameter.  Use
finish_id_expression.  Introduce RECUR macro.
(tsubst_non_call_postfix_expression): New function.
(regenerate_decl_from_template): Use reregister_specialization.
* semantics.c (perform_koenig_lookup): New function.
(finish_id_expression): Likewise.

PR c++/11493
PR c++/11495
* g++.dg/parse/template9.C: Likewise.
* g++.dg/template/crash4.C: New test.
* g++.dg/template/koenig1.C: Likewise.
* g++.old-deja/g++.benjamin/tem03.C: Adjust error markers.
* g++.old-deja/g++.benjamin/tem06.C: Declare "x".
* g++.old-deja/g++.jason/overload33.C: Use this-> when calling
functions.
* g++.old-deja/g++.jason/template36.C: Likewise.
* g++.old-deja/g++.mike/p1989.C: Likewise.
* g++.old-deja/g++.pt/lookup2.C: Use -fpermissive when compiling.
* g++.old-deja/g++.pt/ttp20.C: Use this->.
* g++.old-deja/g++.pt/ttp21.C: Use this->.
* g++.old-deja/g++.pt/typename13.C: Use -fpermissive when
compiling.
* g++.old-deja/g++.pt/union2.C: Use this->.

From-SVN: r69316

21 years agoc_locale.h: Include <cstdlib> and <cstring>.
Mark Mitchell [Mon, 14 Jul 2003 02:52:05 +0000 (02:52 +0000)]
c_locale.h: Include <cstdlib> and <cstring>.

* config/locale/generic/c_locale.h: Include <cstdlib> and
<cstring>.
* include/bits/boost_concept_check.h: Add this-> to unqualified
method calls.
* include/bits/deque.tcc: Likewise.
* include/bits/locale_facets.h : Likewise.
* include/bits/ostream.tcc: Likewise.
* include/bits/stl_algo.h: Likewise.
* include/bits/stl_bvector.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_tree.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/vector.tcc: Likewise.
* include/ext/rope: Likewise.
* include/ext/ropeimpl.h: Likewise.
* include/ext/stdio_filebuf.h: Likewise.

From-SVN: r69315

21 years agogthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
Aaron W. LaFramboise [Mon, 14 Jul 2003 02:12:15 +0000 (02:12 +0000)]
gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.

2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
* config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
(This was previously, erroneously listed as checked in on 2003-06-29)

From-SVN: r69313

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

From-SVN: r69311

21 years ago* libjava.verify/verify.exp: Fixed variable init.
Tom Tromey [Sun, 13 Jul 2003 23:33:02 +0000 (23:33 +0000)]
* libjava.verify/verify.exp: Fixed variable init.

From-SVN: r69309

21 years agoexpr.c (expand_expr, [...]): If reg...
Richard Kenner [Sun, 13 Jul 2003 23:21:23 +0000 (23:21 +0000)]
expr.c (expand_expr, [...]): If reg...

* expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.

From-SVN: r69308

21 years agogcc_release (announce_snapshot): Add substitution of @RELEASE@ for README and index...
Gerald Pfeifer [Sun, 13 Jul 2003 22:10:03 +0000 (00:10 +0200)]
gcc_release (announce_snapshot): Add substitution of @RELEASE@ for README and index.html.

* gcc_release (announce_snapshot): Add substitution of @RELEASE@
for README and index.html.
* snapshot-README: Use it.
* snapshot-index.html: Ditto.

From-SVN: r69307