platform/upstream/gcc.git
22 years agolocale_facets.tcc (_M_extract_int): Avoid uninitialized warning.
Jason Merrill [Tue, 11 Dec 2001 15:48:11 +0000 (10:48 -0500)]
locale_facets.tcc (_M_extract_int): Avoid uninitialized warning.

        * include/bits/locale_facets.tcc (_M_extract_int): Avoid
        uninitialized warning.

From-SVN: r47877

22 years agobuiltins.c (expand_builtin): Use a switch statement to list those functions not expan...
Roger Sayle [Tue, 11 Dec 2001 14:51:55 +0000 (15:51 +0100)]
builtins.c (expand_builtin): Use a switch statement to list those functions not expanded without...

* builtins.c (expand_builtin): Use a switch statement to list
those functions not expanded without optimizations, instead of a
series of equality tests.

From-SVN: r47876

22 years agoprune.exp (prune_gcc_output): Also handle "In member function".
Jason Merrill [Tue, 11 Dec 2001 14:18:34 +0000 (09:18 -0500)]
prune.exp (prune_gcc_output): Also handle "In member function".

        * lib/prune.exp (prune_gcc_output): Also handle "In member
        function".  So many permutations...

From-SVN: r47875

22 years agovms.h (LIB_SPEC): Define.
Douglas B Rupp [Tue, 11 Dec 2001 13:29:26 +0000 (08:29 -0500)]
vms.h (LIB_SPEC): Define.

* config/alpha/vms.h (LIB_SPEC): Define.
* config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Don't set component field.

From-SVN: r47874

22 years ago* intl/localealias.c (strings.h): Include.
Douglas B Rupp [Tue, 11 Dec 2001 13:23:40 +0000 (08:23 -0500)]
* intl/localealias.c (strings.h): Include.

From-SVN: r47873

22 years ago* libgcc2.c (_bb): Remove ctime declaration.
Douglas B Rupp [Tue, 11 Dec 2001 13:18:18 +0000 (08:18 -0500)]
* libgcc2.c (_bb): Remove ctime declaration.

From-SVN: r47872

22 years agoMakefile.in (stage[1234]-start): $(LN_S) utilities in a manner that works if LN_S...
Douglas B Rupp [Tue, 11 Dec 2001 13:13:01 +0000 (08:13 -0500)]
Makefile.in (stage[1234]-start): $(LN_S) utilities in a manner that works if LN_S = cp.

* Makefile.in (stage[1234]-start): $(LN_S) utilities in a manner
that works if LN_S = cp.

From-SVN: r47871

22 years ago* config/alpha/x-vms (version): Change "." to "_".
Douglas B Rupp [Tue, 11 Dec 2001 13:06:16 +0000 (08:06 -0500)]
* config/alpha/x-vms (version): Change "." to "_".

From-SVN: r47870

22 years agoconfigure.in: Hardcode that vfork works on VMS host.
Douglas B Rupp [Tue, 11 Dec 2001 12:17:33 +0000 (07:17 -0500)]
configure.in: Hardcode that vfork works on VMS host.

* gcc/configure.in: Hardcode that vfork works on VMS host.
* gcc/configure: Regenerated.
* libiberty/configure.in: Hardcode that vfork works on VMS host.
* libiberty/configure: Regenerated.

From-SVN: r47869

22 years ago* config/cpu/sparc/sparc32/bits/atomicity.h
Loren J. Rittle [Tue, 11 Dec 2001 09:41:40 +0000 (09:41 +0000)]
* config/cpu/sparc/sparc32/bits/atomicity.h
        (__Atomicity_lock<0>::_S_atomicity_lock): Add.

From-SVN: r47867

22 years agoMAINTAINERS (Write After Approval): Add myself.
Matthias Klose [Tue, 11 Dec 2001 08:26:49 +0000 (08:26 +0000)]
MAINTAINERS (Write After Approval): Add myself.

From-SVN: r47866

