Commit Graph

54193 Commits

Author SHA1 Message Date
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
Jason Merrill f027e0a2a2 re PR middle-end/12526 ([tree-ssa] internal compiler error: Segmentation fault)
PR middle-end/12526
        * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
        * calls.c (call_expr_flags): New fn.
        * tree.h: Declare it.

From-SVN: r73589
2003-11-14 03:19:59 -05:00
Jason Merrill 33552225d0 re PR middle-end/12526 ([tree-ssa] internal compiler error: Segmentation fault)
PR middle-end/12526
        * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
        * calls.c (call_expr_flags): New fn.
        * tree.h: Declare it.
        * tree-cfg.c (call_expr_flags): Move to calls.c.
        * tree-flow.h: Move prototype to tree.h.

From-SVN: r73588
2003-11-14 03:17:45 -05:00
Jason Merrill 53ee1bf364 re PR c++/13033 ([tree-ssa] ICE in lower_stmt)
PR c++/13033
        * c-simplify.c (gimplify_c_loop): Wrap the increment in a
        CLEANUP_POINT_EXPR.

From-SVN: r73587
2003-11-14 03:17:33 -05:00
Arnaud Charlet 936471542f Removed, unused and does not compile on all platforms.
From-SVN: r73585
2003-11-14 09:08:23 +01:00
Richard Henderson 98f685a20d New test.
From-SVN: r73581
2003-11-13 23:46:10 -08:00
Giovanni Bajo aede75ed61 re PR c++/2094 (unimplemented: use of `ptrmem_cst' in template type unification)
PR c++/2094
        * g++.dg/template/ptrmem7.C: New test.

From-SVN: r73578
2003-11-14 06:13:45 +01:00
Giovanni Bajo 28e8f3a00e re PR c++/2094 (unimplemented: use of `ptrmem_cst' in template type unification)
PR c++/2094
        * pt.c (unify): Add support for PTRMEM_CST and
        FIELD_DECL unification.

From-SVN: r73577
2003-11-14 05:51:21 +01:00
Kazu Hirata 0f8db53eaf lib1funcs.asm (__udivsi3): Remove.
* config/h8300/lib1funcs.asm (__udivsi3): Remove.
	(divmodsi3): Change the name to ___udivsi3.
	Update all callers.

From-SVN: r73576
2003-11-14 04:35:46 +00:00
Kaveh R. Ghazi b982024e30 libgcc2.c (__negdi2, [...]): Const-ify and/or initialize automatic variables at declaration.
* libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
	__mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
	__ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
	__udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
	__fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
	__floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
	Const-ify and/or initialize automatic variables at declaration.

From-SVN: r73573
2003-11-14 02:23:13 +00:00
Kazu Hirata ef1f2e1235 lib1funcs.asm (divmodsi4): Replace all the uses of er4 with er3.
* config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
	of er4 with er3.  Adjust all callers.

From-SVN: r73572
2003-11-14 02:06:37 +00:00
Tom Tromey b86ca9a2dc jni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to JvGetStringUTFRegion.
* jni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to
	JvGetStringUTFRegion.
	* java/lang/natPosixProcess.cc (new_string): Pass length of string
	to JvGetStringUTFRegion.
	* java/lang/natDouble.cc (parseDouble): Pass length of string to
	JvGetStringUTFRegion.
	* java/lang/natWin32Process.cc (startProcess): Pass length of
	string to JvGetStringUTFRegion.
	* java/lang/natClass.cc (forName): Pass length of string to
	JvGetStringUTFRegion.
	* gnu/gcj/runtime/natNameFinder.cc (getExternalLabel): Pass length
	of string to JvGetStringUTFRegion.
	* gnu/gcj/convert/natIconv.cc (init): Pass length of string to
	JvGetStringUTFRegion.
	* gnu/awt/gtk/natGtkLabelPeer.cc (setText): Pass length of string
	to JvGetStringUTFRegion.
	* gnu/awt/gtk/natGtkButtonPeer.cc (setLabel): Pass length of
	string to JvGetStringUTFRegion.

From-SVN: r73571
2003-11-14 01:48:30 +00:00
Andrew Pinski a25d596a29 +2003-11-13 Andrew Pinski <apinski@apple.com> + + * config/darwin.c...
+2003-11-13  Andrew Pinski <apinski@apple.com>
+
+       * config/darwin.c (machopic_output_possible_stub_label):
+       Allow stub symbol be not defined when outputting possible
+       stub label.
+
+2003-11-13  Andrew Pinski <apinski@apple.com>
+
+       * gcc.c-torture/compile/20031113-1.c: New test.
+

From-SVN: r73570
2003-11-13 17:47:55 -08:00
Tom Fitzsimmons d794fb9fbc jniutf.c: New file.
2003-11-13  Tom Fitzsimmons  <fitzsim@redhat.com>

	* libjava.jni/jniutf.c: New file.
	* libjava.jni/jniutf.java: New file.
	* libjava.jni/jniutf.out: New file.

From-SVN: r73569
2003-11-14 01:43:14 +00:00
GCC Administrator 83913cb559 Daily bump.
From-SVN: r73566
2003-11-14 00:16:09 +00:00
Douglas Gregor 1b80d64af2 debug.html: Users are allowed to specialize in namespace __gnu_debug...
2003-11-13  Douglas Gregor  <gregod@cs.rpi.edu>

	* docs/html/debug.html: Users are allowed to specialize in
	namespace __gnu_debug, unlike in the Apple version of the debug
	mode. Clear up a confusing double-negative. Note that
	std::basic_string does provide extra debugging capabilities, but
	not safe iterators.
	* include/bits/basic_string.tcc: Make sure there's never an
	ambiguity when calling __is_null_pointer.
	* include/debug/deque: (deque::erase) Properly handle invalidation
	when erasing at the end of the deque.
	* include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
	(vector::clear): Set the guaranteed capacity to 0.
	* testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
	iterator invalidation when erasing at the end of the deque.

From-SVN: r73564
2003-11-14 00:15:00 +00:00
Paolo Carlini a2dcfada8a re PR libstdc++/13007 (basic_streambuf::pubimbue, imbue wrong)
2003-11-13  Paolo Carlini  <pcarlini@suse.de>
	    Petur Runolfsson  <peturr02@ru.is>

	PR libstdc++/13007
	* include/bits/fstream.tcc (imbue): Don't touch the stored
	locale.
	* include/std/std_streambuf.h (imbue): According to the
	standard, base class version does nothing.
	(pubimbue): Store the locale.
	* testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
	* testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
	* testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
	* testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
	* testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
	* testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.

Co-Authored-By: Petur Runolfsson <peturr02@ru.is>

From-SVN: r73563
2003-11-13 23:13:22 +00:00
Kazu Hirata ab7c6efde0 lib1funcs.asm (___udivsi3): Jump to reti instead of exitdiv.
* config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
	instead of exitdiv.
	(___umodsi3): Likewise.
	(exitdiv): Do not restore any register.
	(reti): Restore registers.

From-SVN: r73560
2003-11-13 22:28:07 +00:00
Steven Bosscher 415294f0e0 * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
From-SVN: r73557
2003-11-13 20:50:40 +00:00
Kazu Hirata c9b010ea5d * config/h8300/lib1funcs.asm: Fix comment typos.
From-SVN: r73556
2003-11-13 19:46:01 +00:00
Kazu Hirata 1a67967995 lib1funcs.asm (udivsi3): Don't save/restore unused registers.
* config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
	unused registers.  Don't jump to exitdiv.
	(umodsi3): Likewise.

From-SVN: r73555
2003-11-13 19:42:03 +00:00
Mark Mitchell 49012f5c0f re PR c/13029 (static consts and -Wunused-variable)
PR c/13029
	* toplev.c (check_global_declarations): Do not warn about unused
	static consts.

	PR c/13029
	* gcc.dg/unused-4.c: Update.

Co-Authored-By: Kean Johnston <jkj@sco.com>

From-SVN: r73554
2003-11-13 19:40:19 +00:00
Petur Runolfsson 5681c890b6 re PR libstdc++/12594 (DRs 60 [TC] and 63 [TC] not implemented)
2003-11-13  Petur Runolfsson  <peturr02@ru.is>

	PR libstdc++/12594
	* include/bits/ostream.tcc
	(basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
	basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
	basic_ostream::operator<<(ios_base& (*)(ios_base&))):
	Implement the resolution of DR 60 (TC): These are not formatted
	output functions so don't construct sentry objects and don't
	catch exceptions.
	(basic_ostream::put, basic_ostream::write): Implement the
	resolution of DR 63 (TC) by catching exceptions and setting
	badbit.
	(basic_ostream::flush): Implement the resolution of DR 60 (TC):
	This is not an unformatted output function so don't construct
	a sentry object.
	* testsuite/testsuite_io.h (sync_streambuf): Define.
	* testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
	* testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
	* testsuite/27_io/basic_ostream/put/char/1.cc: New test.
	* testsuite/27_io/basic_ostream/write/char/1.cc: New test.

From-SVN: r73551
2003-11-13 17:43:48 +00:00
Pavel Pisa 148a82c8ad lib1funcs.asm (DenHighNonZero): Optimize using the approximate quotient method.
* config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
	the approximate quotient method.

Co-Authored-By: Kazu Hirata <kazu@cs.umass.edu>

From-SVN: r73550
2003-11-13 17:10:23 +00:00
Richard Earnshaw 79ae853c64 * decl.c (grokfndecl): Change OK to type tree.
From-SVN: r73549
2003-11-13 16:34:42 +00:00
Paolo Carlini f144e859cc 11305-1: Fix, closely following the testcase included in the PR.
2003-11-13  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
	Fix, closely following the testcase included in the PR.
	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.

From-SVN: r73548
2003-11-13 14:19:39 +00:00
Richard Earnshaw f9af39d0c7 combine.c (distribute_notes): When re-distributing the notes from an insn we are about to delete...
* combine.c (distribute_notes): When re-distributing the notes from
an insn we are about to delete, ensure we can't end up with a cyclic
list of notes.

From-SVN: r73547
2003-11-13 14:05:55 +00:00
Mohan Embar 650dc9b332 * gnu/java/nio/natSelectorImplPosix.cc
(helper_put_filedescriptors): Change to static linkage.
	(helper_get_filedescriptors): Likewise.

From-SVN: r73545
2003-11-13 10:09:40 +00:00
Eric Botcazou d76bc29c91 re PR rtl-optimization/12926 (Wrong value after assignment in initialize list using bit-fields)
PR optimization/12926
	* expr.c (expand_assignment) [COMPONENT_REF]: Don't put
	the UNCHANGING_RTX_P flag on memory references to read-only
	components that are not addressable.

From-SVN: r73542
2003-11-13 09:48:36 +00:00
Kazu Hirata 239ca41f81 lib1funcs.asm (divmodsi4): Clear S0P in DenHighNonZero.
* config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
	DenHighNonZero.

From-SVN: r73538
2003-11-13 04:26:00 +00:00
Jan Hubicka fccc4eb240 re PR rtl-optimization/12275 ([unit-at-a-time] ICE in htab_clear_slot)
PR opt/12275
	* c-decl.c (finish_decl): Use change_decl_assembler_name.
	* c-pragma.c (handle_pragma_redefine_extname): Likewise.
	* varasm.c (make_decl_rtl): Likewise.
	* cgraph.c (change_decl_assembler_name): New function.
	* tree.h (set_decl_assembler_name): Kill dead declaration.
	(change_decl_assembler_name): Declare.

	* decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
	* decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.

From-SVN: r73532
2003-11-13 02:07:57 +00:00
Jason Merrill 1b2b8ee7a9 re PR rtl-optimization/12547 ([tree-ssa] simple java code with -fcheck-references causes gimplification failed)
PR optimization/12547
        * lang.c (java_tree_inlining_walk_subtrees): Just walk
        BLOCK_EXPR_BODY directly.

From-SVN: r73530
2003-11-12 20:25:24 -05:00
Jonathan Wakely a198480e86 configury.html: XHTML tweak.
2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>

	* docs/html/17_intro/configury.html: XHTML tweak.

From-SVN: r73529
2003-11-13 01:21:28 +00:00
Jonathan Wakely 684edd67f6 debug_mode.html: XHTML fixes.
2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>

	* docs/html/debug_mode.html: XHTML fixes.

From-SVN: r73526
2003-11-13 00:49:58 +00:00
Benjamin Kosnik 89341602bb debug_mode.html: Update.
2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>

	* docs/html/debug_mode.html: Update.
	* docs/html/17_intro/TODO: Update.

From-SVN: r73525
2003-11-13 00:25:23 +00:00
GCC Administrator f1045f1b27 Daily bump.
From-SVN: r73523
2003-11-13 00:16:08 +00:00
Mark Mitchell 662eceda1d tree.c (build_target_expr_with_type): Treate VA_ARG_EXPR like CONSTRUCTOR.
* tree.c (build_target_expr_with_type): Treate VA_ARG_EXPR like
	CONSTRUCTOR.

From-SVN: r73521
2003-11-12 23:48:25 +00:00
Kazu Hirata 0c7c472e88 lib1funcs.asm (___mulsi3): Don't save/restore an unused register.
* config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
	an unused register.

From-SVN: r73520
2003-11-12 23:39:48 +00:00