Commit Graph

54113 Commits

Author SHA1 Message Date
Paolo Carlini dfad48c6e8 re PR libstdc++/12875 (Weird behaviour in basic_filebuf::setbuf())
2003-11-11  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/12875
	* include/bits/fstream.tcc (setbuf): Don't do anything
	after open(), in particular don't discard data.
	(_M_allocate_internal_buffer): Tweak to not allocate memory
	in case the buffer is provided by the user via setbuf.
	* include/ext/stdio_filebuf.h: Tweak comment.
	* testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
	* testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
	setbuf does nothing after open().
	* testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.

From-SVN: r73477
2003-11-12 01:14:34 +00:00
Thomas Fitzsimmons a5966c9ef9 Makefile.am: Add GdkPixbufDecoder.java and gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
2003-11-11  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* Makefile.am: Add GdkPixbufDecoder.java and
	gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
	* Makefile.in: Regenerate.
	* gnu/java/awt/image/ImageDecoder.java (ImageDecoder(byte[],int,int)):
	New constructor.
	(startProduction): Create ByteArrayInputStream when url and filename are
	null.
	(produce): Declare stream parameter as InputStream.
	* gnu/java/awt/image/XBMDecoder.java (produce): Declare stream parameter
	as InputStream.
	* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
	(GdkPixbufDecoder(byte[],int,int)): New constructor.
	(produce): Declare stream parameter as InputStream.
	* gnu/java/awt/peer/gtk/GtkComponentPeer.java (prepareImage): Throw NPE
	if image is null.  Set image's observer before running PrepareImage
	thread.  Pass image to startProduction.
	* gnu/java/awt/peer/gtk/GtkImage.java: Add null checks before calls to
	source's member functions.
	(observer): New field.
	(setObserver): New method.
	(setDimensions, setPixels, imageComplete): Call observer's imageUpdate.
	* gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage, getImage): Return
	new GtkImage.
	(prepareImage): Implement.
	* java/awt/Component.java: Add static fields incrementalDraw and
	redrawRate.
	(imageUpdate): Implement.
	(createImage): Call Toolkit's createImage if peer is null.
	(prepareImage): Throw NPE if image is null.
	* java/awt/MediaTracker.java: Fix return value.

From-SVN: r73476
2003-11-12 00:37:34 +00:00
GCC Administrator c754c6f131 Daily bump.
From-SVN: r73474
2003-11-12 00:16:07 +00:00
Richard Henderson fd9af78164 New tests.
From-SVN: r73469
2003-11-11 14:33:06 -08:00
Jason Merrill 86098eb892 cp-tree.h (DECL_NAMESPACE_ASSOCIATIONS): New macro.
* cp-tree.h (DECL_NAMESPACE_ASSOCIATIONS): New macro.
        * name-lookup.c (parse_using_directive): New fn.
        (is_associated_namespace): New fn.
        (arg_assoc_namespace): Also check associated namespaces.
        * name-lookup.h: Declare new fns.
        * pt.c (maybe_process_partial_specialization): Allow
        specialization in associated namespace.
        * parser.c (cp_parser_using_directive): Accept attributes.  Use
        parse_using_directive.

From-SVN: r73468
2003-11-11 17:27:32 -05:00
Andreas Jaeger 292d9f2bcd * gcc.c-torture/execute/20020227-1.x: Test passes also on x86_64.
From-SVN: r73467
2003-11-11 22:54:04 +01:00
Andreas Jaeger 3e65fcc09d * gcc.c-torture/execute/20020720-1.x: Test passes also on x86_64.
From-SVN: r73466
2003-11-11 22:48:05 +01:00
James E Wilson 0b69c29f22 Undo accidental GET_MODE_BITSIZE damage.
(store_bit_field, extract_bit_field): Revert last two
changes.

From-SVN: r73463
2003-11-11 12:54:38 -08:00
Tom Tromey 5b84be7383 re PR java/12915 (Broken String concatenation)
PR java/12915:
	* parse.y (merge_string_cste): Handle case where we have a
	pointer that happens to be zero, not null_pointer_node.

From-SVN: r73461
2003-11-11 20:20:07 +00:00
Tom Tromey ec629ef5a4 For PR java/12915:
* libjava.lang/PR12915.java: New file.
	* libjava.lang/PR12915.out: New file.

