- 27 Mar, 2001 7 commits
-
-
* 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
Mike Yang committed -
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
Benjamin Kosnik committed -
From-SVN: r40862
Kaveh R. Ghazi committed -
* 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
Alan Modra committed -
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
Jon Beniston committed -
* 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
Mark Mitchell committed -
* Makefile.am (libffi_files): Use 'find' to pick up libffi libtool objects in subdirectories. * Makefile.in: Rebuilt. From-SVN: r40857
Bryce McKinlay committed
-
- 26 Mar, 2001 12 commits
-
-
2001-03-26 Phil Edwards <pme@sources.redhat.com> * error.c: Also undefine 'A' macro used for cp_printers definition. From-SVN: r40854
Phil Edwards committed -
* 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
Bryce McKinlay committed -
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
Alexandre Petit-Bianco committed -
* combine.c (try_combine): Use memcpy, not bcopy. * genattrtab.c (expand_units): Likewise. From-SVN: r40849
Kaveh R. Ghazi committed -
* 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
Jan Hubicka committed -
* 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
Jan Hubicka committed -
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
Nathan Sidwell committed -
From-SVN: r40840
GCC Administrator committed -
* 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
Richard Henderson committed -
From-SVN: r40837
Kaveh R. Ghazi committed -
* constants.c (PUTN): Use memcpy, not bcopy. * lex.c (java_read_char): Use memmove, not bcopy. * parse.y (java_parser_context_resume): Use memcpy, not bcopy. From-SVN: r40836
Kaveh R. Ghazi committed -
* class.c (add_method): Use memcpy/memmove, not bcopy. * decl.c (duplicate_decls): Likewise. From-SVN: r40835
Kaveh R. Ghazi committed
-
- 25 Mar, 2001 9 commits
-
-
From-SVN: r40831
Joseph Myers committed -
2001-03-25 Kazu Hirata <kazu@hxi.com> * config/h8300/h8300.md (umodqi3): Output a tab instead of a space. (modqi3): Likewise. (umodhi3): Likewise. (modhi3): Likewise. From-SVN: r40830
Kazu Hirata committed -
* mkconfig.sh (DEFINES): Handle entries with '='. * config.gcc: Don't use i370/xm-mvs.h or ns32k/xm-pc532-min.h. Set xm_defines to MACRO=value instead. * i370/xm-mvs.h: Delete. * ns32k/xm-pc532-min.h: Likewise. From-SVN: r40828
Kaveh R. Ghazi committed -
* i386.md (ashldi3, ashrdi3, lshrdi3): Change predicates to shiftdi_operand; use ix86_expand_binary_operator (?sh??i_?): Disable for 64bit. * i386.h (PREDICATE_CODES): Add shiftdi_operand. * i386.c (shiftdi_operand): New predicate. * (ashldi3_1_rex64, ashldi3_cmp_rex64, ashlsi3_1_zext, ashlsi3_cmp_zext, ashrdi3_63_rex64, ashrdi3_1_one_bit_rex64, ashrdi3_1_rex64, ashrdi3_one_bit_cmp_rex64, ashrdi3_cmp_rex64, ashrsi3_31_zext, ashrsi3_1_one_bit_zext, ashrsi3_1_zext, ashrsi3_one_bit_cmp_zext, ashrsi3_cmp_zext, lshrdi3_1_one_bit_rex64, lshrdi3_1_rex64, lshrdi3_cmp_one_bit_rex64, lshrdi3_cmp_rex64, lshrsi3_1_one_bit_zext, lshrsi3_1_zext, lshrsi3_cmp_one_bit_zext, lshrsi3_cmp_zext, rotlsi3_1_one_bit_rex64, rotldi3_1_rex64, rotlsi3_1_one_bit_zext, rotlsi3_1_zext, rotrdi3_1_one_bit_rex64, rotrdi3_1_rex64, rotrsi3_1_one_bit_zext, rotrsi3_1_zext): New patterns. (rotldi3, rotrdi3): New expanders. From-SVN: r40827
Jan Hubicka committed -
* i386.md (movstrsi): Move offline. (movstrdi): New. (strmovdi_rex64): New. (strmov?i): Accept 64bit. (strmov?i_rex64): New. (strmov?i_rex_1): New. (strmov?i_1): Disable for 64bit. (rep_mov?i_rex64): New. (rep_mov?i): Disable for 64bit. (clrstrsi): Move offline. (strset?i_rex64): New. (strset?i: Accept 64bit. (rep_stos?i): Disable for 64bit. (rep_stos?i_rex64): New. (strset?i_rex_1): New. (strset?i_1): Disable for 64bit. (cmpstrsi): Accept 64bit. (cmpstrsi_nz_1): Rename to cmpstrqi_nz_1; Disable for 64bit. (cmpstrqi_nz_rex_1): New. (cmpstrsi_1): Rename to cmpstrqi_1; Disable for 64bit. (strlensi): Move offline. (strlendi): New. (strlenqi_1): Disable for 64bit; fix constraints. (strlenqi_rex_1): New. * i386.c (ix86_adjust_counter): New static function. (ix86_zero_extend_to_Pmode): Likewise. (ix86_expand_aligntest): Likweise. (ix86_expand_strlensi_unroll_1): Make static; update for 64bit. (ix86_expand_movstr): New global function. (ix86_expand_clrstr): New global function. (ix86_expand_strlen): New global function. * i386-protos.h (ix86_expand_movstr, ix86_expand_clrstr, ix86_expand_strlen): Declare. (ix86_expand_strlensi_unroll_1): Delete. From-SVN: r40826
Jan Hubicka committed -
From-SVN: r40824
GCC Administrator committed -
2001-03-24 Phil Edwards <pme@sources.redhat.com> * Makefile.am: New targets, doxygen and doxygen-maint. * Makefile.in: Regenerated. * docs/doxygen/run_doxygen: Finally implemented. * docs/doxygen/maint.cfg.in: New file. * docs/doxygen/user.cfg.in: New file. From-SVN: r40823
Phil Edwards committed -
2001-03-24 Phil Edwards <pme@sources.redhat.com> * acinclude.m4 (GLIBCPP_CHECK_COMPILER_FEATURES): Update comment. * src/Makefile.am: Replace leading spaces with tabs on continuation lines. * aclocal.m4: Regenerated. * configure: Ditto. * Makefile.in: Ditto. * src/Makefile.in: Ditto. * libio/Makefile.in: Ditto. * libmath/Makefile.in: Ditto. * libsupc++/Makefile.in: Ditto. From-SVN: r40822
Phil Edwards committed -
2001-03-24 Phil Edwards <pme@sources.redhat.com> * docs/html/19_diagnostics/howto.html: HTML fixup. Describe concept-checking code and current status of same. * docs/html/ext/howto.html: Ditto. * docs/html/faq/index.html: Ditto. * docs/html/faq/index.txt: Regenerated. From-SVN: r40821
Phil Edwards committed
-
- 24 Mar, 2001 12 commits
-
-
2001-03-24 Phil Edwards <pme@sources.redhat.com> * include/bits/std_bitset.h: Include ostream and istream headers instead of iostream. From-SVN: r40820
Phil Edwards committed -
* i386.md (cmpdi): Fix operand predicates. (cmpdi_ccno_1_rex64, cmpdi_minus_1_rex64, cmpdi_1_rex64, cmpdi_1_insn_rex64): New patterns. (adddi3): Turn to expander. (adddi3_1, adddi3_carry_rex64, adddi3_cc_rex64): New patterns. (addsi3_carry_zext): New pattern. (adddi_?_rex64): New patterns and splitters. (addsi_?_zext): New patterns. (subsi3_carry_zext): New pattern. (subdi_?_rex64): New patterns and splitters. (iorsi_?_zext): New patterns. (iordi_?_rex64): New patterns and splitters. (iorsi_?_zext): New patterns. (iorsi_?_zext_imm): New patterns. (xorsi_?_zext): New patterns. (xordi_?_rex64): New patterns and splitters. (xorsi_?_zext): New patterns. (negdi*): New patterns. (one_cmpldi*): Likewise. (one_cmplsi*_zext, negsi*_zext): Likewise. (testqi_ext_3_rex64): New pattern. From-SVN: r40819
Jan Hubicka committed -
* i386-protos.h (ix86_split_long_move): Return void. * i386.c (ix86_split_to_parts): Handle 64bit target. (ix86_split_long_move): Likewise. * i386.md (all calls to ix86_split_long_move): Update. From-SVN: r40816
Jan Hubicka committed -
From-SVN: r40814
GCC Administrator committed -
2001-03-24 Bryce McKinlay <bryce@albatross.co.nz> * java/util/HashMap.java (HashMap): If 0 is given for initialCapacity paramater, bump it to 1. * java/util/Hashtable.java (Hashtable): Likewise. From-SVN: r40812
Bryce McKinlay committed -
From-SVN: r40811
Per Bothner committed -
From-SVN: r40808
Kevin B Hendricks committed -
* src/powerpc/ppc_closure.S: New file. * src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug involving long long and register pairs. (ffi_prep_closure): New function. (flush_icache): Likewise. (ffi_closure_helper_SYSV): Likewise. * include/ffi.h.in (FFI_CLOSURES): Define on PPC. (FFI_TRAMPOLINE_SIZE): Likewise. (FFI_NATIVE_RAW_API): Likewise. * Makefile.in: Rebuilt. * Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S. (TARGET_SRC_POWERPC): Likewise. From-SVN: r40807
Kevin B Hendricks committed -
* config/mips/iris4.h (ASM_OUTPUT_ASCII): Rename local variables to avoid shadowing arguments. From-SVN: r40804
Richard Henderson committed -
e * verify.c (verify_jvm_instructions): Replace 3 pop_type by POP_TYPE macro for better error pin-pointing. * java-tree.h: Fix typo in comment. * jcf-write.c (generate_bytecode_insns): Changes to TRY_FINALLY_EXPR. Don't include jsr/goto in exception range. Check if start and end of exception range are the same (also TRY_EXPR). Don't emit jsr after try_block if CAN_COMPLETE_NORMALLY is false. However, do emit the following goto even if try_block is empty. Defer freeing exception_decl until after the finalizer, to make sure the local isn't reused in the finalizer. Fixes PR java/1208. * parse.y (java_complete_lhs): If the try-clause is empty, just return the finally-clause and vice versa. From-SVN: r40801
Per Bothner committed -
* java/lang/natDouble.cc (parseDouble): Cannot use errno to check for errors, since we don't want to throw exception on overflow/underflow. Instead, trim whitespace, and then check that _strtod_r uses up all the rest of the string. From-SVN: r40800
Per Bothner committed -
* java/lang/natClass.cc (_Jv_IsAssignableFrom): Checking the ancestors array is invalid for interfaces, so do that *after* check that the target type is not an interface. From-SVN: r40797
Per Bothner committed
-