Richard Henderson
ca3c102896
sched-deps.c (sched_analyze_insn): Consolidate scheduling barrier code.
...
* sched-deps.c (sched_analyze_insn): Consolidate scheduling
barrier code. Add a scheduling barrier if a non-call insn
can throw internally.
From-SVN: r40915
2001-03-27 23:42:04 -08:00
Richard Henderson
4f73495e07
rtlanal.c (rtx_addr_can_trap_p): Virtual registers cannot trap.
...
* rtlanal.c (rtx_addr_can_trap_p): Virtual registers cannot trap.
Auto-inc addresses trap only if their base register does.
From-SVN: r40914
2001-03-27 23:34:51 -08:00
Richard Henderson
54590688b5
except.c (can_throw_internal): Rename from can_throw.
...
* except.c (can_throw_internal): Rename from can_throw.
* except.h, resource.c: Update references.
From-SVN: r40913
2001-03-27 23:29:21 -08:00
Richard Henderson
8cd442715f
integrate.c (copy_insn_list): Use returnjump_p.
...
* integrate.c (copy_insn_list): Use returnjump_p.
(copy_insn_notes): Recurse for CALL_PLACEHOLDER.
From-SVN: r40912
2001-03-27 23:20:43 -08:00
Richard Henderson
89996b6e7c
function.h (struct function): Move all boolean valued fields to single bit fields at the end of the struct.
...
* function.h (struct function): Move all boolean valued fields
to single bit fields at the end of the struct.
From-SVN: r40911
2001-03-27 23:08:57 -08:00
Richard Henderson
2f2ee4bba2
flow.c (cleanup_cfg): Take no argument.
...
* flow.c (cleanup_cfg): Take no argument.
* output.h, sibcall.c, toplev.c: Update all calls.
From-SVN: r40910
2001-03-27 22:53:49 -08:00
Richard Henderson
ad73b55832
flow.c (tidy_fallthru_edges): Don't combine complex edges.
...
* flow.c (tidy_fallthru_edges): Don't combine complex edges.
(calculate_global_regs_live): Kill call-clobbered registers
across exception edges.
* reg-stack.c (convert_regs_1): Kill the entire target stack
across non-call exception edges.
From-SVN: r40909
2001-03-27 22:22:23 -08:00
Richard Henderson
461fc4de6a
Remove flag_new_exceptions.
...
From-SVN: r40908
2001-03-27 22:11:49 -08:00
Richard Henderson
662795a85f
combine.c (distribute_notes): If non-call exceptions, put the note on the trapping instruction.
...
* combine.c (distribute_notes) [REG_EH_REGION]: If non-call
exceptions, put the note on the trapping instruction.
From-SVN: r40907
2001-03-27 21:40:43 -08:00
Richard Henderson
894d0e3925
except.h (flag_non_call_exceptions): Move ...
...
* except.h (flag_non_call_exceptions): Move ...
* flags.h: ... here.
From-SVN: r40906
2001-03-27 21:38:40 -08:00
Richard Henderson
531073e70e
Make -fsjlj-exceptions a configure option.
...
From-SVN: r40905
2001-03-27 21:24:24 -08:00
Richard Henderson
979988f32c
* parse.y (source_end_java_method): Likewise.
...
From-SVN: r40904
2001-03-27 21:04:20 -08:00
Richard Henderson
e64a65418f
gthr-single.h (UNUSED): New.
...
* gthr-single.h (UNUSED): New. Distinguish between how C
and C++ mark unused function arguments. Use throughout.
From-SVN: r40903
2001-03-27 20:37:36 -08:00
Richard Henderson
c1e9f66309
bb-reorder.c, [...]: Rename asynchronous_exceptions to flag_non_call_exceptions.
...
* bb-reorder.c, dwarf2out.c, except.c, except.h, flow.c,
jump.c, toplev.c:
Rename asynchronous_exceptions to flag_non_call_exceptions.
* java/decl.c (end_java_method): Rename asynchronous_exceptions to
flag_non_call_exceptions.
From-SVN: r40902
2001-03-27 20:18:13 -08:00
Kaveh R. Ghazi
27f66c0bcb
* memchr.c (memchr): Adjust condition to avoid infinite loop.
...
From-SVN: r40899
2001-03-28 04:10:24 +00:00
Kaveh R. Ghazi
8e9449099d
configure.in: Don't check for bcopy.
...
* configure.in: Don't check for bcopy.
* configure, config.in: Regenerate.
* system.h: Don't define or prototype bcopy, instead poison it.
From-SVN: r40898
2001-03-28 04:05:46 +00:00
Richard Henderson
695ee791dc
rtl.h (LCT_NORETURN): New.
...
* rtl.h (LCT_NORETURN): New.
* calls.c (emit_library_call_value_1): Handle it.
From-SVN: r40897
2001-03-27 19:35:05 -08:00
Richard Henderson
3d74dad834
function.c (expand_function_start): Set DECL_REGISTER on a pseudo used for DECL_RESULT.
...
* function.c (expand_function_start): Set DECL_REGISTER on
a pseudo used for DECL_RESULT.
From-SVN: r40896
2001-03-27 19:28:28 -08:00
Stan Shebs
e804281ead
objc-act.c (objc_init): Use dump_base_name.
...
* objc/objc-act.c (objc_init): Use dump_base_name.
(gen_declaration): Clear the buffer arg.
(gen_declaration_1): New function, body of gen_declaration.
(adorn_decl): Call gen_declaration_1 instead of gen_declaration.
(gen_method_decl): Ditto, plus always clear buffer arg.
(error_with_ivar): Simplify.
(warn_with_method): Ditto.
(build_message_expr): Don't clear buffers.
(dump_interface): Ditto.
(objc_debug): Ditto.
(build_keyword_selector): Clear the buffer by only zeroing
the first element.
(objc_implementation_context): Declare.
(start_class): Warn about missing @end.
(finish_objc): Ditto.
From-SVN: r40895
2001-03-28 02:49:19 +00:00
Alexandre Oliva
787d2fb712
Makefile.am (CXXLINK): Use CXX again, and choose CXX tag explicitly.
...
* libsupc++/Makefile.am (CXXLINK): Use CXX again, and choose
CXX tag explicitly.
* src/Makefile.am (CXXLINK): Likewise.
* libsupc++/Makefile.in, src/Makefile.in: Rebuilt.
From-SVN: r40894
2001-03-28 01:19:42 +00:00
Alexandre Oliva
a076f6a483
* configure.in (CXX_FOR_TARGET): Use xgcc for libstdc++-v3.
...
From-SVN: r40893
2001-03-28 01:18:00 +00:00
Phil Edwards
8653a2c31c
pt.c (check_default_tmpl_args): Make error messages clearer.
...
2001-03-27 Phil Edwards <pme@sources.redhat.com>
* pt.c (check_default_tmpl_args): Make error messages clearer.
From-SVN: r40889
2001-03-28 00:44:39 +00:00
Joerg Brunsmann
0d430c965d
InitialContext.java (init): Fix typo.
...
2001-03-27 Joerg Brunsmann <joerg_brunsmann@yahoo.de>
* javax/naming/InitialContext.java (init): Fix typo.
(composeName): Remove unnecessary semicolon.
(addToEnvironment): Remove unnecessary semicolon.
(addToEnvironment): Use put() instead of add().
* javax/naming/InitialContext.java (InitialContext):
Make public.
(destroySubcontext): Method doesn't return a result.
* javax/naming/Context.java: Import java.util.Hashtable.
* javax/naming/Name.java: Import java.util.Enumeration.
From-SVN: r40888
2001-03-28 01:32:02 +01:00
John David Anglin
055c77597b
* reload1.c (eliminate_regs): Don't abort on MEM USEs.
...
From-SVN: r40887
2001-03-28 09:55:25 +09:30
Jim Wilson
ad0fc69878
Fix ia64-linux kernel miscompile, bad unwind info when reorder epilogue block.
...
* final.c (final_scan_insn, case NOTE_INSN_BASIC_BLOCK): Call
IA64_UNWIND_EMIT.
* config/ia64/ia64.c (block_num, need_copy_state): New static vars.
(process_epilogue): New static function.
(process_set): Call process_epilogue instead of emitting .restore
directly.
(process_for_unwind_directive): Handle NOTE_INSN_BASIC_BLOCK.
From-SVN: r40885
2001-03-27 15:15:04 -08:00
Kaveh R. Ghazi
911e61070f
Makefile.in (SYSTEM_H): Define.
...
* Makefile.in (SYSTEM_H): Define.
Depend on $(SYSTEM_H), not system.h.
* objc/Make-lang.in: Depend on $(SYSTEM_H), not system.h.
cp:
* Make-lang.in: Depend on $(SYSTEM_H), not system.h.
f:
* Make-lang.in: Depend on $(SYSTEM_H), not system.h.
java:
* Make-lang.in: Depend on $(SYSTEM_H), not system.h.
From-SVN: r40883
2001-03-27 22:57:35 +00:00
Jim Wilson
685af3af8a
Fix ia64-linux ICE on bash.
...
* flow.c (struct reg_cond_life_info): New fields orig_condition
and stores.
(init_propagate_block_info): Set new fields.
(mark_regno_cond_dead): Set and use new fields.
(flush_reg_cond_reg_1): Likewise.
(and_reg_cond, case AND): Check for redundant AND conditions.
(mark_used_reg): Delete unnecessary clears before freeing splay trees.
Set new fields.
From-SVN: r40881
2001-03-27 14:48:03 -08:00
Neil Booth
b044e9d5e9
* cppmacro.c (stringify_arg): Null terminate strings.
...
From-SVN: r40880
2001-03-27 21:04:55 +00:00
Zack Weinberg
0b29309adf
config.gcc (m68hc11-*-*, [...]): Convert to new tm.h inclusion style.
...
* config.gcc (m68hc11-*-*, m68hc12-*-*): Convert to new tm.h
inclusion style. xm-m68hc11.h no longer exists.
* config/m68hc11/xm-m68hc11.h: Delete file.
* config/m68hc11/m68hc12.h: Convert to new tm.h inclusion style.
* config/m68hc11/m68hc11.h: Convert to new tm.h inclusion style.
Don't define GCC_VERSION, N_, or PARAMS; don't include
gansidecl.h or stdio.h. Define inhibit_libc here.
Make code conditioned on #if GCC_VERSION > 2095 unconditional.
Delete code conditioned on #if GCC_VERSION == 2095.
* config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
Make code conditioned on #if GCC_VERSION > 2095 unconditional.
Delete code conditioned on #if GCC_VERSION == 2095.
From-SVN: r40878
2001-03-27 20:09:27 +00:00
Benjamin Kosnik
ec0104b3bc
c++config (_STL_USE_CONCEPT_CHECKS): Disable by default.
...
2001-03-27 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/c++config (_STL_USE_CONCEPT_CHECKS): Disable by default.
From-SVN: r40877
2001-03-27 19:40:46 +00:00
Peter Schmid
6fd7b97d7d
tests_flags.in: Change the order of libstdc++ and libc
...
k
2001-03-26 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* libstdc++-v3/tests_flags.in: Change the order of libstdc++
and libc
From-SVN: r40876
2001-03-27 19:17:16 +00:00
Kaveh R. Ghazi
4bc5fbd480
system.h: Include symcat.h.
...
* system.h: Include symcat.h.
(STRINGIFY): Don't define.
* configure.in: Adjust comment.
* builtins.c: Use STRINGX, not STRINGIFY.
* gencheck.c: Likewise.
* gengenrtl.c: Likewise.
* protoize.c: Likewise.
* cpplex.c: Don't include symcat.h.
* cpplib.c: Likewise.
* gansidecl.h (HAVE_STRINGIZE): Don't define.
From-SVN: r40875
2001-03-27 15:31:46 +00:00
GCC Administrator
313e46b929
Daily bump.
...
From-SVN: r40872
2001-03-27 08:16:09 +00:00
Alan Modra
b13aca193b
* c-typeck.c (digest_init): Fold init expression.
...
From-SVN: r40867
2001-03-27 15:33:40 +09:30
Mike Yang
005a5cb08b
dump.c (dump_access): New function.
...
* dump.c (dump_access): New function.
(cp_dump_tree): Use it. Dump basetype information for class
types.
Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
From-SVN: r40866
2001-03-27 04:52:21 +00:00
Benjamin Kosnik
5fa9abc3e9
basic_file.h (get_fileno): Remove.
...
2001-03-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/basic_file.h (get_fileno): Remove.
(_M_fileno): Remove.
(_M_cfile_created): Add.
(basic_file::basic_file(__c_file_type*, openmode): Add.
(basic_file::basic_file(int, const char*, openmode): Remove.
* include/bits/fstream.tcc (basic_fstream::basic_filebuf(int __fd,
const char*, ios_base::openmode): Don't allocate
internal buffers. Turn off internal buffers.
(basic_filebuf::overflow): Remove test for null buffer.
(basic_filebuf::_M_really_overflow): Same. Allow unbuffered use.
* include/bits/streambuf.cc: Tweak.
* include/bits/std_ostream.h: Tweak.
* config/basic_file_libio.h: Same.
* config/basic_file_stdio.h: Same.
* src/ios.cc (ios_base::Init::Init()): Unbuffer stdout by default.
* testsuite/27_io/filebuf_members.cc: Tweaks.
* testsuite/27_io/ios_base_members_static.cc: Tweaks.
From-SVN: r40863
2001-03-27 03:48:17 +00:00
Kaveh R. Ghazi
7c5b92c459
* sbitmap.c (sbitmap_copy): Call memcpy, not bcopy.
...
From-SVN: r40862
2001-03-27 03:37:03 +00:00
Alan Modra
5b5c273405
except.c (eh_regs): Save results of build_pointer_type to a temp as FUNCTION_VALUE macro may...
...
* except.c (eh_regs): Save results of build_pointer_type to a temp
as FUNCTION_VALUE macro may evaluate its args multiple times.
From-SVN: r40861
2001-03-27 12:30:07 +09:30
Jon Beniston
d6c4152ac0
configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
...
2001-03-27 Jon Beniston <jon@beniston.com>
* configure.in: Added X86_WIN32 target (Win32, CygWin, MingW).
* configure: Rebuilt.
* Makefile.am: Added X86_WIN32 target support.
* Makefile.in: Rebuilt.
* include/ffi.h.in: Added X86_WIN32 target support.
* src/ffitest.c: Doesn't run structure tests for X86_WIN32 targets.
* src/types.c: Added X86_WIN32 target support.
* src/x86/win32.S: New file. Based on sysv.S, but with EH
stuff removed and made to work with CygWin's gas.
From-SVN: r40860
2001-03-27 03:39:16 +01:00
Mark Mitchell
b850de4faa
c-common.h (DECL_NUM_STMTS): New macro.
...
* c-common.h (DECL_NUM_STMTS): New macro.
* c-decl.c (duplicate_decls): Copy DECL_NUM_STMTS, not
DECL_FRAME_SIZE.
(pushdecl): Likewise.
* c-semantics.c (add_stmt): Update DECL_NUM_STMTS.
* integrate.c (expand_inline_function): Don't check
DECL_FRAME_SIZE.
* print-tree.c (print_node): Don't print it.
* toplev.c (rest_of_compilation): Don't try to inline when
flag_no_inline is on.
* tree.h (DECL_FRAME_SIZE): Remove.
(tree_decl): Adjust accordingly.
* Makefile.in (optimize.o): Depend on params.h.
(duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE.
(init_decl_processing): Set flag_no_inline when doing
inlining-on-trees.
* optimize.c: Include params.h.
(struct inline_data): Improve documentation of FNS. Add
FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P.
(INSNS_PER_STMT): New macro.
(remap_block): Use CLONING_P.
(inlinable_function_p): Don't inline big functions.
(expand_call_inline): Keep track of how much inlining we've done.
(optimize_function): Set FIRST_INLINED_FN.
(maybe_clone_body): Set CLONING_P.
* semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in
tree nodes.
(genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling
rest_of_compilation. Clear DECL_RTL for local variables
afterwards.
(clear_decl_rtl): New function.
* com.c (duplicate_decls): Don't copy DECL_FRAME_SIZE.
* parse.h (DECL_END_SOURCE_LINE): Don't rely on DECL_FRAME_SIZE.
From-SVN: r40859
2001-03-27 02:17:48 +00:00
Bryce McKinlay
29bb79cf26
Makefile.am (libffi_files): Use 'find' to pick up libffi libtool objects in subdirectories.
...
* Makefile.am (libffi_files): Use 'find' to pick up libffi libtool
objects in subdirectories.
* Makefile.in: Rebuilt.
From-SVN: r40857
2001-03-27 01:18:30 +01:00
Phil Edwards
711d29dfbb
error.c: Also undefine 'A' macro used for cp_printers definition.
...
2001-03-26 Phil Edwards <pme@sources.redhat.com>
* error.c: Also undefine 'A' macro used for cp_printers definition.
From-SVN: r40854
2001-03-26 23:41:23 +00:00
Bryce McKinlay
675cdab3df
configure.in: Make target subdirectory in build dir.
...
* configure.in: Make target subdirectory in build dir.
* Makefile.am: Override suffix based rules to specify correct output
subdirectory.
* Makefile.in: Rebuilt.
* configure: Rebuilt.
From-SVN: r40853
2001-03-26 23:52:36 +01:00
Alexandre Petit-Bianco
ce06965e6a
parse.y (find_as_inner_class): Follow current package indications not to mistakingly load an unrelated class.
...
2001-03-26 Alexandre Petit-Bianco <apbianco@redhat.com>
* parse.y (find_as_inner_class): Follow current package
indications not to mistakingly load an unrelated class.
(http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01712.html )
From-SVN: r40851
2001-03-26 14:12:16 -08:00
Kaveh R. Ghazi
d38a30c995
combine.c (try_combine): Use memcpy, not bcopy.
...
* combine.c (try_combine): Use memcpy, not bcopy.
* genattrtab.c (expand_units): Likewise.
From-SVN: r40849
2001-03-26 16:59:23 +00:00
Jan Hubicka
cc2e591b48
i386.md (push mem DI peep2): New.
...
* i386.md (push mem DI peep2): New.
(mov 0, mov -1 peep2): Handle 64bit.
(lea to arithmetics peep2): Handle 64bit leas.
(rsp arithmetics to push/pop peep2s): New.
* i386.md (truncdfsf2_3, trunctfsf2_2): Change predicate to memory_operand.
From-SVN: r40847
2001-03-26 13:56:34 +00:00
Jan Hubicka
8362f4207e
i386.c (struct machine_function): Add save_varrargs_registers.
...
* i386.c (struct machine_function): Add save_varrargs_registers.
(ix86_save_varrargs_registers): New macro.
(ix86_frame_layout): Support 64bit; support red zones and varrargs area.
(ix86_expand_prologue): Likewise.
(ix86_emit_epilogue_esp_adjustement): Likewise.
(ix86_expand_epilogue): Likewise.
* i386.md (pro_epilogue_adjust_stack): Turn to expander; support 64bit.
(pro_epilogue_adjust_stack_1): New insn.
(pro_epilogue_adjust_stack_rex64): Likewise.
* i386.h (MASK_NO_RED_ZONE): New constant.
(TARGET_RED_ZONE): New macro.
(TARGET_OPTIONS): Add "red-zone" and "no-red-zone"
(RED_ZONE_SIZE): New constant.
(RED_ZONE_RESERVE): New constant.
From-SVN: r40846
2001-03-26 12:36:35 +00:00
Nathan Sidwell
788bf0e34e
Implement DR 209
...
cp:
Implement DR 209
* cp-tree.h (skip_type_access_control,
reset_type_access_control): Prototype.
* decl.c (grokdeclarator): Access of friends is not checked.
* parse.y (component_decl_list): Reset type access control.
* semantics.c (decl_type_access_control): Clear
current_type_lookups.
(save_type_access_control): Don't save if not deferring.
(skip_type_access_control, reset_type_access_control): New
functions.
(begin_class_definition): Do type access control for basetypes.
Start deferred access control.
(finish_class_definition): Resume immediate access control if
this is a local class.
testsuite:
* g++.old-deja/g++.other/friend12.C: New test.
* g++.old-deja/g++.other/friend9.C: Expect no errors.
* g++.old-deja/g++.robertl/eb56.C: Make typedef public.
From-SVN: r40841
2001-03-26 08:37:27 +00:00
GCC Administrator
04c5433d68
Daily bump.
...
From-SVN: r40840
2001-03-26 08:16:38 +00:00
Richard Henderson
b3208f56cb
exception.cc (java_eh_info): Make value type jthrowable.
...
* exception.cc (java_eh_info): Make value type jthrowable.
(_Jv_type_matcher): Remove now unneeded cast.
(_Jv_Throw): Make argument type jthrowable. Munge name
for SJLJ_EXCEPTIONS here ...
* gcj/cni.h: ... not here.
(JvThrow): Remove.
* gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
* defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
java/lang/natClass.cc, java/lang/natClassLoader.cc,
java/lang/natDouble.cc, java/lang/natObject.cc,
java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
java/lang/natString.cc, java/lang/natSystem.cc,
java/lang/natThread.cc, java/lang/reflect/natArray.cc,
java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
java/util/zip/natInflater.cc:
Use throw, not JvThrow or _Jv_Throw.
From-SVN: r40838
2001-03-25 23:05:32 -08:00