platform/upstream/gcc.git
22 years agosem_warn.adb: Remove stuff for conditionals, we are not going to do this after all.
Robert Dewar [Wed, 5 Dec 2001 16:10:43 +0000 (16:10 +0000)]
sem_warn.adb: Remove stuff for conditionals, we are not going to do this after all.

* sem_warn.adb: Remove stuff for conditionals, we are not going to
do this after all.

* sem_warn.ads: Remove stuff for conditionals, we are not going to
do this after all.  Add 2001 to copyright notice

From-SVN: r47677

22 years agovms.h (ADA_LONG_TYPE_SIZE): New macro.
Richard Kenner [Wed, 5 Dec 2001 14:41:47 +0000 (14:41 +0000)]
vms.h (ADA_LONG_TYPE_SIZE): New macro.

* config/alpha/vms.h (ADA_LONG_TYPE_SIZE): New macro.
* doc/tm.texi (ADA_LONG_TYPE_SIZE): Document it.

From-SVN: r47676

22 years agogcse.c (store_killed_in_insn): Consider pure calls as potential store killers in...
Jakub Jelinek [Wed, 5 Dec 2001 14:17:49 +0000 (15:17 +0100)]
gcse.c (store_killed_in_insn): Consider pure calls as potential store killers in addition to normal calls.

* gcse.c (store_killed_in_insn): Consider pure calls
as potential store killers in addition to normal calls.

* gcc.c-torture/execute/20011024-1.c: New test.

From-SVN: r47675

22 years agoexpr.c (expand_expr): When checking promoted value, use DECL_MODE (exp) and not mode.
Jakub Jelinek [Wed, 5 Dec 2001 14:15:37 +0000 (15:15 +0100)]
expr.c (expand_expr): When checking promoted value, use DECL_MODE (exp) and not mode.

* expr.c (expand_expr): When checking promoted value, use
DECL_MODE (exp) and not mode.

* g++.dg/other/anon-union.C: New test.

From-SVN: r47674

22 years agoc-typeck.c (output_init_element): Call digest_init just once...
Jakub Jelinek [Wed, 5 Dec 2001 14:14:01 +0000 (15:14 +0100)]
c-typeck.c (output_init_element): Call digest_init just once...

* c-typeck.c (output_init_element): Call digest_init
just once, not in each if branch and check its return value for
error_mark_node.

* gcc.dg/noncompile/20011025-1.c: New test.

From-SVN: r47673

22 years agoDuh.
Jakub Jelinek [Wed, 5 Dec 2001 14:11:14 +0000 (15:11 +0100)]
Duh.

From-SVN: r47672

22 years agoc-decl.c (pushdecl): Only increase n_incomplete if pushed decl's type is RECORD_TYPE...
Jakub Jelinek [Wed, 5 Dec 2001 14:09:56 +0000 (15:09 +0100)]
c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's type is RECORD_TYPE...

* c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's
type is RECORD_TYPE, UNION_TYPE or ARRAY_TYPE thereof.
(finish_struct): Break the loop if n_incomplete went to 0.
For ARRAY_TYPE, if it is not TYPE_DECL, layout the decl too.

* gcc.c-torture/compile/20011130-1.c: New test.

From-SVN: r47671

22 years ago* config/alpha/alpha.c (alpha_va_start): Update VMS case.
Douglas B Rupp [Wed, 5 Dec 2001 12:48:34 +0000 (07:48 -0500)]
* config/alpha/alpha.c (alpha_va_start): Update VMS case.

From-SVN: r47670

22 years ago* configure, configure.in: Use temp file for long sed commands.
Douglas B Rupp [Wed, 5 Dec 2001 12:40:39 +0000 (07:40 -0500)]
* configure, configure.in: Use temp file for long sed commands.

From-SVN: r47669

22 years agovmsdbg.h, [...]: Add documentation and minor cleanups.
Richard Kenner [Wed, 5 Dec 2001 12:36:48 +0000 (12:36 +0000)]
vmsdbg.h, [...]: Add documentation and minor cleanups.

* vmsdbg.h, vmsdbgout.c: Add documentation and minor cleanups.
* doc/invoke.texi: Add -gvms.
* doc/passes.texi: Add mention of vmsdbgout.c.
* doc/tm.texi: Document VMS debugging output.

Co-Authored-By: Douglas B Rupp <rupp@gnat.com>
From-SVN: r47668

22 years ago* f/com.c (ffecom_1): Properly handle TREE_READONLY for INDIRECT_REF.
Richard Kenner [Wed, 5 Dec 2001 11:56:22 +0000 (11:56 +0000)]
* f/com.c (ffecom_1): Properly handle TREE_READONLY for INDIRECT_REF.

From-SVN: r47667

22 years agoFix line wrap in copyright notice.
Richard Kenner [Wed, 5 Dec 2001 11:54:04 +0000 (06:54 -0500)]
Fix line wrap in copyright notice.

From-SVN: r47666

22 years ago* function.h (tree, rtx): Remove no-longer-needed definitions.
Richard Kenner [Wed, 5 Dec 2001 11:52:49 +0000 (11:52 +0000)]
* function.h (tree, rtx): Remove no-longer-needed definitions.

From-SVN: r47665

22 years agofunction.c (keep_stack_depressed): Refine check for register clobbered over call.
Richard Kenner [Wed, 5 Dec 2001 11:49:24 +0000 (11:49 +0000)]
function.c (keep_stack_depressed): Refine check for register clobbered over call.

* function.c (keep_stack_depressed): Refine check for register
clobbered over call.

From-SVN: r47664

22 years agoexpr.c (store_expr): When copying string constant into array...
Richard Kenner [Wed, 5 Dec 2001 11:44:37 +0000 (11:44 +0000)]
expr.c (store_expr): When copying string constant into array...

