platform/upstream/gcc.git
22 years ago* doc/gcc.texi: Document use of "dependent" and American spelling.
Joseph Myers [Sun, 28 Oct 2001 18:59:25 +0000 (18:59 +0000)]
* doc/gcc.texi: Document use of "dependent" and American spelling.

From-SVN: r46589

22 years agoexpr.c (emit_group_load): Support CONCATs by storing them to memory and reloading.
Jan Hubicka [Sun, 28 Oct 2001 16:10:12 +0000 (17:10 +0100)]
expr.c (emit_group_load): Support CONCATs by storing them to memory and reloading.

* expr.c (emit_group_load): Support CONCATs by storing them to memory
and reloading.

From-SVN: r46586

22 years ago* expr.c (store_constructor_field): Only call adjust_address on MEM.
Richard Kenner [Sun, 28 Oct 2001 16:06:17 +0000 (16:06 +0000)]
* expr.c (store_constructor_field): Only call adjust_address on MEM.

From-SVN: r46585

22 years agogenrecog.c (write_switch): Output if before switch for DT_elt_zero_wide_safe.
Jan Hubicka [Sun, 28 Oct 2001 16:00:22 +0000 (17:00 +0100)]
genrecog.c (write_switch): Output if before switch for DT_elt_zero_wide_safe.

* genrecog.c (write_switch):  Output if before switch for
DT_elt_zero_wide_safe.

From-SVN: r46584

22 years agoMakefile.in (toplev.o, halfpic.o): Depend on halfpic.h
Kaveh R. Ghazi [Sun, 28 Oct 2001 14:01:20 +0000 (14:01 +0000)]
Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h

* Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
* i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
(FUNCTION_PROFILER): Const-ify.
* halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
(eliminate_constant_term, assemble_name, output_addr_const):
Remove declarations.
(ptr_half_pic_address_p, half_pic_hash): Prototype.
(all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
* halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
(half_pic_declare, half_pic_external): Const-ify.
* toplev.c: Include "halfpic.h".

From-SVN: r46583

22 years agoalpha.md, [...]: Fix spelling errors.
Joseph Myers [Sun, 28 Oct 2001 13:22:02 +0000 (13:22 +0000)]
alpha.md, [...]: Fix spelling errors.

* config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
config/i386/i386.c, config/i386/i386-interix.h,
config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
config/sparc/sparc.c, config/m68hc11/m68hc11.c,
config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
spelling errors.

From-SVN: r46582

22 years ago86numaux.adb, [...]: Fix spelling errors.
Joseph Myers [Sun, 28 Oct 2001 12:56:08 +0000 (12:56 +0000)]
86numaux.adb, [...]: Fix spelling errors.

* 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
types.ads, urealp.adb: Fix spelling errors.

From-SVN: r46581

22 years agoChangeLog.0, [...]: Fix spelling errors.
Joseph Myers [Sun, 28 Oct 2001 12:42:06 +0000 (12:42 +0000)]
ChangeLog.0, [...]: Fix spelling errors.

* ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
system.h, toplev.c: Fix spelling errors.

From-SVN: r46580

22 years ago* ChangeLog, configure: Fix spelling errors.
Joseph Myers [Sun, 28 Oct 2001 12:08:43 +0000 (12:08 +0000)]
* ChangeLog, configure: Fix spelling errors.

From-SVN: r46579

22 years agoDaily bump.
GCC Administrator [Sun, 28 Oct 2001 07:16:09 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r46575

22 years ago* gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
Richard Kenner [Sun, 28 Oct 2001 02:34:18 +0000 (02:34 +0000)]
* gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.

From-SVN: r46574

22 years agodwarf2out.c (reg_number): Abort if pseudo.
Richard Kenner [Sun, 28 Oct 2001 02:30:03 +0000 (02:30 +0000)]
dwarf2out.c (reg_number): Abort if pseudo.

* dwarf2out.c (reg_number): Abort if pseudo.
(reg_loc_descriptor): Return 0 if pseudo.
(is_based_loc): Return 0 if pseudo.
(mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
recursive calls.
(concat_loc_descriptor): Return 0 if either part's descriptor is 0.
(loc_descriptor): Return 0 if can't find location and handle 0
return from recursive calls.
(loc_descriptor_from_tree): Likewise.
Fix handling of indirect.
Also return 0 for PLACEHOLDER_EXPR.
Clean up COMPONENT_REF cases.
(add_AT_location_descriptor): Simplify, but handle 0 return from
loc_descriptor.
(add_const_value_attribute): Avoid shift count warning.
(add_bound_info): Remove test for PLACEHOLDER_EXPR here.
Set comp_unit_die as context if not in function.

From-SVN: r46573

22 years agomips-protos.h: Break up long lines.
Richard Kenner [Sat, 27 Oct 2001 22:41:00 +0000 (22:41 +0000)]
mips-protos.h: Break up long lines.

* config/mips/mips-protos.h: Break up long lines.
Remove needless #ifdef/#endif blocks.
Don't declare functions declared in file made by genpreds or recog.h.
* config/mips/mips.c (mips_output_function_prologue): TSIZE
is now HOST_WIDE_INT; delete unneeded casts.
* config/mips/mips.h: Don't use #elif.

From-SVN: r46572

22 years agoexpr.c (stor_constructor_field): Always call adjust_address.
Richard Kenner [Sat, 27 Oct 2001 21:30:46 +0000 (21:30 +0000)]
expr.c (stor_constructor_field): Always call adjust_address.

* expr.c (stor_constructor_field): Always call adjust_address.
Copy TARGET before changing its alias set.
(store_field): Likewise, for TO_RTX.
(get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
replacement.
(safe_from_p, case ADDR_EXPR): Properly check for conflict.
(find_placeholder): Return 0 if can't find object.
(expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
returns 0.

From-SVN: r46571

22 years agojni.h (struct JNINativeInterface): Returns jsize, not jint.
Tom Tromey [Sat, 27 Oct 2001 18:24:51 +0000 (18:24 +0000)]
jni.h (struct JNINativeInterface): Returns jsize, not jint.

* include/jni.h (struct JNINativeInterface) [GetStringLength]:
Returns jsize, not jint.

From-SVN: r46569

22 years ago* ifcvt.c (if_convert): Call clear_aux_for_blocks.
Jan Hubicka [Sat, 27 Oct 2001 14:33:12 +0000 (16:33 +0200)]
* ifcvt.c (if_convert): Call clear_aux_for_blocks.

From-SVN: r46568

22 years agotrans.c (gigi): Fix non determinism leading to bootstrap comparison failures for...
Laurent Guerby [Sat, 27 Oct 2001 14:26:32 +0000 (14:26 +0000)]
trans.c (gigi): Fix non determinism leading to bootstrap comparison failures for debugging...

* trans.c (gigi): Fix non determinism leading to bootstrap
comparison failures for debugging information.

From-SVN: r46567

22 years ago* gnat_rm.texi: Use @./@: where appropriate.
Florian Weimer [Sat, 27 Oct 2001 14:23:21 +0000 (16:23 +0200)]
* gnat_rm.texi: Use @./@: where appropriate.

From-SVN: r46566

22 years ago* decl2.c (validate_nonmember_using_decl): Handle NAMESPACE_DECL.
Kriang Lerdsuwanakij [Sat, 27 Oct 2001 14:05:34 +0000 (14:05 +0000)]
* decl2.c (validate_nonmember_using_decl): Handle NAMESPACE_DECL.

From-SVN: r46565

22 years agocfgcleanup.c (merge_blocks_move_predecessor_nojumps, [...]): Set BB_UPDATE_LIFE.
Jan Hubicka [Sat, 27 Oct 2001 10:17:44 +0000 (12:17 +0200)]
cfgcleanup.c (merge_blocks_move_predecessor_nojumps, [...]): Set BB_UPDATE_LIFE.

* cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
(merge_blocks): Properly udpate life after making edge nonfallthru.
* cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.

From-SVN: r46564

22 years agoDaily bump.
GCC Administrator [Sat, 27 Oct 2001 07:16:40 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r46563

22 years agoAdler32.java: Use correct class name.
Tom Tromey [Fri, 26 Oct 2001 22:01:03 +0000 (22:01 +0000)]
Adler32.java: Use correct class name.

* java/util/zip/Adler32.java: Use correct class name.  (Re-merge
from Classpath.)

From-SVN: r46561

22 years ago* config/h8300/h8300.c (get_shift_alg): Remove redundant code.
Kazu Hirata [Fri, 26 Oct 2001 21:08:47 +0000 (21:08 +0000)]
* config/h8300/h8300.c (get_shift_alg): Remove redundant code.

From-SVN: r46560

22 years agoc-typeck.c (convert_arguments): When comparing for enumeral type equality, use TYPE_M...
Neil Booth [Fri, 26 Oct 2001 20:49:48 +0000 (20:49 +0000)]
c-typeck.c (convert_arguments): When comparing for enumeral type equality, use TYPE_MAIN_VARIANT.

* c-typeck.c (convert_arguments): When comparing for enumeral
type equality, use TYPE_MAIN_VARIANT.
* gcc.dg/Wconversion.c: New tests.

From-SVN: r46559

22 years ago* sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
Robert Dewar [Fri, 26 Oct 2001 18:49:37 +0000 (18:49 +0000)]
* sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.

From-SVN: r46558

22 years agos390.c: Fix comment typos.
Kazu Hirata [Fri, 26 Oct 2001 18:29:51 +0000 (18:29 +0000)]
s390.c: Fix comment typos.

* s390/s390.c: Fix comment typos.
* s390/s390.h: Likewise.
* s390/s390.md: Likewise.

From-SVN: r46557

22 years agotree-inline.c (WALK_SUBTREE_TAIL): New macro.
Alexandre Oliva [Fri, 26 Oct 2001 18:27:13 +0000 (18:27 +0000)]
tree-inline.c (WALK_SUBTREE_TAIL): New macro.

* tree-inline.c (WALK_SUBTREE_TAIL): New macro.
(walk_tree): Use it for tail calls where appropriate.

From-SVN: r46556

22 years agocse.c (check_for_label_ref): Don't require REG_LABEL notes for non-local label_refs.
Alexandre Oliva [Fri, 26 Oct 2001 17:43:51 +0000 (17:43 +0000)]
cse.c (check_for_label_ref): Don't require REG_LABEL notes for non-local label_refs.

* cse.c (check_for_label_ref): Don't require REG_LABEL notes for
non-local label_refs.

From-SVN: r46555

22 years ago* config/h8300/h8300.md (4 anonymous patterns): New.
Kazu Hirata [Fri, 26 Oct 2001 17:09:33 +0000 (17:09 +0000)]
* config/h8300/h8300.md (4 anonymous patterns): New.

From-SVN: r46554

22 years agoh8300.c (get_shift_alg): Clean up.
Kazu Hirata [Fri, 26 Oct 2001 17:06:27 +0000 (17:06 +0000)]
h8300.c (get_shift_alg): Clean up.

* config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
algorithm through the shift_info structure.
(emit_a_shift): Update the use of get_shift_alg.

From-SVN: r46553

22 years ago* gmem.c (__gnat_gmem_read_next): Properly check for EOF
Richard Kenner [Fri, 26 Oct 2001 17:03:05 +0000 (17:03 +0000)]
* gmem.c (__gnat_gmem_read_next): Properly check for EOF

From-SVN: r46552

22 years agodecl.c (validate_size): Modify message for bad size to avoid implication that compile...
Richard Kenner [Fri, 26 Oct 2001 16:59:34 +0000 (16:59 +0000)]
decl.c (validate_size): Modify message for bad size to avoid implication that compiler is modifying the...

* decl.c (validate_size): Modify message for bad size to avoid
implication that compiler is modifying the size.

From-SVN: r46551

22 years ago* prj-util.adb: Minor reformatting. Fix bad header format.
Robert Dewar [Fri, 26 Oct 2001 16:52:22 +0000 (16:52 +0000)]
* prj-util.adb: Minor reformatting. Fix bad header format.

From-SVN: r46550

22 years agosinfo.ads: Define Associated_Node to overlap Entity field.
Robert Dewar [Fri, 26 Oct 2001 16:44:45 +0000 (16:44 +0000)]
sinfo.ads: Define Associated_Node to overlap Entity field.

* sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.

* sinfo.ads: Clarify use of Associated_Node (documentation only).

* sem_ch12.adb: Change Node4 to Associated_Node. Change
Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
much more narrowly in places where needed. These are cleanups.

From-SVN: r46549

22 years ago5zosinte.ads (null_pthread): new constant.
Joel Brobecker [Fri, 26 Oct 2001 16:09:47 +0000 (18:09 +0200)]
5zosinte.ads (null_pthread): new constant.

* 5zosinte.ads (null_pthread): new constant.

* 5ztaprop.adb:
(Initialize_TCB): Initialize thread ID to null, to be able to verify
 later that this field has been set.
(Finalize_TCB): ditto.
(Suspend_Task): Verify that the thread ID is not null before using it.
(Resume_Task): ditto.

* s-tasdeb.adb:
(Resume_All_Tasks): Lock the tasks list before using it.
(Suspend_All_Tasks): ditto.

From-SVN: r46548

22 years agodecl.c (gnat_to_gnu_entity, [...]): Make constant variant of designated type for...
Richard Kenner [Fri, 26 Oct 2001 16:01:07 +0000 (16:01 +0000)]
decl.c (gnat_to_gnu_entity, [...]): Make constant variant of designated type for Is_Access_Constant.

* decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
Make constant variant of designated type for Is_Access_Constant.
Call update_pointer_to with main variant.

* trans.c (process_freeze_entity, process_type):
Call update_pointer_to on main variant.

* utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
If main variant, update all other variants.

* utils2.c (build_unary_op, case INDIRECT_REF): No longer set
TREE_STATIC.

From-SVN: r46547

22 years ago* prj-util.adb: Minor reformatting
Robert Dewar [Fri, 26 Oct 2001 15:52:50 +0000 (15:52 +0000)]
* prj-util.adb: Minor reformatting

From-SVN: r46546

22 years ago* prj-util.adb: Minor reformatting
Robert Dewar [Fri, 26 Oct 2001 15:41:11 +0000 (15:41 +0000)]
* prj-util.adb: Minor reformatting

From-SVN: r46545

22 years ago* prj-attr.adb: Minor reformatting throughout
Robert Dewar [Fri, 26 Oct 2001 15:38:46 +0000 (15:38 +0000)]
* prj-attr.adb: Minor reformatting throughout

From-SVN: r46544

22 years agoprj-attr.ads: Minor reformatting Add ??? comment (this whole spec has almost no comments)
Robert Dewar [Fri, 26 Oct 2001 15:34:07 +0000 (15:34 +0000)]
prj-attr.ads: Minor reformatting Add ??? comment (this whole spec has almost no comments)

* prj-attr.ads: Minor reformatting
Add ??? comment (this whole spec has almost no comments)

From-SVN: r46543

22 years agog-os_lib.adb (Normalize_Pathname): Preserve the double slash ("//") that precede...
Vincent Celier [Fri, 26 Oct 2001 15:12:03 +0000 (15:12 +0000)]
g-os_lib.adb (Normalize_Pathname): Preserve the double slash ("//") that precede the drive letter on Interix.

* g-os_lib.adb (Normalize_Pathname): Preserve the double slash
        ("//") that precede the drive letter on Interix.

From-SVN: r46542

22 years agosched-rgn.c: Remove bitset typedef.
Daniel Berlin [Fri, 26 Oct 2001 14:43:47 +0000 (14:43 +0000)]
sched-rgn.c: Remove bitset typedef.

2001-10-27  Daniel Berlin  <dan@cgsoftware.com>

        * sched-rgn.c: Remove bitset typedef.
        Change bitset to sbitmap in prototypes / variable types.
        Remove bbset_size.
        Remove edgeset_bits.
        Remove edgeset_size.
        s/BITSET_ADD/SET_BIT/g
        s/BITSET_INVERT/sbitmap_ones/g
        s/BITSET_INTER/sbitmap_a_and_b/g
        s/BITSET_UNION/sbitmap_a_or_b/g
        s/BITSET_DIFFER/sbitmap_difference/g
        s/bitset_member/TEST_BIT/g
        (BITSET_*): Removed.
        (bitset_member): Removed.
        (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
        EXECUTE_IF_SET_IN_SBITMAP.
        (split_edges): Rewrite, use sbitmap functions instead of bitset
        operations.
        (schedule_region): Allocate/free sbitmaps, rather than bitsets.

From-SVN: r46541

22 years ago* gnat_rm.texi: Add GNAT Reference Manual.
Geert Bosch [Fri, 26 Oct 2001 13:55:51 +0000 (15:55 +0200)]
* gnat_rm.texi: Add GNAT Reference Manual.

From-SVN: r46540

22 years agoreload1.c (emit_input_reload_insns): Fix parens in last (undocumented) change that...
Andreas Schwab [Fri, 26 Oct 2001 13:01:37 +0000 (13:01 +0000)]
reload1.c (emit_input_reload_insns): Fix parens in last (undocumented) change that was supposed to change only...

* reload1.c (emit_input_reload_insns): Fix parens in last
(undocumented) change that was supposed to change only whitespace.

From-SVN: r46539

22 years agocfgcleanup.c (BB_SET_FLAG, [...]): Add cast to avoid warning.
Richard Kenner [Fri, 26 Oct 2001 11:16:09 +0000 (11:16 +0000)]
cfgcleanup.c (BB_SET_FLAG, [...]): Add cast to avoid warning.

* cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.

* local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
ASM_OPERANDS.

From-SVN: r46538

22 years agoflow.c (clear_log_links): Remove unused variable.
Andreas Jaeger [Fri, 26 Oct 2001 09:20:01 +0000 (11:20 +0200)]
flow.c (clear_log_links): Remove unused variable.

* flow.c (clear_log_links): Remove unused variable.
* cfgcleanup.c (cleanup_cfg): Likewise.

From-SVN: r46537

22 years agotree-inline.c (remap_decl): Don't copy size and size_unit here.
Alexandre Oliva [Fri, 26 Oct 2001 08:05:08 +0000 (08:05 +0000)]
tree-inline.c (remap_decl): Don't copy size and size_unit here.

* tree-inline.c (remap_decl): Don't copy size and size_unit here.
(remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.

From-SVN: r46536

22 years agoalpha.h (enum reg_class): Add R24_REG, R25_REG; rename PV_REG to R27_REG.
Richard Henderson [Fri, 26 Oct 2001 08:01:13 +0000 (01:01 -0700)]
alpha.h (enum reg_class): Add R24_REG, R25_REG; rename PV_REG to R27_REG.

        * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
        rename PV_REG to R27_REG.
        (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
        (REG_CLASS_FROM_LETTER): Update.
        (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
        * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
        (udivsi3, modsi3, umodsi3): Likewise.
        (divdi3, udivdi3, moddi3, umoddi3): Likewise.

From-SVN: r46535

22 years agocfg.c (clear_aux_for_blocks): Split out of ...
Richard Henderson [Fri, 26 Oct 2001 07:49:34 +0000 (00:49 -0700)]
cfg.c (clear_aux_for_blocks): Split out of ...

        * cfg.c (clear_aux_for_blocks): Split out of ...
        (free_aux_for_blocks): here.
        (clear_aux_for_edges): Split from ...
        (free_aux_for_edges): here.
        * basic-block.h: Declare them.
        * lcm.c (compute_antinout_edge): Use them.
        (compute_laterin, compute_available, compute_nearerout): Likewise.
        (optimize_mode_switching): Likewise.

From-SVN: r46534

22 years agoMakefile.in (unstage*): Remove as, ld, collect-ld before moving everything back to...
Richard Henderson [Fri, 26 Oct 2001 07:24:34 +0000 (00:24 -0700)]
Makefile.in (unstage*): Remove as, ld, collect-ld before moving everything back to the main build directory.

        * Makefile.in (unstage*): Remove as, ld, collect-ld before
        moving everything back to the main build directory.

From-SVN: r46533

22 years ago2001-10-26 Benjamin Kosnik <bkoz@redhat.com>
Benjamin Kosnik [Fri, 26 Oct 2001 07:21:56 +0000 (07:21 +0000)]
2001-10-26  Benjamin Kosnik  <bkoz@redhat.com>

libstdc++/4503
* config/locale/codecvt_specializations_ieee_1003.1-200x.h
(__enc_traits::~__enc_traits): Fix.
(__enc_traits::_M_init): Add error checking.

From-SVN: r46532

22 years agoDaily bump.
GCC Administrator [Fri, 26 Oct 2001 07:16:20 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r46530

22 years agolocale_facets.tcc (time_get::_M_extract_name): Fix.
Benjamin Kosnik [Fri, 26 Oct 2001 06:23:47 +0000 (06:23 +0000)]
locale_facets.tcc (time_get::_M_extract_name): Fix.

2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>

libstdc++/4542
* include/bits/locale_facets.tcc (time_get::_M_extract_name): Fix.

From-SVN: r46529

22 years ago[multiple changes]
Benjamin Kosnik [Fri, 26 Oct 2001 05:32:06 +0000 (05:32 +0000)]
[multiple changes]

2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>

libstdc++/4545
* include/bits/ostream.tcc (ostream::operator<<(streambuf*)): Fix
exceptions.
* include/bits/istream.tcc (istream::operator>>(streambuf*): Make
consistent, where possible.
* include/bits/streambuf.tcc: Tweak.

2001-10-25  Brendan Kehoe  <brendan@zen.org>

libstdc++/4536
* bits/ostream.tcc (seekp): Scope use as ios_base::failbit.
  * bits/istream.tcc (seekg): Likewise.

From-SVN: r46528

22 years agoOops!
Bryce McKinlay [Fri, 26 Oct 2001 04:27:58 +0000 (05:27 +0100)]
Oops!

From-SVN: r46526

22 years agocygwin.h: Search target specfic include directory, if appropriate.
Christopher Faylor [Fri, 26 Oct 2001 04:16:23 +0000 (04:16 +0000)]
cygwin.h: Search target specfic include directory, if appropriate.

* config/i386/cygwin.h: Search target specfic include directory, if
appropriate.

From-SVN: r46524

22 years agoos_defines.h: Set to 64 bit longs with __s390x__ only.
Benjamin Kosnik [Fri, 26 Oct 2001 02:13:31 +0000 (02:13 +0000)]
os_defines.h: Set to 64 bit longs with __s390x__ only.

2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>
    Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
    Ulrich Weigand <Ulrich.Weigand@de.ibm.com>

* config/os/gnu-linux/bits/os_defines.h: Set to 64 bit longs with
__s390x__ only.
* include/bits/std_limits.h: Fix wchar_t issues.
* config/os/aix/bits/os_defines.h: Fix.

Co-Authored-By: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
Co-Authored-By: Ulrich Weigand <uweigand@de.ibm.com>
From-SVN: r46523

22 years agoexpr.c (expand_java_field_op): Don't special-case references to java.lang.PRIMTYPE...
Bryce McKinlay [Fri, 26 Oct 2001 01:53:56 +0000 (01:53 +0000)]
expr.c (expand_java_field_op): Don't special-case references to java.lang.PRIMTYPE.TYPE.

* expr.c (expand_java_field_op): Don't special-case references to
java.lang.PRIMTYPE.TYPE.
(build_primtype_type_ref): Removed.
* java-tree.h (build_primtype_type_ref): Remove prototype.
* parse.y (maybe_build_primttype_type_ref): Removed.
(complete_function_arguments): Don't special-case references to
java.lang.PRIMTYPE.TYPE.
(patch_assignment): Likewise.
(array_constructor_check_entry): Likewise.

From-SVN: r46522

22 years agoVMClassLoader.java (getPrimitiveClass): Now native.
Bryce McKinlay [Fri, 26 Oct 2001 01:51:04 +0000 (01:51 +0000)]
VMClassLoader.java (getPrimitiveClass): Now native.

* java/lang/VMClassLoader.java (getPrimitiveClass): Now native. Now
takes a jchar type-code argument, not a string.
* java/lang/natClassLoader.cc (VMClassLoader::getPrimitiveClass):
New method. Just call _Jv_FindClassFromSignature.
* java/lang/Boolean.java (TYPE): Initialize from
VMClassLoader.getPrimitiveClass using type-code.
* java/lang/Character.java (TYPE): Likewise.
* java/lang/Double.java (TYPE): Likewise.
* java/lang/Float.java (TYPE): Likewise.
* java/lang/Integer.java (TYPE): Likewise.
* java/lang/Long.java (TYPE): Likewise.
* java/lang/Short.java (TYPE): Likewise.
* java/lang/Void.java (TYPE): Likewise.

From-SVN: r46521

22 years agodwarf2out.c (PTR_SIZE, [...]): Move outside of macro guards.
Kaveh R. Ghazi [Fri, 26 Oct 2001 01:51:01 +0000 (01:51 +0000)]
dwarf2out.c (PTR_SIZE, [...]): Move outside of macro guards.

* dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
of macro guards. Fix #endif comment.

* output.h (default_exception_section, default_eh_frame_section):
Move prototypes outside of macro guard.

* crtstuff.c: Fix #endif comment.

From-SVN: r46520

22 years agosem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name is Error.
Robert Dewar [Fri, 26 Oct 2001 01:46:11 +0000 (01:46 +0000)]
sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name is Error.

* sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
        is Error. Similar change for other renaming cases.

From-SVN: r46519

22 years agos-atacco.ads: Add pragma Inline_Always for functions.
Robert Dewar [Fri, 26 Oct 2001 01:41:17 +0000 (01:41 +0000)]
s-atacco.ads: Add pragma Inline_Always for functions.

* s-atacco.ads: Add pragma Inline_Always for functions.
Fix header format. Add copyright 2001

From-SVN: r46518

22 years agopar-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array return Error rather than...
Ed Schonberg [Fri, 26 Oct 2001 01:34:58 +0000 (01:34 +0000)]
par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array return Error rather than Empty so that analysis can proceed.

* par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
        return Error rather than Empty so that analysis can proceed.

From-SVN: r46517

22 years agosem_util.adb (Enter_Name): better handling of cascaded error messages when a unit...
Ed Schonberg [Fri, 26 Oct 2001 01:29:47 +0000 (01:29 +0000)]
sem_util.adb (Enter_Name): better handling of cascaded error messages when a unit appears in its own context.

* sem_util.adb (Enter_Name): better handling of cascaded error
        messages when a unit appears in its own context.

From-SVN: r46516

22 years agosem_util.adb (Defining_Entity): in case of error...
Ed Schonberg [Fri, 26 Oct 2001 01:26:05 +0000 (01:26 +0000)]
sem_util.adb (Defining_Entity): in case of error...

* sem_util.adb (Defining_Entity): in case of error, attach created
        entity to specification, so that semantic analysis can proceed.

From-SVN: r46515

22 years ago* sem_util.adb
Robert Dewar [Fri, 26 Oct 2001 01:18:58 +0000 (01:18 +0000)]
* sem_util.adb
        (Defining_Entity): Deal with Error.
(Process_End_Label): Deal with bad end label for.

From-SVN: r46514

22 years agosem_elab.adb (Check_A_Call): refine message when call is in an instance but callee...
Ed Schonberg [Fri, 26 Oct 2001 01:12:44 +0000 (01:12 +0000)]
sem_elab.adb (Check_A_Call): refine message when call is in an instance but callee is not declared in the...

* sem_elab.adb (Check_A_Call): refine message when call is in an
instance but callee is not declared in the generic unit.

From-SVN: r46513

22 years agosem_elab.adb (Check_A_Call): check for renaming before finding the enclosing unit...
Ed Schonberg [Fri, 26 Oct 2001 01:07:23 +0000 (01:07 +0000)]
sem_elab.adb (Check_A_Call): check for renaming before finding the enclosing unit...

* sem_elab.adb (Check_A_Call): check for renaming before finding the
enclosing unit, which may already be different from the calling unit.

From-SVN: r46512

22 years ago* 4gintnam.ads: fix header format.
Geert Bosch [Fri, 26 Oct 2001 00:50:40 +0000 (02:50 +0200)]
* 4gintnam.ads: fix header format.

From-SVN: r46511

22 years agosem_res.adb (Resolve_Call): if the call is actually an indexing operation on the...
Ed Schonberg [Fri, 26 Oct 2001 00:47:09 +0000 (00:47 +0000)]
sem_res.adb (Resolve_Call): if the call is actually an indexing operation on the result of a parameterless...

* sem_res.adb (Resolve_Call): if the call is actually an indexing
        operation on the result of a parameterless call, perform elaboration
        check after the node has been properly rewritten.

* sem_ch12.adb (Copy_Generic_Node): after the proper body has been
        inlined within the generic tree, the defining identifier is not a
        compilation_unit.

From-SVN: r46510

22 years agosem_res.adb (Resolve): special-case resolution of Null in an instance or an inlined...
Ed Schonberg [Fri, 26 Oct 2001 00:34:46 +0000 (00:34 +0000)]
sem_res.adb (Resolve): special-case resolution of Null in an instance or an inlined body to avoid view...

* sem_res.adb (Resolve): special-case resolution of Null in an
         instance or an inlined body to avoid view conflicts.

* sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
         compatibility by retrieving the access type of the generic copy.

From-SVN: r46509

22 years ago* sem_ch3.adb:
Robert Dewar [Fri, 26 Oct 2001 00:28:10 +0000 (00:28 +0000)]
* sem_ch3.adb:

(Analyze_Number_Declaration): Handle error expression.
(Signed_Integer_Type_Declaration): Handle error bound.
(Analyze_Subtype_Indication): Handle error range.

* sem_util.adb (Get_Index_Bounds): Check for Error.

From-SVN: r46508

22 years agorestrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default in no run time...
Robert Dewar [Thu, 25 Oct 2001 23:53:04 +0000 (23:53 +0000)]
restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default in no run time mode.

* restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
in no run time mode.

From-SVN: r46507

22 years agognatmem.adb (Read_Next): fix Curs2 value to properly handle quiet mode case for ALLOC...
Pascal Obry [Thu, 25 Oct 2001 23:49:27 +0000 (23:49 +0000)]
gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet mode case for ALLOC case.

* gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
        mode case for ALLOC case.

* gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
        all platforms. Improvement of last change.

From-SVN: r46506

22 years ago* exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
Robert Dewar [Thu, 25 Oct 2001 23:43:49 +0000 (23:43 +0000)]
* exp_ch4.adb (Expand_N_Allocator): Minor reformatting.

From-SVN: r46505

22 years ago* osint.adb (Is_Relative): Remove duplicate.
Geert Bosch [Thu, 25 Oct 2001 23:38:15 +0000 (01:38 +0200)]
* osint.adb (Is_Relative): Remove duplicate.

From-SVN: r46504

22 years agoosint.adb (Read_Default_Search_Dirs): correctly detect relative pathnames in UNIX...
Pascal Obry [Thu, 25 Oct 2001 23:23:44 +0000 (23:23 +0000)]
osint.adb (Read_Default_Search_Dirs): correctly detect relative pathnames in UNIX and DOS style with drive letter.

* osint.adb (Read_Default_Search_Dirs): correctly detect relative
        pathnames in UNIX and DOS style with drive letter.
(Is_Relative): new routine.

* osint.adb: Minor reformatting

* osint.adb (Is_Relative): implementation using
        GNAT.OS_Lib.Is_Absolute_Path. Better fix for 8121-009.

From-SVN: r46503

22 years agog-dirope.adb (Basename): correctly compute offset between the original Path and the...
Pascal Obry [Thu, 25 Oct 2001 23:12:24 +0000 (23:12 +0000)]
g-dirope.adb (Basename): correctly compute offset between the original Path and the translated one.

* g-dirope.adb (Basename): correctly compute offset between the
        original Path and the translated one.

* g-dirope.adb: (Base_Name): add some comments.

From-SVN: r46502

22 years agoexp_imgv.adb (Expand_Image_Attribute): Defend against bad use in HIE mode, avoids...
Robert Dewar [Thu, 25 Oct 2001 23:03:11 +0000 (23:03 +0000)]
exp_imgv.adb (Expand_Image_Attribute): Defend against bad use in HIE mode, avoids compilation abandoned message

* exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
        in HIE mode, avoids compilation abandoned message

* exp_imgv.adb: Correct typo in previous change

* exp_imgv.adb: Correct typo in previous change (not my day!)

From-SVN: r46501

22 years agolocale_facets.tcc (collate::do_transform): Fix.
Benjamin Kosnik [Thu, 25 Oct 2001 22:56:07 +0000 (22:56 +0000)]
locale_facets.tcc (collate::do_transform): Fix.

2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/locale_facets.tcc (collate::do_transform): Fix.

From-SVN: r46500

22 years ago* s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
Robert Dewar [Thu, 25 Oct 2001 22:51:49 +0000 (22:51 +0000)]
* s-tpinop.ads: Add 2001 to copyright notice. Fix header format.

From-SVN: r46499

22 years agomangle.c (static tree compression_table): Fixed leading comment.
Alexandre Petit-Bianco [Thu, 25 Oct 2001 21:37:44 +0000 (14:37 -0700)]
mangle.c (static tree compression_table): Fixed leading comment.

2001-10-24  Alexandre Petit-Bianco  <apbianco@redhat.com>

* mangle.c (static tree compression_table): Fixed leading comment.
* parse.h (struct parser_ctxt): Fixed field comment.
* parse.y (check_pkg_class_access): New prototype, fixed leading
comment, new parameter used to emit error only if passed as true.
(parse_check_super): Pass extra argument to check_pkg_class_access.
(do_resolve_class): Likewise.
(process_imports): Likewise.
(read_import_dir): Fixed indentation.
(find_in_imports_on_demand): New local class_type_name. Local
node_to_use deleted. while loop changed into for loop. Report
multiple definition only for accessible classes. Improved error
message.
(start_complete_expand_method): Local `ptr' removed. DECL_ARGUMENTS
assigned to parameter list, fixed indentation. while loop changed
into for loop, restore TREE_CHAIN on local `tem' before the next
iteration.

( http://gcc.gnu.org/ml/gcc-patches/2001-10/msg01323.html )

From-SVN: r46498

22 years agodocumentation.html: Fix typo.
Phil Edwards [Thu, 25 Oct 2001 21:17:34 +0000 (21:17 +0000)]
documentation.html: Fix typo.

2001-10-25  Phil Edwards  <pme@gcc.gnu.org>

* docs/html/documentation.html:  Fix typo.

From-SVN: r46497

22 years agore PR java/3096 (GCJ does not increment)
Alexandre Petit-Bianco [Thu, 25 Oct 2001 21:13:18 +0000 (14:13 -0700)]
re PR java/3096 (GCJ does not increment)

2001-10-04  Alexandre Petit-Bianco  <apbianco@redhat.com>

* libjava.lang/PR3096.java: New file.
* libjava.lang/PR3096.out: Likewise.

( http://gcc.gnu.org/ml/java-patches/2001-q4/msg00165.html )

From-SVN: r46496

22 years agog-awk.ads: Move all pragma inlines next to the routine declarations.
Geert Bosch [Thu, 25 Oct 2001 19:56:43 +0000 (21:56 +0200)]
g-awk.ads: Move all pragma inlines next to the routine declarations.

* g-awk.ads: Move all pragma inlines next to the routine
 declarations. This is more uniform with other GNAT spec.

From-SVN: r46495

22 years agomd.texi (movMM): Clarify semantics of storing into a non-paradoxical SUBREG.
Jeffrey A Law [Thu, 25 Oct 2001 18:25:08 +0000 (18:25 +0000)]
md.texi (movMM): Clarify semantics of storing into a non-paradoxical SUBREG.

        * doc/md.texi (movMM): Clarify semantics of storing into a
        non-paradoxical SUBREG.

From-SVN: r46494

22 years agolanghooks.c (lang_hook_default_clear_binding_stack): New.
Zack Weinberg [Thu, 25 Oct 2001 17:57:03 +0000 (17:57 +0000)]
langhooks.c (lang_hook_default_clear_binding_stack): New.

* langhooks.c (lang_hook_default_clear_binding_stack): New.
(lang_hook_default_get_alias_set): Move next to other alias
hooks.
* langhooks.h: Prototype lang_hook_default_clear_binding_stack.
(LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
(LANG_HOOKS_INITIALIZER): Add it.
* toplev.h (struct lang_hooks): Add clear_binding_stack.
* toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
instead of a loop calling poplevel.
cp:
* cp-lang.c: Redefine LANG_HOOKS_CLEAR_BINDING_STACK to
pop_everything.

From-SVN: r46492

22 years agomsgs.exp: Delete.
Zack Weinberg [Thu, 25 Oct 2001 17:38:14 +0000 (17:38 +0000)]
msgs.exp: Delete.

* gcc.misc-tests/msgs.exp: Delete.
* gcc.misc-tests/m-un-1.c: Move to gcc.dg.
* gcc.misc-tests/m-un-2.c: Move to gcc.dg.  Update expected
error set to match recent changes.

From-SVN: r46491

22 years agoboehm-gc.h: Call thread local allocation functions if THREAD_LOCAL_ALLOC is defined.
Hans Boehm [Thu, 25 Oct 2001 17:29:41 +0000 (17:29 +0000)]
boehm-gc.h: Call thread local allocation functions if THREAD_LOCAL_ALLOC is defined.

* include/boehm-gc.h: Call thread local allocation functions
if THREAD_LOCAL_ALLOC is defined.

From-SVN: r46490

22 years agoReplace occurrences of #elif with #if...#endif.
Nick Clifton [Thu, 25 Oct 2001 13:20:59 +0000 (13:20 +0000)]
Replace occurrences of #elif with #if...#endif.

From-SVN: r46489

22 years ago* cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
Kaveh R. Ghazi [Thu, 25 Oct 2001 13:08:45 +0000 (13:08 +0000)]
* cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.

From-SVN: r46488

22 years agoalias.c (can_address_p): No longer static.
Richard Kenner [Thu, 25 Oct 2001 12:55:16 +0000 (12:55 +0000)]
alias.c (can_address_p): No longer static.

* alias.c (can_address_p): No longer static.
* emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
Return 0 if all parameters are default values.
(set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
(adjust_address_1): Try harder to compute a size.
* expr.c (expand_assignment, store_constructor): If can't address,
set MEM_KEEP_ALIAS_SET_P.
(store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
(store_field): Likewise.
(store_constructor): Simplify call to store_constructor_field.
* expr.h (can_address_p): New declaration.
* gensupport.c (gen_rtx_CONST_INT): New function.
* rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
(MEM_SIZE): Get size from mode, if not set and not BLKmode.
(MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.

From-SVN: r46487

22 years ago* stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
Richard Kenner [Thu, 25 Oct 2001 12:42:15 +0000 (12:42 +0000)]
* stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.

From-SVN: r46486

22 years agoRestore ChangeLog entries which vanished with last commit.
Jakub Jelinek [Thu, 25 Oct 2001 08:40:40 +0000 (10:40 +0200)]
Restore ChangeLog entries which vanished with last commit.

From-SVN: r46485

22 years agoDaily bump.
GCC Administrator [Thu, 25 Oct 2001 07:16:42 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r46484

22 years agoDaily bump.
GCC Administrator [Thu, 25 Oct 2001 07:16:41 +0000 (07:16 +0000)]
Daily bump.

[[Split portion of a mixed commit.]]

From-SVN: r46483.2

22 years agonatClassLoader.cc (_Jv_RegisterClassHookDefault): Use snprintf, not asprintf.
Bryce McKinlay [Thu, 25 Oct 2001 03:15:37 +0000 (03:15 +0000)]
natClassLoader.cc (_Jv_RegisterClassHookDefault): Use snprintf, not asprintf.

2001-10-25  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>

* java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Use
snprintf, not asprintf.

From-SVN: r46482

22 years ago* config/i386/cygwin.h: Use proper path for mingw crt files when -mno-cygwin.
Christopher Faylor [Thu, 25 Oct 2001 03:14:05 +0000 (03:14 +0000)]
* config/i386/cygwin.h: Use proper path for mingw crt files when -mno-cygwin.

From-SVN: r46481

22 years ago* dwarf2out.c (file_info_cmp): Always return consistent results.
Richard Kenner [Wed, 24 Oct 2001 22:44:47 +0000 (22:44 +0000)]
* dwarf2out.c (file_info_cmp): Always return consistent results.

From-SVN: r46480

22 years agogcc.texi (G++ and GCC): Mention Ada front end.
Geert Bosch [Wed, 24 Oct 2001 22:31:17 +0000 (00:31 +0200)]
gcc.texi (G++ and GCC): Mention Ada front end.

* doc/gcc.texi (G++ and GCC): Mention Ada front end.
(Standards): Refer to GNAT Reference Manual.

* doc/install.texi (Configuration): Mention Ada front end.
(Building): Add build instructions for the Ada front end.

* doc/invoke.texi (Overall Options): Document Ada file types.
Add "ada" to "-x LANGUAGE" option parameters.

From-SVN: r46479