Commit Graph

54974 Commits

Author SHA1 Message Date
Jerry Quinn
3101fa3c06 TODO: Update.
2003-12-20  Jerry Quinn  <jlquinn@optonline.net>

	* docs/doxygen/TODO: Update.
	* include/bits/locale_classes.h (locale, facet, id): Document.
	* include/bits/locale_facets.tcc (has_facet, use_facet): Document.

From-SVN: r74884
2003-12-20 15:51:09 +00:00
Bruce Korb
9c0817543f Keep inclhack.def sortable.
Keep inclhack.def sortable.  The segmentation is based on lines containing only
a slash and an asterisk

From-SVN: r74883
2003-12-20 15:49:22 +00:00
Kazu Hirata
3a976c72d6 class.c: Remove uses of "register" specifier in declarations of arguments and local...
* class.c: Remove uses of "register" specifier in
	declarations of arguments and local variables.
	* decl.c: Likewise.
	* expr.c: Likewise.
	* gjavah.c: Likewise.
	* jcf-dump.c: Likewise.
	* jcf-io.c: Likewise.
	* jcf-parse.c: Likewise.
	* jcf-write.c: Likewise.
	* keyword.h: Likewise.
	* parse.y: Likewise.
	* typeck.c: Likewise.
	* verify.c: Likewise.

From-SVN: r74882
2003-12-20 15:38:28 +00:00
Kazu Hirata
aed8bfdc7e trans.c: Remove uses of "register" specifier in declarations of local variables.
* trans.c: Remove uses of "register" specifier in
	declarations of local variables.

From-SVN: r74880
2003-12-20 15:37:31 +00:00
Mohan Embar
677f99cce5 * gnu/java/nio/SelectorImpl.java
(selectThreadMutex): New field.
	(selectThread): New field.
	(unhandledWakeup): New field.
	(implCloseSelector): Added skeleton code which
	synchronizes as per Sun JRE JavaDoc.
	(keys): Throw ClosedSelectorException if selector
	is closed.
	(selectNow): Added comment that we're faking out
	an immediate select with a one-microsecond-timeout one.
	(select): Use 0 instead of -1 for infinite timeout.
	(implSelect): Changed comment in declaration.
	(select): Added synchronized to method declaration.
	Added synchronization and wakeup support as per Sun
	JRE JavaDoc.
	(selectedKeys): Throw ClosedSelectorException if selector
	is closed.
	(wakeup): Implemented.
	(deregisterCancelledKeys): Synchronize on cancelled key
	set before deregistering.
	(register): Synchronize on key set before registering.
	* java/nio/channels/spi/AbstractSelector.java
	Added import for java.nio.channels.ClosedSelectorException.
	(close): Added synchronized to method declaration.
	(cancelledKeys): Throw ClosedSelectorException if selector
	is closed.
	(cancelKey): Synchronize on cancelled key set before key.

From-SVN: r74879
2003-12-20 15:33:24 +00:00
Michael Koch
59687e1890 Makefile.am (ordinary_java_source_files): Added gnu.java.net.URLParseError.java.
2003-12-20  Michael Koch  <konqueror@gmx.de>

	* Makefile.am (ordinary_java_source_files):
	Added gnu.java.net.URLParseError.java.
	* Makefile.in: Regenerated.

From-SVN: r74878
2003-12-20 12:45:11 +00:00
Guilhem Lavaux
32ab41edd2 URLParseError.java: New file.
2003-12-20  Guilhem Lavaux <guilhem@kaffe.org>

	* gnu/java/net/URLParseError.java: New file.
	* gnu/java/net/protocol/jar/Handler.java
	(parseURL): Throw URLParseError if needed, fix '/' handling.
	* java/net/URL.java (URL): Catch URLParseError and
	transform it into a MalformedURLException.

From-SVN: r74877
2003-12-20 12:28:25 +00:00
Eric Botcazou
1713a69f0a re PR other/7956 (unreadable error on -m64 with --disable-multilib)
PR other/7956
	* genmultilib: New variable disable_multilib.  Set it to 'yes'
	if enable_multilib was set to 'no'.  Emit DISABLE_MULTILIB
	if disable_multilib was set to 'yes'.
	* gcc.c: Include multilib.h before tm.h.
	* config/sparc/sol2-bi.h (LINK_ARCH_SPEC): Emit an error
	message for multiarch options if DISABLE_MULTILIB is set.
	* config/sparc/sol2-gld-bi.h (LINK_ARCH_SPEC): Likewise.

