Commit Graph

40408 Commits

Author SHA1 Message Date
Alexandre Oliva a4f76ef9f3 sh.md (sym_label2reg): Make sure all CONSTs have modes.
* config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
modes.

From-SVN: r49192
2002-01-24 20:52:10 +00:00
Benjamin Kosnik b6a95741e8 num_put_members_wchar_t.cc (test03): Use _GLIBCPP_HAVE_SETENV.
2002-01-24   Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/num_put_members_wchar_t.cc (test03): Use
	_GLIBCPP_HAVE_SETENV.
	* testsuite/22_locale/codecvt_members_wchar_t_char.cc (test02): Same.
	* testsuite/22_locale/collate_members_char.cc (test02): Same.
	* testsuite/22_locale/ctype_members_char.cc (test03): Same.
	* testsuite/22_locale/ctype_members_wchar_t.cc (test03): Same.
	* testsuite/22_locale/messages_members_char.cc (test02): Same.
	* testsuite/22_locale/moneypunct_members_char.cc (test02): Same.
	* testsuite/22_locale/moneypunct_members_wchar_t.cc (test02): Same.
	* testsuite/22_locale/money_put_members_char.cc (test04): Same.
	* testsuite/22_locale/money_put_members_wchar_t.cc (test04): Same.
	* testsuite/22_locale/num_get_members_char.cc (test03): Same.
	* testsuite/22_locale/num_get_members_wchar_t.cc (test03): Same.
	* testsuite/22_locale/numpunct_members_char.cc (test02): Same.
	* testsuite/22_locale/numpunct_members_wchar_t.cc (test02): Same.
	* testsuite/22_locale/time_get_members_char.cc (test07): Same.
	* testsuite/22_locale/time_get_members_wchar_t.cc (test07): Same.
	* testsuite/22_locale/time_put_members_char.cc (test03): Same.
	* testsuite/22_locale/time_put_members_wchar_t.cc (test03): Same.
	* testsuite/22_locale/num_put_members_char.cc (test03): Same.
	* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Check for setenv.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* config.h.in: Regenerate.

From-SVN: r49191
2002-01-24 20:46:34 +00:00
Per Bothner 054117f98d Improved ChangeLog entry for verify.cc (is_assignable_from_slow).
From-SVN: r49190
2002-01-24 12:10:17 -08:00
Per Bothner 7ac20fe4e7 verify.cc (is_assignable_from_slow): If source is an interface, we must also check the superclass.
* verify.cc (is_assignable_from_slow): If source is an interface,
	we must also check the superclass.

From-SVN: r49189
2002-01-24 12:02:21 -08:00
Kazu Hirata 9bf25b0910 h8300.c (print_operand): Remove support for operand character 'A'.
* config/h8300/h8300.c (print_operand): Remove support for
	operand character 'A'.
	* config/h8300/h8300.md (three anonymous patterns): Replace
	operand character 'A' with either 'T' or 'S'.

From-SVN: r49188
2002-01-24 19:48:53 +00:00
Kazu Hirata 974af6a594 h8300.c (print_operand): Remove support for operand character 'U'.
* config/h8300/h8300.c (print_operand): Remove support for
	operand character 'U'.

From-SVN: r49187
2002-01-24 19:42:39 +00:00
Andris Pavenis 7a5bb7b848 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
From-SVN: r49186
2002-01-24 13:05:40 -05:00
Tom Tromey d6c8012e6f * gnu/awt/xlib/XToolkit.java (getPrintJob): New stub method.
From-SVN: r49184
2002-01-24 16:44:37 +00:00
Nick Clifton 92a4639e2e Allow SImode values to be assigned to the stack pointer.
From-SVN: r49183
2002-01-24 16:27:51 +00:00
Hartmut Penner 467cb2da56 emit_rtl.c (gen_lowpart_common): Conversion from const_int to const_double needs to be done right for big-endian...
* emit_rtl.c (gen_lowpart_common): Conversion from const_int
        to const_double needs to be done right for big-endian systems.

From-SVN: r49180
2002-01-24 12:30:37 +00:00
Jason Merrill 3b6cb9200d sparc.md (call-jump peepholes): Pass the right insn to can_throw_internal.
* config/sparc/sparc.md (call-jump peepholes): Pass the right insn
        to can_throw_internal.

