gcc.git
22 years agoc-parse.in: Take string literals in assembler constructs, not expressions.
Neil Booth [Sat, 8 Dec 2001 19:13:04 +0000 (19:13 +0000)]
c-parse.in: Take string literals in assembler constructs, not expressions.

* c-parse.in: Take string literals in assembler constructs,
not expressions.
* c-typeck.c (build_asm_stmt, simple_asm_stmt): No need to
check the strings are STRING_CSTs.

From-SVN: r47795

22 years agosemantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in call to build_aggr_...
John David Anglin [Sat, 8 Dec 2001 15:44:23 +0000 (15:44 +0000)]
semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in call to build_aggr_init.

* semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
call to build_aggr_init.
* cp-tree.h (DIRECT_BIND): Document new use of DIRECT_BIND.

From-SVN: r47793

22 years agoc-lex.c (c_lex): Peek a token ahead for a string to concatenate...
Neil Booth [Sat, 8 Dec 2001 12:01:59 +0000 (12:01 +0000)]
c-lex.c (c_lex): Peek a token ahead for a string to concatenate...

* c-lex.c (c_lex): Peek a token ahead for a string to concatenate,
using combine_strings to do the concatenation.
* c-parse.in: Replace uses of the string non-terminal with STRING.
Don't attempt string concatenation.
(OBJC_STRING): New terminal.
(string): Remove non-terminal.
(_yylex): Call combine_strings on function names.  Generate
OBJC_STRING terminals; don't pass '@' on to yacc.
* c-typeck.c (simple_asm_stmt): Don't concatenate strings here.
(build_asm_stmt): Similarly.
cp:
* parse.y: Replace uses of the string non-terminal with STRING.
Don't perform string concatentaion here.
(string): Remove non-terminal.
* semantics.c (finish_asm_stmt): Don't concatenate strings here.

From-SVN: r47792

22 years ago* rtlanal.c (get_jump_table_offset): Delete unused variable.
Kaveh R. Ghazi [Sat, 8 Dec 2001 11:22:57 +0000 (11:22 +0000)]
* rtlanal.c (get_jump_table_offset): Delete unused variable.

From-SVN: r47791

22 years agoarm.md (VUNSPEC_PREFETCH): Delete constant definition.
Richard Earnshaw [Sat, 8 Dec 2001 11:16:59 +0000 (11:16 +0000)]
arm.md (VUNSPEC_PREFETCH): Delete constant definition.

* arm.md (VUNSPEC_PREFETCH): Delete constant definition.
(prefetch): Rewrite using PREFETCH RTL primitive.
* arm.h (arm_builtins): Delete ARM_BUILTIN_PREFETCH).
* arm.c (arm_init_builtins): Don't initialize a builtin for
__builtin_prefetch here.
(arm_expand_builtin): Dont expand __builtin_prefetch here.

From-SVN: r47790

22 years agoOops, this didn't get commited with final.c patch.
Richard Earnshaw [Sat, 8 Dec 2001 11:05:46 +0000 (11:05 +0000)]
Oops, this didn't get commited with final.c patch.

From-SVN: r47789

22 years agofinal.c (cleanup_subreg_operands): Use recog_data.operand_loc in test for a subreg.
Richard Earnshaw [Sat, 8 Dec 2001 10:49:49 +0000 (10:49 +0000)]
final.c (cleanup_subreg_operands): Use recog_data.operand_loc in test for a subreg.

* final.c (cleanup_subreg_operands):  Use recog_data.operand_loc
in test for a subreg.

From-SVN: r47788

