Commit Graph

39467 Commits

Author SHA1 Message Date
Tom Tromey
a46ce590a8 * gnu/gcj/runtime/StringBuffer.java
(ensureCapacity_unsynchronized): Ensure we always get at least
	`minimumCapacity' characters in new buffer.

From-SVN: r47940
2001-12-12 16:50:01 +00:00
Jakub Jelinek
dc5c569ae3 cp-tree.h (DESTRUCTOR_DECL_PREFIX, [...]): Delete.
* cp-tree.h (DESTRUCTOR_DECL_PREFIX, DESTRUCTOR_NAME_P,
	ANON_PARMNAME_FORMAT, ANON_PARMNAME_P, DESTRUCTOR_NAME_FORMAT,
	THIS_NAME_P): Delete.
	* spew.c (read_process_identifier): Remove DESTRUCTOR_NAME_P,
	THIS_NAME_P and ANON_PARMNAME_P tests from warning about clash
	with internal naming scheme.
	* error.c (dump_decl): Remove DESTRUCTOR_NAME_P use.

From-SVN: r47936
2001-12-12 14:34:44 +01:00
Olivier Hainque
2d9d49e447 stmt.c (expand_end_case): Do subtraction of lower bound as trees to avoid overflow.
* stmt.c (expand_end_case): Do subtraction of lower bound as trees
	to avoid overflow.

From-SVN: r47932
2001-12-12 07:44:46 -05:00
Douglas B Rupp
cdb290580c cppfiles.c (read_include_file): Set buffer size properly when file is shorter than expected.
* cppfiles.c (read_include_file): Set buffer size properly when
	file is shorter than expected.

From-SVN: r47931
2001-12-12 07:42:03 -05:00
Richard Kenner
a9785c70dc Add missing blank.
From-SVN: r47930
2001-12-12 07:40:27 -05:00
Nicola Pero
ce960d5ae7 Fixed objc problem with bitfields of enumerated types
From-SVN: r47929
2001-12-12 10:45:46 +00:00
Nicola Pero
fc9cfd2354 Fixed compilation of bitfields of enumerations in args and ivars
From-SVN: r47928
2001-12-12 10:41:48 +00:00
Nathan Sidwell
ad1a6d451f extend.texi (Deprecated Features): Deprecate implicit typename.
* doc/extend.texi (Deprecated Features): Deprecate implicit
	typename. Document that named return and initializer lists are now
	removed.
cp:
	* decl.c (grokdeclarator): Deprecated implicit typename use.
testsuite:
	* g++.old-deja/g++.brendan/crash56.C: Adjust implicit typename.
	* g++.old-deja/g++.jason/2371.C: Likewise.
	* g++.old-deja/g++.jason/template33.C: Likewise.
	* g++.old-deja/g++.jason/template34.C: Likewise.
	* g++.old-deja/g++.jason/template36.C: Likewise.
	* g++.old-deja/g++.oliva/typename1.C: Likewise.
	* g++.old-deja/g++.oliva/typename2.C: Likewise.
	* g++.old-deja/g++.other/typename1.C: Likewise.
	* g++.old-deja/g++.pt/inherit2.C: Likewise.
	* g++.old-deja/g++.pt/nontype5.C: Likewise.
	* g++.old-deja/g++.pt/typename11.C: Likewise.
	* g++.old-deja/g++.pt/typename14.C: Likewise.
	* g++.old-deja/g++.pt/typename16.C: Likewise.
	* g++.old-deja/g++.pt/typename3.C: Likewise.
	* g++.old-deja/g++.pt/typename4.C: Likewise.
	* g++.old-deja/g++.pt/typename5.C: Likewise.
	* g++.old-deja/g++.pt/typename7.C: Likewise.
	* g++.old-deja/g++.robertl/eb9.C: Likewise.

From-SVN: r47927
2001-12-12 10:32:03 +00:00
Roger Sayle
3f2c5d1a0d except.c (reachable_next_level): Handle ERT_UNKNOWN to avoid compiler warning about enumeration values not being...
2001-12-11  Roger Sayle <roger@eyesopen.com>

	* except.c (reachable_next_level): Handle ERT_UNKNOWN to avoid
	compiler warning about enumeration values not being handled.

From-SVN: r47926
2001-12-12 09:27:29 +01:00
GCC Administrator
41d2bbe765 Daily bump.
From-SVN: r47924
2001-12-12 08:16:18 +00:00
Momchil Velikov
4a696ca8e1 fp-bit.c (pack_d): Cast to ``fractype'' for long long shifts.
* config/fp-bit.c (pack_d): Cast to ``fractype'' for long long
        shifts.

From-SVN: r47923
2001-12-11 22:59:23 -08:00
Richard Henderson
14291bc7fa alpha.h (TARGET_FIXUP_EV5_PREFETCH): New.
* config/alpha/alpha.h (TARGET_FIXUP_EV5_PREFETCH): New.
        * config/alpha/linux.h (TARGET_FIXUP_EV5_PREFETCH): New.
        * config/alpha/alpha.md (prefetch): New.

From-SVN: r47922
2001-12-11 22:40:27 -08:00
Richard Henderson
8deb751450 combine.c (simplify_and_const_int): Simplify (AND (PLUS X Y) C) if C has only low bits set and doesn't intersect...
* combine.c (simplify_and_const_int): Simplify (AND (PLUS X Y) C)
        if C has only low bits set and doesn't intersect with X or Y.

From-SVN: r47921
2001-12-11 21:58:12 -08:00
John Wehle
3dba42519e basic-block.h (flow_preorder_transversal_compute): Declare.
* basic-block.h (flow_preorder_transversal_compute): Declare.
	* cfganal.c (flow_preorder_transversal_compute): Implement.

From-SVN: r47920
2001-12-12 05:01:32 +00:00
John Wehle
f5f53ae35d cfganal.c (flow_depth_first_order_compute): Always increment dfsnum.
* cfganal.c (flow_depth_first_order_compute): Always
	increment dfsnum.

From-SVN: r47919
2001-12-12 04:56:30 +00:00
Benjamin Kosnik
bf3b866e31 ctype_inline.h: Remove spaces.
2001-12-11  Benjamin Kosnik  <bkoz@redhat.com>

	* config/os/generic/bits/ctype_inline.h: Remove spaces.
	* config/os/gnu-linux/bits/ctype_noninline.h: Same.
	* include/bits/locale_facets.h (__num_base): Move double data
	members to first in class.
	* include/bits/locale_facets.tcc: Re-arrange, tweak.
	* src/locale.cc: Clean.
	*include/bits/stl_vector.h: Space typedefs.

From-SVN: r47918
2001-12-12 03:22:25 +00:00
Alan Matsuoka
a13287e15d combine.c (combine_simplify_rtx): Can't simplify cases that use mode class MODE_CC.
2001-11-30 Alan Matsuoka <alanm@redhat.com>

	* combine.c (combine_simplify_rtx) : Can't simplify
	cases that use mode class MODE_CC.

From-SVN: r47917
2001-12-12 03:20:14 +00:00
Richard Henderson
a8c7e72da2 expmed.c (expand_divmod): Ignore sdiv_pow2_cheap for modes in which there is no divide expander.
* expmed.c (expand_divmod): Ignore sdiv_pow2_cheap for modes in
        which there is no divide expander.

From-SVN: r47916
2001-12-11 19:00:01 -08:00
Richard Henderson
98ce21b3b3 except.c (sjlj_find_directly_reachable_regions): Don't consider RNL_BLOCKED a directly reachable region.
* except.c (sjlj_find_directly_reachable_regions): Don't
        consider RNL_BLOCKED a directly reachable region.
        (sjlj_assign_call_site_values): Trust directly_reachable.
        (sjlj_emit_dispatch_table): Likewise.

From-SVN: r47915
2001-12-11 18:58:23 -08:00
Richard Henderson
eb15deddff alpha.md (divmodsi_internal_er): Split, so that we represent the address load's dependency on the gp.
* config/alpha/alpha.md (divmodsi_internal_er): Split, so that
        we represent the address load's dependency on the gp.
        (divmoddi_internal_er): Likewise.
        (divmodsi_internal_er_1, divmoddi_internal_er_1): New.

From-SVN: r47914
2001-12-11 18:53:38 -08:00
Richard Henderson
e7dfe4bb07 emit-rtl.c (widen_memory_access): New.
* emit-rtl.c (widen_memory_access): New.
        * expr.h (widen_memory_access): Declare it.
        * config/alpha/alpha.c (get_aligned_mem): Use it.

From-SVN: r47913
2001-12-11 18:47:55 -08:00
Richard Henderson
0051b6cae4 combine.c (simplify_shift_const): Move SHIFT_COUNT_TRUNCATED simplification above out of range check.
* combine.c (simplify_shift_const): Move SHIFT_COUNT_TRUNCATED
        simplification above out of range check.

From-SVN: r47912
2001-12-11 18:42:41 -08:00
Dan Nicolaescu
f3bfd09c28 * config/sparc/sparc.md (prefetch): New.
From-SVN: r47911
2001-12-11 18:22:51 -08:00
Aldy Hernandez
e817125dbb output.h (regno_uninitialized): Make argument unsigned.
2001-12-11  Aldy Hernandez  <aldyh@redhat.com>

        * output.h (regno_uninitialized): Make argument unsigned.

        * flow.c (regno_uninitialized): Make regno unsigned.

From-SVN: r47910
2001-12-12 01:53:44 +00:00
David O'Brien
aa97fdf377 elfos.h (ENDFILE_SPEC, [...]): Do not define.
2001-12-11  David O'Brien  <obrien@FreeBSD.org>
	* elfos.h (ENDFILE_SPEC, STARTFILE_SPEC): Do not define.
	* config/cris/cris.h (ENDFILE_SPEC): Define.
	* config/i386/i386elf.h ((ENDFILE_SPEC, STARTFILE_SPEC): Define.
	* config/pa/elf.h: Likewise.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20011211153437.A24619@redhat.com>

From-SVN: r47909
2001-12-12 01:52:17 +00:00
Richard Henderson
c66c59d182 objc-act.c (build_string_class_template): New.
* objc/objc-act.c (build_string_class_template): New.
        (build_objc_string_object): Call it.

From-SVN: r47908
2001-12-11 17:40:58 -08:00
Ed Schonberg
0b09835f1f sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance that is the parent of other generics...
* sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
	that is the parent of other generics, the instance body replaces the
	instance node.  Retrieve the instance of the spec, which is the one
	that is visible in clients and within the body.

From-SVN: r47906
2001-12-12 00:27:40 +01:00
Geert Bosch
598c344654 gnatmain.adb: Initial version.
* gnatmain.adb: Initial version.

	* gnatmain.ads: Initial version.

	* prj-attr.adb (Initialisation_Data): Add package Gnatstub.

	* snames.adb: Updated to match snames.ads.

	* snames.ads: Added Gnatstub.

	* prj-attr.adb (Initialization_Data): Change name from
	Initialisation_Data.

	* g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
	+ and * applied to backslashed expressions like \r.

	* g-os_lib.ads: String_List type added, Argument_List type is now
	subtype of String_List.

	* g-os_lib.ads: Change copyright to FSF
	Add comments for String_List type

	* g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
	string to the buffer).

From-SVN: r47905
2001-12-12 00:14:07 +01:00
Steve Ellcey
0d7839daee tm.texi (FUNCTION_ARG_REG_LITTLE_ENDIAN): New.
2001-12-11  Steve Ellcey  <sje@cup.hp.com>

	* doc/tm.texi (FUNCTION_ARG_REG_LITTLE_ENDIAN): New.
	* defaults.h (FUNCTION_ARG_REG_LITTLE_ENDIAN): New.
	* calls.c (store_unaligned_arguments_into_pseudos): Check
	FUNCTION_ARG_REG_LITTLE_ENDIAN to see how structures
	are passed/returned.
	* expr.c (move_block_from_reg): Ditto.
	(move_block_from_reg): Ditto.
	(copy_blkmode_from_reg): Ditto.
	* stmt.c (expand_return): Ditto.
	* stor-layout.c (compute_record_mode): If
	FUNCTION_ARG_REG_LITTLE_ENDIAN is set then check
	MEMBER_TYPE_FORCES_BLK even if mode == VOIDmode.
	* config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set to true
	so that Structures of one field are still treated as structures.
	(FUNCTION_ARG_REG_LITTLE_ENDIAN): New, set it to true.
	(FUNCTION_ARG_PADDING): Set to ia64_hpux_function_arg_padding().
	(PAD_VARARGS_DOWN): Modify from default to not pad structures down.
	* config/ia64/ia64-protos.h (ia64_hpux_function_arg_padding): New.
	* config/ia64/ia64.c (ia64_hpux_function_arg_padding): New function
	to special case handling of structure padding.

From-SVN: r47904
2001-12-11 23:04:36 +00:00
Matthias Klose
81deb0a3e6 Make-lang.in: JAVA_INSTALL_NAME, JAVA_CROSS_NAME: Remove whitespace
at end of line.

From-SVN: r47903
2001-12-11 23:02:49 +00:00
Geert Bosch
7fb754a1ad freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in sem_attr.
* freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
	sem_attr.

	* sem_attr.adb: Simplify previous fix for Address.
	(Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
	to avoid anomalies where the bound of the type appears to raise
	constraint error.

	* lib-xref.adb (Output_Refs): Make sure pointers are always properly
	handled.

	* sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
	renamed unit before checking for recursive instantiations.

	* prj.ads: Add comments for some of the fields.

From-SVN: r47902
2001-12-12 00:01:00 +01:00
Geert Bosch
0873bafcaa lib-xref.adb (Output_Refs): Don't output type references outside the main unit if...
* lib-xref.adb (Output_Refs): Don't output type references outside
	the main unit if they are not otherwise referenced.

	* sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
	code and diagnose additional illegal uses

	* sem_util.adb (Is_Object_Reference): An indexed component is an
	object only if the prefix is.

	* g-diopit.adb: Initial version.

	* g-diopit.ads: Initial version.

	* g-dirope.adb:
	(Expand_Path): Avoid use of Unbounded_String
	(Find, Wildcard_Iterator): Moved to child package Iteration

	* Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS

	* sem_attr.adb: Minor reformatting

From-SVN: r47901
2001-12-11 23:50:45 +01:00
Daniel Berlin
81217be921 sched-rgn.c (CONST_BASED_ADDRESS_P): CONST_INT -> CONSTANT_P.
2001-12-11  Daniel Berlin  <dan@cgsoftware.com>

	* sched-rgn.c (CONST_BASED_ADDRESS_P): CONST_INT -> CONSTANT_P.
	(may_trap_exp): Stores only are risk if they trap, too, not just
	if code == MEM.

From-SVN: r47900
2001-12-11 22:50:35 +00:00
Geert Bosch
d087cd965e sem_ch3.adb: Clarify some ???.
* sem_ch3.adb: Clarify some ???.

	* exp_util.adb (Must_Be_Aligned): Removed, replaced by
	Exp_Pakd.Known_Aligned_Enough

	* sem_ch13.adb (Check_Address_Alignment): Removed, extended
	version is moved to Exp_Ch13.

From-SVN: r47899
2001-12-11 23:25:15 +01:00
Geert Bosch
980f237d11 einfo.ads: Minor reformatting
* einfo.ads: Minor reformatting

	* exp_ch5.adb: Add comment for previous.change

	* ali.adb: New interface for extended typeref stuff.

	* ali.ads: New interface for typeref stuff.

	* checks.adb (Apply_Alignment_Check): New procedure.

	* debug.adb: Add -gnatdM for modified ALI output

	* exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.

	* lib-xref.adb: Extend generation of <..> notation to cover
	subtype/object types. Note that this is a complete rewrite,
	getting rid of the very nasty quadratic algorithm previously
	used for derived type output.

	* lib-xref.ads: Extend description of <..> notation to cover
	subtype/object types. Uses {..} for these other cases.
	Also use (..) for pointer types.

	* sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.

	* exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
	(Known_Aligned_Enough): Replaces Must_Be_Aligned.

From-SVN: r47896
2001-12-11 23:11:45 +01:00
Geert Bosch
290986ede6 gnatcmd.adb: Changed /COMPILE_ONLY to /ACTIONS=COMPILE Changed /BIND_ONLY to /ACTIONS=BIND...
* gnatcmd.adb:
	Changed /COMPILE_ONLY to /ACTIONS=COMPILE
	Changed /BIND_ONLY to /ACTIONS=BIND
	Changed /LINK_ONLY to /ACTIONS=LINK

	* sem_ch8.adb (Find_Selected_Component): improved search for a
	candidate package in case of error.

	* sem_ch12.adb (Inline_Instance_Body): place head of use_clause
	chain back on scope stack before reinstalling use clauses.

	* exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
	is enabled, do not kill the code for the condition, to preserve
	warning.

From-SVN: r47895
2001-12-11 22:49:34 +01:00
Geert Bosch
84157f5101 checks.adb (Insert_Valid_Check): Apply validity check to expression of conversion, not to result of conversion.
* checks.adb (Insert_Valid_Check): Apply validity check to expression
	of conversion, not to result of conversion.

	* sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
	before freezing parent. If the declarations are mutually recursive,
	an access to the current record type may be frozen before the
	derivation is complete.

From-SVN: r47894
2001-12-11 22:24:20 +01:00
Martin v. Löwis
d5d7ae5c75 es.po: Update to 3.0 template.
2001-12-05  Martin v. L�wis  <loewis@informatik.hu-berlin.de>

        * es.po: Update to 3.0 template.

From-SVN: r47893
2001-12-11 20:29:50 +00:00
Aldy Hernandez
448cad060a flow.c (find_regno_partial): Indent properly.
2001-12-11  Aldy Hernandez  <aldyh@redhat.com>

        * flow.c (find_regno_partial): Indent properly.  Add a default to
        switch.

From-SVN: r47892
2001-12-11 20:17:55 +00:00
Nathan Sidwell
270d8c65bd re PR c++/51 (g++ reports error for ISO C++ example)
cp:
	PR g++/51
	* parse.y (frob_specs): Indicate it is a language linkage which
	contained the extern.
	* decl.c (grokdeclarator): Allow extern language linkage with
	other specifiers.
testsuite:
	* g++.dg/other/linkage1.C: New test.
	* g++.old-deja/g++.brendan/err-msg2.C: Alter to avoid two
	specifiers.

From-SVN: r47891
2001-12-11 20:11:34 +00:00
Neil Booth
9aa8a1df05 c-common.c (combine_strings): Complain if concatenating __FUNCTION__.
* c-common.c (combine_strings): Complain if concatenating
	__FUNCTION__.
	* c-parse.in (yylexname): Flag artificial strings.
	* tree.h (TREE_ARTIFICIAL_STRING_P): New.
doc:
	* extend.texi: Update.
testsuite:
	* gcc.dg/concat.c: New test.

From-SVN: r47890
2001-12-11 19:42:34 +00:00
Aldy Hernandez
0afeef64be c-common.c (type_for_mode): Handle unsigned vectors.
2001-12-10  Aldy Hernandez  <aldyh@redhat.com>

	* c-common.c (type_for_mode): Handle unsigned vectors.
	(type_for_mode): Remove redundant calls to TYPE_MODE.

	* tree.c (make_vector): New.
	(build_common_tree_nodes_2): Use make_vector for vector types.
	Add unsigned vector types.

	* tree.h (tree_index): Add unsigned types for vectors.
	(unsigned_V16QI_type_node): New.
	(unsigned_V4SI_type_node): New.
	(unsigned_V8QI_type_node): New.
	(unsigned_V8HI_type_node): New.
	(unsigned_V4HI_type_node): New.
	(unsigned_V2SI_type_node): New.

From-SVN: r47889
2001-12-11 19:33:39 +00:00
Phil Edwards
3c612a619d allocators.cc: New file.
2001-12-11  Phil Edwards  <pme@gcc.gnu.org>

	* testsuite/ext/allocators.cc:  New file.

From-SVN: r47888
2001-12-11 19:04:58 +00:00
David Edelsohn
d8634d8116 Correct innacurate documentation of ADJUST_FIELD_ALIGN.
From-SVN: r47887
2001-12-11 13:53:53 -05:00
Stan Shebs
4c59403143 objc-act.c (finish_message_expr): Fix misplaced parens in a test of class names.
* objc/objc-act.c (finish_message_expr): Fix misplaced parens in a
        test of class names.

        * objc/compile: New test directory.
        * objc/compile/compile.exp: New expect script.
        * objc/compile/20011211-1.m: New compile test.

From-SVN: r47886
2001-12-11 18:24:17 +00:00
David O'Brien
9117131576 config.gcc (m68020-*-elf*): Expand tm_file to include all needed cpu configuration headers.
2001-12-11  David O'Brien  <obrien@FreeBSD.org>
	* config.gcc (m68020-*-elf*): Expand tm_file to include all needed
	cpu configuration headers.
	* config/h8300/elf.h: Include dbxelf.h.
	* config/m68k/linux.h: Likewise.
	* config/m68k/m68020-elf.h: Likewise.
	* config/m68k/m68kv4.h: Likewise.
	* config/sh/elf.h: Likewise.
	* config/m68k/m68kemb.h: Add comment about the its purpose.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20011210155120.A23862@redhat.com>

From-SVN: r47885
2001-12-11 18:21:04 +00:00
Richard Henderson
ff1c8a1a18 objc-act.c (build_constructor): Cast initializer values to the proper field types.
* objc/objc-act.c (build_constructor): Cast initializer values
        to the proper field types.

From-SVN: r47884
2001-12-11 10:07:01 -08:00
Tom Tromey
50cc5dd29b String.java (String): New constructor.
* java/lang/String.java (String): New constructor.
	* gnu/gcj/runtime/natStringBuffer.cc: New file.
	* gnu/gcj/runtime/StringBuffer.java: New file.
	* Makefile.in: Rebuilt.
	* Makefile.am (ordinary_java_source_files): Added
	gnu/gcj/runtime/StringBuffer.java.
	(nat_source_files): Added gnu/gcj/runtime/natStringBuffer.cc.

From-SVN: r47883
2001-12-11 18:01:40 +00:00
Tom Tromey
34026199b3 lex.c (java_init_lex): Define wfl_to_string as gnu.gcj.runtime.StringBuffer unless generating bytecode.
* lex.c (java_init_lex): Define wfl_to_string as
	gnu.gcj.runtime.StringBuffer unless generating bytecode.

From-SVN: r47882
2001-12-11 17:59:02 +00:00
Jakub Jelinek
f0451e26f9 * unwind-dw2.c (execute_cfa_program): Fix DW_CFA_restore handling.
From-SVN: r47881
2001-12-11 18:27:14 +01:00