From-SVN: r73460
2003-11-11 20:11:43 +00:00
Benjamin Kosnik 285b36d6a5 [multiple changes]
2003-11-11  Doug Gregor  <gregod@cs.rpi.edu>

	* docs/html/debug.html: Document libstdc++ debug mode.
	* docs/html/debug_mode.html: Document libstdc++ debug mode design.
	* docs/html/test.html: Document how to test under debug mode.
	* docs/html/17_intro/howto.html: Document debug-mode macros.
	* include/Makefile.am: Install debug-mode headers.
	* src/Makefile.am: Include debug.cc.
	* include/bits/basic_string.tcc:
	  (basic_string::_S_construct): Fix NULL pointer check.
	  (__is_null_pointer): New.
	  Add precondition annotations.
	* include/bits/stream_iterator.h (istream_iterator,
	ostream_iterator): Added precondition annotations.
	* include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
	* include/bits/stl_queue.h (queue, priority_queue): Ditto.
	* include/bits/stl_stack.h (stack): Ditto.
	* include/bits/basic_string.h (basic_string): Ditto.
	* include/bits/basic_string.tcc (basic_string): Ditto.
	* include/std/std_memory.h (auto_ptr): Ditto.
	* include/std/std_valarray.h (valarray): Ditto.
	* include/bits/stl_algo.h: Added algorithm precondition
	annotations.
	* include/bits/stl_algobase.h: Added algorithm precondition
	annotations.
	* include/bits/stl_numeric.h: Ditto.
	* include/ext/algorithm: Added algorithm precondition
	annotations.
	(__is_heap): Moved away from here.
	* include/bits/stl_heap.h: Added algorithm precondition
	annotations.
	(__is_heap): Moved to the top of this file.
	(__is_heap): Added iterator range overloads.
	* testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
	with changes in std_memory.h.
	* testsuite/23_containers/list/operators/4.cc: Don't verify
	performance guarantees when in debug mode.
	* testsuite/23_containers/bitset/invalidation/1.cc: New.
	* testsuite/23_containers/deque/invalidation/1.cc: New.
	* testsuite/23_containers/deque/invalidation/2.cc: New.
	* testsuite/23_containers/deque/invalidation/3.cc: New.
	* testsuite/23_containers/deque/invalidation/4.cc: New.
	* testsuite/23_containers/list/invalidation/1.cc: New.
	* testsuite/23_containers/list/invalidation/2.cc: New.
	* testsuite/23_containers/list/invalidation/3.cc: New.
	* testsuite/23_containers/list/invalidation/4.cc: New.
	* testsuite/23_containers/map/invalidation/1.cc: New.
	* testsuite/23_containers/map/invalidation/2.cc: New.
	* testsuite/23_containers/multimap/invalidation/1.cc: New.
	* testsuite/23_containers/multimap/invalidation/2.cc: New.
	* testsuite/23_containers/multiset/invalidation/1.cc: New.
	* testsuite/23_containers/multiset/invalidation/2.cc: New.
	* testsuite/23_containers/set/invalidation/1.cc: New.
	* testsuite/23_containers/set/invalidation/2.cc: New.
	* testsuite/23_containers/vector/invalidation/1.cc: New.
	* testsuite/23_containers/vector/invalidation/2.cc: New.
	* testsuite/23_containers/vector/invalidation/3.cc: New.
	* testsuite/23_containers/vector/invalidation/4.cc: New.
	* testsuite/25_algorithms/heap.cc: Don't verify
	performance guarantees when in debug mode.
	* include/debug/bitset: New.
	* include/debug/debug.h: New.
	* include/debug/deque: New.
	* include/debug/formatter.h: New.
	* include/debug/hash_map: New.
	* include/debug/hash_map.h: New.
	* include/debug/hash_multimap.h: New.
	* include/debug/hash_set: New.
	* include/debug/hash_set.h: New.
	* include/debug/hash_multiset.h: New.
	* include/debug/list: New.
	* include/debug/map: New.
	* include/debug/map.h: New.
	* include/debug/multimap.h: New.
	* include/debug/multiset.h: New.
	* include/debug/safe_base.h: New.
	* include/debug/safe_iterator.h: New.
	* include/debug/safe_iterator.tcc: New.
	* include/debug/safe_sequence.h: New.
	* include/debug/set: New.
	* include/debug/set.h: New.
	* include/debug/string: New.
	* include/debug/vector: New.
	* src/debug.cc: New.
	* config/linker-map.gnu: Add debug mode symbols.