22 years agoDaily bump.
GCC Administrator [Tue, 11 Dec 2001 08:17:58 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r47865

22 years agoFor PR libgcj/1147:
Tom Tromey [Tue, 11 Dec 2001 04:03:57 +0000 (04:03 +0000)]
For PR libgcj/1147:

* prims.cc (JvConvertArgv): Convert using current locale's
encoding.

From-SVN: r47862

22 years agore PR libgcj/5064 (java/lang/natClassLoader.cc doesn't compile on systems without...
Tom Tromey [Tue, 11 Dec 2001 03:58:40 +0000 (03:58 +0000)]
re PR libgcj/5064 (java/lang/natClassLoader.cc doesn't compile on systems without snprintf)

Fix for PR libgcj/5064.
* java/lang/natClassLoader.cc: Don't include stdio.h.
(_Jv_RegisterClassHookDefault): Don't use snprintf.

From-SVN: r47861

22 years ago* check-init.c (check_init) [SWITCH_EXPR]: Use SWITCH_HAS_DEFAULT.
Tom Tromey [Tue, 11 Dec 2001 03:29:12 +0000 (03:29 +0000)]
* check-init.c (check_init) [SWITCH_EXPR]: Use SWITCH_HAS_DEFAULT.

From-SVN: r47860

22 years ago* rs6000.c (processor_target_table): Add PPC405.
David Edelsohn [Mon, 10 Dec 2001 23:53:33 +0000 (23:53 +0000)]
* rs6000.c (processor_target_table): Add PPC405.

From-SVN: r47858

22 years agogcc.c (convert_filename): Add do_obj parameter.
Douglas B Rupp [Mon, 10 Dec 2001 23:46:00 +0000 (18:46 -0500)]
gcc.c (convert_filename): Add do_obj parameter.

* gcc.c (convert_filename): Add do_obj parameter. Don't convert
unless do_obj true.
(process_command): Modify calls to convert_filename.

From-SVN: r47857

22 years ago* config/sparc/sol2-sld-64.h: Include dbxelf.h again.
Rainer Orth [Mon, 10 Dec 2001 23:38:50 +0000 (23:38 +0000)]
* config/sparc/sol2-sld-64.h: Include dbxelf.h again.

From-SVN: r47856

22 years agocombine.c (known_cond): Check mode of each operand to determine if COND is comparing...
Jeffrey A Law [Mon, 10 Dec 2001 22:52:26 +0000 (22:52 +0000)]
combine.c (known_cond): Check mode of each operand to determine if COND is comparing floating point values.

        * combine.c (known_cond): Check mode of each operand to determine
        if COND is comparing floating point values.

From-SVN: r47855

22 years agore PR c++/72 (aggressive type analysis in template-class's template-member-function)
Nathan Sidwell [Mon, 10 Dec 2001 22:49:13 +0000 (22:49 +0000)]
re PR c++/72 (aggressive type analysis in template-class's template-member-function)

cp:
PR g++/72
* decl.c (add_binding): Don't reject duplicate typedefs involving
template parameters.
testsuite:
* g++.dg/template/typedef1.C: New test.

From-SVN: r47854

22 years agors6000.h (processor_type): Add PPC405.
David Edelsohn [Mon, 10 Dec 2001 22:46:15 +0000 (22:46 +0000)]
rs6000.h (processor_type): Add PPC405.

* rs6000.h (processor_type): Add PPC405.
(RTX_COSTS): Add PPC405.  Correct rs64 and ppc630 multiply costs.
* rs6000.md: Add PPC405 information.  Utilize imul2 and imul3 for
rios1, rs64, and ppc630 processors.

From-SVN: r47853

22 years agoalpha.md (unaligned_extendhidi): Call gen_lowpart instead of hardcoding subregs into...
Richard Henderson [Mon, 10 Dec 2001 22:21:03 +0000 (14:21 -0800)]
alpha.md (unaligned_extendhidi): Call gen_lowpart instead of hardcoding subregs into the _be and _le patterns.

        * config/alpha/alpha.md (unaligned_extendhidi): Call gen_lowpart
        instead of hardcoding subregs into the _be and _le patterns.

From-SVN: r47852

22 years agoinstall.texi (Final install): Request additional information in mail about successful...
Janis Johnson [Mon, 10 Dec 2001 21:35:29 +0000 (21:35 +0000)]
install.texi (Final install): Request additional information in mail about successful builds.

        * doc/install.texi (Final install): Request additional information
        in mail about successful builds.

From-SVN: r47850

22 years agoc-lex.c, [...]: Revert concatenation changes.
Neil Booth [Mon, 10 Dec 2001 20:08:59 +0000 (20:08 +0000)]
c-lex.c, [...]: Revert concatenation changes.

* c-lex.c, c-parse.in, c-typeck.c: Revert concatenation changes.
cp:
* parse.y, semantics.c: Similarly.

From-SVN: r47848

22 years agobasic_string.tcc (_M_replace_safe): Fix typos.
Paolo Carlini [Mon, 10 Dec 2001 14:32:28 +0000 (15:32 +0100)]
basic_string.tcc (_M_replace_safe): Fix typos.

2001-12-10  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/basic_string.tcc (_M_replace_safe):  Fix typos.
* include/bits/basic_string.h:  Fix typos.

From-SVN: r47847

22 years agoi386.md (leave, [...]): Adjust pattern to match what insn does.
Richard Kenner [Mon, 10 Dec 2001 14:30:11 +0000 (14:30 +0000)]
i386.md (leave, [...]): Adjust pattern to match what insn does.

* config/i386/i386.md (leave, leave_rex64): Adjust pattern to match
what insn does.

From-SVN: r47846

22 years ago2001-12-10 Paolo Carlini <pcarlini@unitus.it>
Paolo Carlini [Mon, 10 Dec 2001 13:55:22 +0000 (13:55 +0000)]
2001-12-10  Paolo Carlini  <pcarlini@unitus.it>

* ChangeLog of the previous commit.

From-SVN: r47845

22 years agobasic_string.tcc (_M_replace_safe): New function.
Paolo Carlini [Mon, 10 Dec 2001 13:42:01 +0000 (13:42 +0000)]
basic_string.tcc (_M_replace_safe): New function.

2001-12-10  Paolo Carlini  <pcarlini@unitus.it>
            Nathan Myers  <ncm@cantrip.org>

* include/bits/basic_string.tcc (_M_replace_safe):  New function.
(_M_replace(input_iterator_tag), append members):  Use it.
(_M_replace(forward_iterator_tag)):  Remove.
* include/bits/basic_string.h:  Adjust declarations.
* src/string-inst.cc:  Adjust declarations.

From-SVN: r47844

22 years agoMakefile.in: Add $(OUTPUT_OPTION) to compilation rules.
Douglas B Rupp [Mon, 10 Dec 2001 12:04:24 +0000 (07:04 -0500)]
Makefile.in: Add $(OUTPUT_OPTION) to compilation rules.

* Makefile.in: Add $(OUTPUT_OPTION) to compilation rules.
* intl/Makefile.in (OUTPUT_OPTION): Add configure variable.
(.c.o): Add $(OUTPUT_OPTION).
* java/Make-lang.in (jvspec.o): Add $(OUTPUT_OPTION).

From-SVN: r47843

22 years agocpp.texi: Don't condition menus on @ifinfo.
Joseph Myers [Mon, 10 Dec 2001 11:27:01 +0000 (11:27 +0000)]
cpp.texi: Don't condition menus on @ifinfo.

* doc/cpp.texi: Don't condition menus on @ifinfo.  Condition the
copyright notice formerly conditioned on @ifinfo on @ifnottex
instead.

f:
* g77.texi: Don't condition menus on @ifinfo.

ch:
* chill.texi: Don't condition menus on @ifinfo.

From-SVN: r47842

22 years ago* vmsdbgout.c (lookup_filename): Remove warning.
Richard Kenner [Mon, 10 Dec 2001 11:22:17 +0000 (11:22 +0000)]
* vmsdbgout.c (lookup_filename): Remove warning.

From-SVN: r47841

22 years agoconfig.gcc (alpha*-dec-vms*): Change to alpha*-dec-*vms*
Douglas B Rupp [Mon, 10 Dec 2001 11:18:34 +0000 (06:18 -0500)]
config.gcc (alpha*-dec-vms*): Change to alpha*-dec-*vms*

* config.gcc (alpha*-dec-vms*): Change to alpha*-dec-*vms*
(exeext, target_alias, prefix, local_prefix): Define.
* config/alpha/x-vms (USE_COLLECT2): Make empty.
* config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Use Unix style
file specifications. Remove ".".
(GCC_INCLUDE_DIR): Remove redefinition (redundant).
* fixinc/mkfixinc.sh (alpha*-dec-vms*):  Change to alpha*-dec-*vms*

From-SVN: r47840

22 years agoCorrect filename to "darwin-tramp.asm" in my last ChangeLog entry.
Turly O'Connor [Mon, 10 Dec 2001 10:58:07 +0000 (10:58 +0000)]
Correct filename to "darwin-tramp.asm" in my last ChangeLog entry.

From-SVN: r47839

22 years ago* Makefile.in (.po.gmo): Use POSIXLY_CORRECT argument ordering.
Nathan Sidwell [Mon, 10 Dec 2001 09:37:11 +0000 (09:37 +0000)]
* Makefile.in (.po.gmo): Use POSIXLY_CORRECT argument ordering.

From-SVN: r47838

22 years agolocale_facets.h (__num_base::_S_scale_hex): Add.
Benjamin Kosnik [Mon, 10 Dec 2001 08:41:03 +0000 (08:41 +0000)]
locale_facets.h (__num_base::_S_scale_hex): Add.

2001-12-09  Benjamin Kosnik  <bkoz@redhat.com>
    Philip Martin <pmartin@uklinux.net>

* include/bits/locale_facets.h (__num_base::_S_scale_hex): Add.
(__num_base::_S_scale_oct): Add.
* src/locale.cc: Add definitions.
* testsuite/27_io/istream_extractor_arith.cc (main): Call test13.

* testsuite/testsuite_hooks.h: Remove duplicate VERIFY define.

Co-Authored-By: Philip Martin <pmartin@uklinux.net>
From-SVN: r47837

22 years agoDaily bump.
GCC Administrator [Mon, 10 Dec 2001 08:16:45 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r47836

22 years ago* gnu/gcj/xlib/XImage.java (toString): Add missing initialization.
Per Bothner [Mon, 10 Dec 2001 07:59:48 +0000 (23:59 -0800)]
* gnu/gcj/xlib/XImage.java (toString):  Add missing initialization.

From-SVN: r47834

22 years agocheck-init.c (current_switch_has_default): New static field.
Per Bothner [Mon, 10 Dec 2001 04:28:28 +0000 (20:28 -0800)]
check-init.c (current_switch_has_default): New static field.

* check-init.c (current_switch_has_default):  New static field.
(check_init):  Case DEFAULT_EXPR: Set current_switch_has_default.
Case SWITCH_EXPR:  Save/restore current_switch_has_default.  If no
DEFAULT_EXPR seen, simulate a default alternative that copies state.

From-SVN: r47833

22 years agoTrivial updates to last patch.
Richard Kenner [Mon, 10 Dec 2001 03:27:49 +0000 (22:27 -0500)]
Trivial updates to last patch.

From-SVN: r47832

22 years agot-vms (EXTRA_PARTS): Append $(VMS_EXTRA_PARTS) Add rules for building [vp]crt0.o
Douglas B Rupp [Mon, 10 Dec 2001 03:07:23 +0000 (22:07 -0500)]
t-vms (EXTRA_PARTS): Append $(VMS_EXTRA_PARTS) Add rules for building [vp]crt0.o

* config/alpha/t-vms (EXTRA_PARTS): Append $(VMS_EXTRA_PARTS)
Add rules for building [vp]crt0.o
* config/alpha/vms.h (START_FILE_SPEC): Define.
* config/alpha/x-vms (VMS_EXTRA_PARTS): Define
* config/alpha/vms-crt0.c, config/alpha/vms-psxcrt0.c: New files.
* doc/invoke.texi: Document special Alpha/VMS options.

From-SVN: r47831

22 years agohwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type.
Richard Kenner [Mon, 10 Dec 2001 01:56:37 +0000 (01:56 +0000)]
hwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type.

* hwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type.
* vmsdbg.h (DST_SRC_COMMAND): Test for type of long long or __int64,
not GNUC.

From-SVN: r47828

22 years agotree.c (append_random_char): Conditionalize INO for VMS.
Richard Kenner [Mon, 10 Dec 2001 01:28:03 +0000 (01:28 +0000)]
tree.c (append_random_char): Conditionalize INO for VMS.

* tree.c (append_random_char): Conditionalize INO for VMS.

Co-Authored-By: Douglas B Rupp <rupp@gnat.com>
From-SVN: r47827

22 years agoresolve.cc (_Jv_PrepareClass): Verify method here...
Tom Tromey [Mon, 10 Dec 2001 01:18:30 +0000 (01:18 +0000)]
resolve.cc (_Jv_PrepareClass): Verify method here...

* resolve.cc (_Jv_PrepareClass): Verify method here...
* defineclass.cc (handleMethodsEnd): ... not here.
* verify.cc (_Jv_BytecodeVerifier::initialize_stack): New method.
(_Jv_BytecodeVerifier::verify_instructions_0) [op_return]: Ensure
there are no uninitialized objects.
(_Jv_BytecodeVerifier::state::this_type): New field.
(_Jv_BytecodeVerifier::state::state): Initialize this_type.
(_Jv_BytecodeVerifier::state::copy): Copy this_type.
(_Jv_BytecodeVerifier::state::merge): Merge this_type.
(_Jv_BytecodeVerifier::state::check_no_uninitialized_objects):
Handle this_type.
(_Jv_BytecodeVerifier::state::check_this_initialized): New
method.
(_Jv_BytecodeVerifier::state::set_initialized): Handle this_type.
(_Jv_BytecodeVerifier::state::set_this_type): New method.
(_Jv_BytecodeVerifier::verify_instructions_0) [op_putfield]: Allow
assignment to fields of `this' before another initializer is run.

From-SVN: r47826

22 years agocfgcleanup.c (label_is_jump_target_p): New function.
Richard Henderson [Mon, 10 Dec 2001 01:09:42 +0000 (17:09 -0800)]
cfgcleanup.c (label_is_jump_target_p): New function.

* cfgcleanup.c (label_is_jump_target_p): New function.
(try_optimize_cfg): Use label_is_jump_target_p to check if label is
target of a JUMP_INSN from the preceding block.

From-SVN: r47825

22 years agoMakefile.in: Rebuilt.
Tom Tromey [Mon, 10 Dec 2001 00:30:24 +0000 (00:30 +0000)]
Makefile.in: Rebuilt.

* Makefile.in: Rebuilt.
* Makefile.am (gnu/gcj/runtime/VMClassLoader.h): Use `::java'.

From-SVN: r47824

22 years agovmsdbgout.c (lookup_filename): Assign null string instead of null pointer to fnam.
Douglas B Rupp [Sun, 9 Dec 2001 23:49:51 +0000 (18:49 -0500)]
vmsdbgout.c (lookup_filename): Assign null string instead of null pointer to fnam.

* vmsdbgout.c (lookup_filename): Assign null string instead
of null pointer to fnam.

From-SVN: r47823

22 years agore PR java/3731 (gcj should generate class init code for instanceof)
Bryce McKinlay [Sun, 9 Dec 2001 23:49:29 +0000 (23:49 +0000)]
re PR java/3731 (gcj should generate class init code for instanceof)

* libjava.lang/PR3731.out: Adjust output to reflect that
"instanceof" shouldn't trigger class initialization.

From-SVN: r47822

22 years agocheck-init.c (check_init): Don't allow pre- or post- increment or decrement of final...
Tom Tromey [Sun, 9 Dec 2001 23:43:19 +0000 (23:43 +0000)]
check-init.c (check_init): Don't allow pre- or post- increment or decrement of final variable.

* check-init.c (check_init): Don't allow pre- or post- increment
or decrement of final variable.
(final_assign_error): Minor error message rewording.

From-SVN: r47821

22 years agoalpha.c (alpha_align_insns): Suppress realignment immediately after a call; insert...
Richard Henderson [Sun, 9 Dec 2001 21:54:23 +0000 (13:54 -0800)]
alpha.c (alpha_align_insns): Suppress realignment immediately after a call; insert nops before a call.

        * config/alpha/alpha.c (alpha_align_insns): Suppress realignment
        immediately after a call; insert nops before a call.

From-SVN: r47820

22 years agoalpha.c (alpha_align_insns): Use align_functions, not FUNCTION_BOUNDARY.
Richard Henderson [Sun, 9 Dec 2001 21:47:49 +0000 (13:47 -0800)]
alpha.c (alpha_align_insns): Use align_functions, not FUNCTION_BOUNDARY.

        * config/alpha/alpha.c (alpha_align_insns): Use align_functions,
        not FUNCTION_BOUNDARY.
        * config/alpha/alpha.h (TRAMPOLINE_ALIGNMENT): New.
        * config/alpha/alpha32.h, config/alpha/vms.h: Likewise.
        * config/alpha/unicosmk.h (FUNCTION_BOUNDARY): Remove.

From-SVN: r47819

22 years agommix.c (mmix_function_block_profiler, [...]): Delete unused functions.
Hans-Peter Nilsson [Sun, 9 Dec 2001 21:25:03 +0000 (21:25 +0000)]
mmix.c (mmix_function_block_profiler, [...]): Delete unused functions.

* config/mmix/mmix.c (mmix_function_block_profiler,
mmix_block_profiler, mmix_function_block_profiler_exit): Delete
unused functions.
* config/mmix/mmix-protos.h (mmix_function_block_profiler,
mmix_block_profiler, mmix_function_block_profiler_exit): Delete
prototypes.

* config/cris/cris.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER):
Delete obsoleted macros.

From-SVN: r47818

22 years agoUpdate my email address
Zack Weinberg [Sun, 9 Dec 2001 20:24:45 +0000 (20:24 +0000)]
Update my email address

From-SVN: r47817

22 years agocpp.texi, [...]: Use American spelling.
Joseph Myers [Sun, 9 Dec 2001 20:21:57 +0000 (20:21 +0000)]
cpp.texi, [...]: Use American spelling.

* doc/cpp.texi, doc/cppinternals.texi, doc/invoke.texi,
doc/md.texi, doc/rtl.texi, doc/tm.texi: Use American spelling.

From-SVN: r47816

22 years agoChangeLog.2, [...]: Fix spelling errors.
Joseph Myers [Sun, 9 Dec 2001 20:13:19 +0000 (20:13 +0000)]
ChangeLog.2, [...]: Fix spelling errors.

* ChangeLog.2, ChangeLog.3, ChangeLog.5, ChangeLog, alias.c,
cfgbuild.c, expmed.c, expr.c, final.c, flow.c, fold-const.c,
function.c, config/alpha/alpha.md, config/alpha/vms-ld.c,
config/arm/arm.c, config/arm/arm.h, config/c4x/libgcc.S,
config/i370/i370.c, config/i386/i386.c,
config/i386/i386-interix.h, config/i386/i386.md,
config/i386/i386.h, config/i386/netbsd-elf.h, config/ia64/ia64.c,
config/m32r/m32r-protos.h, config/mcore/mcore.h,
config/rs6000/rs6000.h, config/sparc/linux64.h,
config/sparc/sparc.c, config/v850/v850-protos.h,
config/cris/cris.h, config/s390/s390.md, config/elfos.h: Fix
spelling errors.

From-SVN: r47815

22 years agors6000.h (enum rs6000_builtins): Add remaining altivec builtins (VCF?X, VCT?XS, VSEL...
Daniel Berlin [Sun, 9 Dec 2001 18:49:30 +0000 (18:49 +0000)]
rs6000.h (enum rs6000_builtins): Add remaining altivec builtins (VCF?X, VCT?XS, VSEL, V*EFP, VRFI*).

2001-12-09  Daniel Berlin  <dan@cgsoftware.com>

* config/rs6000/rs6000.h (enum rs6000_builtins): Add remaining
altivec builtins (VCF?X, VCT?XS, VSEL, V*EFP, VRFI*).

* config/rs6000/rs6000.c: Ditto.

* config/rs6000/rs6000.md: Ditto.

From-SVN: r47814

22 years agore PR c++/87 (member template assignment operator)
Nathan Sidwell [Sun, 9 Dec 2001 16:33:44 +0000 (16:33 +0000)]
re PR c++/87 (member template assignment operator)

cp:
PR g++/87
* cp-tree.h (DECL_COPY_CONSTRUCTOR_P): Use copy_fn_p.
(copy_args_p): Rename to ...
(copy_fn_p): ... here.
(grok_special_member_properties): New function.
(grok_op_properties): Lose VIRTUALP parameter.
(copy_assignment_arg_p): Remove.
* call.c (build_over_call): Use copy_fn_p.
* decl.c (grokfndecl): Reformat. Adjust call to
grok_op_properties.
(copy_args_p): Rename to ...
(copy_fn_p): ... here. Reject template functions. Check for pass
by value.
(grok_special_member_properties): Remember special functions.
(grok_ctor_properties): Don't remember them here, just check.
(grok_op_properties): Likewise.
(start_method): Call grok_special_member_properties.
* decl2.c (grokfield): Likewise.
(copy_assignment_arg_p): Remove.
(grok_function_init): Don't remember abstract assignment here.
* pt.c (instantiate_class_template): Call
grok_special_member_properties.
(tsubst_decl): Adjust grok_op_properties call.
testsuite:
* g++.dg/other/copy1.C: New test.

From-SVN: r47813

22 years ago1750a.md: Add default case in switch.
Kaveh R. Ghazi [Sun, 9 Dec 2001 16:31:53 +0000 (16:31 +0000)]
1750a.md: Add default case in switch.

* 1750a.md: Add default case in switch.
* alpha/vms.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
if-else statement.
* dsp16xx.c (print_operand_address): Likewise.
* i386/osf1elf.h (FUNCTION_PROFILER): Const-ify.
* ia64.md: Add missing braces.
* rs6000-protos.h (s8bit_cint_operand): Prototype.
* s390.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
        if-else statement.
* stormy16.h (REG_CLASS_CONTENTS): Add missing braces.
* v850.h (OUTPUT_ADDR_CONST_EXTRA): Don't issue a `return'.
* dbxout.c (dbxout_source_file): Move a variable into the scope
where it is used.
* final.c (profile_function): Mark parameter with
ATTRIBUTE_UNUSED.
* genemit.c (gen_expand): Likewise for generated file.
* insn-addr.h (INSN_ADDRESSES_NEW): Avoid undefined behavior.

From-SVN: r47812

22 years agovmsdbg.h: Delete spurious close-comment.
Kaveh R. Ghazi [Sun, 9 Dec 2001 15:57:48 +0000 (15:57 +0000)]
vmsdbg.h: Delete spurious close-comment.

* vmsdbg.h: Delete spurious close-comment.
(DST_HEADER): Fix typo in ENUM_BITFIELD parameter.
* vmsdbgout.c (write_modbeg): Define return type.

From-SVN: r47811

22 years ago3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).
Kaveh R. Ghazi [Sun, 9 Dec 2001 15:50:13 +0000 (15:50 +0000)]
3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).

* m68k/3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).
* m68k/amix.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* m68k/atari.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* m68k/hp320.h (ASM_OUTPUT_ALIGN): Likewise.
* m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Likewise.
* m68k/sgs.h (ASM_OUTPUT_ALIGN): Likewise.
* m68k/tower-as.h (ASM_OUTPUT_ALIGN): Likewise.

From-SVN: r47810

22 years agoDaily bump.
GCC Administrator [Sun, 9 Dec 2001 08:17:23 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r47809

22 years agolex.c (rid_to_yy): Add RID_CHOOSE_EXPR and RID_TYPES_COMPATIBLE_P.
Aldy Hernandez [Sun, 9 Dec 2001 07:52:12 +0000 (07:52 +0000)]
lex.c (rid_to_yy): Add RID_CHOOSE_EXPR and RID_TYPES_COMPATIBLE_P.

2001-12-08  Aldy Hernandez  <aldyh@redhat.com>

        * lex.c (rid_to_yy): Add RID_CHOOSE_EXPR and
        RID_TYPES_COMPATIBLE_P.

From-SVN: r47807

22 years agoFix rs6000 -maix64 -mstring
Tom Rix [Sun, 9 Dec 2001 07:23:05 +0000 (07:23 +0000)]
Fix rs6000 -maix64 -mstring

From-SVN: r47806

22 years ago* java-tree.h: Fixed typo.
Tom Tromey [Sun, 9 Dec 2001 06:03:42 +0000 (06:03 +0000)]
* java-tree.h: Fixed typo.

From-SVN: r47805

22 years agogjavah.c (decompile_method): Don't decompile to `return this' for static methods.
Tom Tromey [Sun, 9 Dec 2001 05:14:19 +0000 (05:14 +0000)]
gjavah.c (decompile_method): Don't decompile to `return this' for static methods.

* gjavah.c (decompile_method): Don't decompile to `return this'
for static methods.

From-SVN: r47804

22 years agogjavah.c (cxx_keywords): Re-sorted.
Tom Tromey [Sun, 9 Dec 2001 05:06:45 +0000 (05:06 +0000)]
gjavah.c (cxx_keywords): Re-sorted.

* gjavah.c (cxx_keywords): Re-sorted.
* lex.c (cxx_keywords): Re-sorted.

From-SVN: r47803

22 years agogjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything else.
Tom Tromey [Sun, 9 Dec 2001 01:30:00 +0000 (01:30 +0000)]
gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything else.

* gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything
else.

From-SVN: r47802

22 years agogjavah.c (print_namelet): Clear subnamelets.
Tom Tromey [Sun, 9 Dec 2001 01:26:30 +0000 (01:26 +0000)]
gjavah.c (print_namelet): Clear subnamelets.

* gjavah.c (print_namelet): Clear subnamelets.
(HANDLE_METHOD): Set `method_printed' earlier.

From-SVN: r47801

22 years agoMakefile.in: Rebuilt.
Tom Tromey [Sun, 9 Dec 2001 00:17:07 +0000 (00:17 +0000)]
Makefile.in: Rebuilt.

* Makefile.in: Rebuilt.
* Makefile.am (java/lang/reflect/Method.h): ObjectInputStream now
a friend.
* java/lang/natClass.cc (getSignature): Only look at elements of
non-null parameters.
(getPrivateMethod): Removed old FIXME comment.
* java/io/natObjectInputStream.cc (allocateObject): Removed old
FIXME comment.
(callConstructor): Simply use `NULL' for value of parameters.
(ObjectClass): Removed.
(ClassClass): Likewise.
* java/io/ObjectInputStream.java (readObject): Fixed typo.

From-SVN: r47800

22 years agoverify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow): Handle case of array whose...
Tom Tromey [Sun, 9 Dec 2001 00:14:00 +0000 (00:14 +0000)]
verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow): Handle case of array whose component type is not prepared.

* verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow):
Handle case of array whose component type is not prepared.

From-SVN: r47799

22 years agoc-common.h (rid): Add RID_CHOOSE_EXPR and RID_TYPES_COMPATIBLE_P.
Aldy Hernandez [Sat, 8 Dec 2001 22:34:54 +0000 (22:34 +0000)]
c-common.h (rid): Add RID_CHOOSE_EXPR and RID_TYPES_COMPATIBLE_P.

* c-common.h (rid): Add RID_CHOOSE_EXPR and
        RID_TYPES_COMPATIBLE_P.

        * c-parse.in (reswords): Add __builtin_choose_expr.
        Add __builtin_types_compatible_p.
        Add CHOOSE_EXPR token.
Add TYPES_COMPATIBLE_P token.
        Add production for CHOOSE_EXPR.
        Add production for TYPES_COMPATIBLE_P.

        * doc/extend.texi (__builtin_choose_expr): Add documentation.
        (__builtin_types_compatible_p): Likewise.

From-SVN: r47798

22 years agobuiltin-types-compatible-p.c: New.
Aldy Hernandez [Sat, 8 Dec 2001 22:29:03 +0000 (22:29 +0000)]
builtin-types-compatible-p.c: New.

2001-10-08  Aldy Hernandez  <aldyh@redhat.com>

        * testsuite/gcc.c-torture/execute/builtin-types-compatible-p.c: New.

        * testsuite/gcc.c-torture/gcc.dg/builtin-choose-expr.c: New.

From-SVN: r47797

22 years agostor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN to unions.
David Edelsohn [Sat, 8 Dec 2001 19:43:07 +0000 (19:43 +0000)]
stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN to unions.

        * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
        to unions.

From-SVN: r47796

22 years agoc-parse.in: Take string literals in assembler constructs, not expressions.
Neil Booth [Sat, 8 Dec 2001 19:13:04 +0000 (19:13 +0000)]
c-parse.in: Take string literals in assembler constructs, not expressions.

* c-parse.in: Take string literals in assembler constructs,
not expressions.
* c-typeck.c (build_asm_stmt, simple_asm_stmt): No need to
check the strings are STRING_CSTs.

From-SVN: r47795

22 years agosemantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in call to build_aggr_...
John David Anglin [Sat, 8 Dec 2001 15:44:23 +0000 (15:44 +0000)]
semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in call to build_aggr_init.

* semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
call to build_aggr_init.
* cp-tree.h (DIRECT_BIND): Document new use of DIRECT_BIND.

From-SVN: r47793

22 years agoc-lex.c (c_lex): Peek a token ahead for a string to concatenate...
Neil Booth [Sat, 8 Dec 2001 12:01:59 +0000 (12:01 +0000)]
c-lex.c (c_lex): Peek a token ahead for a string to concatenate...

* c-lex.c (c_lex): Peek a token ahead for a string to concatenate,
using combine_strings to do the concatenation.
* c-parse.in: Replace uses of the string non-terminal with STRING.
Don't attempt string concatenation.
(OBJC_STRING): New terminal.
(string): Remove non-terminal.
(_yylex): Call combine_strings on function names.  Generate
OBJC_STRING terminals; don't pass '@' on to yacc.
* c-typeck.c (simple_asm_stmt): Don't concatenate strings here.
(build_asm_stmt): Similarly.
cp:
* parse.y: Replace uses of the string non-terminal with STRING.
Don't perform string concatentaion here.
(string): Remove non-terminal.
* semantics.c (finish_asm_stmt): Don't concatenate strings here.

From-SVN: r47792

22 years ago* rtlanal.c (get_jump_table_offset): Delete unused variable.
Kaveh R. Ghazi [Sat, 8 Dec 2001 11:22:57 +0000 (11:22 +0000)]
* rtlanal.c (get_jump_table_offset): Delete unused variable.

From-SVN: r47791

22 years agoarm.md (VUNSPEC_PREFETCH): Delete constant definition.
Richard Earnshaw [Sat, 8 Dec 2001 11:16:59 +0000 (11:16 +0000)]
arm.md (VUNSPEC_PREFETCH): Delete constant definition.

* arm.md (VUNSPEC_PREFETCH): Delete constant definition.
(prefetch): Rewrite using PREFETCH RTL primitive.
* arm.h (arm_builtins): Delete ARM_BUILTIN_PREFETCH).
* arm.c (arm_init_builtins): Don't initialize a builtin for
__builtin_prefetch here.
(arm_expand_builtin): Dont expand __builtin_prefetch here.