22 years agoDaily bump.
GCC Administrator [Sat, 8 Dec 2001 08:16:41 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r47787

22 years agortl.c (rtx_equal_p): Check for null pointers when comparing rtx strings.
John David Anglin [Sat, 8 Dec 2001 06:11:25 +0000 (06:11 +0000)]
rtl.c (rtx_equal_p): Check for null pointers when comparing rtx strings.

* rtl.c (rtx_equal_p): Check for null pointers when comparing rtx
strings.

From-SVN: r47785

22 years ago* gcc.dg/cpp/ucs.c: Adjust expected warning for 64-bit hosts.
Richard Henderson [Sat, 8 Dec 2001 01:51:04 +0000 (17:51 -0800)]
* gcc.dg/cpp/ucs.c: Adjust expected warning for 64-bit hosts.

From-SVN: r47784

22 years agoatomicity.h (struct __Atomicity_lock<__inst>): Add.
Nathan Myers [Sat, 8 Dec 2001 00:59:11 +0000 (00:59 +0000)]
atomicity.h (struct __Atomicity_lock<__inst>): Add.

        libstdc++/5037
        * config/cpu/sparc/sparc32/bits/atomicity.h
        (struct __Atomicity_lock<__inst>): Add.
        (__Atomicity_lock<__inst>::_S_atomicity_lock): Add.
        (__exchange_and_add): Use __Atomicity_lock<0>::_S_atomicity_lock
        instead of lock local to static function.
        (__atomic_add): Likewise.

Co-Authored-By: Loren J. Rittle <ljrittle@acm.org>
From-SVN: r47782

22 years agoClassLoader.java (defineClass): Rethrow any LinkageError.
Tom Tromey [Fri, 7 Dec 2001 23:34:12 +0000 (23:34 +0000)]
ClassLoader.java (defineClass): Rethrow any LinkageError.

* java/lang/ClassLoader.java (defineClass): Rethrow any
LinkageError.

From-SVN: r47780

22 years agoThreadGroup.java (uncaughtException): Print message to System.err.
Tom Tromey [Fri, 7 Dec 2001 23:32:24 +0000 (23:32 +0000)]
ThreadGroup.java (uncaughtException): Print message to System.err.

* java/lang/ThreadGroup.java (uncaughtException): Print message to
System.err.  Required by spec.

From-SVN: r47779

22 years agoglobals.cc: Remove __GTHREADS guard.
Phil Edwards [Fri, 7 Dec 2001 23:13:23 +0000 (23:13 +0000)]
globals.cc: Remove __GTHREADS guard.

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

* src/globals.cc:  Remove __GTHREADS guard.

From-SVN: r47778

22 years ago* doc/extend.texi: Fix typo last change.
Richard Henderson [Fri, 7 Dec 2001 23:00:16 +0000 (15:00 -0800)]
* doc/extend.texi: Fix typo last change.

From-SVN: r47777

22 years ago* c-decl.c (c_language): Remove duplicate.
Richard Henderson [Fri, 7 Dec 2001 22:19:47 +0000 (14:19 -0800)]
* c-decl.c (c_language): Remove duplicate.

From-SVN: r47776

22 years agodarwin.h: Set MAX_LONG_TYPE_SIZE to 32.
Dale Johannesen [Fri, 7 Dec 2001 22:17:02 +0000 (22:17 +0000)]
darwin.h: Set MAX_LONG_TYPE_SIZE to 32.

        * config/rs6000/darwin.h: Set MAX_LONG_TYPE_SIZE to 32.
        * config/rs6000/rs6000.c (rs6000_emit_move): In Darwin-
        specific codegen, eliminate a register copy.
        (print_operand_address): Add support for Darwin's lo16(constant)
        syntax.
        (rs6000_machopic_legitimize_pic_address): Fix darwin-specific
        generation of addresses within very large data objects.
        (s8bit_cint_operand):  New.
        * config/rs6000/rs6000.md: Remove "iu" reference for 750/7400.
        Move "mtjmpr" to correct functional unit for 750/7400/7450.
        Add imul2 and imul3 insn types for multiplication by 16- and
        8-bit constants.
        Change tablejump patterns to strongly discourage using LR
        rather than CTR.
        Add %lo16 patterns for Darwin loads and stores.

From-SVN: r47775

22 years ago* alpha.md: Use (HOST_WIDE_INT)1<<63 in lieu of 0x8000000000000000.
Kaveh R. Ghazi [Fri, 7 Dec 2001 22:14:44 +0000 (22:14 +0000)]
* alpha.md: Use (HOST_WIDE_INT)1<<63 in lieu of 0x8000000000000000.

From-SVN: r47774

22 years agosparc-ret.c: New file, test return corruption bug for ultrasparc.
Stephane Carrez [Fri, 7 Dec 2001 21:51:04 +0000 (21:51 +0000)]
sparc-ret.c: New file, test return corruption bug for ultrasparc.

* gcc.dg/sparc-ret.c: New file, test return corruption bug for
ultrasparc.

From-SVN: r47773

22 years agosparc.c (epilogue_renumber): Do not replace %fp with %sp because it can cause the...
Stephane Carrez [Fri, 7 Dec 2001 21:47:53 +0000 (21:47 +0000)]
sparc.c (epilogue_renumber): Do not replace %fp with %sp because it can cause the delayed instruction to...

* config/sparc/sparc.c (epilogue_renumber): Do not replace %fp
with %sp because it can cause the delayed instruction to load
below the stack.

From-SVN: r47772

22 years agoalpha.c (alpha_expand_unaligned_store, [...]): Use constm1_rtx in place of call to...
Kaveh R. Ghazi [Fri, 7 Dec 2001 20:13:34 +0000 (20:13 +0000)]
alpha.c (alpha_expand_unaligned_store, [...]): Use constm1_rtx in place of call to immed_double_const.

* alpha.c (alpha_expand_unaligned_store,
alpha_expand_unaligned_store_words): Use constm1_rtx in place of
call to immed_double_const.

From-SVN: r47770

22 years agoverify.cc (_Jv_BytecodeVerifier::branch_prepass): Set start_PC earlier, for error...
Tom Tromey [Fri, 7 Dec 2001 19:53:34 +0000 (19:53 +0000)]
verify.cc (_Jv_BytecodeVerifier::branch_prepass): Set start_PC earlier, for error handling.

* verify.cc (_Jv_BytecodeVerifier::branch_prepass): Set start_PC
earlier, for error handling.
(_Jv_BytecodeVerifier::note_branch_target): Fixed branch target
check.

From-SVN: r47769

22 years agolang.c (lang_f_options): Added optimize-static-class-initialization.
Tom Tromey [Fri, 7 Dec 2001 19:01:19 +0000 (19:01 +0000)]
lang.c (lang_f_options): Added optimize-static-class-initialization.

* lang.c (lang_f_options): Added
optimize-static-class-initialization.
(java_decode_option): Removed special case.

From-SVN: r47768

22 years agolocale_facets.tcc (num_put::_M_convert_float): Extend comment, reduce __cs_size for...
Paolo Carlini [Fri, 7 Dec 2001 19:00:07 +0000 (20:00 +0100)]
locale_facets.tcc (num_put::_M_convert_float): Extend comment, reduce __cs_size for non-fixed outputs.

2001-12-07  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc (num_put::_M_convert_float):
Extend comment, reduce __cs_size for non-fixed outputs.

From-SVN: r47767

22 years agocommitted wrong rev. oops. fixing.
Aldy Hernandez [Fri, 7 Dec 2001 18:59:27 +0000 (18:59 +0000)]
committed wrong rev.  oops.  fixing.

From-SVN: r47766

22 years agonew
Aldy Hernandez [Fri, 7 Dec 2001 18:52:06 +0000 (18:52 +0000)]
new

From-SVN: r47765

22 years agoextend.texi (Variable Attributes): Document vector_size.
Aldy Hernandez [Fri, 7 Dec 2001 18:49:16 +0000 (18:49 +0000)]
extend.texi (Variable Attributes): Document vector_size.

2001-12-07  Aldy Hernandez  <aldyh@redhat.com>

* doc/extend.texi (Variable Attributes): Document vector_size.

        * attribs.c (c_common_attribute_table): Add vector_size.
(handle_vector_size_attribute): New.
        (vector_size_helper): New.
(decl_attributes): Relayout the decl after calculating attribs.

From-SVN: r47764

22 years ago* check-init.c (check_init): Fix typo freeing memory twice.
Per Bothner [Fri, 7 Dec 2001 18:16:21 +0000 (10:16 -0800)]
* check-init.c (check_init):  Fix typo freeing memory twice.

From-SVN: r47763

22 years agoMAINTAINERS (Write After Approval): Add myself.
Turly O'Connor [Fri, 7 Dec 2001 17:41:40 +0000 (17:41 +0000)]
MAINTAINERS (Write After Approval): Add myself.

* MAINTAINERS (Write After Approval): Add myself.
* rs6000.c (rs6000_trampoline_size): Handle ABI_DARWIN case.
(rs6000_initialize_trampoline): Call __trampoline_setup for
ABI_DARWIN too.
* darwin-tramp.asm: New file, implements __trampoline_setup.
* t-darwin: LIB2FUNCS_EXTRA now includes darwin_tramp.asm.

From-SVN: r47762

22 years ago* t-darwin: LIB2FUNCS_EXTRA now includes darwin_tramp.asm.
Turly O'Connor [Fri, 7 Dec 2001 17:36:56 +0000 (17:36 +0000)]
* t-darwin: LIB2FUNCS_EXTRA now includes darwin_tramp.asm.

From-SVN: r47761

22 years ago* darwin-tramp.asm: New file, implements __trampoline_setup.
Turly O'Connor [Fri, 7 Dec 2001 17:35:03 +0000 (17:35 +0000)]
* darwin-tramp.asm: New file, implements __trampoline_setup.

From-SVN: r47760

22 years agors6000.c (rs6000_trampoline_size): Handle ABI_DARWIN case.
Turly O'Connor [Fri, 7 Dec 2001 17:34:21 +0000 (17:34 +0000)]
rs6000.c (rs6000_trampoline_size): Handle ABI_DARWIN case.

* rs6000.c (rs6000_trampoline_size): Handle ABI_DARWIN case.
(rs6000_initialize_trampoline): Call __trampoline_setup for
ABI_DARWIN too.

From-SVN: r47759

22 years ago* MAINTAINERS: add self to write-after-approval crew.
Turly O'Connor [Fri, 7 Dec 2001 17:01:32 +0000 (17:01 +0000)]
* MAINTAINERS: add self to write-after-approval crew.

From-SVN: r47758

22 years agogcc.texi: Don't include install-old.texi.
Joseph Myers [Fri, 7 Dec 2001 16:57:28 +0000 (16:57 +0000)]
gcc.texi: Don't include install-old.texi.

* doc/gcc.texi: Don't include install-old.texi.  Adjust menu
description for Trouble section.
* doc/install-old.texi: Adjust for inclusion as chapter of new
installation manual.
* doc/install.texi, doc/include/fdl.texi, doc/install.texi2html:
Adjust to include old installation chapter as chapter of new
installation manual.

From-SVN: r47757

22 years agortl.h (get_jump_table_offset): Declare.
John Wehle [Fri, 7 Dec 2001 16:10:03 +0000 (16:10 +0000)]
rtl.h (get_jump_table_offset): Declare.

* rtl.h (get_jump_table_offset): Declare.
* rtlanal.c (get_jump_table_offset): Implement.

From-SVN: r47756

22 years agofinal.c (bb_head, [...]): Deleted; were used only by BB profiler code.
Richard Kenner [Fri, 7 Dec 2001 12:31:06 +0000 (12:31 +0000)]
final.c (bb_head, [...]): Deleted; were used only by BB profiler code.

* final.c (bb_head, bb_tail, bb_file_label_num, bb_func_label_num):
Deleted; were used only by BB profiler code.
(sbb_head, sbb_tail, sbb_label_num): Likewise.
(end_final): Delete now-unused vars I, PTR, and SPTR.

From-SVN: r47755

22 years agobasic_string.tcc (_M_mutate): Fix typo in the previous check in.
Paolo Carlini [Fri, 7 Dec 2001 12:25:51 +0000 (13:25 +0100)]
basic_string.tcc (_M_mutate): Fix typo in the previous check in.

2001-12-07  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/basic_string.tcc (_M_mutate): Fix typo
in the previous check in.

From-SVN: r47754

22 years agoexpr.c (store_field): Remove warning.
Richard Kenner [Fri, 7 Dec 2001 12:15:33 +0000 (12:15 +0000)]
expr.c (store_field): Remove warning.

* expr.c (store_field): Remove warning.
(expand_expr, case COMPONENT_REF, case VIEW_CONVERT_EXPR): Likewise.
(highest_pow2_factor, case MIN_EXPR, case MAX_EXPR): Add cases.
(highest_pow2_factor, case *_DIV_EXPR): Only can do something if
divisor constant power of 2.
(highest_pow2_factor, case COMPOUND_EXPR): Look at operand 1.

From-SVN: r47753

22 years ago* g++-old.deja/g++.robertl/eb101.C: Deleted.
Richard Kenner [Fri, 7 Dec 2001 11:35:32 +0000 (11:35 +0000)]
* g++-old.deja/g++.robertl/eb101.C: Deleted.

From-SVN: r47752

22 years agobasic_string.tcc (_M_mutate, _M_clone): Implement exponential growth policy to meet...
Paolo Carlini [Fri, 7 Dec 2001 09:07:55 +0000 (10:07 +0100)]
basic_string.tcc (_M_mutate, _M_clone): Implement exponential growth policy to meet linear amortized time requirements...

2001-12-06  Paolo Carlini  <pcarlini@unitus.it>
    Loren J. Rittle <ljrittle@acm.org>

* include/bits/basic_string.tcc (_M_mutate, _M_clone): Implement
exponential growth policy to meet linear amortized time
requirements of the standard.
        (_S_create): Adjust comment.

Co-Authored-By: Loren J. Rittle <ljrittle@acm.org>
From-SVN: r47750

22 years agoDaily bump.
GCC Administrator [Fri, 7 Dec 2001 08:17:17 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r47749

22 years agoalpha.c (function_arg): Cast value to HOST_WIDE_INT before shifting.
Kaveh R. Ghazi [Fri, 7 Dec 2001 05:13:10 +0000 (05:13 +0000)]
alpha.c (function_arg): Cast value to HOST_WIDE_INT before shifting.

* alpha.c (function_arg): Cast value to HOST_WIDE_INT before
shifting.

From-SVN: r47747

22 years agoverify.cc (_Jv_BytecodeVerifier::FLAG_JSR_TARGET): Removed.
Tom Tromey [Fri, 7 Dec 2001 03:30:47 +0000 (03:30 +0000)]
verify.cc (_Jv_BytecodeVerifier::FLAG_JSR_TARGET): Removed.

* verify.cc (_Jv_BytecodeVerifier::FLAG_JSR_TARGET): Removed.
(_Jv_BytecodeVerifier::note_branch_target): Likewise.

From-SVN: r47745

22 years agors6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): New.
Aldy Hernandez [Fri, 7 Dec 2001 03:03:43 +0000 (03:03 +0000)]
rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): New.