2003-11-11  Benjamin Kosnik  <bkoz@redhat.com>

	* src/string-inst.cc: Tweak namespaces.
	* src/misc-inst.cc: Same.
	* docs/html/debug.html: Edits.
	* config/link-map.gnu: Remove cruft.

	* include/bits/c++config: Add in namespace associations.
	* include/std/std_bitset.h: Adjust namespace to __gnu_norm,
	comment tweaks.
	* include/bits/deque.tcc: Same.
	* include/bits/list.tcc: Same.
	* include/bits/stl_bvector.h: Same.
	* include/bits/stl_deque.h: Same.
	* include/bits/stl_list.h: Same.
	* include/bits/stl_map.h: Same.
	* include/bits/stl_multimap.h: Same.
	* include/bits/stl_multiset.h: Same.
	* include/bits/stl_set.h: Same.
	* include/bits/stl_vector.h: Same.
	* include/bits/vector.tcc: Same.

	* include/std/std_algorithm.h: Remove markup comments.
	* include/std/std_functional.h: Same.
	* include/std/std_iterator.h: Same.
	* include/std/std_numeric.h: Same.
	* include/std/std_utility.h: Same.
	* include/bits/stl_queue.h: Formatting tweaks.
	* include/bits/stl_stack.h: Same.
	* include/std/std_deque.h: Include debugging version in debug mode.
	* include/std/std_list.h: Same.
	* include/std/std_map.h: Same.
	* include/std/std_set.h: Same.
	* include/std/std_vector.h: Same.
	* include/std/std_queue.h: Use deque, vector.
	* include/std/std_stack.h: Same.

From-SVN: r73459
2003-11-11 20:09:16 +00:00
Tom Tromey 0259239a6a jacks.exp (gcj_jacks_write): Enable "assert" constraint.
* libjava.jacks/jacks.exp (gcj_jacks_write): Enable "assert"
	constraint.
	* libjava.jacks/jacks.xfail: Added new xfails.

From-SVN: r73458
2003-11-11 20:04:22 +00:00
Kazu Hirata 3849e3a6c4 lib1funcs.asm: Replace DenHighZero with DenHighNonZero.
* config/h8300/lib1funcs.asm: Replace DenHighZero with
	DenHighNonZero.

From-SVN: r73457
2003-11-11 18:36:39 +00:00
Jan Hubicka cc515291bf cgraphunit.c (cgraph_function_possibly_inlined_p): Use really_no_inline.
* cgraphunit.c (cgraph_function_possibly_inlined_p): Use
	really_no_inline.

From-SVN: r73454
2003-11-11 17:43:45 +00:00
Thomas Fitzsimmons 009ed5cc5c GtkLabelPeer.java (create()): Call new create.
2003-11-11  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkLabelPeer.java (create()): Call new create.
	(create(String, float)): New method.
	(setText): Make native.
	(nativeSetAlignment): New method.
	(setAlignment): Call nativeSetAlignment.
	(getArgs): Remove method.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
	(find_fg_color_widget, find_bg_color_widget): New functions.
	(gtkWidgetSetForeground): Call find_fg_color_widget.
	(gtkWidgetSetBackground): Call find_bg_color_widget.  Modify active and
	prelight colors.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (create): Wrap label
	widget in event box.
	(setText, setAlignment): Implement new native methods.

From-SVN: r73453
2003-11-11 17:04:47 +00:00
John David Anglin 4d595e4342 pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when generating 64-bit code.
* pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
	generating 64-bit code.

From-SVN: r73451
2003-11-11 16:16:41 +00:00
Michael Koch 5237cd77c2 Font.java, [...]: Removed some redundant obj == null checks.
2003-11-11  Michael Koch  <konqueror@gmx.de>

	* java/awt/Font.java,
	java/awt/datatransfer/DataFlavor.java,
	java/math/BigInteger.java,
	java/net/Inet4Address.java,
	java/net/Inet6Address.java,
	java/rmi/MarshalledObject.java,
	java/rmi/server/RMIClassLoader.java,
	java/security/cert/CertStore.java,
	java/sql/Timestamp.java,
	java/text/SimpleDateFormat.java,
	javax/naming/CompoundName.java:
	Removed some redundant obj == null checks.