* expr.c (store_expr): When copying string constant into array,
use functions that update memrefs instead of computations on
addresses to better track MEMs.  Also properly handle 32/64 pointers.
(expand_expr): Use TARGET even if not reg for multi-word CONSTRUCTOR.
(expand_expr, case CONSTRUCTOR): Fix errors in parms to assign_temp.

From-SVN: r47663

22 years agoemit-rtl.c (component_ref_for_mem_expr): Try harder to find decl underneath COMPONENT...
Richard Kenner [Wed, 5 Dec 2001 11:33:28 +0000 (11:33 +0000)]
emit-rtl.c (component_ref_for_mem_expr): Try harder to find decl underneath COMPONENT_REFs.

* emit-rtl.c (component_ref_for_mem_expr): Try harder to find decl
underneath COMPONENT_REFs.
(set_mem_attributes): Also strip VIEW_CONVERT_EXPR.

From-SVN: r47662

22 years agoDaily bump.
GCC Administrator [Wed, 5 Dec 2001 08:16:14 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r47660

22 years ago* toplev.c (display_target_options): Don't print twice.
Neil Booth [Wed, 5 Dec 2001 07:46:42 +0000 (07:46 +0000)]
* toplev.c (display_target_options): Don't print twice.

From-SVN: r47659

22 years agoemit-rtl.c (set_unique_reg_note): Don't set a REG_EQUAL or REG_EQUIV note if multiple...
John Wehle [Wed, 5 Dec 2001 05:47:36 +0000 (05:47 +0000)]
emit-rtl.c (set_unique_reg_note): Don't set a REG_EQUAL or REG_EQUIV note if multiple sets are present.

* emit-rtl.c (set_unique_reg_note): Don't set
a REG_EQUAL or REG_EQUIV note if multiple sets
are present.

From-SVN: r47657

22 years agocfgrtl.c (verify_flow_info): Allow jump table data in fallthru if CASE_DROPS_THROUGH.
John David Anglin [Wed, 5 Dec 2001 03:54:51 +0000 (03:54 +0000)]
cfgrtl.c (verify_flow_info): Allow jump table data in fallthru if CASE_DROPS_THROUGH.

* cfgrtl.c (verify_flow_info): Allow jump table data in fallthru if
CASE_DROPS_THROUGH.

From-SVN: r47655

22 years ago* einfo.h, sinfo.h, treeprs.ads: Regenerate.
Geert Bosch [Wed, 5 Dec 2001 03:25:10 +0000 (04:25 +0100)]
*  einfo.h, sinfo.h, treeprs.ads: Regenerate.

From-SVN: r47654

22 years agoerrout.adb (Error_Msg): Ignore attempt to put error msg at junk location if we alread...
Robert Dewar [Wed, 5 Dec 2001 02:45:14 +0000 (02:45 +0000)]
errout.adb (Error_Msg): Ignore attempt to put error msg at junk location if we already have errors.

* errout.adb (Error_Msg): Ignore attempt to put error msg at junk
location if we already have errors. Stops some cases of cascaded
errors.

* errout.adb: Improve comment.

From-SVN: r47653

22 years ago* sem_ch12.adb:
Robert Dewar [Wed, 5 Dec 2001 02:36:13 +0000 (02:36 +0000)]
* sem_ch12.adb:

(Analyze_Formal_Type_Definition): Defend against Error.
(Analyze_Formal_Subprogram): Defend against Error.

* par-ch12.adb (F_Formal_Type_Declaration): In case of error,
remove following semicolon if present. Removes cascaded error.

From-SVN: r47652

22 years ago* bindgen.adb:
Douglas B Rupp [Wed, 5 Dec 2001 02:27:24 +0000 (03:27 +0100)]
* bindgen.adb:

(Gen_Exception_Table_Ada): Write "begin" and then return if Num
 exceptions equals 0.
(Gen_Exception_Table_C): Return if Num exceptions equals 0.
Fixes PIWG E tests (which have to be run with -gnatL).

From-SVN: r47651

22 years ago* einfo.ads: Minor reformatting
Robert Dewar [Wed, 5 Dec 2001 02:09:02 +0000 (02:09 +0000)]
* einfo.ads: Minor reformatting

From-SVN: r47650

22 years agoeinfo.ads: Block_Node points to the identifier of the block...
Ed Schonberg [Wed, 5 Dec 2001 02:07:10 +0000 (02:07 +0000)]
einfo.ads: Block_Node points to the identifier of the block...

* einfo.ads: Block_Node points to the identifier of the block, not to
the block node itself, to preserve the link when the block is
rewritten, e.g. within an if-statement with a static condition.

* inline.adb (Cleanup_Scopes): recover block statement from block
entity using new meaning of Block_Node.

* sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
identifier of block node, rather than to node itself.

From-SVN: r47649

22 years ago* layout.adb:
Gary Dismukes [Wed, 5 Dec 2001 02:00:43 +0000 (02:00 +0000)]
* layout.adb:

(Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
(Discrimify): Go back to setting the Etypes of the selected component
because the Vname component does not exist at this point and will
fail name resolution. Also set Analyzed.
Remove with and use of Sem_Res.

From-SVN: r47648

22 years ago* Makefile.in: (HIE_SOURCES): add s-fat*.
Arnaud Charlet [Wed, 5 Dec 2001 01:54:49 +0000 (01:54 +0000)]
* Makefile.in: (HIE_SOURCES): add s-fat*.

From-SVN: r47647

22 years ago* sem_attr.adb:
Robert Dewar [Wed, 5 Dec 2001 01:48:56 +0000 (01:48 +0000)]
* sem_attr.adb:

(Compile_Time_Known_Attribute): New procedure.
(Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
 proper range check.

From-SVN: r47646

22 years agosem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before processing discriminan...
Ed Schonberg [Wed, 5 Dec 2001 01:43:31 +0000 (01:43 +0000)]
sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before processing discriminants to diagnose illegal...

* sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
processing discriminants to diagnose illegal default values.

From-SVN: r47645

22 years agortl.h (initialize_uninitialized_subregs): New prototype.
Andrew MacLeod [Wed, 5 Dec 2001 01:39:41 +0000 (01:39 +0000)]
rtl.h (initialize_uninitialized_subregs): New prototype.

2001-12-04  Andrew MacLeod  <amacleod@redhat.com>

* rtl.h (initialize_uninitialized_subregs): New prototype.
* toplev.c (rest_of_compilation): Call initialize_uninitialized_subregs
when optimization is on.
* flow.c (find_regno_partial): Find subregs within an expression.
(initialize_uninitialized_subregs): Initialize live on entry registers
which are used in subreg expressions.

From-SVN: r47644

22 years agosem_attr.adb (Resolve_Attribute): Handle properly an non-classwide access discriminan...
Ed Schonberg [Wed, 5 Dec 2001 01:38:41 +0000 (01:38 +0000)]
sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide access discriminant within a type extension...

* sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
access discriminant within a type extension that constrains its
parent discriminants.

From-SVN: r47643

22 years agosem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication is malformed...
Ed Schonberg [Wed, 5 Dec 2001 01:21:50 +0000 (01:21 +0000)]
sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication is malformed...

* sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
is malformed, use instance of Any_Id to allow analysis to proceed.

* par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
type definition is illegal.
(P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
misplaced.

From-SVN: r47642

22 years agosem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to constants.
Ed Schonberg [Wed, 5 Dec 2001 01:18:06 +0000 (01:18 +0000)]
sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to constants.

* sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
constants.

From-SVN: r47641

22 years ago* errout.adb: Minor reformatting
Robert Dewar [Wed, 5 Dec 2001 01:10:00 +0000 (01:10 +0000)]
* errout.adb: Minor reformatting

From-SVN: r47640

22 years agoexp_util.adb: Minor reformatting from last change
Robert Dewar [Wed, 5 Dec 2001 01:06:25 +0000 (01:06 +0000)]
exp_util.adb: Minor reformatting from last change

* exp_util.adb: Minor reformatting from last change

* errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
which is a rewriting of an expression, traverse the original
expression to remove warnings that may have been posted on it.

From-SVN: r47639

22 years agoexp_util.adb (Must_Be_Aligned): Return false for a component of a record that has...
Ed Schonberg [Wed, 5 Dec 2001 00:56:39 +0000 (00:56 +0000)]
exp_util.adb (Must_Be_Aligned): Return false for a component of a record that has other packed components.

* exp_util.adb (Must_Be_Aligned): Return false for a component of a
record that has other packed components.

From-SVN: r47638

22 years ago* adaint.c: Minor cleanups.
Douglas B Rupp [Wed, 5 Dec 2001 00:48:27 +0000 (01:48 +0100)]
* adaint.c: Minor cleanups.

From-SVN: r47637

22 years ago* adaint.c: Do not use utime.h on vxworks.
Douglas B Rupp [Wed, 5 Dec 2001 00:33:05 +0000 (01:33 +0100)]
* adaint.c: Do not use utime.h on vxworks.

From-SVN: r47636

22 years agoda.po, [...]: New files.
Martin v. Löwis [Wed, 5 Dec 2001 00:09:14 +0000 (00:09 +0000)]
da.po, [...]: New files.

2001-12-05  Martin v. L�wis  <loewis@informatik.hu-berlin.de>

* da.po, es.po, fr.po, ja.po: New files.

From-SVN: r47635

22 years agoverify.cc (_Jv_BytecodeVerifier::linked_utf8): New structure.
Tom Tromey [Tue, 4 Dec 2001 23:54:43 +0000 (23:54 +0000)]
verify.cc (_Jv_BytecodeVerifier::linked_utf8): New structure.

* verify.cc (_Jv_BytecodeVerifier::linked_utf8): New structure.
(_Jv_BytecodeVerifier::utf8_list): New field.
(_Jv_BytecodeVerifier::_Jv_BytecodeVerifier): Initialize it.
(_Jv_BytecodeVerifier::~_Jv_BytecodeVerifier): Free it.
(_Jv_BytecodeVerifier::make_utf8_const): New method.
(_Jv_BytecodeVerifier::get_one_type): Use it.
(_Jv_BytecodeVerifier::type::merge): When using local semantics,
if the destination type is already unsuitable then we didn't
change.

From-SVN: r47634

22 years agoMakefile.in: Add INSTALL_SCRIPT using INSTALL definition.
Phil Edwards [Tue, 4 Dec 2001 23:42:45 +0000 (23:42 +0000)]
Makefile.in: Add INSTALL_SCRIPT using INSTALL definition.

2001-12-04  Phil Edwards  <pme@gcc.gnu.org>

* Makefile.in:  Add INSTALL_SCRIPT using INSTALL definition.

From-SVN: r47633

22 years agore PR bootstrap/3388 (3.0 bootstrap failure, native sparc-sun-solaris2.5.1, fixinc...
DJ Delorie [Tue, 4 Dec 2001 23:29:42 +0000 (18:29 -0500)]
re PR bootstrap/3388 (3.0 bootstrap failure, native sparc-sun-solaris2.5.1, fixinc/fixincl.c)

* fixinc/fixincl.c (initialize): Avoid problemsome macro
parameter names (PR 3388).

From-SVN: r47632

22 years agors6000.c (rs6000_legitimize_address): Fix typo.
Alan Modra [Tue, 4 Dec 2001 23:23:19 +0000 (23:23 +0000)]
rs6000.c (rs6000_legitimize_address): Fix typo.

* config/rs6000/rs6000.c (rs6000_legitimize_address): Fix typo.
* config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Here too.

From-SVN: r47631

22 years agoMakefile.adalib: Clarify step 3 (use of gnat.adc) as it causes more confusion than...
Arnaud Charlet [Tue, 4 Dec 2001 23:13:07 +0000 (23:13 +0000)]
Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes more confusion than it solves.

* Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
more confusion than it solves.

From-SVN: r47630

22 years agore PR c/4787 (Different anonymous variables declared but only one allocated when...
Joseph Myers [Tue, 4 Dec 2001 22:55:40 +0000 (22:55 +0000)]
re PR c/4787 (Different anonymous variables declared but only one allocated when the initialization is the same)

* c-common.def (COMPOUND_LITERAL_EXPR): New.
* c-common.c (c_expand_expr): Handle COMPOUND_LITERAL_EXPR.
(c_staticp): New function.
* c-common.h (COMPOUND_LITERAL_EXPR_DECL): New.
(c_staticp): Declare.
* c-typeck.c (default_function_array_conversion, build_unary_op):
Don't handle CONSTRUCTOR specially.
(lvalue_p, mark_addressable): Handle COMPOUND_LITERAL_EXPR.
* c-decl.c (build_compound_literal): New function.
* c-tree.h (build_compound_literal): Declare.
* c-parse.in (primary): Use build_compound_literal.
* c-lang.c (LANG_HOOKS_STATICP): Define.
* objc/objc-lang.c (LANG_HOOKS_STATICP): Likewise.
* doc/c-tree.texi: Document COMPOUND_LITERAL_EXPR.
* doc/extend.texi: Update documentation of compound literals.
Fixes PR c/4787.

testsuite:
* gcc.c-torture/execute/20000722-1.x,
gcc.c-torture/execute/20010123-1.x: Remove.
* gcc.c-torture/compile/init-3.c: Don't use a compound literal.
* gcc.dg/c90-complit-1.c, gcc.dg/c99-complit-1.c,
gcc.dg/c99-complit-2.c: New tests.

From-SVN: r47629

22 years agolanghooks.h (struct lang_hooks): Add staticp.
Joseph Myers [Tue, 4 Dec 2001 22:49:20 +0000 (22:49 +0000)]
langhooks.h (struct lang_hooks): Add staticp.

* langhooks.h (struct lang_hooks): Add staticp.
* langhooks-def.h (lhd_staticp, LANG_HOOKS_STATICP): New.
(LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_STATICP.
* langhooks.c (lhd_staticp): New function.
* tree.c (staticp): Call lang_hooks.staticp for language-specific
tree codes.

From-SVN: r47628

22 years agocppspec.c (lang_specific_driver): Set is_cpp_driver.
Neil Booth [Tue, 4 Dec 2001 22:26:16 +0000 (22:26 +0000)]
cppspec.c (lang_specific_driver): Set is_cpp_driver.

* cppspec.c (lang_specific_driver): Set is_cpp_driver.
* gcc.c (process_command): Ensure the cpp driver sees
--help and --target-help, and that the help is printed
exactly once.

From-SVN: r47627

22 years ago* einfo.h, nmake.adb, nmake.ads, sinfo.h, treeprs.ads: Regenerate.
Geert Bosch [Tue, 4 Dec 2001 21:28:25 +0000 (22:28 +0100)]
* einfo.h, nmake.adb, nmake.ads, sinfo.h, treeprs.ads: Regenerate.

From-SVN: r47626

22 years agoMakefile.in (update-sources): New target.
Geert Bosch [Tue, 4 Dec 2001 21:10:34 +0000 (22:10 +0100)]
Makefile.in (update-sources): New target.

* Makefile.in (update-sources): New target.
For use by gcc_release script.

From-SVN: r47625

22 years agosem_prag.adb (Analyze_Pragma, [...]): do not treat as a configuration pragma...
Ed Schonberg [Tue, 4 Dec 2001 21:00:26 +0000 (21:00 +0000)]
sem_prag.adb (Analyze_Pragma, [...]): do not treat as a configuration pragma...

* sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
a configuration pragma, it is now legal wherever a pragma can appear.

From-SVN: r47624

22 years agodefineclass.cc (read_one_method_attribute): `end_pc' for an exception can be equal...
Tom Tromey [Tue, 4 Dec 2001 20:18:35 +0000 (20:18 +0000)]
defineclass.cc (read_one_method_attribute): `end_pc' for an exception can be equal to code length.

* defineclass.cc (read_one_method_attribute): `end_pc' for an
exception can be equal to code length.
* verify.cc (_Jv_BytecodeVerifier::verify_instructions_0): Removed
`start_PC' from error invocation where it didn't make sense, and
updated error message.  Use `copy' to copy a state.  Only try to
merge current state with saved state when we've fallen through
from the previous instruction.
(_Jv_BytecodeVerifier::pop_ref_or_return): New method.
(_Jv_BytecodeVerifier::verify_instructions_0) [op_astore_0]: Use
pop_ref_or_return.
(_Jv_BytecodeVerifier::verify_instructions_0) [op_astore]:
Likewise.
(_Jv_BytecodeVerifier::push_jump_merge): Pass max_locals, not
max_stack, to merge.
(_Jv_BytecodeVerifier::verify_instructions_0): Likewise.
(_Jv_BytecodeVerifier::push_jump_merge): Merge from new state into
state at branch target, not vice versa.
(_Jv_BytecodeVerifier::branch_prepass): Allow end of exception to
be equal to code length.  Removed redundant test to see if
exception start is after exception end.
(_Jv_BytecodeVerifier::verify_instructions_0): Type of argument to
`finally' is Throwable.

From-SVN: r47623

22 years ago[multiple changes]
Benjamin Kosnik [Tue, 4 Dec 2001 20:13:41 +0000 (20:13 +0000)]
[multiple changes]

2001-12-04  Benjamin Kosnik  <bkoz@redhat.com>

* src/Makefile.am (sources): Add ext-inst.cc.
* src/Makefile.in: Regenerate.
* src/ext-inst.cc: New file.
* include/bits/stl_threads.h: Format.
* src/globals.cc: Add instantiation for _S_swap_lock.

* testsuite/18_support/numeric_limits.cc: Add numeric_limits<B>
instantiation.

2001-12-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>

* testsuite/22_locale/numpunct_members_wchar_t.cc: Only compile
and execute test01 if _GLIBCPP_USE_WCHAR_T is defined.
* testsuite/26_numerics/complex_inserters_extractors.cc: Provide
for explicit instantiation of class std::basic_string<char,
gnu_char_traits, std::allocator<char> >.

From-SVN: r47622

22 years ago* config/elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Display count unsigned.
David Edelsohn [Tue, 4 Dec 2001 19:38:45 +0000 (19:38 +0000)]
* config/elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Display count unsigned.

From-SVN: r47620

22 years agocheck-init.c: Handle definite unassignment to finals in addition to definite assignment.
Per Bothner [Tue, 4 Dec 2001 19:30:13 +0000 (11:30 -0800)]
check-init.c: Handle definite unassignment to finals in addition to definite assignment.

* check-init.c:   Handle definite unassignment to finals in addition
to definite assignment. [see ChangeLog]

From-SVN: r47619

22 years agocris.h (OPTIMIZATION_OPTIONS): Don't unset flag_strict_aliasing.
Hans-Peter Nilsson [Tue, 4 Dec 2001 18:42:24 +0000 (18:42 +0000)]
cris.h (OPTIMIZATION_OPTIONS): Don't unset flag_strict_aliasing.

* config/cris/cris.h (OPTIMIZATION_OPTIONS): Don't unset
flag_strict_aliasing.  Use separate assignment statements.

From-SVN: r47618

22 years agobuild-make, cross-make: Delete file.
Zack Weinberg [Tue, 4 Dec 2001 18:02:50 +0000 (18:02 +0000)]
build-make, cross-make: Delete file.

* build-make, cross-make: Delete file.
* configure.in: Set and substitute CROSS, ALL,
SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_PREFIX_1, HOST_CC,
HOST_CFLAGS, STMP_FIXINC, and STMP_FIXPROTO depending on
whether build == host and host == target.  Do not
AC_SUBST_FILE build_overrides or cross_overrides.  Do not
AC_SUBST cross_defines or extra_c_flags.
* Makefile.in (NATIVE_SYSTEM_HEADER_DIR): New.
(SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_CC, HOST_PREFIX,
HOST_PREFIX_1, HOST_CFLAGS, ALL, INTERNAL_CFLAGS): Set
partially or completely with autoconf-substituted @variable@
notation.
(INSTALL_TARGET, @cross_defines@, @cross_overrides@,
@build_overrides@, @extra_c_flags@, all.build, install-build,
install-cross-rest, install-float-h-cross): Deleted.
(install-normal): Rename to install.  Delete old "install"
indirection rule.
* ada/Makefile.in, ch/Makefile.in: Don't set ALL.  Delete
@cross_defines@, @cross_overrides@, @build_overrides@ stanzas.
INTERNAL_CFLAGS is now @CROSS@ -DIN_GCC; update comment.

From-SVN: r47617

22 years agostmt.c (expand_return): Clear destination instead of clobbering it when setting a...
Andrew MacLeod [Tue, 4 Dec 2001 17:37:23 +0000 (17:37 +0000)]
stmt.c (expand_return): Clear destination instead of clobbering it when setting a return value via bitsets.

2001-12-04  Andrew MacLeod  <amacleod@redhat.com>

* stmt.c (expand_return): Clear destination instead of clobbering it
when setting a return value via bitsets.

From-SVN: r47616

22 years agotree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if it has DECL_SAVED_TREE.
Alexandre Oliva [Tue, 4 Dec 2001 17:11:05 +0000 (17:11 +0000)]
tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if it has DECL_SAVED_TREE.

* tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if
it has DECL_SAVED_TREE.

From-SVN: r47615

22 years agoeinfo.adb (Has_Pragma_Pure_Function): New flag.
Geert Bosch [Tue, 4 Dec 2001 16:55:48 +0000 (17:55 +0100)]
einfo.adb (Has_Pragma_Pure_Function): New flag.

* einfo.adb (Has_Pragma_Pure_Function): New flag.
Fix problem that stopped ceinfo from working

* einfo.ads (Has_Pragma_Pure_Function): New flag.

* sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.

From-SVN: r47614

22 years ago* gnatchop.adb:
Douglas B Rupp [Tue, 4 Dec 2001 16:37:55 +0000 (17:37 +0100)]
* gnatchop.adb:

(File_Time_Stamp): New procedure.
(Preserve_Mode): New boolean.
(Write_Unit): Pass time stamp.
Implement -p switch (preserve time stamps).

* gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).

* gnatchop.adb: Do usage info for -p switch

* adaint.h (__gnat_set_file_time_name): New function

* adaint.c (__gnat_set_file_time_name): Implement

* adaint.h: Fix typo

From-SVN: r47613

22 years agoRevert previous patch
Alexandre Oliva [Tue, 4 Dec 2001 15:10:16 +0000 (15:10 +0000)]
Revert previous patch

From-SVN: r47612

22 years ago* trans.c (tree_transform): Adjust call of expand_start_stmt_expr.
Andreas Jaeger [Tue, 4 Dec 2001 13:25:32 +0000 (14:25 +0100)]
* trans.c (tree_transform): Adjust call of expand_start_stmt_expr.

From-SVN: r47611

22 years agoc-decl.c (duplicate_decls): Revert rth's patch.
Alexandre Oliva [Tue, 4 Dec 2001 10:34:40 +0000 (10:34 +0000)]
c-decl.c (duplicate_decls): Revert rth's patch.

* c-decl.c (duplicate_decls): Revert rth's patch.  If newdecl
is in a different binding level, get its abstract origin to be
olddecl.
* tree-inline.c (expand_call_inline): Move DECL_INITIAL sanity
check earlier.
* tree.c (get_callee_fndecl): Follow DECL_ABSTRACT_ORIGIN if
DECL_INITIAL is NULL.

From-SVN: r47610

22 years agocom.c (ffecom_expr_power_integer_): Adjust expand_start_stmt_expr() invocation.
Alexandre Oliva [Tue, 4 Dec 2001 10:31:27 +0000 (10:31 +0000)]
com.c (ffecom_expr_power_integer_): Adjust expand_start_stmt_expr() invocation.

* com.c (ffecom_expr_power_integer_): Adjust
expand_start_stmt_expr() invocation.

From-SVN: r47609

22 years agosemantics.c (begin_global_stmt_expr): Adjust expand_start_stmt_expr invocation.
Alexandre Oliva [Tue, 4 Dec 2001 10:30:47 +0000 (10:30 +0000)]
semantics.c (begin_global_stmt_expr): Adjust expand_start_stmt_expr invocation.

* semantics.c (begin_global_stmt_expr): Adjust
expand_start_stmt_expr invocation.

From-SVN: r47608

22 years agostmt.c (expand_expr_stmt): Keep last_expr_value non-NULL iff we're interested in...
Alexandre Oliva [Tue, 4 Dec 2001 10:30:04 +0000 (10:30 +0000)]
stmt.c (expand_expr_stmt): Keep last_expr_value non-NULL iff we're interested in the result.

* stmt.c (expand_expr_stmt): Keep last_expr_value non-NULL iff
we're interested in the result.  Use it to tell whether to
ignore results of enclosed expressions.
(expand_start_stmt_expr): Added new argument, and initialize
last_expr_value accordingly.
* tree.h (expand_start_stmt_expr): Adjusted declaration.
* c-common.c (c_expand_expr): Adjust call.
* expr.c (expand_expr) [EXPR_WFL]: Pass const0_rtx down if
ignoring the result.

From-SVN: r47607

22 years ago* Makefile.in ($(LIBG2C)): Fix -rpath argument to libtool.
Alexandre Oliva [Tue, 4 Dec 2001 10:02:51 +0000 (10:02 +0000)]
* Makefile.in ($(LIBG2C)): Fix -rpath argument to libtool.

From-SVN: r47606

22 years agoMakefile.in (AR, RANLIB): Add, for substitutions.
Alexandre Oliva [Tue, 4 Dec 2001 09:53:18 +0000 (09:53 +0000)]
Makefile.in (AR, RANLIB): Add, for substitutions.

* Makefile.in (AR, RANLIB): Add, for substitutions.
(all-unilib, $(LIBG2C)): Depend on object lists, not
convenience libraries.
(s-libe77): Renamed from libE77.la; build object list.
(install): Do not move libraries to libdir.
(mostlyclean, clean): Adjust.
* libF77/Makefile.in (RANLIB): Add.
(LINK): Remove.
(../s-libf77): Renamed from ../libF77.la; build object list.
(../libfrtbegin.a): Remove target first.  Don't use $<.
(all, clean, distclean): Adjust.
* libF77/configure.in: Substitute RANLIB.
* libF77/configure: Rebuilt.
* libI77/Makefile.in (LINK): Delete.
(../s-libi77): Renamed from ../libI77.la; build object list.
(all, clean, distclean): Adjust.
* libU77/Makefile.in: Likewise.

From-SVN: r47605

22 years agopt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.
Nathan Sidwell [Tue, 4 Dec 2001 09:51:18 +0000 (09:51 +0000)]
pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.

cp:
* pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.

From-SVN: r47604

22 years agore PR c++/164 (bogus error throwing class with inaccessible base)
Nathan Sidwell [Tue, 4 Dec 2001 09:48:53 +0000 (09:48 +0000)]
re PR c++/164 (bogus error throwing class with inaccessible base)

cp:
PR g++/164
* init.c (sort_base_init): Allow binfos to be directly specified.
* method.c (do_build_copy_constructor): Explicitly convert to the
base instance.
(do_build_assign_ref): Likewise.
testsuite:
* g++.dg/inherit/base1.C: New test.

From-SVN: r47603

22 years agoflow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized.
Jakub Jelinek [Tue, 4 Dec 2001 09:33:17 +0000 (10:33 +0100)]
flow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized.

* flow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized.
Return correct value if one of the subexpressions was optimized to
0 resp. 1.  Optimize (x | A) | x and (x & A) | x.
(and_reg_cond): Similarly.

* gcc.c-torture/compile/20011130-2.c: New test.

From-SVN: r47602

22 years agofunction.c (assign_parms): Set last_named only for last named argument.
Jakub Jelinek [Tue, 4 Dec 2001 09:29:54 +0000 (10:29 +0100)]
function.c (assign_parms): Set last_named only for last named argument.

* function.c (assign_parms): Set last_named only for last named
argument.

* g++.dg/other/stdarg1.C: New test.

From-SVN: r47601

22 years agoFix date on last entry.
Joseph Myers [Tue, 4 Dec 2001 09:23:37 +0000 (09:23 +0000)]
Fix date on last entry.

From-SVN: r47599

22 years agoinstall.texi: Use the GFDL.
Joseph Myers [Tue, 4 Dec 2001 09:21:56 +0000 (09:21 +0000)]
install.texi: Use the GFDL.

* doc/install.texi: Use the GFDL.  Include years from old install
manual in copyright notice.  Include copyright and GFDL notice on
HTML index page.  Include usual footer on testing.html.
* doc/install.texi2html: Build gfdl.html.  Use -I
$SOURCEDIR/include.
* doc/include/fdl.texi: Adapt for use in the install manual.

From-SVN: r47598

22 years agoinstall.texi: Document that installed native compiler for building cross compilers...
Joseph Myers [Tue, 4 Dec 2001 08:19:41 +0000 (08:19 +0000)]
install.texi: Document that installed native compiler for building cross compilers should be...

* doc/install.texi: Document that installed native compiler for
building cross compilers should be GCC 2.95 or later.

From-SVN: r47596

22 years agoDaily bump.
GCC Administrator [Tue, 4 Dec 2001 08:16:23 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r47594

22 years ago* Makefile.in: Rebuilt with automake-gcj.
Bryce McKinlay [Tue, 4 Dec 2001 07:21:25 +0000 (07:21 +0000)]
* Makefile.in: Rebuilt with automake-gcj.

From-SVN: r47593

22 years agocollate.cc: Compile-only.
Benjamin Kosnik [Tue, 4 Dec 2001 07:15:01 +0000 (07:15 +0000)]
collate.cc: Compile-only.

2001-12-03  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/22_locale/collate.cc: Compile-only.
* testsuite/22_locale/time_get.cc: Same.
* testsuite/22_locale/time_put.cc: Same.
* testsuite/22_locale/numpunct.cc: Same.
* testsuite/22_locale/num_put.cc: Same.
* testsuite/22_locale/num_get.cc: Same.
* testsuite/22_locale/moneypunct.cc: Same.
* testsuite/22_locale/money_get.cc: Same.
* testsuite/22_locale/messages.cc: Same.
* testsuite/22_locale/ctype.cc: Same.

From-SVN: r47592

22 years agodefineclass.cc (handleMethodsEnd): Invoke verifier here...
Tom Tromey [Tue, 4 Dec 2001 06:37:53 +0000 (06:37 +0000)]
defineclass.cc (handleMethodsEnd): Invoke verifier here...

* defineclass.cc (handleMethodsEnd): Invoke verifier here...
(handleCodeAttribute): ... not here.
* verify.cc (_Jv_BytecodeVerifier::state::state): Use `copy', not
structure assignment.

From-SVN: r47591

22 years agomips.h (CALL_REALLY_USED_REGISTERS): New macro.
Eric Christopher [Tue, 4 Dec 2001 06:30:02 +0000 (06:30 +0000)]
mips.h (CALL_REALLY_USED_REGISTERS): New macro.

2001-12-03  Eric Christopher  <echristo@redhat.com>

* config/mips/mips.h (CALL_REALLY_USED_REGISTERS): New macro.
* config/mips/mips.md: Check TARGET_DEBUG_D_MODE before split
patterns.

From-SVN: r47590

22 years agoNew test.
Richard Henderson [Tue, 4 Dec 2001 01:25:32 +0000 (17:25 -0800)]
New test.

From-SVN: r47589

22 years agoparse.y (patch_binop): Minor constant folding.
Per Bothner [Tue, 4 Dec 2001 01:24:59 +0000 (17:24 -0800)]
parse.y (patch_binop): Minor constant folding.

* parse.y (patch_binop):  Minor constant folding.

* parse.y (build_current_thisn):  Shorter 'buffer'.

From-SVN: r47588

22 years agodecl.c (complete_start_java_method): Now generate TRY_FINALLY_EXPR instead of CLEANUP...
Per Bothner [Tue, 4 Dec 2001 01:10:08 +0000 (17:10 -0800)]
decl.c (complete_start_java_method): Now generate TRY_FINALLY_EXPR instead of CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR.

* decl.c (complete_start_java_method):  Now generate TRY_FINALLY_EXPR
instead of CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR.
* jcf-write.c (generate_bytecode_insns):  Remove support for
CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR as they are no longer used.
* check-init.c (check_init):  Likewise.

From-SVN: r47587

22 years agostring-inst.cc (string::_Rep::_S_terminal): Add static data member instantiations.
Benjamin Kosnik [Tue, 4 Dec 2001 01:01:46 +0000 (01:01 +0000)]
string-inst.cc (string::_Rep::_S_terminal): Add static data member instantiations.

2001-12-03  Benjamin Kosnik  <bkoz@redhat.com>

* src/string-inst.cc (string::_Rep::_S_terminal): Add static data
member instantiations.

From-SVN: r47586

22 years agoNew test for __builtin_prefetch.
Janis Johnson [Tue, 4 Dec 2001 00:56:33 +0000 (00:56 +0000)]
New test for __builtin_prefetch.

From-SVN: r47585

22 years agoTest for __builtin_prefetch.
Janis Johnson [Tue, 4 Dec 2001 00:54:21 +0000 (00:54 +0000)]
Test for __builtin_prefetch.

From-SVN: r47584

22 years agobuiltin-prefetch-1.c: New test.
Janis Johnson [Tue, 4 Dec 2001 00:52:43 +0000 (00:52 +0000)]
builtin-prefetch-1.c: New test.

* gcc.c-torture/execute/builtin-prefetch-1.c: New test.
* gcc.c-torture/execute/builtin-prefetch-2.c: New test.
* gcc.c-torture/execute/builtin-prefetch-3.c: New test.
* gcc.c-torture/execute/builtin-prefetch-4.c: New test.
* gcc.c-torture/execute/builtin-prefetch-5.c: New test.
* gcc.dg/builtin-prefetch-1.c: New test.

From-SVN: r47583

22 years agobuiltin-types.def (BT_FN_VOID_PTR_INT_INT): New.
Janis Johnson [Tue, 4 Dec 2001 00:50:35 +0000 (00:50 +0000)]
builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.

* builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.
* builtins.def (BUILT_IN_PREFETCH): New.
* builtins.c (expand_builtin_expect): New.
  (expand_builtin): Call it.
* doc/extend.texi: Document __builtin_expect.

From-SVN: r47582

22 years agortl.def (PREFETCH): New rtx code.
Janis Johnson [Tue, 4 Dec 2001 00:47:14 +0000 (00:47 +0000)]
rtl.def (PREFETCH): New rtx code.

* rtl.def (PREFETCH): New rtx code.
* doc/rtl.texi (PREFETCH): Add documentation.
* function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx.
* rtlanal.c (reg_referenced_p): Ditto.
* sched-vis.c (print_exp):  Ditto.
* ssa-dce.c (find_inherently_necessary):  Ditto.

From-SVN: r47580

22 years agoia64.h (SIMULTANEOUS PREFETCHES): Define.
Janis Johnson [Tue, 4 Dec 2001 00:42:41 +0000 (00:42 +0000)]
ia64.h (SIMULTANEOUS PREFETCHES): Define.

* config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
  (PREFETCH_BLOCK): Define.
* config/ia64/ia64.md (itanium_class): Add lfetch.
  (prefetch, prefetch_internal): New.

From-SVN: r47579

22 years agoia64.h (SIMULTANEOUS PREFETCHES): Define.
Janis Johnson [Tue, 4 Dec 2001 00:42:00 +0000 (00:42 +0000)]
ia64.h (SIMULTANEOUS PREFETCHES): Define.

* config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
  (PREFETCH_BLOCK): Define.
* config/ia64/ia64.md (itanium_class): Add lfetch.
  (prefetch, prefetch_internal): New.
  prefetch_sse.

From-SVN: r47578

22 years agoi386.md (prefetch): Rename as prefetch_sse to avoid conflicts with new generic prefet...
Janis Johnson [Tue, 4 Dec 2001 00:40:21 +0000 (00:40 +0000)]
i386.md (prefetch): Rename as prefetch_sse to avoid conflicts with new generic prefetch functionality.

* config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid
  conflicts with new generic prefetch functionality.
* config/i386/i386.c (ix86_expand_builtin): Use new name for
  prefetch_sse.

From-SVN: r47577

22 years agortl.def (PREFETCH): New rtx code.
Janis Johnson [Tue, 4 Dec 2001 00:37:50 +0000 (00:37 +0000)]
rtl.def (PREFETCH): New rtx code.

* rtl.def (PREFETCH): New rtx code.
* doc/rtl.texi (PREFETCH): Add documentation.
* function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx.
* rtlanal.c (reg_referenced_p): Ditto.
* sched-vis.c (print_exp):  Ditto.
* ssa-dce.c (find_inherently_necessary):  Ditto.

* config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
  (PREFETCH_BLOCK): Define.
* config/ia64/ia64.md (itanium_class): Add lfetch.
  (prefetch, prefetch_internal): New.

* builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.
* builtins.def (BUILT_IN_PREFETCH): New.
* builtins.c (expand_builtin_expect): New.
  (expand_builtin): Call it.
* doc/extend.texi: Document __builtin_expect.

* config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid
  conflicts with new generic prefetch functionality.
* config/i386/i386.c (ix86_expand_builtin): Use new name for
  prefetch_sse.

From-SVN: r47576

22 years agoMake-lang.in: Update copyright.
Ziemowit Laski [Tue, 4 Dec 2001 00:25:20 +0000 (00:25 +0000)]
Make-lang.in: Update copyright.

        * objc/Make-lang.in: Update copyright.
        (OBJC_OBJS): Add objc-lang.o.
        (objc-lang.o): New rule.
        * objc/config-lang.in: Fix file description and update
        copyright.
        * objc/objc-act.c: Do not include langhooks.h and
        langhooks-def.h
        (lang_hooks): Move (along with LANG_HOOKS...) to objc-lang.c.
        (objc_post_options): Move to objc-lang.c.
        (objc_init_options): Move to objc-lang.c.
        (objc_init): Make non-static.
        (HASHFUNCTION): Remove macro.
        (hash_func): New function.
        (hash_enter): Replace HASHFUNCTION with hash_func.
        (hash_lookup): Replace HASHFUNCTION with hash_func.
        (maybe_objc_tree_codes): New function.
        (init_objc): Move ObjC tree code initialization to
        maybe_objc_tree_codes().
        * objc/objc-act.h (GCC_OBJC_ACT_H): New include guard.
        (objc_init): New public prototype.
        (objc_decode_option): New public prototype.
        (maybe_add_objc_tree_codes): New public prototype.
        * objc/objc-lang.c: New file.
        (lang_hooks): Moved from objc-act.c.
        (objc_post_options): Moved from objc-act.c.
        (objc_init_options): Moved from objc-act.c.

From-SVN: r47575

22 years agoDoc update for -maix-struct-return patch
Zack Weinberg [Tue, 4 Dec 2001 00:10:56 +0000 (00:10 +0000)]
Doc update for -maix-struct-return patch

From-SVN: r47574

22 years agoverify.c (subroutine_nesting): New function.
Per Bothner [Mon, 3 Dec 2001 23:30:21 +0000 (15:30 -0800)]
verify.c (subroutine_nesting): New function.

* verify.c (subroutine_nesting):  New function.
(verify_jvm_instructions):  Use it to fix logic for checking that
we're done with the current subroutine.

* verify.c (verify_jvm_instruction): For OPCODE_checkcast and
OPCODE_instanceof use POP_TYPE macro for better diagnostics.

From-SVN: r47572

22 years agoFix spacing in third last entry
Hans-Peter Nilsson [Mon, 3 Dec 2001 23:20:00 +0000 (23:20 +0000)]
Fix spacing in third last entry

From-SVN: r47571

22 years agodecl.c (xref_basetypes): Don't use C99 construct in tag_code declaration and initiali...
Hans-Peter Nilsson [Mon, 3 Dec 2001 23:15:09 +0000 (23:15 +0000)]
decl.c (xref_basetypes): Don't use C99 construct in tag_code declaration and initialization.

* decl.c (xref_basetypes): Don't use C99 construct in tag_code
declaration and initialization.

From-SVN: r47570

22 years agojcf.h: Fix obvious typo in comment.
Per Bothner [Mon, 3 Dec 2001 23:09:42 +0000 (15:09 -0800)]
jcf.h: Fix obvious typo in comment.

* jcf.h:  Fix obvious typo in comment.
* typeck.c (build_null_signature):  Add comment.

From-SVN: r47569