- 14 Dec, 2001 13 commits
-
-
* dwarf2out.c (output_die): Print the string in the comment for a DW_FORM_strp. From-SVN: r47997
Jason Merrill committed -
(COLLECT_SHARD_FINI_FUNC): Remove redundant semicolon. * doc/tm.texi (COLLECT_SHARED_INIT_FUNC) (COLLECT_SHARD_FINI_FUNC): Use @code where appropriate. From-SVN: r47996
Richard Earnshaw committed -
From-SVN: r47995
GCC Administrator committed -
* regrename.c (kill_value_regno): Simplify chain removal. (kill_value): Kill all of HARD_REGNO_NREGS. (kill_set_value): Use kill_value not kill_value_regno. (kill_autoinc_value): Likewise. (copyprop_hardreg_forward): Don't collect refresh_blocks. Call delete_noop_moves. From-SVN: r47992
Richard Henderson committed -
2001-12-13 Aldy Hernandez <aldyh@redhat.com> * gcc.dg/altivec-4.c: New. From-SVN: r47991
Aldy Hernandez committed -
* attribs.c (c_common_attribute_table): Swap decl_req and type_req for the mode attribute. (handle_mode_attribute): Handle types, not decls. From-SVN: r47990
Aldy Hernandez committed -
2001-12-09 Aldy Hernandez <aldyh@redhat.com> * attribs.c (c_common_attribute_table): Swap decl_req and type_req for the mode attribute. (handle_mode_attribute): Handle types, not decls. From-SVN: r47989
Aldy Hernandez committed -
* c-common.h (COMPOUND_STMT_BODY_BLOCK): New macro. Use cleanups to run base and member destructors. * init.c (push_base_cleanups): New function, split out from... (build_delete): ...here. Lose !TYPE_HAS_DESTRUCTOR code. * decl.c (finish_destructor_body): Move vbase destruction code to push_base_cleanups. (begin_function_body, finish_function_body): New fns. (finish_function): Move [cd]tor handling and call_poplevel to finish_function_body. (pushdecl): Skip the new level. * semantics.c (genrtl_try_block): Don't call end_protect_partials. (setup_vtbl_ptr): Call push_base_cleanups. * method.c (synthesize_method): Call {begin,end}_function_body. * pt.c (tsubst_expr): Handle COMPOUND_STMT_BODY_BLOCK. * cp-tree.h: Declare new fns. * parse.y (function_body, .begin_function_body): New nonterminals. (fndef, pending_inline, function_try_block): Use function_body. (ctor_initializer_opt, function_try_block): No longer has a value. (base_init): Remove .set_base_init token. (.set_base_init, compstmt_or_error): Remove. * Make-lang.in (parse.c): Expect two fewer s/r conflicts. From-SVN: r47988
Jason Merrill committed -
* c-common.h (COMPOUND_STMT_BODY_BLOCK): New macro. * Make-lang.in (parse.h): Separate rule, just depend on parse.c. Use cleanups to run base and member destructors. * init.c (push_base_cleanups): New function, split out from... (build_delete): ...here. Lose !TYPE_HAS_DESTRUCTOR code. * decl.c (finish_destructor_body): Move vbase destruction code to push_base_cleanups. (begin_function_body, finish_function_body): New fns. (finish_function): Move [cd]tor handling and call_poplevel to finish_function_body. (pushdecl): Skip the new level. * semantics.c (genrtl_try_block): Don't call end_protect_partials. (setup_vtbl_ptr): Call push_base_cleanups. * method.c (synthesize_method): Call {begin,end}_function_body. * pt.c (tsubst_expr): Handle COMPOUND_STMT_BODY_BLOCK. * cp-tree.h: Declare new fns. * parse.y (function_body, .begin_function_body): New nonterminals. (fndef, pending_inline, function_try_block): Use function_body. (ctor_initializer_opt, function_try_block): No longer has a value. (base_init): Remove .set_base_init token. (.set_base_init, compstmt_or_error): Remove. * Make-lang.in (parse.c): Expect two fewer s/r conflicts. From-SVN: r47987
Jason Merrill committed -
2001-12-13 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.md (eh_set_lr_di): Change scratch constraint to base register. (eh_set_lr_si): Same. From-SVN: r47986
Aldy Hernandez committed -
From-SVN: r47985
Jason Merrill committed -
* expr.c (expand_expr, case ADDR_EXPR): Don't honor flag_force_addr for modifier != EXPAND_CONST_ADDRESS, modifier != EXPAND_INITIALIZER and modifier != EXPAND_SUM. * gcc.dg/20011113-1.c: New test. From-SVN: r47984
Hans-Peter Nilsson committed -
* expr.c (copy_blkmode_from_reg): Add missing braces to eliminate warning and reformat comments. (expand_assignment): Don't pass EXPAND_WRITE if LHS is component. (highest_pow2_factor, case INTEGER_CST): Return BIGGEST_ALIGNMENT if overflow. From-SVN: r47983
Richard Kenner committed
-
- 13 Dec, 2001 22 commits
-
-
* config/rs6000/rs6000.c (rs6000_override_options): Add SUBSUBTARGET_OVERRIDE_OPTIONS. * config/rs6000/eabialtivec.h: New file. * config/rs6000/linuxaltivec.h: New file. * config.gcc: Add powerpc-*-eabialtivec and powerpc-*-linux-gnualtivec. From-SVN: r47981
Aldy Hernandez committed -
2001-12-13 Phil Edwards <pme@gcc.gnu.org> * docs/html/ext/howto.html: Fix typos. From-SVN: r47980
Phil Edwards committed -
* toplev.c (process_options, parse_options_and_default_flags): Set flag_no_inline before the post_options hook. From-SVN: r47979
Neil Booth committed -
* emit-rtl.c (adjust_address_1): Don't adjust address if adjust is false. From-SVN: r47978
Richard Henderson committed -
* g++.old-deja/g++.jason/template31.C: Remove templates for classes std::__malloc_alloc_template<0> and std::__default_alloc_template<false, 0>. From-SVN: r47977
John David Anglin committed -
From-SVN: r47976
Jason Merrill committed -
(COLLECT_SHARD_FINI_FUNC): Define default values. (write_c_file_stat): Use them to call construtor and destructor functions in shared libraries. * doc/tm.texi (COLLECT_SHARED_INIT_FUNC) (COLLECT_SHARD_FINI_FUNC): Document them. * config/netbsd.h (COLLECT_SHARED_INIT_FUNC) (COLLECT_SHARD_FINI_FUNC): Define. * config/netbsd.h (LINK_SPEC): Don't pull in estart if creating a shared library. Pass -shared through to the linker. * config/arm/netbsd.h (LINK_SPEC): Likewise. * config/arm/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -fpic. (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME, SHLIB_OBJS, SHLIB_LINK) (SHLIB_INSTALL): Define. From-SVN: r47975
Richard Earnshaw committed -
From-SVN: r47974
Richard Kenner committed -
arm.c (legitimize_pic_address): Handle LABEL_REFs in substantially the same way as we handle SYMBOL_REFS. * arm.c (legitimize_pic_address): Handle LABEL_REFs in substantially the same way as we handle SYMBOL_REFS. From-SVN: r47973
Richard Earnshaw committed -
* loop.c (remove_constant_addition): Fix prototype and whitespace. (emit_prefetch_instructions): Remove warnings and whitespace changes. From-SVN: r47972
Richard Kenner committed -
From-SVN: r47971
Nicola Pero committed -
* config/alpha/vms-cc.c (preprocess_args): Fix forward declaration. From-SVN: r47970
Douglas B Rupp committed -
* predict.c (estimate_probability): Reorganize opcode heuristics. * predict.def (PRED_OPCODE_POSITIVE, PRED_OPCODE_NONEQUAL, PRED_FPOPCODE): New. * i386.c (override_options): Recognize various CPU variants and set SSE/MMX/3dNOW flags accordingly. * i386.h (MASK_MMX_SET, MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET, MASK_3DNOW_A_SET): New. (MASK_ACCUMULATE_OUTGOING_ARGS_SET): New. (MASK_NO_ACCUMULATE_OUTGOING_ARGS): Delete. (MASK_*): Renumber. (TARGET_FLAGS): Use new masks. (CPP_CPU_SPECS): Recognize new CPU variants. * invoke.texi (-mcpu): Update documentation. * flags.h (flag_prefetch_loop_arrays): Declare. * loop.h (LOOP_PREFETCH): Define new constant. * loop.c (strength_reduce): Call emit_prefetch_instructions. (MAX_PREFETCHES, PREFETCH_BLOCKS_BEFORE_LOOP_MAX, PREFETCH_BLOCKS_BEFORE_LOOP_MIN, PREFETCH_BLOCKS_IN_LOOP_MIN): New constants. (check_store_data): New structure. (check_store, emit_prefetch_instructions, rtx_equal_for_prefetch_p): New functions. * toplev.c: Include insn-flags.h. (flag_prefetch_loop_arrays): New global variable. (lang_independent_option): Add -fprefetch-loop-arrays. (rest_of_compilation) Pass LOOP_PREFETCH when flag_prefetch_loop_arrays is set. * Makefile.in (toplev.c): Depend on insn-flags.h. * invoke.texi (-fprefetch-loop-arrays): Document. * predict.c (estimate_probability): Distribute the loop exit probability according to number of exit edges. * cfgcleanup.c (insns_match_p): Break out from ...; (flow_find_cross_jump): ... here; (outgoing_edges_match): Add parameter MODE; attempt to match everything except for tablejumps. (try_crossjump_to_edge): Accept complex edges. (try_crossjump_bb): Likewise. From-SVN: r47969
Jan Hubicka committed -
2001-12-13 Benjamin Kosnik <bkoz@redhat.com> libstdc++/3679 * src/locale.cc (locale::locale(const char*)): Deal with locales named "". * testsuite/22_locale/ctor_copy_dtor.cc (test01): Modify. From-SVN: r47968
Benjamin Kosnik committed -
From-SVN: r47966
GCC Administrator committed -
* prims.cc (_Jv_RunMain): Use `using' to simplify code. Set _Jv_Jar_Class_Path early. From-SVN: r47965
Tom Tromey committed -
* decl.c (store_parm_decls): Remove parms_have_cleanups cruft. * semantics.c (genrtl_start_function): Don't pass parms_have_cleanups or push an extra binding level. (genrtl_finish_function): Lose cleanup_label cruft. * cp-tree.h (struct cp_language_function): Remove x_ctor_label. (ctor_label): Remove. * semantics.c (finish_return_stmt): Lose ctor_label support. * decl.c (finish_constructor_body, mark_lang_function): Likewise. * typeck.c (check_return_expr): Check DECL_DESTRUCTOR_P, not dtor_label. * call.c (build_new_method_call): Let resolves_to_fixed_type_p check for [cd]tors. * class.c (fixed_type_or_null, case INDIRECT_REF): Fix. * decl.c (finish_function): Check VMS_TARGET, not VMS. * decl.c (start_cleanup_fn): Remove redundant pushlevel. (end_cleanup_fn): And poplevel. * semantics.c (setup_vtbl_ptr): Always build a CTOR_INITIALIZER if we're in a template. From-SVN: r47962
Jason Merrill committed -
* recog.c (validate_replace_rtx_1): Use simplify_gen_binary instead of plus_constant. * simplify-rtx.c (neg_const_int): New. (simplify_gen_binary, simplify_plus_minus): Use it. From-SVN: r47961
Corey Minyard committed -
* builtins.c (expand_builtin_memset, expand_builtin_memcpy, expand_builtin_strcpy): Additional arguments TARGET and MODE. (expand_builtin_bzero, expand_builtin_strcpy, expand_builtin_strncpy, expand_builtin_bzero): Pass additional TARGET and MODE parameters to the above functions. (expand_builtin_memset, expand_builtin_memcpy): Optimize the case where the LEN parameter is constant zero. (expand_builtin_memcmp): No longer conditional on HAVE_cmpstrsi. Take an additional mode parameter. Optimize the cases where len is either constant zero or one. Optimize to call to memcpy, even if the memcpy isn't inlined. (expand_builtin_strncpy): Optimize to call memcpy, even if the memcpy isn't inlined. (expand_builtin_strcmp, expand_builtin_strncmp): Always attempt to optimize to a call to memcmp. (expand_builtin): expand_builtin_memcmp can always be called, and pass the required parameters to expand_builtin_memcmp, expand_builtin_memset, expand_builtin_memcpy and expand_builtin_strcpy. * gcc.c-torture/execute/string-opt-14.c: New test case. * gcc.c-torture/execute/string-opt-15.c: New test case. From-SVN: r47960
Roger Sayle committed -
2001-12-12 Paolo Carlini <pcarlini@unitus.it> * include/ext/ropeimpl.h (rope::_S_leaf_concat_char_iter, _S_destr_leaf_concat_char_iter, _S_tree_concat, _S_concat_char_iter, _S_destr_concat_char_iter, _S_concat, _S_substring, _S_balance) : Adjust implicit typename. * include/ext/stl_rope.h (_Rope_iterator::operator=, rope::npos): Adjust implicit typename. * testsuite/27_io/streambuf.cc: Adjust implicit typename. From-SVN: r47958
Paolo Carlini committed -
2001-12-12 David O'Brien <obrien@FreeBSD.org> * config.gcc (arm-*-freebsd*): Add target. * config/arm/freebsd.h: New file. * config/arm/arm.h (CPP_PREDEFINES): Do not define. (CPP_SPEC): #undef before defining. (CPP_CPU_ARCH_SPEC): Add -Acpu=arm -Amachine=arm. * config/arm/conix-elf.h (CPP_PREDEFINES): Remove -Acpu=arm -Amachine=arm. * config/arm/linux-elf.h: Likewise. * config/arm/netbsd.h: Likewise. * config/arm/riscix.h: Likewise. * config/arm/riscix1-1.h: Likewise. * config/arm/semiaof.h: Likewise. Approved by: Richard Earnshaw <rearnsha@arm.com> (in private email) Message-Id: <200112121046.KAA09097@cam-mail2.cambridge.arm.com> From-SVN: r47957
David O'Brien committed -
* freeze.ads: Update copyright date. * g-comlin.ads: Minor reformatting. * gnat-style.texi: Fix typo. From-SVN: r47956
Geert Bosch committed
-
- 12 Dec, 2001 5 commits
-
-
From-SVN: r47955
Geert Bosch committed -
sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names on known node types, rather than untyped fields. * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names on known node types, rather than untyped fields. Further cleanups. * sem_ch12.adb: (Save_Entity_Descendant): Minor comment update. (Copy_Generic_Node): Deal with incorrect reference to Associated_Node of an N_Attribute_Reference node. As per note below, this does not eliminate need for Associated_Node in attribute ref nodes. (Associated_Node): Documentation explicitly mentions attribute reference nodes, since this field is used in such nodes. * sem_ch12.adb (Associated_Node): Minor documentation cleanup. From-SVN: r47954
Geert Bosch committed -
2001-12-12 Benjamin Kosnik <bkoz@redhat.com> Named locale support for ctype<char>. * config/locale/c_locale_gnu.h (_GLIBCPP_C_LOCALE_GNU): New. * config/os/gnu-linux/bits/ctype_noninline.h (ctype<char>): Add definitions for alternate constructor. * config/os/solaris/solaris2.7/bits/ctype_noninline.h (ctype): Same. * config/os/solaris/solaris2.6/bits/ctype_noninline.h (ctype): Same. * config/os/solaris/solaris2.5/bits/ctype_noninline.h (ctype): Same. * config/os/newlib/bits/ctype_noninline.h (ctype): Same. * config/os/irix/irix6.5/bits/ctype_noninline.h (ctype): Same. * config/os/irix/irix5.2/bits/ctype_noninline.h (ctype): Same. * config/os/hpux/bits/ctype_noninline.h (ctype): Same. * config/os/generic/bits/ctype_noninline.h (ctype): Same. * config/os/djgpp/bits/ctype_noninline.h (ctype): Same. * config/os/bsd/netbsd/bits/ctype_noninline.h (ctype): Same. * config/os/bsd/freebsd/bits/ctype_noninline.h (ctype): Same. * config/os/aix/bits/ctype_noninline.h (ctype): Same. * include/bits/locale_facets.h (ctype<_CharT>): Remove dummy definitions for all virtual functions. These are now explicitly undefined for non-required factets, ie any non-char, non-wchar_t instantiations. * src/localename.cc (locale::_Impl::_Impl(string, size_t): Named locales use alternate constructor for ctype facet. * include/bits/locale_facets.h (ctype<char>::ctype(__c_locale, const mask*, bool, size_t): Add. (ctype<wchar_t>::ctype(__c_locale, size_t): Add. * src/locale.cc (ctype<wchar_t>::ctype(__c_locale, size_t)): Add definition. * testsuite/22_locale/ctype_members_char.cc (test02): Add, mark XFAIL for non-gnu locale models. From-SVN: r47953
Benjamin Kosnik committed -
2001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org> PR other/2719 * cplus-dem.c (consume_count): Treat negative count as an error. * testsuite/demangle-expected: Added testcase. From-SVN: r47952
Craig Rodrigues committed -
* regrename.c (copyprop_hardreg_forward): New optimization. (kill_value_regno, kill_value, init_value_data, kill_clobbered_value, kill_set_value, kill_autoinc_value, copy_value, find_oldest_value_reg, replace_oldest_value_reg, replace_oldest_value_addr, replace_oldest_value_mem, copyprop_hardreg_forward_1, debug_value_data, validate_value_data): New. * rtl.h (copyprop_hardreg_forward): Declare. * toplev.c (flag_cprop_registers): New. (f_options): Add -fcprop-registers (rest_of_compilation): Invoke it. (parse_options_and_default_flags): Set it at -O1. * doc/invoke.texi: Document it. From-SVN: r47951
Richard Henderson committed
-