aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2003-04-29Fix date typo.Loren J. Rittle1-1/+1
From-SVN: r66203
2003-04-29re PR c++/10180 (gcc fails to warn about non-inlined function)Mark Mitchell4-1/+42
PR c++/10180 * tree-inline.c (expand_call_inline): Call push_srcloc when encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline. PR c++/10180 * g++.dg/warn/Winline-1.C: New test. From-SVN: r66202
2003-04-29Daily bump.GCC Administrator2-2/+2
From-SVN: r66200
2003-04-28std_streambuf.h (_M_buf): is currently used only for basic_filebuf, ↵Paolo Carlini6-21/+29
therefore move it there. 2003-04-28 Paolo Carlini <pcarlini@unitus.it> * include/std/std_streambuf.h (_M_buf): is currently used only for basic_filebuf, therefore move it there. (basic_streambuf(), ~basic_streambuf()): Adjust. * include/std/std_fstream.h (_M_buf): Moved here. * include/std/std_sstream.h (setbuf): Don't set _M_buf, is actually redundant for basic_stringbuf. (_M_really_sync): Likewise. * include/bits/fstream.tcc (basic_filebuf()): Adjust. * include/bits/sstream.tcc (seekoff): Adjust. From-SVN: r66193
2003-04-28localename.cc: Standardize exception strings.Benjamin Kosnik15-32/+55
2003-04-28 Benjamin Kosnik <bkoz@redhat.com> * src/localename.cc: Standardize exception strings. * src/locale.cc: Same. * src/ios.cc: Same. * include/bits/basic_string.tcc: Same. * include/bits/basic_ios.tcc: Same. * include/std/std_bitset.h: Same. * include/ext/ropeimpl.h: Same. * include/bits/stl_vector.h: Same. * include/bits/stl_deque.h: Same. * include/bits/stl_bvector.h: Same. * config/locale/generic/c_locale.cc: Same. * config/locale/gnu/c_locale.cc: Same. * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same. * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify. From-SVN: r66192
2003-04-28std_streambuf.h (_M_buf_size): is currently used only for basic_filebuf, ↵Paolo Carlini4-12/+19
therefore move it there. 2003-04-28 Paolo Carlini <pcarlini@unitus.it> * include/std/std_streambuf.h (_M_buf_size): is currently used only for basic_filebuf, therefore move it there. (basic_streambuf(), ~basic_streambuf()): Adjust. * include/std/std_fstream.h (_M_buf_size): Moved here. * include/bits/fstream.tcc (basic_filebuf()): Adjust. From-SVN: r66191
2003-04-28streambuf.tcc (__copy_streambufs): Don't use _M_buf_size (synced input is ↵Paolo Carlini2-10/+14
now correctly dealt with elsewhere)... 2003-04-28 Paolo Carlini <pcarlini@unitus.it> * include/bits/streambuf.tcc (__copy_streambufs): Don't use _M_buf_size (synced input is now correctly dealt with elsewhere); when the output buffer is full don't fall back to a snextc-sputc loop, call overflow instead. From-SVN: r66190
2003-04-28sstream.tcc (pbackfail): Shorten a bit (6 lines) the innermost 'if' by ↵Paolo Carlini2-14/+14
factoring out some code. 2003-04-28 Paolo Carlini <pcarlini@unitus.it> * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines) the innermost 'if' by factoring out some code. From-SVN: r66187
2003-04-28* gdbinit.in: Update to reflect new identifier structure.Mike Stump2-2/+6
From-SVN: r66186
2003-04-28configure.in: Test for libintl.h.Phil Edwards13-94/+125
2003-04-28 Phil Edwards <pme@gcc.gnu.org> * configure.in: Test for libintl.h. * include/bits/c++config: Define __N for everybody. * include/bits/basic_string.h, include/bits/stl_bvector.h, include/bits/stl_deque.h, include/bits/stl_vector.h, include/std/std_bitset.h: Wrap all __throw* text with __N. * po/Makefile.am (pot): New rule, mostly working. * src/functexcept.cc: Call gettext on all __throw* arguments when -fexceptions is in effect. * po/Makefile.in, config.h.in, configure: Regenerate. From-SVN: r66185
2003-04-28configure.in: define GC_DLL under mingw if --enable-sharedMohan Embar4-104/+115
2003-04-28 Mohan Embar <gnustuff@thisiscool.com> * configure.in: define GC_DLL under mingw if --enable-shared * configure: rebuilt * win32_threads.c: add #ifdef GC_DLL around DllMain From-SVN: r66183
2003-04-28tree.h (TREE_CST_RTL, [...]): Delete.Zack Weinberg8-57/+36
* tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete. (struct tree_int_cst, struct tree_real_cst, struct tree_string, struct tree_complex, struct tree_vector): Remove RTL field. (CONSTRUCTOR_ELTS): Use elt 0. * tree.def (CONSTRUCTOR): Delete first of its two operands. * varasm.c (output_constant_def): Remove early exit if TREE_CST_RTL is set. Don't set TREE_CST_RTL. (decode_addr_const): Don't mention TREE_CST_RTL in comment. * target.h (select_section): Don't mention TREE_CST_RTL in comment. * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL. ada: * utils.c (convert): No need to clear TREE_CST_RTL. From-SVN: r66182
2003-04-28c-decl.c (finish_decl): When prototype with asmspec is found for built-in...Jakub Jelinek7-24/+297
* c-decl.c (finish_decl): When prototype with asmspec is found for built-in, adjust built_in_decls as well as expr.c decls. * expr.c (init_block_move_fn, init_block_clear_fn): New functions. (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it. * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes. * gcc.c-torture/execute/string-opt-asm-1.c: New test. * gcc.c-torture/execute/string-opt-asm-2.c: New test. From-SVN: r66181
2003-04-28natString.cc (_Jv_AllocString): Initialize cachedHashCode.Tom Tromey2-0/+9
* java/lang/natString.cc (_Jv_AllocString): Initialize cachedHashCode. (init): Likewise. (_Jv_NewStringUtf8Const): Likewise. From-SVN: r66180
2003-04-28sparc.c (print_operand): Add 's' to sign-extend.Richard Henderson3-18/+46
* config/sparc/sparc.c (print_operand): Add 's' to sign-extend. * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of integral constant mult operand. (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise. (const_smulsi3_highpart_v8plus): Likewise. (const_smulsi3_highpart): Likewise. (const_umulsidi3_sp32): Likewise; sign-extend it in the output. (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise. (const_umulsi3_highpart_v8plus): Likewise. (const_umulsi3_highpart): Likewise. From-SVN: r66179
2003-04-28[multiple changes]Benjamin Kosnik9-25/+394
2003-04-28 Petur Runolfsson <peturr02@ru.is> PR libstdc++/9523 * include/bits/ios_base.h (Init::_S_ios_create, Init::_S_ios_destroy): Remove declarations. (Init::_S_create_buffers, Init::_S_destroy_buffers): Declare * src/ios.cc (Init::_S_ios_create): Remove (Init::_S_create_buffers): Create buffers and add to streams. (Init::_S_ios_destroy): Rename to... (Init::_S_destroy_buffers): this. (Init::Init): Only construct streams once. (Init::~Init): Flush streams, don't destroy them. (ios_base::sync_with_stdio): Don't destroy streams, only buffers. * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test. * testsuite/27_io/objects/char/5.cc: New test. * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior. * testsuite/27_io/objects/char/6.cc: New test. * testsuite/27_io/objects/char/7.cc: New test. 2003-04-28 Benjamin Kosnik <bkoz@redhat.com> * testsuite/27_io/objects/char/8.cc: New test. From-SVN: r66177
2003-04-28x86-64.h (NO_PROFILE_COUNTERS, [...]): Define as 1.David O'Brien2-2/+7
2003-04-28 David O'Brien <obrien@FreeBSD.org> * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE): Define as 1. From-SVN: r66174
2003-04-28i386.h (builtin_define): Add __amd64 and __amd64__.David O'Brien2-0/+6
2003-04-28 David O'Brien <obrien@FreeBSD.org> * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__. From-SVN: r66171
2003-04-28char.cc: Remove bom usage.Benjamin Kosnik3-22/+21
2003-04-28 Benjamin Kosnik <bkoz@redhat.com> * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage. * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same. From-SVN: r66170
2003-04-28builtins.def (BUILT_IN_BCOPY, [...]): New.Jakub Jelinek6-3/+212
* builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New. * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New. * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New functions. (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE. * gcc.c-torture/execute/string-opt-19.c: New test. From-SVN: r66169
2003-04-28* config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.Nick Clifton2-9/+4
From-SVN: r66156
2003-04-28* decl.c (maybe_commonize_var): Fix thinko in last patch.Mark Mitchell2-1/+5
From-SVN: r66154
2003-04-28re PR c++/10506 (ICE in build_new at cp/init.c with -fkeep-inline-functions ↵Mark Mitchell7-9/+61
and multiple inheritance) PR c++/10506 * method.c (use_thunk): Decrement immediate_size_expand. PR c++/10503 * cp-tree.h (DECL_VAR_MARKED_P): New macro. (DECL_MAYBE_TEMPLATE): Remove. * class.c (fixed_type_or_null): Avoid infinite recursion. PR c++/10506 * g++.dg/init/new6.C: New test. PR c++/10503 * g++.dg/init/ref6.C: New test. From-SVN: r66150
2003-04-28std_fstream.h (basic_filebuf): _M_pback_destroy to _M_destroy_pback.Benjamin Kosnik7-47/+59
2003-04-27 Benjamin Kosnik <bkoz@redhat.com> * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to _M_destroy_pback. _M_pback_create to _M_create_pback. _M_underflow_common to _M_underflow. _M_really_overflow to _M_overflow. * include/bits/fstream.tcc: Same. * src/fstream.cc: Same. * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to _M_move_in_cur. _M_out_cur_move to _M_move_out_cur. * include/bits/streambuf.tcc: Same. * include/bits/fstream.tcc: Same. * include/bits/sstream.tcc: Same. From-SVN: r66149
2003-04-28expr.c (expand_expr <COMPLEX_CST, [...]): Always call output_constant_def, ↵Zack Weinberg3-21/+28
use its result instead of TREE_CST_RTL (exp). * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call output_constant_def, use its result instead of TREE_CST_RTL (exp). Can assume it has the form (mem (symbol_ref ".LCxxx")). (expand_expr <COMPONENT_REF>): Can always just extract the relevant field of a CONSTRUCTOR. (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF, ARRAY_RANGE_REF>): Make control flow explicit. * varasm.c (output_constant_def): Can look at TREE_CST_RTL of an INTEGER_CST. From-SVN: r66148
2003-04-28locale_classes.h (locale::_Impl): Change _M_names from fixed size array.Benjamin Kosnik8-22/+79
2003-04-27 Benjamin Kosnik <bkoz@redhat.com> * include/bits/locale_classes.h (locale::_Impl): Change _M_names from fixed size array. (locale): Change _S_categories as well. Formatting tweaks. * include/bits/locale_facets.tcc: Tweak. * config/locale/gnu/c_locale.cc: Assign _S_categories. * config/locale/generic/c_locale.cc: Same. * src/locale.cc: Tweak. * src/globals.cc: Change facet_name to name_vec, add names_c. * src/localename.cc: Use them. (locale::_Impl::~_Impl): Destroy _M_names. (locale::_Impl::_Impl): Create _M_names. From-SVN: r66147
2003-04-28Makefile.tpl: Clean $(BUILD_SUBDIR).Daniel Jacobowitz3-0/+7
* Makefile.tpl: Clean $(BUILD_SUBDIR). * Makefile.in: Regenerated. From-SVN: r66145
2003-04-28Daily bump.GCC Administrator2-2/+2
From-SVN: r66144
2003-04-27* reload1.c (reg_set_luid): Fix a comment typo.Kazu Hirata2-1/+5
From-SVN: r66137
2003-04-27* config/locale/ieee_1003.1-2001/codecvt_specializations.hAndreas Schwab2-2/+7
(__enc_traits): Use __ibom and __ebom instead of ignoring them. From-SVN: r66136
2003-04-27decl.c (maybe_commonize_var): Make the code match the comments.Mark Mitchell3-6/+14
* decl.c (maybe_commonize_var): Make the code match the comments. * pt.c (instantiate_decl): Move call to import_export_decl. From-SVN: r66135
2003-04-27varasm.c (const_str_htab_hash, [...]): Kill.Zack Weinberg5-94/+42
* varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH, struct deferred_string, const_str_htab): Kill. (n_deferred_strings): New static variable. (build_constant_desc): Set SYMBOL_REF_DECL of the new symbol_ref to point to the constant. (output_constant_def): When a deferred string is forced out, just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings. (mark_constant): Likewise. (maybe_output_constant_def_contents): When deferring a string constant, just set STRING_POOL_ADDRESS_P and increment n_deferred_strings. (mark_constant_pool): Check n_deferred_strings, not the size of const_str_htab. (init_varasm_once): No need to create const_str_htab. * rtl.def, rtl.h, doc/rtl.texi: Document possibility that SYMBOL_REF_DECL points to a constant. From-SVN: r66133
2003-04-27Move some basic_string members out of line because they are too big to ↵Nathan Myers3-89/+129
reasonably be inline. 2003-04-27 Nathan Myers <ncm@cantrip.org> Move some basic_string members out of line because they are too big to reasonably be inline. * include/bits/basic_string.h (assign(const basic_string&, size_type, size_type), assign(const _CharT*, size_type), insert(size_type, const basic_string&, size_type, size_type), insert(size_type, const _CharT*, size_type), replace(size_type, size_type, const _CharT*, size_type)): Move from here to... * include/bits/basic_string.tcc: ...here. From-SVN: r66132
2003-04-27varasm.c (output_constant_def): Split out two new static functions...Zack Weinberg2-159/+185
* varasm.c (output_constant_def): Split out two new static functions, build_constant_desc and maybe_output_constant_def_contents. Restructure for comprehensibility. Don't call output_addressed_constants. Treat defstr being non-NULL for STRING_POOL_ADDRESS_P constants as an invariant. (struct deferred_string): Remove labelno field. (output_constant_def_contents): Kill labelno argument. Call output_addressed_constants here. Use ASM_OUTPUT_LABEL, not asm_out.internal_label. (mark_constant): Update call to output_constant_def_contents. Treat defstr being non-NULL for STRING_POOL_ADDRESS_P constants as an invariant. From-SVN: r66129
2003-04-26i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.Richard Henderson2-3/+8
* config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P. (ix86_expand_call, ix86_rtx_consts): Likewise. From-SVN: r66128
2003-04-27Daily bump.GCC Administrator2-2/+2
From-SVN: r66127
2003-04-26* g++.dg/warn/weak1.C: XFAIL on AIX4.David Edelsohn2-1/+5
From-SVN: r66120
2003-04-26Revert cpplex.c changeNeil Booth1-0/+6
From-SVN: r66118
2003-04-26Update copyrightKaveh Ghazi1-1/+1
From-SVN: r66117
2003-04-26md.texi (cmpstr): Document additional restrictions.Kaveh R. Ghazi4-5/+18
gcc: * doc/md.texi (cmpstr): Document additional restrictions. testsuite: * gcc.c-torture/execute/string-opt-8.c: Don't perform cmpstr checks for __pj__, but do them for !__OPTIMIZE__ and __s390__. From-SVN: r66116
2003-04-26* decl2.c (finish_file): Fix merge botch.Mark Mitchell2-0/+6
From-SVN: r66114
2003-04-26flags.h (time_report): Remove.Neil Booth5-38/+41
* flags.h (time_report): Remove. * timevar.c (timevar_enable): New. (TIMEVAR_ENABLE): Remove, use timevar_enable. (timevar_init): Rename from init_timevar. * timevar.h (timevar_init): Rename from init_timevar. * toplev.c (time_report): Make static. (do_compile): Conditionally call init_timevar first. (preprocess_options): Move some code to do_compile. From-SVN: r66110
2003-04-26* doc/install.texi (Binaries): Mention binaries for HC11/HC12.Stephane Carrez2-0/+8
From-SVN: r66107
2003-04-26* _cpp_lex_direct: Remove pointless code.Neil Booth2-6/+4
From-SVN: r66106
2003-04-26extend.texi (Function Attributes): Document "near" and "far" for 68HC11 and ↵Stephane Carrez2-0/+29
68HC12. * doc/extend.texi (Function Attributes): Document "near" and "far" for 68HC11 and 68HC12. From-SVN: r66104
2003-04-26expr.c (store_field): When making temporary for store, don't make it ↵Richard Kenner2-5/+8
TYPE_QUAL_CONST. * expr.c (store_field): When making temporary for store, don't make it TYPE_QUAL_CONST. From-SVN: r66103
2003-04-26fstream.tcc (pbackfail): Shorten a bit (10 lines) the innermost 'if' by ↵Paolo Carlini2-16/+11
factoring out some code. 2003-04-26 Paolo Carlini <pcarlini@unitus.it> * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines) the innermost 'if' by factoring out some code. From-SVN: r66102
2003-04-26streambuf.tcc (__copy_streambufs): Don't use in_avail(), simplify.Paolo Carlini3-14/+24
2003-04-26 Paolo Carlini <pcarlini@unitus.it> * include/bits/streambuf.tcc (__copy_streambufs): Don't use in_avail(), simplify. 2003-04-26 Paolo Carlini <pcarlini@unitus.it> * include/std/std_sstream.h (setbuf): don't set _M_buf_size, in basic_stringbuf it's unused. * include/std/std_sstream.h (underflow): consistently use _M_in_cur, not gptr(). From-SVN: r66100
2003-04-26testsuite_flags.in: Guard against the possibility of having "xgcc" as a part ↵Ranjit Mathew4-6/+15
of a folder name in... 2003-04-25 Ranjit Mathew <rmathew@hotmail.com> Phil Edwards <pme@gcc.gnu.org> * testsuite_flags.in: Guard against the possibility of having "xgcc" as a part of a folder name in the path to the GCC build folder. * testsuite/Makefile.am: Likewise. * testsuite/Makefile.in: Regenerated. Co-Authored-By: Phil Edwards <pme@gcc.gnu.org> From-SVN: r66098
2003-04-26toplev.c (read_integral_parameter): Use "argument" in error message to ↵Phil Edwards2-1/+6
distinguish it from actual invalid options. 2003-04-25 Phil Edwards <pme@gcc.gnu.org> * toplev.c (read_integral_parameter): Use "argument" in error message to distinguish it from actual invalid options. From-SVN: r66097