From-SVN: r73448
2003-11-11 12:22:20 +00:00
Michael Koch c824ce21ca 2003-11-11 Michael Koch <konqueror@gmx.de>
* java/nio/ByteBuffer.java
	(equals): Remove redundant obj == null check.

From-SVN: r73447
2003-11-11 11:56:58 +00:00
Michael Koch 4ba6d1c3e2 natPipeImpl.cc, [...]: Removed
2003-11-11  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/natPipeImpl.cc,
	gnu/java/nio/natSelectorImpl.cc: Removed
	* gnu/java/nio/natPipeImplEcos.cc,
	gnu/java/nio/natPipeImplPosix.cc,
	gnu/java/nio/natPipeImplWin32.cc,
	gnu/java/nio/natSelectorImplEcos.cc,
	gnu/java/nio/natSelectorImplPosix.cc,
	gnu/java/nio/natSelectorImplWin32.cc: New files
	* configure.in: Create links for gnu/java/nio/natPipeImpl.cc and
	gnu/java/nio/natSelectorImpl.cc
	* configure: Regenerated.

From-SVN: r73446
2003-11-11 11:49:12 +00:00
Michael Koch e055c06770 URLStreamHandler.java (toExternalForm): Print port only if host is printed too and port was really given to URL.
2003-11-11  Micheal Koch  <konqueror@gmx.de>

	* java/net/URLStreamHandler.java (toExternalForm): Print port only
	if host is printed too and port was really given to URL.

From-SVN: r73445
2003-11-11 11:34:24 +00:00
David Edelsohn f921c9c9e0 rs6000.c (legitimate_lo_sum_address_p): Remove accidental commit in previous change.
* config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
        accidental commit in previous change.

From-SVN: r73440
2003-11-10 23:24:37 -05:00
Fariborz Jahanian ceba9fcbd5 Minor fixes to darwin version of -mpowerpc64.
From-SVN: r73439
2003-11-11 02:35:45 +00:00
Fariborz Jahanian 4c81e94618 Misc. fixes for -mpowerpc64 vesion darwin.
Reviewed by David Edelsohn.

From-SVN: r73438
2003-11-11 02:34:56 +00:00
Gary Benson 84083f51be Timestamp.java (valueOf): Correctly handle nanoseconds.
2003-11-10  Gary Benson  <gbenson@redhat.com>

	* java/sql/Timestamp.java (valueOf): Correctly handle
	nanoseconds.

From-SVN: r73437
2003-11-11 00:51:44 +00:00
GCC Administrator b1e0ae3eaa Daily bump.
From-SVN: r73435
2003-11-11 00:16:07 +00:00
Richard Henderson d0585b99db * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
From-SVN: r73431
2003-11-10 15:45:44 -08:00
Matt Austern 6ce4806bb6 darwin-protos.h (darwin_assemble_visibility): Declare.
* config/darwin-protos.h (darwin_assemble_visibility): Declare.
	* config/darwin.c (darwin_assemble_visibility): Define.  Warn for
	anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
	* config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
	darwin_assemble_visibility instead of default.

From-SVN: r73430
2003-11-10 23:07:09 +00:00
Tom Tromey 87a9cbf9ae jcf-parse.c (classify_zip_file): Correctly compare filename_length against length of manifest file's name.
* jcf-parse.c (classify_zip_file): Correctly compare
	filename_length against length of manifest file's name.

From-SVN: r73429
2003-11-10 22:13:21 +00:00
Richard Henderson 394b9d9962 * cvt.c (convert_to_void): Use void_zero_node after overload failure.
From-SVN: r73427
2003-11-10 14:02:36 -08:00
Tom Tromey 9472b498dd For PR java/12996:
* libjava.jar/simple.jar: New file.
	* libjava.jar/simple.xfail: New file.
	* libjava.jar/simple.out: New file.
	* libjava.jar/simple.java: New file.
	* libjava.jar/jar.exp: New file.

