Commit Graph

55515 Commits

Author SHA1 Message Date
Stuart Hastings 588f75d040 i386.md: Typos in MMX/SSE immediate shifts.
2004-01-08  Stuart Hastings  <stuart@apple.com>

	* config/i386/i386.md: Typos in MMX/SSE immediate shifts.
	* testsuite/gcc.dg/20020523-2.c (bail_if_no_sse): Moved cpu-ID code...
	testsuite/gcc.dg/i386-cpuid.h (i386_cpuid): ...to here, to share with...
	* testsuite/gcc.dg/i386-sse-6.c: ...this new testcase.

From-SVN: r75566
2004-01-09 01:01:50 +00:00
Alan Modra 3b458e6fa9 * gcc.dg/array-quals-1.c: Accept .data.rel.ro.
From-SVN: r75565
2004-01-09 10:58:29 +10:30
GCC Administrator dd0dddc663 Daily bump.
From-SVN: r75562
2004-01-09 00:16:06 +00:00
Jan Hubicka 6242fcd8e4 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
From-SVN: r75560
2004-01-08 22:57:49 +00:00
Geoffrey Keating ecb62ae79b rs6000.md (cmptf_internal1): Correct branch offset.
* config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
	(UNSPEC_FIX_TRUNC_TF): New constant.
	(movtf_internal): Make splitter active only when insn is active.
	(extenddftf2): Rewrite to properly load zero into low part.
	(extenddftf2_internal): New.
	(extendsftf2): Rewrite.
	(truncdftf2): Correct length.
	(floatditf2): Delete.
	(fix_trunc_helper): New.
	(fix_trunctfdi2): Use fix_trunc_helper.
	(fix_trunctfsi2): Likewise.fix_trunc
	(fix_trunctfsi2_internal): New.

