gcc.git
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

22 years agors6000.h (enum rs6000_builtins): Add more altivec builtins.
Daniel Berlin [Wed, 5 Dec 2001 18:00:54 +0000 (18:00 +0000)]
rs6000.h (enum rs6000_builtins): Add more altivec builtins.

2001-12-05  Daniel Berlin  <dan@cgsoftware.com>

* config/rs6000/rs6000.h (enum rs6000_builtins): Add more altivec
builtins.

* config/rs6000/rs6000.md: Modeling of 7450 altivec changed to
better reflect reality (change from Apple's tree).
Add more of altivec instructions.
Add ftruncv4sf2 pattern.
Remove more unspecs (vector merge instructions, etc).

* config/rs6000/rs6000.c (bdesc_3arg): New, for 3 argument altivec
builtins.
(bdesc_1arg): New, for 1 argument altivec builtins.
(altivec_expand_builtin): Handle unary and ternary ops.
(altivec_init_builtins): Ditto.

From-SVN: r47681

22 years agoprj-dect.ads: Add ??? comment Add 2001 to copyright notice (was not done in after...
Robert Dewar [Wed, 5 Dec 2001 17:42:08 +0000 (17:42 +0000)]
prj-dect.ads: Add ??? comment Add 2001 to copyright notice (was not done in after all)

* prj-dect.ads: Add ??? comment
Add 2001 to copyright notice (was not done in after all)

* prj-part.adb: Minor reformatting. Reword one awkward error message.

* prj.ads: Minor reformatting throughout, and add some ??? comments

* snames.ads: Minor reformatting

From-SVN: r47680

22 years agoprj-dect.adb (Parse): Rename parameter Modifying to Extends.
Geert Bosch [Wed, 5 Dec 2001 17:33:31 +0000 (18:33 +0100)]
prj-dect.adb (Parse): Rename parameter Modifying to Extends.

* prj-dect.adb (Parse): Rename parameter Modifying to Extends.

* prj-dect.ads (Parse): Rename parameter Modifying to Extends.

* prj-env.adb: Minor comment changes (modifying -> extends).

* prj-nmsc.adb: Minor comment changes (modifying -> extends).

* prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
Tok_Extends.

* prj.adb (Initialize): Change Modifying to Extends.

* scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.

* prj.ads: Minor comment change (Modifying -> extending).

* snames.ads: Change modifying to extends.

From-SVN: r47679

22 years agoprj-dect.adb (Parse): Rename parameter Modifying to Extends.
Vincent Celier [Wed, 5 Dec 2001 17:24:58 +0000 (17:24 +0000)]
prj-dect.adb (Parse): Rename parameter Modifying to Extends.

* prj-dect.adb (Parse): Rename parameter Modifying to Extends.

* prj-dect.ads (Parse): Rename parameter Modifying to Extends.

* prj-env.adb: Minor comment changes (modifying -> extends).

* prj-nmsc.adb: Minor comment changes (modifying -> extends).

* prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
Tok_Extends.

* prj.adb (Initialize): Change Modifying to Extends.

* scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.

* prj.ads: Minor comment change (Modifying -> extending).

* snames.ads: Change modifying to extends.

From-SVN: r47678

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