2001-12-06  Aldy Hernandez  <aldyh@redhat.com>

* rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): New.
        (DWARF_FRAME_REGISTERS): Delete.

From-SVN: r47744

22 years ago[multiple changes]
Benjamin Kosnik [Fri, 7 Dec 2001 02:58:36 +0000 (02:58 +0000)]
[multiple changes]

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

libstdc++/3720
* include/bits/locale_facets.tcc (num_put): Clean.
(num_get::_M_extract_float): Change argument to string.
(num_get::do_get(float)): Fixup.
(num_get::do_get(double)): Same.
(num_get::do_get(long double)): Same.
(num_get::_M_extract_int): Add maximum length parameter, __max.
(num_get::_M_extract_float): Correct zeros, use string.
* include/bits/locale_facets.h (num_get::_M_extract_float): Change
declaration here.
* src/locale.cc (__num_base::_S_atoms): Remove x, X.
* testsuite/27_io/istream_extractor_arith.cc (test13): Add.

2001-12-06  Philip Martin  <pmartin@uklinux.net>

* testsuite/27_io/istream_extractor_arith.cc (test12): Add
tests for excess input digits.

From-SVN: r47743

22 years agobuiltin-prefetch-1.c: Add checks for variable argument list.
Janis Johnson [Fri, 7 Dec 2001 01:44:48 +0000 (01:44 +0000)]
builtin-prefetch-1.c: Add checks for variable argument list.

        * gcc.c-torture/execute/builtin-prefetch-1.c: Add checks for
        variable argument list.

From-SVN: r47742

22 years agobuiltin-types.def (BT_FN_VOID_PTR_VAR): New.
Janis Johnson [Fri, 7 Dec 2001 01:42:35 +0000 (01:42 +0000)]
builtin-types.def (BT_FN_VOID_PTR_VAR): New.

