1. 23 Feb, 2004 14 commits
    • malloc_allocator.h: Add operators ==, !=. · 20d0a40e
      
      2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/ext/malloc_allocator.h: Add operators ==, !=.
      	* include/ext/new_allocator.h: Add operators ==, !=.
      	* include/ext/mt_allocator.h (__mt_alloc::tune): New.
      	(__mt_alloc::_S_get_options): New.
      	(__mt_alloc::_S_set_options): New.
      	(__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
      	(__mt_alloc::_S_no_of_bins): To _S_bin_size.
      	Move functions out of line, simplify, format.
      	* src/allocator.cc: Simplify explicit instantiations.
      	* include/bits/allocator.h: Tweak.
      
      From-SVN: r78315
      Benjamin Kosnik committed
    • malloc_allocator.h: Add operators ==, !=. · f263b26e
      
      2004-02-20  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/ext/malloc_allocator.h: Add operators ==, !=.
      	* include/ext/new_allocator.h: Add operators ==, !=.
      	* include/ext/mt_allocator.h (__mt_alloc::tune): New.
      	(__mt_alloc::_S_get_options): New.
      	(__mt_alloc::_S_set_options): New.
      	(__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
      	(__mt_alloc::_S_no_of_bins): To _S_bin_size.
      	Move functions out of line, simplify, format.
      	* src/allocator.cc: Simplify explicit instantiations.
      	* include/bits/allocator.h: Tweak.
      
      From-SVN: r78314
      Benjamin Kosnik committed
    • re PR c++/14156 (no warning for address of parameter) · 2b0c1c56
      2004-02-23  Andrew Pinski  <pinskia@physics.uc.edu>
      
              PR c/14156
              * gcc.dg/20040223-1.c: New test.
      
      From-SVN: r78313
      Andrew Pinski committed
    • re PR c++/14156 (no warning for address of parameter) · a2f1f4c3
              PR c/14156
              * c-typeck.c (c_expand_return): Change check for VAR_DECL
              to use DECL_P instead.
      
              PR c++/14156
              * typeck.c (maybe_warn_about_returning_address_of_location):
              Change check for VAR_DECL to use DECL_P instead.
      
      From-SVN: r78312
      Andrew Pinski committed
    • linux.h (OS_MISSING_POWERPC64): Define. · aa5fa0fc
      
      	* config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
      	* config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
      
      From-SVN: r78309
      Andrew Pinski committed
    • re PR c++/14106 ([testcase] ICE on template func instanciation: stor-layout.c:1569) · 887d68d9
      	PR c++/14106
      	* g++.dg/ext/typeof9.C: New test.
      
      From-SVN: r78304
      Kriang Lerdsuwanakij committed
    • Makefile.in (opts.o): Depend on target.h. · 221ee7c9
      	* Makefile.in (opts.o): Depend on target.h.
      	* opts.c (decode_options): Use targetm.default_short_enums
      	instead of DEFAULT_SHORT_ENUMS.
      	* system.h (DEFAULT_SHORT_ENUMS): Poison.
      	* target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
      	(TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
      	* target.h (gcc_target): Add default_short_enums.
      	* config/cris/cris.h: Remove a comment about
      	DEFAULT_SHORT_ENUMS.
      	* config/ip2k/ip2k.h: Likewise.
      	* doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
      	TARGET_DEFAULT_SHORT_ENUMS.  Update the description.
      
      From-SVN: r78303
      Kazu Hirata committed
    • re PR c++/14250 (switch() does not seem to see operator int() in template class) · 9bdfe704
      	PR c++/14250
      	* g++.dg/other/switch1.C: New test.
      
      From-SVN: r78295
      Giovanni Bajo committed
    • re PR c/14188 (Suggestion: improve warning message for call through incompatible type) · bba745c1
      	PR c/14188
      	* builtins.c (expand_builtin_va_arg): Emit an informative message
      	if a trap is generated.
      	* c-typeck.c (build_function_call): Likewise.
      
      Co-Authored-By: Falk Hueffner <falk@debian.org>
      
      From-SVN: r78294
      Eric Botcazou committed
    • re PR c++/14250 (switch() does not seem to see operator int() in template class) · 29f4ceab
      	PR c++/14250
      	* cvt.c (build_expr_type_conversion): Type must be complete before
      	looking up for conversions.
      
      From-SVN: r78293
      Giovanni Bajo committed
    • [multiple changes] · 6871ba5f
      2004-02-23  Ed Schonberg  <schonberg@gnat.com>
      
      	* exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
      	protected operations if original subprogram is flagged as eliminated.
      	(Expand_N_Subprogram_Body): For a protected operation, create
      	discriminals for next operation before checking whether the operation
      	is eliminated.
      
      	* exp_ch9.adb (Expand_N_Protected_Body,
      	Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
      	for internal protected operations if the original subprogram is
      	eliminated.
      
      	* sem_elim.adb (Check_Eliminated): Handle properly protected operations
      	declared in a single protected object.
      
      2004-02-23  Vincent Celier  <celier@gnat.com>
      
      	* prj-attr.adb: Make attribute Builder'Executable an associative array,
      	case insensitive if file names are case insensitive, instead of a
      	standard associative array.
      
      	* prj-attr.adb (Initialize): For 'b' associative arrays, do not set
      	them as case insensitive on platforms where the file names are case
      	sensitive.
      
      	* prj-part.adb (Parse_Single_Project): Make sure, when checking if
      	project file has already been parsed that canonical path are compared.
      
      2004-02-23  Robert Dewar  <dewar@gnat.com>
      
      	* sinput-c.ads: Correct bad unit title in header
      
      	* freeze.adb: Minor reformatting
      
      2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
      
      	* trans.c (tree_transform, case N_Procedure_Call_Statement): For
      	nonaddressable COMPONENT_REF that is removing padding that we are
      	taking the address of, take the address of the padded record instead
      	if item is variable size.
      
      From-SVN: r78292
      Arnaud Charlet committed
    • re PR c++/14143 (Overeager ADL) · 615a5ba6
      	PR c++/14143
      	* g++.dg/template/koenig5.C: New test.
      
      From-SVN: r78288
      Giovanni Bajo committed
    • re PR c++/14143 (Overeager ADL) · 146d3c99
      	PR c++/14143
      	* name-lookup.c	(arg_assoc_class): Don't look into template
      	arguments if it is not a primary template.
      
      From-SVN: r78287
      Giovanni Bajo committed
    • Daily bump. · c5f7ba9e
      From-SVN: r78284
      GCC Administrator committed
  2. 22 Feb, 2004 9 commits
  3. 21 Feb, 2004 13 commits
    • * libsupc++/vterminate.cc · afc3bb58
      	(__gnu_cxx::__verbose_terminate_handler): Guard against recursive
      	calls to terminate.
      	* src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
      
      From-SVN: r78235
      Mark Mitchell committed
    • testsuite_hooks.cc (__gnu_test::set_memory_limits): Do not set RLIMIT_AS on HP-UX. · e1efc7a0
      	* testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
      	not set RLIMIT_AS on HP-UX.
      
      From-SVN: r78233
      Mark Mitchell committed
    • i386.c (standard_80387_constant_p): Also prefer the x87's load constant… · 22cc69c4
      i386.c (standard_80387_constant_p): Also prefer the x87's load constant instructions when optimizing for size.
      
      
      	* config/i386/i386.c (standard_80387_constant_p): Also prefer
      	the x87's load constant instructions when optimizing for size.
      
      From-SVN: r78231
      Roger Sayle committed
    • combine.c (SHIFT_COUNT_TRUNCATED): Remove. · bee07d3f
      	* combine.c (SHIFT_COUNT_TRUNCATED): Remove.
      	* defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
      	* expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
      	* fold-const.c: Likewise.
      	* simplify-rtx.c: Likewise.
      
      From-SVN: r78230
      Kazu Hirata committed
    • combine.c (can_combine_p): Don't ignore SETs marked with REG_EH_REGION notes. · da6fdad3
      	* combine.c (can_combine_p): Don't ignore SETs marked with
      	REG_EH_REGION notes.
      	(try_combine): When attemting to fix unrecognized insns, don't
      	split a PARALLEL that contains the original i2.
      
      From-SVN: r78220
      Alan Modra committed
    • locale_facets.h (class money_base): Add { _S_minus, _S_zero, _S_end } enum, _S_atoms. · fe932e50
      2004-02-21  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/locale_facets.h (class money_base): Add { _S_minus,
      	_S_zero, _S_end } enum, _S_atoms.
      	(struct __moneypunct_cache<>): Parameterize on _Intl too; add
      	_M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
      	_M_negative_sign_size, _M_atoms; tweak constructor consistently.
      	(__moneypunct_cache<>::~__moneypunct_cache): Update.
      	(__moneypunct_cache<>::_M_cache): Fill the cache.
      	(class moneypunct): Tweak __cache_type typedef.
      	(class money_put): Inherit from money_base too; tweak declaration
      	of _M_insert, now parameterized on _Intl.
      	* include/bits/locale_facets.tcc
      	(struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
      	(money_put<>::_M_insert): Update definition to use the cache;
      	call reserve on __res to avoid multiple reallocations.
      	(money_put<>::do_put(long double),
      	money_put<>::do_put(const string_type&): Update calls of _M_insert.
      	* config/locale/generic/monetary_members.cc
      	(moneypunct<char, true>::_M_initialize_moneypunct,
      	moneypunct<char, false>::_M_initialize_moneypunct,
      	moneypunct<wchar_t, true>::_M_initialize_moneypunct,
      	moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
      	* config/locale/gnu/monetary_members.cc: Likewise.
      	* config/locale/gnu/monetary_members.cc
      	(moneypunct<wchar_t, true>::~moneypunct(),
      	moneypunct<wchar_t, false>::~moneypunct()): Likewise.
      	* src/globals_locale.cc: Tweak fake_money_cache_c.
      	* src/locale-inst.cc: Add instantiations for
      	money_put::_M_insert<false> and money_put::_M_insert<true> and
      	__moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
      	* src/locale_facets.cc: Define money_base::_S_atoms.
      	* src/locale_init.cc: Update placement new of
      	__moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
      	__moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
      
      	* config/locale/generic/numeric_members.cc: Clean up.
      	* config/locale/gnu/numeric_members.cc: Likewise.
      	* testsuite/22_locale/money_put/put/char/1.cc: Likewise.
      	* testsuite/22_locale/money_put/put/char/2.cc: Likewise.
      	* testsuite/22_locale/money_put/put/char/3.cc: Likewise.
      	* testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
      	* testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
      	* testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
      
      From-SVN: r78216
      Paolo Carlini committed
    • darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to… · 8bb418a3
      darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
      
      [gcc/ChangeLog]
      2004-02-21  Ziemowit Laski  <zlaski@apple.com>
      
              * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
              SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
              * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
              * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
              (vector, pixel, bool): #define to __vector, __pixel and __bool.
              (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
              portion of header.
              (__altivec_link_error_invalid_argument): Remove prototype; will use
              __builtin_altivec_compiletime_error("vec_*") instead.
              (vec_*): Fix/complete set of available operation overloads given the
              existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
              cv-correctness of pointer arguments; in C, always check for correct
              argument types before macro expansion.
              * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
              defining Darwin/PowerPC-specific '-f[no-]altivec' and
              '-W[no-]altivec-long-deprecated' switches.
              * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
              '__vector', '__pixel' and '__bool' macros using
              '__attribute__((altivec(...)))' types.
              * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
              bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
              bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
              New type nodes.
              (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
              handling '-W[no-]altivec-long-deprecated'.
              (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
              (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
              altivec_expand_dst_builtin): Remove casts from integer literals.
              (altivec_expand_builtin): Likewise; handle expansion of new
              '__builtin_altivec_compiletime_error' function.
              (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
              types, and make them distinct from other vector types; register
              '__builtin_altivec_compiletime_error' function.
              (print_operand): For 'P', print a full target register name instead of
              merely its number.
              (rs6000_attribute_table): Add "altivec" attribute.
              (rs6000_handle_altivec_attribute): New function.
              * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
              '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
              maps to).
              (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
              declare.
              (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
      
      [gcc/testsuite/ChangeLog]
      2004-02-21  Ziemowit Laski  <zlaski@apple.com>
      
              * g++.dg/ext/altivec-1.C: Generalize target triple.
              * g++.dg/ext/altivec-2.C: New test case.
              * g++.dg/ext/altivec_check.h: New file.
              * gcc.dg/altivec-1.c: Generalize target triple;
              include altivec_check.h and call altivec_check().
              * gcc.dg/altivec-[2-5].c: Generalize target triple.
              * gcc.dg/altivec-6.c: New test case.
              * gcc.dg/altivec-[7-9].c: Generalize target triple; add
              type casts as needed.
              * gcc.dg/altivec-10.c: Include altivec_check.h and call
              altivec_check().
              * gcc.dg/altivec-12.c: New test case.
              * gcc.dg/altivec-varargs-1.c: Generalize target triple;
              include altivec_check.h and call altivec_check().
              * gcc.dg/altivec_check.h: New file.
      
      From-SVN: r78215
      Ziemowit Laski committed
    • Combine 2 redundant splitters into one. · 06a419ff
      * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
      check.
      (shift_mix4left+2): Delete redundant pattern.
      
      From-SVN: r78213
      James E Wilson committed
    • target-supports.exp (check_alias_available): Don't mangle function `g' in test program. · 54a47870
      	* lib/target-supports.exp (check_alias_available): Don't mangle
      	function `g' in test program.
      
      From-SVN: r78208
      Kaveh R. Ghazi committed
    • target-supports.exp (check_profiling_available): Check argument to determine… · 0d856ba2
      target-supports.exp (check_profiling_available): Check argument to determine whether we support a profiling type.
      
      	* lib/target-supports.exp (check_profiling_available): Check
      	argument to determine whether we support a profiling type.
      	* lib/gcc-dg.exp (dg-require-profiling): Pass argument to
      	check_profiling_available.
      	* g++.dg/bprob/bprob.exp: Likewise
      	* g77.dg/bprob/bprob.exp: Likewise.
      	* gcc.misc-tests/bprob.exp: Likewise.
      	* g++.old-deja/g++.law/profile1.C: Pass profiling type to
      	dg-require-profiling and delete expected error handling.
      	* gcc.dg/20021014-1.c: Likewise.
      	* gcc.dg/nest.c: Likewise.
      
      From-SVN: r78206
      Kaveh R. Ghazi committed
    • alias.c (OUTGOING_REGNO): Don't define the default. · d220de0e
      	* alias.c (OUTGOING_REGNO): Don't define the default.
      	* builtins.c (OUTGOING_REGNO): Likewise.
      	(INCOMING_REGNO): Likewise.
      	(apply_args_register_offset): Always use OUTGOING_REGNO.
      	* combine.c (OUTGOING_REGNO): Likewise.
      	* sibcall.c (OUTGOING_REGNO): Likewise.
      	* defaults.h (INCOMING_REGNO): Provide the default.
      	(OUTGOING_REGNO): Likewise.
      
      From-SVN: r78203
      Kazu Hirata committed
    • params.def (max-peeled-insns, [...]): Set to 400. · 701ad47e
      
      	* params.def (max-peeled-insns, max-completely-peeled-insns,
      	max-once-peeled-insns): Set to 400.
      
      From-SVN: r78201
      Jan Hubicka committed
    • Daily bump. · 5a0df468
      From-SVN: r78198
      GCC Administrator committed
  4. 20 Feb, 2004 4 commits