1. 16 Dec, 2003 17 commits
  2. 15 Dec, 2003 23 commits
    • cp-demangle.c (d_print_function_type): Print the function parameters with no modifiers. · cbc278f4
      	* cp-demangle.c (d_print_function_type): Print the function
      	parameters with no modifiers.
      	* testsuite/demangle-expected: Add test case.
      
      From-SVN: r74652
      Ian Lance Taylor committed
    • cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't expect that we've… · 8d686df2
      cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't expect that we've read the entire string.
      
      	* cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
      	expect that we've read the entire string.
      	(is_ctor_or_dtor): Don't expect that we've read the entire
      	string--reverse patch of 2003-11-29.
      
      From-SVN: r74651
      Ian Lance Taylor committed
    • re PR c++/13310 (Tree check error in dependent_template_p) · b95cc51a
      	PR c++/13310
      	* pt.c (dependent_template_p): Handle OVERLOADs.
      
      	PR c++/13310
      	* g++.dg/template/crash15.C: New test.
      
      From-SVN: r74649
      Mark Mitchell committed
    • re PR libstdc++/12658 (Thread safety problems in locale::global() and locale::locale()) · 3fe13738
      
      2003-12-15  Benjamin Kosnik  <bkoz@redhat.com>
      
      	PR libstdc++/12658
      	* include/Makefile.am (bits_headers): Add concurrence.h.
      	* include/Makefile.in: Regenerated.
      	* include/bits/concurrence.h: New.
      	* src/locale_init.cc: Use it.
      	(locale::locale): Lock critical regions.
      	(locale::global): Same.
      
      From-SVN: r74648
      Benjamin Kosnik committed
    • vaarg3.C: Don't expect an error for passing a non-POD type as the last named parameter of... · 86d75cdd
      	* g++.old-deja/g++.pt/vaarg3.C: Don't expect an error for passing
      	a non-POD type as the last named parameter of a varargs function.
      
      From-SVN: r74647
      Geoffrey Keating committed
    • basic_string.h: Change _*_references to _*_refcount. · 1313d87f
      
      2003-12-15  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/bits/basic_string.h: Change _*_references to _*_refcount.
      	* include/bits/locale_classes.h: Same.
      	* src/locale.cc: Same.
      	* src/locale_name.cc: Same.
      	* src/locale_init.cc: Same.
      
      From-SVN: r74645
      Benjamin Kosnik committed
    • gdkfont.h: New file. · 61a8f1ed
      2003-12-15  Graydon Hoare  <graydon@redhat.com>
      
      	* jni/gtk-peer/gdkfont.h: New file.
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c: Remove
      	include of cairo-xlib.h, add extra gdk_flush().
      
      From-SVN: r74644
      Graydon Hoare committed
    • re PR libstdc++/12855 (Thread safety problems in ios_base::Init) · fa972243
      
      2003-12-15  Benjamin Kosnik  <bkoz@redhat.com>
      
      	PR libstdc++/12855
      	* include/bits/ios_base.h (Init::_S_ios_base_init): Change to
      	_S_refcount, make atomic.
      	* src/ios.cc: Adjust definition.
      	* src/ios_init.cc (ios_base::Init::Init): Use __exchange_and_add,
      	and __atomic_add.
      	(ios_base::Init::~Init): Same.
      	* testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
      	* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
      
      From-SVN: r74642
      Benjamin Kosnik committed
    • Makefile.in (floatformat.o): Add dependency on config.h to accompany change of 2003-12-03. · adf269c7
      * libiberty/Makefile.in (floatformat.o): Add dependency on
      config.h to accompany change of 2003-12-03.
      
      From-SVN: r74641
      Brendan Kehoe committed
    • reload.c (reg_overlap_mentioned_for_reload_p): When looking at a PLUS in X... · 69f38ab9
      	* reload.c (reg_overlap_mentioned_for_reload_p):
      	When looking at a PLUS in X, avoid spuriously returning nonzero
      	when IN is a REG or another simple PLUS, or a MEM containing one.
      
      	* loop.c (loop_invariant_p): Amend comment about where new registers
      	might come from.
      
      From-SVN: r74638
      J"orn Rennecke committed
    • re PR c++/13243 (Segfault on illegal template construct) · a5ac3982
      	PR c++/13243
      	PR c++/12573
      	* parser.c (cp_parser_postfix_expression): Tighten handling of
      	integral constant expressions.
      	(cp_parser_unary_expression): Likewise.
      	* pt.c (value_dependent_expression_p): Remove handling for
      	COMPONENT_REFs.
      
      	PR c++/13243
      	PR c++/12573
      	* g++.dg/template/crash14.C: New test.
      	* g++.dg/template/dependent-expr3.C: Add dg-error markers.
      
      From-SVN: r74637
      Mark Mitchell committed
    • locale_facets.tcc (num_get::do_get(bool&)): Fail as soon as the begins of both… · ca13fb7f
      locale_facets.tcc (num_get::do_get(bool&)): Fail as soon as the begins of both truename and falsename stop to match...
      
      2003-12-15  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/locale_facets.tcc (num_get::do_get(bool&)):
      	Fail as soon as the begins of both truename and falsename
      	stop to match; always leave __beg one position beyond the
      	last char successfully matched.
      	* testsuite/22_locale/num_get/get/char/8.cc: New.
      	* testsuite/22_locale/num_get/get/wchar_t/8.cc: Likewise.
      
      2003-12-15  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/locale_facets.h (_M_widen): Reserve space
      	for all the possible widened chars.
      	* config/locale/generic/ctype_members.cc (_M_initialize_ctype):
      	Compute at construction time all the possible widened chars.
      	(do_widen): Tweak, simplify.
      	* config/locale/gnu/ctype_members.cc: Likewise.
      	* testsuite/performance/narrow_widen_wchar_t.cc: Add tests
      	for the array versions.
      
      From-SVN: r74636
      Paolo Carlini committed
    • rs6000.c (rs6000_output_function_epilogue): Remove handling of obsolete language CHILL. · 3a5c1f60
      
      	* config/rs6000/rs6000.c (rs6000_output_function_epilogue): Remove
      	handling of obsolete language CHILL.
      
      From-SVN: r74634
      Andreas Jaeger committed
    • tree.c (initializer_zerop): Add test for empty set. · e8423af9
      2003-12-15  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
      
      	* tree.c (initializer_zerop): Add test for empty set.
      	* integrate.c (function_cannot_inline_p): Forbid inlining
      	functions calling `longjmp'.
      
      From-SVN: r74633
      Waldek Hebisch committed
    • Fix handling of constructor/destructor of standard substitution: · 374caa50
      	* cp-demangle.c (struct d_standard_sub_info): Define.
      	(d_substitution): Add prefix argument.  Change all callers.
      	Rework handling of standard substitutions to print full name when
      	qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
      	* testsuite/demangle-expected: Add test case.
      
      	Fix handling of negative literal constants:
      	* cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
      	(d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
      	(d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
      	(d_print_comp): Handle D_COMP_LITERAL_NEG.
      	* testsuite/demangle-expected: Add test case.
      
      From-SVN: r74632
      Ian Lance Taylor committed
    • re PR c++/11773 (GCOV misreports coverage for in-class C++ member functions) · 58cd2515
      	PR c++/11773
      	* doc/gcov.texi (Gcov and Optimization): Document inline function
      	behaviour.  Fix some file suffixes.
      
      From-SVN: r74630
      Nathan Sidwell committed
    • class.c (add_method): Disallow destructor for java classes. · f5c28a15
      cp:
      	* class.c (add_method): Disallow destructor for java classes.
      	* decl.c (xref_basetypes): Check java class inheritance.
      	* decl2.c (check_java_method): Skip artificial params.
      testsuite:
      	* g++.dg/other/java1.C: New test.
      
      From-SVN: r74629
      Nathan Sidwell committed
    • re PR c++/13241 ([ABI] Incorrect mangling of template arguments) · 5fd80fbc
      cp:
      	PR c++/13241
      	C++ ABI change. Mangling of symbols in expressions.
      	* mangle.c (write_mangled_name): Add top_level flag. Rework for
      	nested and unnested mangling. Deal with abi version 1 and version
      	2 differences.
      	(write_expression): Adjust write_mangled_name call.
      	(mangle_decl_string): Use write_mangled_name for all non-type decls.
      testsuite:
      	PR c++/13241
      	* g++.dg/abi/mangle18-1.C: New test.
      	* g++.dg/abi/mangle18-2.C: New test.
      
      From-SVN: r74628
      Nathan Sidwell committed
    • [multiple changes] · 209db2bf
      2003-12-15  Robert Dewar  <dewar@gnat.com>
      
      	* exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
      	sec stack size.
      
      2003-12-15  Vincent Celier  <celier@gnat.com>
      
      	* gnatchop.adb: (Error_Msg): Do not exit on error for a warning
      	(Gnatchop): Do not set failure status when reporting the number of
      	warnings.
      
      2003-12-15  Doug Rupp  <rupp@gnat.com>
      
      	* s-ctrl.ads: New file.
      
      	* Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
      
      	* Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
      	(GNATBIND_OBJS): Add ada/s-crtl.o.
      
      	* Makefile.in [VMS]: Clean up ifeq rules.
      
      	* gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
      	a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
      	g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
      	s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
      	s-tasdeb.adb: Update copyright.
      	Import System.CRTL.
      	Make minor modifications to use System.CRTL declared functions instead
      	of importing locally.
      
      2003-12-15  GNAT Script  <nobody@gnat.com>
      
      	* Make-lang.in: Makefile automatically updated
      
      From-SVN: r74627
      Arnaud Charlet committed
    • i386.h (__amd64, __amd64__): Remove duplicates. · c1d5acdb
      2003-12-14  David O'Brien  <obrien@FreeBSD.org>
      	* config/i386/i386.h (__amd64, __amd64__): Remove duplicates.
      (committed as obvious)
      
      From-SVN: r74626
      David O'Brien committed
    • re PR rtl-optimization/10312 (optimizer creates wrong code for loop) · 298a037c
      	PR optimization/10312
      	* gcc.c-torture/execute/20031214-1.c: New.
      
      From-SVN: r74625
      Zdenek Dvorak committed
    • re PR c++/10779 (Error cascade for unknown type in function prototype) · 4bb8ca28
      	* c-common.h (c_parse_error): Declare it.
      	* c-common.c (c_parse_error): New function.
      	* c-parse.y (yyerror): Use it.
      
      	* parser.c (struct cp_parser): Add in_template_argument_list_p.
      	(cp_parser_error): Use c_parse_error.
      	(cp_parser_name_lookup_error): New function.
      	(cp_parser_new): Initialize it.
      	(cp_parser_declarator): Add parenthesized_p parameter.
      	(cp_parser_nested_name_specifier_opt): Use
      	cp_parser_name_lookup_error.
      	(cp_parser_parenthesized_expression_list): Improve comments.
      	(cp_parser_condition): Adjust call to cp_parser_declarator.
      	(cp_parser_template_parameter): Adjust call to
      	cp_parser_parameter_declaration.
      	(cp_parser_template_argument_list): Set
      	in_template_argument_list_p.
      	(cp_parser_explicit_instantiation): Adjust call to
      	cp_parser_declarator.
      	(cp_parser_simple_type_specifier): Remove unncessary code.
      	(cp_parser_using_declaration): Use cp_parser_name_lookup_error.
      	(cp_parser_init_declarator): Handle member function definitions.
      	(cp_parser_direct_declarator): Adjust call to
      	cp_parser_declarator.
      	(cp_parser_type_id): Adjust call to cp_parser_declarator.
      	(cp_parser_parameter_declaration_list): Avoid backtracking where
      	possible.
      	(cp_parser_parameter_declaration): Add parenthesized_p parameter.
      	(cp_parser_function_definition): Remove.
      	(cp_parser_member_declaration): Do not backtrack to look for
      	function definitions.
      	(cp_parser_exception_declaration): Adjust call to
      	cp_parser_declarator.
      	(cp_parser_single_declaration): Handle function definitions via
      	cp_parser_init_declarator.
      	(cp_parser_save_member_function_body): New function.
      
      	PR c++/10779
      	PR c++/12160
      	* g++.dg/parse/error3.C: New test.
      	* g++.dg/parse/error4.C: Likewise.
      	* g++.dg/abi/mangle4.C: Tweak error messages.
      	* g++.dg/lookup/using5.C: Likewise.
      	* g++.dg/other/error2.C: Likewise.
      	* g++.dg/parse/typename5.C: Likewise.
      	* g++.dg/parse/undefined1.C: Likewise.
      	* g++.dg/template/arg2.C: Likewise.
      	* g++.dg/template/ttp3.C: Likewise.
      	* g++.dg/template/type1.C: Likewise.
      	* g++.old-deja/g++.other/crash32.C: Likewise.
      	* g++.old-djea/g++.pt/defarg8.C: Likewise.
      
      From-SVN: r74624
      Mark Mitchell committed
    • Daily bump. · 69f36495
      From-SVN: r74621
      GCC Administrator committed