* builtin-types.def (BT_FN_VOID_PTR_VAR): New.
* builtins.def (BUILT_IN_PREFETCH): Change arguments.
* builtins.c (expand_builtin_prefetch): Two arguments are now optional,
with defaults for read prefetch with high degree of locality.
* doc/extend.texi (__builtin_prefetch): Update documentation.
* doc/md.texi (prefetch): Add documentation.

From-SVN: r47741

22 years ago* libjava.compile/BlankFinal.java: Removed; incorrect test.
Tom Tromey [Fri, 7 Dec 2001 00:12:56 +0000 (00:12 +0000)]
* libjava.compile/BlankFinal.java: Removed; incorrect test.

From-SVN: r47739

22 years agoMAINTAINERS (Write After Approval): Add myself.
Paolo Carlini [Thu, 6 Dec 2001 23:36:56 +0000 (00:36 +0100)]
MAINTAINERS (Write After Approval): Add myself.

2001-12-07  Paolo Carlini  <pcarlini@unitus.it>

* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r47738

22 years agomemcheck: Delete entire directory.
Zack Weinberg [Thu, 6 Dec 2001 23:17:55 +0000 (23:17 +0000)]
memcheck: Delete entire directory.

        * gcc.c-torture/execute/memcheck: Delete entire directory.
        (files: blkarg.c blkarg.x driver.c driver.h t1.c t2.c t3.c
        t4.c t5.c t6.c t7.c t8.c t9.c template memcheck.exp)

From-SVN: r47737

22 years agomemcheck: Delete entire directory.
Zack Weinberg [Thu, 6 Dec 2001 23:15:17 +0000 (23:15 +0000)]
memcheck: Delete entire directory.

* gcc.c-torture/execute/memcheck: Delete entire directory.
(files: blkarg.c blkarg.x driver.c driver.h t1.c t2.c t3.c
t4.c t5.c t6.c t7.c t8.c t9.c template memcheck.exp)

From-SVN: r47736

22 years agoRestore support for static class initialization optimization.
Per Bothner [Thu, 6 Dec 2001 23:12:55 +0000 (15:12 -0800)]
Restore support for static class initialization optimization.

From-SVN: r47735

22 years agoverify.cc (_Jv_BytecodeVerifier::type_val): Added unused_by_subroutine_type.
Tom Tromey [Thu, 6 Dec 2001 23:06:11 +0000 (23:06 +0000)]
verify.cc (_Jv_BytecodeVerifier::type_val): Added unused_by_subroutine_type.

* verify.cc (_Jv_BytecodeVerifier::type_val): Added
unused_by_subroutine_type.
(_Jv_BytecodeVerifier::type::merge): Handle
unused_by_subroutine_type.
(_Jv_BytecodeVerifier::state::state): Added `ret_semantics'
argument.
(_Jv_BytecodeVerifier::state::copy): Likewise.
(_Jv_BytecodeVerifier::push_jump_merge): Pass `ret_semantics' to
state constructor.
(_Jv_BytecodeVerifier::state::is_unmerged_ret_state): New method.
(_Jv_BytecodeVerifier::pop_jump): Don't accept a jump which is
from an unmerged ret.
(_Jv_BytecodeVerifier::verify_instructions_0): Don't let an
unmerged ret state skip verification in the fall-through case.
(debug_print): New function.
(_Jv_BytecodeVerifier::type::print): New method.
(_Jv_BytecodeVerifier::state::print): New method.
(_Jv_BytecodeVerifier::push_jump_merge): Print state.
(_Jv_BytecodeVerifier::verify_instructions_0): Likewise.
(_Jv_BytecodeVerifier::get_variable): Don't call note_variable.
(_Jv_BytecodeVerifier::_Jv_BytecodeVerifier): Print debug
information.

From-SVN: r47734

22 years agodemangle.h (no_demangling): New.
Richard Henderson [Thu, 6 Dec 2001 21:56:15 +0000 (13:56 -0800)]
demangle.h (no_demangling): New.

        * demangle.h (no_demangling): New.
        (NO_DEMANGLING_STYLE_STRING): New.

        * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
        (cplus_demangle): Support no_demangling.

From-SVN: r47733

22 years agore PR libf2c/4826 (Build error for 3.0.2 on Tru64 Unix 5.1A)
Rainer Orth [Thu, 6 Dec 2001 21:52:42 +0000 (21:52 +0000)]
re PR libf2c/4826 (Build error for 3.0.2 on Tru64 Unix 5.1A)

* fixinc/inclhack.def (stdio_va_list): Handle __VA_LIST__ in Tru64
UNIX V5.1A stdio.h.
* fixinc/fixincl.x: Regenerate.
Fixes PR libf2c/4826.

From-SVN: r47732

22 years agotm.texi (DWARF_FRAME_REGISTERS): Add documentation.
Aldy Hernandez [Thu, 6 Dec 2001 21:38:03 +0000 (21:38 +0000)]
tm.texi (DWARF_FRAME_REGISTERS): Add documentation.

        * doc/tm.texi (DWARF_FRAME_REGISTERS): Add documentation.
        (PRE_GCC3_DWARF_FRAME_REGISTERS): Same.

        * unwind-dw2.c (__frame_state_for): Change DWARF_FRAME_REGISTERS
        to PRE_GCC3_DWARF_FRAME_REGISTERS.
        (frame_state): Same.
        (PRE_GCC3_DWARF_FRAME_REGISTERS): Define if not already defined.

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

22 years agostd_bitset.h: Use GLIBCPP in multiple-inclusion guard.
Phil Edwards [Thu, 6 Dec 2001 20:29:31 +0000 (20:29 +0000)]
std_bitset.h: Use GLIBCPP in multiple-inclusion guard.

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

* include/bits/std_bitset.h:  Use GLIBCPP in multiple-inclusion guard.
* include/bits/stl_algo.h:  Likewise.
* include/bits/stl_algobase.h:  Likewise.
* include/bits/stl_bvector.h:  Likewise.
* include/bits/stl_deque.h:  Likewise.
* include/bits/stl_function.h:  Likewise.
* include/bits/stl_iterator.h:  Likewise.
* include/bits/stl_iterator_base_funcs.h:  Likewise.
* include/bits/stl_iterator_base_types.h:  Likewise.
* include/bits/stl_list.h:  Likewise.
* include/bits/stl_multimap.h:  Likewise.
* include/bits/stl_multiset.h:  Likewise.
* include/bits/stl_pair.h:  Likewise.
* include/bits/stl_queue.h:  Likewise.
* include/bits/stl_set.h:  Likewise.
* include/bits/stl_stack.h:  Likewise.
* include/bits/stl_tempbuf.h:  Likewise.
* include/bits/stl_tree.h:  Likewise.
* include/bits/stl_vector.h:  Likewise.