From-SVN: r47790

22 years agoOops, this didn't get commited with final.c patch.
Richard Earnshaw [Sat, 8 Dec 2001 11:05:46 +0000 (11:05 +0000)]
Oops, this didn't get commited with final.c patch.

From-SVN: r47789

22 years agofinal.c (cleanup_subreg_operands): Use recog_data.operand_loc in test for a subreg.
Richard Earnshaw [Sat, 8 Dec 2001 10:49:49 +0000 (10:49 +0000)]
final.c (cleanup_subreg_operands): Use recog_data.operand_loc in test for a subreg.

* final.c (cleanup_subreg_operands):  Use recog_data.operand_loc
in test for a subreg.

From-SVN: r47788

22 years agoDaily bump.
GCC Administrator [Sat, 8 Dec 2001 08:16:41 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r47787

22 years agortl.c (rtx_equal_p): Check for null pointers when comparing rtx strings.
John David Anglin [Sat, 8 Dec 2001 06:11:25 +0000 (06:11 +0000)]
rtl.c (rtx_equal_p): Check for null pointers when comparing rtx strings.

* rtl.c (rtx_equal_p): Check for null pointers when comparing rtx
strings.

From-SVN: r47785

22 years ago* gcc.dg/cpp/ucs.c: Adjust expected warning for 64-bit hosts.
Richard Henderson [Sat, 8 Dec 2001 01:51:04 +0000 (17:51 -0800)]
* gcc.dg/cpp/ucs.c: Adjust expected warning for 64-bit hosts.

From-SVN: r47784

22 years agoatomicity.h (struct __Atomicity_lock<__inst>): Add.
Nathan Myers [Sat, 8 Dec 2001 00:59:11 +0000 (00:59 +0000)]
atomicity.h (struct __Atomicity_lock<__inst>): Add.

        libstdc++/5037
        * config/cpu/sparc/sparc32/bits/atomicity.h
        (struct __Atomicity_lock<__inst>): Add.
        (__Atomicity_lock<__inst>::_S_atomicity_lock): Add.
        (__exchange_and_add): Use __Atomicity_lock<0>::_S_atomicity_lock
        instead of lock local to static function.
        (__atomic_add): Likewise.

Co-Authored-By: Loren J. Rittle <ljrittle@acm.org>
From-SVN: r47782

22 years agoClassLoader.java (defineClass): Rethrow any LinkageError.
Tom Tromey [Fri, 7 Dec 2001 23:34:12 +0000 (23:34 +0000)]
ClassLoader.java (defineClass): Rethrow any LinkageError.

* java/lang/ClassLoader.java (defineClass): Rethrow any
LinkageError.

From-SVN: r47780

22 years agoThreadGroup.java (uncaughtException): Print message to System.err.
Tom Tromey [Fri, 7 Dec 2001 23:32:24 +0000 (23:32 +0000)]
ThreadGroup.java (uncaughtException): Print message to System.err.

* java/lang/ThreadGroup.java (uncaughtException): Print message to
System.err.  Required by spec.

From-SVN: r47779

22 years agoglobals.cc: Remove __GTHREADS guard.
Phil Edwards [Fri, 7 Dec 2001 23:13:23 +0000 (23:13 +0000)]
globals.cc: Remove __GTHREADS guard.

2001-12-07  Phil Edwards  <pme@gcc.gnu.org>

* src/globals.cc:  Remove __GTHREADS guard.

From-SVN: r47778

22 years ago* doc/extend.texi: Fix typo last change.
Richard Henderson [Fri, 7 Dec 2001 23:00:16 +0000 (15:00 -0800)]
* doc/extend.texi: Fix typo last change.

From-SVN: r47777

22 years ago* c-decl.c (c_language): Remove duplicate.
Richard Henderson [Fri, 7 Dec 2001 22:19:47 +0000 (14:19 -0800)]
* c-decl.c (c_language): Remove duplicate.

From-SVN: r47776

22 years agodarwin.h: Set MAX_LONG_TYPE_SIZE to 32.
Dale Johannesen [Fri, 7 Dec 2001 22:17:02 +0000 (22:17 +0000)]
darwin.h: Set MAX_LONG_TYPE_SIZE to 32.

        * config/rs6000/darwin.h: Set MAX_LONG_TYPE_SIZE to 32.
        * config/rs6000/rs6000.c (rs6000_emit_move): In Darwin-
        specific codegen, eliminate a register copy.
        (print_operand_address): Add support for Darwin's lo16(constant)
        syntax.
        (rs6000_machopic_legitimize_pic_address): Fix darwin-specific
        generation of addresses within very large data objects.
        (s8bit_cint_operand):  New.
        * config/rs6000/rs6000.md: Remove "iu" reference for 750/7400.
        Move "mtjmpr" to correct functional unit for 750/7400/7450.
        Add imul2 and imul3 insn types for multiplication by 16- and
        8-bit constants.
        Change tablejump patterns to strongly discourage using LR
        rather than CTR.
        Add %lo16 patterns for Darwin loads and stores.

From-SVN: r47775

22 years ago* alpha.md: Use (HOST_WIDE_INT)1<<63 in lieu of 0x8000000000000000.
Kaveh R. Ghazi [Fri, 7 Dec 2001 22:14:44 +0000 (22:14 +0000)]
* alpha.md: Use (HOST_WIDE_INT)1<<63 in lieu of 0x8000000000000000.

From-SVN: r47774

22 years agosparc-ret.c: New file, test return corruption bug for ultrasparc.
Stephane Carrez [Fri, 7 Dec 2001 21:51:04 +0000 (21:51 +0000)]
sparc-ret.c: New file, test return corruption bug for ultrasparc.

* gcc.dg/sparc-ret.c: New file, test return corruption bug for
ultrasparc.

From-SVN: r47773

22 years agosparc.c (epilogue_renumber): Do not replace %fp with %sp because it can cause the...
Stephane Carrez [Fri, 7 Dec 2001 21:47:53 +0000 (21:47 +0000)]
sparc.c (epilogue_renumber): Do not replace %fp with %sp because it can cause the delayed instruction to...

* config/sparc/sparc.c (epilogue_renumber): Do not replace %fp
with %sp because it can cause the delayed instruction to load
below the stack.

From-SVN: r47772

22 years agoalpha.c (alpha_expand_unaligned_store, [...]): Use constm1_rtx in place of call to...
Kaveh R. Ghazi [Fri, 7 Dec 2001 20:13:34 +0000 (20:13 +0000)]
alpha.c (alpha_expand_unaligned_store, [...]): Use constm1_rtx in place of call to immed_double_const.

* alpha.c (alpha_expand_unaligned_store,
alpha_expand_unaligned_store_words): Use constm1_rtx in place of
call to immed_double_const.

From-SVN: r47770

22 years agoverify.cc (_Jv_BytecodeVerifier::branch_prepass): Set start_PC earlier, for error...
Tom Tromey [Fri, 7 Dec 2001 19:53:34 +0000 (19:53 +0000)]
verify.cc (_Jv_BytecodeVerifier::branch_prepass): Set start_PC earlier, for error handling.

* verify.cc (_Jv_BytecodeVerifier::branch_prepass): Set start_PC
earlier, for error handling.
(_Jv_BytecodeVerifier::note_branch_target): Fixed branch target
check.

From-SVN: r47769

22 years agolang.c (lang_f_options): Added optimize-static-class-initialization.
Tom Tromey [Fri, 7 Dec 2001 19:01:19 +0000 (19:01 +0000)]
lang.c (lang_f_options): Added optimize-static-class-initialization.

* lang.c (lang_f_options): Added
optimize-static-class-initialization.
(java_decode_option): Removed special case.

From-SVN: r47768

22 years agolocale_facets.tcc (num_put::_M_convert_float): Extend comment, reduce __cs_size for...
Paolo Carlini [Fri, 7 Dec 2001 19:00:07 +0000 (20:00 +0100)]
locale_facets.tcc (num_put::_M_convert_float): Extend comment, reduce __cs_size for non-fixed outputs.

2001-12-07  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc (num_put::_M_convert_float):
Extend comment, reduce __cs_size for non-fixed outputs.

From-SVN: r47767

22 years agocommitted wrong rev. oops. fixing.
Aldy Hernandez [Fri, 7 Dec 2001 18:59:27 +0000 (18:59 +0000)]
committed wrong rev.  oops.  fixing.

From-SVN: r47766

22 years agonew
Aldy Hernandez [Fri, 7 Dec 2001 18:52:06 +0000 (18:52 +0000)]
new

From-SVN: r47765

22 years agoextend.texi (Variable Attributes): Document vector_size.
Aldy Hernandez [Fri, 7 Dec 2001 18:49:16 +0000 (18:49 +0000)]
extend.texi (Variable Attributes): Document vector_size.

2001-12-07  Aldy Hernandez  <aldyh@redhat.com>

* doc/extend.texi (Variable Attributes): Document vector_size.

        * attribs.c (c_common_attribute_table): Add vector_size.
(handle_vector_size_attribute): New.
        (vector_size_helper): New.
(decl_attributes): Relayout the decl after calculating attribs.

From-SVN: r47764

22 years ago* check-init.c (check_init): Fix typo freeing memory twice.
Per Bothner [Fri, 7 Dec 2001 18:16:21 +0000 (10:16 -0800)]
* check-init.c (check_init):  Fix typo freeing memory twice.

From-SVN: r47763