David Edelsohn [Fri, 25 Jan 2002 18:06:24 +0000 (18:06 +0000)]
gc.h (GC_INIT): Add DATASTART and DATAEND roots on AIX.
* include/gc.h (GC_INIT): Add DATASTART and DATAEND roots on AIX.
* include/private/gcconfig.h (RS6000): Add 64-bit AIX support.
Define USE_GENERIC_PUSH_REGS. Use AIX _data and _end symbols for
DATASTART and DATAEND roots.
* rs6000_mach_dep.s: Add function descriptor and traceback table.
Jakub Jelinek [Fri, 25 Jan 2002 11:20:29 +0000 (12:20 +0100)]
eh5.C: New test.
* g++.old-deja/g++.other/eh5.C: New test.
* g++.old-deja/g++.other/sibcall2.C: New test.
* g++.old-deja/g++.other/array9.C: New test.
* g++.old-deja/g++.other/typename2.C: New test.
* g++.old-deja/g++.other/crash60.C: New test.
* g++.old-deja/g++.other/conv9.C: New test.
* g++.old-deja/g++.other/mangle10.C: New test.
* g++.old-deja/g++.other/unchanging1.C: New test.
* g++.old-deja/g++.other/exprstmt1.C: New test.
* g++.old-deja/g++.other/inline23.C: New test.
* g++.old-deja/g++.eh/ia64-1.C: New test.
* g++.old-deja/g++.other/dwarf2-1.C: New test.
* g++.old-deja/g++.other/mangle11.C: New test.
* g++.old-deja/g++.other/reload1.C: New test.
* g++.old-deja/g++.other/static20.C: New test.
* g++.old-deja/g++.other/local-alloc1.C: New test.
* g++.old-deja/g++.other/conv8.C: New test.
* g++.old-deja/g++.other/stmtexpr2.C: New test.
* g++.old-deja/g++.other/storeexpr1.C: New test.
* g++.old-deja/g++.other/storeexpr2.C: New test.
* g++.dg/eh/template2.C: New test.
* g++.dg/warn/weak1.C: New test.
* include/bits/basic_ios.h (basic_ios::_M_check_facet): Make
const, tweak.
(basic_ios::fill(char_type)): Use fill().
* include/bits/basic_ios.tcc (basic_ios::widen): Use _M_check_facet.
(basic_ios::narrow): Same.
(basic_ios::_M_cache_facets): Explicitly set cached facets to zero
if they are invalid.
(basic_ios::init): Comment.
* testsuite/27_io/ios_init.cc (test02): New.
* java/awt/image/PixelGrabber.java (grabPixels()): Call grabPixels(0).
* java/awt/image/PixelGrabber.java (grabPixels(long)): Wait to be
notified that the ImageProducer has completed.
* include/bits/stl_tempbuf.h (_Temporary_buffer): Add doxygen hook.
* include/bits/stl_algo.h: Include stl_tempbuf.h.
* include/ext/memory: Do not include stl_tempbuf.h.
(temporary_buffer): Add doxygen hook.
(__get_temporary_buffer, get_temporary_buffer,
return_temporary_buffer): Move back to std:: header...
* include/std/std_memory.h: ...here. Do not include stl_tempbuf.h.
* include/ext/rope: Do not include stl_tempbuf.h.
* include/ext/stl_hashtable.h: Likewise.
* include/std/std_algorithm.h: Likewise.
* testsuite/20_util/temporary_buffer.cc: New file.
Andrew Pollard [Thu, 24 Jan 2002 21:14:41 +0000 (21:14 +0000)]
ios_base.h: Use _Atomic_word for reference counts.
libstdc++/5432
* include/bits/ios_base.h: Use _Atomic_word for reference counts.
* include/bits/localefwd.h: Likewise.
Also use for std::locale::id::_S_highwater.
* src/ios.cc (ios_base::xalloc): Use _Atomic_word.
* src/locale.cc: Support new usage of _Atomic_word.
(std::locale::classic): Guard entire function against reentry.
* src/localename.cc: Support new usage of _Atomic_word.
Kazu Hirata [Thu, 24 Jan 2002 19:48:53 +0000 (19:48 +0000)]
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'.
Loren J. Rittle [Thu, 24 Jan 2002 07:35:11 +0000 (07:35 +0000)]
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.
Tom Tromey [Thu, 24 Jan 2002 06:31:02 +0000 (06:31 +0000)]
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.
Alexandre Oliva [Thu, 24 Jan 2002 06:16:58 +0000 (06:16 +0000)]
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).
Tom Tromey [Thu, 24 Jan 2002 05:51:34 +0000 (05:51 +0000)]
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.
Zack Weinberg [Thu, 24 Jan 2002 03:31:34 +0000 (03:31 +0000)]
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.
Zack Weinberg [Thu, 24 Jan 2002 03:27:30 +0000 (03:27 +0000)]
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.
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.
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.
Tom Tromey [Thu, 24 Jan 2002 01:05:12 +0000 (01:05 +0000)]
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.
Bob Wilson [Wed, 23 Jan 2002 21:03:53 +0000 (21:03 +0000)]
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.
Per Bothner [Wed, 23 Jan 2002 19:42:18 +0000 (11:42 -0800)]
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.
Jason Merrill [Wed, 23 Jan 2002 12:39:30 +0000 (07:39 -0500)]
function.c (assign_parms): Don't put args of inline functions into registers when not optimizing.
* function.c (assign_parms): Don't put args of inline functions
into registers when not optimizing.
* cp/decl2.c (grokclassfn): Don't set DECL_REGISTER on 'this'.
Zack Weinberg [Wed, 23 Jan 2002 03:01:53 +0000 (03:01 +0000)]
bad.c: Include intl.h.
* bad.c: Include intl.h.
(FFEBAD_MSGS1, FFEBAD_MSGS2): Replace by FFEBAD_MSG, SHORT,
LONG. Adjust definitions to work with exgettext.
(ffebad_start_): Translate all error messages.
(ffebad_finish): Mark constant strings for translation.
* bad.h: Use FFEBAD_MSG. Adjust prototype of ffebad_start_
and definitions of ffebad_start_msg, ffebad_start_msg_lex to
work with exgettext.
* bad.def: Use FFEBAD_MSG, SHORT, LONG throughout.
* com.c: Include intl.h.
(lang_print_error_function): Always use ffeinfo_kind_message
to get the kind label for a non-nested construct. Translate
it. Translate constant strings.
* info.c (FFEINFO_KIND): Adjust definition to work with exgettext.
* info-k.def: Block xgettext from slurping copyright notice
into gcc.pot. Adjust strings for their sole use, in com.c.
* Make-lang.in (f/bad.o, f/com.o): Depend on intl.h.
Richard Earnshaw [Wed, 23 Jan 2002 01:17:51 +0000 (01:17 +0000)]
netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space after backslash.
* config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
after backslash.
(ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.