- 22 Feb, 2002 18 commits
-
-
include: Allow the user to specify functions for allocating memory for splay tree roots and nodes. * splay-tree.h (splay_tree_allocate_fn, splay_tree_deallocate_fn): New types. (splay_tree): New fields: `allocate', `deallocate', and `allocate_data'. (splay_tree_new_with_allocator): New function declaration. libiberty: * splay-tree.c (splay_tree_xmalloc_allocate, splay_tree_xmalloc_deallocate): New functions. (splay_tree_new): Call splay_tree_new_with_allocator, passing the above functions and a dummy data pointer. (splay_tree_new_with_allocator): New function. (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert, splay_tree_remove): Use the splay tree's allocation and deallocation functions. From-SVN: r49968
Jim Blandy committed -
parse.y (patch_method_invocation): Set CAN_COMPLETE_NORMALLY on call to finit$ (otherwise generate_bytecode_insns... * parse.y (patch_method_invocation): Set CAN_COMPLETE_NORMALLY on call to finit$ (otherwise generate_bytecode_insns drops it). However, we don't need to set it on the COMPOUND_EXPR - the caller does that. From-SVN: r49966
Per Bothner committed -
Connection.java (conect): Open the input and/or output streams immediately here, instead of using File.exists. * gnu/gcj/protocol/file/Connection.java (conect): Open the input and/or output streams immediately here, instead of using File.exists. (inputStream, outputStream): New fields to save open streams. (getInputStream, getOutputStream): Use already-opened streams. From-SVN: r49965
Per Bothner committed -
2002-02-21 Benjamin Kosnik <bkoz@redhat.com> * configure.in (target_alias): Default to yes. * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Add check for shared libgcc to default case. From-SVN: r49962
Benjamin Kosnik committed -
cp: PR c++/2645, DR 295 * cp-tree.h (tsubst_flags_t): Add tf_ignore_bad_quals, tf_keep_type_decl. (make_typename_type): Use tsubst_flags_t. * decl.c (make_typename_type): Adjust. Return non-artificial TYPE_DECLs, if required. (grokdeclarator): Simplify CVR qualification handling. Allow bad qualifiers on typedef types. * decl2.c (handle_class_head): Adjust make_typename_type call. * parse.y (nested_name_specifier): Likewise. (typename_sub0): Likewise. (typename_sub1): Likewise. * pt.c (convert_template_argument): Adjust make_typename_type return value. (tsubst): Adjust cp_build_qualified_type_real calls. (check_cv_quals_for_unify): Cope with alowing bad qualifications on template type parms. (instantiate_decl): Recheck substitutions to give warnings on bad qualifications. * tree.c (cp_build_qualified_type_real): Use tf_allow_bad_quals. testsuite: * g++.dg/template/qualttp19.C: New test. * g++.dg/template/qualttp20.C: New test. * g++.old-deja/g++.jason/report.C: Adjust expected errors * g++.old-deja/g++.other/qual1.C: Likewise. From-SVN: r49961
Nathan Sidwell committed -
From-SVN: r49960
Richard Sandiford committed -
2002-02-21 Benjamin Kosnik <bkoz@redhat.com> * configure.in (target_alias): Default to yes. * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Add check for shared libgcc to default case. From-SVN: r49959
Benjamin Kosnik committed -
From-SVN: r49957
GCC Administrator committed -
From-SVN: r49956
Diego Novillo committed -
From-SVN: r49955
Diego Novillo committed -
* acinclude.m4 (LIB_AC_PROG_CXX): Copied from libstdc++-v3. Use it. * Makefile.am (LIBLINK): Use CXX (and its tag) for linking. * aclocal.m4, configure, Makefile.in: Rebuilt. From-SVN: r49954
Alexandre Oliva committed -
* configure.in (CXX_FOR_TARGET): Add -shared-libgcc for libstdc++-v3 and libjava. From-SVN: r49953
Alexandre Oliva committed -
[[Split portion of a mixed commit.]] From-SVN: r49952.2
Mark Mitchell committed -
* gcc_release: Correct handling of diff-generation. Add "diffs" major mode. [[Split portion of a mixed commit.]] From-SVN: r49951.2
Mark Mitchell committed -
From-SVN: r49949
Aldy Hernandez committed -
From-SVN: r49948
Aldy Hernandez committed -
2002-02-21 Aldy Hernandez <aldyh@redhat.com> * gcc.dg/attr-alwaysinline.c: New. * c-common.c (c_common_post_options): Set inline trees by default. * doc/extend.texi (Function Attributes): Document always_inline attribute. Update documentation about inlining when not optimizing. * cp/decl.c (duplicate_decls): Merge always_inline attribute. * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0 unless DECL_ALWAYS_INLINE. * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0 unless DECL_ALWAYS_INLINE. (c_disregard_inline_limits): Disregard if always_inline set. * langhooks.c (lhd_tree_inlining_disregard_inline_limits): Disregard if always_inline set. (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0 unless DECL_ALWAYS_INLINE. * attribs.c (handle_always_inline_attribute): New. (c_common_attribute_table): Add always_inline. * config/rs6000/altivec.h: Add prototypes for builtins requiring the always_inline attribute. From-SVN: r49947
Aldy Hernandez committed -
2002-02-21 Eric Christopher <echristo@redhat.com> * expmed.c (store_bit_field): Try to simplify the subreg before generating a new one when when the mode size of value is less than maxmode. From-SVN: r49946
Eric Christopher committed
-
- 21 Feb, 2002 16 commits
-
-
* emit-rtl.c (offset_address): Use simplify_gen_binary rather than gen_rtx_PLUS to form the sum. * explow.c (force_reg): Rearrange to not allocate new pseudo when force_operand returns a register. * expr.c (expand_assignment): Allow offset_rtx expansion to return a sum. Do not force addresses into registers. (expand_expr): Likewise. * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus to canonicalize arithmetic that didn't simpify. (simplify_plus_minus): New argument force; update all callers. Don't split CONST unless we can do something with it, and wouldn't lose the constness of the operands. * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs that we generated earlier. From-SVN: r49945
Richard Henderson committed -
* dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed. (output_line_info): Use constant `1', with a long explanatory comment. * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison. From-SVN: r49944
Tom Tromey committed -
* jump.c (redirect_jump): If old label has no UID, don't try to delete it. From-SVN: r49943
J"orn Rennecke committed -
* sh.md (insv): Provide byte offsets for gen_rtx_SUBREG. If input is constant, do shifts at compile time. From-SVN: r49942
J"orn Rennecke committed -
From-SVN: r49941
Joseph Myers committed -
PR optimization/4994 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX register moves. * g++.dg/opt/mmx1.C: New test. From-SVN: r49939
Jakub Jelinek committed -
PR c++/4574 * expr.h (expand_and): Add mode argument. * expmed.c (expand_and): Add mode argument. (expand_mult_highpart_adjust, emit_store_flag): Adjust callers. * expr.c (store_field, expand_expr, do_store_flag): Likewise. * except.c (expand_builtin_extract_return_addr): Likewise. * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise. * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise. * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise. Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x). * config/c4x/c4x.md: Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x). * gcc.dg/20020220-1.c: New test. From-SVN: r49938
Jakub Jelinek committed -
PR c/4697: * stmt.c (warn_if_unused_value): Move side effects test once more. * gcc.dg/20020220-2.c: New test. From-SVN: r49937
Jakub Jelinek committed -
* config/avr/avr.md: Add more patterns for mized-mode add and subtract (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend). From-SVN: r49936
Torbjorn Granlund committed -
* rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of SUBREG or ZERO_EXTEND. From-SVN: r49935
Alexandre Oliva committed -
2002-02-21 Andreas Tobler <toa@pop.agri.ch> * src/powerpc/ffi_darwin.c (ffi_prep_args): Skip appropriate number of GPRs for floating-point arguments. From-SVN: r49934
Andreas Tobler committed -
* sh.h (current_function_anonymous_args): Remove. (SETUP_INCOMING_VARARGS): Don't set it - just check that one of current_function_varargs and current_function_stdarg is set. * sh.c (sh_expand_prologue): Check current_function_varargs / current_function_stdarg / TARGET_SH5 instead of current_function_anonymous_args. * sh64.h (TARGET_VERSION): Define. Fix comments that to refer to SH architecture - the architecture is no longer exclusive to Hitachi. From-SVN: r49931
J"orn Rennecke committed -
* Makefile.am (libgcj.jar:): Change to -CLASSPATH (.class.h:): Ditto. (java/lang/ClassLoader.h:): Ditto. (java/lang/Thread.h:): Ditto. (java/lang/String.h:): Ditto. (java/lang/reflect/Constructor.h:): Ditto. (java/lang/reflect/Field.h:): Ditto. (java/lang/reflect/Method.h:): Ditto. (gnu/gcj/runtime/VMClassLoader.h:): Ditto. (java/io/ObjectInputStream$$GetField.h:): Ditto. (java/io/ObjectOutputStream$$PutField.h:): Ditto. * Makefile.in: Rebuilt with libgcj Automake. From-SVN: r49927
Nic Ferrier committed -
From-SVN: r49925
GCC Administrator committed -
From-SVN: r49924
David Edelsohn committed -
2002-02-20 David Edelsohn <edelsohn@gnu.org> * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize VRSAVE_REGNO on TARGET_ALTIVEC. 2002-02-20 Alan Modra <amodra@bigpond.net.au> * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant bits of SImode const_int. (includes_rshift_p): Likewise. (print_operand): Call mask_operand and mask64_operand with correct mode. (rs6000_output_function_epilogue): Pad traceback table to word. * config/rs6000/rs6000.h (MASK_64BIT): Correct comment. (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and mask64_operand with correct mode. (RETURN_IN_MEMORY): Use HOST_WIDE_INT, not HOST_WIDEST_INT. (FUNCTION_ARG_REGNO_P): Correct parentheses. From-SVN: r49923
David Edelsohn committed
-
- 20 Feb, 2002 6 commits
-
-
* gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option `--CLASSPATH' becomes `--classpath.' * gjavah.c: Likewise. * jcf-dump.c: Likewise. * lang-options.h: Likewise. * lang.c: Likewise. * jcf-path.c: Updated comment. (jcf_path_classpath_arg): Renamed `jcf_path_CLASSPATH_arg.' (jcf_path_CLASSPATH_arg): Renamed `jcf_path_classpath_arg.' * jcf.h (jcf_path_CLASSPATH_arg): Ditto. (jcf_path_CLASSPATH_arg): Ditto. (classpath_u): Updated leading comment. From-SVN: r49922
Nic Ferrier committed -
PR debug/4461 * varasm.c (get_pool_constant_mark): New. * rtl.h (get_pool_constant_mark): Add prototype. * dwarf2out.c (mem_loc_descriptor): A pool constant cannot be represented if it has not been output. * gcc.dg/debug/20020220-1.c: New test. From-SVN: r49921
Jakub Jelinek committed -
* combine.c (do_SUBST): Sanity check substitutions of CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs. (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a CONST_INT into its operand. (known_cond): Likewise, for ZERO_EXTEND. * simplify-rtx.c (simplify_unary_operation): Fix condition to allow for simplification of wide modes. Reject CONST_INTs in ZERO_EXTEND when their actual mode is not given. From-SVN: r49920
Alexandre Oliva committed -
From-SVN: r49919
Alexandre Oliva committed -
* gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option `--CLASSPATH' becomes `--classpath.' * gjavah.c: Likewise. * jcf-dump.c: Likewise. * lang-options.h: Likewise. * lang.c: Likewise. * jcf-path.c: Updated comment. (jcf_path_classpath_arg): Renamed `jcf_path_CLASSPATH_arg.' (jcf_path_CLASSPATH_arg): Renamed `jcf_path_classpath_arg.' * jcf.h (jcf_path_CLASSPATH_arg): Ditto. (jcf_path_CLASSPATH_arg): Ditto. (classpath_u): Updated leading comment. From-SVN: r49918
Nic Ferrier committed -
* c-decl.c (pushdecl): If no global declaration is found for an extern declaration in block scope, try a limbo one. From-SVN: r49917
Alexandre Oliva committed
-