Commit Graph

39349 Commits

Author SHA1 Message Date
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
Jeff Sturm
a3bcfa679b class.c (make_method_value): Use null_pointer_node to represent empty exception table.
* class.c (make_method_value): Use null_pointer_node to
	represent empty exception table.

From-SVN: r47880
2001-12-11 17:15:22 +00:00
Jason Merrill
6fe4816fdb locale_facets.tcc (_M_extract_int): Avoid uninitialized warning.
* include/bits/locale_facets.tcc (_M_extract_int): Avoid
        uninitialized warning.

From-SVN: r47877
2001-12-11 10:48:11 -05:00
Roger Sayle
8d51ecf8a0 builtins.c (expand_builtin): Use a switch statement to list those functions not expanded without...
* builtins.c (expand_builtin): Use a switch statement to list
	those functions not expanded without optimizations, instead of a
	series of equality tests.

From-SVN: r47876
2001-12-11 15:51:55 +01:00
Jason Merrill
19cfdd34bc prune.exp (prune_gcc_output): Also handle "In member function".
* lib/prune.exp (prune_gcc_output): Also handle "In member
        function".  So many permutations...

From-SVN: r47875
2001-12-11 09:18:34 -05:00
Douglas B Rupp
02f7da129b vms.h (LIB_SPEC): Define.
* config/alpha/vms.h (LIB_SPEC): Define.
	* config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Don't set component field.

From-SVN: r47874
2001-12-11 08:29:26 -05:00
Douglas B Rupp
0309cd882d * intl/localealias.c (strings.h): Include.
From-SVN: r47873
2001-12-11 08:23:40 -05:00
Douglas B Rupp
32065bf250 * libgcc2.c (_bb): Remove ctime declaration.
From-SVN: r47872
2001-12-11 08:18:18 -05:00
Douglas B Rupp
c926f67440 Makefile.in (stage[1234]-start): $(LN_S) utilities in a manner that works if LN_S = cp.
* Makefile.in (stage[1234]-start): $(LN_S) utilities in a manner
	that works if LN_S = cp.

From-SVN: r47871
2001-12-11 08:13:01 -05:00
Douglas B Rupp
1ba35d3e95 * config/alpha/x-vms (version): Change "." to "_".
From-SVN: r47870
2001-12-11 08:06:16 -05:00
Douglas B Rupp
ee262b6f6a configure.in: Hardcode that vfork works on VMS host.
* gcc/configure.in: Hardcode that vfork works on VMS host.
	* gcc/configure: Regenerated.
	* libiberty/configure.in: Hardcode that vfork works on VMS host.
	* libiberty/configure: Regenerated.

From-SVN: r47869
2001-12-11 07:17:33 -05:00
Loren J. Rittle
813df02279 * config/cpu/sparc/sparc32/bits/atomicity.h
(__Atomicity_lock<0>::_S_atomicity_lock): Add.

From-SVN: r47867
2001-12-11 09:41:40 +00:00
Matthias Klose
5d08dc39a9 MAINTAINERS (Write After Approval): Add myself.
From-SVN: r47866
2001-12-11 08:26:49 +00:00
GCC Administrator
2b5ee71cee Daily bump.
From-SVN: r47865
2001-12-11 08:17:58 +00:00
Tom Tromey
1ca1c91bd9 For PR libgcj/1147:
* prims.cc (JvConvertArgv): Convert using current locale's
	encoding.

From-SVN: r47862
2001-12-11 04:03:57 +00:00
Tom Tromey
d12a187337 re PR libgcj/5064 (java/lang/natClassLoader.cc doesn't compile on systems without snprintf)
Fix for PR libgcj/5064.
	* java/lang/natClassLoader.cc: Don't include stdio.h.
	(_Jv_RegisterClassHookDefault): Don't use snprintf.

From-SVN: r47861
2001-12-11 03:58:40 +00:00
Tom Tromey
3afdfae81c * check-init.c (check_init) [SWITCH_EXPR]: Use SWITCH_HAS_DEFAULT.
From-SVN: r47860
2001-12-11 03:29:12 +00:00
David Edelsohn
d7a5e25326 * rs6000.c (processor_target_table): Add PPC405.
From-SVN: r47858
2001-12-10 18:53:33 -05:00
Douglas B Rupp
a9657ce816 gcc.c (convert_filename): Add do_obj parameter.
* gcc.c (convert_filename): Add do_obj parameter. Don't convert
	unless do_obj true.
	(process_command): Modify calls to convert_filename.

From-SVN: r47857
2001-12-10 18:46:00 -05:00