* include/bits/stl_alloc.h:  Use our own multiple inclusion guards.
Doxygenate more comments.  Correct historical artifacts in comments.
(alloc, single_alloc):  Uglify non-standard names.
(__default_alloc_template::_NFREELISTS):  Calculate from other
parameters.
(__default_alloc_template::_S_free_list):  Remove SunPro workaround.
(__default_alloc_template::_Lock):  Mark as "unused".
* include/backward/alloc.h:  Update.
* include/bits/stl_bvector.h:  Likewise.
* include/ext/ropeimpl.h:  Likewise.
* include/ext/stl_hashtable.h:  Likewise.

From-SVN: r47729

22 years agoFix typo in 2001-12-03 entry; now:
Janis Johnson [Thu, 6 Dec 2001 19:17:35 +0000 (19:17 +0000)]
Fix typo in 2001-12-03 entry; now:

        * doc/extend.texi: Document __builtin_prefetch.

From-SVN: r47728

22 years ago* langhooks.c (lhd_staticp): Mark parameter with ATTRIBUTE_UNUSED.
Kaveh R. Ghazi [Thu, 6 Dec 2001 18:15:46 +0000 (18:15 +0000)]
* langhooks.c (lhd_staticp): Mark parameter with ATTRIBUTE_UNUSED.

From-SVN: r47727

22 years agoMakefile.in (.po.gmo): Use "-test -d po || mkdir po" to reduce noise.
H.J. Lu [Thu, 6 Dec 2001 18:13:17 +0000 (18:13 +0000)]
Makefile.in (.po.gmo): Use "-test -d po || mkdir po" to reduce noise.

2001-12-06  H.J. Lu <hjl@gnu.org>

* Makefile.in (.po.gmo): Use "-test -d po || mkdir po" to
reduce noise.
(.po.pox): Likewise.
(o/$(PACKAGE).pot): Likewise.

From-SVN: r47726

22 years agotree.c (get_callee_fndecl): Move DECL_ABSTRACT_ORIGIN-following...
Alexandre Oliva [Thu, 6 Dec 2001 17:58:23 +0000 (17:58 +0000)]
tree.c (get_callee_fndecl): Move DECL_ABSTRACT_ORIGIN-following...

* tree.c (get_callee_fndecl): Move DECL_ABSTRACT_ORIGIN-following...
* tree-inline.c (expand_call_inline): ... here.

From-SVN: r47725

22 years agoMakefile.in (.po.gmo): Use "-mkdir po" for parallel build.
H.J. Lu [Thu, 6 Dec 2001 17:49:09 +0000 (17:49 +0000)]
Makefile.in (.po.gmo): Use "-mkdir po" for parallel build.

2001-12-06  H.J. Lu <hjl@gnu.org>

* Makefile.in (.po.gmo): Use "-mkdir po" for parallel build.
(.po.pox): Likewise.
(o/$(PACKAGE).pot): Likewise.

From-SVN: r47724

22 years agoconfig.gcc: Include dbxelf.h before elfos.h.
David O'Brien [Thu, 6 Dec 2001 17:34:55 +0000 (17:34 +0000)]
config.gcc: Include dbxelf.h before elfos.h.

2001-12-06  David O'Brien  <obrien@FreeBSD.org>
* config.gcc: Include dbxelf.h before elfos.h.
* elfos.h: Don't include dbxelf.h, let config.gcc handle it.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20011205224713.D9059@redhat.com>

From-SVN: r47723

22 years agocppfiles.c (open_file): If we've opened a directory by mistake, close it.
Zack Weinberg [Thu, 6 Dec 2001 16:41:18 +0000 (16:41 +0000)]
cppfiles.c (open_file): If we've opened a directory by mistake, close it.

* cppfiles.c (open_file): If we've opened a directory by
mistake, close it.
(find_include_file): Avoid turning / into // or // into ///.

From-SVN: r47722

22 years agoRestore definition of STRUCT_VALUE_REGNUM,
Nick Clifton [Thu, 6 Dec 2001 15:18:54 +0000 (15:18 +0000)]
Restore definition of STRUCT_VALUE_REGNUM,

From-SVN: r47721

22 years agoflow.c (find_regno_partial): Return register, not the expression the register is in.
Andrew MacLeod [Thu, 6 Dec 2001 14:39:11 +0000 (14:39 +0000)]
flow.c (find_regno_partial): Return register, not the expression the register is in.

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

* flow.c (find_regno_partial): Return register, not the expression
the register is in.

From-SVN: r47720

22 years agofunction.c (handle_epilogue_set): Check for FP setting case when SP is set from FP...
Richard Kenner [Thu, 6 Dec 2001 14:30:57 +0000 (14:30 +0000)]
function.c (handle_epilogue_set): Check for FP setting case when SP is set from FP in same insn.

* function.c (handle_epilogue_set): Check for FP setting case when
SP is set from FP in same insn.

From-SVN: r47719

22 years agoooops - omitted text of ChangeLog entry
Nick Clifton [Thu, 6 Dec 2001 13:54:57 +0000 (13:54 +0000)]
ooops - omitted text of ChangeLog entry

From-SVN: r47718

22 years agoPass pointer to RTX when calling alter_subreg().
Nick Clifton [Thu, 6 Dec 2001 13:53:15 +0000 (13:53 +0000)]
Pass pointer to RTX when calling alter_subreg().

From-SVN: r47717

22 years agofunction.c (assing_parms): Fix typo in last change.
Richard Kenner [Thu, 6 Dec 2001 12:05:44 +0000 (12:05 +0000)]
function.c (assing_parms): Fix typo in last change.

* function.c (assing_parms): Fix typo in last change.
* config/clipper.c (clipper_builtin_saveregs): Remove Checker code.
* config/m88k/m88k.c (m88k_builtin_saveregs): Likewise.
* config/pa/pa.c (hppa_builtin_saveregs): Likewise.
* config/sparc/sparc.c (sparc_builtin_saveregs): Likewise.

From-SVN: r47715

22 years agors6000.c (rs6000_unique_section): Simplify and correct code selecting section.
Alan Modra [Thu, 6 Dec 2001 11:56:34 +0000 (11:56 +0000)]
rs6000.c (rs6000_unique_section): Simplify and correct code selecting section.

* config/rs6000/rs6000.c (rs6000_unique_section): Simplify and
correct code selecting section.

From-SVN: r47714

22 years agofinal.c (count_basic_block, [...]): Kill.
Jan Hubicka [Thu, 6 Dec 2001 11:49:46 +0000 (12:49 +0100)]
final.c (count_basic_block, [...]): Kill.