From-SVN: r73426
2003-11-10 21:30:10 +00:00
Arnaud Charlet 9596236a48 [multiple changes]
2003-11-10  Ed Falis  <falis@gnat.com>

	* 5ytiitho.adb: (procStartHookAdd): Definition and call deleted

	* 5zinit.adb: (Install_Handler): Moved back to spec
	(Install_Signal_Handlers): Deleted

	* 5zthrini.adb: Added context clause for System.Storage_Elements
	(Register): Only handles creation of taskVar; initialization moved to
	Thread_Body_Enter.
	(Reset_TSD): Deleted; replaced by Thread_Body_Enter
	Added declaration of environment task secondary stack and
	initialization.

	* s-thread.adb: Implement bodies for thread body processing

	* s-thread.ads:
	Added comment identifying supported targets for pragma Thread_Body.

2003-11-10  Pascal Obry  <obry@gnat.com>

	* adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
	GNAT_MAX_PATH_LEN.

	* s-fileio.adb:
	(Open): Properly check for string length before copying into the buffer.
	Raises Name_Error if buffer is too small. Note that this was a potential
	buffer overflow.

2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>

	* bindgen.adb, comperr.adb: Code clean ups.
	* gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.

2003-11-10  Sergey Rybin  <rybin@act-europe.fr>

	* gnat1drv.adb: Add call to Sem_Elim.Initialize.

2003-11-10  Vincent Celier  <celier@gnat.com>

	* gprcmd.adb:
	(Gprcmd): Add new command "prefix" to get the prefix of the GNAT
	installation.

	* make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler

	* prj.adb: (Project_Empty): Add new boolean component Virtual

	* prj.ads: (Virtual_Prefix): New constant string
	(Project_Data): New boolean component Virtual

	* prj-nmsc.adb (Language_Independent_Check): Adjust error message when
	a library project is extended by a virtual extending project.

	* prj-part.adb:
	Modifications throughout to implement extending-all project, including:
	(Virtual_Hash, Processed_Hash): New hash tables
	(Create_Virtual_Extending_Project): New procedure
	(Look_For_Virtual_Projects_For): New procedure

	* prj-proc.adb:
	(Process): After checking the projects, if main project is an
	extending-all project, set the object directory of all virtual extending
	project to the object directory of the main project.
	Adjust error message when a virtual extending project has the same
	object directory as an project being extended.
	(Recursive_Process): If name starts with the virtual prefix, set Virtual
	to True in the project data.

	* prj-tree.adb:
	(Default_Project_Node): Add new boolean component Extending_All
	(Is_Extending_All): New function
	(Set_Is_Extending_All): New procedure

	* prj-tree.ads: (Is_Extending_All): New function
	(Set_Is_Extending_All): New procedure
	(Project_Node_Record): New boolean component Extending_All

	* switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib

	* vms_data.ads:
	Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler

	* bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
	"gprcmd prefix" to define it.

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

	* einfo.ads: Fix a typo and remove an extraneous word in comments.

	* lib-load.adb:
	(Create_Dummy_Package_Unit): Set the scope of the entity for the
	created dummy package to Standard_Standard, not to itself, to
	defend other parts of the front-end against encoutering a cycle in
	the scope chain.

	* sem_ch10.adb:
	(Analyze_With_Clause): When setting the entities for the successive
	N_Expanded_Names that constitute the name of a child unit, do not
	attempt to go further than Standard_Standard in the chain of scopes.
	This case arises from the placeholder units created by
	Create_Dummy_Package_Unit in the case of a with_clause for a
	nonexistent child unit.

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

	* exp_ch6.adb:
	(Expand_Thread_Body): Place subprogram on scope stack, so that new
	declarations are given the proper scope.

	* sem_ch13.adb:
	(Check_Expr_Constants): Reject an expression that contains a constant
	created during expansion, and that appears after the object to which
	the address clause applies.

	* sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
	Analyze_Iteration_Scheme, to rewrite a loop parameter specification
	that uses 'Range of a function call with controlled components, so
	that the function result can be finalized before starting the loop.

	* sem_ch8.adb:
	(Find_Selected_Component): Improve error message when prefix is
	an implicit dereference of an incomplete type.

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

	* opt.ads: New Print_Standard flag for -gnatS switch

	* sem_ch13.adb: Remove some additional checks for unaligned arrays

	* cstand.adb (Create_Standard): Print out package standard if -gnatS
	switch set

	* debug.adb: Update doc for -gnatds to discuss relationship with new
	-gnatS flag

	* sinfo.adb: Add new field Entity_Or_Associated_Node

	* sinfo.ads: Add new field Entity_Or_Associated_Node
	Update documentation for Associated_Node and Entity fields to clarify
	relationship and usage.

	* sprint.adb:
	(Write_Id): Properly process Associated_Node field in generic template

	* switch-c.adb:
	Recognize new -gnatS switch for printing package Standard
	This replaces gnatpsta

	* usage.adb:
	Add line for  new -gnatS switch for printing package Standard
	This replaces gnatpsta

