1. 24 Jun, 2003 19 commits
    • call.c (enforce_access): Assert we get a binfo. · 6df5158a
      	* call.c (enforce_access): Assert we get a binfo.
      	(build_op_delete_call): Pass a binfo to
      	perform_or_defer_access_check.
      	* class.c (alter_access): Likewise.
      	* decl.c (make_typename_type): Likewise.
      	(make_unbound_class_template): Likewise.
      	* lex.c (do_identifier): Likewise.
      	* method.c (hack_identifier): Likewise.
      	* parser.c (cp_parser_lookup_name): Likewise.
      	* search.c (lookup_member): Likewise. Move IDENTIFIER_CLASS_VALUE
      	test.
      	* semantics.c (finish_non_static_data_member): Likewise.
      	(perform_or_defer_access_check): Expect a binfo.
      	* typeck.c (comptypes): Expect types.
      
      	* mangle.c (find_substitution): Don't pass a non-type to same_type_p
      	* friend.c (make_friend_class): Likewise.
      	* pt.c (check_default_tmpl_args): Likewise.
      	(lookup_template_class): Likewise.
      
      From-SVN: r68424
      Nathan Sidwell committed
    • re PR c++/5754 (g++ segfaults on compilation of template-enriched code) · 401f376d
      	PR c++/5754
      	* g++.dg/parse/crash6.C: New test.
      
      From-SVN: r68423
      Mark Mitchell committed
    • Nathan C. · 71b46021
      2003-06-24  Paolo Carlini  <pcarlini@unitus.it>
                  Nathan C. Myers  <ncm-nospam@cantrip.org>
      
      	* include/std/std_fstream.h (_M_filepos): Remove.
      	(_M_reading, _M_writing): New, encode the various I/O modes:
      	'read', 'write' and 'uncommitted'.
      	(sync): If there is something to flush, do it, then go to
      	'uncommitted' mode.
      	* include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
      	with three different cases: __off > 0 (upon underflow),
      	__off == 0 (upon overflow), __off == -1 (upon open, setbuf,
      	seekoff/pos).
      	(_M_underflow): Don't call overflow, set _M_reading to true
      	on success, tweak.
      	(pbackfail): Set _M_reading to true on pback creation, tweak.
      	(overflow): Don't seek, deal with overflow in 'uncommitted' mode,
      	set _M_writing to true on success, tweak.
      	(seekoff): Simplify, set _M_reading, _M_writing to false, call
      	_M_set_buffer(-1) ('uncommitted').
      	(open, close, setbuf): Set _M_reading, _M_writing to false and
      	call _M_set_buffer(-1), tweak.
      	(basic_filebuf): Don't set _M_buf_unified.
      	(_M_destroy_internal_buffer): Don't call setg and setp.
      	* include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
      	_M_writing and _M_set_buffer(-1).
      	* include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
      	_M_out_lim, _M_buf_unified): Remove.
      	(basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
      	(setp): Don't set _M_out_lim.
      	* testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
      	the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
      	upon open the mode is 'uncommitted' and therefore the put area
      	pointers are null.
      	* testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
      	* testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
      
      	* include/bits/fstream.tcc (showmanyc): Use only the
      	documented derivation interface to basic_streambuf (gptr(),
      	setg(), etc.) to work right with user specializations.
      	* include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
      	sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
      	* include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
      	Likewise.
      	* include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
      	xsgetn): Likewise.
      
      Co-Authored-By: Nathan C. Myers <ncm-nospam@cantrip.org>
      
      From-SVN: r68420
      Paolo Carlini committed
    • method.c (thunk_labelno): Move outside ifdef block to make garbage collector happy. · cebebe72
      	* method.c (thunk_labelno): Move outside ifdef block to make garbage
      	collector happy.
      
      From-SVN: r68419
      Jan Hubicka committed
    • langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro. · d35543c0
      	* langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
      	* langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
      	* varasm.c (assemble_variable): Call prepare_assemble_variable.
      	* class.c (build_vtable): Make vtables.
      	* cp-tree.h (DECL_VTABLE_OR_VTT_P): New macro.
      	* decl2.c (output_vtable_inherit): Rename to ...
      	(prepare_assemble_variable): ... this one; change interface.
      	(maybe_emit_vtables): Do not call output_vtable_inherit.
      	* cp-lang.c (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Define.
      	* cp-tree.h (prepare_assemble_variable): New.
      
      From-SVN: r68418
      Jan Hubicka committed
    • 2003-06-24 Michael Koch <konqueror@gmx.de> · 3a63ab40
      	* java/nio/Buffer.java
      	(cap): Made package-private.
      	(pos): Likewise.
      	(limit): Likewise.
      	(mark): Likewise.
      
      From-SVN: r68417
      Michael Koch committed
    • 2003-06-24 Michael Koch <konqueror@gmx.de> · ed1f9b7c
      	* java/net/SocketImpl.java
      	(shutdownInput): Made it non-abstract method throwing an exception
      	like in SUNs JRE.
      	(shutdownOutput): Likewise.
      	* java/net/SocketInputStream.java,
      	java/net/SocketOutputStream.java:
      	New files from classpath.
      
      From-SVN: r68416
      Michael Koch committed
    • Font.java, [...]: New versions from classpath. · 59b8aa7e
      2003-06-24  Michael Koch  <konqueror@gmx.de>
      
      	* java/awt/Font.java,
      	java/awt/Window.java,
      	java/awt/color/ColorSpace.java,
      	java/awt/datatransfer/StringSelection.java,
      	java/awt/image/ColorModel.java:
      	New versions from classpath.
      
      From-SVN: r68415
      Michael Koch committed
    • 2003-06-24 Michael Koch <konqueror@gmx.de> · 5d09ad73
      	* Makefile.am
      	(awt_java_source_files): Added new files:
      	javax/swing/plaf/basic/BasicSplitPaneDivider.java,
      	javax/swing/plaf/basic/BasicSplitPaneUI.java
      	* Makefile.in: Regenerated.
      
      From-SVN: r68414
      Michael Koch committed
    • JTextComponent.java: New version from classpath. · 92c268fa
      2003-06-24  Michael Koch  <konqueror@gmx.de>
      
      	* javax/swing/text/JTextComponent.java:
      	New version from classpath.
      
      From-SVN: r68410
      Michael Koch committed
    • Timer.java, [...]: New versions from classpath. · a0ea8550
      2003-06-24  Michael Koch  <konqueror@gmx.de>
      
      	* javax/swing/Timer.java,
      	javax/swing/plaf/ActionMapUIResource.java,
      	javax/swing/plaf/ButtonUI.java,
      	javax/swing/plaf/ColorChooserUI.java,
      	javax/swing/plaf/ColorUIResource.java,
      	javax/swing/plaf/ComboBoxUI.java,
      	javax/swing/plaf/ComponentInputMapUIResource.java,
      	javax/swing/plaf/basic/BasicBorders.java:
      	New versions from classpath.
      	* javax/swing/plaf/basic/BasicSplitPaneDivider.java.
      	javax/swing/plaf/basic/BasicSplitPaneUI.java:
      	New file from classpath.
      	* javax/swing/plaf/basic/doc-files/BasicBorders-1.png,
      	javax/swing/plaf/basic/doc-files/BasicBorders-2.png,
      	javax/swing/plaf/basic/doc-files/BasicBorders.FieldBorder-1.png,
      	javax/swing/plaf/doc-files/ComponentUI-1.dia,
      	javax/swing/plaf/doc-files/ComponentUI-1.png:
      	New binary files from classpath.
      
      From-SVN: r68409
      Michael Koch committed
    • 2003-06-24 Michael Koch <konqueror@gmx.de> · 20afd475
      	* java/io/LineNumberReader.java
      	(skip): Dont do line number accounting here as this is already done in
      	read(), simplified.
      
      From-SVN: r68408
      Michael Koch committed
    • * testsuite/testsuite_performance.h: Portability. · d1a2c4d6
      From-SVN: r68407
      Loren J. Rittle committed
    • * include/ext/mt_allocator.h: Portability. · 3d57d7ba
      From-SVN: r68406
      Loren J. Rittle committed
    • method.c: add prototype for make_alias_for_thunk. · d46c570d
      	* method.c: add prototype for make_alias_for_thunk.
      	(thunk_labelno, make_alias_for_thunk): only define
      	if ASM_OUTPUT_DEF is defined.
      
      From-SVN: r68405
      Andrew Pinski committed
    • configure.host (freebsd*): Set abi_baseline_pair. · 9eb6e1d3
              * configure.host (freebsd*): Set abi_baseline_pair.
              * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
              (at or near first release) to 3.3.
              * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
              * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
              * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
      
      From-SVN: r68402
      Loren J. Rittle committed
    • builtins.c (expand_builtin): Use expand_builtin_pow to expand calls for pow... · 2082e02f
      
      	* builtins.c (expand_builtin): Use expand_builtin_pow to expand
      	calls for pow, powf, powl and their __builtin_ variants.
      	(expand_builtin_pow): If the second argument is a constant
      	integer and compiling with -ffast-math, use expand_powi to
      	generate RTL if powi_cost is less than POWI_MAX_MULTS.
      	(powi_cost): New function to return the number of multiplications
      	necessary to evaluate an Nth power, for integer constant N.
      	(expand_powi): New function to expand the RTL for evaluating
      	the Nth power of a floating point value, for integer constant N.
      
      	* doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
      
      	* gcc.dg/builtins-24.c: New test case.
      
      From-SVN: r68401
      Roger Sayle committed
    • gcc_update (files_and_dependencies): Add gcc/testsuite/gcc.dg/cpp/_Pragma3.c… · e4048ffc
      gcc_update (files_and_dependencies): Add gcc/testsuite/gcc.dg/cpp/_Pragma3.c depends on gcc/testsuite/gcc.dg/cpp/mi1c.h.
      
      * gcc_update (files_and_dependencies): Add
      gcc/testsuite/gcc.dg/cpp/_Pragma3.c depends on
      gcc/testsuite/gcc.dg/cpp/mi1c.h.
      
      From-SVN: r68398
      Jason Thorpe committed
    • Daily bump. · 5107afaa
      From-SVN: r68396
      GCC Administrator committed
  2. 23 Jun, 2003 21 commits