platform/upstream/gcc.git
22 years ago* sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
Kaveh R. Ghazi [Tue, 30 Oct 2001 03:11:45 +0000 (03:11 +0000)]
* sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.

From-SVN: r46624

22 years agoreload1.c (eliminate_regs): Test for reg_renumber being allocated before referencing it.
Richard Kenner [Tue, 30 Oct 2001 00:19:58 +0000 (00:19 +0000)]
reload1.c (eliminate_regs): Test for reg_renumber being allocated before referencing it.

* reload1.c (eliminate_regs): Test for reg_renumber being allocated
before referencing it.

From-SVN: r46623

22 years agosysv4.h (LINK_SPEC): Allow -msdata=none to override -G, and force -G0.
DJ Delorie [Mon, 29 Oct 2001 23:09:43 +0000 (18:09 -0500)]
sysv4.h (LINK_SPEC): Allow -msdata=none to override -G, and force -G0.

* config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
override -G, and force -G0.

From-SVN: r46622

22 years agoChangeLog.2, [...]: Fix spelling errors and typos.
Joseph Myers [Mon, 29 Oct 2001 23:01:45 +0000 (23:01 +0000)]
ChangeLog.2, [...]: Fix spelling errors and typos.

* ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
timevar.h, tree.h, varasm.c: Fix spelling errors and typos.

From-SVN: r46621

22 years agoloop.h (struct induction): Rename ext_dependant to ext_dependent.
Joseph Myers [Mon, 29 Oct 2001 22:13:41 +0000 (22:13 +0000)]
loop.h (struct induction): Rename ext_dependant to ext_dependent.

* loop.h (struct induction): Rename ext_dependant to
ext_dependent.
* loop.c: Change all uses.
(check_ext_dependant_givs): Rename to check_ext_dependent_givs.
All callers changed.
* timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.

From-SVN: r46620

22 years ago* c-parse.in (expr_no_commas, primary), c-typeck.c
Joseph Myers [Mon, 29 Oct 2001 22:12:07 +0000 (22:12 +0000)]
* c-parse.in (expr_no_commas, primary), c-typeck.c
(parser_build_binary_op): Use IS_EXPR_CODE_CLASS.

From-SVN: r46619

