Commit Graph

54330 Commits

Author SHA1 Message Date
Kazu Hirata
a62a282bf4 h8300.md: Don't use REGNO when its operand is not guaranteed to be a REG.
* config/h8300/h8300.md: Don't use REGNO when its operand is
	not guaranteed to be a REG.

From-SVN: r73661
2003-11-17 02:26:54 +00:00
GCC Administrator
773f1fa639 Daily bump.
From-SVN: r73658
2003-11-17 00:16:08 +00:00
Kaveh R. Ghazi
178b9a09f6 * gcc.dg/cpp/assert4.c: New test.
From-SVN: r73654
2003-11-16 21:27:39 +00:00
Tom Tromey
edc6a9c48b re PR libgcj/13062 (StreamTokenizer ignores commentChar)
PR libgcj/13062:
	* java/io/StreamTokenizer.java (commentChar): Clear other
	attributes for character.
	(quoteChar): Likewise.

From-SVN: r73653
2003-11-16 21:15:55 +00:00
Richard Sandiford
c988af2b8c Makefile.in (expr.o): Depend on $(TARGET_H).
* Makefile.in (expr.o): Depend on $(TARGET_H).
	* target.h (return_in_msb): New target hook.
	* target-def.h (TARGET_RETURN_IN_MSB): New macro.
	(TARGET_CALLS): Include it.
	* calls.c (shift_returned_value): New function.
	(expand_call): Use it.
	* expr.c: Include target.h.
	(copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
	deciding what padding is needed.  Change the name of the local
	padding variable from big_endian_correction to padding_correction.
	* stmt.c (shift_return_value): New function.
	(expand_return): Use it.  Adjust memory->register copy in the same
	way as copy_blkmode_from_reg.  Only change the return register's
	mode if it was originally BLKmode.
	* doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
	* config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
	(mips_fpr_return_fields): New, split out from mips_function_value.
	(mips_return_in_msb, mips_return_fpr_pair): New functions.
	(mips_function_value): Rework to use the functions above.
	* config/mips/irix6-libc-compat.c: Delete.
	* config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.

From-SVN: r73652
2003-11-16 19:10:09 +00:00
Kazu Hirata
e0c99e151e * doc/install.texi (--enable-checking): Update valgrind's URL.
From-SVN: r73651
2003-11-16 18:13:56 +00:00
Kazu Hirata
60731ce55e h8300.md: Fix warnings by replacing -2147483648 with -2147483647 - 1.
* config/h8300/h8300.md: Fix warnings by replacing -2147483648
	with -2147483647 - 1.

From-SVN: r73647
2003-11-16 13:55:19 +00:00
Gerald Pfeifer
24726b9663 Fix links in online manuals.
* doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
	(Precompiled Headers): @pxref to cpp, not cpp.info.

From-SVN: r73646
2003-11-16 11:24:56 +00:00
Jason Merrill
7d60db051a Makefile.in, [...]: Create TAGS.sub files in each directory and TAGS files that include them for...
* Makefile.in, objc/Make-lang.in, ada/Make-lang.in, cp/Make-lang.in,
        java/Make-lang.in, f/Make-lang.in: Create TAGS.sub files in each
        directory and TAGS files that include them for each front end.

From-SVN: r73643
2003-11-16 01:17:21 -05:00
Tom Tromey
45c00e222f * gjavah.c (print_stub_or_jni): Pass `env' to FatalError.
From-SVN: r73642
2003-11-16 04:46:48 +00:00
Paolo Carlini
781a529886 std_fstream.h: Tweak a comment.
2003-11-15  Paolo Carlini  <pcarlini@suse.de>

	* include/std/std_fstream.h: Tweak a comment.

From-SVN: r73640
2003-11-16 00:55:51 +00:00
GCC Administrator
e22171afb9 Daily bump.
From-SVN: r73638
2003-11-16 00:16:07 +00:00
Kazu Hirata
e40024ffaf lib1funcs.asm (divnorm): Store the sign in bit 3 of S2L.
* config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
	3 of S2L.
	(modnorm): Likewise.
	(exitdiv): Look at bit 3 of S2L only.

From-SVN: r73635
2003-11-15 21:36:49 +00:00
Kazu Hirata
4cd0866d1d h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
* config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
	(DO_GLOBAL_DTORS_BODY): Likewise.

From-SVN: r73634
2003-11-15 21:35:18 +00:00
Jason Merrill
9cbbf4634e update comment
From-SVN: r73633
2003-11-15 16:32:01 -05:00
Joseph Myers
4f3ce03f29 install.texi (Prerequisites): Refine documentation of autoconf, automake and perl requirements.
* doc/install.texi (Prerequisites): Refine documentation of
	autoconf, automake and perl requirements.  Document required
	gettext version.

From-SVN: r73632
2003-11-15 20:09:41 +00:00
Bernardo Innocenti
206279ba4a re PR c++/2294 (using declaration confusion)
PR c++/2294
	* name-lookup.c: Revert previous patch for PR c++/2294 to prevent
	build failure on libjava.

From-SVN: r73630
2003-11-15 20:34:57 +01:00
Roger Sayle
c85dfef7a0 std_cmath.h: Don't import C99's float transcendentals into the __gnu_cxx::__c99_binding...
* include/c_std/std_cmath.h: Don't import C99's float transcendentals
	into the __gnu_cxx::__c99_binding namespace.
	(acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
	ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
	GCC's math builtins, i.e. __builtin_foo.
	* libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
	ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
	ldexpf, ldexpl, modff, modfl): Provide stub implementations.

From-SVN: r73629
2003-11-15 14:26:47 +00:00
GCC Administrator
1f7290e64d Daily bump.
From-SVN: r73627
2003-11-15 00:16:08 +00:00
Jason Merrill
7f3a6a92f5 function.c (assign_parms): Use TREE_TYPE to determine the real type of the argument object.
* function.c (assign_parms): Use TREE_TYPE to determine the real
        type of the argument object.

From-SVN: r73623
2003-11-14 17:48:18 -05:00
Tom Fitzsimmons
5c859e1034 GridBagLayout.java (getLayoutDimensions): Return array of two zero-length int arrays when layoutInfo is null.
2003-11-14  Tom Fitzsimmons  <fitzsim@redhat.com>

	* java/awt/GridBagLayout.java (getLayoutDimensions): Return array of two
	zero-length int arrays when layoutInfo is null.
	(getLayoutWeights): Return array of two zero-length double arrays when
	layoutInfo is null.

From-SVN: r73622
2003-11-14 22:44:29 +00:00
Giovanni Bajo
8ffc2e370d re PR c++/2294 (using declaration confusion)
PR c++/2294
        * g++.dg/lookup/using9.c: New test.

From-SVN: r73621
2003-11-14 21:41:04 +01:00
Kazu Hirata
584fb00b96 lib1funcs.asm (___udivsi3): Peel off the first iteration.
* config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
	iteration.

From-SVN: r73620
2003-11-14 20:39:30 +00:00
Giovanni Bajo
2a91b33cb0 re PR c++/2294 (using declaration confusion)
PR c++/2294
        * name-lookup.c (push_overloaded_decl): Always construct an OVERLOAD
        unless the declaration is a built-in.
        (set_namespace_binding): While binding OVERLOADs with only one
        declaration, we still need to call supplement_binding.

From-SVN: r73618
2003-11-14 21:14:08 +01:00
Fariborz Jahanian
8fecc9e903 Fixed bug saving vararg registers in -mpowerpc64 mode.
Approved by: David Edelsohn

From-SVN: r73617
2003-11-14 20:09:26 +00:00
Fariborz Jahanian
5985c7a6f9 Fix bug saving vararg registers on stack in -mpowerpc64 mode.
Approved by: David Edelsohn.

From-SVN: r73616
2003-11-14 20:05:34 +00:00
Bernardo Innocenti
e6d98cb0a1 m68k.c: Use C statements instead of #ifdef's when testing for MOTOROLA versus MIT syntax.
* config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
	for MOTOROLA versus MIT syntax.  Improves readability and provides
	better compile-time error checking for both code paths.

From-SVN: r73615
2003-11-14 20:59:18 +01:00
Tom Tromey
dd168984f6 * libjava.jar/simple.jar: Replaced.
From-SVN: r73614
2003-11-14 19:38:39 +00:00
Kelley Cook
f2206911fb frv-protos.h: Update for C90.
2003-11-14  Kelley Cook  <kcook@gcc.gnu.org>

	* config/frv/frv-protos.h: Update for C90.
	* config/frv/frv.h: Likewise.
	* config/frv/frvbegin.c: Likewise.
	* config/frv/frv.c: Likewise.
	(frv_adjust_field_align): Delete unused variable.

From-SVN: r73613
2003-11-14 19:15:24 +00:00
Geoffrey Keating
39e6362756 rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN' to each place where TARGET_LONG_DOUBLE_128 is...
* config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
	to each place where TARGET_LONG_DOUBLE_128 is used with
	DEFAULT_ABI == ABI_AIX.

From-SVN: r73612
2003-11-14 19:05:16 +00:00
Geoffrey Keating
e235d8bfa0 cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found' message comply with GNU standards.
* cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
	message comply with GNU standards.

From-SVN: r73611
2003-11-14 19:00:04 +00:00
Mark Mitchell
ec75414ff7 re PR c++/12762 (Much worse error message when using a typedef with a template arg)
PR c++/12762
	* parser.c (cp_parser_enclosed_template_argument_list): New
	function.
	(cp_parser_template_id): Use it.
	(cp_parser_simple_type_specifier): Recognize invalid template
	syntax.

	PR c++/12762
	* g++.dg/template/error3.C: New test.

From-SVN: r73610
2003-11-14 18:37:39 +00:00
Richard Kenner
f285d67bfe function.c (struct epi_info): New field const_equiv.
PR/6552
	* function.c (struct epi_info): New field const_equiv.
	(update_epilogue_consts): New function.
	(keep_stack_depressed): Clear new field and verify scratch register
	doesn't have it set.
	Call new function via note_stores.
	(handle_epilogue_set): Allow setting SP equiv reg in different mode.
	Allow PLUS where second operand is register known set to constant.
	(emit_equiv_load): Write load using proper mode if source different.
	* config/mips/mips.md (return_internal): Put (return) first.

From-SVN: r73609
2003-11-14 12:28:25 -05:00
Andreas Jaeger
a477ab8320 lang.opt: Change -Wno-long-long to -Wlong-long since the latter is the canonical version.
* lang.opt: Change -Wno-long-long to -Wlong-long since the latter
	is the canonical version.
	* misc.c (gnat_handle_option): Likewise.

From-SVN: r73607
2003-11-14 17:49:19 +01:00
Andreas Jaeger
c004039774 Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
* Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.

	* 5nsystem.ads: New file for x86_64-linux-gnu.

From-SVN: r73606
2003-11-14 14:56:34 +01:00
Arnaud Charlet
4a4fe537ec * comperr.adb: Fix logic in previous change.
From-SVN: r73605
2003-11-14 14:50:45 +01:00
Kazu Hirata
2fea2a10d1 * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
From-SVN: r73604
2003-11-14 12:49:40 +00:00
Kazu Hirata
9fe7f443dd lib1funcs.asm (modsi3): Don't save unused registers.
* config/h8300/lib1funcs.asm (modsi3): Don't save unused
	registers.
	(divsi3): Likewise.
	(reti): Don't restore unused registers.

From-SVN: r73603
2003-11-14 12:39:27 +00:00
Paolo Carlini
38455b2b8b 12352.cc: Use __gnu_test::try_named_locale.
2003-11-14  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/22_locale/locale/cons/12352.cc: Use
	__gnu_test::try_named_locale.

From-SVN: r73602
2003-11-14 11:52:46 +00:00
Arnaud Charlet
262cc585e4 * sinfo.h, treeprs.ads: Regenerated.
From-SVN: r73601
2003-11-14 12:50:59 +01:00
Arnaud Charlet
95a6aaf9c8 * nmake.ads, nmake.adb: Regenerated.
From-SVN: r73600
2003-11-14 12:49:34 +01:00
Nick Clifton
f53100ef1c config/fr30/fr30.c: Include toplev.h
From-SVN: r73599
2003-11-14 11:13:12 +00:00
Richard Earnshaw
86bdf07137 * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
From-SVN: r73598
2003-11-14 10:44:08 +00:00
Richard Earnshaw
6f5f24812b arm.c (arm_emit_vector_const, [...]): Use ISO C function definition syntax.
* arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
function definition syntax.

From-SVN: r73597
2003-11-14 10:41:47 +00:00
Arnaud Charlet
65356e64cf [multiple changes]
2003-11-13  Vincent Celier  <celier@gnat.com>

	* 5bml-tgt.adb (Build_Dynamic_Library): Use
	Osint.Include_Dir_Default_Prefix instead of
	Sdefault.Include_Dir_Default_Name.

	* gnatlbr.adb: Update Copyright notice
	(Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
	Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
	instead of Sdefault.Object_Dir_Default_Name

	* gnatlink.adb:
	(Process_Binder_File): Never suppress the option following -Xlinker

	* mdll-utl.adb:
	(Gcc): Use Osint.Object_Dir_Default_Prefix instead of
	Sdefault.Object_Dir_Default_Name.

	* osint.ads, osint.adb:
	(Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
	Minor reformatting.

	* vms_conv.ads: Minor reformating
	Remove GNAT STANDARD and GNAT PSTA

	* vms_conv.adb:
	Allow GNAT MAKE to have several files on the command line.
	(Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
	Sdefault.Object_Dir_Default_Name.
	Minor Reformating
	Remove data for GNAT STANDARD

	* vms_data.ads:
	Add new compiler qualifier /PRINT_STANDARD (-gnatS)
	Remove data for GNAT STANDARD
	Remove options and documentation for -gnatwb/-gnatwB: these warning
	options no longer exist.

2003-11-13  Ed Falis  <falis@gnat.com>

	* 5zthrini.adb: (Init_RTS): Made visible

	* 5zthrini.adb:
	(Register): Removed unnecessary call to taskVarGet that checked whether
	 an ATSD was already set as a task var for the argument thread.

	* s-thread.adb:
	Updated comment to reflect that this is a VxWorks version
	Added context clause for System.Threads.Initialization
	Added call to System.Threads.Initialization.Init_RTS

2003-11-13  Jerome Guitton  <guitton@act-europe.fr>

	* 5zthrini.adb:
	(Init_RTS): New procedure, for the initialization of the run-time lib.

	* s-thread.adb:
	Remove dependancy on System.Init, so that this file can be used in the
	AE653 sequential run-time lib.

2003-11-13  Robert Dewar  <dewar@gnat.com>

	* bindgen.adb: Minor reformatting

2003-11-13  Ed Schonberg  <schonberg@gnat.com>

	* checks.adb:
	(Apply_Discriminant_Check): Do no apply check if target type is derived
	from source type with no applicable constraint.

	* lib-writ.adb:
	(Ensure_System_Dependency): Do not apply the style checks that may have
	been specified for the main unit.

	* sem_ch8.adb:
	(Find_Selected_Component): Further improvement in error message, with
	RM reference.

	* sem_res.adb:
	(Resolve): Handle properly the case of an illegal overloaded protected
	procedure.

2003-11-13  Javier Miranda  <miranda@gnat.com>

	* exp_aggr.adb:
	(Has_Default_Init_Comps): New function to check the presence of
	default initialization in an aggregate.
	(Build_Record_Aggr_Code): Recursively expand the ancestor in case of
	extension aggregate of a limited record. In addition, a new formal
	was added to do not initialize the record controller (if any) during
	this recursive expansion of ancestors.
	(Init_Controller): Add support for limited record components.
	(Expand_Record_Aggregate): In case of default initialized components
	convert the aggregate into a set of assignments.

	* par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
	describing the new syntax.
	Nothing else needed to be done because this subprogram delegates part of
	its work to P_Precord_Or_Array_Component_Association.
	(P_Record_Or_Array_Component_Association): Give support to the new
	syntax for default initialization of components.

	* sem_aggr.adb:
	(Resolve_Aggregate): Relax the strictness of the frontend in case of
	limited aggregates.
	(Resolve_Record_Aggregate): Give support to default initialized
	components.
	(Get_Value): In case of default initialized components, duplicate
	the corresponding default expression (from the record type
	declaration). In case of default initialization in the *others*
	choice, do not check that all components have the same type.
	(Resolve_Extension_Aggregate): Give support to limited extension
	aggregates.

	* sem_ch3.adb:
	(Check_Initialization): Relax the strictness of the front-end in case
	of aggregate and extension aggregates. This test is now done in
	Get_Value in a per-component manner.

	* sem_ch4.adb (Analyze_Allocator): Don't post an error if the
	expression corresponds to a limited aggregate. This test is now done
	in Get_Value.

	* sinfo.ads, sinfo.adb (N_Component_Association): Addition of
	Box_Present flag.

	* sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
	present in an N_Component_Association node

2003-11-13  Thomas Quinot  <quinot@act-europe.fr>

	* sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
	type-conformant entry only if they are homographs.

2003-11-13  GNAT Script  <nobody@gnat.com>

	* Make-lang.in: Makefile automatically updated

From-SVN: r73596
2003-11-14 11:24:47 +01:00
Eric Christopher
f2b7f367d5 reload1.c (reload): Revert previous patch.
2003-11-14  Eric Christopher  <echristo@redhat.com>

        * reload1.c (reload): Revert previous patch. Make
        check for assignment into reg_equiv_address stricter.

From-SVN: r73595
2003-11-14 10:20:48 +00:00
Arnaud Charlet
15cc172b12 Makefile.in (EXTRA_GCC_FLAGS): Pass BOOT_ADAFLAGS.
* Makefile.in (EXTRA_GCC_FLAGS): Pass BOOT_ADAFLAGS.
	* gcc/Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.

From-SVN: r73594
2003-11-14 11:18:51 +01:00
Richard Sandiford
68c0ab4feb frv.c (frv_in_small_data_p): Return false for unknown section names.
* config/frv/frv.c (frv_in_small_data_p): Return false for unknown
	section names.

From-SVN: r73593
2003-11-14 10:04:34 +00:00
Arnaud Charlet
7fb768e5dc re PR ada/13035 (Ada testsuite uses installed gcc)
PR ada/13035
	* ada/acats/run_acats, run_all.sh: Fix syntax errors.
	No longer use a wrapper for gcc, since this does not work under
	Windows, use --GCC switch instead.

From-SVN: r73592
2003-11-14 11:04:31 +01:00
Paolo Carlini
c60cfc76be howto.html: Add entries for DR 63, 75 and 305; tweak entries for DR 60 and 328.
2003-11-14  Paolo Carlini  <pcarlini@suse.de>

	* docs/html/ext/howto.html: Add entries for DR 63, 75
	and 305; tweak entries for DR 60 and 328.

From-SVN: r73591
2003-11-14 09:30:22 +00:00