From-SVN: r74875
2003-12-20 07:40:24 +00:00
Eric Botcazou
c96f4f736a re PR c/12085 (Internal compiler error in convert_move, at expr.c:504 with -O3 flag)
PR c/12085
	* c-typeck.c (build_function_call): Issue a warning if a
	function is called through an incompatible prototype and
	replace the call by a trap in this case.

From-SVN: r74874
2003-12-20 07:12:39 +00:00
James E Wilson
bcd11e5e45 install.texi (ia64-*-linux): Document minimum libunwind version number.
* install.texi (ia64-*-linux): Document minimum libunwind version
number.

From-SVN: r74873
2003-12-19 23:05:17 -08:00
Per Bothner
7b330e0818 re PR c/13110 (error message includes extra blank line)
* langhooks.c (lhd_print_error_function):  Fix for PR c/13110.
	Don't do pp_newline; it causes an extra blank line.
	* pretty-print.c (pp_base_flush):  Clear pp_needs_newline.

From-SVN: r74872
2003-12-19 22:32:32 -08:00
Jason Merrill
f3da0ead0c tree.c (get_unwidened): Decide whether to narrow a bitfield reference based on TYPE_SIZE...
* tree.c (get_unwidened): Decide whether to narrow a bitfield
        reference based on TYPE_SIZE, not TYPE_PRECISION.
        * cp/cvt.c (convert_to_void): Don't warn about the RHS of a comma
        being useless if TREE_NO_UNUSED_WARNING is set.

        * stmt.c (parse_output_constraint): Warn about in-out constraint
        that doesn't allow a register.
        (parse_input_constraint): Warn about matching constraint that
        doesn't allow a register.

From-SVN: r74871
2003-12-19 22:21:25 -05:00
Jason Merrill
46eb4b3989 atomicity.h: Remove memory clobbers.
* config/cpu/cris/atomicity.h: Remove memory clobbers.
        * config/cpu/mips/atomicity.h: Likewise.
        * config/cpu/i486/atomicity.h: Remove memory clobbers.
        Split up read-write memory operand.
        * config/cpu/m68k/atomicity.h: Likewise.
        * config/cpu/powerpc/atomicity.h: Make memory I/O explicit.
        * config/cpu/s390/atomicity.h: Likewise.
        * config/cpu/sparc/atomicity.h: Likewise.

From-SVN: r74870
2003-12-19 22:08:42 -05:00
James E Wilson
a06f01ba1e Patch for asm clobber of fp.
* flow.c (mark_set_regs, case PARALLEL): Scan loop forwards.
Add case for ASM_OPERANDS.
* global.c (global_alloc): Set regs_ever_live for regs_asm_clobbered
registers.

From-SVN: r74869
2003-12-19 18:39:43 -08:00
Kazu Hirata
020036b90e expr.c (check_max_integer_computation_mode): Remove.
* expr.c (check_max_integer_computation_mode): Remove.
	* dojump.c (do_jump): Don't use MAX_INTEGER_COMPUTATION_MODE.
	* fold-const.c (fold): Likewise.
	* system.h (MAX_INTEGER_COMPUTATION_MODE): Poison.
	* doc/tm.texi (MAX_INTEGER_COMPUTATION_MODE): Remove.

From-SVN: r74868
2003-12-20 01:40:41 +00:00
Jim Wilson
750e3ed363 Fix typo in name.
From-SVN: r74866
2003-12-19 17:31:23 -08:00
James E Wilson
28f08c8adb Drop test for libunwind 0.95 and earlier.
* configure.in: Delete libunwind_has_eh_support test.
* configure: Regenerate.
* config.gcc (ia64*-*-linux*): Delete reference to t-libunwind-no-eh
and libunwind_has_eh_support check.
* config/t-libunwind-no-eh: Delete.