From-SVN: r49177
2002-01-24 05:42:55 -05:00
GCC Administrator 9dcb193624 Daily bump.
From-SVN: r49175
2002-01-24 08:16:43 +00:00
Richard Henderson f3077311c4 fold-const.c (fold): Change UINT_MAX test to check vs precision rather than TYPE_MAX_VALUE.
* fold-const.c (fold): Change UINT_MAX test to check vs precision
        rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.

From-SVN: r49174
2002-01-23 23:36:18 -08:00
Loren J. Rittle ddd6960743 pthread1.cc: New test.
* testsuite/thread/pthread1.cc: New test.
	* testsuite/thread/pthread2.cc: New test adapted from libstdc++/5347.
	* testsuite/thread/pthread3.cc: Likewise.
	* testsuite/thread/pthread4.cc: New test adapted from
	http://gcc.gnu.org/ml/gcc-bugs/2002-01/msg00679.html
	* testsuite/thread/pthread5.cc: New test adapted from libstdc++/5464.
	* testsuite/thread/pthread6.cc: New test adapted from libstdc++/5444.

From-SVN: r49173
2002-01-24 07:35:11 +00:00
Tom Tromey 619e2b8493 BorderLayout.java (addLayoutComponent): Added missing `else'.
* java/awt/BorderLayout.java (addLayoutComponent): Added missing
	`else'.

From-SVN: r49172
2002-01-24 06:39:29 +00:00
Tom Tromey 92bc8733c6 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (awt_java_source_files): Added new files.
	* java/awt/Toolkit.java: Merged with Classpath.
	* java/awt/PrintGraphics.java: New file from Classpath.
	* java/awt/PrintJob.java: New file from Classpath.
	* java/awt/datatransfer/Clipboard.java: New file from Classpath.
	* java/awt/datatransfer/ClipboardOwner.java: New file from
	Classpath.
	* java/awt/datatransfer/DataFlavor.java: New file from Classpath.
	* java/awt/datatransfer/FlavorMap.java: New file from Classpath.
	* java/awt/datatransfer/MimeTypeParseException.java: New file from
	Classpath.
	* java/awt/datatransfer/StringSelection.java: New file from
	Classpath.
	* java/awt/datatransfer/SystemFlavorMap.java: New file from
	Classpath.
	* java/awt/datatransfer/Transferable.java: New file from
	Classpath.
	* java/awt/datatransfer/UnsupportedFlavorException.java: New file
	from Classpath.