* final.c (count_basic_block, add_bb, add_bb_string):
Kill.
(end_final, final_start_function, final, final_scan_insn,
leaf_function_p): Kill BB profiler related code.
* flags.h (profile_block_flag): Kill.
* libgcc2.c (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE,
BB_BUCKETS, BBINBUFSIZE, bb_edge, bb_func_mode, bb_func,
__bb, bb_src, bb_dst, bb_tracefile, bb_hashbuckets,
bb_func_head, bb_callcount, bb_mode, bb_stack, bb_stacksize
reported, GOPENDECOMPRESS, GOPENCOMPRESS, gopen, gclose,
__bb_exit_trace_func, __bb_init_prg, __bb_trace_func,
__bb_trace_func_ret, __bb_init_file, __bb_trace_ret,
__bb_init_trace_func): Kill.
* toplev.c (profile_block_flag): Kill.
(indepdendent_decode_option, process_options): Kill -a related code.
* alpha.c (direct_call_operand): Likewise.
* arm.c (arm_expand_prologue, thumb_expand_prologue,
thumb_expand_epilogue): Likewise.
* c4x.c (c4x_expand_prologue, c4x_null_epilogue_p): Likewise.
* c4x.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
MACHINE_STATE_RESTORE): Kill.
* d30v.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
MACHINE_STATE_RESTORE): Kill.
* fr30.c (fr30_expand_prologue): Kill BB profiler related code.
* i386.c (ix86_can_use_return_insn_p, ix86_expand_prologue,
ix86_expand_epilogue, ix86_expand_epilogue): Kill BB profiler related
code.
(ix86_output_function_block_profiler, ix86_output_block_profiler): Kill.
* i386.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
MACHINE_STATE_RESTORE): Kill.
* fr30.c (fr30_expand_prologue): Kill BB profiler related code.
* i960.c (i960_output_function_prologue): Kill BB profiler related
code.
* ia64.c (ia64_compute_frame_size): Likewise.
* ia64.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
MACHINE_STATE_RESTORE): Kill.
* m32r.c (m32r_expand_prolofue): Kill BB profiler related code.
* m68hc11.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
MACHINE_STATE_RESTORE): Kill.
* m68k.c (m68k_output_function_epilogue): Kill BB profiler related code.
* m68k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
MACHINE_STATE_RESTORE): Kill.
* m88k.c (output_options, m88k_layout_frame, m88k_expand_prologue):
Kill BB profiler related code.
* m88k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
MACHINE_STATE_RESTORE): Kill.
* mips.c (mips_expand_prologue): Kill BB profiler related code.
* mmix.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
MACHINE_STATE_RESTORE): Kill.
* rs6000.c (rs6000_override_options): Kill BB profiler related code.
* s960.c (s390_function_prologue): Kill BB profiler related code.
* s960.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
MACHINE_STATE_RESTORE): Kill.
* linux-aout.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
* linux.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
* linux64.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
* sol2.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
* sparc.c (sparc_override_options, eligible_for_sibcall_delay,
sparc_nonflat_function_epilogue): Kill BB profiler related code.
(sparc_function_block_profiler, sparc_block_profiler,
sparc_function_block_profiler_exit): Kill.
* sparc.h (OVERRIDE_OPTIONS): Kill BB profiler related code.
(FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
MACHINE_STATE_RESTORE): Kill.
* sun4o3.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
* sunos4.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
* stormy16.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
MACHINE_STATE_RESTORE): Kill.
* doc/invoke.texi: Kill documentation of -a and -ax.
* tm.texi (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
MACHINE_STATE_RESTORE): Kill.

From-SVN: r47712

22 years ago* doc/rtl.texi: Use a table to display RTL format characters.
Steve Christiansen [Thu, 6 Dec 2001 11:27:42 +0000 (11:27 +0000)]
* doc/rtl.texi: Use a table to display RTL format characters.

From-SVN: r47711

22 years agolinux64.h (LINK_SPEC): Correct name of dynamic linker.
Bo Thorsen [Thu, 6 Dec 2001 10:43:01 +0000 (10:43 +0000)]
linux64.h (LINK_SPEC): Correct name of dynamic linker.

2001-12-06  Bo Thorsen  <bo@suse.co.uk>

* config/i386/linux64.h (LINK_SPEC): Correct name of dynamic linker.

From-SVN: r47709

