Geoffrey Keating [Tue, 20 Nov 2001 10:16:09 +0000 (10:16 +0000)]
configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
* configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
(HAVE_AS_GSTABS_DEBUG_FLAG): Define.
* configure: Regenerate.
* config.in: Add dummy definitions of new flags.
* toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
* defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
* gcc.c (ASM_DEBUG_SPEC): New macro.
(asm_debug): New static variable.
(default_compilers): Add asm_debug when assembling from
user input.
(static_specs): Add asm_debug.
From-SVN: r47210
Mark Mitchell [Tue, 20 Nov 2001 09:00:33 +0000 (09:00 +0000)]
re PR c++/3637 (Internal compiler error in finish_member_declaration)
PR c++/3637
* call.c (non_reference): Add documentation.
(convert_class_to_reference): Do not strip reference types
from conversion operators.
(maybe_handle_ref_bind): Simplify.
(compare_ics): Correct handling of references.
From-SVN: r47209
GCC Administrator [Tue, 20 Nov 2001 08:16:18 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r47206
Loren J. Rittle [Tue, 20 Nov 2001 07:36:29 +0000 (07:36 +0000)]
* config.gcc (*-*-freebsd*): Remove configuration block.
From-SVN: r47205
Loren J. Rittle [Tue, 20 Nov 2001 06:38:53 +0000 (06:38 +0000)]
configure.in: Setup ability to run ./stage[1234]/xgcc in fixinc *as if* it were a proper lang...
bootstrap/4422
* configure.in: Setup ability to run ./stage[1234]/xgcc in
fixinc *as if* it were a proper lang subdirectory.
* configure: Rebuilt.
From-SVN: r47204
Loren J. Rittle [Tue, 20 Nov 2001 05:49:35 +0000 (05:49 +0000)]
* config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
From-SVN: r47203
Tom Tromey [Tue, 20 Nov 2001 05:16:17 +0000 (05:16 +0000)]
verify.cc (_Jv_BytecodeVerifier::branch_prepass): Uses two operand bytes, not one.
* verify.cc (_Jv_BytecodeVerifier::branch_prepass) [op_iinc]:
Uses two operand bytes, not one.
[op_arraylength]: Has no operands in bytecode.
(_Jv_BytecodeVerifier::push_jump): Fixed call to
check_no_uninitialized_objects.
(_Jv_BytecodeVerifier::push_exception_jump): Likewise.
(_Jv_BytecodeVerifier::handle_ret_insn): Likewise.
(_Jv_BytecodeVerifier::handle_jsr_insn): Likewise.
From-SVN: r47202
Mark Mitchell [Tue, 20 Nov 2001 05:09:34 +0000 (05:09 +0000)]
re PR c++/4629 (non-constant `sizeof (void*)' cannot be used as template argument)
* dump.c (dump_op): New function.
(cp_dump_tree): Dump CLASSTYPE_TEMPLATE_SPECIALIZATION. Use
dump_op. Dump DECL_MUTABLE, access and staticness for VAR_DECLs.
DECL_PURE_VIRTUAL_P, DECL_VIRTUAL_P,
PR4629
* semantics.c (finish_sizeof): Make sure that expression created
while processing a template do not have a type.
(finish_alignof): Likewise.
* typeck.c (c_sizeof): Likewise.
(expr_sizeof): Likewise.
From-SVN: r47201
Loren J. Rittle [Tue, 20 Nov 2001 04:39:13 +0000 (04:39 +0000)]
* Make-lang.in: Complete ``Build g77.1 in $(srcdir)''.
From-SVN: r47198
Kaveh R. Ghazi [Tue, 20 Nov 2001 04:37:12 +0000 (04:37 +0000)]
* 1750a.md: Don't use hex format for a const_int.
From-SVN: r47197
Geoffrey Keating [Tue, 20 Nov 2001 04:12:11 +0000 (04:12 +0000)]
* expmed.c (extract_bit_field): Don't create invalid SUBREGs.
From-SVN: r47196
Geoffrey Keating [Tue, 20 Nov 2001 04:03:52 +0000 (04:03 +0000)]
Index: f/ChangeLog
* g77spec.c (lang_specific_driver) [ENABLE_SHARED_LIBGCC]: Add
libgcc_s.so if libf2c is used.
* Make-lang.in (g77spec.o): Use DRIVER_DEFINES.
Index: testsuite/ChangeLog
* lib/g77.exp: Don't specify --rpath-link.
From-SVN: r47195
Geoffrey Keating [Tue, 20 Nov 2001 03:51:02 +0000 (03:51 +0000)]
cpp.exp: For testing on a remote host, copy across all the headers.
* gcc.dg/cpp/cpp.exp: For testing on a remote host, copy
across all the headers.
* gcc.dg/format/format.exp: For testing on a remote host,
copy format.h.
* gcc.c-torture/execute/
20011008-3.c: Allow for small STACK_SIZE.
* gcc.c-torture/execute/930406-1.c: Likewise.
* gcc.c-torture/execute/comp-goto-1.c: Likewise.
From-SVN: r47194
Phil Edwards [Tue, 20 Nov 2001 00:51:37 +0000 (00:51 +0000)]
Intro.3: More notes.
2001-11-19 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/Intro.3: More notes.
* docs/doxygen/style.css: Update to default style from Doxygen 1.2.10.
* include/bits/stl_algobase.h: Add doxygen hooks for functions.
* include/ext/hash_map: Add @file hook.
* include/ext/hash_set: Likewise.
* include/ext/rope: Likewise.
* include/ext/ropeimpl.h: Likewise.
* include/ext/slist: Likewise.
* include/ext/stl_hash_fun.h: Likewise.
* include/ext/stl_hashtable.h: Likewise.
* include/ext/stl_rope.h: Likewise.
* docs/html/17_intro/license.html: Remove "experimental" sentence.
* docs/html/19_diagnostics/howto.html: Document new verbose
terminate handler.
* testsuite/27_io/filebuf.cc: Fix comment, move tweakable parameter
to more visible (closer to description) position.
* libsupc++/eh_type.cc: Formatting tweak.
* libsupc++/exception: Likewise.
* src/vterminate.cc: Likewise.
* docs/html/17_intro/porting.html: Regenerate.
* docs/html/faq/index.txt: Regenerate.
From-SVN: r47193
Aldy Hernandez [Tue, 20 Nov 2001 00:38:56 +0000 (00:38 +0000)]
* gcc.c-dg/altivec.c: New.
From-SVN: r47191
Tom Tromey [Tue, 20 Nov 2001 00:38:40 +0000 (00:38 +0000)]
verify.cc (_Jv_BytecodeVerifier::require_array_type): Special case for boolean arrays.
* verify.cc (_Jv_BytecodeVerifier::require_array_type): Special
case for boolean arrays.
* verify.cc (_Jv_BytecodeVerifier::compute_jump): Put PC into
error message.
From-SVN: r47190
Zack Weinberg [Mon, 19 Nov 2001 23:12:41 +0000 (23:12 +0000)]
mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is defined (prevents link errors when...
* mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
defined (prevents link errors when gettext isn't in the system
library).
From-SVN: r47189
Toon Moene [Mon, 19 Nov 2001 22:56:51 +0000 (23:56 +0100)]
cvsignore: Ignore g77.1
2001-11-19 Toon Moene <toon@moene.indiv.nluug.nl>
* .cvsignore: Ignore g77.1
* g77.texi: Substitute `@command' for `@code'
where appropriate.
* invoke.texi: Ditto.
From-SVN: r47188
DJ Delorie [Mon, 19 Nov 2001 22:37:12 +0000 (17:37 -0500)]
read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
* read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
(validate_const_int): New.
(read_rtx): Validate constant integers.
* config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
From-SVN: r47187
Jakub Jelinek [Mon, 19 Nov 2001 22:34:58 +0000 (23:34 +0100)]
* doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
From-SVN: r47186
Douglas B Rupp [Mon, 19 Nov 2001 22:09:00 +0000 (17:09 -0500)]
toplev.c (DUMPFILE_FORMAT): Define default.
* toplev.c (DUMPFILE_FORMAT): Define default.
(open_dump_file): Use DUMPFILE_FORMAT in sprintf.
(close_dump_file, compile_file): Likewise.
* config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
* doc/hostconfig.texi (DUMPFILE_FORMAT): Document
From-SVN: r47185
Jeff Law [Mon, 19 Nov 2001 21:51:53 +0000 (14:51 -0700)]
gcse.c (cprop_jump): Clear JUMP_LABEL field when we create a nop-jump.
* gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
a nop-jump.
From-SVN: r47183
Neil Booth [Mon, 19 Nov 2001 21:04:49 +0000 (21:04 +0000)]
cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
* cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
Don't fall off the base token run.
* gcc.dg/cpp/fpreprocessed.c: New test case.
From-SVN: r47182
Jason Wilkins [Mon, 19 Nov 2001 20:55:13 +0000 (20:55 +0000)]
* Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
From-SVN: r47181
Laurent Guerby [Mon, 19 Nov 2001 20:39:10 +0000 (20:39 +0000)]
Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include since it is of no apparent use and cause warnings.
2001-11-19 Laurent Guerby <guerby@acm.org>
* Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
since it is of no apparent use and cause warnings.
From-SVN: r47180
Richard Kenner [Mon, 19 Nov 2001 20:38:07 +0000 (20:38 +0000)]
tree.def (VIEW_CONVERT_EXPR): New tree code.
* tree.def (VIEW_CONVERT_EXPR): New tree code.
* tree.h (handled_component_p): New declaration.
* alias.c (handled_component_p): Move function from here ...
* expr.c (handled_component_p): ... to here and non longer static.
(is_zeros_p, case VIEW_CONVERT_EXPR): New case.
(store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
(get_inner_reference): Handle VIEW_CONVERT_EXPR.
(expand_expr, case VAR_DECL): Clean up handling of re-layout case.
(expand_expr, case VIEW_CONVERT_EXPR): New case.
(expand_expr, cse ADDR_EXPR): No need to copy if already
BIGGEST_ALIGNMENT.
* fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
* varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
(output_constant): Handle VIEW_CONVERT_EXPR.
* dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
Add new case for VIEW_CONVERT_EXPR.
From-SVN: r47179
Kaveh R. Ghazi [Mon, 19 Nov 2001 18:30:04 +0000 (18:30 +0000)]
unix.h (ASM_FILE_START): Const-ify.
* a29k/unix.h (ASM_FILE_START): Const-ify.
* i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
* i386/isc.h (ASM_FILE_START): Const-ify.
* i386/sun386.h (ASM_FILE_START): Likewise.
* m32r.md: Likewise.
* m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
* m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
* m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
* mn10200.md: Initialize variable.
From-SVN: r47178
Tom Tromey [Mon, 19 Nov 2001 18:28:28 +0000 (18:28 +0000)]
verify.cc (_Jv_BytecodeVerifier::verify_instructions_0): Shift argument is an int, not a long.
* verify.cc (_Jv_BytecodeVerifier::verify_instructions_0)
[op_lshl, op_lshr, op_lushr]: Shift argument is an int, not a
long.
From-SVN: r47177
Jan Hubicka [Mon, 19 Nov 2001 17:08:48 +0000 (18:08 +0100)]
gcse.c (try_replace_reg): Copy RTX before creating note.
* gcse.c (try_replace_reg): Copy RTX before creating note.
* df.h (df_ref_flags): New uenum.
(DF_REF_FLAGS): New macro.
(struct ref): Add field "flags".
* df.c (HANDLE_SUBREG): Remove.
(df_ref_create): Likewise; set flags field of ref.
(df_def_record_1): Strip down read_write subreg; remove
commented out code; set READ_WRITE flag.
(read_modify_subreg_p): New static function.
(df_uses_record): Cleanup SET handling; set READ_WRITE flag;
new argument "flags".
(df_insn_refs_record): Update call of df_uses_record.
(df_insn_modify): Avoid #if 0 around comment.
(df_dump): Dump the read/write flag.
* predict.c (propagate_freq): Make cyclic_probability and frequency
volatile
* i386.c (ix86_cc_mode): Accept USE.
* cfgrtl.c (purge_dead_edges): Cleanup EDGE_ABNORMAL flag if computed
jump is turned into simplejump.
From-SVN: r47175
Joseph Myers [Mon, 19 Nov 2001 13:16:39 +0000 (13:16 +0000)]
* gcc_release: Add /usr/local/bin to path when local.
From-SVN: r47173
Joseph Myers [Mon, 19 Nov 2001 12:42:28 +0000 (12:42 +0000)]
fragments.texi, [...]: Remove links to old installation chapter.
* doc/fragments.texi, doc/trouble.texi: Remove links to old
installation chapter.
* doc/gcc.texi: Don't claim that this manual documents
installation. Mark Installation menu entry as being out of date.
From-SVN: r47172
Douglas B Rupp [Mon, 19 Nov 2001 12:17:28 +0000 (07:17 -0500)]
xm-vms.h: Don't define macros that autoconf handles.
* config/alpha/xm-vms.h: Don't define macros that autoconf handles.
(SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
* gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
From-SVN: r47170
Jason Merrill [Mon, 19 Nov 2001 11:28:52 +0000 (06:28 -0500)]
cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing cur_token, not after.
* cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
cur_token, not after.
* config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
Lose ASM_OUTPUT_CONSTRUCTOR.
* system.h: Poison it and INT_ASM_OP.
* c-lang.c (finish_file): Don't check for it.
* libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
From-SVN: r47169
GCC Administrator [Mon, 19 Nov 2001 08:16:15 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r47166
Tom Tromey [Mon, 19 Nov 2001 07:08:36 +0000 (07:08 +0000)]
verify.cc (type::to_array): New method.
* verify.cc (type::to_array): New method.
(_Jv_BytecodeVerifier::verify_instructions_0) [op_anewarray]:
Construct new array type.
From-SVN: r47165
Kaveh R. Ghazi [Mon, 19 Nov 2001 02:43:32 +0000 (02:43 +0000)]
mmix.c (mmix_cc1_ignored_option): Const-ify.
* mmix.c (mmix_cc1_ignored_option): Const-ify.
(mmix_init_machine_status): Make static to match declaration.
(mmix_unique_section): Const-ify.
(mmix_output_quoted_string): Avoid automatic aggregate
initialization.
(mmix_output_register_setting): Likewise.
(mmix_output_shiftvalue_op_from_str): Likewise.
* mmix.h (mmix_cc1_ignored_option): Const-ify.
(ASM_OUTPUT_BYTE): Fix format specifier warning.
(ASM_GENERATE_INTERNAL_LABEL): Likewise.
From-SVN: r47164
Tom Tromey [Mon, 19 Nov 2001 02:13:08 +0000 (02:13 +0000)]
verify.cc (_Jv_BytecodeVerifier::branch_prepass): Skip a short, not a byte.
* verify.cc (_Jv_BytecodeVerifier::branch_prepass) [op_sipush]:
Skip a short, not a byte.
[op_newarray]: Skip a byte, not a short.
From-SVN: r47163
Tom Tromey [Mon, 19 Nov 2001 01:37:28 +0000 (01:37 +0000)]
verify.cc (_Jv_BytecodeVerifier::get_type_val_for_signature): Added `B' case.
* verify.cc (_Jv_BytecodeVerifier::get_type_val_for_signature):
Added `B' case.
From-SVN: r47162
Tom Tromey [Mon, 19 Nov 2001 01:04:15 +0000 (01:04 +0000)]
verify.cc (_Jv_BytecodeVerifier::get_ushort): Use `jint' for temporary values.
* verify.cc (_Jv_BytecodeVerifier::get_ushort): Use `jint' for
temporary values.
(_Jv_BytecodeVerifier::get_short): Likewise.
(_Jv_BytecodeVerifier::get_int): Likewise.
(_Jv_BytecodeVerifier::check_return_type): Reverse ordering of
`compatible' call.
From-SVN: r47161
Tom Tromey [Mon, 19 Nov 2001 00:31:37 +0000 (00:31 +0000)]
verify.cc (_Jv_BytecodeVerifier::pop_type): Put PC into error message.
* verify.cc (_Jv_BytecodeVerifier::pop_type): Put PC into error
message.
(_Jv_BytecodeVerifier::pop64): Likewise.
(_Jv_BytecodeVerifier::pop32): Likewise.
(_Jv_BytecodeVerifier::pop_raw): Likewise.
(_Jv_BytecodeVerifier::pop_type): Promote the match type.
(type::set_initialized): Only modify uninitialized types.
(type::set_uninitialized): Fix shadowing bug. Simplify code.
From-SVN: r47158
Craig Rodrigues [Mon, 19 Nov 2001 00:24:52 +0000 (00:24 +0000)]
re PR bootstrap/4448 (make bootstrap failed: gthr-win32.h erroneous)
2001-11-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR c/4448
* gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
name __objc_thread_exit_status so that it matches the
variable defined in objc/thr.h.
From-SVN: r47157
Tom Tromey [Mon, 19 Nov 2001 00:13:36 +0000 (00:13 +0000)]
re PR java/1401 (+= semantics not correct (when generating bytecode))
Fix for PR java/1401:
* jcf-write.c (generate_bytecode_insns) [binop]: Handle case where
arg0 is null.
(generate_bytecode_insns) [MODIFY_EXPR]: Handle `OP=' case
correctly.
From-SVN: r47156
Tom Tromey [Sun, 18 Nov 2001 23:04:28 +0000 (23:04 +0000)]
verify.cc: Include StringBuffer.h.
* verify.cc: Include StringBuffer.h.
(verify_fail): Added pc argument. Use StringBuffer to construct
exception message.
(_Jv_BytecodeVerifier::verify_instructions_0): Put PC into error
message.
(_Jv_BytecodeVerifier::check_return_type): Likewise.
(_Jv_BytecodeVerifier::handle_field_or_method): Likewise.
(_Jv_BytecodeVerifier::check_constant): Likewise.
(_Jv_BytecodeVerifier::check_class_constant): Likewise.
(_Jv_BytecodeVerifier::check_pool_index): Likewise.
(_Jv_BytecodeVerifier::get_variable): Likewise.
(_Jv_BytecodeVerifier::branch_prepass): Likewise. Also, correctly
check exception handler endpoint.
(_Jv_BytecodeVerifier::verify_instructions_0): Correctly handle
wide arguments to current method.
(_Jv_BytecodeVerifier::check_wide_constant): New method.
(_Jv_BytecodeVerifier::verify_instructions_0) [op_ldc2_w]: Use
it.
From-SVN: r47155
Craig Rodrigues [Sun, 18 Nov 2001 22:08:32 +0000 (22:08 +0000)]
re PR bootstrap/4020 (Shell script syntax errors in gcc make files)
2001-11-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR bootstrap/4020
* mklibgcc.in: Add missing semi-colons.
* Makefile.in: Same.
From-SVN: r47154
Richard Kenner [Sun, 18 Nov 2001 21:44:26 +0000 (21:44 +0000)]
expr.c (expand_expr, [...]): Update alignment of DECL_RTL after re-laying out decl in incomplete case.
* expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
after re-laying out decl in incomplete case.
(expand_expr, case ADDR_EXPR): Fix typo in copy case.
From-SVN: r47153
Toon Moene [Sun, 18 Nov 2001 20:37:36 +0000 (21:37 +0100)]
Make-lang.in: Remove all references to LANGUAGES and the stamp files that depend on its value.
2001-11-18 Toon Moene <toon@moene.indiv.nluug.nl>
* Make-lang.in: Remove all references to LANGUAGES
and the stamp files that depend on its value.
From-SVN: r47152
Joseph Myers [Sun, 18 Nov 2001 19:46:58 +0000 (19:46 +0000)]
install-old.texi: Move some sections out to ...
* doc/install-old.texi: Move some sections out to ...
* doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
... here. New files. Make into chapters rather than sections.
* doc/gcc.texi: Include the new files and add menu entries for
them.
* Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
From-SVN: r47150
Richard Kenner [Sun, 18 Nov 2001 19:36:01 +0000 (19:36 +0000)]
tree.h (TYPE_ALIGN_OK): New flag.
* tree.h (TYPE_ALIGN_OK): New flag.
* emit-rtl.c (set_mem_attributes): Handle it.
* expr.c (emit_single_push_insn): Only set to alias set 0 if
doing sibcall optimization.
(expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
when make temporary.
(expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
(expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
From-SVN: r47149
Richard Kenner [Sun, 18 Nov 2001 19:08:43 +0000 (19:08 +0000)]
* sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
From-SVN: r47148
Joseph Myers [Sun, 18 Nov 2001 17:16:24 +0000 (17:16 +0000)]
c-decl.c (c_decode_option): Give deprecation warning for -traditional.
* c-decl.c (c_decode_option): Give deprecation warning for
-traditional.
* doc/invoke.texi (-traditional): Note that this option is
deprecated.
testsuite:
* gcc.dg/cpp/assert_trad1.c, gcc.dg/cpp/tr-paste.c,
gcc.dg/cpp/tr-str.c: Use -traditional-cpp instead of -traditional.
* gcc.dg/ext-glob.c: Expect -traditional deprecation warning.
From-SVN: r47147
Douglas B Rupp [Sun, 18 Nov 2001 12:43:14 +0000 (07:43 -0500)]
alpha.c (alpha_start_function, VMS): Cast shift arg to HOST_WIDE_INT, not long.
* config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
arg to HOST_WIDE_INT, not long.
From-SVN: r47146
Douglas B Rupp [Sun, 18 Nov 2001 12:35:28 +0000 (07:35 -0500)]
* config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
(HAS_INIT_SECTION): Define.
(REAL_ARITHMETIC): Don't undefine.
From-SVN: r47145
Egor Duda [Sun, 18 Nov 2001 12:06:41 +0000 (12:06 +0000)]
cygwin.h: Strip leading '*' from name, if any.
2001-11-18 Egor Duda <deo@logos-m.ru>
* config/i386/cygwin.h: Strip leading '*' from name, if any.
From-SVN: r47144
Neil Booth [Sun, 18 Nov 2001 11:11:52 +0000 (11:11 +0000)]
* Makefile.in: Update.
From-SVN: r47142
Neil Booth [Sun, 18 Nov 2001 11:04:53 +0000 (11:04 +0000)]
Makefile.in (c-parse.o, c-common.o): Update dependencies.
* Makefile.in (c-parse.o, c-common.o): Update dependencies.
* c-common.c: Include diagnostic.h.
(c_common_finish): New.
* c-common.h (c_common_finish): New.
* c-lang.c (LANG_HOOKS_FINISH): Override.
* c-parse.in: Don't include diagnostic.h.
(finish_parse): Remove.
* langhooks.h: Update comments.
* toplev.c (lang_dependent_init): New prototype.
(finalize): New.
(compile_file): Split cleanup code out to finalize.
(lang_dependent_init): Stop if lang_hooks.init fails.
(toplev_main): Update.
* tree.h (finish_parse): Remove.
ada: * misc.c (gnat_decode_option, gnat_init_options): Make definitions
static too.
(gnat_init): Don't return NULL.
(finish_parse): Remove.
cp: * lex.c (cxx_finish): Call c_common_finish.
(finish_parse): Remove.
f: * com.c (finish_parse): Remove.
(ffe_finish): Move body of finish_parse.
java: * lang.c (finish_parse): Rename to java_finish.
(LANG_HOOKS_FINISH, java_finish): New.
objc: * objc-act.c (LANG_HOOKS_FINISH): Override.
From-SVN: r47141
GCC Administrator [Sun, 18 Nov 2001 08:16:11 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r47137
Kriang Lerdsuwanakij [Sun, 18 Nov 2001 06:31:20 +0000 (06:31 +0000)]
decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE when displaying error message about missing array bounds.
* decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE
when displaying error message about missing array bounds.
From-SVN: r47136
Kriang Lerdsuwanakij [Sun, 18 Nov 2001 06:24:45 +0000 (06:24 +0000)]
mangle.c (write_expression): Handle CAST_EXPR, STATIC_CAST_EXPR, CONST_CAST_EXPR.
* mangle.c (write_expression): Handle CAST_EXPR, STATIC_CAST_EXPR,
CONST_CAST_EXPR.
* operators.def: Add CAST_EXPR, STATIC_CAST_EXPR, CONST_CAST_EXPR.
From-SVN: r47135
Douglas B Rupp [Sun, 18 Nov 2001 04:27:50 +0000 (23:27 -0500)]
t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
* config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
* config/alpha/vms_tramp.asm: New file.
* config/alpha/vms-tramp.asm: Removed.
From-SVN: r47134
Joseph Myers [Sun, 18 Nov 2001 03:30:57 +0000 (03:30 +0000)]
c-common.c (struct disabled_builtin, [...]): New.
* c-common.c (struct disabled_builtin, disabled_builtins,
disable_builtin_function, builtin_function_disabled_p): New.
(builtin_function_2): Check for disabled built-in functions.
* c-common.h (disable_builtin_function): Declare.
* c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
* doc/invoke.texi: Document -fno-builtin-FUNCTION.
* doc/extend.texi: Mention -fno-builtin-FUNCTION.
testsuite:
* gcc.dg/no-builtin-1.c: New test.
From-SVN: r47133
Jason Merrill [Sun, 18 Nov 2001 02:09:23 +0000 (21:09 -0500)]
eh_personality.cc (__cxa_call_unexpected): Take void*.
* libsupc++/eh_personality.cc (__cxa_call_unexpected): Take void*.
* libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
* libsupc++/unwind-cxx.h: Adjust.
* src/Makefile.am (strstream.o): Pass -Wno-deprecated.
* libsupc++/eh_type.cc (__cxa_current_exception_type): New file.
* libsupc++/cxxabi.h: Declare it.
* libsupc++/Makefile.am (sources): Add it.
* src/vterminate.cc (verbose_terminate_handler): New file.
* libsupc++/exception: Declare it.
* src/Makefile.am (sources): Add it.
* src/Makefile.am (VPATH): Check the src directory before the top one.
From-SVN: r47132
Craig Rodrigues [Sun, 18 Nov 2001 01:18:55 +0000 (01:18 +0000)]
MAINTAINERS (GNATS only accounts): Remove self.
2001-11-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
* MAINTAINERS (GNATS only accounts): Remove self.
From-SVN: r47131
Craig Rodrigues [Sun, 18 Nov 2001 00:14:52 +0000 (00:14 +0000)]
re PR target/4606 (config.gcc refers to non-existant va-clipper.h)
2001-11-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR target/4606
* config.gcc: Remove reference to va-clipper.h.
From-SVN: r47129
Anthony Green [Sat, 17 Nov 2001 21:32:22 +0000 (21:32 +0000)]
Obvious jni weak reference fix
From-SVN: r47128
Stan Shebs [Sat, 17 Nov 2001 21:17:53 +0000 (21:17 +0000)]
rs6000.h (REG_CLASS_CONTENTS): Fix the AltiVec-related bitfields.
* config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
AltiVec-related bitfields.
From-SVN: r47127
Richard Kenner [Sat, 17 Nov 2001 17:33:57 +0000 (17:33 +0000)]
except.c (enum eh_region_type): Add ERT_UNKNOWN.
* except.c (enum eh_region_type): Add ERT_UNKNOWN.
(mark_eh_region, case ERT_UKNONW): New case.
From-SVN: r47123
Christopher Faylor [Sat, 17 Nov 2001 17:25:34 +0000 (17:25 +0000)]
Add extra name.
From-SVN: r47122
Christopher Faylor [Sat, 17 Nov 2001 17:19:11 +0000 (17:19 +0000)]
cygwin.h: Search target specific include directory for w32api stuff, if appropriate.
* config/i386/cygwin.h: Search target specific include directory for w32api
stuff, if appropriate.
From-SVN: r47121
Douglas B Rupp [Sat, 17 Nov 2001 13:17:03 +0000 (08:17 -0500)]
* config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
From-SVN: r47118
Laurent Guerby [Sat, 17 Nov 2001 11:35:08 +0000 (11:35 +0000)]
Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
2001-11-17 Laurent Guerby <guerby@acm.org>
* Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
* gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
* io-aux.c: Provide K&R prototypes to all functions, reformat code.
* lang-spec.h: Add missing struct field to silence warnings.
* sysdep.c (rts_get_*): Provide K&R prototype.
* sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
* traceback.c (Unlock_Task, Lock_Task): Likewise.
* tracebak.c (__gnat_backtrace): Remove unused variable.
* utils.c (end_subprog_body): Move to K&R style.
From-SVN: r47117
GCC Administrator [Sat, 17 Nov 2001 08:16:21 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r47115
David O'Brien [Sat, 17 Nov 2001 05:46:25 +0000 (05:46 +0000)]
Not all of revision 1.113 made it in.
From-SVN: r47114
Aldy Hernandez [Sat, 17 Nov 2001 01:19:06 +0000 (01:19 +0000)]
rs6000.md: Change all ldvx to lvx.
2001-11-16 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.md: Change all ldvx to lvx.
From-SVN: r47113
Tom Tromey [Fri, 16 Nov 2001 23:39:34 +0000 (23:39 +0000)]
verify.cc (_Jv_BytecodeVerifier::check_field_constant): Handle case where field has primitive type.
* verify.cc (_Jv_BytecodeVerifier::check_field_constant): Handle
case where field has primitive type.
From-SVN: r47112
Alexandre Oliva [Fri, 16 Nov 2001 22:59:46 +0000 (22:59 +0000)]
gensupport.c (process_rtx): Don't assume filename is the first argument of any rtl.
* gensupport.c (process_rtx): Don't assume filename is the first
argument of any rtl.
From-SVN: r47111
John David Anglin [Fri, 16 Nov 2001 22:40:21 +0000 (22:40 +0000)]
vax-protos.h (reg_was_0_p): New prototype.
* vax-protos.h (reg_was_0_p): New prototype.
* vax.md (movsi, movhi, movqi): Use reg_was_0_p.
* vax.c (follows_p, reg_was_0_p): New functions.
From-SVN: r47110
John David Anglin [Fri, 16 Nov 2001 22:24:23 +0000 (22:24 +0000)]
vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))".
* vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
(casesi1): Likewise. Define new pattern which arises by simplification
when operand 1 is a constant int. Correct pattern which arises by
simplification when operand 1 is zero.
From-SVN: r47109
Kaveh R. Ghazi [Fri, 16 Nov 2001 21:54:17 +0000 (21:54 +0000)]
Update test for token pasting to also check "|| defined(ALMOST_STDC)"
From-SVN: r47108
Kaveh R. Ghazi [Fri, 16 Nov 2001 21:49:25 +0000 (21:49 +0000)]
regex.c: Check defined(__STDC__) || defined(HAVE_STRINGIZE) to determine whether ISO CPP...
* regex.c: Check defined(__STDC__) || defined(HAVE_STRINGIZE)
to determine whether ISO CPP token pasting is available.
From-SVN: r47107
John David Anglin [Fri, 16 Nov 2001 21:29:29 +0000 (21:29 +0000)]
Makefile.in: Add MAKEOVERRIDES= to suppress exporting environment to (sub)shells.
2001-11-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
* Makefile.in: Add MAKEOVERRIDES= to suppress exporting
environment to (sub)shells.
From-SVN: r47106
David O'Brien [Fri, 16 Nov 2001 21:23:16 +0000 (21:23 +0000)]
config.gcc (arm*-*-rtems*, [...]): Include various CPU headers via tm_file.
2001-11-16 David O'Brien <obrien@FreeBSD.org>
* config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
* config/arm/aof.h: Don't include arm.h.
* config/arm/aout.h: Likewise.
* config/arm/coff.h: Don't include semi.h and aout.h.
* config/arm/elf.h: Don't include aout.h.
* config/arm/netbsd.h: Don't include netbsd.h and aout.h.
(TARGET_VERSION): Undef before defining.
(ARM_OS_NAME): Likewise
(TARGET_DEFAULT): Likewise
(TARGET_MEM_FUNCTIONS): Do not need to undefine now.
* config/arm/pe.h: Don't include arm/coff.h.
* config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
* config/arm/riscix1-1.h: Likewise.
* config/arm/rix-gas.h: Don't include riscix.h.
(DBX_CONTIN_LENGTH): Undef before defining.
* config/arm/semi.h: Don't include aout.h.
* config/arm/semiaof.h: Don't include aof.h.
* config/arm/strongarm-coff.h: Don't include coff.h.
* config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
* config/arm/vxarm.h: Don't include arm/coff.h.
* config/arm/xscale-coff.h: Don't include coff.h.
Approved by: Nick Clifton <nickc@cambridge.redhat.com>
<m3ofm2c27q.fsf@north-pole.nickc.cambridge.redhat.com>
From-SVN: r47105
Paolo Carlini [Fri, 16 Nov 2001 21:00:59 +0000 (22:00 +0100)]
stl_deque.h (deque::erase()): Fix memory leak.
2001-11-16 Paolo Carlini <pcarlini@unitus.it>
* include/bits/stl_deque.h (deque::erase()): Fix memory leak.
From-SVN: r47103
Loren J. Rittle [Fri, 16 Nov 2001 20:59:10 +0000 (20:59 +0000)]
howto.html (Thread-safety): Rename section to ``The Standard C++ library and multithreading'' and update...
* docs/html/17_intro/howto.html (Thread-safety): Rename
section to ``The Standard C++ library and multithreading'' and
update information based on recent mailing list traffic. Move
all discussion of __USE_MALLOC to...
* docs/html/23_containers/howto.html (Containers and multithreading):
...here and rework it based on recent mailing list traffic.
From-SVN: r47102
Richard Kenner [Fri, 16 Nov 2001 20:30:19 +0000 (20:30 +0000)]
pa.c: Reflect changes in calling sequences of alter_reg and emit_cmp_insn.
* config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
emit_cmp_insn.
From-SVN: r47101
Andreas Jaeger [Fri, 16 Nov 2001 20:15:29 +0000 (21:15 +0100)]
cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename to ....
* cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
to ....
(fixup_fallthru_exit_predecessor): ... this.
Change callers and prototype.
From-SVN: r47098
Tom Tromey [Fri, 16 Nov 2001 19:59:16 +0000 (19:59 +0000)]
verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow): New method.
* verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow): New
method.
(type::compatible): Use it.
(type::merge): Likewise.
(type::promote): Return a `type&'.
(get_one_type): Promote return value.
From-SVN: r47097
Bernd Schmidt [Fri, 16 Nov 2001 19:58:40 +0000 (19:58 +0000)]
Some SSE fixes
From-SVN: r47096
Tom Tromey [Fri, 16 Nov 2001 19:52:24 +0000 (19:52 +0000)]
Re-merge with Classpath, from Brian Jones:
* java/lang/Integer.java (getInteger): Attempt to decode the value
of the system property instead of the name of the system property.
(parseInt): Throw NumberFormatException explicitly in the case of
a null argument in keeping with JDK 1.3.
From-SVN: r47095
Neil Booth [Fri, 16 Nov 2001 19:17:32 +0000 (19:17 +0000)]
* cp-tree.h (print_class_statistics): Restore.
From-SVN: r47094
Mark Wielaard [Fri, 16 Nov 2001 19:00:47 +0000 (19:00 +0000)]
Timer.java (TaskQueue.isStopped): Remove method.
* java/util/Timer.java (TaskQueue.isStopped): Remove method.
(Scheduler.run): Try to re-schedule task and ignore exception if
queue has been stopped.
From-SVN: r47093
Joseph Myers [Fri, 16 Nov 2001 18:56:14 +0000 (18:56 +0000)]
linux-and-gnu.texi: Remove.
* doc/include/linux-and-gnu.texi: Remove.
* doc/gnu.texi: New.
* doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
* Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
From-SVN: r47092
Kazu Hirata [Fri, 16 Nov 2001 18:33:57 +0000 (18:33 +0000)]
a29k.c: Fix comment formatting.
* config/a29k/a29k.c: Fix comment formatting.
* config/a29k/a29k.h: Likewise.
* config/arc/arc.c: Likewise.
* config/arc/arc.h: Likewise.
* config/vax/vax.c: Likewise.
* config/vax/vax.h: Likewise.
* config/we32k/we32k.c: Likewise.
* config/we32k/we32k.h: Likewise.
From-SVN: r47091
Jeff Law [Fri, 16 Nov 2001 17:08:12 +0000 (10:08 -0700)]
unroll.c (copy_loop_body): Initialize JUMP_LABEL field after creating a new jump insn.
* unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
creating a new jump insn.
From-SVN: r47090
Richard Kenner [Fri, 16 Nov 2001 14:02:56 +0000 (14:02 +0000)]
expr.c (expand_expr, [...]): Refine test for when to copy misaligned data.
* expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
copy misaligned data.
* varasm.c (assemble_variable): Set alignment into MEM when changed.
From-SVN: r47089
Graham Stott [Fri, 16 Nov 2001 13:22:59 +0000 (13:22 +0000)]
optabs.c (prepare_cmp_insn): Correct lossage in last change fix OPALIGN type.
* optabs.c (prepare_cmp_insn): Correct lossage in last change fix
OPALIGN type.
From-SVN: r47088
Olivier Hainque [Fri, 16 Nov 2001 12:48:18 +0000 (13:48 +0100)]
except.c: Support for catching a list of types with a single handler (struct eh_region):...
* except.c: Support for catching a list of types with a single handler
(struct eh_region): Change type and filter to lists for catch regions.
(mark_eh_region): Mark the filter list for GC also.
(expand_start_catch): Always build a list if argument not NULL and
register each type of the list through add_type_for_runtime.
(duplicate_eh_region_1): Change type into type_list for catch regions.
(assign_filter_values): Assign a filter to each type associated with a
catch region. Assign filter for NULL types in a unique entry in the
filter list.
(build_post_landing_pads): Emit compare and jump for each filter of
the list associated with a catch region.
(reachable_next_level): When the type thrown is known, stop the search
as soon as one type within a catch list matches. Also, a handler is
potentially reachable only if at least one of the types it catches
has not been previously caught.
(collect_one_action_chain): Retrieve the filter for a NULL type list
from the first filter list entry. For non NULL type lists, add an
action record for every filter assigned.
* except.h: Reflect changes in comment before expand_start_catch.
From-SVN: r47087
Richard Kenner [Fri, 16 Nov 2001 12:11:13 +0000 (12:11 +0000)]
expr.c (expand_expr, [...]): Only copy for misaligned if BLKmode.
* expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
BLKmode.
From-SVN: r47086
Andreas Tobler [Fri, 16 Nov 2001 11:33:23 +0000 (12:33 +0100)]
* config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
From-SVN: r47085
GCC Administrator [Fri, 16 Nov 2001 08:16:11 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r47083
Jakub Jelinek [Fri, 16 Nov 2001 08:05:16 +0000 (09:05 +0100)]
c-lang.c (finish_file): Don't emit static inline functions if they weren't referenced.
* c-lang.c (finish_file): Don't emit static inline functions if
they weren't referenced.
* gcc.c-torture/execute/
20011115-1.c: New test.
From-SVN: r47082