Paolo Carlini
78bd50313e
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
2001-12-10 13:42:01 +00:00
Douglas B Rupp
96a9c44f09
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
2001-12-10 07:04:24 -05:00
Joseph Myers
01342a36d3
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
2001-12-10 11:27:01 +00:00
Richard Kenner
c6bc7526bc
* vmsdbgout.c (lookup_filename): Remove warning.
...
From-SVN: r47841
2001-12-10 06:22:17 -05:00
Douglas B Rupp
ef057c4508
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
2001-12-10 06:18:34 -05:00
Turly O'Connor
6e12e72ce2
Correct filename to "darwin-tramp.asm" in my last ChangeLog entry.
...
From-SVN: r47839
2001-12-10 10:58:07 +00:00
Nathan Sidwell
bc524dd028
* Makefile.in (.po.gmo): Use POSIXLY_CORRECT argument ordering.
...
From-SVN: r47838
2001-12-10 09:37:11 +00:00
Benjamin Kosnik
2a74463013
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
2001-12-10 08:41:03 +00:00
GCC Administrator
d4197a152d
Daily bump.
...
From-SVN: r47836
2001-12-10 08:16:45 +00:00
Per Bothner
6cc49add9c
* gnu/gcj/xlib/XImage.java (toString): Add missing initialization.
...
From-SVN: r47834
2001-12-09 23:59:48 -08:00
Per Bothner
a5cb134d64
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
2001-12-09 20:28:28 -08:00
Richard Kenner
bf6cfc5e9d
Trivial updates to last patch.
...
From-SVN: r47832
2001-12-09 22:27:49 -05:00
Douglas B Rupp
d7c23cdcce
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
2001-12-09 22:07:23 -05:00
Richard Kenner
6d08665a30
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
2001-12-09 20:56:37 -05:00
Richard Kenner
0b6c426b5d
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
2001-12-09 20:28:03 -05:00
Tom Tromey
6d8b12448d
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
2001-12-10 01:18:30 +00:00
Richard Henderson
ec10f7c703
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
2001-12-10 01:09:42 +00:00
Tom Tromey
cca9fe755e
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (gnu/gcj/runtime/VMClassLoader.h): Use `::java'.
From-SVN: r47824
2001-12-10 00:30:24 +00:00
Douglas B Rupp
5a10f3cc91
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
2001-12-09 18:49:51 -05:00
Bryce McKinlay
f13ff1ca42
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
2001-12-09 23:49:29 +00:00
Tom Tromey
1aca9b81eb
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
2001-12-09 23:43:19 +00:00
Richard Henderson
11cb1475c8
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
2001-12-09 13:54:23 -08:00
Richard Henderson
30864e1408
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
2001-12-09 13:47:49 -08:00
Hans-Peter Nilsson
e41710661c
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
2001-12-09 21:25:03 +00:00
Zack Weinberg
39e790d53c
Update my email address
...
From-SVN: r47817
2001-12-09 20:24:45 +00:00
Joseph Myers
c21cd8b1a1
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
2001-12-09 20:21:57 +00:00
Joseph Myers
d6a7951f20
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
2001-12-09 20:13:19 +00:00
Daniel Berlin
617e0e1d12
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
2001-12-09 18:49:30 +00:00
Nathan Sidwell
271e6f02a1
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
2001-12-09 16:33:44 +00:00
Kaveh R. Ghazi
b365613798
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
2001-12-09 16:31:53 +00:00
Kaveh R. Ghazi
cadf4f299d
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
2001-12-09 15:57:48 +00:00
Kaveh R. Ghazi
046b71ed34
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
2001-12-09 15:50:13 +00:00
GCC Administrator
e922107006
Daily bump.
...
From-SVN: r47809
2001-12-09 08:17:23 +00:00
Aldy Hernandez
bdd8737fee
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
2001-12-09 07:52:12 +00:00
Tom Rix
09a625f76b
Fix rs6000 -maix64 -mstring
...
From-SVN: r47806
2001-12-09 07:23:05 +00:00
Tom Tromey
0854b1c4ba
* java-tree.h: Fixed typo.
...
From-SVN: r47805
2001-12-09 06:03:42 +00:00
Tom Tromey
5fcab23524
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
2001-12-09 05:14:19 +00:00
Tom Tromey
7b35f6c94f
gjavah.c (cxx_keywords): Re-sorted.
...
* gjavah.c (cxx_keywords): Re-sorted.
* lex.c (cxx_keywords): Re-sorted.
From-SVN: r47803
2001-12-09 05:06:45 +00:00
Tom Tromey
897c9e66de
gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything else.
...
* gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything
else.
From-SVN: r47802
2001-12-09 01:30:00 +00:00
Tom Tromey
4440ffc4a5
gjavah.c (print_namelet): Clear subnamelets.
...
* gjavah.c (print_namelet): Clear subnamelets.
(HANDLE_METHOD): Set `method_printed' earlier.
From-SVN: r47801
2001-12-09 01:26:30 +00:00
Tom Tromey
91c6dda6c7
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
2001-12-09 00:17:07 +00:00
Tom Tromey
3297bb4667
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
2001-12-09 00:14:00 +00:00
Aldy Hernandez
ecbcf7b319
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
2001-12-08 22:34:54 +00:00
Aldy Hernandez
1ec9bf8aa0
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
2001-12-08 22:29:03 +00:00
David Edelsohn
79dc3d44fb
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
2001-12-08 14:43:07 -05:00
Neil Booth
78e7853794
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
2001-12-08 19:13:04 +00:00
John David Anglin
46af705afa
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
2001-12-08 15:44:23 +00:00
Neil Booth
cb97d97dee
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
2001-12-08 12:01:59 +00:00
Kaveh R. Ghazi
18d6067bcd
* rtlanal.c (get_jump_table_offset): Delete unused variable.
...
From-SVN: r47791
2001-12-08 11:22:57 +00:00
Richard Earnshaw
fa980e6b68
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
2001-12-08 11:16:59 +00:00