Commit Graph

38324 Commits

Author SHA1 Message Date
Richard Kenner
6cf3f6e7f0 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
2001-10-26 07:16:09 -04:00
Andreas Jaeger
16e99e29fc flow.c (clear_log_links): Remove unused variable.
* flow.c (clear_log_links): Remove unused variable.
	* cfgcleanup.c (cleanup_cfg): Likewise.

From-SVN: r46537
2001-10-26 11:20:01 +02:00
Alexandre Oliva
350ebd5493 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
2001-10-26 08:05:08 +00:00
Richard Henderson
b73c0bc87d 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
2001-10-26 01:01:13 -07:00
Richard Henderson
108c1afce2 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
2001-10-26 00:49:34 -07:00
Richard Henderson
4992fc7ff5 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
2001-10-26 00:24:34 -07:00
Benjamin Kosnik
1a808622b6 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
2001-10-26 07:21:56 +00:00
GCC Administrator
f8c8c2ff39 Daily bump.
From-SVN: r46530
2001-10-26 07:16:20 +00:00
Benjamin Kosnik
013e8d9783 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
2001-10-26 06:23:47 +00:00
Benjamin Kosnik
6cf5465d43 [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
2001-10-26 05:32:06 +00:00
Bryce McKinlay
3b2a3c4c2a Oops!
From-SVN: r46526
2001-10-26 05:27:58 +01:00
Christopher Faylor
e742b08ad3 cygwin.h: Search target specfic include directory, if appropriate.
* config/i386/cygwin.h: Search target specfic include directory, if
appropriate.

From-SVN: r46524
2001-10-26 04:16:23 +00:00
Benjamin Kosnik
e37beb47ba 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
2001-10-26 02:13:31 +00:00
Bryce McKinlay
961b8e7028 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
2001-10-26 02:53:56 +01:00
Bryce McKinlay
839f820424 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
2001-10-26 02:51:04 +01:00
Kaveh R. Ghazi
f3a8e4f58d 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
2001-10-26 01:51:01 +00:00
Robert Dewar
ed4a14688d 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
2001-10-26 03:46:11 +02:00
Robert Dewar
24377ae42f 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
2001-10-26 03:41:17 +02:00
Ed Schonberg
fef3204ec6 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
2001-10-26 03:34:58 +02:00
Ed Schonberg
dfc69d80c1 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
2001-10-26 03:29:47 +02:00
Ed Schonberg
5a15af6295 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
2001-10-26 03:26:05 +02:00
Robert Dewar
2b881d5390 * sem_util.adb
(Defining_Entity): Deal with Error.
	(Process_End_Label): Deal with bad end label for.

From-SVN: r46514
2001-10-26 03:18:58 +02:00
Ed Schonberg
578053f234 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
2001-10-26 03:12:44 +02:00
Ed Schonberg
0597ce0bbf 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
2001-10-26 03:07:23 +02:00
Geert Bosch
3de6e6da5d * 4gintnam.ads: fix header format.
From-SVN: r46511
2001-10-26 02:50:40 +02:00
Ed Schonberg
6f31131619 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
2001-10-26 02:47:09 +02:00
Ed Schonberg
17be0cdf52 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
2001-10-26 02:34:46 +02:00
Robert Dewar
ce9e912264 * 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
2001-10-26 02:28:10 +02:00
Robert Dewar
e12fbc9e0f 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
2001-10-26 01:53:04 +02:00
Pascal Obry
52b804888b 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
2001-10-26 01:49:27 +02:00
Robert Dewar
316ad9c5f4 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
From-SVN: r46505
2001-10-26 01:43:49 +02:00
Geert Bosch
1a7e4df49b * osint.adb (Is_Relative): Remove duplicate.
From-SVN: r46504
2001-10-26 01:38:15 +02:00
Pascal Obry
90a9fff2b0 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
2001-10-26 01:23:44 +02:00
Pascal Obry
5c1ba4cc9c 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
2001-10-26 01:12:24 +02:00
Robert Dewar
a7fb206de8 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
2001-10-26 01:03:11 +02:00
Benjamin Kosnik
1403221a88 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
2001-10-25 22:56:07 +00:00
Robert Dewar
e6a7e62eb3 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
From-SVN: r46499
2001-10-26 00:51:49 +02:00
Alexandre Petit-Bianco
98f705b937 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
2001-10-25 14:37:44 -07:00
Phil Edwards
f456d34528 documentation.html: Fix typo.
2001-10-25  Phil Edwards  <pme@gcc.gnu.org>

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

From-SVN: r46497
2001-10-25 21:17:34 +00:00
Alexandre Petit-Bianco
326a0b6aa5 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
2001-10-25 14:13:18 -07:00
Geert Bosch
0d2b8e0bd6 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
2001-10-25 21:56:43 +02:00
Jeffrey A Law
8feb4e2800 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
2001-10-25 12:25:08 -06:00
Zack Weinberg
37207ee73d 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
2001-10-25 17:57:03 +00:00
Zack Weinberg
5037fa8112 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
2001-10-25 17:38:14 +00:00
Hans Boehm
e16ffa0d61 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
2001-10-25 17:29:41 +00:00
Nick Clifton
cdd90341d6 Replace occurrences of #elif with #if...#endif.
From-SVN: r46489
2001-10-25 13:20:59 +00:00
Kaveh R. Ghazi
1ec586aeed * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
From-SVN: r46488
2001-10-25 13:08:45 +00:00
Richard Kenner
10b76d7395 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
2001-10-25 08:55:16 -04:00
Richard Kenner
9fb60a0d1a * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
From-SVN: r46486
2001-10-25 08:42:15 -04:00
Jakub Jelinek
2ea792c2fb Restore ChangeLog entries which vanished with last commit.
From-SVN: r46485
2001-10-25 10:40:40 +02:00