Tom Tromey
94e1e142fa
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
2001-11-19 18:28:28 +00:00
Jan Hubicka
7fcd721879
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
2001-11-19 17:08:48 +00:00
Joseph Myers
f83fd9ae2e
* gcc_release: Add /usr/local/bin to path when local.
...
From-SVN: r47173
2001-11-19 13:16:39 +00:00
Joseph Myers
598f4c4c13
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
2001-11-19 12:42:28 +00:00
Douglas B Rupp
394f41b6cc
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
2001-11-19 07:17:28 -05:00
Jason Merrill
aa6ad1a68b
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
2001-11-19 06:28:52 -05:00
GCC Administrator
55d56a9096
Daily bump.
...
From-SVN: r47166
2001-11-19 08:16:15 +00:00
Tom Tromey
d68e5f555d
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
2001-11-19 07:08:36 +00:00
Kaveh R. Ghazi
755407600f
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
2001-11-19 02:43:32 +00:00
Tom Tromey
7db43d37b1
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
2001-11-19 02:13:08 +00:00
Tom Tromey
4c6d901a76
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
2001-11-19 01:37:28 +00:00
Tom Tromey
590077b070
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
2001-11-19 01:04:15 +00:00
Tom Tromey
e7b35eec24
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
2001-11-19 00:31:37 +00:00
Craig Rodrigues
392447923f
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
2001-11-19 00:24:52 +00:00
Tom Tromey
8aeb42d06b
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
2001-11-19 00:13:36 +00:00
Tom Tromey
604407070b
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
2001-11-18 23:04:28 +00:00
Craig Rodrigues
20266bb121
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
2001-11-18 22:08:32 +00:00
Richard Kenner
e27cc84b10
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
2001-11-18 16:44:26 -05:00
Toon Moene
656855746d
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
2001-11-18 20:37:36 +00:00
Joseph Myers
72170b2269
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
2001-11-18 19:46:58 +00:00
Richard Kenner
c3d321205f
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
2001-11-18 14:36:01 -05:00
Richard Kenner
69deb6e055
* sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
...
From-SVN: r47148
2001-11-18 14:08:43 -05:00
Joseph Myers
aa99bd0979
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
2001-11-18 17:16:24 +00:00
Douglas B Rupp
6f4fdd10f3
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
2001-11-18 07:43:14 -05:00
Douglas B Rupp
5505dff961
* config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
...
(HAS_INIT_SECTION): Define.
(REAL_ARITHMETIC): Don't undefine.
From-SVN: r47145
2001-11-18 07:35:28 -05:00
Egor Duda
bca0284ad4
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
2001-11-18 12:06:41 +00:00
Neil Booth
fcff1fb2b0
* Makefile.in: Update.
...
From-SVN: r47142
2001-11-18 11:11:52 +00:00
Neil Booth
22703ccc3f
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
2001-11-18 11:04:53 +00:00
GCC Administrator
6ad8427bba
Daily bump.
...
From-SVN: r47137
2001-11-18 08:16:11 +00:00
Kriang Lerdsuwanakij
b3faacfdd4
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
2001-11-18 06:31:20 +00:00
Kriang Lerdsuwanakij
873ff98777
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
2001-11-18 06:24:45 +00:00
Douglas B Rupp
6f684b5368
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
2001-11-17 23:27:50 -05:00
Joseph Myers
7d14c755ce
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
2001-11-18 03:30:57 +00:00
Jason Merrill
74a3070ffa
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
2001-11-17 21:09:23 -05:00
Craig Rodrigues
ed19322d0c
MAINTAINERS (GNATS only accounts): Remove self.
...
2001-11-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
* MAINTAINERS (GNATS only accounts): Remove self.
From-SVN: r47131
2001-11-18 01:18:55 +00:00
Craig Rodrigues
f3095b5f17
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
2001-11-18 00:14:52 +00:00
Anthony Green
aee4201707
Obvious jni weak reference fix
...
From-SVN: r47128
2001-11-17 21:32:22 +00:00
Stan Shebs
089a05b8d7
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
2001-11-17 21:17:53 +00:00
Richard Kenner
572202a718
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
2001-11-17 12:33:57 -05:00
Christopher Faylor
c03dcc62e6
Add extra name.
...
From-SVN: r47122
2001-11-17 17:25:34 +00:00
Christopher Faylor
d0e06c9049
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
2001-11-17 17:19:11 +00:00
Douglas B Rupp
5370b45d94
* config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
...
From-SVN: r47118
2001-11-17 08:17:03 -05:00
Laurent Guerby
b0df4321ea
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
2001-11-17 11:35:08 +00:00
GCC Administrator
b605ed61ea
Daily bump.
...
From-SVN: r47115
2001-11-17 08:16:21 +00:00
David O'Brien
5059254f4b
Not all of revision 1.113 made it in.
...
From-SVN: r47114
2001-11-17 05:46:25 +00:00
Aldy Hernandez
f3fe2696dc
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
2001-11-17 01:19:06 +00:00
Tom Tromey
b34e9a5b9f
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
2001-11-16 23:39:34 +00:00
Alexandre Oliva
e13c552619
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
2001-11-16 22:59:46 +00:00
John David Anglin
268399cd7f
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
2001-11-16 22:40:21 +00:00
John David Anglin
550b2951cd
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
2001-11-16 22:24:23 +00:00