From-SVN: r49171
2002-01-24 06:31:02 +00:00
Alexandre Oliva e1d7127573 sh.md (symGOT_load, [...]): New expands.
* config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
(symGOT2reg): Use them, then set as GOT value as unchanging.
(symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
as a temporary, if possible.
(symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).

From-SVN: r49170
2002-01-24 06:16:58 +00:00
Tom Tromey f7b54dea72 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (awt_java_source_files): Added new files.
	* java/awt/image/AreaAveragingScaleFilter.java: New file from
	Classpath.
	* java/awt/image/CropImageFilter.java: New file from Classpath.
	* java/awt/image/FilteredImageSource.java: New file from
	Classpath.
	* java/awt/image/ImageFilter.java: New file from Classpath.
	* java/awt/image/MemoryImageSource.java: New file from Classpath.
	* java/awt/image/PixelGrabber.java: New file from Classpath.
	* java/awt/image/RGBImageFilter.java: New file from Classpath.
	* java/awt/image/ReplicateScaleFilter.java: New file from
	Classpath.
	* java/awt/image/ImageProducer.java: Replaced with Classpath
	version.
	* java/awt/image/ImageObserver.java: Replaced with Classpath
	version.
	* java/awt/image/ImageConsumer.java: Replaced with Classpath
	version.
	* java/awt/GridBagConstraints.java (clone): Catch
	CloneNotSupportedException.

From-SVN: r49169
2002-01-24 05:51:34 +00:00
Kazu Hirata dc271dbeb9 h8300.md: Fix xorqi and xorqi so that they will accept to accept 0x80 as operands[2].
* config/h8300/h8300.md: Fix xorqi and xorqi so that they will
	accept to accept 0x80 as operands[2].

From-SVN: r49168
2002-01-24 05:02:35 +00:00
Alexandre Oliva 1a9017f94e * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
From-SVN: r49167
2002-01-24 04:42:12 +00:00
Richard Henderson 6932f033b5 alpha.md (call_value_osf_1_er peepholes): Fix typo.
* config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.

        * gcc.dg/inline-2.c: New.

        * lib/scanasm.exp (scan-assembler): Remove optional vmessage arg.
        Add optional target arg.  Check number of arguments.
        (scan-assembler-not, scan-assembler-dem): Likewise.
        (scan-assembler-dem-not): Likewise.

From-SVN: r49166
2002-01-23 20:01:11 -08:00
Richard Henderson a99e47a50b * gcc.dg/20020122-4.c: Use multiple outputs on the asm.
From-SVN: r49165
2002-01-23 19:34:14 -08:00
Zack Weinberg d5714a5d65 crash8.C: Don't expect an error on line 12.
* g++.old-deja/g++.brendan/crash8.C: Don't expect an error on
	line 12.
	* g++.old-deja/g++.brendan/parse3.C,
	g++.old-deja/g++.other/crash26.C,
	g++.old-deja/g++.other/crash28.C,
	g++.old-deja/g++.other/crash29.C,
	g++.old-deja/g++.other/crash30.C,
	g++.old-deja/g++.other/crash35.C: Remove XFAILs where appropriate.

From-SVN: r49164
2002-01-24 03:31:34 +00:00
Zack Weinberg 7437519c9e Make-lang.in (parse.c): Adjust expected number of shift-reduce conflicts.
* Make-lang.in (parse.c): Adjust expected number of
	shift-reduce conflicts.
	(decl.o): Depend on diagnostic.h.
	* decl.c: Include diagnostic.h.
	(grokdeclarator): Check for null pointer.
	(finish_function): Don't abort when
	current_binding_level->parm_flag != 1, if errors have
	occurred; throw away the statement tree and extra binding
	levels, and continue.
	* lex.c (note_list_got_semicolon): Check for null pointer.
	* method.c (hack_identifier): Just return error_mark_node if
	value is error_mark_node.
	* parse.y (primary: TYPEID(type_id)): No need to use
	TYPE_MAIN_VARIANT here.
	(handler_seq): Accept an empty list of catch clauses and
	generate a fake handler block to avoid later crashes.
	(ansi_raise_identifier): Accept the error token too.
	* semantics.c (begin_class_definition,
	finish_class_definition): Check for error_mark_node.

From-SVN: r49163
2002-01-24 03:27:30 +00:00
Aldy Hernandez 709619d916 c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
2002-01-16  Aldy Hernandez  <aldyh@redhat.com>

        * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
        (parmlist_or_identifiers_1): Verify that only a parmlist follows
        an attribute.

        * gcc.dg/20020115-1.c: New.

From-SVN: r49161
2002-01-24 01:32:12 +00:00
Richard Henderson acae253ec1 re PR libstdc++/5198 (3.0.3 linux x m68k build fail: invalid opcodes in c++locale.cc)
PR libstdc++/5198
        * config/cpu/m68k/bits/atomicity.h (__exchange_and_add): Only use
        CAS on the cpu variants that support it.  Add versions that use
        TAS and that disable interrupts.
        (__atomic_add): Use __exchange_and_add to guarantee atomicity.

From-SVN: r49160
2002-01-23 17:31:13 -08:00
Richard Henderson 88a446c036 t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
* config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
        (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
        (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
        * config/m68k/t-m68kelf: Likewise.

From-SVN: r49159
2002-01-23 17:21:48 -08:00
Richard Henderson 3d709fd3c5 * expr.c (move_by_pieces_1): Extend size before negation.
From-SVN: r49158
2002-01-23 17:16:23 -08:00
Tom Tromey 152d4916ef Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (awt_java_source_files): Added new files.
	* java/awt/image/AreaAveragingScaleFilter.java: New file from
	Classpath.
	* java/awt/image/CropImageFilter.java: New file from Classpath.
	* java/awt/image/FilteredImageSource.java: New file from
	Classpath.
	* java/awt/image/ImageFilter.java: New file from Classpath.
	* java/awt/image/MemoryImageSource.java: New file from Classpath.
	* java/awt/image/PixelGrabber.java: New file from Classpath.
	* java/awt/image/RGBImageFilter.java: New file from Classpath.
	* java/awt/image/ReplicateScaleFilter.java: New file from
	Classpath.
	* java/awt/image/ImageProducer.java: Replaced with Classpath
	version.
	* java/awt/image/ImageObserver.java: Replaced with Classpath
	version.
	* java/awt/image/ImageConsumer.java: Replaced with Classpath
	version.
	* java/awt/GridBagConstraints.java (clone): Catch
	CloneNotSupportedException.

From-SVN: r49157
2002-01-24 01:05:12 +00:00
Benjamin Kosnik aac0eb5d46 [multiple changes]
2002-01-23  Matt Kraai  <kraai@alumni.cmu.edu>

	* include/bits/locale_facets.tcc: Remove old comments.

2002-01-23  Andreas Tobler  <toa@pop.agri.ch>

	* include/bits/locale_facets.tcc (__convert_to_v): Change template
	parameter to _Tv.
	(__convert_from_v): Same.

From-SVN: r49156
2002-01-23 23:35:18 +00:00
Bob Wilson 039843087a elf.h: New file.
* config/xtensa/elf.h: New file.
        * config/xtensa/lib1funcs.asm: New file.
        * config/xtensa/lib2funcs.S: New file.
        * config/xtensa/linux.h: New file.
        * config/xtensa/t-xtensa: New file.
        * config/xtensa/xtensa-config.h: New file.
        * config/xtensa/xtensa-protos.h: New file.
        * config/xtensa/xtensa.c: New file.
        * config/xtensa/xtensa.h: New file.
        * config/xtensa/xtensa.md: New file.
        * config.gcc (xtensa-*-elf*): New target.
        (xtensa-*-linux*): New target.
        * cse.c (canon_hash): Compare rtx pointers instead of register
        numbers.  This is required for the Xtensa port.
        * integrate.c (copy_insn_list): Handle case where the static
        chain is in memory and the memory address has to be copied to
        a register.
        * doc/invoke.texi (Option Summary): Add Xtensa options.
        (Xtensa Options): New node.
        * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
        * gcc.c-torture/compile/20001226-1.x: xfail for Xtensa.

From-SVN: r49155
2002-01-23 21:03:53 +00:00
Benjamin Kosnik 5b1a76105b locale_facets.h (num_get::_M_extract_int): Change prototype.
2002-01-23  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/locale_facets.h (num_get::_M_extract_int): Change
	prototype.
	* include/bits/locale_facets.tcc (num_get::_M_extract_int): Remove
	__max_digits checks, adjust arguments.
	(num_get::do_get(*)): Changeup.

From-SVN: r49154
2002-01-23 20:38:59 +00:00
Per Bothner 033509daea natField.cc (setAddr): New function.
* java/lang/reflect/natField.cc (setAddr):  New function.
	Calls getAddr and then checks that the field isn't final.
	(setBoolean. setChar, setByte, setShort, setInt, setLong, setFloat,
	setDouble, set):  Use setAddr instead of getAddr, to check for FINAL.
	(set):  Call setAddr before check that new value has right type,
	to better match specified semantics.

From-SVN: r49153
2002-01-23 11:42:18 -08:00
Zack Weinberg c588e52b27 typeck2.c (friendly_abort): Delete definition.
* typeck2.c (friendly_abort): Delete definition.
	* cp-tree.h (friendly_abort): Don't prototype.
	(my_friendly_assert): Use fancy_abort.

From-SVN: r49152
2002-01-23 19:41:15 +00:00
Zack Weinberg a63bea75b1 diagnostic.c (internal_error): Do ICE suppression only when ENABLE_CHECKING is not defined.
* diagnostic.c (internal_error): Do ICE suppression only
	when ENABLE_CHECKING is not defined.

From-SVN: r49151
2002-01-23 19:34:08 +00:00
Zack Weinberg c3d5c3faeb c-typeck.c (require_complete_type): Return error_mark_node if type is error_mark_node.
* c-typeck.c (require_complete_type): Return error_mark_node
	if type is error_mark_node.

From-SVN: r49150
2002-01-23 19:30:49 +00:00
Craig Rodrigues d55ecaa4f6 cp-tree.h (my_friendly_abort): Remove.
2002-01-23  Craig Rodrigues  <rodrigc@gcc.gnu.org>

        * cp-tree.h (my_friendly_abort): Remove.

From-SVN: r49149
2002-01-23 19:07:26 +00:00
Janis Johnson a843571630 * gcc.dg/20020122-3.c: New test.
From-SVN: r49148
2002-01-23 18:54:27 +00:00
Jakub Jelinek 0a01c261ff spew.c (pending_inlines, [...]): Make static.
* spew.c (pending_inlines, pending_inlines_tail,
	processing_these_inlines): Make static.
	(mark_pending_inlines): Remove static.
	(begin_parsing_inclass_inline): If in function, save pi
	for GC to cp_function_chain->unparsed_inlines instead.
	(process_next_inline): Likewise.
	* cp-tree.h (struct cp_language_function): Add unparsed_inlines.
	(mark_pending_inlines): Add prototype.
	* decl.c (spew_debug): Remove unused extern.
	(mark_lang_function): Call mark_pending_inlines.

	* g++.dg/other/gc1.C: New test.

From-SVN: r49147
2002-01-23 19:52:08 +01:00
Janis Johnson 1398974cb3 toplev.c (process_options): Disable -fprefetch-loop-arrays with -Os and issue a warning.
* toplev.c (process_options): Disable -fprefetch-loop-arrays with
	-Os and issue a warning.

From-SVN: r49146
2002-01-23 18:48:13 +00:00
Philipp Thomas 85d35d90e9 tr.po: New file.
2002-01-23  Philipp Thomas  <pthomas@suse.de>

       * tr.po: New file.

From-SVN: r49145
2002-01-23 18:32:23 +00:00
Zack Weinberg d0a8f4e4b0 * gcc.dg/c99-intconst-1.c: Mark XFAIL.
From-SVN: r49143
2002-01-23 18:12:37 +00:00
Zack Weinberg 807633e5a3 fragments.texi, [...]: Update to reflect current (lack of) need for host configuration by hand.
* doc/fragments.texi, doc/hostconfig.texi: Update to reflect
	current (lack of) need for host configuration by hand.

	* doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
	references.  Documentation of some target macros moved from
	hostconfig.texi to tm.texi.

From-SVN: r49142
2002-01-23 17:30:28 +00:00
Loren J. Rittle d419f1cdf0 * config/locale/c_locale_generic.cc: Fix typename usage.
From-SVN: r49141
2002-01-23 16:20:46 +00:00
Will Cohen cf8002d02a arm.h (THUMB_FUNCTION_PROFILER): Define if not currently defined.
* config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
	defined.

From-SVN: r49140
2002-01-23 14:46:43 +00:00
Craig Rodrigues a98facb0de call.c, [...]: Change my_fancy_abort() to abort().
2002-01-23  Craig Rodrigues  <rodrigc@gcc.gnu.org>

        * call.c, class.c, decl.c, decl2.c, error.c, expr.c, friend.c,
        init.c, lex.c, mangle.c, method.c, pt.c, repo.c, rtti.c, search.c,
        semantics.c, spew.c, tree.c, typeck.c, typeck2.c, xref.c:
        Change my_fancy_abort() to abort().

From-SVN: r49139
2002-01-23 14:26:07 +00:00
Kazu Hirata d1e7631060 h8300.md (*andorhi3): Accept 0x8000 as an operand[3].
* config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
	operand[3].

From-SVN: r49138
2002-01-23 14:24:23 +00:00
Jason Merrill 152d6a868d re PR c++/5453 (Compiled program crash - inheritance/template/friend class problem)
PR c++/5453
        * class.c (fixed_type_or_null): Fix thinko.

From-SVN: r49135
2002-01-23 07:49:48 -05:00
Jason Merrill d9e916d988 re PR c++/3331 (member pointer inherits const)
PR c++/3331
        * init.c (resolve_offset_ref): Use build_indirect_ref.

[[Split portion of a mixed commit.]]

From-SVN: r49134.2
2002-01-23 07:49:12 -05:00
Jason Merrill 608afcc5e9 re PR c++/5453 (Compiled program crash - inheritance/template/friend class problem)
PR c++/5453
        * class.c (fixed_type_or_null): Fix thinko.

From-SVN: r49133
2002-01-23 07:45:30 -05:00