From-SVN: r73423
2003-11-10 18:30:00 +01:00
Arnaud Charlet e617812170 run_all.sh: Add handling of unsupported (tasking) tests.
* ada/acats/run_all.sh: Add handling of unsupported (tasking) tests.
	Clean ups.

From-SVN: r73422
2003-11-10 18:10:45 +01:00
Andreas Jaeger c77c5f2e38 7sosprim.adb: tv_usec of struct_timeval and time_t are long integer.
* 7sosprim.adb: tv_usec of struct_timeval and time_t are long
	integer.

From-SVN: r73419
2003-11-10 16:54:35 +01:00
Arnaud Charlet 5c90f17f66 Add handling of -nostdlib, now recognized/needed by gnat1.
From-SVN: r73413
2003-11-10 12:20:03 +01:00
Arnaud Charlet 139f0d1eb8 Makefile.in, [...]: Remove build of gnat_wrapper and gnatpsta, no longer needed.
* Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
	no longer needed.

	* gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.

	* sysdep.c: Add handling of cygwin.

From-SVN: r73412
2003-11-10 11:25:21 +01:00
GNAT Script f3e4c05ca9 * Make-lang.in: Makefile automatically updated
From-SVN: r73411
2003-11-10 10:57:06 +01:00
Arnaud Charlet 36f737df20 Complete previous change.
From-SVN: r73409
2003-11-10 10:45:58 +01:00
Arnaud Charlet 2cdc8909d3 re PR ada/12950 (Ada runtime is not relocatable)
PR 12950
	* osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
	functions. Used to handle dynamic prefix relocation, via set_std_prefix.
	Replace GNAT_ROOT by GCC_ROOT.

	* Make-lang.in: Use new function Relocate_Path to generate sdefault.adb

From-SVN: r73407
2003-11-10 10:42:57 +01:00
Gabriel Dos Reis 64323f62a6 re PR c++/12832 (ICE: tree check: expected class 'd', have 'x' (error_mark) in location_of, at cp/error.c:1962)
PR c++/12832
	* name-lookup.c (supplement_binding): Gracefully handle names
	used at non-class scope prior declaration.

