1. 23 Dec, 2003 12 commits
    • c-common.c (flag_abi_version): Default to 2. · 57702a80
      	* c-common.c (flag_abi_version): Default to 2.
      	* c-cppbuiltin.c (c_cpp_builtins): Define __GXX_ABI_VERSION
      	uniformly for versions above 2.
      	* doc/invoke.texi: Update documentation for -fabi-version.
      
      	* cp-lang.c (cp_expr_size): Return zero for empty classes.
      
      	* cp-tree.h (warn_if_uknown_interface): Remove unused function.
      	* decl2.c (warn_if_unknown_interface): Likewise.
      
      	* g++.dg/abi/macro0.C: New test.
      	* g++.dg/abi/macro1.C: Likewise.
      	* g++.dg/abi/macro2.C: Likewise.
      
      	* g++.dg/abi/bitfield5.C: Add explicit -fabi-version=1 option.
      	* g++.dg/abi/bitfield7.C: Likewise.
      	* g++.dg/abi/dtor2.C: Likewise.
      	* g++.dg/abi/mangle11.C: Likewise.
      	* g++.dg/abi/mangle12.C: Likewise.
      	* g++.dg/abi/mangle14.C: Likewise.
      	* g++.dg/abi/mangle17.C: Likewise.
      	* g++.dg/abi/vbase10.C: Likewise.
      	* g++.dg/abi/vbase14.C: Likewise.
      	* g++.dg/template/qualttp17.C: Likewise.
      
      From-SVN: r74973
      Mark Mitchell committed
    • Copies.java, [...]: New files. · 32a2571b
      2003-12-23  Michael Koch  <konqueror@gmx.de>
      
      	* javax/print/attribute/standard/Copies.java,
      	javax/print/attribute/standard/JobImpressions.java,
      	javax/print/attribute/standard/JobMediaSheets.java,
      	javax/print/attribute/standard/JobPriority.java,
      	javax/print/attribute/standard/NumberOfDocuments.java,
      	javax/print/attribute/standard/NumberOfInterveningJobs.java,
      	javax/print/attribute/standard/NumberUp.java,
      	javax/print/attribute/standard/PagesPerMinuteColor.java,
      	javax/print/attribute/standard/PagesPerMinute.java,
      	javax/print/attribute/standard/QueuedJobCount.java: New files.
      	* Makefile.am (ordinary_java_source_files): Added new files.
      	* Makefile.in: Regenerated.
      
      From-SVN: r74971
      Michael Koch committed
    • re PR c/11995 (Error recovery problem after invalid labelled declaration in c99 mode) · 4ea49dd0
      2003-12-21  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR c/11995
              * gcc.dg/20031223-1.c: New test.
      
      From-SVN: r74970
      Andrew Pinski committed
    • 2003-12-23 Michael Koch <konqueror@gmx.de> · c36d5c04
      	* javax/print/attribute/AttributeSetUtilities.java
      	(verifyCategoryForValue): Renamed from verifyCategoryForAttribute.
      	* javax/print/attribute/HashAttributeSet.java
      	(HashAttributeSet): Call internal add methods, added missing
      	exceptions.
      	(add): Call addInternal, added exceptions to documentation.
      	(addInternal): New method.
      	(addAll): Call addAllInternal, added exception to documentation.
      	(addAllInternal): New method.
      	(clear): Added exception to documentation.
      	(remove): Likewise.
      	* javax/print/attribute/URISyntax.java
      	(serialVersionUID): Fixed value.
      
      From-SVN: r74969
      Michael Koch committed
    • re PR c++/13387 (assignment to base class corrupts subclass) · 5d027e7b
      	PR c++/13387
      	* cp-lang.c (cxx_get_alias_set): Correct logic for a base type.
      
      From-SVN: r74968
      Nathan Sidwell committed
    • rs6000.md: Change many instances of '! · 4b8a63d6
      	* config/rs6000/rs6000.md: Change many instances of '!
      	TARGET_POWERPC64' to 'TARGET_32BIT' when the pattern being guarded
      	was guarded only because it changed CR0 or the carry bit in XER.
      
      From-SVN: r74966
      Geoffrey Keating committed
    • new_allocator.h (new_allocator): Proper allocator class. · d38d4e5d
      
      2003-12-23  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/ext/new_allocator.h (new_allocator): Proper allocator class.
      	(__new_alloc): Delete.
      	* include/ext/malloc_allocator.h (malloc_allocator): Same.
      	(__malloc_alloc): Delete.
       	* include/ext/mt_allocator.h: Same, but weakly.
       	* include/ext/debug_allocator.h: Convert to the new style.
      	* include/ext/pool_allocator.h: Use global new and delete directly.
      	* include/backward/alloc.h: Don't inject malloc_allocator, or
      	debug_allocator.
      	* testsuite/ext/allocators.cc: Minimal fixups for usage of new
      	classes.  Comment out tests with __pool_alloc for now.
      	* testsuite/performance/allocator.cc: Same.
      
      From-SVN: r74965
      Benjamin Kosnik committed
    • re PR rtl-optimization/13394 (noreturn attribute ignored on recursive invokation) · cbf6e52a
      	PR optimization/13394
      	* toplev.c (rest_of_compilation): Move call to
      	check_function_return_warnings right after the sibcall
      	optimization pass.
      
      From-SVN: r74961
      Eric Botcazou committed
    • re PR c/13382 (Type information for const pointer disappears during optimisation.) · b3006337
      	PR c/13382
      	* c-typeck.c (convert_for_assignment): When converting from
      	integral type to pointer type, always call convert.
      
      From-SVN: r74960
      Eric Botcazou committed
    • * doc/invoke.texi: Deprecate -fwritable-strings. · adb83bee
      From-SVN: r74959
      Mark Mitchell committed
    • Daily bump. · 28476563
      From-SVN: r74957
      GCC Administrator committed
    • stl_bvector.h (_Bvector_alloc_base): Eliminate. · 34c87829
      
              * include/bits/stl_bvector.h (_Bvector_alloc_base): Eliminate.
              (_Bvector_base): Inherit directly from word allocator.
              * include/bits/stl_tree.h (_Rb_tree_alloc_base): Eliminate.
              (_Rb_tree_base): Eliminate.
              (_Rb_tree): Inherit directly from node allocator.
              * include/ext/slist (_Alist_alloc_base): Eliminate.
              (_Slist_base): Inherit direcly from node allocator.
      
      From-SVN: r74955
      Matt Austern committed
  2. 22 Dec, 2003 27 commits
    • re PR c++/12862 (Conflicts Between typedefs/enums and Namespace Member Declarations) · 7813d14c
      	* c-common.c (flag_external_templates): Remove.
      	(flag_alt_external_templates): Likewise.
      	* c-common.h (flag_external_templates): Remove.
      	(flag_alt_external_templates): Likewise.
      	* c-opts.c (c_common_handle_option): Unsupport
      	-falt-external-templates and -ftemplates.
      	* doc/invoke.texi: Remove mention of -fexternal-templates and
      	-falt-external-templates.
      
      	* decl.c (start_function): Do not check
      	flag_alt_external_templates or flag_external_templates.
      	* decl2.c (warn_if_unknown_interface): Likewise.
      	* lex.c (extract_interface_info): Likewise.
      	* pt.c (lookup_template_class): Likewise.
      
      	PR c++/12862
      	* name-lookup.c (pushdecl): Look up all namespace-scope entities
      	in their corresponding namespace.
      
      	* g++.old-deja/g++.jason/template18.C: Remove.
      	* g++.old-deja/g++.jason/template37.C: Likewise.
      
      	PR c++/12862
      	* g++.dg/lookup/ns1.C: New test.
      
      From-SVN: r74954
      Mark Mitchell committed
    • re PR target/13466 (-mpowerpc64 causes ICE) · 1c8cfe03
      2003-12-22  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR target/13466
              * config.gcc (powerpc-*-darwin): Remove overridden value of need_64bit_hwint.
      
      From-SVN: r74952
      Andrew Pinski committed
    • numeric_limits.cc: Add _GLIBCXX_ASSERT to dg-options in testcases that use VERIFY. · 941fe801
      
      2003-12-22  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* testsuite/18_support/numeric_limits.cc: Add _GLIBCXX_ASSERT to
      	dg-options in testcases that use VERIFY.
      	* testsuite/23_containers/vector/invalidation/1.cc: Same.
      	* testsuite/23_containers/vector/invalidation/2.cc: Same.
      	* testsuite/23_containers/vector/invalidation/3.cc: Same.
      	* testsuite/23_containers/vector/invalidation/4.cc: Same.
      	* testsuite/23_containers/vector/resize/1.cc: Same.
      	* testsuite/26_numerics/complex_value.cc: Same.
      	* testsuite/27_io/ios_base/storage/1.cc: Same.
      	* testsuite/27_io/ios_base/storage/2.cc: Same.
      	* testsuite/27_io/ios_base/storage/3.cc: Same.
      	* testsuite/27_io/manipulators/standard/char/2.cc: Same.
      	* testsuite/backward/11460.cc: Same.
      	* testsuite/backward/strstream_members.cc: Same.
      
      	* include/ext/hash_set (class hash_multiset): Fix typo.
      
      From-SVN: r74951
      Benjamin Kosnik committed
    • re PR c++/12397 (two-stage name lookup argument shadowed by global type) · 1ffe6573
      	PR c++/12397
      	* typeck.c (finish_class_member_access_expr): Don't tree
      	IDENTIFIER_NODEs as non-dependent expressions.
      
      	PR c++/12397
      	* g++.dg/template/lookup3.C: New test.
      
      From-SVN: r74949
      Mark Mitchell committed
    • 2003-12-22 Thomas Fitzsimmons <fitzsim@redhat.com> · a6444561
      	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
      	(pre_event_handler): Don't dereference NULL focus_obj_ptr.
      
      From-SVN: r74948
      Thomas Fitzsimmons committed
    • re PR c++/5050 (template instantiation depth exceeds/maybe recursion problem) · 92a12fbc
      2003-12-22  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR c++/5050
              * tree.c (cp_start_inlining): Remove.
              (cp_end_inlining): Remove.
              * cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Do not define.
              (LANG_HOOKS_TREE_INLINING_END_INLINING): Do not define.
              * cp-tree.h (cp_start_inlining): Do not declare.
              (cp_end_inlining): Do not declare.
      
              PR c++/5050
      	* g++.dg/template/recurse1.C: New test.
      
      From-SVN: r74947
      Andrew Pinski committed
    • 5.cc: Don't use stdc++.h.gch. · 70a84160
      
      2003-12-22  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* testsuite/27_io/objects/char/5.cc: Don't use stdc++.h.gch.
      	* testsuite/27_io/objects/wchar_t/5.cc: Same.
      	* docs/html/test.html: Add docs for constructing test files that
      	don't use stdc++.h.gch.
      	* scripts/testsuite_flags.in (PCHFLAGS): Move to --cxxpchflags.
      	* testsuite/libstdc++-dg/normal.exp: Compute DEFAULT_CXXFLAGS
      	differently.
      
      	* include/bits/ios_base.h (ios_base::Init::_S_initialized): Remove.
      	* src/ios_init.cc: Same.
      	* config/linker-map.gnu: Same.
      	* testsuite/27_io/ios_base/cons/copy_neg.cc: Adjust line numbers.
      	* testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
      
      From-SVN: r74946
      Benjamin Kosnik committed
    • emit-rtl.c (copy_rtx_if_shared): Add comment about its use of copy_rtx_if_shared_1. · ff954f39
      
              * emit-rtl.c (copy_rtx_if_shared): Add comment about its use of
              copy_rtx_if_shared_1.
              (copy_rtx_if_shared_1): Add comment about what the function does.
      
      From-SVN: r74945
      Andrew Pinski committed
    • re PR libstdc++/13462 (Non-standard conformed type set::pointer) · 67e053df
      2003-12-22  Andrew Pinski  <pinskia@physics.uc.edu>
      
             PR libstdc++/13462
             * include/bits/stl_multiset.h (__gnu_norm::multiset): Define pointer
             as allocator's pointer, likewise for reference, const_pointer, and
             const_reference.
             * include/bits/stl_set.h (__gnu_norm::set): Likewise.
             * include/ext/hash_set (__gnu_ext::hash_set): Likewise.
             (__gnu_ext::hash_multiset): Likewise.
      
      From-SVN: r74944
      Andrew Pinski committed
    • re PR other/13272 (libiberty/lbasename.c has incorrect DIR_SEPARATOR) · 6b309c6e
      	PR debug/13272
      	* Makefile.in (lbasename.o): Depend on filenames.h.
      	* lbasename.c: Include "filenames.h" instead of defining
      	its macros locally.
      
      From-SVN: r74943
      Daniel Jacobowitz committed
    • darwin-misaligned.c: New test. · 3b3ed128
      2003-12-22  Fariborz Jahanian <fjahanian@apple.com>
      
              * gcc.dg/darwin-misaligned.c: New test.
      
      From-SVN: r74942
      Fariborz Jahanian committed
    • c-decl.c (finish_function): Change order of checks. · 67b28863
      2003-12-22  Andrew Pinski  <pinskia@physics.uc.edu>
      
      	* c-decl.c (finish_function): Change order of checks.
      	(c_expand_body): Likewise.
      
      From-SVN: r74941
      Andrew Pinski committed
    • re PR c++/12479 ([3.4 only] System header should not cause -pedantic to error about "extra `;'") · 499b568f
      	PR c++/12479
      	* parser.c (cp_parser_declaration_seq_opt): Only issue "extra ;"
      	pedwarn when not in a system header.
      
      	PR c++/12479
      	* g++.dg/parse/semicolon1.C: New test.
      	* g++.dg/parse/semicolon1.h: Likewise.
      
      From-SVN: r74940
      Mark Mitchell committed
    • Test to check for a valid memory reference of a misaligned DImode memory · fe5597f2
      with -O3 -mpowerpc64.
      
      From-SVN: r74939
      Fariborz Jahanian committed
    • Correct check for legitimate offset when addressing a DImode memory in · 585de9be
      -mpowerpc64.
      
      From-SVN: r74938
      Fariborz Jahanian committed
    • reload1.c: Add reg_reloaded_call_part_clobbered. · e3e9336f
      
      2003-12-22  Dale Johannesen  <dalej@apple.com>
      
              * reload1.c:  Add reg_reloaded_call_part_clobbered.
              (reload_as_needed):  Use it.
              (forget_old_reloads_1):  Ditto.
              (emit_reload_insns):  Ditto.
      
      From-SVN: r74936
      Dale Johannesen committed
    • re PR rtl-optimization/12828 (-floop-optimize is unstable on PowerPC (float to… · aaf3ce3e
      re PR rtl-optimization/12828 (-floop-optimize is unstable on PowerPC (float to int conversion problem))
      
      
      2003-12-21  Dale Johannesen  <dalej@apple.com>
      
              PR optimization/12828
              * loop.c:  Add find_regs_nested to look inside CLOBBER(MEM).
              (scan_loop):  Call it.
              * regclass.c (reg_scan_mark_regs):  Look inside CLOBBER(MEM).
      
      From-SVN: r74935
      Dale Johannesen committed
    • re PR c/9163 (ICE in genrtl_compound_stmt at c-semantics.c:776 with c99 mode and checking enabled) · af3fbed1
      2003-12-22  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR c/9163
              * c-decl.c (poplevel): Only set DECL_INITIAL of a current function
              if it is non-null.
              (finish_function): Check for error_mark_node or null on DECL_RESULT and
              DECL_RESULT of fndecl.
              (c_expand_body): Only expand when DECL_INITIAL of fndecl is not
              error_mark_node and not null.
      
      2003-12-22  Andrew Pinski  <pinskia@physics.uc.edu>
      
             PR c/9163
             * gcc.dg/20031222-1.c: New test.
      
      From-SVN: r74934
      Andrew Pinski committed
    • cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports dynamic arrays. · 2d6c4025
      	* cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
      	dynamic arrays.
      	(struct d_operator_info): Add len field.
      	(struct d_builtin_type_info): Add len and java_len fields.
      	(struct d_standard_sub_info): Add simple_len, full_len, and
      	set_last_name_len fields.
      	(struct d_comp): Add len field to s_string.
      	(struct d_info): Add send, did_subs, and expansion fields.
      	(d_append_string_constant): Define.
      	(d_append_string): Remove.  Change all users to use
      	d_append_string_constant or d_append_buffer instead.
      	(d_make_sub): Add len parameter.  Change all callers.
      	(d_name): Increase expansion when substituting std::.
      	(d_unqualified_name): Increase expansion for an operator.
      	(d_number): Don't use multiplication for negative numbers.
      	(d_identifier): Make sure there are enough characters in the
      	string for the specified length.  Adjust expansion for an
      	anonymous namespace.
      	(d_operators): Initialize len field.
      	(d_special_name, d_ctor_dtor_name): Increase expansion.
      	(d_builtin_types): Initialize len and java_len fields.
      	(d_type): Increase expansion for a builtin type.
      	(d_cv_qualifiers): Increase expansion for each qualifier.
      	(d_bare_function_type): Decrease expansion when removing single
      	void parameter.
      	(d_template_param): Increment did_subs.
      	(d_expression): Increase expansion for an operator.
      	(d_expr_primary): Decrease expansion for a type we will print
      	specially.
      	(standard_subs): Initialize new fields.
      	(d_substitution): Increment did_subs when doing a normal
      	substitution.  Increase expansion for a special substitution.
      	(d_print): Add estimate parameter.  Change all callers.
      	(d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
      	(d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
      	(d_print_java_identifier): Rename from d_print_identifier.  Handle
      	only Java case.  Change caller.
      	(d_init_info): Change return type to void.  Change all callers.
      	Initialize send, did_subs, and expansion fields.  Do not
      	initialize comps and subs fields.
      	(d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
      	arrays on stack.  Make an estimate of the length of the demangled
      	name.  Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
      	(is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
      	subs arrays on stack.
      
      From-SVN: r74933
      Ian Lance Taylor committed
    • locale_facets.tcc (num_get::_M_extract_int, [...]): According to 22.2.2.1.2... · a827daa0
      2003-12-22  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/locale_facets.tcc (num_get::_M_extract_int,
      	num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
      	first look for decimal_point and thousands_sep, when parsing
      	sign, leading zeros (and 0, Ox, 0X for integer types) too.
      	* testsuite/22_locale/num_get/get/char/12.cc: New.
      	* testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
      
      	* testsuite/22_locale/num_get/get/char/11.cc: Add a comment.
      	* testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
      
      From-SVN: r74932
      Paolo Carlini committed
    • re PR c++/13438 (internal compiler error: tree check: expected identifier_node,… · 9e62871e
      re PR c++/13438 (internal compiler error: tree check: expected identifier_node, have integer_cst in c_parse_error at c-common.c:5921)
      
      	PR c++/13438
      	* cp-tree.h (cp_tree_index): Remove CPTI_RECORD_TYPE,
      	CPTI_UNION_TYPE, CPTI_ENUM_TYPE.
      	(record_type_node): Remove.
      	(union_type_node): Likewise.
      	(enum_type_node): Likewise.
      	* decl.c: Remove mention of above tree nodes in comment.
      	* lex.c (cxx_init): Do not assign to record_type_node,
      	union_type_node, or enum_type_node.  Simplify handling of
      	class_type_node.
      
      	PR c++/13438
      	* g++.dg/parse/error8.C: New test.
      
      From-SVN: r74931
      Mark Mitchell committed
    • Patch from Dan Nicolaescu · 439a7e54
      * rtl.h (dump_rtx_statistics): Declare it.
      * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
      rtx_alloc_sizes): New static vars.
      (rtx_alloc, rtvec_alloc): Update them.
      (dump_rtx_statistics): New function.
      * toplev.c (finalize): Call it.
      * ggc-page.c (struct globals): Fix comments. Add new member
      total_allocated_per_order.
      (ggc_alloc): Keep track of the total allocated memory.
      (ggc_print_statistics): Clarify message. Print total allocated
      memory stats.
      * configure.in (gather-detailed-mem-stats): New flag.
      * configure: Regenerate.
      * config.in: Regenerate.
      * doc/install.texi (Configuration): Document
      --enable-gather-detailed-mem-stats.
      
      From-SVN: r74930
      Dan Nicolaescu committed
    • re PR c++/11554 (Warning about reordering of initializers doesn't mention location of constructor) · d9dd2c4e
      	PR c++/11554
      	* init.c (sort_mem_initializers): Add warning.
      
      	PR c++/11554
      	* testsuite/g++.dg/warn/ctor-init-1.C: New test.
      
      From-SVN: r74926
      Mark Mitchell committed
    • system.h (CONVERT_HARD_REGISTER_TO_SSA_P): Poison. · c6a515f4
      	* system.h (CONVERT_HARD_REGISTER_TO_SSA_P): Poison.
      	* config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Remove.
      
      From-SVN: r74925
      Kazu Hirata committed
    • 20020910-1.c: Disable if __INT_MAX is too small. · b665cdce
      	* gcc.c-torture/compile/20020910-1.c: Disable if __INT_MAX is
      	too small.
      	* gcc.c-torture/compile/930217-1.c: Likewise.
      	* gcc.c-torture/compile/930513-1.c: Likewise.
      	* gcc.c-torture/execute/920908-2.c: Likewise.
      	* gcc.c-torture/execute/921204-1.c: Likewise.
      	* gcc.c-torture/execute/930621-1.c: Likewise.
      	* gcc.c-torture/execute/930630-1.c: Likewise.
      	* gcc.c-torture/execute/931031-1.c: Likewise.
      	* gcc.c-torture/execute/980602-2.c: Likewise.
      	* gcc.c-torture/execute/comp-goto-1.c: Likewise.
      	* gcc.c-torture/execute/compndlit-1.c: Likewise.
      	* gcc.c-torture/execute/extzvsi.c: Likewise.
      	* gcc.c-torture/unsorted/ext.c: Likewise.
      
      From-SVN: r74923
      Kazu Hirata committed
    • Daily bump. · 73b9c9bf
      From-SVN: r74921
      GCC Administrator committed
  3. 21 Dec, 2003 1 commit