1. 15 Dec, 2003 5 commits
    • [multiple changes] · 209db2bf
      2003-12-15  Robert Dewar  <dewar@gnat.com>
      
      	* exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
      	sec stack size.
      
      2003-12-15  Vincent Celier  <celier@gnat.com>
      
      	* gnatchop.adb: (Error_Msg): Do not exit on error for a warning
      	(Gnatchop): Do not set failure status when reporting the number of
      	warnings.
      
      2003-12-15  Doug Rupp  <rupp@gnat.com>
      
      	* s-ctrl.ads: New file.
      
      	* Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
      
      	* Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
      	(GNATBIND_OBJS): Add ada/s-crtl.o.
      
      	* Makefile.in [VMS]: Clean up ifeq rules.
      
      	* gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
      	a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
      	g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
      	s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
      	s-tasdeb.adb: Update copyright.
      	Import System.CRTL.
      	Make minor modifications to use System.CRTL declared functions instead
      	of importing locally.
      
      2003-12-15  GNAT Script  <nobody@gnat.com>
      
      	* Make-lang.in: Makefile automatically updated
      
      From-SVN: r74627
      Arnaud Charlet committed
    • i386.h (__amd64, __amd64__): Remove duplicates. · c1d5acdb
      2003-12-14  David O'Brien  <obrien@FreeBSD.org>
      	* config/i386/i386.h (__amd64, __amd64__): Remove duplicates.
      (committed as obvious)
      
      From-SVN: r74626
      David O'Brien committed
    • re PR rtl-optimization/10312 (optimizer creates wrong code for loop) · 298a037c
      	PR optimization/10312
      	* gcc.c-torture/execute/20031214-1.c: New.
      
      From-SVN: r74625
      Zdenek Dvorak committed
    • re PR c++/10779 (Error cascade for unknown type in function prototype) · 4bb8ca28
      	* c-common.h (c_parse_error): Declare it.
      	* c-common.c (c_parse_error): New function.
      	* c-parse.y (yyerror): Use it.
      
      	* parser.c (struct cp_parser): Add in_template_argument_list_p.
      	(cp_parser_error): Use c_parse_error.
      	(cp_parser_name_lookup_error): New function.
      	(cp_parser_new): Initialize it.
      	(cp_parser_declarator): Add parenthesized_p parameter.
      	(cp_parser_nested_name_specifier_opt): Use
      	cp_parser_name_lookup_error.
      	(cp_parser_parenthesized_expression_list): Improve comments.
      	(cp_parser_condition): Adjust call to cp_parser_declarator.
      	(cp_parser_template_parameter): Adjust call to
      	cp_parser_parameter_declaration.
      	(cp_parser_template_argument_list): Set
      	in_template_argument_list_p.
      	(cp_parser_explicit_instantiation): Adjust call to
      	cp_parser_declarator.
      	(cp_parser_simple_type_specifier): Remove unncessary code.
      	(cp_parser_using_declaration): Use cp_parser_name_lookup_error.
      	(cp_parser_init_declarator): Handle member function definitions.
      	(cp_parser_direct_declarator): Adjust call to
      	cp_parser_declarator.
      	(cp_parser_type_id): Adjust call to cp_parser_declarator.
      	(cp_parser_parameter_declaration_list): Avoid backtracking where
      	possible.
      	(cp_parser_parameter_declaration): Add parenthesized_p parameter.
      	(cp_parser_function_definition): Remove.
      	(cp_parser_member_declaration): Do not backtrack to look for
      	function definitions.
      	(cp_parser_exception_declaration): Adjust call to
      	cp_parser_declarator.
      	(cp_parser_single_declaration): Handle function definitions via
      	cp_parser_init_declarator.
      	(cp_parser_save_member_function_body): New function.
      
      	PR c++/10779
      	PR c++/12160
      	* g++.dg/parse/error3.C: New test.
      	* g++.dg/parse/error4.C: Likewise.
      	* g++.dg/abi/mangle4.C: Tweak error messages.
      	* g++.dg/lookup/using5.C: Likewise.
      	* g++.dg/other/error2.C: Likewise.
      	* g++.dg/parse/typename5.C: Likewise.
      	* g++.dg/parse/undefined1.C: Likewise.
      	* g++.dg/template/arg2.C: Likewise.
      	* g++.dg/template/ttp3.C: Likewise.
      	* g++.dg/template/type1.C: Likewise.
      	* g++.old-deja/g++.other/crash32.C: Likewise.
      	* g++.old-djea/g++.pt/defarg8.C: Likewise.
      
      From-SVN: r74624
      Mark Mitchell committed
    • Daily bump. · 69f36495
      From-SVN: r74621
      GCC Administrator committed
  2. 14 Dec, 2003 3 commits
    • re PR c++/13106 (Wrong warning "no return statement ..." for void template function) · c1b83cc9
      	PR c++/13106
      	* decl.c (finish_function): Check if return type is dependent before
      	issuing no return statement warning.
      
      	* g++.dg/warn/noreturn-3.C: New test.
      
      From-SVN: r74616
      Kriang Lerdsuwanakij committed
    • re PR target/13054 (compile/980310-3.f: insn does not satisfy its constraints) · d8f95bed
      	PR target/13054
      	* pa-protos.h (indexed_memory_operand, borx_reg_operand,
      	move_dest_operand, move_src_operand): New protypes.
      	(basereg_operand, move_operand, reg_or_nonsymb_mem_operand): Deleted.
      	* pa.c (copy_reg_pointer, indexed_memory_operand, move_dest_operand,
      	move_src_operand): New functions.
      	(basereg_operand, reg_or_nonsymb_mem_operand, move_operand): Delete.
      	(reg_or_0_or_nonsymb_mem_operand): Return false for unscaled indexed
      	address until cse is not expected on targets with non-equivalent
      	space registers.
      	(hppa_legitimize_address): Canonicalize unscaled indexed addresses
      	on targets non-equivalent space registers.
      	(emit_move_sequence): Break out indexed addresses from destination
      	operand.  Similarly, break out unscaled indexed addresses from
      	source operand on targets with non-equivalent space registers.  Fix
      	REG_POINTER flag when possible.  Mark register pointer when creating
      	new pointers.
      	(print_operand): Handle unscaled index addresses.
      	* pa.h (IS_INDEX_ADDR_P, IS_LO_SUM_DLT_ADDR_P): New macro subroutines
      	for EXTRA_CONSTRAINT.
      	(EXTRA_CONSTRAINT): Rework to make more readable.
      	(MODE_OK_FOR_SCALED_INDEXING_P, MODE_OK_FOR_UNSCALED_INDEXING_P): New
      	subroutines for GO_IF_LEGITIMATE_ADDRESS.
      	(GO_IF_LEGITIMATE_ADDRESS): Rework using new subroutines.  Allow scaled
      	and unscaled addresses.  Canonicalize unscaled indexed addresses on
      	targets with non-equivalent space registers.  Document issues in
      	handling indexed address modes on PA-RISC.
      	(PREDICATE_CODES): Update for new and deleted predicates.
      	* pa.md (move_dest_operand, move_src_operand, indexed_memory_operand):
      	Use new predicates in move patterns.
      	Add peephole2 patterns to optimize floating point stores.  Fix
      	constrain preferencing in move patterns.  Delete patterns for handling
      	unscaled indexed memory loads.  Add missing load and store with
      	base-register modification patterns.  Correct SFmode floating point
      	store pattern.  Add missing zero extension loads.
      
      From-SVN: r74614
      John David Anglin committed
    • Daily bump. · 9ec31db3
      From-SVN: r74609
      GCC Administrator committed
  3. 13 Dec, 2003 8 commits
    • vxlib.c: Fix comment typos. · 839a4992
      	* config/vxlib.c: Fix comment typos.
      	* config/alpha/alpha.c: Likewise.
      	* config/arm/arm.c: Likewise.
      	* config/arm/arm.md: Likewise.
      	* config/c4x/c4x.c: Likewise.
      	* config/c4x/c4x.md: Likewise.
      	* config/cris/cris.h: Likewise.
      	* config/cris/cris.md: Likewise.
      	* config/fr30/fr30.c: Likewise.
      	* config/fr30/fr30.h: Likewise.
      	* config/fr30/fr30.md: Likewise.
      	* config/frv/frv.c: Likewise.
      	* config/frv/frv.md: Likewise.
      	* config/frv/frvbegin.c: Likewise.
      	* config/i386/athlon.md: Likewise.
      	* config/i386/i386.c: Likewise.
      	* config/i386/i386.md: Likewise.
      	* config/i386/sco5.h: Likewise.
      	* config/ia64/ia64.md: Likewise.
      	* config/ip2k/ip2k.c: Likewise.
      	* config/ip2k/ip2k.md: Likewise.
      	* config/m68hc11/m68hc11.h: Likewise.
      	* config/m68k/m68k.h: Likewise.
      	* config/mips/mips.c: Likewise.
      	* config/rs6000/rs6000.c: Likewise.
      	* config/s390/s390.md: Likewise.
      	* config/sh/sh.h: Likewise.
      	* config/sparc/sparc.md: Likewise.
      	* config/v850/v850.c: Likewise.
      	* config/v850/v850.h: Likewise.
      	* config/v850/v850.md: Likewise.
      	* config/xtensa/xtensa.c: Likewise.
      
      From-SVN: r74596
      Kazu Hirata committed
    • ChangeLog: Fix typos. · da1d7781
      	* ChangeLog: Fix typos.
      	* ChangeLog.1: Likewise.
      	* ChangeLog.2: Likewise.
      	* call.c: Fix comment typos.
      	* class.c: Likewise.
      	* cxx-pretty-print.c: Likewise.
      	* mangle.c: Likewise.
      	* parser.c: Likewise.
      	* pt.c: Likewise.
      	* tree.c: Likewise.
      
      From-SVN: r74595
      Kazu Hirata committed
    • c-typeck.c: Fix comment typos. · ba228239
      	* c-typeck.c: Fix comment typos.
      	* calls.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* cgraph.h: Likewise.
      	* dwarfout.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* explow.c: Likewise.
      	* expr.c: Likewise.
      	* flow.c: Likewise.
      	* function.c: Likewise.
      	* gcc.c: Likewise.
      	* ggc-zone.c: Likewise.
      	* ifcvt.c: Likewise.
      	* local-alloc.c: Likewise.
      	* predict.c: Likewise.
      	* pretty-print.c: Likewise.
      	* profile.c: Likewise.
      	* ra-colorize.c: Likewise.
      	* sched-vis.c: Likewise.
      	* stor-layout.c: Likewise.
      
      From-SVN: r74594
      Kazu Hirata committed
    • gtkpeer.h: Extend NSA set of macros to handle a second native state table --... · 7ecd4576
      2003-12-12  Fernando Nasser  <fnasser@redhat.com>
      
      	* jni/gtk-peer/gtkpeer.h: Extend NSA set of macros to handle a second
      	native state table -- native_global_ref_table.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c: Define
      	native_global_ref_table pointer.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkGenericPeer_dispose): Make sure JNI
      	global reference is deleted and memory allocated for pointer freed.
      	(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectSignals): Use saved
      	JNI global reference instead of JNI local reference.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
      	(pre_event_handler): Remove compilation warning.
      	(connect_awt_hook): Use saved JNI global reference instead of creating
      	a new one.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkButtonPeer_create): Save JNI global
      	reference to the Java object.
      	(Java_gnu_java_awt_peer_gtk_GtkButtonPeer_connectSignals): Remove
      	unused variable declaration and add comment.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkCanvasPeer_create): Save JNI global
      	reference to the Java object.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer_create): Ditto.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_nativeCreate): Ditto.
      	(Java_gnu_java_awt_peer_gtk_GtkCheckboxPeer_connectSignals): Use saved
      	JNI global reference instead of JNI local reference.
      	(item_toggled): Add debug statement.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkChoicePeer_create): Save JNI global
      	reference to the Java object.
      	(connect_choice_item_selectable_hook): Use saved JNI global references
      	instead of JNI local reference.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer_create): Save JNI
      	global reference to the Java object.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_create): Save JNI global
      	reference to the Java object.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkLabelPeer_create): Ditto.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuBarPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkMenuBarPeer_create): Ditto.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkMenuPeer_create): Ditto.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkScrollPanePeer_create): Ditto.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkTextAreaPeer_create): Ditto.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkTextFieldPeer_create): Ditto.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkListPeer_create): Ditto.
      	(Java_gnu_java_awt_peer_gtk_GtkListPeer_connectSignals): Use saved
      	JNI global reference instead of JNI local reference.
      	(item_selected): Add debug statement.
      	(item_unselected): Add debug statement.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkMenuItemPeer_create): Save JNI global
      	reference to the Java object.
      	Connect "activate" signal handler using global JNI reference.
      	(connect_activate_hook): Removed in favor of inline code.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkPanelPeer_create): Save JNI global
      	reference to the Java object.
      	(Java_gnu_java_awt_peer_gtk_GtkPanelPeer_connectSignals): Use saved
      	JNI global reference instead of JNI local reference.  Add FIXME comment.
      	(Java_gnu_java_awt_peer_gtk_GtkPanelPeer_gtkPanelNew): Save JNI global
      	reference to the Java object.  Add FIXME comment.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkScrollbarPeer_create): Save JNI global
      	reference to the Java object.
      	(Java_gnu_java_awt_peer_gtk_GtkScrollbarPeer_connectSignals): Use saved
      	JNI global reference instead of JNI local reference.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkTextComponentPeer_connectSignals): Use
      	saved JNI global reference instead of JNI local reference.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
      	(Java_gnu_java_awt_peer_gtk_GtkWindowPeer_create): Save JNI global
      	reference to the Java object.
      	(Java_gnu_java_awt_peer_gtk_GtkWindowPeer_connectSignals): Use saved
      	JNI global reference instead of JNI local reference.
      
      From-SVN: r74593
      Fernando Nasser committed
    • ggc-zone.c (struct alloc_zone): Don't pre-declare, it already comes in with ggc.h. · b944d187
      	* ggc-zone.c (struct alloc_zone): Don't pre-declare, it already
      	comes in with ggc.h.  Add a new bool field `dead'.
      	(destroy_ggc_zone): Don't destroy a zone at once.  Instead, only
      	set the `dead' flag for the dead zone.  Wrap a sanity check in
      	ENABLE_CHECKING.
      	(ggc_collect_1): Always mark and sweep if a zone has the `dead'
      	flag set.
      	(ggc_collect): Free dead zones after collecting.
      
      From-SVN: r74592
      Steven Bosscher committed
    • coverage.c (get_coverage_counts): Use inform instead of warning about missing profile. · bbfff586
      
      	* coverage.c (get_coverage_counts):  Use inform instead of warning
      	about missing profile.
      
      From-SVN: r74591
      Jan Hubicka committed
    • ggc-zone.c: Follow spelling conventions. · 5c425df5
      	* ggc-zone.c: Follow spelling conventions.
      	* config/rs6000/rs6000.c: Likewise.
      	* pt.c: Likewise.
      	* semantics.c: Likewise.
      	* objc/objc-act.c: Likewise.
      
      From-SVN: r74590
      Kazu Hirata committed
    • Daily bump. · 7764b8fa
      From-SVN: r74588
      GCC Administrator committed
  4. 12 Dec, 2003 14 commits
  5. 11 Dec, 2003 10 commits
    • basic_string.tcc (reserve): Allow shrink-to-fit. · cbc67955
      2003-12-11  Neil Ferguson  <nferguso@eso.org>
      	    Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/basic_string.tcc (reserve): Allow shrink-to-fit.
      	* testsuite/21_strings/basic_string/capacity/1.cc: Tweak.
      	* testsuite/21_strings/basic_string/capacity/char/1.cc: Ditto.
      	* testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Ditto.
      
      Co-Authored-By: Paolo Carlini <pcarlini@suse.de>
      
      From-SVN: r74551
      Neil Ferguson committed
    • libunwind related patch from David Mosberger · fe16ab7e
      libunwind related patch from David Mosberger
      * unwind-libunwind.c (_Unwind_SetGR): Clear the NaT bit as
      required by C++ ABI for Itanium.
      * config/t-libunwind (LIB2ADDEH): Remove unwind-libunwind.c.
      * config/t-libunwind-no-eh: New file.
      * configure.in: Check libunwind for _Unwind_Resume() and if it's
      present, set libunwind_has_eh_support to "yes".
      * configure: Regenerate.
      * config.gcc (ia64*-*-linux*): If $libunwind_has_eh_support is
      set to yes, use t-libunwind, otherwise, use t-libunwind-no-eh.
      
      From-SVN: r74548
      David Mosberger committed
    • mips.c (mips_global_pointer): Force functions with a nonlocal goto to set up $gp. · 7ac88634
      	* config/mips/mips.c (mips_global_pointer): Force functions with
      	a nonlocal goto to set up $gp.
      
      From-SVN: r74547
      Richard Sandiford committed
    • Fix for problem with unnecessary volatile mems. · 1ec7a831
      PR target/13132
      * function.c (gen_mem_addressof): When no decl, explicitly clear flag
      bits.
      
      From-SVN: r74543
      James E Wilson committed
    • [multiple changes] · a9f4e3d2
      2003-12-11  Ed Falis  <falis@gnat.com>
      
      	* 5zinit.adb: Clean up.
      
      	* 5zintman.adb (Notify_Exception): replaced case statement with a call
      	to __gnat_map_signal, imported from init.c to support
      	signal -> exception mappings that depend on the vxWorks version.
      
      	* init.c:
      	Created and exported __gnat_map_signal to support signal -> exception
      	mapping that is dependent on the VxWorks version.
      	Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
      
      2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
      
      	* 5wosinte.ads: Link with -mthreads switch.
      
      2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
      
      	* init.c (__gnat_install_handler [NetBSD]): Set
      	__gnat_handler_installed, as done on all other platforms.
      	Remove duplicated code.
      
      2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
      
      	* Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
      
      2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
      
      	* sinfo.ads: Fix inconsistent example code in comment.
      
      2003-12-11  Robert Dewar  <dewar@gnat.com>
      
      	* a-tiinau.adb: Add a couple of comments
      
      	* sem_ch3.adb: Minor reformatting
      
      	* sem_prag.adb:
      	Fix bad prototype of Same_Base_Type in body (code reading cleanup)
      	Minor reformatting throughout
      
      2003-12-11  Ed Schonberg  <schonberg@gnat.com>
      
      	* exp_ch7.adb (Establish_Transient_Scope): If the call is within the
      	bounds of a loop, create a separate block in order to generate proper
      	cleanup actions to prevent memory leaks.
      
      	* sem_res.adb (Resolve_Call): After a call to
      	Establish_Transient_Scope, the call may be rewritten and relocated, in
      	which case no further processing is needed.
      
      	* sem_util.adb: (Wrong_Type): Refine previous fix.
      	 Fixes ACATS regressions.
      
      	PR ada/13353
      
      	* sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
      	be inlined.
      
      From-SVN: r74541
      Arnaud Charlet committed
    • Format.java (serialVersionUID): Fixed value. · 226c4112
      2003-12-11  Michael Koch  <konqueror@gmx.de>
      
      	* java/text/Format.java (serialVersionUID): Fixed value.
      
      From-SVN: r74540
      Michael Koch committed
    • EventDirContext.java: Jalopied. · 7b9b3ed3
      2003-12-11  Michael Koch  <konqueror@gmx.de>
      
      	* javax/naming/event/EventDirContext.java: Jalopied.
      	(addNamingListener): Fixed typo in method name.
      
      From-SVN: r74539
      Michael Koch committed
    • mangle.c (conv_type_names): Holds IDENTIFIER_NODEs only. · c1eb7f5c
      	* mangle.c (conv_type_names): Holds IDENTIFIER_NODEs only.
      	(hash_type): Use TYPE_UID of the identifier's type.
      	(compare_type): Adjust.
      	(mangle_conv_op_name_for_type): Store identifier nodes only, use
      	TYPE_UID has hash value.
      
      From-SVN: r74538
      Nathan Sidwell committed
    • * gnu/java/nio/SocketChannelImpl.java · c1fb3625
      	(write): Removed diagnostic trace.
      	* gnu/java/nio/natSelectorImplPosix.cc: Added
      	includes for java.lang.Thread and java.io.InterruptedIOException.
      	(helper_put_filedescriptors): Don't put invalid file descriptors
      	in select set.
      	(helper_get_filedescriptors): Clear invalid file descriptors
      	from select set.
      	(helper_reset): New method for clearing our file descriptor
      	array.
      	(implSelect): Correctly calculate timeout if specified and
      	legal.
      	Intercept and deal with any java.io.InterruptedIOException
      	thrown by _Jv_select().
      
      From-SVN: r74537
      Mohan Embar committed
    • gnu_java_awt_peer_gtk_GtkEvents.c (awt_event_handler): Most coded moved to… · 834b1209
      gnu_java_awt_peer_gtk_GtkEvents.c (awt_event_handler): Most coded moved to pre_event_handler, with the modifications mentioned below.
      
      2003-12-08  Fernando Nasser  <fnasser@redhat.com>
      
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (awt_event_handler):
              Most coded moved to pre_event_handler, with the modifications
              mentioned below.
              (pre_event_handler): New function.  Called on the Gtk "event" signal.
              Do not retrieve the jobject from the window property as it is already
              available as user data in the signal.
              Do not try and find the grab widget as it is already done by Gtk at
              this point.
              Do not search for Window ancestor as Gtk already sends the signal to it.        Do not meddle with the activation state of peer widgets on each
              key press or release.
              Add CList to the special handling when looking for the focused widget.
              * jni/gtk-peer/gtkpeer.h: Add declaration for pre_event_handler.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c (connectJObject):
              New function.
              (connectSignals): New function.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c (connectHooks):
              Rename to...
              (connectSignals): New name.  Get rid of NewGlobalRef call.
              Use g_signal_connect instead of deprecated gtk_signal_connect.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
              (connect_choice_item_selectable_hook): Use g_signal_connect instead of
              deprecated gtk_signal_connect.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuItemPeer.c
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c
              (Java_gnu_java_awt_peer_gtk_GtkClipboard_initNativeState): Ditto.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectHooks): Remove
              function.
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectJObject): New
              function.
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectSignals): New
              function.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectHooks): Remove
              function.
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectJObject): New
              function.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectHooks): Remove
              function.
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectJObject): New
              function.
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectSignals): New
              function.
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_old_create): Remove dead
              code.
              (item_select): Remove indirection.
              (item_unselect): Ditto.
              (connect_selectable_hook): Folded into connectSignals.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkPanelPeer.c
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectHooks): Remove
              function.
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectJObject): New
              function.
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectSignals): New
              function.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c: Ditto.
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
              * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectHooks): Remove
              function.
              (Java_gnu_java_awt_peer_gtk_GtkComponentPeer_connectSignals): New
              function.
              * gnu/java/awt/peer/gtk/GtkComponentPeer.java: Declare  and call
              connectJObject and connectSignals instead of connectHooks.
              * gnu/java/awt/peer/gtk/GtkButtonPeer.java: Declare connectJObject and
              connectSignals.
              * gnu/java/awt/peer/gtk/GtkCheckboxPeer.java: Declare connectSignals
              and not connectHooks.
              * gnu/java/awt/peer/gtk/GtkTextComponentPeer.java: Ditto.
              * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java: Declare connectJObject
              and not connectHooks.
              * gnu/java/awt/peer/gtk/GtkListPeer.java: Declare connectJObject and
              connectSignals instead of connectHooks.
              * gnu/java/awt/peer/gtk/GtkPanelPeer.java: Ditto.
              * gnu/java/awt/peer/gtk/GtkScrollbarPeer.java: Ditto.
              * gnu/java/awt/peer/gtk/GtkWindowPeer.java: Ditto.
      
      From-SVN: r74536
      Fernando Nasser committed