From-SVN: r74865
2003-12-19 17:30:23 -08:00
GCC Administrator
0d49ce35e3 Daily bump.
From-SVN: r74863
2003-12-20 00:16:06 +00:00
Joseph Myers
be7ac47149 c-format.c (print_char_table): Allow 'I' flag on floating point decimal formats.
* c-format.c (print_char_table): Allow 'I' flag on floating point
	decimal formats.

testsuite:
	* gcc.dg/format/ext-1.c: Allow 'I' flag on floating point decimal
	formats.

From-SVN: r74860
2003-12-20 00:00:39 +00:00
Stuart Hastings
0f901c4c23 i386.c (ix86_expand_call, [...]): Trivial fixes for i386.c on Darwin/x86.
* gcc/config/i386/i386.c (ix86_expand_call, x86_output_mi_thunk):
	Trivial fixes for i386.c on Darwin/x86.

From-SVN: r74859
2003-12-19 23:37:38 +00:00
Fariborz Jahanian
b240b5a250 Test to test -mdynamic-no-pic -O2 -mpowerpc64 on Darwin.
From-SVN: r74858
2003-12-19 23:35:40 +00:00
Fariborz Jahanian
ef342e209f Added code to recognize macho-style lo_sum adrress patterns.
From-SVN: r74857
2003-12-19 23:34:58 +00:00
Fariborz Jahanian
8622e23543 Added TARGET_MACHO to handle lo_sum address recognition.
Reviewed by Geoff.

From-SVN: r74856
2003-12-19 23:32:44 +00:00
Kazu Hirata
926ce8bd97 cvt.c: Remove uses of "register" specifier in declarations of arguments and local...
* cvt.c: Remove uses of "register" specifier in
	declarations of arguments and local variables.
	* decl.c: Likewise.
	* decl2.c: Likewise.
	* expr.c: Likewise.
	* friend.c: Likewise.
	* lex.c: Likewise.
	* name-lookup.c: Likewise.
	* repo.c: Likewise.
	* search.c: Likewise.
	* tree.c: Likewise.
	* typeck.c: Likewise.
	* typeck2.c: Likewise.

From-SVN: r74855
2003-12-19 23:28:11 +00:00
Kazu Hirata
49a2799521 dwarfout.c: Remove uses of "register" specifier in declarations of arguments and local...
* dwarfout.c: Remove uses of "register" specifier in
	declarations of arguments and local variables.
	* gensupport.c: Likewise.
	* local-alloc.c: Likewise.
	* regclass.c: Likewise.

From-SVN: r74854
2003-12-19 23:27:05 +00:00
Carlo Wood
6fe68b3740 * bits/demangle.h
namespace __gnu_cxx::demangler
(session<Allocator>::decode_encoding): Put the postfix
of the return type of (member) functions after the function
instead of after the return type.

From-SVN: r74853
2003-12-19 23:15:24 +00:00
Kelley Cook
128325718c config.guess: Remove.
2003-12-19  Kelley Cook  <kelleycook@wideopenwest.com>

	* config.guess: Remove.

