1. 28 Jun, 2003 1 commit
  2. 27 Jun, 2003 39 commits
    • re PR c++/10468 (const typeof(x) is non-const, but only in templates) · dce50630
      	PR c++/10468
      	* pt.c (tsubst): Handle qualified TYPEOF_TYPEs correctly.
      
      	PR c++/10468
      	* g++.dg/ext/typeof5.C: New test.
      
      From-SVN: r68615
      Mark Mitchell committed
    • mips.c (mips_build_va_list): Make padding in va_list structure explicit to avoid -Wpadded warnings. · 7a0ec607
      2003-06-27  Chris Demetriou  <cgd@broadcom.com>
      
              * config/mips/mips.c (mips_build_va_list): Make padding in
              va_list structure explicit to avoid -Wpadded warnings.
      
      From-SVN: r68613
      Chris Demetriou committed
    • re PR c++/10796 (ICE (segfault) when defining an enum with two values: -1 and MAX_INT_64BIT) · e455bc27
      	PR c++/10796
      	* decl.c (finish_enum): Implement DR377.
      
      	* decl.c (cp_finish_decl): Don't make variables with reference
      	type readonly while they are being initialized.
      
      	PR c++/10796
      	* g++.dg/init/enum1.C: New test.
      
      From-SVN: r68610
      Mark Mitchell committed
    • s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define. · dc65c307
      gcc/ChangeLog:
      
      	* config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
      	* config/s390/s390.c (s390_secondary_output_reload_class): New function.
      	* config/s390/s390-protos.h (s390_secondary_output_reload_class):
      	Declare it.
      	* config/s390/s390.md ("reload_outti", "reload_outdi",
      	"reload_outdf"): New expanders.
      
      	* config/s390/s390.md ("movti" + splitters): Handle non-offsettable
      	memory operands as source.
      	("movdi" + splitters): Likewise.
      	("movdf" + splitters): Likewise.
      	* config/s390/s390.c (s390_split_ok_p): New function.
      	* config/s390/s390-protos.h (s390_split_ok_p): Declare it.
      
      gcc/testsuite/ChangeLog:
      
      	* gcc.dg/20030627-1.c: New test.
      
      From-SVN: r68607
      Ulrich Weigand committed
    • BeanContextSupport.java: New version from classpath. · 5bbd6c3e
      2003-06-27  Michael Koch  <konqueror@gmx.de>
      
      	* java/beans/beancontext/BeanContextSupport.java:
      	New version from classpath.
      
      From-SVN: r68606
      Michael Koch committed
    • Window.java, [...]: New versions from classpath. · 2f161fa8
      2003-06-27  Michael Koch  <konqueror@gmx.de>
      
      	* java/awt/Window.java,
      	java/awt/font/GraphicAttribute.java,
      	java/awt/font/ImageGraphicAttribute.java,
      	java/awt/image/DataBufferByte.java,
      	java/awt/image/DataBufferInt.java,
      	java/awt/image/DataBufferUShort.java,
      	java/awt/image/DirectColorModel.java,
      	java/awt/image/PixelGrabber.java:
      	New versions from classpath.
      
      From-SVN: r68605
      Michael Koch committed
    • combine.c (force_to_mode): Replace the equality comparison of INTVALs with a… · fa9ea255
      combine.c (force_to_mode): Replace the equality comparison of INTVALs with a pointer equality comparison.
      
      	* combine.c (force_to_mode): Replace the equality comparison
      	of INTVALs with a pointer equality comparison.
      	(simplify_comparison): Likewise.
      
      From-SVN: r68603
      Kazu Hirata committed
    • jump.c (rtx_renumbered_equal_p): Replace an expression that is known to be 0 with 0. · 47c7b4d2
      	* jump.c (rtx_renumbered_equal_p): Replace an expression that
      	is known to be 0 with 0.
      
      From-SVN: r68602
      Kazu Hirata committed
    • gcse.c (expr_equiv_p): Replace expressions that are known to be 0 with 0. · ebd7a7af
      	* gcse.c (expr_equiv_p): Replace expressions that are known to
      	be 0 with 0.
      
      From-SVN: r68601
      Kazu Hirata committed
    • cse.c (fold_rtx): Replace the equality comparison of INTVALs with a pointer equality comparison. · 213d5fbc
      	* cse.c (fold_rtx): Replace the equality comparison of INTVALs
      	with a pointer equality comparison.
      
      From-SVN: r68600
      Kazu Hirata committed
    • rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN are known to be not equivalent. · 9df4f939
      	* rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
      	are known to be not equivalent.
      
      From-SVN: r68599
      Kazu Hirata committed
    • gcc_release (build_sources): Do not include gnats.html any longer. · 36067e59
      	* gcc_release (build_sources): Do not include gnats.html any longer.
      	Make an error message more descriptive.
      
      From-SVN: r68597
      Gerald Pfeifer committed
    • [multiple changes] · f1a22109
      
      2003-06-27  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* testsuite/testsuite_performance.h (__gnu_cxx_test): Change
      	output name to libstdc++-v3-performance.sum.
      	* testsuite/Makefile.am (CLEANFILES): Remove .performance.
      	* testsuite/Makefile.in: Regenerate.
      
      2003-06-27  Matthias Klose  <doko@debian.org>
      
      	* testsuite/Makefile.am (check-abi, check-abi-verbose): Save
      	output of abi-check in libstdc++-v3-abi.sum.
      	* testsuite/Makefile.in: Regenerate.
      
      From-SVN: r68593
      Benjamin Kosnik committed
    • alpha.c (function_arg): Don't pass small aggregates in floating point registers. · 7e4fb06a
              * config/alpha/alpha.c (function_arg): Don't pass small aggregates
              in floating point registers.  Validate that we don't receive complex
              values here.  Use #elif.
              (return_in_memory, function_value): New.
              (alpha_va_arg): Handle complex values as two arguments.
              * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
              (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
              (SPLIT_COMPLEX_ARGS): New.
              * config/alpha/alpha-protos.h: Update.
      
      From-SVN: r68591
      Richard Henderson committed
    • ggc-page.c (inverse_table): Change type of mult to size_t. · 75d75435
              * ggc-page.c (inverse_table): Change type of mult to size_t.
              (compute_inverse): Compute inverse using size_t, not unsigned int.
              Compute inverse also for sizes larger than half a machine page.
      
      From-SVN: r68589
      Ulrich Weigand committed
    • configure.in: Clean up config-lang.in handling. · 07d1940e
      	* configure.in: Clean up config-lang.in handling.  Delete
      	useless assignment to "subdirs".
      	* configure: Regenerate.
      
      From-SVN: r68588
      Nathanael Nerode committed
    • Remove extra bits from my previous commit. · 3006aa68
      I am sorry for the way I handled this -gused commit.
      
      From-SVN: r68587
      Devang Patel committed
    • 2003-06-27 Krister Walfridsson <cato@df.lth.se> · 2e8a523f
      	* config/os/bsd/netbsd/ctype_noninline.h
      	(_C_ctype_): Declare.
      	(ctype<char>::classic_table): Return _C_ctype_ + 1.
      	(ctype<char>::ctype): Use classic_table.
      
      From-SVN: r68584
      Krister Walfridsson committed
    • toplev.c (rest_of_decl_compilation): Only varpoolize argument when called before cgraph_optimize. · 5c20c06c
      	* toplev.c (rest_of_decl_compilation):  Only varpoolize argument
      	when called before cgraph_optimize.
      
      From-SVN: r68583
      Jan Hubicka committed
    • re PR c++/11332 (Spurious error with casts in ?: expression) · 3a73bcc6
      	PR c++/11332
      	* typeck.c (build_static_cast): Avoid returning expressions with
      	reference type.
      
      	PR c++/11332
      	* g++.dg/expr/static_cast2.C: New test.
      
      From-SVN: r68580
      Mark Mitchell committed
    • 2003-06-27 Michael Koch <konqueror@gmx.de> · 560d4c59
      	* java/security/Certificate.java
      	(getGuarantor): Removed wrong @deprecated tag.
      	(getPrincipal): Likewise.
      	(getPublicKey): Likewise.
      	(encode): Likewise.
      	(decode): Likewise.
      	(getFormat): Likewise.
      	(toString): Likewise.
      	* java/security/cert/PolicyQualifierInfo.java
      	(PolicyQualifierInfo): Made final.
      	* javax/security/auth/x500/X500Principal.java
      	(serialVersionUID): New member variable.
      
      From-SVN: r68579
      Michael Koch committed
    • * config/darwin.h, config/elfos.h, config/i960/i960-coff.h · 720b7001
      	* config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
      	be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
      
      From-SVN: r68578
      Zack Weinberg committed
    • 2003-06-27 Michael Koch <konqueror@gmx.de> · 24ce2fe6
      	* java/rmi/server/SkeletonNotFoundException.java
      	(SkeletonNotFoundException): Removed wrong @deprecated tag.
      	* java/rmi/server/UnicastRemoteObject.java
      	(exportObject): Made package-private.
      
      From-SVN: r68577
      Michael Koch committed
    • 2003-06-27 Michael Koch <konqueror@gmx.de> · 7e6ec0d8
      	* java/text/Format.java
      	(serialVersionUID): Fixed value.
      
      From-SVN: r68576
      Michael Koch committed
    • 2003-06-27 Michael Koch <konqueror@gmx.de> · 6ced3f39
      	* java/net/Inet4Address.java
      	(Inet4Address): Made package-private.
      	* java/net/Inet6Address.java
      	(Inet4Address): Made package-private.
      
      From-SVN: r68575
      Michael Koch committed
    • 2003-06-27 Michael Koch <konqueror@gmx.de> · 824d4a10
      	* java/io/RandomAccessFile.java
      	(readLine): Removed wrong @deprecated tag.
      	(getChannel): Made final.
      
      From-SVN: r68574
      Michael Koch committed
    • cgraph.c (cgraph_node, [...]): Avoid re-initializing of known_decls. · 67f2899d
      	* cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
      	of known_decls.
      
      From-SVN: r68573
      Jan Hubicka committed
    • 2003-06-27 Michael Koch <konqueror@gmx.de> · c938cb68
      	* gnu/java/nio/FileChannelImpl.java
      	(write): Removed.
      
      From-SVN: r68572
      Michael Koch committed
    • 2003-06-27 Michael Koch <konqueror@gmx.de> · 1226b900
      	* java/nio/ByteBufferImpl.java
      	(ByteBufferImpl): Made it a package-private class
      	* java/nio/CharBufferImpl.java
      	(CharBufferImpl): Made it a package-private class
      	* java/nio/DirectByteBufferImpl.java
      	(DirectByteBufferImpl): Made it a package-private class
      	* java/nio/DoubleBufferImpl.java
      	(DoubleBufferImpl): Made it a package-private class
      	* java/nio/FloatBufferImpl.java
      	(FloatBufferImpl): Made it a package-private class
      	* java/nio/IntBufferImpl.java
      	(IntBufferImpl): Made it a package-private class
      	* java/nio/LongBufferImpl.java
      	(LongBufferImpl): Made it a package-private class
      	* java/nio/ShortBufferImpl.java
      	(ShortBufferImpl): Made it a package-private class
      	* java/nio/channels/FileChannel.java
      	(write): Made final.
      	* java/nio/channels/ServerSocketChannel.java
      	(ServerSocketChanne): Made protected.
      
      From-SVN: r68571
      Michael Koch committed
    • 2003-06-27 Michael Koch <konqueror@gmx.de> · 7fc600fc
      	* javax/naming/CompositeName.java
      	(serialVersionUID): New member variable.
      	* javax/naming/CompoundName.java
      	(serialVersionUID): New member variable.
      	* javax/naming/InitialContext.java
      	(InitialContext): Throws NamingException.
      	(init): Likewise.
      	* javax/naming/LinkRef.java
      	(serialVersionUID): New member variable.
      	(gteLinkName): Throws NamingException.
      	* javax/naming/NamingException.java
      	(serialVersionUID): New member variable.
      	* javax/naming/NamingSecurityException.java
      	(NamingSecurityException): Made abstract.
      	(serialVersionUID): New member variable.
      	* javax/naming/ReferralException.java
      	(serialVersionUID): New member variable.
      	* javax/naming/StringRefAddr.java
      	(serialVersionUID): New member variable.
      	* javax/naming/directory/BasicAttribute.java:
      	Reworked imports.
      	(serialVersionUID): New member variable.
      	(get): Throws NamingException.
      	(getAll): Throws NamingException.
      	* javax/naming/directory/BasicAttributes.java:
      	Reworked imports.
      	(serialVersionUID): New member variable.
      	* javax/naming/ldap/UnsolicitedNotificationEvent.java
      	(serialVersionUID): New member variable.
      
      From-SVN: r68570
      Michael Koch committed
    • 2003-06-27 Michael Koch <konqueror@gmx.de> · 3556d877
      	* Makefile.am
      	(awt_java_source_files): Added new files:
      	javax/swing/Popup.java,
      	javax/swing/PopupFactory.java
      	* Makefile.in: Regenerated.
      
      From-SVN: r68569
      Michael Koch committed
    • JWindow.java, [...]: New versions from classpath. · 1c9d1c5b
      2003-06-27  Michael Koch  <konqueror@gmx.de>
      
      	* javax/swing/JWindow.java,
      	javax/swing/event/AncestorEvent.java,
      	javax/swing/event/HyperlinkEvent.java,
      	javax/swing/event/InternalFrameEvent.java,
      	javax/swing/event/ListDataEvent.java,
      	javax/swing/event/TableModelEvent.java,
      	javax/swing/plaf/PopupMenuUI.java,
      	javax/swing/plaf/SplitPaneUI.java,
      	javax/swing/plaf/TabbedPaneUI.java,
      	javax/swing/plaf/TextUI.java,
      	javax/swing/plaf/TreeUI.java,
      	javax/swing/plaf/basic/BasicTextUI.java,
      	javax/swing/plaf/basic/BasicTreeUI.java:
      	New versions from classpath.
      	* javax/swing/Popup.java,
      	javax/swing/PopupFactory.jav:
      	New source files from classpath.
      	* javax/swing/plaf/doc-files/TreeUI-1.png:
      	New binary files from classpath.
      
      From-SVN: r68568
      Michael Koch committed
    • defaults.h (REGISTER_MOVE_COST): Define default here. · 37706dd1
      	* defaults.h (REGISTER_MOVE_COST): Define default here.
      	* regclass.c: Don't define default REGISTER_MOVE_COST here.
      	* reload.c, reload1.c: Ditto.
      
      From-SVN: r68567
      Hans-Peter Nilsson committed
    • Nathan C. · 3461133d
      2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
      	    Nathan C. Myers  <ncm-nospam@cantrip.org>
      
      	PR libstdc++/9178
      	* include/bits/fstream.tcc (_M_underflow): Properly estimate
      	the worst-case number of external bytes for a given get area.
      	* testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
      
      2003-06-27  Paolo Carlini  <pcarlini@unitus.it>
      	    Petur Runolfsson  <peturr02@ru.is>
      
      	PR libstdc++/11305
      	* include/bits/fstream.tcc (overflow): Properly estimate the
      	worst-case number of external bytes for a given put area
      	(by using codecvt::max_length()).
      	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
      	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
      	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
      	* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
      
      Co-Authored-By: Nathan C. Myers <ncm-nospam@cantrip.org>
      Co-Authored-By: Petur Runolfsson <peturr02@ru.is>
      
      From-SVN: r68566
      Paolo Carlini committed
    • * config/linker-map.gnu: Remove ; after __numpunct_cache. · 5648db54
      From-SVN: r68563
      Nathan Sidwell committed
    • * flags.h: Really install previous change. · 45751525
      From-SVN: r68562
      Richard Earnshaw committed
    • rtl.h (emit_note): Remove FILE parameter. · 2e040219
      	* rtl.h (emit_note): Remove FILE parameter.
      	* emit-rtl.c (emit_line_note): Adjust emit_note call.
      	(emit_note): Remove FILE parameter. Adjust.
      	* builtins.c (expand_builtin_expect): Adjust emit_note call.
      	* c-semantics.c (genrtl_scope_stmt): Likewise.
      	(expand_stmt): Likewise.
      	* cfglayout.c (reemit_insn_block_notes): Likewise.
      	(duplicate_insn_chain): Likewise.
      	* except.c (expand_eh_region_start, expand_eh_region_end,
      	sjlj_emit_function_enter): Likewise.
      	* explow.c (probe_stack_range): Likewise.
      	* expr.c (emit_block_move_via_loop): Likewise.
      	* function.c (init_function_start, expand_function_start,
      	expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
      	* integrate.c (expand_inline_function, copy_insn_list): Likewise.
      	* reg-stack.c (compensate_edge): Likewise.
      	* reload1.c (reload): Likewise.
      	* rtlanal.c (hoist_insn_to_edge): Likewise.
      	* stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
      	expand_loop_continue_here, expand_end_loop, expand_continue_loop,
      	expand_exit_loop_top_cond, expand_value_return,
      	expand_start_bindings_and_block, expand_end_bindings,
      	expand_decl_cleanup, expand_start_case): Likewise.
      	* unroll.c (copy_loop_body
      	* config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
      	* config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
      	* config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
      	rs6000_emit_allocate_stack, rs6000_output_function_prologue,
      	rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
      	* config/sh/sh.c (sh_output_mi_thunk): Likewise.
      	* config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
      
      	* ada/misc.c (record_code_position): Likewise.
      
      From-SVN: r68561
      Nathan Sidwell committed
    • c-tree.h (grokfield): Remove unused filename and line parameters. · bc4721b8
      	* c-tree.h (grokfield): Remove unused filename and line parameters.
      	* c-decl.c (grokfield): Remove unused filename and line	parameters.
      	* c-parse.in (component_decl): Adjust field grokking rules, adjust
      	grokfield calls.
      	(component_declarator): Likewise.
      	(component_notype_declarator): Likewise.
      	* objc/objc-act.c (build_module_descriptor): Adjust grokfield
      	calls.
      	(build_protocol_template, build_method_prototype_list_template,
      	build_method_prototype_template, build_category_template,
      	build_selector_template, build_class_template,
      	build_super_template, build_ivar_template,
      	build_ivar_list_template, build_method_list_template,
      	build_method_template, add_instance_variable): Likewise.
      
      From-SVN: r68560
      Nathan Sidwell committed
    • ios_base.h (ios_base::_M_getloc): Return reference to the imbued locale. · 215f9e28
      
      2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/bits/ios_base.h (ios_base::_M_getloc): Return reference
      	to the imbued locale.
      	* include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
      	_M_getloc.
      	(num_put::_M_convert_float): Use.
      
      2003-06-26  Benjamin Kosnik  <bkoz@redhat.com>
      	    Jerry Quinn  <jlquinn@optonline.net>
      
      	* config/linker-map.gnu: Add __numpunct_cache.
      	* config/locale/gnu/numeric_members.cc
      	(numpunct::_M_initialize_numpunct): Account for _M_data, fill in
      	all elements for "C" locale.
      	(numpunct::~numpunct): Delete _M_data.
      	* config/locale/generic/numeric_members.cc: Same.
      	* include/bits/basic_ios.tcc
      	(basic_ios::init): Remove __locale_cache bits.
      	(basic_ios::_M_cache_locale): Same.
      	* include/bits/ios_base.h: Same. Tweaks.
      	* include/bits/locale_classes.h: Tweaks. Reorder classes.
      	(__use_cache): Make friends with _Impl, locale.
      	(_Impl::_M_caches): Add.
      	(_Impl::_M_install_cache): Add.
      	* include/bits/locale_facets.h (__numpunct_cache): New.
      	(numpunct): Encapsulate data members in __numpunct_cache member,
      	_M_data. Adjust virtuals.
      	(numpunct::numpunct): New ctor for the same.
      	(__locale_cache_base): Remove.
      	(__locale_cache): Remove.
      	* include/bits/locale_facets.tcc (__use_cache): New function,
      	specializations.
      	(num_put::_M_convert_int, _M_convert_float, do_put): Use it.
      	* src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
      	* src/ios.cc (ios_base::ios_base): Remove __locale_cache.
      	* src/locale-inst.cc: Same. Add __numpunct_cache.
      	* src/locale.cc: Tweak inlines.
      	(__use_cache): Define specializations.
      	* src/localename.cc: Use global bits.
      	(_Impl::~Impl): Deal with __numpunct_cache destruction.
      	(_Impl::_Impl): Same. Pre-cache standard numpunct facets.
      	(_Impl::_M_init_facet): Take into account __numpunct_cache.
      	* testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
      	* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
      
      Co-Authored-By: Jerry Quinn <jlquinn@optonline.net>
      
      From-SVN: r68558
      Benjamin Kosnik committed