Commit Graph

56813 Commits

Author SHA1 Message Date
James E Wilson 3638733b62 Out-of-date comments noticed while looking at PR 169.
* calls.c (preompute_arguments): Update comment.

From-SVN: r78357
2004-02-23 23:35:42 -08:00
James E Wilson 69e9762e61 Testcase for PR 169.
* gcc.c-torture/execute/20040223-1.c: New.

From-SVN: r78356
2004-02-23 23:34:30 -08:00
Ian Lance Taylor dbd6ec2bdc * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
From-SVN: r78355
2004-02-24 06:42:26 +00:00
Ian Lance Taylor 80a19ac825 cp-demangle.c (d_print_comp): Don't push more than one of the same CV-qualifier on the top of the stack.
* cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
	push more than one of the same CV-qualifier on the top of the
	stack.
	(d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
	move the CV-qualifiers to apply to the element type instead.
	(d_print_array_type): When checking the modifiers, keep looking
	past ones which have been printed already.
	* testsuite/demangle-expected: Add three test cases.

From-SVN: r78354
2004-02-24 06:32:16 +00:00
Ian Lance Taylor e8ed4ac21e cp-demangle.c (__cxa_demangle): Adjust last patch to handle empty string correctly.
* cp-demangle.c (__cxa_demangle): Adjust last patch to handle
	empty string correctly.

From-SVN: r78353
2004-02-24 04:02:22 +00:00
Kazu Hirata fa0ac78a27 * et-forest.c: Replace et_occurences with et_occurrences.
From-SVN: r78351
2004-02-24 03:46:42 +00:00
Kazu Hirata 6d4e0ecc0e cfgloop.h, [...]: Replace iv_analyse with iv_analyze.
* cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
	with iv_analyze.

From-SVN: r78350
2004-02-24 03:43:59 +00:00
Kelley Cook 9e200aafa5 i386.c: Rename pni to sse3.
2004-02-23  Kelley Cook  <kcook@gcc.gnu.org>

	* config/i386/i386.c: Rename pni to sse3.
	* config/i386/i386.h: Likewise.
        * config/i386/i386.md: Likewise.
	* config/i386/pmmintrin.h: Likewise.
	* doc/extend.texi: Likewise.
	* doc/invoke.texi: Likewise.

From-SVN: r78349
2004-02-23 19:27:11 -08:00
Ian Lance Taylor 4a368ffd95 cp-demangle.c (__cxa_demangle): It is not an error if status is not NULL.
2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>

	* cp-demangle.c (__cxa_demangle): It is not an error if status is
	not NULL.  It is an error if the mangled name is the same as a
	built-in type name.
	(main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
	than cplus_demangle_v3.

From-SVN: r78348
2004-02-24 02:49:24 +00:00
Ian Lance Taylor 8ad1c80ea8 dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and the associated #define of...
* dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
	the associated #define of RETURN_ON_ALLOCATION_FAILURE.

From-SVN: r78347
2004-02-24 02:32:50 +00:00
Ian Lance Taylor 795b4c374c dyn-string.h: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and the associated #defines.
* dyn-string.h: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
	the associated #defines.

From-SVN: r78346
2004-02-24 02:32:30 +00:00
GCC Administrator bbb00ead7e Daily bump.
From-SVN: r78340
2004-02-24 00:16:12 +00:00
Kazu Hirata 66f6c39e46 Remove support for fwritable-strings-1.c.
From-SVN: r78337
2004-02-23 23:39:48 +00:00
Zack Weinberg 3521b33c2f Remove -fwritable-strings.
gcc/
	Remove -fwritable-strings.
	* c-common.c (fix_string_type): Don't check
	flag_writable_strings.
	(fix_string_type): Likewise.
	* c-opts.c (set_std_c89): Don't initialize
	flag_writable_strings.
	(set_std_c99): Likewise.
	* common.opt (fwritable-strings): Remove.
	* flags.h: Remove the external declaration of
	flag_writable_strings.
	* opts.c (common_handle_option) <OPT_fwritable_strings>:
	Remove.
	* toplev.c (flag_writable_strings): Remove.
	(f_options): Remove an entry for writable-strings.
	* varasm.c (const_hash_1) <STRING_CST>: Don't check
	flag_writable_strings.
	(compare_constant) <STRING_CST>: Likewise.
	(build_constant_desc): Likewise.
	* config/darwin.c (machopic_select_section): Likewise.
	* config/arm/arm.c (AOF_ASSEMBLER): Likewise.
	* config/arm/pe.c (arm_pe_encode_section_info): Likewise.
	* config/iq2000/iq2000.c (iq2000_select_section): Likewise.
	* config/mips/mips.c (mips_select_section): Likewise.
	(mips_encode_section_info): Likewise.
	* config/pa/pa.c (pa_select_section): Likewise.
	* config/pa/pa.h (TEXT_SPACE_P): Likewise.
	* config/v850/v850.c (v850_select_section): Likewise.
	* doc/invoke.texi (-fwritable-strings): Remove.
	(-fno-const-strings): Don't mention -fwritable-strings.
	* doc/trouble.texi: Don't mention -fwritable-strings.

gcc/cp/
	* decl.c (cxx_init_decl_processing): Don't check
	flag_writable_strings.

gcc/testsuite/
	* gcc.dg/fwritable-strings-1.c: Remove.

Co-Authored-By: Kazu Hirata <kazu@cs.umass.edu>

From-SVN: r78333
2004-02-23 21:43:18 +00:00
Zack Weinberg eac8a696d5 config.sub, [...]: Replace with forwarding scripts which invoke the master copies in the top level.
2004-02-22  Zack Weinberg <zack@codesourcery.com>
	    Nathanael Nerode <neroden@twcny.rr.com>
	    Alexandre Oliva <aoliva@redhat.com>

boehm-gc:
libjava/libltdl:
	* config.sub, config.guess: Replace with forwarding scripts
	which invoke the master copies in the top level.

From-SVN: r78332
2004-02-23 20:53:55 +00:00
Nathanael Nerode eb6bddf60c * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
From-SVN: r78331
2004-02-23 20:29:37 +00:00
Nathanael Nerode 47935194cf acinclude.m4: Remove old no-executables workaround; add new no-executables workaround.
* acinclude.m4: Remove old no-executables workaround;
	add new no-executables workaround.
	* aclocal.m4: Regenerate.
	* configure.in: Change prereqs to autoconf 2.57.
	* configure: Regenerate with autoconf 2.57.

From-SVN: r78330
2004-02-23 20:26:09 +00:00
Matt Austern 4fd1ff2bdb darwin.h (SUBTARGET_OPTIONS): Add -mmacosx= option.
* config/darwin.h (SUBTARGET_OPTIONS): Add -mmacosx= option.
	(macosx_version_min_required): Declare global variable.
	* config/darwin-protos.h (darwin_parse_macosx_version_name): Declare.
	* config/darwin.c (macosx_version_min_required): Define variable.
	(darwin_macosx_vers_tbl): Define. Table mapping text strings of
	OS versions to numerical codes.
	(darwin_parse_macosx_version_name): Define.  Parse -mmacosx=,
	set macosx_version_min_required appropriately.
	* config/i386/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
	Invoke darwin_parse_macosx_version_name.
	* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Add
	darwin_parse_macosx_version_name to Darwin option handling.
	* doc/invoke.texi (-mmacosx=): Document.

From-SVN: r78329
2004-02-23 19:49:23 +00:00
Benjamin Kosnik 6f94dea785 vterminate.cc (__gnu_cxx::__verbose_terminate_handler): Only use fputs, not write.
2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>

	* libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
	Only use fputs, not write.

From-SVN: r78327
2004-02-23 19:17:06 +00:00
Dale Johannesen e074089354 rs6000.md (movsf_hardfloat): Add POWER form of nop.
2004-02-23  Dale Johannesen  <dalej@apple.com>

	* config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
	(movdf_hardfloat64):  Ditto.
	(movdf_softfloat64):  Ditto.

From-SVN: r78325
2004-02-23 18:54:37 +00:00
Fariborz Jahanian e91fa876a6 config/rs6000/rs6000.c (function_arg): call to rs6000_mixed_function_arg for...
config/rs6000/rs6000.c (function_arg): call to
rs6000_mixed_function_arg for DFmode moved to allow
normal DFmode incoming register assignment.
OKed by David Edehlson.

From-SVN: r78323
2004-02-23 18:40:46 +00:00
Dale Johannesen ae6669e727 rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
2004-02-23  Dale Johannesen  <dalej@apple.com>

	* config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
	(movdf_hardfloat64):  Ditto.

From-SVN: r78322
2004-02-23 18:36:56 +00:00
Kazu Hirata 2a9f2ad3a5 convert.c, [...]: Update copyright.
* convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
	config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
	copyright.

From-SVN: r78318
2004-02-23 17:02:51 +00:00
Nathanael Nerode d38d600314 configure.in: Use NCN_TARGET_NONCANONICAL and friends.
* configure.in: Use NCN_TARGET_NONCANONICAL and friends.
	* configure: Regenerate.
	* Makefile.am: Use target_noncanonical variable from configure.
	* Makefile.in: Regenerate.
	* include/Makefile.in: Regenerate.

From-SVN: r78317
2004-02-23 16:19:20 +00:00
Benjamin Kosnik 20d0a40e83 malloc_allocator.h: Add operators ==, !=.
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
2004-02-23 15:42:28 +00:00
Benjamin Kosnik f263b26e17 malloc_allocator.h: Add operators ==, !=.
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
2004-02-23 15:41:43 +00:00
Andrew Pinski 2b0c1c5623 re PR c++/14156 (no warning for address of parameter)
2004-02-23  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/14156
        * gcc.dg/20040223-1.c: New test.

From-SVN: r78313
2004-02-23 07:27:49 -08:00
Andrew Pinski a2f1f4c3f6 re PR c++/14156 (no warning for address of parameter)
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
2004-02-23 07:22:04 -08:00
Andrew Pinski aa5fa0fc22 linux.h (OS_MISSING_POWERPC64): Define.
* config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
	* config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.

From-SVN: r78309
2004-02-23 06:54:11 -08:00
Kriang Lerdsuwanakij 887d68d9e9 re PR c++/14106 ([testcase] ICE on template func instanciation: stor-layout.c:1569)
PR c++/14106
	* g++.dg/ext/typeof9.C: New test.

From-SVN: r78304
2004-02-23 14:12:56 +00:00
Kazu Hirata 221ee7c920 Makefile.in (opts.o): Depend on target.h.
* 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
2004-02-23 14:10:58 +00:00
Giovanni Bajo 9bdfe70405 re PR c++/14250 (switch() does not seem to see operator int() in template class)
PR c++/14250
	* g++.dg/other/switch1.C: New test.

From-SVN: r78295
2004-02-23 12:44:22 +00:00
Eric Botcazou bba745c19d re PR c/14188 (Suggestion: improve warning message for call through incompatible type)
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
2004-02-23 12:41:43 +00:00
Giovanni Bajo 29f4ceab97 re PR c++/14250 (switch() does not seem to see operator int() in template class)
PR c++/14250
	* cvt.c (build_expr_type_conversion): Type must be complete before
	looking up for conversions.

From-SVN: r78293
2004-02-23 12:40:59 +00:00
Arnaud Charlet 6871ba5ffc [multiple changes]
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
2004-02-23 12:17:13 +01:00
Giovanni Bajo 615a5ba6b1 re PR c++/14143 (Overeager ADL)
PR c++/14143
	* g++.dg/template/koenig5.C: New test.

From-SVN: r78288
2004-02-23 05:13:23 +00:00
Giovanni Bajo 146d3c99f0 re PR c++/14143 (Overeager ADL)
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
2004-02-23 05:10:37 +00:00
GCC Administrator c5f7ba9ee7 Daily bump.
From-SVN: r78284
2004-02-23 00:16:11 +00:00
Jakub Jelinek c2cd64b5a9 gcov-io.c (gcov_open): Use open + fdopen instead of fopen.
* gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
	fopen.
	* libgcov.c: Include sys/stat.h.
	* config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
	* config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
	* config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
	* config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.

From-SVN: r78281
2004-02-23 00:18:53 +01:00
Kazu Hirata fcfcb20e67 * reorg.c: Remove comments about dead ports.
From-SVN: r78280
2004-02-22 22:33:12 +00:00
Christopher Faylor 56d03a4010 config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify extra host object file when...
* config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify extra
host object file when targetting cygwin rather than generic object files.

From-SVN: r78278
2004-02-22 21:50:52 +00:00
Josef Zlomek 5e20bdd729 backport: tree-inline.c (insert_decl_map): New.
Merge from tree-ssa:
	2003-11-20  Richard Henderson  <rth@redhat.com>

		* tree-inline.c (insert_decl_map): New.
		(remap_decl, remap_type, remap_block, copy_body_r,
		initialize_inlined_parameters, declare_return_variable,
		remap_save_expr): Use it.

	* function.c (copy_body_r): Add mapping from id->ret_label to
	id->ret_label.  Revert test for ret_label.

From-SVN: r78271
2004-02-22 18:48:42 +00:00
Jakub Jelinek 4112be4ad3 genoutput.c (process_template): Strip trailing whitespace in @ templates and issue a warning if there was any.
* genoutput.c (process_template): Strip trailing whitespace in @
	templates and issue a warning if there was any.

From-SVN: r78270
2004-02-22 19:39:06 +01:00
Paolo Carlini 20da06efdc locale_facets.tcc (money_put<>::_M_insert): Restructure formatting of value component...
2004-02-22  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (money_put<>::_M_insert):
	Restructure formatting of value component, first dealing with
	the non-decimal digits; use reserve.

2004-02-22  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.h (class money_get): Inherit
	from money_base too; tweak declaration of _M_extract, now
	parameterized on _Intl too.
	* include/bits/locale_facets.tcc (money_get<>::_M_extract):
	Update definition to use the cache; call reserve on __res to
	avoid multiple reallocations; fix parsing of sign component
	according to 22.2.6.1.2, p3.
	(money_get<>::do_get(long double&),
	money_get<>::do_get(string_type&)): Update calls of _M_extract.
	* src/locale-inst.cc:  Add instantiations of
	money_get::_M_extract<false> and money_get::_M_extract<true>.
	* testsuite/22_locale/money_get/get/char/14.cc: New.
	* testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.

From-SVN: r78253
2004-02-22 11:13:27 +00:00
GCC Administrator 5904e65f29 Daily bump.
From-SVN: r78246
2004-02-22 00:16:13 +00:00
Christopher Faylor 3a6efa98a5 fix date
From-SVN: r78242
2004-02-22 00:05:40 +00:00
Christopher Faylor dc4a2f323a config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host object file when targetting cygwin.
* config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host object
file when targetting cygwin.
* config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
overridden by top-level Makefile.

From-SVN: r78241
2004-02-22 00:04:38 +00:00
Mark Mitchell afc3bb58d5 * libsupc++/vterminate.cc
(__gnu_cxx::__verbose_terminate_handler): Guard against recursive
	calls to terminate.
	* src/demangle.cc (__cxa_demangle): Wrap in try-catch block.

From-SVN: r78235
2004-02-21 20:59:26 +00:00
Mark Mitchell e1efc7a028 testsuite_hooks.cc (__gnu_test::set_memory_limits): Do not set RLIMIT_AS on HP-UX.
* testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
	not set RLIMIT_AS on HP-UX.

From-SVN: r78233
2004-02-21 20:34:38 +00:00
Roger Sayle 22cc69c4c0 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
2004-02-21 18:48:19 +00:00