From-SVN: r74852
2003-12-19 22:49:22 +00:00
Joseph Myers
d800897a04 * de.po: Update.
From-SVN: r74851
2003-12-19 21:53:53 +00:00
Ian Lance Taylor
a91d1af087 re PR c++/13447 (Another demangler problem with method cv-qualifiers)
Fix for PR c++/13447:
	* cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
	(d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
	(is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
	D_COMP_QUAL_NAME.
	(is_ctor_or_dtor): Likewise.
	(d_local_name): Use D_COMP_LOCAL_NAME rather than
	D_COMP_QUAL_NAME.
	(d_print_comp) [D_COMP_LOCAL_NAME]: New.
	(d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
	D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
	(d_print_mod_list): Handle D_COMP_LOCAL_NAME.
	* testsuite/demangle-expected: Add two test cases.

	* cp-demangle.c (d_print_function_type): Clear the global modifier
	list when printing the modifiers, not just when printing the
	function parameters.
	* testsuite/demangle-expected: Add two test cases.

From-SVN: r74850
2003-12-19 21:14:35 +00:00
Mark Mitchell
4656bc859d re PR c++/12795 (ICE with attribute __alias__)
PR c++/12795
	* name-lookup.c (pushdecl): Do not treated any functions as being
	"nested" in C++.

	PR c++/12795
	* g++.dg/ext/attrib10.C: New test.

From-SVN: r74849
2003-12-19 21:10:03 +00:00
Jerry Quinn
2dbd0234aa 2003-12-19 Jerry Quinn <jlquinn@optonline.net>
* include/bits/locale_facet.h
        (__ctype_abstract_base,ctype<charT>,ctype<char>,ctype<wchar_t>):
        Document.

From-SVN: r74848
2003-12-19 20:44:18 +00:00
Michael Koch
01da266767 ChannelOutputStream.java: New file.
2003-12-19  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/ChannelOutputStream.java: New file.
	* java/nio/channels/Channels.java
	(newOutputStream): Implemented.
	* Makefile.am (ordinary_java_source_files)
	Added gnu/java/nio/ChannelOutputStream.java.
	* Makefile.in: Regenerated.

From-SVN: r74847
2003-12-19 20:42:00 +00:00
Jason Merrill
60cd3e8bab re PR c++/13371 (infinite loop with packed struct and inlining)
PR c++/13371
        * typeck.c (build_modify_expr): Stabilize lhs if we're narrowing.

From-SVN: r74846
2003-12-19 15:25:22 -05:00
Thomas Fitzsimmons
a0687c1fbc FlowLayout.java (layoutContainer): Let components assume their preferred height.
2003-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* java/awt/FlowLayout.java (layoutContainer): Let components
	assume their preferred height.  Centre components vertically.

From-SVN: r74844
2003-12-19 20:11:56 +00:00
Michael Koch
26392535a7 ChannelInputStream.java: New file.
2003-12-19  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/ChannelInputStream.java: New file.
	* java/nio/channels/Channels.java (newInputStream): Implemented.
	* java/nio/channels/FileChannelImpl.java
	(readImpl): Only put data into buffer if something was read.
	* Makefile.am (ordinary_java_source_files):
	Added gnu/java/nio/ChannelInputStream.java.
	* Makefile.in: Regenerated.

From-SVN: r74842
2003-12-19 19:06:34 +00:00
Paolo Carlini
cc16f8b948 locale_facets.tcc (num_get::_M_extract_int, [...]): According to 22.2.2.1.2, p8-9, first look for decimal_point and thousands_sep.
2003-12-19  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (num_get::_M_extract_int,
	num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
	first look for decimal_point and thousands_sep.
	* testsuite/22_locale/num_get/get/char/11.cc: New.
	* testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.

From-SVN: r74841
2003-12-19 18:14:22 +00:00
Michael Koch
9175d628d0 OutputStreamChannel.java: New file.
2003-12-19  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/OutputStreamChannel.java: New file.
	* java/nio/channels/Channels.java (newChannel): Implemented.
	* Makefile.am (ordinary_java_source_files):
	Added gnu/java/nio/OutputStreamChannel.java.
	* Makefile.in: Regenerated.

From-SVN: r74840
2003-12-19 16:31:59 +00:00
Michael Koch
71646cb777 Makefile.am (ordinary_java_source_files): Added gnu.java.nio.InputStreamChannel.
2003-12-19  Michael Koch  <konqueror@gmx.de>

	* Makefile.am (ordinary_java_source_files):
	Added gnu.java.nio.InputStreamChannel.
	* Makefile.in: Regenerated.

From-SVN: r74839
2003-12-19 15:28:00 +00:00
Michael Koch
b8362a2315 InputStreamChannel.java: New file.
2003-12-19  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/InputStreamChannel.java: New file.
	* java/nio/channels/Channels.java (newChannel): Implemented.

From-SVN: r74838
2003-12-19 15:22:33 +00:00
Andreas Tobler
7dff81909b fibheap.h (fibnode): Use __extension__ for bit-fields mark and degree if __GNUC__.
* include/fibheap.h (fibnode): Use __extension__ for
	bit-fields mark and degree if __GNUC__.

From-SVN: r74836
2003-12-19 14:37:36 +00:00
Jakub Jelinek
e8c89d2970 unwind-ia64.c (ia64_copy_rbs): New function.
* config/ia64/unwind-ia64.c (ia64_copy_rbs): New function.
	(unw_access_gr): Only call ia64_rse_rnat_addr if addr is above
	regstk_top.
	(uw_frame_state_for): Handle locations inside bundles.
	(uw_init_context_1): Initialize context->rnat.
	Set context->regstk_top to lowest rbs address which has nat collection
	in context->rnat.
	(uw_install_context): Fix rnat restoring.
	Restore ar.rsc to previous state.
	* config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR,
	MD_HANDLE_UNWABI): Handle unwinding through SA_ONSTACK frames.

	* gcc.dg/cleanup-10.c: New test.
	* gcc.dg/cleanup-11.c: New test.

From-SVN: r74835
2003-12-19 15:00:53 +01:00
Jakub Jelinek
effed65516 re PR c++/13239 (Assertion does not seem to work correctly anymore)
PR c++/13239
	* builtins.c (expand_builtin_expect_jump): Update
	TREE_VALUE (arglist) if unsave_expr_now langhook
	created a new tree.

	* g++.dg/opt/expect1.C: New test.

From-SVN: r74832
2003-12-19 14:39:05 +01:00
Michael Koch
c05fc0c2e1 2003-12-19 Michael Koch <konqueror@gmx.de>
* java/util/SimpleTimeZone.java
	(setStartRule): Reformated documentation.
	(setEndRule): Reworked documentation.
	(getDSTSavings): Fixed @since tag.
	(setDSTSavings): New method.

From-SVN: r74831
2003-12-19 11:01:05 +00:00
Michael Koch
b2fbbf564f NumberFormat.java: Sorted imports.
2003-12-19  Michael Koch  <konqueror@gmx.de>

	* java/text/NumberFormat.java: Sorted imports.
	(getCurrency): New method.
	(setCurrency): New method.

From-SVN: r74830
2003-12-19 10:00:02 +00:00
Richard Earnshaw
edf7cee87b arm.c (thumb_base_register_rtx_p): Use regno in comparison against FIRST_PSEUDO_REGISTER.
* arm.c (thumb_base_register_rtx_p): Use regno in comparison against
FIRST_PSEUDO_REGISTER.

From-SVN: r74829
2003-12-19 09:59:32 +00:00
Michael Koch
f1af10c25d 2003-12-19 Michael Koch <konqueror@gmx.de>
* java/text/MessageFormat.java
	(MessageFormat): New constructor.

From-SVN: r74828
2003-12-19 09:53:06 +00:00
Michael Koch
177dcc4bad 2003-12-19 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/jar/Handler.java
	(parseURL): New method.
	(toExternalForm): New method.

From-SVN: r74827
2003-12-19 09:48:28 +00:00
Paolo Carlini
1b4513069a locale_facets.tcc (num_get::_M_extract_float): When __found_sci becomes true stop eating thousands separators and the decimal...
2003-12-19  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (num_get::_M_extract_float):
	When __found_sci becomes true stop eating thousands separators
	and the decimal radix separator.
	* testsuite/22_locale/num_get/get/char/9.cc: New.
	* testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.

	* config/locale/generic/c_locale.cc (__convert_to_v): Don't
	check that *__sanity == '\0': parsing may stop earlier, still
	be successful.
	* config/locale/gnu/c_locale.cc: Likewise.
	* testsuite/22_locale/num_get/get/char/10.cc: New.
	* testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
	* testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
	Tweak in one place accordingly.

	* testsuite/22_locale/money_get/get/char/1.cc: Fix typo.
	* testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.

From-SVN: r74826
2003-12-19 09:35:24 +00:00
Hartmut Penner
ed8d88031c * gcc.dg/altivec-varargs-1.c: Enable testcase on ppc linux.
From-SVN: r74823
2003-12-19 07:52:00 +00:00
Hartmut Penner
8395313877 rs6000.c (USE_ALTIVEC_FOR_ARG_P): Don't check for SVR4 ABI.
* gcc/config/rs6000/rs6000.c (USE_ALTIVEC_FOR_ARG_P): Don't check
      for SVR4 ABI.

From-SVN: r74822
2003-12-19 07:50:22 +00:00