OSDN Git Service

pf3gnuchains/gcc-fork.git
19 years agoFix it again.
hjl [Fri, 4 Jul 2003 20:09:00 +0000 (20:09 +0000)]
Fix it again.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68934 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoFix typo.
hjl [Fri, 4 Jul 2003 19:51:03 +0000 (19:51 +0000)]
Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68932 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
hjl [Fri, 4 Jul 2003 19:45:55 +0000 (19:45 +0000)]
2003-07-04  H.J. Lu <hongjiu.lu@intel.com>

* Makefile.tpl: Replace PWD with PWD_COMMAND.
* Makefile.in: Regenerated.

gcc/

2003-07-04  H.J. Lu <hongjiu.lu@intel.com>

* config-ml.in: Replace PWD with PWD_COMMAND.
* Makefile.in: Likewise.

gcc/ada/

2003-07-04  H.J. Lu <hongjiu.lu@intel.com>

* Make-lang.in: Replace PWD with PWD_COMMAND.
* Makefile.adalib: Likewise.
* Makefile.in: Likewise.

gcc/treelang/

2003-07-04  H.J. Lu <hongjiu.lu@intel.com>

* Make-lang.in: Replace PWD with PWD_COMMAND.

libf2c/

2003-07-04  H.J. Lu <hongjiu.lu@intel.com>

* Makefile.in: Replace PWD with PWD_COMMAND.

libstdc++-v3/

2003-07-04  H.J. Lu <hongjiu.lu@intel.com>

* Makefile.am: Replace PWD with PWD_COMMAND.
* Makefile.in: Regenerated.
* docs/html/Makefile: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68931 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * cfgloopanal.c (count_strange_loop_iterations): New static function.
rakdver [Fri, 4 Jul 2003 18:53:41 +0000 (18:53 +0000)]
* cfgloopanal.c (count_strange_loop_iterations): New static function.
(constant_iterations, count_loop_iterations, simple_loop_exit_p):
Handle strange loops.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68930 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
toon [Fri, 4 Jul 2003 18:47:09 +0000 (18:47 +0000)]
2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>

* install.texi: Even the g77 manpage is derived from
the full g77 manual.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68929 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agotop:
zack [Fri, 4 Jul 2003 18:18:54 +0000 (18:18 +0000)]
top:
* intl: New directory; see intl/ChangeLog for details.
* ABOUT-NLS, config.rpath: Import from gettext 0.12.1.
* Makefile.tpl: all-gcc depends on maybe-all-intl.
* Makefile.in: Regenerate.
config:
* gettext.m4: New file - copy of gettext.m4 from binutils
CVS, with added AC_ISC_POSIX macro from gcc/aclocal.m4.
gcc:
* ABOUT-NLS: Delete.
* intl: Delete entire directory.
* aclocal.m4: Include ../config/gettext.m4.  Delete
AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
* configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
Remove intl/Makefile from all_outputs.
* configure, config.in: Regenerate.
* Makefile.in: Expunge all references to intl subdirectory.
Add -I../intl to INCLUDES.
* intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
intl:
* Makefile.in: Remove unnecessary capabilities for
installation, build of shared libraries, generation of
distribution tarballs, etc.  Fix all the places that rely on
the parent directory.  Don't generate libgnuintl.h from
anything; do generate $(objdir)/libintl.h from libgnuintl.h if
necessary.  Adjust DEFS for use of config.h.
* libgnuintl.h.in: Rename libgnuintl.h.
* README: New file.
* config.charset, ref-add.sin, ref-del.sin: Delete (unused).
* COPYING.LIB-2.0, COPYING.LIB-2.1: Delete (redundant).
* aclocal.m4: New; generated per instructions in gettext manual.
* configure.in: New; written from scratch for this configuration.
* configure, config.h.in: Generated.
contrib:
* gcc_update: Remove gcc/intl/plural.c from list.
Add new generated files intl/plural.c, intl/configure,
intl/config.h.in.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68928 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-04 Paolo Carlini <pcarlini@unitus.it>
paolo [Fri, 4 Jul 2003 18:14:27 +0000 (18:14 +0000)]
2003-07-04  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/valarray_array.h: Fully qualify standard
functions with std::, thus avoiding Koenig lookup.
* include/bits/vector.tcc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68927 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Fri, 4 Jul 2003 18:10:10 +0000 (18:10 +0000)]
2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>

* include/Makefile.am: Update target_ to host_.
* include/Makefile.in: Regenerate.
* src/Makefile.am: Same.
* src/Makefile.in: Regenerate.

* config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68926 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Fri, 4 Jul 2003 17:36:38 +0000 (17:36 +0000)]
2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>

* acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
--enable-libstdcxx-debug-flags.
(GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
(GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
* aclocal.m4: Regenerate.
* configure: Same.
* docs/html/configopts.html: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68925 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gcc_release: Execute gcc.gnu.org-only operations which are
gerald [Fri, 4 Jul 2003 17:25:31 +0000 (17:25 +0000)]
* gcc_release: Execute gcc.gnu.org-only operations which are
related to diff generation only if diffs have been requested.
(build_sources): Improve tracing and an error message related
to tagging.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68924 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gcc.dg/compat/fnptr-by-value-1_x.c: Add a prototype for testva.
kazu [Fri, 4 Jul 2003 16:44:37 +0000 (16:44 +0000)]
* gcc.dg/compat/fnptr-by-value-1_x.c: Add a prototype for testva.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68923 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-04 Paolo Carlini <pcarlini@unitus.it>
paolo [Fri, 4 Jul 2003 16:36:26 +0000 (16:36 +0000)]
2003-07-04  Paolo Carlini  <pcarlini@unitus.it>

Revert the fix for libstdc++/11378.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68922 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-04 Paolo Carlini <pcarlini@unitus.it>
paolo [Fri, 4 Jul 2003 16:15:15 +0000 (16:15 +0000)]
2003-07-04  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/11378
* include/std/std_fstream.h (xsputn): In the unbuffered case,
provided always_noconv(), issue directly _M_file.xsputn.
* testsuite/performance/filebuf_unbuf_sputn.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68921 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
sayle [Fri, 4 Jul 2003 12:42:01 +0000 (12:42 +0000)]
* config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
* config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68920 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-04 Paolo Carlini <pcarlini@unitus.it>
paolo [Fri, 4 Jul 2003 12:10:13 +0000 (12:10 +0000)]
2003-07-04  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/stl_list.h: Fully qualify standard
functions with std::, thus avoiding Koenig lookup.
* include/bits/stl_queue.h: Likewise.
* include/bits/stl_raw_storage_iter.h: Likewise.
* include/bits/stl_tempbuf.h: Likewise.
* include/bits/stl_tree.h: Likewise.
* include/bits/stl_uninitialized.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/ext/rope: Change includes order.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68919 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Fri, 4 Jul 2003 09:10:48 +0000 (09:10 +0000)]
2003-07-04  Benjamin Kosnik  <bkoz@redhat.com>

* configure.host (fpos_include_dir): Fix.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68918 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR c++/5287, PR c++/7910, PR c++/11021
dannysmith [Fri, 4 Jul 2003 07:52:38 +0000 (07:52 +0000)]
PR c++/5287, PR c++/7910,  PR c++/11021
* testsuite/g++.dg/ext/dllimport1.C: Add mingw32 as target. Add
tests for warnings.
* testsuite/g++.dg/ext/dllimport2.C: Add tests for warnings.
* testsuite/g++.dg/ext/dllimport3.C: Likewise.
* testsuite/g++.dg/ext/dllimport4.C: New file.
* testsuite/g++.dg/ext/dllimport5.C: New file.
* testsuite/g++.dg/ext/dllimport6.C: New file.
* testsuite/g++.dg/ext/dllimport7.C: New file.
* testsuite/g++.dg/ext/dllimport8.C: New file.
* testsuite/g++.dg/ext/dllimport9.C: New file.
* testsuite/g++.dg/ext/dllimport10.C: New file.
* testsuite/g++.dg/ext/dllexport1.C: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68917 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR c++/5287, PR c++/7910, PR c++/11021
dannysmith [Fri, 4 Jul 2003 07:42:11 +0000 (07:42 +0000)]
PR c++/5287, PR c++/7910,  PR c++/11021
* config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
dllimport attribute if function is defined at declaration, but
report error instead. Likewise for dllimport'd variable
definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
declared within functions, Report error if dllimport or dllexport
symbol is not global.
(i386_pe_dllimport_p): Ignore dllimport attribute of functions
if defined after declaration or if inlined. Don't allow definition
of static data members of C++ classes. Don't dllimport virtual
methods.
(i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
(i386_pe_mark_dllimport): Remove unnecessary checks.
(i386_pe_encode_section_info): Warn if the dllimport attribute
and symbol prefix have been instantiated and then overridden.

* doc/extend.texi: Document dllimport and dllexport attributes.

* config/i386/winnt.c (i386_pe_output_labelref): Fix indents.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68916 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-04 Paolo Carlini <pcarlini@unitus.it>
paolo [Fri, 4 Jul 2003 07:22:19 +0000 (07:22 +0000)]
2003-07-04  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/stl_heap.h: Fully qualify standard
functions with std::, thus avoiding Koenig lookup.
* include/bits/stl_iterator_base_funcs.h: Likewise.

* include/bits/stl_algo.h: Qualify __iterator_category too.
* include/bits/stl_algobase.h: Likewise.
* include/bits/stl_bvector.h: Likewise.

* include/bits/stl_algo.h: Don't qualify the pair type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68915 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Fri, 4 Jul 2003 07:15:30 +0000 (07:15 +0000)]
2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>

* include/Makefile.am (target_headers): Add fpos.h
(bits_headers): Remove.
* include/Makefile.in: Regenerate.
* configure.in: Add FPOS_INC_SRCDIR, substitute it.
* configure: Regenerate.
* configure.host: Add fpos_include_dir.
* config/os/gnu-linux/fpos.h: New.
* config/os/generic/fpos.h: Add.
* include/bits/fpos.h: Remove.

* config/io/c_io_stdio.h: Remove fpos_t typedef.

* include/bits/fstream.tcc: Tweaks.
* include/std/std_fstream.h: Same.

* testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
* testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
* testsuite/27_io/fpos/mbstate_t/2.cc: Same.
* testsuite/27_io/fpos/mbstate_t/3.cc: Same.
* testsuite/27_io/fpos/1.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68914 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Fri, 4 Jul 2003 07:14:54 +0000 (07:14 +0000)]
2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>

* include/Makefile.am (target_headers): Add fpos.h
(bits_headers): Remove.
* include/Makefile.in: Regenerate.
* configure.in: Add FPOS_INC_SRCDIR, substitute it.
* configure: Regenerate.
* configure.host: Add fpos_include_dir.
* config/os/gnu-linux/fpos.h: New.
* config/os/generic/fpos.h: Add.
* include/bits/fpos.h: Remove.

* config/io/c_io_stdio.h: Remove fpos_t typedef.

* include/bits/fstream.tcc: Tweaks.
* include/std/std_fstream.h: Same.

* testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
* testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
* testsuite/27_io/fpos/mbstate_t/2.cc: Same.
* testsuite/27_io/fpos/mbstate_t/3.cc: Same.
* testsuite/27_io/fpos/1.cc: New.

2003-07-03  Benjamin Kosnik  <bkoz@redhat.com>
    Petur Runolfsson  <peturr02@ru.is>

* include/std/std_streambuf.h: Remove _M_pos.
* config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
* config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
use fread/fwrite instead of read/write.
* testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
* testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
before reading again.
* testsuite/27_io/objects/char/6.cc: Tweak.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68913 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoPatch from Uwe Stieber.
wilson [Fri, 4 Jul 2003 06:01:50 +0000 (06:01 +0000)]
Patch from Uwe Stieber.
* config/kaos.h (CPP_PREDEFINES): Delete.
(TARGET_OS_CPP_BUILTINS): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68912 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * call.c (build_addr_func): Handle bound pointers-to-members.
mmitchel [Fri, 4 Jul 2003 05:05:19 +0000 (05:05 +0000)]
* call.c (build_addr_func): Handle bound pointers-to-members.
(build_method_call): Do not call resolve_offset_ref.
(implicit_conversion): Likewise.
(resolve_scoped_fn_name): Use finish_non_static_data_member, not
resolve_offset_ref.
(resolve_args): Do not call resolve_offset_ref.
(build_conditional_expr): Likewise.
(build_new_method_call): Likewise.
* cp-tree.def (OFFSET_REF): Update documentation.
(cp_convert_to_pointer): Update handling of conversions from
pointers to members to pointers.
(ocp_convert): Do not call resolve_offset_ref.
(convert_to_void): Likewise.
(build_expr_type_conversion): Likewise.
(delete_sanity): Likewise.
(resolve_offset_ref): Simplify greatly.
(build_vec_delete): Do not call resolve_offset_ref.
* parser.c (cp_parser_postfix_expression): Call resolve_offset_ref
if appropriate.
(cp_parser_unary_expression): Use
cp_parser_simple_cast_expression.
(cp_parser_delete_expression): Likewise.
(cp_parser_cast_expression): Likewise.
(cp_parser_pm_expression): Use cp_parser_binary_op.
(cp_parser_simple_cast_expression): New function.
* rtti.c (build_dynamic_cast_1): Do not call resolve_offset_ref.
* semantics.c (finish_increment_expr): Likewise.
(finish_typeof): Likewise.
* tree.c (lvalue_p_1): Do not handle OFFSET_REF.
* typeck.c (require_complete_type): Do not handle OFFSET_REFs.
(decay_conversion): Do not call resolve_offset_ref.
(finish_class_member_access_expr): Likewise.
(convert_arguments): Likewise.
(build_x_binary_op): Handle DOTSTAR_EXPR.
(condition_conversion): Do not call resolve_offset_ref.
(unary_complex_lvalue): Likewise.
(build_static_cast): Likewise.
(build_reinterpret_cast): Likewise.
(build_const_cast): Likewise.
(build_c_cast): Likewise.
(build_modify_expr): Likewise.
(convert_for_assignment): Likewise.
(convert_for_initialization): Likewise.
* typeck2.c (build_x_arrow): Likewise.
(build_m_component_ref): Simplify.

* g++.old-deja/g++.jason/typeid1.C: Add dg-error marker.
* g++.old-deja/g++.mike/net36.C: Tweak error messages.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68911 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agogcc:
ghazi [Fri, 4 Jul 2003 01:55:50 +0000 (01:55 +0000)]
gcc:
* c-aux-info.c: Include toplev.h after c-tree.h.
* c-common.c: Likewise.
(GCC_DIAG_STYLE): Undef.
* c-semantics.c (GCC_DIAG_STYLE): Define.
* c-tree.h (GCC_DIAG_STYLE): Likewise.
* diagnostic.h (inform): Move prototype to toplev.h.
* jump.c: Include diagnostic.h before toplev.h.
* toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
(warning, error, fatal_error, pedwarn, sorry, inform,
error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.

cp:
* cp-tree.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_CXXDIAG): Define.
(cp_error_at, cp_warning_at, cp_pedwarn_at): Mark with
ATTRIBUTE_GCC_CXXDIAG.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68910 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoDaily bump.
gccadmin [Fri, 4 Jul 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68908 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
rakdver [Thu, 3 Jul 2003 23:50:05 +0000 (23:50 +0000)]
* cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
at all if edge is not specified.
(can_copy_bbs_p, copy_bbs): New.
* cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
* cfgloop.c (get_loop_body): Comment more precisely.
* cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
(scale_bbs_frequencies): Fix comment typo.
(can_duplicate_loop_p): Use can_copy_bbs_p.
(duplicate_loop_to_header_edge): Simplify by using copy_bbs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68906 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-7-03 Devang Patel <dpatel@apple.com>
dpatel [Thu, 3 Jul 2003 23:17:53 +0000 (23:17 +0000)]
2003-7-03  Devang Patel <dpatel@apple.com>

        * c-opts.c (c_common_parse_file): Remove extra
        debug_hooks->start_source_file call.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68905 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * misc.c (gnat_argv): Revert last change.
kraai [Thu, 3 Jul 2003 21:49:54 +0000 (21:49 +0000)]
* misc.c (gnat_argv): Revert last change.
(gnat_handle_option, gnat_init_options): Copy arguments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68904 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * real.c (real_trunc, real_floor, real_ceil): New functions
sayle [Thu, 3 Jul 2003 21:38:55 +0000 (21:38 +0000)]
* real.c (real_trunc, real_floor, real_ceil): New functions
to implement trunc, floor and ceil respectively.
* real.h (real_trunc, real_floor, real_ceil): Prototype here.
* builtins.c (integer_valued_real_p): New function to test if
a floating point expression has an integer valued result.
(fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
foo(x) where foo is an integer rounding function.  Similarly,
optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
(double)(int)x when both foo and bar are integer rounding
functions and we don't need to honor errno.
(fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
New functions to fold trunc, floor and ceil.
(fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
to fold BUILT_IN_CEIL*.
* fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
the remaining integer rounding functions.

* gcc.dg/builtins-25.c: New testcase.
* gcc.dg/builtins-26.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68903 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gcc.dg/compat/vector-defs.h: New file.
janis [Thu, 3 Jul 2003 20:37:42 +0000 (20:37 +0000)]
* gcc.dg/compat/vector-defs.h: New file.
* gcc.dg/compat/vector-setup.h: New file.
* gcc.dg/compat/vector-check.h: New file.
* gcc.dg/compat/vector-1_main.c: New file.
* gcc.dg/compat/vector-1_x.c: New file.
* gcc.dg/compat/vector-1_y.c: New file.
* gcc.dg/compat/vector-2_main.c: New file.
* gcc.dg/compat/vector-2_x.c: New file.
* gcc.dg/compat/vector-2_y.c: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68902 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gcc.dg/compat/fnptr-by-value-1_main.c: New file.
janis [Thu, 3 Jul 2003 20:15:48 +0000 (20:15 +0000)]
* gcc.dg/compat/fnptr-by-value-1_main.c: New file.
* gcc.dg/compat/fnptr-by-value-1_x.c: New file.
* gcc.dg/compat/fnptr-by-value-1_y.c: New file.
* gcc.dg/compat/struct-align-1.h: New file.
* gcc.dg/compat/struct-align-1_main.c: New file.
* gcc.dg/compat/struct-align-1_x.c: New file.
* gcc.dg/compat/struct-align-1_y.c: New file.
* gcc.dg/compat/struct-align-2.h: New file.
* gcc.dg/compat/struct-align-2_main.c: New file.
* gcc.dg/compat/struct-align-2_x.c: New file.
* gcc.dg/compat/struct-align-2_y.c: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68901 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/sparc/sparc.c (function_arg_partial_nregs): Use
ebotcazou [Thu, 3 Jul 2003 18:49:50 +0000 (18:49 +0000)]
* config/sparc/sparc.c (function_arg_partial_nregs): Use
SPARC_INT_ARG_MAX to determine where to split unnamed
complex FP arguments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68900 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
hubicka [Thu, 3 Jul 2003 18:40:29 +0000 (18:40 +0000)]
* basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
* cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
(merge_blocks_move_predecessor_nojumps,
 merge_blocks_move_successor_nojumps): Use merge_blocks.
(try_optimize_cfg): Use merge_blocks_move.
* cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
(merge_blocks_nomove): Rename to rtl_merge_blocks.
(cfg_layout_create_basic_block): New.
(rtl_can_merge_blocks): New.
(cfg_layout_split_block): Do not alloc aux by hand.
* cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
merge_blocks.
(create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
* cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
* cfgloopmanip.c (loop_split_edge_with): Likewise.
* ifcvt.c (merge_if_block): Use merge_blocks_nomove.

* basic-block.h (basic_block_def): Add field 'rbi'.
* bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
* cfg.c (entry_exit_blocks): Add new field.
* cfglayout.c: Include alloc-pool.h;
(cfg_layout_pool): New.
(record_effective_endpoints, fixup_reorder_chain,
fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
of rbi.
(cfg_layout_initialize_rbi): New function.
(cfg_layout_initialize): Use it.
(cfg_layout_finalize): Clear rbi fields.
* cfglayout.h (RBI): Kill.
(cfg_layout_initialize_rbi): Declare.
* cfgloopmanip.c (copy_bbs): Use rbi.
(record_exit_edges): Likewise.
(duplicate_loop_to_header_edge): Likewise.
* cfgrtl.c (cfg_layout_create_basic_block): Use
cfg_layout_initialize_rbi.
(cfg_layout_split_block): Use rbi.
(cfg_layout_delete_block): Likewise.
* loop-init.c (loop_optimizer_finalize): Likewise.
* loop-unswitch.c (unswitch_loop): Likewise.
* tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.

* cfgrtl.c: Update comments.
(try_redirect_by_replacing_jump): New argument.
(redirect_branch_edge): Break out from ...
(rtl_redirect_edge_and_branch): ... this one.
(update_cfg_after_block_merging): Break out from ...
(rtl_merge_blocks): ... this one.
(cfg_layout_split_edge): New.
(cfg_layout_merge_blocks): New.
(cfg_layout_can_merge_blocks_p): New.
(cfg_layout_redirect_edge_and_branch): Reorganize.
(cfg_layout_rtl_cfg_hooks): Fill in.
(cfg_layout_delete_block): Kill barriers.
* cfganal.c (can_fallthru): Deal with exit blocks
* cfglayout.c (cfg_layout_function_header): New function
(record_effective_endpoints): Record function header.
(fixup_reorder_chain): Fixup dead jumptables; place header

* basic-block.h (CLEANUP_CFGLAYOUT): New flag.
* bb-reorder.c (cfg_layout_initialize): Update call.
* cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
edges in cfglayout mode.
* cfglayout.c (cleanup_unconditional_jumps): Kill.
(cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
* cfglayout.h (cfg_layout_initialize): Update prototype.
* cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
* cfgloopmanip.c (loop_split_edge_with): Use split_edge.
* flow.c (propagate_block): Do not crash when basic block ends
by first insn in the chain.
* loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
do loop discovery.
* tracer.c (tracer): Update call of cfg_layout_initialize.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68899 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gcc.dg/compat/compat-common.h (DEBUG_FINI): New.
janis [Thu, 3 Jul 2003 18:31:59 +0000 (18:31 +0000)]
* gcc.dg/compat/compat-common.h (DEBUG_FINI): New.
* gcc.dg/compat/scalar-by-value-1_x.c: Use it.
* gcc.dg/compat/scalar-by-value-2_x.c: Ditto.
* gcc.dg/compat/scalar-by-value-3_x.c: Ditto.
* gcc.dg/compat/scalar-by-value-4_x.c: Ditto.
* gcc.dg/compat/scalar-return-1_x.c: Ditto.
* gcc.dg/compat/scalar-return-2_x.c: Ditto.
* gcc.dg/compat/scalar-return-3_x.c: Ditto.
* gcc.dg/compat/scalar-return-4_x.c: Ditto.
* gcc.dg/compat/struct-by-value-10_x.c: Ditto.
* gcc.dg/compat/struct-by-value-11_x.c: Ditto.
* gcc.dg/compat/struct-by-value-12_x.c: Ditto.
* gcc.dg/compat/struct-by-value-13_x.c: Ditto.
* gcc.dg/compat/struct-by-value-14_x.c: Ditto.
* gcc.dg/compat/struct-by-value-15_x.c: Ditto.
* gcc.dg/compat/struct-by-value-16_x.c: Ditto.
* gcc.dg/compat/struct-by-value-17_x.c: Ditto.
* gcc.dg/compat/struct-by-value-18_x.c: Ditto.
* gcc.dg/compat/struct-by-value-2_x.c: Ditto.
* gcc.dg/compat/struct-by-value-3_x.c: Ditto.
* gcc.dg/compat/struct-by-value-4_x.c: Ditto.
* gcc.dg/compat/struct-by-value-5_x.c: Ditto.
* gcc.dg/compat/struct-by-value-6_x.c: Ditto.
* gcc.dg/compat/struct-by-value-7_x.c: Ditto.
* gcc.dg/compat/struct-by-value-8_x.c: Ditto.
* gcc.dg/compat/struct-by-value-9_x.c: Ditto.
* gcc.dg/compat/struct-return-10_x.c: Ditto.
* gcc.dg/compat/struct-return-2_x.c: Ditto.
* gcc.dg/compat/struct-return-3_x.c: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68898 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * Makefile.in: Use dependency variables in lieu of explicit
ghazi [Thu, 3 Jul 2003 18:22:27 +0000 (18:22 +0000)]
* Makefile.in: Use dependency variables in lieu of explicit
files throughout.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68896 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * call.c (build_scoped_method_call): Use convert_to_void.
mmitchel [Thu, 3 Jul 2003 18:13:44 +0000 (18:13 +0000)]
* call.c (build_scoped_method_call): Use convert_to_void.
(build_method_call): Likewise.
* class.c (check_field_decls): Remove dead code.
* cvt.c (convert_from_reference): Remove OFFSET_TYPE handling.
* decl2.c (grok_array_decl): Remove dead code.
(arg_assoc_type): Avoid relying on POINTER_TYPE over OFFSET_TYPE
as pointer-to-member representation.
* init.c (build_offset_ref): Tidy.
(build_vec_delete_1): Use convert_to_void.
* mangle.c (write_type): Avoid relying on POINTER_TYPE over OFFSET_TYPE
as pointer-to-member representation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68895 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gcc.dg/i386-call-1.c: New test.
ebotcazou [Thu, 3 Jul 2003 17:57:45 +0000 (17:57 +0000)]
* gcc.dg/i386-call-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68892 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
steven [Thu, 3 Jul 2003 17:03:21 +0000 (17:03 +0000)]
2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>

* rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
* tree.h: ...to here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68890 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/s390/2064.md: Fix comment typos.
kazu [Thu, 3 Jul 2003 16:25:52 +0000 (16:25 +0000)]
* config/s390/2064.md: Fix comment typos.
* config/s390/2084.md: Likewise.
* config/s390/s390.c: Likewise.
* config/s390/s390.md: Likewise.
* config/sh/sh.c: Likewise.
* config/sh/sh.h: Likewise.
* config/sh/sh.md: Likewise.
* config/sparc/sparc.c: Likewise.
* config/sparc/sparc.h: Likewise.
* config/sparc/sparc.md: Likewise.
* config/stormy16/stormy16.c: Likewise.
* config/stormy16/stormy16.h: Likewise.
* config/stormy16/stormy-abi: Fix a typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68887 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agocp:
nathan [Thu, 3 Jul 2003 16:10:52 +0000 (16:10 +0000)]
cp:
PR c++/9162
* decl.c (grokdeclarator): Return friend decls, not
void_type_node.
* decl2.c (grokfield): Alter friend decl check.
* parser.c (struct cp_parser): Document default_arg chain on
unparsed_functions_queue.
(cp_parser_save_default_args): New.
(cp_parser_init_declarator, cp_parser_function_definition,
cp_parser_member_declaration): Call it.
(cp_parser_class_specifier): Remove unused variable. Alter
processing of unparsed_functions_queue.
testsuite:
PR c++/9162
* g++.dg/parse/defarg4.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68886 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
dje [Thu, 3 Jul 2003 15:11:05 +0000 (15:11 +0000)]
2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>

        * Makefile.in (ifcvt.o): Depend on OPTABS_H.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68885 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * testsuite/22_locale/num_put/put/char/7.cc: Guard with
dje [Thu, 3 Jul 2003 14:20:29 +0000 (14:20 +0000)]
    * testsuite/22_locale/num_put/put/char/7.cc: Guard with
        _GLIBCPP_USE_WCHAR_T.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68883 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/mips/mips.h (save_argv): Delete.
ghazi [Thu, 3 Jul 2003 13:24:04 +0000 (13:24 +0000)]
* config/mips/mips.h (save_argv): Delete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68882 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * class.c (add_method, check_field_decl): Fix format specifier.
ghazi [Thu, 3 Jul 2003 13:16:01 +0000 (13:16 +0000)]
* class.c (add_method, check_field_decl): Fix format specifier.
* decl.c (duplicate_decls, pushdecl, check_goto,
fixup_anonymous_aggr, maybe_commonize_var, grokdeclarator,
start_enum): Likewise.
* decl2.c (ambiguous_decl): Likewise.
* pt.c (redeclare_class_template): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68878 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR target/10700
sayle [Thu, 3 Jul 2003 13:08:10 +0000 (13:08 +0000)]
PR target/10700
* fold-const.c (extract_muldiv_1): There's nothing that can be done
if the expression is a SAVE_EXPR.

* gcc.c-torture/compile/20030703-1.c: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68877 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/m32r/m32r.c: Fix comment typos.
kazu [Thu, 3 Jul 2003 12:34:09 +0000 (12:34 +0000)]
* config/m32r/m32r.c: Fix comment typos.
* config/m68hc11/m68hc11.c: Likewise.
* config/m68hc11/m68hc11.h: Likewise.
* config/m68k/m68k.c: Likewise.
* config/mcore/mcore.c: Likewise.
* config/mcore/mcore.h: Likewise.
* config/mcore/mcore.md: Likewise.
* config/mips/mips.c: Likewise.
* config/mips/mips.h: Likewise.
* config/mips/mips.md: Likewise.
* config/mips/netbsd.h: Likewise.
* config/mn10300/mn10300.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68876 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * dbxout.c (pending_bincls): Move decl down inside
schwab [Thu, 3 Jul 2003 10:18:18 +0000 (10:18 +0000)]
* dbxout.c (pending_bincls): Move decl down inside
DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68875 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * rtl.h (NOTE_DATA): Refer to whole union.
nathan [Thu, 3 Jul 2003 09:52:26 +0000 (09:52 +0000)]
* rtl.h (NOTE_DATA): Refer to whole union.
* emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68874 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * g++.dg/template/local3.C: Remove extra semicolon.
mmitchel [Thu, 3 Jul 2003 08:10:54 +0000 (08:10 +0000)]
* g++.dg/template/local3.C: Remove extra semicolon.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68872 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR optimization/11381
ebotcazou [Thu, 3 Jul 2003 07:30:03 +0000 (07:30 +0000)]
PR optimization/11381
* simplify-rtx.c (simplify_relational_operation): Check that
two equal operands have no side-effects before simplifying
the comparison.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68869 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * expr.c (do_store_flag): Remove special case folding for
law [Thu, 3 Jul 2003 05:42:57 +0000 (05:42 +0000)]
* expr.c (do_store_flag): Remove special case folding for
single bit tests.  Instead call back into the commonized folder
routine.
* fold-const.c (fold_single_bit_test): New function, mostly
extracted from do_store_flag, with an additional case extracted
from fold.
(fold): Call fold_single_bit_test appropriately.
* tree.h (fold_single_bit_test): Prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68867 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * misc.c (save_argv): Make const.
neil [Thu, 3 Jul 2003 05:37:36 +0000 (05:37 +0000)]
* misc.c (save_argv): Make const.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68866 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gcse.c: Fix misspelling.
kraai [Thu, 3 Jul 2003 05:26:31 +0000 (05:26 +0000)]
* gcse.c: Fix misspelling.
* line-map.c: Likewise.
* config/dsp16xx/dsp16xx.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68865 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * system.h: Include filenames.h.
zack [Thu, 3 Jul 2003 04:24:01 +0000 (04:24 +0000)]
* system.h: Include filenames.h.
(IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
(DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
define based on HAVE_DOS_BASED_FILE_SYSTEM.
* config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
* config/i386/xm-mingw32.h: Don't define
HAVE_DOS_BASED_FILE_SYSTEM,
DIR_SEPARATOR, or DIR_SEPARATOR_2.
* doc/hostconfig.texi: Update to match.

* cppfiles.c, gcc.c, gensupport.c, protoize.c,
config/i386/cygwin.h:
Use IS_ABSOLUTE_PATH throughout.
* gcc.c (DIR_UP): Delete, unused.
* protoize.c (IS_SAME_PATH): Define in terms of
FILENAME_CMP.
(is_abspath): Delete.
java:
* jcf-path.c: Don't default-define PATH_SEPARATOR nor
DIR_SEPARATOR.
Use FILENAME_CMP.
* jcf-write.c: Don't default-define DIR_SEPARATOR.
* jcf.h: Delete COMPARE_FILENAMES definition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68863 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-02 Danny Smith <dannysmith@users.source.forge.net>
zack [Thu, 3 Jul 2003 04:21:13 +0000 (04:21 +0000)]
2003-07-02  Danny Smith  <dannysmith@users.source.forge.net>

* pex-win32.c (fix_argv): Ensure that the executable pathname
uses Win32 backslashes.
(pexecute): Cast away constness when assigning *errmsg_arg.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68862 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoDaily bump.
gccadmin [Thu, 3 Jul 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68860 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/i386/emmintrin.h: Fix comment typos.
kazu [Wed, 2 Jul 2003 21:33:54 +0000 (21:33 +0000)]
* config/i386/emmintrin.h: Fix comment typos.
* config/i386/i386.c: Likewise.
* config/i386/i386.h: Likewise.
* config/i386/sco5.h: Likewise.
* config/ia64/ia64.c: Likewise.
* config/ia64/itanium2.md: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68857 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoFix a typo.
bangerth [Wed, 2 Jul 2003 21:32:58 +0000 (21:32 +0000)]
Fix a typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68856 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
hjl [Wed, 2 Jul 2003 21:28:03 +0000 (21:28 +0000)]
2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>

* dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
DBX_USE_BINCL.
(emit_bincl_stab): Same.
(emit_pending_bincls): Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68855 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/h8300/h8300.c (compute_mov_length): Fix the length of
kazu [Wed, 2 Jul 2003 20:48:04 +0000 (20:48 +0000)]
* config/h8300/h8300.c (compute_mov_length): Fix the length of
loading CONST0_RTX (SFmode).
* config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
'G' to CONST0_RTX (SFmode).
* config/h8300/h8300.md (movsf_h8300): Change the first
constraint to 'G'.
(movsf_h8300h): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68854 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * misc.c (save_argc, save_argv): Keep non-static!
neil [Wed, 2 Jul 2003 20:40:41 +0000 (20:40 +0000)]
* misc.c (save_argc, save_argv): Keep non-static!

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68853 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * Make-lang.in: Use C_COMMON_H
neil [Wed, 2 Jul 2003 20:29:06 +0000 (20:29 +0000)]
* Make-lang.in: Use C_COMMON_H

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68852 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * c-common.h (c_common_init_options): New prototype.
neil [Wed, 2 Jul 2003 20:15:46 +0000 (20:15 +0000)]
* c-common.h (c_common_init_options): New prototype.
* c-opts.c (deferred_size): Remove.
(defer_opt): Array is now pre-allocated.
(c_common_init_options): Pre-allocate deferred_opts.  Make
lang_flags unsigned.
(push_command_line_options): Free deferred_opts.
* hooks.c (hook_uint_uint_constcharptrptr_0): New.
* hooks.h (hook_uint_uint_constcharptrptr_0): New.
* langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
* langhooks.h (struct lang_hooks): New prototype for init_options.
* main.c (main): Cast argv.
* opts.c (handle_option, handle_options): Update prototypes.
(decode_options): save_argc, save_argv are not global.  Constify.
* opts.h (decode_options): New prototype.
* toplev.c (general_init): New protoype.
(save_argv): Make static.
(save_argc): Remove.
(print_switch_values, general_init): Constify.
(toplev_main): Save argv.
* toplev.h (toplev_main): Update prototype.
(save_argc, save_argv): Remove.
ada:
* misc.c (save_argc, save_argv): Make static.
(gnat_init_options): New prototype.
(gnat_init_options): Update.
f:
* top.c (ffe_init_options): Update prototype.
* top.h (ffe_init_options): Update prototype.
java:
* lang.c (java_init_options): Update prototype.
treelang:
* tree1.c (treelang_init_options): Update prototype.
* treelang.h (treelang_init_options): Update prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68850 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-02 Paolo Carlini <pcarlini@unitus.it>
paolo [Wed, 2 Jul 2003 19:36:40 +0000 (19:36 +0000)]
2003-07-02  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/basic_string.tcc (_M_replace_aux): Constify
__n1 and __off1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68849 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
dje [Wed, 2 Jul 2003 17:50:37 +0000 (17:50 +0000)]
    * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
        (emit_bincl_stab): Same.
        (emit_pending_bincls): Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68848 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR java/9532
neroden [Wed, 2 Jul 2003 17:20:54 +0000 (17:20 +0000)]
PR java/9532
* jartool.c (add_to_jar): Return 1 on failure to open file.
Split out -C case to:
* jartool.c (add_to_jar_with_dir): New function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68847 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR c++/11072
nathan [Wed, 2 Jul 2003 14:30:53 +0000 (14:30 +0000)]
PR c++/11072
* ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
testsuite:
PR c++/11072
* g++.dg/other/offsetof2.C: XFAIL.
* g++.dg/other/offsetof5.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68831 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
schwab [Wed, 2 Jul 2003 11:40:12 +0000 (11:40 +0000)]
* dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68829 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-02 Paolo Carlini <pcarlini@unitus.it>
paolo [Wed, 2 Jul 2003 10:37:33 +0000 (10:37 +0000)]
2003-07-02  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/stl_bvector.h: Fully qualify standard
functions with std::, thus avoiding Koenig lookup.
* include/bits/stl_construct.h: Likewise.
* include/bits/stl_deque.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68828 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-02 Paolo Carlini <pcarlini@unitus.it>
paolo [Wed, 2 Jul 2003 10:35:14 +0000 (10:35 +0000)]
2003-07-02  Paolo Carlini  <pcarlini@unitus.it>

* testsuite/22_locale/num_put/put/char/7.cc: Include
<testsuite_hooks.h>, tweak.
* testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68827 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoActually remove iris[34].h.
ro [Wed, 2 Jul 2003 10:30:50 +0000 (10:30 +0000)]
Actually remove iris[34].h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68826 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agocp:
nathan [Wed, 2 Jul 2003 09:41:52 +0000 (09:41 +0000)]
cp:
PR c++/10219
* pt.c (type_unification_real): Don't unify exprs of error type.
* tree.c (error_type): Don't die on error_type.
testsuite:
PR c++/10219
* g++.dg/template/error1.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68825 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agocp:
nathan [Wed, 2 Jul 2003 09:36:20 +0000 (09:36 +0000)]
cp:
PR c++/9779
* decl2.c (arg_assoc_class): Don't die on NULL type.
* typeck.c (type_unknown_p): Don't die on untyped expressions.
testsuite:
PR c++/9779
* g++.dg/template/dependent-expr1.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68824 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR optimization/11210
ebotcazou [Wed, 2 Jul 2003 07:41:07 +0000 (07:41 +0000)]
PR optimization/11210
* expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
about the behaviour with regard to bitfields.
* fold-const (decode_field_reference): Record outermost type in
case the expression is a NOP. Strip all NOPs. Set the signedness
to that of the outermost type (if any) when the bitsize is equal
to the size of the type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68823 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
rsandifo [Wed, 2 Jul 2003 07:36:04 +0000 (07:36 +0000)]
* config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
(addsi3_internal, adddi3, adddi3_internal_2): Likewise.
(adddi3_internal_3, addsi3_internal_2): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68822 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/mips/mips.c (machine_function): Add new fields:
rsandifo [Wed, 2 Jul 2003 07:34:27 +0000 (07:34 +0000)]
* config/mips/mips.c (machine_function): Add new fields:
ignore_hazard_length_p and all_noreorder_p.
(mips_flag_delayed_branch): New variable.
(override_options): Treat '/' as an operand punctuation character.
Set up mips_flag_delayed_branch.
(print_operand): Handle '/'.
(mips_output_function_prologue): Put the whole function in
.set noreorder and .set nomacro if all_noreorder_p is true.
(mips_output_function_epilogue): End the noreorder/nomacro sequence.
(mips16_optimize_gp): Remove "first insn" parameter.
(mips16_lay_out_constants): New function, split out from mips_reorg.
(mips_avoid_hazard, mips_avoid_hazards): New functions.
(mips_reorg): For mips16 code, call mips16_lay_out_constant
and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
do delayed-branch scheduling followed by hazard detection.
(mips_adjust_insn_length): Only account for hazards if
!ignore_hazard_length_p.
(mips_output_load_label): Add a nop to the o32 sequence if
the target suffers from load delays.
(mips_output_conditional_branch): Add %/ to the end of branches.
(mips_output_division): Fill the branch delay slot with %#.
* config/mips/mips.md: Remove redundant '%*' from mips16 branch
instructions.  End all other %* branches with %/.
(ffssi2, ffsdi2): Fix lengths.
(truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
(fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
(fix_truncsfsi2_macro): Likewise.
(mov_lwl): Set hazard to "none".
(ashldi3_internal): Fill the branch delay slot with %#.
(ashrdi3_internal, lshrdi3_internal): Likewise.
(exception_receiver): Explicitly set $28.
(hazard_nop): New pattern.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68821 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
hubicka [Wed, 2 Jul 2003 06:14:50 +0000 (06:14 +0000)]
* cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
before calling tree_inlinable_function_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68819 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR c++/6949
mmitchel [Wed, 2 Jul 2003 04:11:30 +0000 (04:11 +0000)]
PR c++/6949
* decl2.c (grokfield): Create TEMPLATE_DECLs for methods in local
classes.

PR c++/6949
* g++.dg/template/local3.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68818 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-01 Phil Edwards <pme@gcc.gnu.org>
pme [Wed, 2 Jul 2003 01:40:59 +0000 (01:40 +0000)]
2003-07-01  Phil Edwards  <pme@gcc.gnu.org>

* testsuite/Makefile.am (AM_MAKEFLAGS):  Set to -j1 (affects
check* targets, but not libs/programs).
* testsuite/Makefile.in:  Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68813 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
ro [Wed, 2 Jul 2003 01:30:10 +0000 (01:30 +0000)]
* fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
<internal/stdio_core.h> too.
(stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
<internal/wchar_core.h> too.
Substitute va_list uses in inline definition.
* fixinc/fixincl.x: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68811 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * error.c (locate_error): %P takes an `int', not a `tree'.
ghazi [Wed, 2 Jul 2003 01:11:21 +0000 (01:11 +0000)]
* error.c (locate_error): %P takes an `int', not a `tree'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68809 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
ro [Wed, 2 Jul 2003 00:21:56 +0000 (00:21 +0000)]
* config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
Undef before redefinition.
(LABEL_AFTER_LOC): Likewise.
(DEFAULT_SIGNED_CHAR): Likewise.
(ASM_OUTPUT_ASCII): Moved here from iris4.h.
Fix IRIX spelling.

* config/mips/iris3.h: Remove, unused.
* config/mips/iris4.h: Likewise.

* config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.

* config/mips/iris5.h (TARGET_DEFAULT): Move ...
* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
target_cpu_default.

* config/mips/iris5.h: Move explicit includes ...
* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.

* config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
* config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
tm_defines.

* config/mips/iris6.h (TARGET_DEFAULT): Move ...
* config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
target_cpu_default.

* config/mips/iris6.h: Fix IRIX spelling.
(MULTILIB_DEFAULTS): Undef before redefinition.

* config/mips/iris6.h: Move explicit includes ...
* config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68808 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
hubicka [Wed, 2 Jul 2003 00:17:38 +0000 (00:17 +0000)]
* cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
Use next_needed field instead of aux to maintain the queue.
* cgraph.h (cgraph_node): Add next_needed.
(cgraph_varpool_node): Add next_needed; remove aux.
* cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68807 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoDaily bump.
gccadmin [Wed, 2 Jul 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68805 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * cgraphunit.c (cgraph_finalize_function): Set finalized.
hubicka [Wed, 2 Jul 2003 00:14:44 +0000 (00:14 +0000)]
* cgraphunit.c (cgraph_finalize_function): Set finalized.
(cgraph_finalize_function): Do not examine inlinablility.
(cgraph_finalize_compilation_unit): Do it here.
* cgraph.h (cgraph_local_info): Add finalized field.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68803 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
ro [Wed, 2 Jul 2003 00:12:23 +0000 (00:12 +0000)]
* ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
(gt_pch_restore): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68802 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * decl2.c (defer_fn): Set DECL_DEFER_OUTPUT.
hubicka [Wed, 2 Jul 2003 00:12:10 +0000 (00:12 +0000)]
* decl2.c (defer_fn): Set DECL_DEFER_OUTPUT.
(finish-file): Do not process function with DECL_DEFER_OUTPUT clear;
clear DECL_DEFER_OUTPUT once function is processed; avoid flags
massaging.

* cp-tree.h (DECL_NEEDED_P): Support unit-at-a-time
(expand_or_defer_fn): Declare.
(lower_function): Declare.
* decl.c (start_cleanup_fn): Use expand_or_defer_fn.
* decl2.c: Include cgraph.h and varpool.h
(maybe_emit_vtables):  Make explicit instantations as needed.
(mark_member_pointers, lower_function): New functions.
(finish_file): Do unit-at-a-time.
* method.c (synthesize_method): Use expand_or_defer_fn.
* optimize.c (maybe_clone_body): Use expand_or_defer_fn.
* parser.c (cp_parser_function_definition_after_decl): Use
expand_or_defer_fn.
* pt.c (instantiate_decl): Likewise.
* semantics.c: Include cgraph.h
(expand_or_defer_fn): Break out from ...
(expand_body): ... here; deal with unit-at-a-time.
* cp-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68801 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/alpha/alpha.c: Fix comment typos.
kazu [Tue, 1 Jul 2003 23:26:43 +0000 (23:26 +0000)]
* config/alpha/alpha.c: Fix comment typos.
* config/alpha/elf.h: Likewise.
* config/arm/arm.c: Likewise.
* config/arm/arm.h: Likewise.
* config/arm/arm.md: Likewise.
* config/arm/t-arm-coff: Likewise.
* config/arm/t-strongarm-pe: Likewise.
* config/arm/xscale-elf.h: Likewise.
* config/avr/avr.h: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68800 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agotreelang:
neil [Tue, 1 Jul 2003 21:25:52 +0000 (21:25 +0000)]
treelang:
* Make-lang.in: Update.
* tree1.c: Include c-common.h.  Define c_language.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68796 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-01 Roger Sayle <roger@eyesopen.com>
bkoz [Tue, 1 Jul 2003 21:09:11 +0000 (21:09 +0000)]
2003-07-01  Roger Sayle  <roger@eyesopen.com>

* acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
(GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
* aclocal.m4: Regenerate.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68793 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Tue, 1 Jul 2003 20:55:19 +0000 (20:55 +0000)]
2003-07-01  Benjamin Kosnik  <bkoz@redhat.com>

* acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
* aclocal.m4: Regenerated.
* configure: Regenerated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68792 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * filenames.h: New file imported from binutils.
zack [Tue, 1 Jul 2003 20:29:16 +0000 (20:29 +0000)]
* filenames.h: New file imported from binutils.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68791 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * stmt.c (any_pending_cleanups): Further simplification.
law [Tue, 1 Jul 2003 19:45:30 +0000 (19:45 +0000)]
    * stmt.c (any_pending_cleanups): Further simplification.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68789 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
dje [Tue, 1 Jul 2003 19:07:40 +0000 (19:07 +0000)]
    * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
        for MEM case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68788 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-01 Devang Patel <dpatel@apple.com>
dpatel [Tue, 1 Jul 2003 19:04:18 +0000 (19:04 +0000)]
2003-07-01  Devang Patel  <dpatel@apple.com>

        * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
        (binclstatus): New.
        (struct dbx_file): New members - bincl_status, pending_bincl_name and
        prev.
        (pending_bincls): New.
        (dbxout_init): Initialize new dbx_file members.
        (dbxout_start_source_file): Same.
        (emit_bincl_stab): New function.
        (emit_pending_bincls): Same.
        (emit_pending_bincls_if_required): Same.
        (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
        processed.
        (dbxout_begin_block): Emit pending BINCL stabs.
        (dbxout_end_block): Same.
        (dbxout_function_decl): Same.
        (dbxout_continue): Same.
        (dbxout_type): Same.
        (dbxout_class_name_qualifiers): Same.
        (dbxout_symbol): Same.
        (dbxout_symbol_location): Same.
        (dbxout_parms): Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68787 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * call.c (resolve_scoped_fn_name): Return error_mark_node for
mmitchel [Tue, 1 Jul 2003 18:48:36 +0000 (18:48 +0000)]
* call.c (resolve_scoped_fn_name): Return error_mark_node for
erroneous cases.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68786 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * c-semantics.c (genrtl_case_label): Fix format specifier bug.
ghazi [Tue, 1 Jul 2003 18:28:27 +0000 (18:28 +0000)]
* c-semantics.c (genrtl_case_label): Fix format specifier bug.
* cfgrtl.c (rtl_verify_flow_info_1): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68784 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR c++/11149
mmitchel [Tue, 1 Jul 2003 17:36:00 +0000 (17:36 +0000)]
PR c++/11149
* call.c (resolve_scoped_fn_name): Check that the qualifying scope
is a class type.

PR c++/11149
* g++.dg/lookup/scoped6.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68782 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2003-07-01 Paolo Carlini <pcarlini@unitus.it>
paolo [Tue, 1 Jul 2003 17:13:01 +0000 (17:13 +0000)]
2003-07-01  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/11389
* include/bits/fstream.tcc (underflow): For encoding() == 0
don't read more than __buflen chars.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68780 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoAdd missing entry.
aj [Tue, 1 Jul 2003 17:06:12 +0000 (17:06 +0000)]
Add missing entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68779 138bc75d-0d04-0410-961f-82ee72b054a4