Commit Graph

39339 Commits

Author SHA1 Message Date
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
Rainer Orth
cb375790f5 * config/sparc/sol2-sld-64.h: Include dbxelf.h again.
From-SVN: r47856
2001-12-10 23:38:50 +00:00
Jeffrey A Law
805f169411 combine.c (known_cond): Check mode of each operand to determine if COND is comparing floating point values.
* combine.c (known_cond): Check mode of each operand to determine
        if COND is comparing floating point values.

From-SVN: r47855
2001-12-10 15:52:26 -07:00
Nathan Sidwell
9aaceb4b3e re PR c++/72 (aggressive type analysis in template-class's template-member-function)
cp:
	PR g++/72
	* decl.c (add_binding): Don't reject duplicate typedefs involving
	template parameters.
testsuite:
	* g++.dg/template/typedef1.C: New test.

From-SVN: r47854
2001-12-10 22:49:13 +00:00
David Edelsohn
fe7f56777e rs6000.h (processor_type): Add PPC405.
* rs6000.h (processor_type): Add PPC405.
	(RTX_COSTS): Add PPC405.  Correct rs64 and ppc630 multiply costs.
	* rs6000.md: Add PPC405 information.  Utilize imul2 and imul3 for
	rios1, rs64, and ppc630 processors.

From-SVN: r47853
2001-12-10 17:46:15 -05:00
Richard Henderson
864962bd13 alpha.md (unaligned_extendhidi): Call gen_lowpart instead of hardcoding subregs into the _be and _le patterns.
* config/alpha/alpha.md (unaligned_extendhidi): Call gen_lowpart
        instead of hardcoding subregs into the _be and _le patterns.

From-SVN: r47852
2001-12-10 14:21:03 -08:00
Janis Johnson
c5997381fc install.texi (Final install): Request additional information in mail about successful builds.
* doc/install.texi (Final install): Request additional information
        in mail about successful builds.

From-SVN: r47850
2001-12-10 21:35:29 +00:00
Neil Booth
a23c9413df c-lex.c, [...]: Revert concatenation changes.
* c-lex.c, c-parse.in, c-typeck.c: Revert concatenation changes.
cp:
	* parse.y, semantics.c: Similarly.

From-SVN: r47848
2001-12-10 20:08:59 +00:00
Paolo Carlini
d01f347422 basic_string.tcc (_M_replace_safe): Fix typos.
2001-12-10  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/basic_string.tcc (_M_replace_safe):  Fix typos.
	* include/bits/basic_string.h:  Fix typos.

From-SVN: r47847
2001-12-10 14:32:28 +00:00
Richard Kenner
6fc5dc671c i386.md (leave, [...]): Adjust pattern to match what insn does.
* config/i386/i386.md (leave, leave_rex64): Adjust pattern to match
	what insn does.

From-SVN: r47846
2001-12-10 09:30:11 -05:00
Paolo Carlini
26c4de51c9 2001-12-10 Paolo Carlini <pcarlini@unitus.it>
* ChangeLog of the previous commit.

From-SVN: r47845
2001-12-10 13:55:22 +00:00