22 years agoDaily bump.
GCC Administrator [Thu, 6 Dec 2001 08:16:51 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r47707

22 years agofunction.c (keep_stack_depressed): Check global_live_at_start of EXIT_BLOCK for temp...
Richard Kenner [Thu, 6 Dec 2001 02:44:57 +0000 (02:44 +0000)]
function.c (keep_stack_depressed): Check global_live_at_start of EXIT_BLOCK for temp register and verify it isn't...

* function.c (keep_stack_depressed): Check global_live_at_start
of EXIT_BLOCK for temp register and verify it isn't in equiv_reg_src.

From-SVN: r47706

22 years agoconfig.gcc (powerpc-*-freebsd*): Use the proper tmake_file files, as set by the gener...
David O'Brien [Thu, 6 Dec 2001 01:43:58 +0000 (01:43 +0000)]
config.gcc (powerpc-*-freebsd*): Use the proper tmake_file files, as set by the generic FreeBSD configure framework.

2001-12-05  David O'Brien  <obrien@FreeBSD.org>
* config.gcc (powerpc-*-freebsd*): Use the proper tmake_file files,
as set by the generic FreeBSD configure framework.

Approved by:  obvious rule

From-SVN: r47705

22 years agotweak decl syntax
Jason Merrill [Thu, 6 Dec 2001 00:42:07 +0000 (19:42 -0500)]
tweak decl syntax

From-SVN: r47704

22 years agolanghooks.h (struct lang_hooks_for_tree_inlining): Add start_inlining, end_inlining.
Jason Merrill [Wed, 5 Dec 2001 23:48:19 +0000 (18:48 -0500)]
langhooks.h (struct lang_hooks_for_tree_inlining): Add start_inlining, end_inlining.

        * langhooks.h (struct lang_hooks_for_tree_inlining): Add
        start_inlining, end_inlining.
        * tree-inline.c (expand_call_inline): Call them.
        * langhooks-def.h (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
        (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
        (LANG_HOOKS_TREE_INLINING_INITIALIZER): Add them.
        * langhooks.c (lhd_tree_inlining_start_inlining): New fn.
        (lhd_tree_inlining_end_inlining): New fn.

        * cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
        (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
        * tree.c (cp_start_inlining, cp_end_inlining): New fns.
        * pt.c (push_tinst_level): No longer static.
        * cp-tree.h: Declare them.

        * init.c (resolve_offset_ref): Don't check access for the base
        conversion to access a FIELD_DECL.

        * cp-tree.h (TYPE_REFFN_P): New macro.
        * decl.c (bad_specifiers): Check it, too.

        * rtti.c (create_pseudo_type_info): Set CLASSTYPE_INTERFACE_ONLY
        on the __*_type_info type if we haven't seen a definition.

From-SVN: r47703

22 years agoattribs.c (handle_no_check_memory_usage_atribute): Deleted.
Richard Kenner [Wed, 5 Dec 2001 23:33:53 +0000 (18:33 -0500)]
attribs.c (handle_no_check_memory_usage_atribute): Deleted.

* attribs.c (handle_no_check_memory_usage_atribute): Deleted.
(c_com): Delete its reference.
* builtins.c: Delete memory checking code.
* calls.c, expr.c, function.c, stmt.c: Likewise.
* builtins.c (expand_builtin_arg_info): Remove reference to
EXPAND_MEMORY_USE_* modifiers.
* explow.c (expr_size): Likewise.
* expr.c (expand_expr, expand_increment): Likewise.
* expr.h (ARGS_SIZE_RTX): Likewise.
* function.c (assign_parms, expand_pending_sizeso): Likewise.
* c-decl.c (duplicate_decls): Don't handle DECL_NO_CHECK_MEMORY_USAGE.
* expr.c (in_check_memory_usage): Delete.
(get_push_address, get_memory_usage_from_modifier): Delete.
(expand_assigment): Use EXPAND_WRITE on destination.
(expand_expr): Delete ro_modifier.
* expr.h (expand_modifier): Delete EXPAND_MEMORY_* entries and
add EXPAND_WRITE.
(memory_use_mode): Delete.
* flags.h (flag_check_memory_usage): Deleted.
(flag_prefix_function_name): Likewise.
* function.c (expand_function_start): Don't set
current_function_check_memory_usage.
* function.h (check_memory_usage): Delete.
* libfuncs.h, optabs.c: Delete chkr_* stuff.
* stmt.c (expand_asm_opernd): Change EXPAND_MEMORY_USE_WO to
EXPAND_WRITE.
* toplev.c (flag_check_memory_usage): Deleted.
(flag_prefix_function_name): Likewise.
(f_options, process_options): Delete references to above.
* tree.h (DECL_NO_CHECK_MEMORY_USAGE): Deleted.
* varasm.c (CHKR_PREFIX): Deleted.
(make_decl_rtl): Remove flag_prefix_function_name handling.
(assemble_name): Likewise.
* doc/extend.texi: Remove no_check_memory_usage attribute.
* doc/invoke.texi: Remove -fcheck-memory-usage
and -fprefix-function-name.
* cp/decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.

From-SVN: r47702

22 years agoc-common.c (shadow_warning): New function, moved from cp/decl.c.
Neil Booth [Wed, 5 Dec 2001 23:20:00 +0000 (23:20 +0000)]
c-common.c (shadow_warning): New function, moved from cp/decl.c.

* c-common.c (shadow_warning): New function, moved from cp/decl.c.
* c-common.h (shadow_warning): New.
* c-decl.c: Include c-common.h.
(warn_if_shadowing): New, broken out of pushdecl.
(pushdecl): Use warn_if_shadowing.
(store_parm_decls): Prevent duplicate -Wshadow warnings.
cp:
* decl.c: Include c-common.h.
(shadow_warning): Move to c-common.c.
testsuite:
* gcc.dg/Wshadow-1.c: New test.

From-SVN: r47701

22 years agovms.h (SIZE_TYPE, [...]): Remove, were disabled.
Douglas B Rupp [Wed, 5 Dec 2001 23:09:01 +0000 (18:09 -0500)]
vms.h (SIZE_TYPE, [...]): Remove, were disabled.

* config/alpha/vms.h (SIZE_TYPE, PTRDIFF_TYPE): Remove, were disabled.
(DOLLARS_IN_IDENTIFIERS, LINK_SPEC): Remove duplicate.
(LIB_SPEC): Remove.

From-SVN: r47700

22 years agoc-tree.texi (RECORD_TYPE, UNION_TYPE): Expand on definition.
Richard Kenner [Wed, 5 Dec 2001 22:59:09 +0000 (22:59 +0000)]
c-tree.texi (RECORD_TYPE, UNION_TYPE): Expand on definition.

* doc/c-tree.texi (RECORD_TYPE, UNION_TYPE): Expand on definition.
(QUAL_UNION_TYPE): New type.

From-SVN: r47699

22 years ago* varasm.c (output_constant, case ERROR_MARK): New case.
Richard Kenner [Wed, 5 Dec 2001 22:52:05 +0000 (22:52 +0000)]
* varasm.c (output_constant, case ERROR_MARK): New case.

From-SVN: r47698

22 years agoattribs.c (handle_no_check_memory_usage_atribute): Deleted.
Richard Kenner [Wed, 5 Dec 2001 22:37:41 +0000 (22:37 +0000)]
attribs.c (handle_no_check_memory_usage_atribute): Deleted.

* attribs.c (handle_no_check_memory_usage_atribute): Deleted.
(c_com): Delete its reference.
* builtins.c: Delete memory checking code.
* calls.c, expr.c, function.c, stmt.c: Likewise.
* builtins.c (expand_builtin_arg_info): Remove reference to
EXPAND_MEMORY_USE_* modifiers.
* explow.c (expr_size): Likewise.
* expr.c (expand_expr, expand_increment): Likewise.
* expr.h (ARGS_SIZE_RTX): Likewise.
* function.c (assign_parms, expand_pending_sizeso): Likewise.
* c-decl.c (duplicate_decls): Don't handle DECL_NO_CHECK_MEMORY_USAGE.
* expr.c (in_check_memory_usage): Delete.
(get_push_address, get_memory_usage_from_modifier): Delete.
(expand_assigment): Use EXPAND_WRITE on destination.
(expand_expr): Delete ro_modifier.
* expr.h (expand_modifier): Delete EXPAND_MEMORY_* entries and
add EXPAND_WRITE.
(memory_use_mode): Delete.
* flags.h (flag_check_memory_usage): Deleted.
(flag_prefix_function_name): Likewise.
* function.c (expand_function_start): Don't set
current_function_check_memory_usage.
* function.h (check_memory_usage): Delete.
* libfuncs.h, optabs.c: Delete chkr_* stuff.
* stmt.c (expand_asm_opernd): Change EXPAND_MEMORY_USE_WO to
EXPAND_WRITE.
* toplev.c (flag_check_memory_usage): Deleted.
(flag_prefix_function_name): Likewise.
(f_options, process_options): Delete references to above.
* tree.h (DECL_NO_CHECK_MEMORY_USAGE): Deleted.
* varasm.c (CHKR_PREFIX): Deleted.
(make_decl_rtl): Remove flag_prefix_function_name handling.
(assemble_name): Likewise.
* doc/extend.texi: Remove no_check_memory_usage attribute.
* doc/invoke.texi: Remove -fcheck-memory-usage
and -fprefix-function-name.
* cp/decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.

From-SVN: r47697

22 years ago[multiple changes]
Benjamin Kosnik [Wed, 5 Dec 2001 22:07:36 +0000 (22:07 +0000)]
[multiple changes]

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

DR/282
* include/bits/locale_facets.tcc (num_put::_M_widen_float): Add
grouping to floating point types.
* testsuite/27_io/ostream_inserter_arith.cc (test02): Add test.

2001-12-04  Paolo Carlini <pcarlini@unitus.it>

        libstdc++/4402
        * testsuite/27_io/ostream_inserter_arith.cc (test02): add testcase
from the PR.
        * include/bits/locale_facets.tcc (num_put::_M_convert_float):
        Deal properly with long ios_base::fixed floats.
        (num_put::_M_widen_float): use
__len in __builtin_alloca call.

From-SVN: r47696

22 years agoMakefile.in (STMP_FIXPROTO, [...]): Use substituted values from autoconf.
Andreas Schwab [Wed, 5 Dec 2001 22:06:28 +0000 (22:06 +0000)]
Makefile.in (STMP_FIXPROTO, [...]): Use substituted values from autoconf.

* Makefile.in (STMP_FIXPROTO, STMP_FIXINC): Use substituted values
from autoconf.

From-SVN: r47695

22 years agognatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY, -c /COMPILE_ONLY, -l /LINK_ONLY
Vincent Celier [Wed, 5 Dec 2001 21:25:25 +0000 (21:25 +0000)]
gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY, -c /COMPILE_ONLY, -l /LINK_ONLY

* gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
-c /COMPILE_ONLY, -l /LINK_ONLY

* opt.ads:
(Bind_Only): New Flag
(Link_Only): New flag

* switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
and -l (Link_Only)

* makeusg.adb: Add new switches -b and -l. Update Copyright notice.

* make.adb:
(Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
(Gnatmake): Set the step flags. Only perform a step if the
corresponding step flag is True.
(Scan_Make_Arg): Reset the bind and link step flags when -u
or -gnatc has been specified.

From-SVN: r47694

22 years agoInclude arm/xscale-coff.h before arm/arm.h.
Nick Clifton [Wed, 5 Dec 2001 21:19:14 +0000 (21:19 +0000)]
Include arm/xscale-coff.h before arm/arm.h.

From-SVN: r47693

22 years agosem_eval.adb (Eval_Concatenation): If left operand is a null string, get bounds from...
Geert Bosch [Wed, 5 Dec 2001 21:13:00 +0000 (22:13 +0100)]
sem_eval.adb (Eval_Concatenation): If left operand is a null string, get bounds from right operand.

* sem_eval.adb (Eval_Concatenation): If left operand is a null string,
get bounds from right operand.

* sem_eval.adb: Minor reformatting

* exp_util.adb (Make_Literal_Range): use bound of literal rather
than Index'First, its lower bound may be different from 1.

* exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
and C48009J

* prj-nmsc.adb Minor reformatting

* prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
set and libraries are not supported.

* sem_ch3.adb (Build_Derived_Private_Type): set Public status of
private view explicitly, so the back-end can treat as a global
when appropriate.

From-SVN: r47692

22 years ago* ChangeLog: Repair from previous update.
Geert Bosch [Wed, 5 Dec 2001 20:41:24 +0000 (21:41 +0100)]
* ChangeLog: Repair from previous update.

From-SVN: r47691

22 years agosem_ch12.adb (Instantiate_Package_Body): if instance is a compilation unit...
Geert Bosch [Wed, 5 Dec 2001 20:34:43 +0000 (21:34 +0100)]
sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation unit...

* sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
 unit, always replace instance node with new body, for ASIS use.

* prj-nmsc.adb (Language_Independent_Check): Issue a warning if
libraries are not supported and both attributes Library_Name and
Library_Dir are specified.

* prj-proc.adb (Expression): Set location of Result to location of
first term.

* Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
(prj-nmsc is now importing MLib.Tgt)

* prj-proc.adb: Put the change indicated above that was forgotten.

From-SVN: r47690

22 years agoarm.h (THUMB_FUNCTION_PROFILER): Correct typo in instruction.
William Cohen [Wed, 5 Dec 2001 20:32:08 +0000 (20:32 +0000)]
arm.h (THUMB_FUNCTION_PROFILER): Correct typo in instruction.

2001-12-05  William Cohen  <wcohen@redhat.com>

* config/arm/arm.h (THUMB_FUNCTION_PROFILER): Correct typo in
instruction.

From-SVN: r47689

22 years ago* Makefile.in: Add dependencies for System.IO for GNAT.Regexp
Robert Dewar [Wed, 5 Dec 2001 20:08:20 +0000 (20:08 +0000)]
* Makefile.in: Add dependencies for System.IO for GNAT.Regexp

From-SVN: r47688

22 years agosem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a constraint...
Ed Schonberg [Wed, 5 Dec 2001 20:00:50 +0000 (20:00 +0000)]
sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a constraint...

* sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
constraint, introduce explicit subtype declaration and derive from it.

* sem_ch3.adb: Minor reformatting

From-SVN: r47687

22 years agochecks.adb (Determine_Range): Increase cache size for checks.
Robert Dewar [Wed, 5 Dec 2001 19:54:31 +0000 (19:54 +0000)]
checks.adb (Determine_Range): Increase cache size for checks.

* checks.adb (Determine_Range): Increase cache size for checks.
Minor reformatting

* exp_ch6.adb: Minor reformatting
(Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
a parameter whose root type is System.Address, since treating such
subprograms as pure in the code generator is almost surely a mistake
that will lead to unexpected results.

* exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
change handling of conversions.

* g-regexp.adb: Use System.IO instead of Ada.Text_IO.

From-SVN: r47686

22 years agosem_ch3.adb (Analyze_Object_Declaration): If expression is an aggregate with static...
Ed Schonberg [Wed, 5 Dec 2001 19:34:44 +0000 (19:34 +0000)]
sem_ch3.adb (Analyze_Object_Declaration): If expression is an aggregate with static wrong size...

* sem_ch3.adb (Analyze_Object_Declaration): If expression is an
aggregate with static wrong size, attach generated Raise node to
declaration.

From-SVN: r47685

22 years agodefineclass.cc (character): Removed.
Tom Tromey [Wed, 5 Dec 2001 19:28:16 +0000 (19:28 +0000)]
defineclass.cc (character): Removed.

* defineclass.cc (character): Removed.
(prepare_character): Removed.
(is_identifier_start): Use Character, not character.
(is_identifier_part): Likewise.

From-SVN: r47684

22 years agosem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
Robert Dewar [Wed, 5 Dec 2001 19:13:59 +0000 (19:13 +0000)]
sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.

* sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
Fixes compilation abandoned bomb in B24009B.

From-SVN: r47683

22 years agosem_ch12.adb: Document use of Associated_Node on Selected_Components.
Ed Schonberg [Wed, 5 Dec 2001 18:59:43 +0000 (18:59 +0000)]
sem_ch12.adb: Document use of Associated_Node on Selected_Components.

* sem_ch12.adb:
Document use of Associated_Node on Selected_Components.
(Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
to clarify use of untyped descendant fields.

From-SVN: r47682