From-SVN: r75559
2004-01-08 22:50:54 +00:00
Geoffrey Keating a29077daa7 rs6000.c (legitimate_lo_sum_address_p): lo_sum addresses are legitimate on Darwin even when flag_pic.
* config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
	addresses are legitimate on Darwin even when flag_pic.
	(rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
	non-offsettable addresses for loads of TFmode constants.

From-SVN: r75558
2004-01-08 21:51:56 +00:00
Fernando Nasser 06fe3d7df2 GtkFileDialogPeer.java (nativeSetFile): New name for the former setFile native method.
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (nativeSetFile):
        New name for the former setFile native method.
        (setFile): New method.
        (setDirectory): Implemented.
        (connectSignals): New native method.
        (setFilenameFilter): Improve comment.
        (getGraphics): Comment.
        (gtkHideFileDialog): New method.
        (gtkDisposeFileDialog): New method.
        (gtkSetFilename): New method.
        * java/awt/Dialog.java (show): Block on modal dialogs, but only
        for FileDialog for now.
        (hide): New method.
        (dispose): New method.
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
        (Java_gnu_java_awt_peer_gtk_GtkFileDialog_create): Replace
        deprecated creation functions.  Make dialog modal.  Add it to the
        window group.
        (Java_gnu_java_awt_peer_gtk_GtkFileDialog_connectSignals): New
        function.
        (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_gtkFileSelectionSetFilename):
        Rename to...
        (Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFile): New
        name.
        (window_closed): New function.
        (ok_clicked): New function.
        (cancel_clicked): New function.

From-SVN: r75557
2004-01-08 21:12:25 +00:00
Frank Ch. Eigler d779bc04df * obvious changelog typo fix
From-SVN: r75553
2004-01-08 16:42:25 +00:00
Kazuhiro Inaoka cb1f9d03d5 (ASM_OUTPUT_ALIGNED_BSS): Actually emit variables in the appropriate bss section.
From-SVN: r75552
2004-01-08 16:19:00 +00:00
Eric Botcazou 53b8fe3ef6 run_acats: Treat 'gnatchop' the same way as 'gnatmake'.
* ada/acats/run_acats: Treat 'gnatchop' the same way
	as 'gnatmake'.  Export GCC_DRIVER.
	* ada/acats/run_all.sh: Add target_gnatchop.  Use
	'host_gnatchop' and 'target_gnatchop' instead of 'gnatshop'.

From-SVN: r75551
2004-01-08 15:19:36 +00:00
Alan Modra 7ddb6568e3 linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure target_flags has MASK_POWERPC64 when -m64.
* config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
	target_flags has MASK_POWERPC64 when -m64.
	* config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
	to 620, 630, power3, power4 and rs64a entries.
	* config/rs6000/rs6000.h (MASK_64BIT): Expand comment.

From-SVN: r75550
2004-01-09 01:43:23 +10:30
Rainer Orth 2e89756b55 ffitest.h (allocate_mmap): Cast MAP_FAILED to void *.
* testsuite/libffi.call/ffitest.h (allocate_mmap): Cast MAP_FAILED
	to void *.

From-SVN: r75548
2004-01-08 12:15:17 +00:00
Giovanni Bajo 663cea5dc0 re PR c++/12573 (ICE (segfault) with Boost.Python)
PR c++/12573
	* g++.dg/template/dependent-expr4.C: New test.

From-SVN: r75547
2004-01-08 11:57:53 +00:00
Giovanni Bajo 3d5ddced56 re PR c++/12573 (ICE (segfault) with Boost.Python)
PR c++/12573
	* pt.c (value_dependent_expression_p): Handle COMPONENT_REFs by
	looking into them recursively. They can be there because of the
	new __offsetof__ extension.

From-SVN: r75546
2004-01-08 11:52:41 +00:00
Michael Koch bafa7fed79 JLayeredPane.java: Revert changes to standard boilerplate, reworked imports.
2004-01-08  Michael Koch  <konqueror@gmx.de>

	* javax/swing/JLayeredPane.java: Revert changes to standard
	boilerplate, reworked imports.

From-SVN: r75543
2004-01-08 09:46:52 +00:00
Richard Sandiford effdb4934f simplify-rtx.c (simplify_immed_subreg): Fix construction of floating-point constants.
* simplify-rtx.c (simplify_immed_subreg): Fix construction of
	floating-point constants.

From-SVN: r75540
2004-01-08 08:21:15 +00:00
Joel Brobecker fbfd77b814 dwarf2out.c (subrange_type_die): Add context_die parameter.
* dwarf2out.c (subrange_type_die): Add context_die parameter.
        Create the subrange_type DIE using the given context DIE.
        (modified_type_die): Update call to subrange_type_die.

From-SVN: r75537
2004-01-08 07:54:13 +00:00
Zack Weinberg 7ce2710348 dwarf2.h, [...]: Add multiple-include guard.
* dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
	Add multiple-include guard.
cp:
	* parser.c (cp_parser_save_member_function_body): Mark the
	definition static.
treelang:
	* parse.y (yyerror): Mark the definition static.

From-SVN: r75536
2004-01-08 07:50:46 +00:00
Hartmut Penner 417b11de06 * gcc.dg/altivec-11.c: New test.
From-SVN: r75535
2004-01-08 07:27:09 +00:00
Hartmut Penner ce1f50b212 rs6000.c (easy_vector_constant): Accept all vector constant loadable by vsplt*.
* gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
      all vector constant loadable by vsplt*.
      (output_vec_const_move): Likewise.

From-SVN: r75534
2004-01-08 07:25:56 +00:00
Tom Tromey 11e584edfe re PR libgcj/13439 (gij VerifyError; works with JDK 1.4)
PR libgcj/13439:
	* verify.cc (state::merge): Copy changed locals out of subroutine
	in NO_STACK case.
	(state::FLAG_CHANGED): New const.
	(state::FLAG_UNUSED): Likewise.
	(state::local_changed): Removed.  Updated all users.
	(state::flags): New field.
	(state::merge): Added jsr_semantics argument, more logic.
	(push_jump_merge): Added jsr_semantics argument.
	(handle_jsr_insn): Set jsr_semantics on push_jump_merge when
	merging through the jsr instruction.

From-SVN: r75533
2004-01-08 05:27:39 +00:00
Tom Tromey ce972ee8f6 MakeDefaultMimeTypes.java: Use \n, not backslash-newline.
* scripts/MakeDefaultMimeTypes.java: Use \n, not
	backslash-newline.

From-SVN: r75532
2004-01-08 05:20:31 +00:00
Graydon Hoare fbea267fef Container.java (LightweightDispatcher): Implement.
2004-01-07  Graydon Hoare  <graydon@redhat.com>

	* java/awt/Container.java (LightweightDispatcher): Implement.
	(visitChild): Reuse graphics object.
	(dispatchEventImpl): Optionally dispatch to lightweight.
	(addNotifyContainerChildren): Build LightweightDispatcher.

From-SVN: r75531
2004-01-08 03:52:52 +00:00
Mark Mitchell 72827ed7fc * g++.dg/abi/vbase10.C: Use -mstructure-size-boundary=8 on ARM.
From-SVN: r75529
2004-01-08 03:32:11 +00:00
Kelley Cook 102d317626 gcc_update (files_and_dependencies): Remove non-existant files.
2004-01-07  Kelley Cook  <kcook@gcc.gnu.org>

	* gcc_update (files_and_dependencies): Remove non-existant files.

From-SVN: r75528
2004-01-08 00:55:02 +00:00
GCC Administrator 146cfc5d2a Daily bump.
From-SVN: r75525
2004-01-08 00:16:10 +00:00
Joseph Myers bca6332881 re PR c/6024 (GCC fails to diagnose mismatch of enum types in prototype/function)
PR c/6024
	* c-typeck.c (comptypes): Only treat enumerated types in the same
	translation unit as compatible with each other when they are the
	same type.
	* doc/extend.texi: Update.

f:
	* com.h (ffecom_gfrt_basictype): Correct return type.

testsuite:
	* gcc.dg/enum-compat-1.c: New test.
	* gcc.c-torture/execute/builtin-types-compatible-p.c: Update.

From-SVN: r75521
2004-01-07 22:24:44 +00:00
Benjamin Kosnik 158960ba7e crossconfig.m4: Add LFS, io bits to linux cross config.
2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>

	* crossconfig.m4: Add LFS, io bits to linux cross config.
	* acconfig.h: Remove obsolete bits, reorder.
	* config.h.in: Regenerate.
	* aclocal.m4: Same.
	* configure: Same.

From-SVN: r75520
2004-01-07 22:17:01 +00:00
Dave Jones 5d2082d147 * approved by rth
2004-01-07  Dave Jones <davej@redhat.com>

	* malloc.c (GC_generic_malloc): Correct initialization typo.
	* mallocx.c (GC_generic_malloca_ignore_off_page): Ditto.

From-SVN: r75518
2004-01-07 21:47:35 +00:00
David Jee 627e4e5fc2 2004-01-07 David Jee <djee@redhat.com>
* java/awt/Container.java
    (update): Clear only the clipped region, instead of clearing the
    entire Container.
    (visitChildren): Visit children in descending order.

From-SVN: r75517
2004-01-07 21:20:01 +00:00
Rainer Orth 4752762407 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
From-SVN: r75516
2004-01-07 20:58:20 +00:00
Benjamin Kosnik e135a038d3 [multiple changes]
2004-01-07  Gawain Bolton  <gp.bolton@computer.org>

	* include/bits/stl_list.h:
	* include/bits/list.tc:
	* src/list.cc:
        Performance enhancements for destructor, push_front(),
        push_back(), pop_front(), pop_back(), sort()
        Eliminated static_casts where possible.
        Moved code out of header files into new src/list.cc
        implementation file for library where possible.
        Remove inheritance from iterator class and create separate
        classes for non-constant and constant iterators.
	* include/bits/stl_tree.h (_Rb_tree class):
	* src/tree.cc:
        Only erase contents in destructor.
        Eliminate unnecessary initialization in assignment operator.
        Optimize for the nominal case by not checking whether
        container is empty in clear().
        Re-order test in _M_insert() to improve performance.
        Move initialization of new node's left & right pointers to
        src/tree.cc to where new node's colour is initialized
        and to reduce the amount of inline code.
        Use  _M_leftmost() and _M_end() to improve readability where
        appropriate.
        Create separate classes for non-constant and constant
        iterators to clarify code, avoid extra template parameters and
        casting away constness.

2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>

	* src/Makefile.am (sources): Add list.cc, tree.cc.
	* src/stl_tree.cc: Move to...
	* src/tree.cc: ...here.
	* src/list.cc: Add.
	* config/linker-map.gnu: Tweaks.
	* testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
	* testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.

	* bits/stl_vector.h: Column wrap comments.

From-SVN: r75515
2004-01-07 20:55:06 +00:00
Joseph Myers 85b58ca564 re PR c/12165 (Typedef'ed variables ignore typedef's const qualifier)
PR c/12165
	* c-decl.c (grokdeclarator): Take type qualifiers of typedefed
	array type from the array element type.

testsuite:
	* gcc.dg/array-quals-1.c, gcc.dg/c90-idem-qual-3.c,
	gcc.dg/c99-idem-qual-3.c: New tests.

From-SVN: r75514
2004-01-07 19:40:03 +00:00
Andreas Tobler 51dc0a0aad re PR libgcj/13011 (gij -jar simple.jar generates: Exception during runtime initialization)
2004-01-07  Andreas Tobler  <a.tobler@schweiz.ch>

	PR libgcj/13011:
	* libjava.jar/simple.jar: Add a working MANIFEST.MF.

From-SVN: r75513
2004-01-07 19:54:00 +01:00
Michael Koch 40f8ee2d8d Array.java: Merged documentation with classpath.
2004-01-07  Michael Koch  <konqueror@gmx.de>

	* java/lang/reflect/Array.java: Merged documentation with classpath.

From-SVN: r75512
2004-01-07 18:46:18 +00:00
Andreas Tobler 6838645e85 jartool.c (make_manifest): Fix off-by-one bug when creating an empty MANIFEST.MF.
2004-01-07  Andreas Tobler  <a.tobler@schweiz.ch>

        * jartool.c (make_manifest): Fix off-by-one bug when creating
        an empty MANIFEST.MF.

From-SVN: r75511
2004-01-07 19:46:04 +01:00
Michael Koch 9b773289f8 2004-01-07 Michael Koch <konqueror@gmx.de>
* java/text/CollationElementIterator.java
	(textIndex): Renamed from index.
	* java/text/CollationKey.java
	(collator): New member.
	(CollationKey): New argument for parent collator.
	(equals): Check for same collator, source string and key array.
	* java/text/RuleBasedCollator.java:
	Reformated.
	(RuleBasedCollator): Don't re-initialize frenchAccents with default
	value.
	(getCollationElementIterator): Rewritten.
	(getCollationKey): Added new argument to CollationKey constructor.

From-SVN: r75510
2004-01-07 18:40:08 +00:00
Loren J. Rittle 677e7ddcee (re-open) PR libstdc++/12658
(re-open) PR libstdc++/12658
	* src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
	(locale::global): Likewise.

From-SVN: r75509
2004-01-07 17:40:45 +00:00
Paolo Carlini d8f5bd5016 9318-in.cc: Remove redundant #include.
2004-01-07  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
	Remove redundant #include.
	* testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
	* testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
	re-enable normal testing.
	* testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
	#include.
	* testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
	* testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
	Likewise.
	* testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
	Likewise.
	* testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
	Likewise.
	* testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
	Likewise.
	* testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
	Likewise.
	* testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
	Likewise.
	* testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
	Likewise.
	* testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
	More properly, #include <locale>.
	* testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
	Remove redundant #include.
	* testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
	* testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
	redundant DejaGnu directive.
	* testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
	redundant #include.

From-SVN: r75508
2004-01-07 17:13:51 +00:00
Michael Koch 26067b8be8 2004-01-07 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/DatagramChannelImpl.java
	(blocking): Removed.
	(DatagramChannelImpl): Call configureBlocking().
	(implConfigureBlocking): Dont initialize blocking.
	* gnu/java/nio/ServerSocketChannelImpl.java
	(blocking): Removed.
	(ServerSocketChannelImpl): Call configureBlocking().
	(implConfigureBlocking): Dont initialize blocking.
	* gnu/java/nio/SocketChannelImpl.java
	(blocking): Removed.
	(SocketChannelImpl): Call configureBlocking().
	(implConfigureBlocking): Dont initialize blocking.
	(connect): Use isBlocking().
	* java/nio/channels/spi/AbstractSelectableChannel.java
	(configureBlocking): Use blockingLock() instead of LOCK.
	Set blocking after successfully called implConfigureBlocking().
	(register): Use blockingLock() instead of LOCK.

From-SVN: r75507
2004-01-07 16:51:49 +00:00
Michael Koch 89e4eb2a34 ServerSocket.java (isBound): Fixed documentation.
2004-01-07  Michael Koch  <konqueror@gmx.de>

	* java/net/ServerSocket.java (isBound): Fixed documentation.

From-SVN: r75506
2004-01-07 16:37:45 +00:00
Sascha Brawer b3db7ef158 DefaultBoundedRangeModel.java: Documented API.
2004-01-07  Sascha Brawer  <brawer@dandelis.ch>

	* javax/swing/DefaultBoundedRangeModel.java: Documented API.
	(changeEvent): Create event object on demand.
	(DefaultBoundedRangeModel, toString, setValue, setExtent,
	setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
	fireStateChanged): Re-written.
	* javax/swing/event/EventListenerList.java: Reformatted, document
	typical usage.
	(toString): Implemented.
	(getListeners): Re-written.
	(remove): Re-written.
	(add): Re-written.
	(NO_LISTENERS): New singleton field.
	(listenerList): Declare as transient; document.
	(serialVersionUID): Document.
	(getListenerCount(Class)): More efficient implementation,
	also accepts null argument.  Improve Javadoc.
	(getListenerCount()): Remove unnecessary cast; docfix.
	* javax/swing/undo/UndoableEditSupport.java:
	Re-format, document.
	(UndoableEditSupport): Set realSource field. Improve documentation.
	(_postEdit): Iterate over cloned listener vector.
	(toString): Don't emit realSource.
	(beginUpdate, endUpdate): Support nested updates.
	(postEdit): Use compound edit if present.

From-SVN: r75505
2004-01-07 14:42:04 +00:00
Alan Modra b48a0c1869 * gcc.dg/winline-7.c: Don't cast void * to int.
From-SVN: r75503
2004-01-07 23:10:42 +10:30
Benjamin Kosnik b61f9bf039 check_performance: Use -pthread.
2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
            Stefan Olsson  <stefan@snon.net>

	* scripts/check_performance: Use -pthread.
	* testsuite/performance/allocator.cc: Tweaks, add list.
	* testsuite/performance/allocator_thread.cc: New.

Co-Authored-By: Stefan Olsson <stefan@snon.net>

From-SVN: r75499
2004-01-07 05:59:19 +00:00
Jerry Quinn 9a01c9b061 locale_facets.h: Document public classes and functions.
2003-01-06  Jerry Quinn  <jlquinn@optonline.net>

	* include/bits/locale_facets.h: Document public classes and
	functions.
	* include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
	Add comment.

From-SVN: r75498
2004-01-07 05:22:37 +00:00
Alan Modra 93c9d1bae6 rs6000.c (rs6000_dbx_register_number): New function.
* config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
	* config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
	* config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
	(DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
	* config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.

From-SVN: r75497
2004-01-07 11:51:28 +10:30
Eric Christopher deae8de664 mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
2004-01-06  Eric Christopher  <echristo@redhat.com>

	* config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
	(DWARF2_DEBUGGING_INFO): Define.
	(PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
	* config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
	* config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
	for irix as.
	(SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
	* config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
	* config/mips/iris5gas.h: Ditto.
	(DBX_DEBUGGING_INFO): Remove.
	(DWARF2_DEBUGGING_INFO): Ditto.
	(MIPS_DEBUGGING_INFO): Ditto.
	(PREFERRED_DEBUGGING_TYPE): Ditto.
	* config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
	(PREFERRED_DEBUGGING_TYPE): Ditto.
	(SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
	* config/mips/elf64.h: Ditto.

From-SVN: r75496
2004-01-07 00:52:32 +00:00
GCC Administrator 470ea489e3 Daily bump.
From-SVN: r75493
2004-01-07 00:16:06 +00:00
Graydon Hoare 257dd2808c Container.java (swapComponents): Add forgotten function, required for JLayeredPane change.
2004-01-06  Graydon Hoare  <graydon@redhat.com>

	* java/awt/Container.java (swapComponents): Add forgotten
	function, required for JLayeredPane change.

From-SVN: r75491
2004-01-07 00:11:51 +00:00
Geoffrey Keating 084f5a3539 t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
* config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
	(TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
	* config/rs6000/darwin-ldouble.c: New.

From-SVN: r75490
2004-01-06 23:49:39 +00:00