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
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
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
Florian Weimer [Sat, 27 Oct 2001 14:23:21 +0000 (16:23 +0200)]
* gnat_rm.texi: Use @./@: where appropriate.
From-SVN: r46566
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
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
GCC Administrator [Sat, 27 Oct 2001 07:16:40 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r46563
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
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
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
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
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
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
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
Kazu Hirata [Fri, 26 Oct 2001 17:09:33 +0000 (17:09 +0000)]
* config/h8300/h8300.md (4 anonymous patterns): New.
From-SVN: r46554
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
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
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
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
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
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
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
Robert Dewar [Fri, 26 Oct 2001 15:52:50 +0000 (15:52 +0000)]
* prj-util.adb: Minor reformatting
From-SVN: r46546
Robert Dewar [Fri, 26 Oct 2001 15:41:11 +0000 (15:41 +0000)]
* prj-util.adb: Minor reformatting
From-SVN: r46545
Robert Dewar [Fri, 26 Oct 2001 15:38:46 +0000 (15:38 +0000)]
* prj-attr.adb: Minor reformatting throughout
From-SVN: r46544
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
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
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
Geert Bosch [Fri, 26 Oct 2001 13:55:51 +0000 (15:55 +0200)]
* gnat_rm.texi: Add GNAT Reference Manual.
From-SVN: r46540
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
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
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
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
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
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
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
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
GCC Administrator [Fri, 26 Oct 2001 07:16:20 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r46530
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
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
Bryce McKinlay [Fri, 26 Oct 2001 04:27:58 +0000 (05:27 +0100)]
Oops!
From-SVN: r46526
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
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
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
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
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
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
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
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
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
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
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
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
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
Geert Bosch [Fri, 26 Oct 2001 00:50:40 +0000 (02:50 +0200)]
* 4gintnam.ads: fix header format.
From-SVN: r46511
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
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
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
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
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
Robert Dewar [Thu, 25 Oct 2001 23:43:49 +0000 (23:43 +0000)]
* exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
From-SVN: r46505
Geert Bosch [Thu, 25 Oct 2001 23:38:15 +0000 (01:38 +0200)]
* osint.adb (Is_Relative): Remove duplicate.
From-SVN: r46504
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
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
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
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
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
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
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
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
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
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
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
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
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
Nick Clifton [Thu, 25 Oct 2001 13:20:59 +0000 (13:20 +0000)]
Replace occurrences of #elif with #if...#endif.
From-SVN: r46489
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
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
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
Jakub Jelinek [Thu, 25 Oct 2001 08:40:40 +0000 (10:40 +0200)]
Restore ChangeLog entries which vanished with last commit.
From-SVN: r46485
GCC Administrator [Thu, 25 Oct 2001 07:16:42 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r46484
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
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
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
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
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
Roger Sayle [Wed, 24 Oct 2001 22:11:40 +0000 (22:11 +0000)]
stmt.c (expand_end_case): Index jumptables from zero for suitably small values of minval.
* stmt.c (expand_end_case): Index jumptables from zero for
suitably small values of minval.
From-SVN: r46478
Loren J. Rittle [Wed, 24 Oct 2001 22:03:30 +0000 (22:03 +0000)]
Correct date.
From-SVN: r46477
Loren J. Rittle [Wed, 24 Oct 2001 21:57:08 +0000 (21:57 +0000)]
configure.in (case $THREADS): Add *-*-freebsd* configuration.
* configure.in (case $THREADS): Add *-*-freebsd* configuration.
(HAVE_GETHOSTBYADDR_R): Create a valid, non-optimal
configuration when gethostbyaddr_r exists yet no prototype
exists in netdb.h.
* configure: Rebuilt.
* posix-threads.cc (INTR): Reuse path for LINUX_THREADS
with FREEBSD_THREADS. However, comment different reason.
From-SVN: r46476
Jakub Jelinek [Wed, 24 Oct 2001 21:47:23 +0000 (23:47 +0200)]
stor-layout.c (place_union_field): If any field was aligned with attribute aligned, set record type's TYPE_USER_ALIGN.
* stor-layout.c (place_union_field): If any field was aligned with
attribute aligned, set record type's TYPE_USER_ALIGN.
(place_field): Likewise.
(finalize_record_size): Don't clear TYPE_USER_ALIGN.
(layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
From-SVN: r46475
Tom Tromey [Wed, 24 Oct 2001 21:39:24 +0000 (21:39 +0000)]
Makefile.in: Rebuilt.
2001-10-24 Tom Tromey <tromey@redhat.com>
Warren Levy <warrenl@redhat.com>
* Makefile.in: Rebuilt.
* Makefile.am (javax_source_files): New macro.
(ordinary_java_source_files): Added javax_source_files.
(libgcj.jar): Search javax for class files.
* javax/naming/LinkException.java (toString): Wrote.
(toString(boolean)): Likewise.
* javax/naming/ldap/InitialLdapContext.java: New file.
* javax/naming/directory/InitialDirContext.java: Wrote.
* javax/naming/spi/NamingManager.java (getPlusPath): Now has
package-private protection.
(getURLContext): Likewise.
(NamingManager): Likewise.
* javax/naming/spi/DirectoryManager.java: New file.
* javax/naming/directory/BasicAttributes.java: New file.
* javax/naming/directory/BasicAttribute.java: New file.
* javax/naming/spi/ResolveResult.java
(ResolveResult(Object,String)): Wrote.
(appendRemainingName): Uncommented body.
(appendRemainingComponent): Likewise.
* javax/naming/ldap/ControlFactory.java: New file.
* javax/naming/directory/AttributeModificationException.java
(toString): Wrote.
* javax/naming/spi/NamingManager.java (NamingManager): New
constructor.
(setInitialContextFactoryBuilder): Wrote.
(getInitialContext): Look in system properties for class name as
well. Use Class.forName().
(getURLContext): Wrote.
(ofb): New field.
(setObjectFactoryBuilder): Wrote.
(getObjectInstance): Wrote.
(getContinuationContext): Wrote.
(getPlusPath): New private method.
(getStateToBind): Wrote.
* javax/naming/CannotProceedException.java: Added missing methods &
fields.
* javax/naming/LinkException.java: Added missing methods & fields.
* javax/naming/ReferralException.java (ReferralException): Made
constructor protected per spec.
Added missing abstract methods.
* javax/naming/directory/Attribute.java: Updated copyright.
* javax/naming/directory/AttributeModificationException.java: Ditto.
* javax/naming/directory/Attributes.java: Ditto.
* javax/naming/directory/DirContext.java: Ditto.
* javax/naming/spi/NamingManager.java: Ditto.
* javax/naming/spi/ResolveResult.java: Added comment.
* javax/naming/directory/Attribute.java: Added missing interface
methods.
* javax/naming/directory/AttributeModificationException.java:
Added missing methods & fields.
* javax/naming/directory/directory/Attributes.java: Added missing
interface methods.
* javax/naming/directory/SearchControls.java: Maded serialized fields
private.
* javax/naming/event/NamingEvent.java: Added comment.
* javax/naming/event/NamingExceptionEvent.java: Maded serialized field
private.
* javax/naming/ldap/UnsolicitedNotificationEvent.java: Maded
serialized field private.
* javax/naming/spi/NamingManager.java: Added missing field and stubbed
missing methods.
* javax/naming/directory/DirContext.java: Added missing interface
fields & methods.
* javax/naming/directory/InitialDirContext.java: Stubbed missing
methods.
* javax/naming/directory/ModificationItem.java: New class.
* javax/naming/directory/SearchResult.java: New class.
* javax/naming/directory/SearchControls.java: New class.
* javax/naming/event/EventContext.java: New class.
* javax/naming/event/EventDirContext.java: New class.
* javax/naming/event/NamespaceChangeListener.java: New class.
* javax/naming/event/NamingEvent.java: New class.
* javax/naming/event/NamingExceptionEvent.java: New class.
* javax/naming/event/NamingListener.java: New class.
* javax/naming/event/ObjectChangeListener.java: New class.
* javax/naming/ldap/Control.java: New class.
* javax/naming/ldap/ExtendedRequest.java: New class.
* javax/naming/ldap/ExtendedResponse.java: New class.
* javax/naming/ldap/HasControls.java: New class.
* javax/naming/ldap/LdapContext.java: New class.
* javax/naming/ldap/LdapReferralException.java: New class.
* javax/naming/ldap/UnsolicitedNotification.java: New class.
* javax/naming/ldap/UnsolicitedNotificationEvent.java: New class.
* javax/naming/ldap/UnsolicitedNotificationListener.java: New class.
* javax/naming/spi/DirObjectFactory.java: New class.
* javax/naming/spi/DirStateFactory.java: New class.
* javax/naming/spi/ObjectFactoryBuilder.java: New class.
* javax/naming/spi/ResolveResult.java: New class.
* javax/naming/spi/Resolver.java: New class.
* javax/naming/spi/StateFactory.java: New class.
* javax/naming/spi/ObjectFactory.java: Made an interface per spec.
* java/rmi/RemoteException.java: New class.
* javax/transaction/HeuristicCommitException.java: New class.
* javax/transaction/HeuristicMixedException.java: New class.
* javax/transaction/HeuristicRollbackException.java: New class.
* javax/transaction/NotSupportedException.java: New class.
* javax/transaction/RollbackException.java: New class.
* javax/transaction/Status.java: New class.
* javax/transaction/Synchronization.java: New class.
* javax/transaction/SystemException.java: New class.
* javax/transaction/Transaction.java: New class.
* javax/transaction/TransactionManager.java: New class.
* javax/transaction/UserTransaction.java: New class.
* javax/transaction/xa/XAException.java: Added public static fields.
* javax/transaction/xa/XAResource.java: New class.
* javax/transaction/xa/Xid.java: New class.
* javax/naming/CompoundName.java (CompoundName(String)): Reverse
elements if required. Handle case where quote is at end of
string.
* javax/naming/CompoundName.java (CompoundName(String)): Handle
text left at end of parsing.
(toString): Handle empty element at beginning.
* javax/naming/CompositeName.java (toString): Handle empty element
at beginning.
(CompositeName(String)): Handle text left at end of parsing.
Correctly compute boundary condition for quoting.
* javax/naming/CompoundName.java: New file.
* javax/naming/CompositeName.java: New file.
* javax/naming/Binding.java: New file.
* javax/naming/LinkRef.java: New file.
* javax/naming/NameClassPair.java: New file.
* javax/naming/Reference.java (addrs, classFactory,
classFactoryLocation): New fields.
(className): Now protected.
(Reference): New constructors.
(add): Now public. Implemented.
(get(String)): Likewise.
(add(int,RefAddr)): New method.
(clear): Likewise.
(clone): Likewise.
(equals): Likewise.
(get(int)): Likewise.
(getAll): Likewise.
(getFactoryClassLocation): Likewise.
(getFactoryClassName): Likewise.
(hashCode): Likewise.
(remove): Likewise.
(size): Likewise.
(toString): Likewise.
* javax/transaction/xa/XAException.java: New file.
* javax/transaction/TransactionRolledbackException.java: New file.
* javax/transaction/TransactionRequiredException.java: New file.
* javax/transaction/InvalidTransactionException.java: New file.
* javax/naming/directory/SchemaViolationException.java: Use
correct package. Import NamingException.
* javax/naming/directory/NoSuchAttributeException.java,
javax/naming/directory/InvalidSearchFilterException.java,
javax/naming/directory/InvalidSearchControlsException.java,
javax/naming/directory/InvalidAttributesException.java,
javax/naming/directory/InvalidAttributeValueException.java,
javax/naming/directory/InvalidAttributeIdentifierException.java,
javax/naming/directory/AttributeModificationException.java,
javax/naming/directory/AttributeInUseException.java: Likewise.
* javax/naming/directory/InitialDirContext.java (getAttributes):
Stub implementation.
* javax/naming/RefAddr.java (RefAddr): Reindented.
(equals): Renamed and reindented.
* javax/naming/BinaryRefAddr.java (equals): Renamed and
reindented.
Co-Authored-By: Warren Levy <warrenl@redhat.com>
From-SVN: r46474
Toon Moene [Wed, 24 Oct 2001 20:32:34 +0000 (22:32 +0200)]
com.c (ffecom_check_size_overflow_): Only check for TREE_OVERFLOW.
2001-10-24 Toon Moene <toon@moene.indiv.nluug.nl>
* com.c (ffecom_check_size_overflow_): Only check for TREE_OVERFLOW.
From-SVN: r46473
Zack Weinberg [Wed, 24 Oct 2001 20:10:53 +0000 (20:10 +0000)]
c-common.h (struct c_common_identifier): Remove rid_code field.
* c-common.h (struct c_common_identifier): Remove rid_code field.
(C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
* c-typeck.c (constructor_designated): New local flag.
(struct constructor_stack): Add "designated" field to match.
(start_init): Clear it.
(really_start_incremental_init, push_init_level): Push and
clear it.
(pop_init_level): Pop it.
(set_designator): Set it.
(pop_init_level): Suppress "missing initializer" warnings if
constructor_designated is true.
(process_init_element): Suppress warning about union
initialization under traditional C, if constructor_designated
is true.
* intl/loadmsgcat.c (INTTYPE_SIGNED, INTTYPE_MINIMUM,
INTTYPE_MAXIMUM): Clone from system.h.
(_nl_load_domain): Use them when testing for overflow of size_t.
Cast result of sizeof to off_t to compare to st_size value.
Move side effects out of conditional for comprehensibility.
* testsuite/gcc.dg/
20011021-1.c: New test.
From-SVN: r46472
Richard Kenner [Wed, 24 Oct 2001 19:36:36 +0000 (19:36 +0000)]
integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last change.
* integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
change.
From-SVN: r46471
Neil Booth [Wed, 24 Oct 2001 19:29:16 +0000 (19:29 +0000)]
* include/safe-ctype.h (_sch_isbasic, IS_ISOBASIC): New.
From-SVN: r46470
Jeffrey A Law [Wed, 24 Oct 2001 19:24:44 +0000 (19:24 +0000)]
* h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
From-SVN: r46469
Dan Nicolaescu [Wed, 24 Oct 2001 18:58:15 +0000 (18:58 +0000)]
ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if the node was already a set to a constant.
* ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
the node was already a set to a constant.
From-SVN: r46468
Tom Tromey [Wed, 24 Oct 2001 18:06:48 +0000 (18:06 +0000)]
* java/lang/reflect/Field.java: Made many methods private.
From-SVN: r46467
Tom Tromey [Wed, 24 Oct 2001 18:04:23 +0000 (18:04 +0000)]
* java/sql/Types.java (Types): New constructor.
From-SVN: r46466
Richard Kenner [Wed, 24 Oct 2001 16:38:51 +0000 (16:38 +0000)]
emit-rtl.c (set_mem_attributes): Fix typo in last change.
* emit-rtl.c (set_mem_attributes): Fix typo in last change.
* print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
From-SVN: r46465