22 years agore PR libgcj/4728 (java.util.zip.GZIPOutputStream.write(int) doesn't update CRC)
Tom Tromey [Mon, 29 Oct 2001 21:50:07 +0000 (21:50 +0000)]
re PR libgcj/4728 (java.util.zip.GZIPOutputStream.write(int) doesn't update CRC)

* java/util/zip/GZIPOutputStream.java (write(int)): New method.
Fixes PR libgcj/4728.

From-SVN: r46618

22 years agoUndo assemble_name change in earlier patch.
David Edelsohn [Mon, 29 Oct 2001 21:29:30 +0000 (16:29 -0500)]
Undo assemble_name change in earlier patch.

From-SVN: r46617

22 years agoRewritten from scratch class lookup internals - getting a good performance
Nicola Pero [Mon, 29 Oct 2001 21:24:48 +0000 (21:24 +0000)]
Rewritten from scratch class lookup internals - getting a good performance
boost for class method invocations

From-SVN: r46616

22 years agoRewritten all the internals - great performance boost.
Nicola Pero [Mon, 29 Oct 2001 21:23:31 +0000 (21:23 +0000)]
Rewritten all the internals - great performance boost.

From-SVN: r46615

22 years agoNew objc tests
Nicola Pero [Mon, 29 Oct 2001 21:00:46 +0000 (22:00 +0100)]
New objc tests

From-SVN: r46614

22 years agoImproved compiler checkings for ObjC + GNU runtime when sending messages
Nicola Pero [Mon, 29 Oct 2001 20:54:45 +0000 (20:54 +0000)]
Improved compiler checkings for ObjC + GNU runtime when sending messages
to self in class methods

From-SVN: r46613

22 years ago(GNU runtime only) statically type `self' in a class method context to be
Nicola Pero [Mon, 29 Oct 2001 20:51:04 +0000 (20:51 +0000)]
(GNU runtime only) statically type `self' in a class method context to be
the class the method belongs to

From-SVN: r46612

22 years ago* pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
John David Anglin [Mon, 29 Oct 2001 19:48:20 +0000 (19:48 +0000)]
* pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.

From-SVN: r46611

22 years agofstream.tcc (filebuf::showmanyc): Simplify.
Benjamin Kosnik [Mon, 29 Oct 2001 19:29:29 +0000 (19:29 +0000)]
fstream.tcc (filebuf::showmanyc): Simplify.

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

libstdc++/3647
* include/bits/fstream.tcc (filebuf::showmanyc): Simplify.
* testsuite/27_io/filebuf.cc (test07): New test.
(test03): Modify showmanyc test.

From-SVN: r46610

22 years ago* init.c:
Geert Bosch [Mon, 29 Oct 2001 17:45:03 +0000 (18:45 +0100)]
* init.c:

(Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
const.
(_gnat_error_handler): Make MSG const.

* sysdep.c: Fix localtime_r problem on LynxOS.
Also remove #elif to avoid warnings.

* misc.c (yyparse): Don't set up and register jmpbuf; remove decls
used by this.

* decl.c (annotate_value): Make SIZE unsigned to avoid warning.

From-SVN: r46609

22 years agonews.texi: Document new ability to compile programs with arrays larger than 512 Mbyte...
Toon Moene [Mon, 29 Oct 2001 17:41:16 +0000 (18:41 +0100)]
news.texi: Document new ability to compile programs with arrays larger than 512 Mbyte on...

2001-10-29  Toon Moene  <toon@moene.indiv.nluug.nl>

* news.texi: Document new ability to compile programs with
arrays larger than 512 Mbyte on 32-bit targets.

From-SVN: r46608

22 years ago* Makefile.in (OBJS): Put all files in alphabetical order.
Richard Kenner [Mon, 29 Oct 2001 14:34:18 +0000 (14:34 +0000)]
* Makefile.in (OBJS): Put all files in alphabetical order.

From-SVN: r46607

22 years agodwarf2out.c (add_const_value_attribute): Fix error in last change.
Richard Kenner [Mon, 29 Oct 2001 12:24:17 +0000 (12:24 +0000)]
dwarf2out.c (add_const_value_attribute): Fix error in last change.

* dwarf2out.c (add_const_value_attribute): Fix error in last
change.

From-SVN: r46606

22 years agobasic-block.h (purge_all_dead_edges): Add update_life_p argument.
Jan Hubicka [Mon, 29 Oct 2001 11:45:45 +0000 (12:45 +0100)]
basic-block.h (purge_all_dead_edges): Add update_life_p argument.

* basic-block.h (purge_all_dead_edges): Add update_life_p argument.
* cfgcleanup.c (merge_blocks): Update the life flag after merging;
fix warning.
* cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
(life_analysis): call purge_all_dead_edges after deleting noops.
(delete_noop_move): Do not purge CFG.
* toplev.c (rest_of_compilation): Update purge_all_dead_edges call.

From-SVN: r46605

22 years agoDaily bump.
GCC Administrator [Mon, 29 Oct 2001 08:16:23 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r46602

22 years ago* update_web_docs: Generate libiberty and gnat-style manuals.
Joseph Myers [Mon, 29 Oct 2001 01:30:31 +0000 (01:30 +0000)]
* update_web_docs: Generate libiberty and gnat-style manuals.

From-SVN: r46601

22 years agoaix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
David Edelsohn [Sun, 28 Oct 2001 21:45:46 +0000 (21:45 +0000)]
aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.

        * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
        * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
        (ASM_GLOBALIZE_LABEL): Use assemble_name.
        (ASM_OUTPUT_COMMON): Likewise.
        * config/rs6000/rs6000.c (print_operand): Use assemble_name.
        (rs6000_output_function_epilogue): Likewise.
        (output_mi_thunk): Fix typo.
        (rs6000_output_symbol_ref): Use assemble_name.
        (output_toc): Likewise.
        * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
        * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
        assemble_name calls STRIP_NAME_ENCODING.
        (ASM_OUTPUT_LABEL): Use assemble_name.
        (ASM_GLOBALIZE_LABEL): Likewise.
        (ASM_DECLARE_FUNCTION_NAME): Likewise.
        (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
        (ASM_OUTPUT_LOCAL): Likewise.

From-SVN: r46600

22 years agobuiltins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
Richard Kenner [Sun, 28 Oct 2001 20:42:29 +0000 (20:42 +0000)]
builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.

* builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
(expand_builtin_apply, expand_builtin_return): Likewise.
(expand_builtin_va_arg, expand_builtin_va_copy): Likewise.

From-SVN: r46598

22 years agoChangeLog.0, [...]: Fix spelling errors.
Joseph Myers [Sun, 28 Oct 2001 20:09:17 +0000 (20:09 +0000)]
ChangeLog.0, [...]: Fix spelling errors.

* ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
configure, configure.in, except.c, except.h, flow.c, function.c,
gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
unroll.c: Fix spelling errors.

From-SVN: r46595

22 years agoChangeLog.1, [...]: Fix spelling errors.
Joseph Myers [Sun, 28 Oct 2001 19:25:00 +0000 (19:25 +0000)]
ChangeLog.1, [...]: Fix spelling errors.

* ChangeLog.1, ChangeLog.2, ChangeLog, class.c, decl2.c, search.c,
semantics.c, spew.c: Fix spelling errors.

From-SVN: r46593

22 years ago* doc/extend.texi, doc/invoke.texi: Fix spelling.
Joseph Myers [Sun, 28 Oct 2001 19:12:12 +0000 (19:12 +0000)]
* doc/extend.texi, doc/invoke.texi: Fix spelling.

From-SVN: r46591

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