From-SVN: r73406
2003-11-10 08:32:16 +00:00
Waldek Hebisch 1ec0c6076c re PR target/12865 (`mprotect' call to make trampoline executable may fail)
PR target/12865
	* config/sparc/sparc.c (sparc_initialize_trampoline): Call
	__enable_execute_stack only after writing onto the stack.
	(sparc64_initialize_trampoline): Likewise.

From-SVN: r73402
2003-11-10 08:11:47 +00:00
GCC Administrator 9883226bc5 Daily bump.
From-SVN: r73400
2003-11-10 00:16:06 +00:00
Tom Tromey b425ed522b * java/net/Inet4Address.java (serialVersionUID): Updated.
From-SVN: r73398
2003-11-09 23:07:11 +00:00
Andrew Pinski a5fdcda848 200031109-1.c: New test.
2003-11-09  Andrew Pinski  <pinskia@physics.uc.edu>

	* gcc.c-torture/compile/200031109-1.c: New test.

From-SVN: r73397
2003-11-09 13:27:16 -08:00
Paolo Carlini f6a7db9ee1 locale_facets.tcc (_M_insert_int, [...]): Move a couple of vars inside an if block.
2003-11-09  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (_M_insert_int,
	_M_insert_float): Move a couple of vars inside an if block.

From-SVN: r73395
2003-11-09 19:15:25 +00:00
Andreas Tobler 647af4a91c closure_fn0.c: Print result and check with dg-output to make debugging easier.
2003-11-09  Andreas Tobler  <a.tobler@schweiz.ch>

	* testsuite/libffi.call/closure_fn0.c: Print result and check
	with dg-output to make debugging easier.
	* testsuite/libffi.call/closure_fn1.c: Likewise.
	* testsuite/libffi.call/closure_fn2.c: Likewise.
	* testsuite/libffi.call/closure_fn3.c: Likewise.
	* testsuite/libffi.call/closure_fn4.c: Likewise.
	* testsuite/libffi.call/closure_fn5.c: Likewise.
	* testsuite/libffi.call/cls_12byte.c: Likewise.
	* testsuite/libffi.call/cls_16byte.c: Likewise.
	* testsuite/libffi.call/cls_18byte.c: Likewise.
	* testsuite/libffi.call/cls_19byte.c: Likewise.
	* testsuite/libffi.call/cls_1_1byte.c: Likewise.
	* testsuite/libffi.call/cls_20byte.c: Likewise.
	* testsuite/libffi.call/cls_20byte1.c: Likewise.
	* testsuite/libffi.call/cls_24byte.c: Likewise.
	* testsuite/libffi.call/cls_2byte.c: Likewise.
	* testsuite/libffi.call/cls_3_1byte.c: Likewise.
	* testsuite/libffi.call/cls_3byte1.c: Likewise.
	* testsuite/libffi.call/cls_3byte2.c: Likewise.
	* testsuite/libffi.call/cls_4_1byte.c: Likewise.
	* testsuite/libffi.call/cls_4byte.c: Likewise.
	* testsuite/libffi.call/cls_5byte.c: Likewise.
	* testsuite/libffi.call/cls_64byte.c: Likewise.
	* testsuite/libffi.call/cls_6byte.c: Likewise.
	* testsuite/libffi.call/cls_7byte.c: Likewise.
	* testsuite/libffi.call/cls_8byte.c: Likewise.
	* testsuite/libffi.call/cls_9byte1.c: Likewise.
	* testsuite/libffi.call/cls_9byte2.c: Likewise.
	* testsuite/libffi.call/cls_double.c: Likewise.
	* testsuite/libffi.call/cls_float.c: Likewise.
	* testsuite/libffi.call/cls_schar.c: Likewise.
	* testsuite/libffi.call/cls_sint.c: Likewise.
	* testsuite/libffi.call/cls_sshort.c: Likewise.
	* testsuite/libffi.call/cls_uchar.c: Likewise.
	* testsuite/libffi.call/cls_uint.c: Likewise.
	* testsuite/libffi.call/cls_ulonglong.c: Likewise.
	* testsuite/libffi.call/cls_ushort.c: Likewise.
	* testsuite/libffi.call/problem1.c: Likewise.

	* testsuite/libffi.special/unwindtest.cc: Make ffi_closure
	static.

From-SVN: r73393
2003-11-09 18:05:10 +01:00
Roger Sayle ce4191eed1 loop.c (check_dbra_loop): Try swapping the comparison operands of the loop condition to identify a...
* loop.c (check_dbra_loop): Try swapping the comparison operands
	of the loop condition to identify a suitable induction variable.
	* unroll.c (loop_iterations): Likewise.

From-SVN: r73391
2003-11-09 14:33:20 +00:00
Kaveh R. Ghazi 8b93ca2dd2 sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs sparc64 #cpu and #machine assertions.
* config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
	sparc64 #cpu and #machine assertions.

From-SVN: r73390
2003-11-09 14:05:10 +00:00
Paolo Carlini 7c752655e6 re PR libstdc++/12971 (Resolution of DR 328 [WP] still unimplemented)
2003-11-09  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/12971
	* include/bits/locale_facets.tcc
	(money_put::do_put(..., long double)): Fix conversion
	specification as per DR 328 [WP].
	* testsuite/22_locale/money_put/put/char/12971.cc: Add.
	* testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
	* docs/html/ext/howto.html: Add entry for DR 328.

From-SVN: r73389
2003-11-09 10:47:58 +00:00
Richard Henderson 757dc040ce * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
From-SVN: r73386
2003-11-09 01:27:29 -08:00
Jan Hubicka ec89843ee6 * tree-optimize.c (tree_rest_of_compilation): Fix warning.
From-SVN: r73385
2003-11-09 03:06:21 +00:00