gcc.git
17 years agore PR c++/24924 (front end and preprocessor pedantic_errors settings should agree)
Manuel López-Ibáñez [Thu, 15 Mar 2007 22:24:42 +0000 (22:24 +0000)]
re PR c++/24924 (front end and preprocessor pedantic_errors settings should agree)

2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR c++/24924
* c-opts.c (c_common_post_options): Handle C++ post-processing here.
Set also -pedantic-errors by default for the  preprocessor unless
-fpermissive is given.
cp/
* decl.c (cxx_init_decl_processing): Move command-line options
processing to c-opts.c.
testsuite/
* g++.dg/cpp/pedantic-errors.C: New.
* g++.dg/cpp/permissive.C: New.

From-SVN: r122961

17 years agommx1.C: Only use the PIC options for fpic targets.
Richard Sandiford [Thu, 15 Mar 2007 21:27:55 +0000 (21:27 +0000)]
mmx1.C: Only use the PIC options for fpic targets.

gcc/testsuite/
* g++.dg/opt/mmx1.C: Only use the PIC options for fpic targets.
* g++.old-deja/g++.other/store-expr1.C: Require fpic.

From-SVN: r122960

17 years agogcc/testsuite/
Richard Sandiford [Thu, 15 Mar 2007 21:22:59 +0000 (21:22 +0000)]
gcc/testsuite/
* lib/target-supports.exp (check_missing_uclibc_feature)
(check_effective_target_wchar): New procedures.
* gcc.dg/wchar_t-1.c: Require target wchar.
* gcc.dg/wint_t-1.c: Likewise.

From-SVN: r122959

17 years agore PR middle-end/29719 (newlib targets ICEs in expand_builtin_int_roundingfn)
Richard Guenther [Thu, 15 Mar 2007 20:14:49 +0000 (20:14 +0000)]
re PR middle-end/29719 (newlib targets ICEs in expand_builtin_int_roundingfn)

2007-03-15  Richard Guenther  <rguenther@suse.de>

PR middle-end/29719
PR middle-end/31161
* builtins.c (expand_builtin_int_roundingfn): Always fall
back to floor/ceil and its variants even if they may be
not available.
(expand_builtin_cexpi): As a fallback if we
don't have builtins for sincos or cexp create a function
declaration for cexp and expand to a call to that.

From-SVN: r122958

17 years agocfglayout.c (fixup_reorder_chain): Postpone deleting dead jump tables...
Steven Bosscher [Thu, 15 Mar 2007 20:08:29 +0000 (20:08 +0000)]
cfglayout.c (fixup_reorder_chain): Postpone deleting dead jump tables...

* cfglayout.c (fixup_reorder_chain): Postpone deleting dead
jump tables, move the call to delete_dead_jumptables from here...
(cfg_layout_finalize): ...to here.  But rebuild jump labels first.
* cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
don't allow merging of blocks that try_redirect_by_replacing_jump
also does not handle when not optimizing.

From-SVN: r122957

17 years agoptree.c (cxx_print_type): Use formatting markup for integers when printing template...
Douglas Gregor [Thu, 15 Mar 2007 13:51:09 +0000 (13:51 +0000)]
ptree.c (cxx_print_type): Use formatting markup for integers when printing template parameter...

2007-03-15  Douglas Gregor  <doug.gregor@gmail.com>

* ptree.c (cxx_print_type): Use formatting markup for integers
when printing template parameter index/level/orig level.
(cxx_print_xnode): Ditto.
* cp-tree.h (TEMPLATE_PARM_PARAMETER_PACK): Use TREE_LANG_FLAG_0.
(struct template_parm_index_s): Remove the PARAMETER_PACK member.
Make INDEX, LEVEL, and ORIG_LEVEL integers instead of
HOST_WIDE_INTs.
(struct saved_scope): Make X_PROCESSING_TEMPLATE_DECL an int,
rather than a HOST_WIDE_INT.
Turn X_PROCESSING_EXPLICIT_INSTANTIATION, SKIP_EVALUATION, and
NEED_POP_FUNCTION_CONTEXT into bool bitfields; reorder fields for
better bit-packing.
(struct language_function): Make RETURNS_VALUE, RETURNS_NULL,
RETURNS_ABNORMALLY, IN_FUNCTION_TRY_HANDLER, and
IN_BASE_INITIALIZER bool bitfields.
(struct cp_declarator): Make KIND a 4-bit field. Make
PARAMETER_PACK_P a bool bitfield just after KIND.
* pt.c (uses_parameter_packs): Destroy the pointer set.
(make_pack_expansion): Ditto.
(check_for_bare_parameter_packs): Ditto.
* name-lookup.c (push_to_top_level): Make need_pop a bool value.

From-SVN: r122955

17 years agogfortran.h (gfc_option_t): Add flag_backtrace field.
Francois-Xavier Coudert [Thu, 15 Mar 2007 12:39:47 +0000 (13:39 +0100)]
gfortran.h (gfc_option_t): Add flag_backtrace field.

* gfortran.h (gfc_option_t): Add flag_backtrace field.
* lang.opt: Add -fbacktrace option.
* invoke.texi: Document the new option.
* trans-decl.c (gfc_build_builtin_function_decls): Add new
option to the call to set_std.
* options.c (gfc_init_options, gfc_handle_option): Handle the
new option.

* runtime/backtrace.c: New file.
* runtime/environ.c (variable_table): New GFORTRAN_ERROR_BACKTRACE
environment variable.
* runtime/compile_options.c (set_std): Add new argument.
* runtime/main.c (store_exe_path, full_exe_path): New functions.
* runtime/error.c (sys_exit): Add call to show_backtrace.
* libgfortran.h (options_t): New backtrace field.
(store_exe_path, full_exe_path, show_backtrace): New prototypes.
* configure.ac: Add checks for execinfo.h, execvp, pipe, dup2,
close, fdopen, strcasestr, getrlimit, backtrace, backtrace_symbols
and getppid.
* Makefile.am: Add runtime/backtrace.c.
* fmain.c (main): Add call to store_exe_path.
* Makefile.in: Renegerate.
* config.h.in: Renegerate.
* configure: Regenerate.

From-SVN: r122954

17 years agoi386.md (x86_sahf_1): Correctly handle HAVE_AS_IX86_SAHF.
Uros Bizjak [Thu, 15 Mar 2007 10:31:49 +0000 (11:31 +0100)]
i386.md (x86_sahf_1): Correctly handle HAVE_AS_IX86_SAHF.

       * config/i386/i386.md (x86_sahf_1): Correctly handle
       HAVE_AS_IX86_SAHF.

Co-Authored-By: Francois-Xavier Coudert <coudert@clipper.ens.fr>
From-SVN: r122953

17 years agotarget-supports.exp (check_gc_sections_available): Return false for VxWorks targets.
Richard Sandiford [Thu, 15 Mar 2007 09:34:25 +0000 (09:34 +0000)]
target-supports.exp (check_gc_sections_available): Return false for VxWorks targets.

gcc/testsuite/
* lib/target-supports.exp (check_gc_sections_available): Return
false for VxWorks targets.

From-SVN: r122951

17 years agolibstdc++.exp (v3-build_support): If it exists, use env(AR_FOR_TARGET).
Hans-Peter Nilsson [Thu, 15 Mar 2007 09:14:37 +0000 (09:14 +0000)]
libstdc++.exp (v3-build_support): If it exists, use env(AR_FOR_TARGET).

* testsuite/lib/libstdc++.exp (v3-build_support) <ar>: If it
exists, use env(AR_FOR_TARGET).  Log the command.
<ranlib>: Similar.

From-SVN: r122950

17 years agoWconversion2.C: Fix typo.
Dirk Mueller [Thu, 15 Mar 2007 09:11:30 +0000 (09:11 +0000)]
Wconversion2.C: Fix typo.

2007-03-15  Dirk Mueller  <dmueller@suse.de>

       * g++.dg/warn/Wconversion2.C: Fix typo.
       * gcc.dg/if-empty-1.c: Ditto.

From-SVN: r122949

17 years agoassert4.c: Treat VxWorks as a unix target.
Richard Sandiford [Thu, 15 Mar 2007 08:53:42 +0000 (08:53 +0000)]
assert4.c: Treat VxWorks as a unix target.

gcc/testsuite/
* gcc.dg/cpp/assert4.c: Treat VxWorks as a unix target.

From-SVN: r122948

17 years agocmpxchg16b-1.c: Compile for lp64 targets only.
Uros Bizjak [Thu, 15 Mar 2007 08:22:35 +0000 (09:22 +0100)]
cmpxchg16b-1.c: Compile for lp64 targets only.

* gcc.target/i386/cmpxchg16b-1.c: Compile for lp64 targets only.
* gcc.target/i386/pr31167.c: Ditto.

From-SVN: r122947

17 years agore PR target/31167 (ICE wnen using __int128_t on x86_64)
Uros Bizjak [Thu, 15 Mar 2007 07:25:22 +0000 (08:25 +0100)]
re PR target/31167 (ICE wnen using __int128_t on x86_64)

        PR target/31167
        * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
        x86_64_general_operand as operand[2] predicate.  Remove "iF"
        from operand constraints and use "e" constraint instead.
        (*subti3_1, *subti3_1 splitter): Ditto.
        (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
        operand[1] predicate.

testsuite/ChangeLog

       PR target/31167
       * gcc.target/i386/pr31167.c: New test.

From-SVN: r122945

17 years ago[multiple changes]
Paul Thomas [Thu, 15 Mar 2007 06:44:25 +0000 (06:44 +0000)]
[multiple changes]

2007-03-15  Tobias Burnus  <burnus@gcc.gnu.org>
    Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30922
* decl.c (gfc_match_import): If the parent of the current name-
space is null, try looking for an imported symbol in the parent
of the proc_name interface.
* resolve.c (resolve_fl_variable): Do not check for blocking of
host association by a same symbol, if the symbol is in an
interface body.

2007-03-15  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30879
* decl.c (match_data_constant): Before going on to try to match
a name, try to match a structure component.

PR fortran/30870
* resolve.c (resolve_actual_arglist): Do not reject a generic
actual argument if it has a same name specific interface.

PR fortran/31163
* trans-array.c (parse_interface): Do not nullify allocatable
components if the symbol has the saved attribute.

2007-03-15  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30922
* gfortran.dg/import5.f90.f90: New test.

PR fortran/30879
* gfortran.dg/data_components_1.f90: New test.

PR fortran/30870
* gfortran.dg/generic_13.f90: New test.

PR fortran/31163
* gfortran.dg/alloc_comp_basics_5.f90: New test.

From-SVN: r122944

17 years agore PR fortran/31051 ([4.2 Only] gfortran bug with x and t format descriptors.)
Jerry DeLisle [Thu, 15 Mar 2007 01:30:05 +0000 (01:30 +0000)]
re PR fortran/31051 ([4.2 Only] gfortran bug with x and t format descriptors.)

2007-03-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/31051
* gfortran.dg/fmt_t_4.f90: New

From-SVN: r122942

17 years agore PR c++/31165 (Error: symbol `an_empty_string' is already defined)
Andrew Pinski [Thu, 15 Mar 2007 01:27:29 +0000 (01:27 +0000)]
re PR c++/31165 (Error: symbol `an_empty_string' is already defined)

2007-03-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR c++/31165
        * call.c  (convert_default_arg): Instead of copying the node,
        unshare it.
2007-03-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C++/31165
        * g++.dg/other/default7.C: New test.

From-SVN: r122941

17 years agore PR fortran/31051 ([4.2 Only] gfortran bug with x and t format descriptors.)
Jerry DeLisle [Thu, 15 Mar 2007 01:25:27 +0000 (01:25 +0000)]
re PR fortran/31051 ([4.2 Only] gfortran bug with x and t format descriptors.)

2007-03-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/31051
* io/transfer.c (formatted_transfer_scalar): Adjust position for pending
spaces when in writing mode.  Clean up some formatting.

From-SVN: r122940

17 years agoDaily bump.
GCC Administrator [Thu, 15 Mar 2007 00:17:15 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r122938

17 years agotree-loop-linear.c (gather_interchange_stats): For multidimensional arrays...
Sebastian Pop [Wed, 14 Mar 2007 23:23:24 +0000 (00:23 +0100)]
tree-loop-linear.c (gather_interchange_stats): For multidimensional arrays...

* tree-loop-linear.c (gather_interchange_stats): For multidimensional
arrays, multiply the access strides by the size of the sub-array.
* testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.

From-SVN: r122935

17 years agore PR c++/30860 (Should warn about boolean constant false used in pointer context)
Dirk Mueller [Wed, 14 Mar 2007 23:17:03 +0000 (23:17 +0000)]
re PR c++/30860 (Should warn about boolean constant false used in pointer context)

2007-03-15  Dirk Mueller  <dmueller@suse.de>

        PR c++/30860
        * call.c (convert_conversion_warnings): New..
        (convert_like_real): .. factored out from here.
        (convert_conversion_warnings): Add warning about
        false being converted to NULL in argument passing.

        * g++.dg/warn/Wconversion2.C: New.

From-SVN: r122934

17 years agoFix 31018 -- move TARGET_xxx in i386.md to tuning options
Michael Meissner [Wed, 14 Mar 2007 22:36:22 +0000 (22:36 +0000)]
Fix 31018 -- move TARGET_xxx in i386.md to tuning options

From-SVN: r122933

17 years agossp-1.c: New.
Eric Christopher [Wed, 14 Mar 2007 21:11:20 +0000 (21:11 +0000)]
ssp-1.c: New.

2007-03-14  Eric Christopher  <echristo@apple.com>

* gcc.dg/ssp-1.c: New.
        * gcc.dg/ssp-2.c: Ditto.

From-SVN: r122932

17 years agoconfigure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether the configured assembl...
Uros Bizjak [Wed, 14 Mar 2007 21:03:59 +0000 (22:03 +0100)]
configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether the configured assembler supports the sahf mnemonic.

        * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
        the configured assembler supports the sahf mnemonic.
        * configure: Regenerate.
        * config.in: Regenerate.

        * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
        emit "sahf" or ".byte\t0x9e" as asm template.

From-SVN: r122931

17 years agoFix 31018 -- move TARGET_xxx in i386.md to tuning options
Michael Meissner [Wed, 14 Mar 2007 20:02:03 +0000 (20:02 +0000)]
Fix 31018 -- move TARGET_xxx in i386.md to tuning options

From-SVN: r122929

17 years agoc-common.h (empty_body_warning): Rename to empty_if_body_warning.
Dirk Mueller [Wed, 14 Mar 2007 19:33:17 +0000 (19:33 +0000)]
c-common.h (empty_body_warning): Rename to empty_if_body_warning.

2007-03-14  Dirk Mueller  <dmueller@suse.de>

        * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
        * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
        * c-parser.c (c_parser_if_body): Always add an empty statement in case
        of empty body.
        * c-parser.c (c_parser_do_statement): Warn about empty body in
        do/while statement.
        * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
        * doc/invoke.texi (-Wempty-body): Update documentation.

        * cp/semantics.c (c_finish_if_stmt): Call empty_if_body_warning.
        (finish_do_body): Warn about empty body in do/while statement.

        * g++.dg/warn/do-empty.C: New.
        * gcc.dg/do-empty.c: New.
        * gcc.dg/if-empty-1.c: Update.
        * gcc.dg/20001116-1.c: Update.
        * gcc.dg/pr23165.c: Update.

From-SVN: r122928

17 years agore PR libfortran/30690 ([4.2, 4.1 only] Clean up m4 files)
Thomas Koenig [Wed, 14 Mar 2007 19:26:38 +0000 (19:26 +0000)]
re PR libfortran/30690 ([4.2, 4.1 only] Clean up m4 files)

2007-03-14  Thomas Koenig  <Thomas.Koenig@online.de>

PR libfortran/30690
* all.m4: Quote everything, except for m4 macros.
* any.m4: Likewise.
* count.m4: Likewise.
* cshift1.m4: Likewise.
* eoshift1.m4: Likewise.
* eoshift3.m4: Likewise.
* exponent.m4: Likewise.
* fraction.m4: Likewise.
* in_pack.m4: Likewise.
* in_unpack.m4: Likewise.
* matmul.m4: Likewise.
* matmull.m4: Likewise.
* nearest.m4: Likewise.
* pow.m4: Likewise.
* product.m4: Likewise.
* reshape.m4: Likewise.
* rrspacing.m4: Likewise.
* set_exponent.m4: Likewise.
* shape.m4: Likewise.
* spacing.m4: Likewise.
* transpose.m4: Likewise.

From-SVN: r122927

17 years agoclass.c (warn_hidden): Add OPT_Woverloaded_virtual to warning.
Manuel López-Ibáñez [Wed, 14 Mar 2007 18:52:20 +0000 (18:52 +0000)]
class.c (warn_hidden): Add OPT_Woverloaded_virtual to warning.

2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

cp/
* class.c (warn_hidden): Add OPT_Woverloaded_virtual to warning.

From-SVN: r122926

17 years agore PR c/21438 (Warning about division by zero depends on lexical form)
Manuel López-Ibáñez [Wed, 14 Mar 2007 18:37:37 +0000 (18:37 +0000)]
re PR c/21438 (Warning about division by zero depends on lexical form)

2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR c/21438
* c-common.h (warn_for_div_by_zero): Declare.
* c-common.c (warn_for_div_by_zero): Define.
* c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
warning.
cp/
* typeck.c (build_binary_op): Call warn_for_div_zero instead of
warning.

From-SVN: r122925

17 years agoMakefile.in (PREPROCESSOR_DEFINES): Add directory terminators to PREFIX and STANDARD_...
Richard Sandiford [Wed, 14 Mar 2007 16:06:36 +0000 (16:06 +0000)]
Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators to PREFIX and STANDARD_PREFIX.

gcc/
* Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
to PREFIX and STANDARD_PREFIX.

From-SVN: r122924

17 years ago200x-xx-xx Richard Sandiford <richard@codesourcery.com> Phil Edwards <phil@codesource...
Richard Sandiford [Wed, 14 Mar 2007 13:58:21 +0000 (13:58 +0000)]
200x-xx-xx Richard Sandiford <richard@codesourcery.com> Phil Edwards <phil@codesourcery.com>

gcc/
200x-xx-xx  Richard Sandiford  <richard@codesourcery.com>
    Phil Edwards  <phil@codesourcery.com>

* gthr-vxworks.h: Add an extern "C" wrapper for C++.
(__gthread_once_t): Remove busy field for RTPs.
(__GTHREAD_ONCE_INIT): Update accordingly.

Co-Authored-By: Phil Edwards <phil@codesourcery.com>
From-SVN: r122923

17 years agoinvoke.texi: Document VxWorks options.
Richard Sandiford [Wed, 14 Mar 2007 13:58:04 +0000 (13:58 +0000)]
invoke.texi: Document VxWorks options.

gcc/
* doc/invoke.texi: Document VxWorks options.

From-SVN: r122922

17 years agotrans-array.c (gfc_trans_auto_array_allocation): Replace fold(convert()) by fold_conv...
Francois-Xavier Coudert [Wed, 14 Mar 2007 13:31:09 +0000 (14:31 +0100)]
trans-array.c (gfc_trans_auto_array_allocation): Replace fold(convert()) by fold_convert().

* trans-array.c (gfc_trans_auto_array_allocation): Replace
fold(convert()) by fold_convert().
(gfc_duplicate_allocatable): Likewise.
* trans-intrinsic.c (gfc_conv_intrinsic_dot_product): Use
build_int_cst instead of converting an integer_zero_node
to the final type.

From-SVN: r122921

17 years agoMakefile.am (AM_MAKEFLAGS): Pass through mandir.
Jakub Jelinek [Wed, 14 Mar 2007 12:58:23 +0000 (13:58 +0100)]
Makefile.am (AM_MAKEFLAGS): Pass through mandir.

* Makefile.am (AM_MAKEFLAGS): Pass through mandir.
* Makefile.in: Rebuilt.

From-SVN: r122919

17 years agomodule.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.
Jakub Jelinek [Wed, 14 Mar 2007 12:16:24 +0000 (13:16 +0100)]
module.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.

* module.c (mio_typespec): Don't look at ts->cl if not BT_CHARACTER.

* gfortran.dg/module_implicit_conversion.f90: New test.

From-SVN: r122915

17 years agounix.c (regular_file): For ACTION_UNSPECIFIED retry with O_RDONLY even if errno is...
Jakub Jelinek [Wed, 14 Mar 2007 12:14:58 +0000 (13:14 +0100)]
unix.c (regular_file): For ACTION_UNSPECIFIED retry with O_RDONLY even if errno is EROFS.

* io/unix.c (regular_file): For ACTION_UNSPECIFIED retry with
O_RDONLY even if errno is EROFS.

From-SVN: r122914

17 years agolibstdc++.exp (check_v3_target_fileio, [...]): New.
Nathan Sidwell [Wed, 14 Mar 2007 11:37:55 +0000 (11:37 +0000)]
libstdc++.exp (check_v3_target_fileio, [...]): New.

* testsuite/lib/libstdc++.exp (check_v3_target_fileio,
        check_v3_target_time): New.
* testsuite/lib/dg-options.exp (dg-require-fileio,
        dg-require-time): New.
* testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: Use it.
* testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: Use it.
* testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: Use it.
* testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: Use it.
* testsuite/ext/stdio_sync_filebuf/char/1.cc: Use it.
* testsuite/ext/stdio_filebuf/char/2.cc: Use it.
* testsuite/ext/stdio_filebuf/char/10063-1.cc: Use it.
* testsuite/ext/stdio_filebuf/char/10063-2.cc: Use it.
* testsuite/ext/stdio_filebuf/char/10063-3.cc: Use it.
* testsuite/22_locale/time_put/put/char/12439_1.cc: Use it.
* testsuite/22_locale/time_put/put/char/12439_3.cc: Use it.
* testsuite/27_io/basic_ofstream/open/char/1.cc: Use it.
* testsuite/27_io/basic_ofstream/cons/char/2.cc: Use it.
* testsuite/27_io/objects/char/12048-2.cc: Use it.
* testsuite/27_io/objects/char/12048-4.cc: Use it.
* testsuite/27_io/objects/char/12048-1.cc: Use it.
* testsuite/27_io/objects/char/12048-3.cc: Use it.
* testsuite/27_io/objects/char/10.cc: Use it.
* testsuite/27_io/objects/char/12048-5.cc: Use it.
* testsuite/27_io/basic_istream/get/char/2.cc: Use it.
* testsuite/27_io/basic_istream/ignore/char/2.cc: Use it.
* testsuite/27_io/basic_istream/ignore/char/3.cc: Use it.
* testsuite/27_io/basic_istream/getline/char/5.cc: Use it.
* testsuite/27_io/basic_istream/seekg/char/sstream.cc: Use it.
* testsuite/27_io/basic_istream/seekg/char/fstream.cc: Use it.
* testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Use it.
* testsuite/27_io/basic_istream/extractors_other/char/2.cc: Use it.
* testsuite/27_io/basic_istream/tellg/char/sstream.cc: Use it.
* testsuite/27_io/basic_istream/tellg/char/1.cc: Use it.
* testsuite/27_io/basic_istream/tellg/char/fstream.cc: Use it.
* testsuite/27_io/basic_istream/extractors_character/char/4.cc: Use it.
* testsuite/27_io/basic_ostream/inserters_other/char/1.cc: Use it.
* testsuite/27_io/basic_ostream/tellp/char/1.cc: Use it.
* testsuite/27_io/basic_ostream/seekp/char/2346-fstream.cc: Use it.
* testsuite/27_io/basic_ifstream/open/char/1.cc: Use it.
* testsuite/27_io/basic_ifstream/cons/char/1.cc: Use it.
* testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: Use it.
* testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Use it.
* testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: Use it.
* testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Use it.
* testsuite/27_io/basic_filebuf/sgetn/char/3.cc: Use it.
* testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Use it.
* testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Use it.
* testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Use it.
* testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/12790-1.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/12790-2.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/12790-3.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/12790-4.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc: Use it.
* testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc: Use it.
* testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Use it.
* testsuite/27_io/basic_filebuf/in_avail/char/9701-3.cc: Use it.
* testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Use it.
* testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Use it.
* testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Use it.
* testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: Use it.
* testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Use it.
* testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: Use it.
* testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Use it.
* testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: Use it.
* testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: Use it.
* testsuite/27_io/basic_filebuf/sbumpc/char/9825.cc: Use it.
* testsuite/27_io/basic_filebuf/is_open/char/1.cc: Use it.
* testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Use it.
* testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Use it.
* testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: Use it.
* testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: Use it.
* testsuite/27_io/basic_filebuf/open/12790-1.cc: Use it.
* testsuite/27_io/basic_filebuf/open/char/1.cc: Use it.
* testsuite/27_io/basic_filebuf/open/char/2.cc: Use it.
* testsuite/27_io/basic_filebuf/open/char/3.cc: Use it.
* testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Use it.
* testsuite/27_io/basic_filebuf/overflow/char/2.cc: Use it.
* testsuite/27_io/basic_filebuf/overflow/char/9988.cc: Use it.
* testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Use it.
* testsuite/27_io/basic_filebuf/overflow/char/9169.cc: Use it.
* testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: Use it.
* testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Use it.
* testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: Use it.
* testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: Use it.
* testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: Use it.
* testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Use it.
* testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Use it.
* testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: Use it.
* testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: Use it.
* testsuite/27_io/basic_filebuf/close/12790-1.cc: Use it.
* testsuite/27_io/basic_filebuf/close/char/1.cc: Use it.
* testsuite/27_io/basic_filebuf/close/char/12790-1.cc: Use it.
* testsuite/27_io/basic_filebuf/close/char/12790-2.cc: Use it.
* testsuite/27_io/basic_filebuf/close/char/2.cc: Use it.
* testsuite/27_io/basic_filebuf/close/char/12790-3.cc: Use it.
* testsuite/27_io/basic_filebuf/close/char/12790-4.cc: Use it.
* testsuite/27_io/basic_filebuf/close/char/4.cc: Use it.
* testsuite/27_io/basic_filebuf/underflow/10096.cc: Use it.
* testsuite/27_io/basic_filebuf/underflow/char/2.cc: Use it.
* testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: Use it.
* testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Use it.
* testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: Use it.
* testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/12790-1.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/12790-2.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/12790-3.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Use it.
* testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Use it.
* testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Use it.
* testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Use it.
* testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: Use it.
* testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: Use it.
* testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Use it.
* testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: Use it.
* testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Use it.
* testsuite/21_strings/basic_string/inserters_extractors/char/10.cc: Use it.
* testsuite/21_strings/basic_string/inserters_extractors/char/11.cc: Use it.
* testsuite/21_strings/basic_string/inserters_extractors/char/5.cc: Use it.

From-SVN: r122913

17 years agopass59-frag.c (main): Fix casting of arg.
Uros Bizjak [Wed, 14 Mar 2007 07:53:32 +0000 (08:53 +0100)]
pass59-frag.c (main): Fix casting of arg.

        * testsuite/libmudflap.cth/pass59-frag.c (main): Fix casting of arg.

From-SVN: r122911

17 years agoinvoke.texi (i386 and x86-64 Options): Clarify -msahf option.
Uros Bizjak [Wed, 14 Mar 2007 07:47:32 +0000 (08:47 +0100)]
invoke.texi (i386 and x86-64 Options): Clarify -msahf option.

       * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.

From-SVN: r122910

17 years agore PR tree-optimization/30590 (tree-nrv optimization clobbers return variable)
Seongbae Park [Wed, 14 Mar 2007 05:48:35 +0000 (05:48 +0000)]
re PR tree-optimization/30590 (tree-nrv optimization clobbers return variable)

2007-03-13  Seongbae Park <seongbae.park@gmail.com>

PR tree-optimization/30590
* tree-nrv.c (tree_nrv): Check for the partial update of the
return value.

From-SVN: r122909

17 years agoFixed pr-number typo in last ChangeLog entry.
Brooks Moses [Wed, 14 Mar 2007 04:49:11 +0000 (21:49 -0700)]
Fixed pr-number typo in last ChangeLog entry.

From-SVN: r122908

17 years agore PR fortran/30922 (IMPORT fails for same symbol in multiple interface bodies of...
Brooks Moses [Wed, 14 Mar 2007 04:38:47 +0000 (04:38 +0000)]
re PR fortran/30922 (IMPORT fails for same symbol in multiple interface bodies of same interface block)

PR fortran/30922
PR fortran/30948
PR fortran/30953
* intrinsics.texi (CHDIR): Fix argument names, note
that STATUS must be a default integer.
(CTIME): Fix argument names, note that RESULT must
be a default integer.
(EXIT): Note that STATUS must be a default integer.

From-SVN: r122905

17 years agore PR fortran/28068 (Non-standard intrinsics should be documented)
Brooks Moses [Wed, 14 Mar 2007 02:43:27 +0000 (02:43 +0000)]
re PR fortran/28068 (Non-standard intrinsics should be documented)

PR fortran/28068
* intrinsic.texi: General whitespace cleanup, remove
comment about missing intrinsics.
(menu): Add lines for new entries listed below.
(ACOSH): Mention specific function DACOSH, correct
description phrasing.
(ASINH): Mention specific function DASINH, correct
description phrasing.
(ATANH): Mention specific function DATANH, correct
description phrasing.
(COS): Add index entry for CCOS.
(CPU_TIME): Correct "REAL" to "REAL(*)".
(EXP): Add index entry for CEXP.
(INT): Correct argument name to "A".
(INT2): New entry.
(INT8): New entry.
(LONG): New entry.
(MAX): Add index entries for specific variants.
(MCLOCK): New entry.
(MCLOCK8): New entry.
(SECNDS): Adjust to a more standard form.
(SECOND): New entry.
(TIME): Add cross-reference to MCLOCK.
(TIME8): Add cross-reference to MCLOCK8.

From-SVN: r122902

17 years agoflags.h (flag_random_seed): Remove declaration, in favor of...
Alexandre Oliva [Wed, 14 Mar 2007 01:47:33 +0000 (01:47 +0000)]
flags.h (flag_random_seed): Remove declaration, in favor of...

gcc/ChangeLog:
* flags.h (flag_random_seed): Remove declaration, in favor of...
* toplev.h (get_random_seed, set_random_seed): ... these.
* tree.c (get_file_function_name): Use the former.
* opts.c (common_handle_option): Use the latter.
* toplev.c
gcc/cp/ChangeLog:
* cp/repo.c (init_repo): Initialize random_seed saved options.
(finish_repo): Adjust.

From-SVN: r122901

17 years agore PR middle-end/31127 (ICE in cse_find_path, at cse.c:5930)
Alexandre Oliva [Wed, 14 Mar 2007 01:45:39 +0000 (01:45 +0000)]
re PR middle-end/31127 (ICE in cse_find_path, at cse.c:5930)

gcc/ChangeLog:
PR middle-end/31127
* cse.c (cse_find_path): Do not bail out if a basic block that
we already visited now becomes part of a path that starts at a
different basic block.  Just disallow this, to make sure we
visit each basic block at most once.
gcc/testsuite/ChangeLog:
PR middle-end/31127
* gcc.dg/pr31127.c: New.

From-SVN: r122900

17 years agoipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes...
Jan Hubicka [Wed, 14 Mar 2007 01:26:00 +0000 (02:26 +0100)]
ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes...

* ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
when profile esitmate is present, calls with very low frequency are
cold.

From-SVN: r122898

17 years agore PR tree-optimization/30730 (-Wunsafe-loop-optimizations gives too many warnings)
Zdenek Dvorak [Wed, 14 Mar 2007 00:38:34 +0000 (00:38 +0000)]
re PR tree-optimization/30730 (-Wunsafe-loop-optimizations gives too many warnings)

PR tree-optimization/30730
PR tree-optimization/26900
* tree-ssa-loop-niter.c: Include gmp.h.
(bounds): New type.
(mpz_set_double_int, get_type_bounds, mpz_to_double_int,
split_to_var_and_offset, determine_value_range,
bound_difference_of_offsetted_base, refine_bounds_using_guard,
bound_difference, bounds_add, bounds_negate,
number_of_iterations_ne_max, dump_affine_iv): New functions.
(number_of_iterations_ne, number_of_iterations_lt_to_ne,
assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
difference of initial and final value of control iv to validate
results.
(number_of_iterations_cond): Add loop parameter.  Determine bounds
on the difference of the extremes of the control iv.  Add dumps.
(expand_simple_operations): Handle phi nodes.
(simplify_using_initial_conditions): Do not record used conditions.
(number_of_iterations_exit): Pass loop to number_of_iterations_cond.
Do not set additional_info.
(implies_nonnegative_p, implies_ge_p): Removed.
(derive_constant_upper_bound): Do not use parameter `additional'.
(record_estimate): Parameter `additional' removed.  Parameter
`i_bound' added.  Do not call derive_constant_upper_bound.
(record_nonwrapping_iv): Use derive_constant_upper_bound to
bound the number of iterations estimate.
(estimate_numbers_of_iterations_loop): Pass the estimate from
the number of iterations analysis to record_estimate.
* tree.h (multiple_of_p): Declare.
* tree-scalar-evolution.c (expression_expensive_p): Removed.
(scev_const_prop): Do not check expression_expensive_p.
* fold-const.c (multiple_of_p): Exported.
* double-int.c (double_int_mask): Exported.
* double-int.h (double_int_mask): Declare.
* tree-flow.h (struct tree_niter_desc): Removed additional_info
field.  Added max field.

* gcc.dg/tree-ssa/loop-26.c: New test.

From-SVN: r122896

17 years agoDaily bump.
GCC Administrator [Wed, 14 Mar 2007 00:17:13 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r122894

17 years agore PR bootstrap/30899 (build failure with --enable-generated-files-in-srcdir)
Mark Mitchell [Tue, 13 Mar 2007 23:51:07 +0000 (23:51 +0000)]
re PR bootstrap/30899 (build failure with --enable-generated-files-in-srcdir)

PR bootstrap/30899
* Make-lang.in (doc/g++.1): Use $< to specify the location from
which to copy.

From-SVN: r122890

17 years agore PR driver/12448 (-MT / -MQ don't behave as documented.)
David Taylor [Tue, 13 Mar 2007 23:50:42 +0000 (23:50 +0000)]
re PR driver/12448 (-MT / -MQ don't behave as documented.)

2007-03-13  David Taylor  <taylor@candd.org>

PR driver/12448:
* gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
default -MQ.

From-SVN: r122889

17 years agore PR target/31123 (FAIL: gcc.c-torture/execute/builtin-bitops-1.c compilation, ...
John David Anglin [Tue, 13 Mar 2007 23:23:54 +0000 (23:23 +0000)]
re PR target/31123 (FAIL: gcc.c-torture/execute/builtin-bitops-1.c compilation,  -O3 ...)

PR target/31123
Fix ChangeLog entry.

From-SVN: r122887

17 years agopa.md (vdepi_ior): Don't allow zero length deposit.
John David Anglin [Tue, 13 Mar 2007 23:09:08 +0000 (23:09 +0000)]
pa.md (vdepi_ior): Don't allow zero length deposit.

* pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
two unamed patterns.

From-SVN: r122885

17 years agoi386.opt (mcx16, msahf): New options.
Uros Bizjak [Tue, 13 Mar 2007 21:18:33 +0000 (22:18 +0100)]
i386.opt (mcx16, msahf): New options.

        * config/i386/i386.opt (mcx16, msahf): New options.
        * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
        (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.

        * config/i386/driver-i386.c (bit_LAHF_LM): New define.
        (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
        Output -mcx16 and -msahf options when corresponding bit is set.

        * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
        and -msahf options.

testsuite/ChangeLog

        * testsuite/gcc.target/i386/cmpxchg16b-1.c: New test.

From-SVN: r122884

17 years agotuple: Only include <utility> for std::pair, and forward declare reference_wrapper...
Paolo Carlini [Tue, 13 Mar 2007 20:02:59 +0000 (20:02 +0000)]
tuple: Only include <utility> for std::pair, and forward declare reference_wrapper...

2007-03-13  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/tuple: Only include <utility> for std::pair, and
forward declare reference_wrapper; formatting fixes.
* include/tr1/ref_fwd.h: Remove.
* include/tr1/tuple_defs.h: Remove, unused.
* include/Makefile.am: Update.
* include/Makefile.in: Regenerate.
* testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc:
Include <tr1/functional> too.

* include/tr1/tuple: Define tuple_size<tuple<_Elements...> >::value.

From-SVN: r122883

17 years agojava-interp.h (_Jv_InterpClass): Declare friend function _Jv_GetInterpClassSourceFile.
Keith Seitz [Tue, 13 Mar 2007 19:27:13 +0000 (19:27 +0000)]
java-interp.h (_Jv_InterpClass): Declare friend function _Jv_GetInterpClassSourceFile.

        * include/java-interp.h (_Jv_InterpClass): Declare
        friend function _Jv_GetInterpClassSourceFile.
        * java/lang/Class.h (Class): Likewise.
        * java/lang/natClass.cc (_Jv_GetInterpClassSourceFile):
        New function.
        * gnu/classpath/jdwp/natVMVirtualMachine.cc
        (getSourceFile): Implement.

From-SVN: r122882

17 years agoconfigure.ac: Test for assembler tolerance to # 0 "".
Alexandre Oliva [Tue, 13 Mar 2007 07:19:14 +0000 (07:19 +0000)]
configure.ac: Test for assembler tolerance to # 0 "".

* configure.ac: Test for assembler tolerance to # 0 "".
* configure, config.in: Rebuilt.
* final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.

From-SVN: r122879

17 years ago* doc/invoke.texi (Spec Files): Update for '%{,' spec.
Geoffrey Keating [Tue, 13 Mar 2007 07:15:51 +0000 (07:15 +0000)]
* doc/invoke.texi (Spec Files): Update for '%{,' spec.

From-SVN: r122878

17 years agodarwin-fallback.c: Compile file only on powerpc.
Geoffrey Keating [Tue, 13 Mar 2007 07:13:16 +0000 (07:13 +0000)]
darwin-fallback.c: Compile file only on powerpc.

* config/rs6000/darwin-fallback.c: Compile file only on powerpc.
(handle_syscall): Handle direct system calls.
* config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.

From-SVN: r122877

17 years agoMakefile.am (AM_CXXFLAGS): Define ECJ_JAR_FILE.
Thomas Fitzsimmons [Tue, 13 Mar 2007 05:48:03 +0000 (05:48 +0000)]
Makefile.am (AM_CXXFLAGS): Define ECJ_JAR_FILE.

2007-03-13  Thomas Fitzsimmons  <fitzsim@redhat.com>

        * Makefile.am (AM_CXXFLAGS): Define ECJ_JAR_FILE.
        * classpath/configure.ac: Add --with-ecj-jar configure option.
        * classpath/gnu/classpath/Configuration.java.in (ECJ_JAR): New
        field.
        * classpath/INSTALL: Document --with-ecj-jar configure option and
        ecj jar requirement for com.sun.tools.javac support.
        * classpath/tools/Makefile.am: Build decendents of com and sun
        directories.
        * configure.ac: Substitute ECJ_JAR in stub Configuration.java.
        * gnu/classpath/Configuration.java,
        gnu/classpath/natConfiguration.cc (ecj): New method.
        (ECJ_JAR): New field.
        * scripts/makemake.tcl (scan_packages): Add com directory.
        * sources.am (property_files): Add
        classpath/resource/sun/rmi/rmic/messages.properties and
        classpath/resource/com/sun/tools/javac/messages.properties.
        * classpath/resource/com, classpath/resource/com/sun,
        classpath/resource/com/sun/tools,
        classpath/resource/com/sun/tools/javac, classpath/resource/sun,
        classpath/resource/sun/rmi, classpath/resource/sun/rmi/rmic,
        classpath/tools/classes/com, classpath/tools/classes/com/sun,
        classpath/tools/classes/com/sun/javadoc,
        classpath/tools/classes/com/sun/tools,
        classpath/tools/classes/com/sun/tools/doclets,
        classpath/tools/classes/sun, classpath/tools/classes/sun/rmi,
        classpath/tools/classes/sun/rmi/rmic, classpath/tools/com,
        classpath/tools/com/sun, classpath/tools/com/sun/javadoc,
        classpath/tools/com/sun/tools,
        classpath/tools/com/sun/tools/doclets,
        classpath/tools/com/sun/tools/javac, classpath/tools/sun,
        classpath/tools/sun/rmi, classpath/tools/sun/rmi/rmic: New
        directories.
        * classpath/resource/com/sun/tools/javac/messages.properties,
        classpath/resource/sun/rmi/rmic/messages.properties,
        classpath/tools/classes/com/sun/javadoc/ClassDoc.class,
        classpath/tools/classes/com/sun/javadoc/ConstructorDoc.class,
        classpath/tools/classes/com/sun/javadoc/Doc.class,
        classpath/tools/classes/com/sun/javadoc/DocErrorReporter.class,
        classpath/tools/classes/com/sun/javadoc/Doclet.class,
        classpath/tools/classes/com/sun/javadoc/ExecutableMemberDoc.class,
        classpath/tools/classes/com/sun/javadoc/FieldDoc.class,
        classpath/tools/classes/com/sun/javadoc/MemberDoc.class,
        classpath/tools/classes/com/sun/javadoc/MethodDoc.class,
        classpath/tools/classes/com/sun/javadoc/PackageDoc.class,
        classpath/tools/classes/com/sun/javadoc/ParamTag.class,
        classpath/tools/classes/com/sun/javadoc/Parameter.class,
        classpath/tools/classes/com/sun/javadoc/ProgramElementDoc.class,
        classpath/tools/classes/com/sun/javadoc/RootDoc.class,
        classpath/tools/classes/com/sun/javadoc/SeeTag.class,
        classpath/tools/classes/com/sun/javadoc/SerialFieldTag.class,
        classpath/tools/classes/com/sun/javadoc/SourcePosition.class,
        classpath/tools/classes/com/sun/javadoc/Tag.class,
        classpath/tools/classes/com/sun/javadoc/ThrowsTag.class,
        classpath/tools/classes/com/sun/javadoc/Type.class,
        classpath/tools/classes/com/sun/javadoc/TypeVariable.class,
        classpath/tools/classes/com/sun/tools/doclets/Taglet.class,
        classpath/tools/classes/sun/rmi/rmic/Main.class,
        classpath/tools/classes/sun/rmi/rmic/Messages.class,
        classpath/tools/com/sun/javadoc/ClassDoc.java,
        classpath/tools/com/sun/javadoc/ConstructorDoc.java,
        classpath/tools/com/sun/javadoc/Doc.java,
        classpath/tools/com/sun/javadoc/DocErrorReporter.java,
        classpath/tools/com/sun/javadoc/Doclet.java,
        classpath/tools/com/sun/javadoc/ExecutableMemberDoc.java,
        classpath/tools/com/sun/javadoc/FieldDoc.java,
        classpath/tools/com/sun/javadoc/MemberDoc.java,
        classpath/tools/com/sun/javadoc/MethodDoc.java,
        classpath/tools/com/sun/javadoc/PackageDoc.java,
        classpath/tools/com/sun/javadoc/ParamTag.java,
        classpath/tools/com/sun/javadoc/Parameter.java,
        classpath/tools/com/sun/javadoc/ProgramElementDoc.java,
        classpath/tools/com/sun/javadoc/RootDoc.java,
        classpath/tools/com/sun/javadoc/SeeTag.java,
        classpath/tools/com/sun/javadoc/SerialFieldTag.java,
        classpath/tools/com/sun/javadoc/SourcePosition.java,
        classpath/tools/com/sun/javadoc/Tag.java,
        classpath/tools/com/sun/javadoc/ThrowsTag.java,
        classpath/tools/com/sun/javadoc/Type.java,
        classpath/tools/com/sun/javadoc/TypeVariable.java,
        classpath/tools/com/sun/tools/doclets/Taglet.java,
        classpath/tools/com/sun/tools/javac/Main.java,
        classpath/tools/com/sun/tools/javac/Messages.java,
        classpath/tools/sun/rmi/rmic/Main.java,
        classpath/tools/sun/rmi/rmic/Messages.java: New files.
        * Makefile.in, classpath/Makefile.in, classpath/configure,
        classpath/doc/Makefile.in, classpath/doc/api/Makefile.in,
        classpath/examples/Makefile.in, classpath/external/Makefile.in,
        classpath/external/jsr166/Makefile.in,
        classpath/external/relaxngDatatype/Makefile.in,
        classpath/external/sax/Makefile.in,
        classpath/external/w3c_dom/Makefile.in,
        classpath/include/Makefile.in, classpath/include/config.h.in,
        classpath/lib/Makefile.in,
        classpath/lib/gnu/classpath/Configuration.class,
        classpath/native/Makefile.in, classpath/native/fdlibm/Makefile.in,
        classpath/native/jawt/Makefile.in,
        classpath/native/jni/Makefile.in,
        classpath/native/jni/classpath/Makefile.in,
        classpath/native/jni/gconf-peer/Makefile.in,
        classpath/native/jni/gtk-peer/Makefile.in,
        classpath/native/jni/java-io/Makefile.in,
        classpath/native/jni/java-lang/Makefile.in,
        classpath/native/jni/java-net/Makefile.in,
        classpath/native/jni/java-nio/Makefile.in,
        classpath/native/jni/java-util/Makefile.in,
        classpath/native/jni/midi-alsa/Makefile.in,
        classpath/native/jni/midi-dssi/Makefile.in,
        classpath/native/jni/native-lib/Makefile.in,
        classpath/native/jni/qt-peer/Makefile.in,
        classpath/native/jni/xmlj/Makefile.in,
        classpath/native/plugin/Makefile.in,
        classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
        classpath/tools/Makefile.in, configure,
        gnu/classpath/Configuration.h: Regenerate.

From-SVN: r122876

17 years agoDaily bump.
GCC Administrator [Tue, 13 Mar 2007 00:17:33 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r122874

17 years agoc90-vla-1.c: Reflect the change of the error message.
Seongbae Park [Mon, 12 Mar 2007 22:37:51 +0000 (22:37 +0000)]
c90-vla-1.c: Reflect the change of the error message.

2007-03-12  Seongbae Park <seongbae.park@gmail.com>

* gcc.dg/c90-vla-1.c: Reflect the change of the error message.
* gcc.dg/c99-vla-1.c: Likewise.
* g++.dg/ext/vla1.C: Likewise

From-SVN: r122871

17 years agoinvoke.texi: Fix cpp.info cross-reference.
Brooks Moses [Mon, 12 Mar 2007 22:05:07 +0000 (22:05 +0000)]
invoke.texi: Fix cpp.info cross-reference.

* doc/invoke.texi: Fix cpp.info cross-reference.
* doc/passes.texi: Fix gcc.info cross-reference.

From-SVN: r122869

17 years agoregex: Add "boilerplate" implementations.
Stephen M. Webb [Mon, 12 Mar 2007 21:57:51 +0000 (21:57 +0000)]
regex: Add "boilerplate" implementations.

2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>

* include/tr1/regex: Add "boilerplate" implementations.
* testsuite/tr1/7_regular_expressions/regex_traits/wchar_t/
translate_nocase.cc: New.
* testsuite/tr1/7_regular_expressions/regex_traits/wchar_t/
ctor.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex_traits/char/
translate_nocase.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex_traits/char/
ctor.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_ecma.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
default.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_grep.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_extended.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_basic.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_awk.cc: Likewise.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_egrep.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/
range.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/
string_op.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/
string.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/
pstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/
cstring_op.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/
cstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/char/
range.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/char/
string_op.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/char/
string.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/char/
pstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/char/
cstring_op.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/char/
cstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/
range.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/
default.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/
string.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/
pstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/
cstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/
range.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/
default.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/
string.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/
pstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/
cstring.cc: Likewise.
* testsuite/tr1/7_regular_expressions/match_results/ctors/char/
default.cc: Likewise.

From-SVN: r122867

17 years agore PR middle-end/30835 (ICE with -O2 -ftree-loop-linear)
Zdenek Dvorak [Mon, 12 Mar 2007 21:56:12 +0000 (21:56 +0000)]
re PR middle-end/30835 (ICE with -O2 -ftree-loop-linear)

PR tree-optimization/30835
* lambda-code.c (can_convert_to_perfect_nest): Check whether
bb_for_stmt is not NULL before accessing it.

From-SVN: r122866

17 years agogcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for some multilibs.
Joseph Myers [Mon, 12 Mar 2007 21:32:41 +0000 (21:32 +0000)]
gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for some multilibs.

* gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
some multilibs.

From-SVN: r122865

17 years agojvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count as a sigle slot.
Kyle Galloway [Mon, 12 Mar 2007 20:15:25 +0000 (20:15 +0000)]
jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count as a sigle slot.

2007-03-12  Kyle Galloway  <kgallowa@redhat.com>

* jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count
as a sigle slot.

From-SVN: r122864

17 years agojvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count as a sigle slot.
Kyle Galloway [Mon, 12 Mar 2007 20:12:47 +0000 (20:12 +0000)]
jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count as a sigle slot.

2007-03-12  Kyle Galloway  <kgallowa@redhat.com>

* jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count
as a sigle slot.

From-SVN: r122863

17 years agore PR bootstrap/30635 (--enable-stage1-langauges configure option is not documented.)
Brooks Moses [Mon, 12 Mar 2007 20:03:33 +0000 (20:03 +0000)]
re PR bootstrap/30635 (--enable-stage1-langauges configure option is not documented.)

PR 30635
* doc/install.texi: Document --enable-stage1-languages

From-SVN: r122861

17 years agonatString.cc (getBytes (jstring enc)): Fixed the loop for multiple cycles, Code cleanup
Marco Trudel [Mon, 12 Mar 2007 19:48:32 +0000 (20:48 +0100)]
natString.cc (getBytes (jstring enc)): Fixed the loop for multiple cycles, Code cleanup

2007-03-12  Marco Trudel  <mtrudel@gmx.ch>

* java/lang/natString.cc (getBytes (jstring enc)):
Fixed the loop for multiple cycles, Code cleanup

From-SVN: r122859

17 years agotree-pass.h (pass_into_cfg_layout_mode, [...]): Declare.
Steven Bosscher [Mon, 12 Mar 2007 19:38:06 +0000 (19:38 +0000)]
tree-pass.h (pass_into_cfg_layout_mode, [...]): Declare.

* tree-pass.h (pass_into_cfg_layout_mode,
pass_outof_cfg_layout_mode): Declare.
* cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
* passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
(pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.

From-SVN: r122858

17 years agoFixed erroneous ChangeLog and gcc/ChangeLog entries.
Brooks Moses [Mon, 12 Mar 2007 19:00:28 +0000 (12:00 -0700)]
Fixed erroneous ChangeLog and gcc/ChangeLog entries.

From-SVN: r122856

17 years agoMakefile.in: Add dummy "install-info" target.
Brooks Moses [Mon, 12 Mar 2007 18:58:12 +0000 (18:58 +0000)]
Makefile.in: Add dummy "install-info" target.

fixincludes/
* Makefile.in: Add dummy "install-info" target.
<toplevel>
* Makefile.def (fixincludes): Remove unneeded "missing" lines.
* Makefile.in: Regenerate

From-SVN: r122855

17 years agoinvoke.texi (Wvla): New warning.
Seongbae Park [Mon, 12 Mar 2007 18:31:39 +0000 (18:31 +0000)]
invoke.texi (Wvla): New warning.

ChangeLog:

2007-03-12  Seongbae Park <seongbae.park@gmail.com>

* gcc/doc/invoke.texi (Wvla): New warning.

gcc/ChangeLog:

2007-03-12  Seongbae Park <seongbae.park@gmail.com>

* c-decl.c (warn_variable_length_array): New function.
Refactored from grokdeclarator to handle warn_vla
and handle unnamed array case.
(grokdeclarator): Refactored VLA warning case.
* c.opt (Wvla): New flag.

gcc/cp/ChangeLog:

2007-03-12  Seongbae Park <seongbae.park@gmail.com>

* decl.c (compute_array_index_type): New warning flag warn_vla.

gcc/testsuite/ChangeLog:

2007-03-12  Seongbae Park <seongbae.park@gmail.com>

  * gcc.dg/wvla-1.c: New test
  * gcc.dg/wvla-2.c: New test
  * gcc.dg/wvla-3.c: New test
  * gcc.dg/wvla-4.c: New test
  * gcc.dg/wvla-5.c: New test
  * gcc.dg/wvla-6.c: New test
  * gcc.dg/wvla-7.c: New test
* g++.dg/warn/Wvla-1.C: New test
* g++.dg/warn/Wvla-2.C: New test
* g++.dg/warn/Wvla-3.C: New test

From-SVN: r122851

17 years agoalpha.c (alpha_elf_section_type_flags): New.
Richard Henderson [Mon, 12 Mar 2007 18:15:51 +0000 (11:15 -0700)]
alpha.c (alpha_elf_section_type_flags): New.

        * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
(TARGET_SECTION_TYPE_FLAGS): New.

From-SVN: r122850

17 years agodarwin.c (machopic_reloc_rw_mask): New.
Richard Henderson [Mon, 12 Mar 2007 17:00:11 +0000 (10:00 -0700)]
darwin.c (machopic_reloc_rw_mask): New.

        * config/darwin.c (machopic_reloc_rw_mask): New.
        * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
        * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.

From-SVN: r122846

17 years agore PR c++/30108 (internal compiler error: in make_decl_rtl, at varasm.c:890)
Mark Mitchell [Mon, 12 Mar 2007 16:24:18 +0000 (16:24 +0000)]
re PR c++/30108 (internal compiler error: in make_decl_rtl, at varasm.c:890)

PR c++/30108
* call.c (convert_default_arg): Copy non-constant arguments.

PR c++/30108
* g++.dg/other/default6.C: New test.

From-SVN: r122844

17 years agocppdefault.c (cpp_EXEC_PREFIX): New variable.
Mark Mitchell [Mon, 12 Mar 2007 15:59:06 +0000 (15:59 +0000)]
cppdefault.c (cpp_EXEC_PREFIX): New variable.

* cppdefault.c (cpp_EXEC_PREFIX): New variable.
* cppdefault.h (cpp_PREFIX): Document.
(cpp_PREFIX_len): Likewise.
(cpp_EXEC_PREFIX): New variable.
* Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
* c-incpath.c (add_standard_paths): Correct logic for relocating
paths within prefix.

From-SVN: r122843

17 years agostl_algo.h (swap_ranges): Move...
Paolo Carlini [Mon, 12 Mar 2007 13:59:50 +0000 (13:59 +0000)]
stl_algo.h (swap_ranges): Move...

2007-03-12  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_algo.h (swap_ranges): Move...
* include/bits/stl_algobase.h: ... here.
* include/tr1/array: Trim includes, stl_algobase.h is enough.

From-SVN: r122840

17 years agoi386.md (fixuns_trunc<mode>hi2): Implement from fixuns_truncsfhi2 and fixuns_truncdfh...
Uros Bizjak [Mon, 12 Mar 2007 11:32:13 +0000 (12:32 +0100)]
i386.md (fixuns_trunc<mode>hi2): Implement from fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF mode macro.

* config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
mode macro.
(fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
fix_truncdfdi_sse using SSEMODEF mode macro.
(fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
fix_truncdfsi_sse using SSEMODEF mode macro.
(fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
(fix_trunc?f?i_sse K8 peephole2): Fix register constraint.

From-SVN: r122839

17 years agotarget-supports.exp (check_profiling_available): Return false for VxWorks.
Richard Sandiford [Mon, 12 Mar 2007 10:44:52 +0000 (10:44 +0000)]
target-supports.exp (check_profiling_available): Return false for VxWorks.

gcc/testsuite/
* lib/target-supports.exp (check_profiling_available): Return false
for VxWorks.
(check_effective_target_vxworks_kernel): New procedure.
* gcc.dg/20040813-1.c: Extend list of stabless targets to include
VxWorks.
* gcc.dg/builtins-config.h: Do not define HAVE_C99_RUNTIME on VxWorks.
* gcc.dg/intmax_t-1.c: Extend the list of targets without inttypes.h
to include VxWorks.
* gcc.dg/vxworks/initpri2.c: Require vxworks_kernel.

From-SVN: r122838

17 years agoconfig.gcc (i[4567]86-wrs-vxworks, [...]): Add elfos.h to tm_file.
Richard Sandiford [Mon, 12 Mar 2007 09:58:50 +0000 (09:58 +0000)]
config.gcc (i[4567]86-wrs-vxworks, [...]): Add elfos.h to tm_file.

gcc/
* config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
elfos.h to tm_file.

From-SVN: r122837

17 years ago981006-1.c: Use the non-PIC options if PIC is not supported.
Richard Sandiford [Mon, 12 Mar 2007 08:59:07 +0000 (08:59 +0000)]
981006-1.c: Use the non-PIC options if PIC is not supported.

gcc/testsuite/
* gcc.c-torture/compile/981006-1.c: Use the non-PIC options if
PIC is not supported.
* gcc.dg/20020103-1.c: Add dg-require-effective-target fpic.
* gcc.dg/20020426-2.c: Likewise.
* gcc.dg/pr28243.c: Likewise.
* gcc.dg/visibility-11.c: Likewise.
* gcc.dg/tls/opt-9.c: Likewise.
* gcc.dg/tls/opt-10.c: Likewise.
* gcc.dg/tls/pic-1.c: Likewise.
* gcc.dg/tls/struct-1.c: Likewise.
* gcc.target/i386/20000807-1.c: Likewise.
* gcc.target/i386/20000904-1.c: Likewise.
* gcc.target/i386/20011119-1.c: Likewise.
* gcc.target/i386/990213-2.c: Likewise.
* gcc.target/i386/990214-1.c: Likewise.
* gcc.target/i386/compress-float-387-pic.c: Likewise.
* gcc.target/i386/compress-float-sse-pic.c: Likewise.
* gcc.target/i386/pic-1.c: Likewise.
* gcc.target/i386/pr21518.c: Likewise.
* gcc.target/i386/pr23098.c: Likewise.
* gcc.target/i386/pr23943.c: Likewise.

From-SVN: r122836

17 years agoipa-type-escape improvements
Olga Golovanevsky [Mon, 12 Mar 2007 08:44:48 +0000 (08:44 +0000)]
ipa-type-escape improvements

From-SVN: r122835

17 years ago* Makefile.in (install-info): New dummy target.
Brooks Moses [Mon, 12 Mar 2007 06:13:30 +0000 (06:13 +0000)]
* Makefile.in (install-info): New dummy target.

From-SVN: r122832

17 years agore PR c++/30328 (bit-field: unassemblable assembly code)
Mark Mitchell [Mon, 12 Mar 2007 00:26:39 +0000 (00:26 +0000)]
re PR c++/30328 (bit-field: unassemblable assembly code)

PR c++/30328
* semantics.c (finish_typeof): Use unlowered_expr_type.

PR c++/30328
* g++.dg/ext/bitfield1.C: New test.

PR c++/31038
* parser.c (cp_parser_postfix_expression): Disallow compound
literals in constant expressions.

PR c++/31038
* g++.dg/template/complit2.C: New test.

From-SVN: r122829

17 years agoDaily bump.
GCC Administrator [Mon, 12 Mar 2007 00:17:17 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r122827

17 years agore PR fortran/30883 ([4.1/4.2 only] procedure with dummy procedure f1 rejected with...
Paul Thomas [Sun, 11 Mar 2007 16:17:32 +0000 (16:17 +0000)]
re PR fortran/30883 ([4.1/4.2 only] procedure with dummy procedure f1  rejected with implicit none)

2007-03-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30883
* parse.c (parse_interface): Use the default types from the
formal namespace if a function or its result do not have a type
after parsing the specification statements.

2007-03-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30883
* gfortran.dg/interface_11.f90: New test.

From-SVN: r122822

17 years agore PR middle-end/31115 (libstdc++ 22_locale/num_get/get/char/2.cc 27_io/basic_ostream...
Richard Guenther [Sun, 11 Mar 2007 16:08:35 +0000 (16:08 +0000)]
re PR middle-end/31115 (libstdc++ 22_locale/num_get/get/char/2.cc 27_io/basic_ostream/inserters_arithmetic/char/6.cc)

2007-03-11  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/31115
* tree-vrp.c (extract_range_from_binary_expr): Make sure
the shift count is positive and non-anti-range for RSHIFT_EXPR.
A shift count of zero is not special as with *_DIV_EXPR.
(vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
direction.

* gcc.dg/torture/pr31115.c: New testcase.

From-SVN: r122821

17 years agotree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and the *_DIV_EXPR codes correctly...
Ian Lance Taylor [Sun, 11 Mar 2007 15:53:30 +0000 (15:53 +0000)]
tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and the *_DIV_EXPR codes correctly with overflow infinities.

* tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
the *_DIV_EXPR codes correctly with overflow infinities.

From-SVN: r122820

17 years agoPR libstdc++/28080 (final)
Paolo Carlini [Sun, 11 Mar 2007 12:03:34 +0000 (12:03 +0000)]
PR libstdc++/28080 (final)

2007-03-11  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/28080 (final)
* include/std/iosfwd: Do not include <bits/c++io.h>.
* config/io/basic_file_stdio.h: Do it here.
* include/ext/stdio_sync_filebuf.h: Likewise.
* include/ext/rope: Include <bits/gthr.h> unconditionally.
* include/std/fstream: Do not include <bits/gthr.h>.

* include/std/ios: Do not include <cstdio>.
* include/bits/ios_base.h: Do it here.
* testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust dg-error
line numbers.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.

From-SVN: r122818

17 years agotree-data-ref.c (analyze_offset): Add a return value (bool) to indicate success/failu...
Ira Rosen [Sun, 11 Mar 2007 11:13:34 +0000 (11:13 +0000)]
tree-data-ref.c (analyze_offset): Add a return value (bool) to indicate success/failure of the analysis.

* tree-data-ref.c (analyze_offset): Add a return value (bool) to
indicate success/failure of the analysis. Add negation to subtrahend
in case of subtraction. Fail if both operands contain constants.
(create_data_ref): Fail if analyze_offset fails.

From-SVN: r122817

17 years ago* Fix a typo in my previous commit.
Uros Bizjak [Sun, 11 Mar 2007 10:36:36 +0000 (11:36 +0100)]
* Fix a typo in my previous commit.

From-SVN: r122816

17 years agoi386.md (frndintxf2): Rename to ...
Uros Bizjak [Sun, 11 Mar 2007 10:27:30 +0000 (11:27 +0100)]
i386.md (frndintxf2): Rename to ...

        * config/i386/i386.md (frndintxf2): Rename to ...
        (rintxf2): ... this. Remove expander having same name.
        (rintsf2, rintdf2): Implement using SSEMODEF macro.
        (roundsf2, rounddf2): Ditto.
        (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
        (lround<mode>di2, lround<mode>si2): Ditto.

From-SVN: r122815

17 years agore PR c++/30274 (bool bit-field: wrong increment and decremenet)
Mark Mitchell [Sun, 11 Mar 2007 03:07:59 +0000 (03:07 +0000)]
re PR c++/30274 (bool bit-field: wrong increment and decremenet)

PR c++/30274
* cp-tree.h (unlowered_expr_type): New function.
* typeck.c (is_bitfield_expr_with_lowered_type): Handle
COMPOUND_EXPR, MODIFY_EXPR, and SAVE_EXPR.
(unlowered_expr_type): New function.
(build_unary_op): Disallow predecrements of bool bitfields.
* call.c (build_conditional_expr): Use unlowered_expr_type.
* pt.c (type_unification_real): Likewise.
PR c++/30274
* g++.dg/expr/bitfield3.C: New test.
* g++.dg/expr/bitfield4.C: Likewise.
* g++.dg/expr/bitfield5.C: Likewise.
* g++.dg/expr/bitfield6.C: Likewise.

From-SVN: r122813

17 years agoDaily bump.
GCC Administrator [Sun, 11 Mar 2007 00:17:01 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r122810

17 years agolower-subreg.c: Include except.h.
Steven Bosscher [Sat, 10 Mar 2007 23:33:40 +0000 (23:33 +0000)]
lower-subreg.c: Include except.h.

* lower-subreg.c: Include except.h.
(decompose_multiword_subregs): Verify that the only control flow
insns we can split are loads to multi-words pseudos.
Handle breaking such blocks after splitting, instead of calling
find_many_sub_basic_blocks.

* loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
on the new basic block.  Add a lengthy comment explaining why we
thought this was necessary.
* cfglayout.c (cfg_layout_finalize): Don't break superblocks.

From-SVN: r122807

17 years agoPR libstdc++/28080 (partial)
Paolo Carlini [Sat, 10 Mar 2007 20:29:45 +0000 (20:29 +0000)]
PR libstdc++/28080 (partial)

2007-03-10  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/28080 (partial)
* include/std/memory: Move C++03 implementation...
* include/bits/stl_memory.h: ... here, new.
* include/Makefile.am: Add.
* include/bits/stl_tempbuf.h: Include the latter instead.
* include/tr1/hashtable: Include allocator.h instead of
the whole <memory>.
* include/tr1/hashtable_policy.h: Include stl_function.h
instead of <functional>.
* include/Makefile.in: Regenerate.
* testsuite/20_util/auto_ptr/assign_neg.cc: Adjust dg-error
line numbers.

From-SVN: r122805

17 years agoFix PR number.
Mark Mitchell [Sat, 10 Mar 2007 19:48:44 +0000 (19:48 +0000)]
Fix PR number.

From-SVN: r122804

17 years agore PR target/20924 (inline float divide does not set correct fpu status flags)
Mark Mitchell [Sat, 10 Mar 2007 19:35:03 +0000 (19:35 +0000)]
re PR target/20924 (inline float divide does not set correct fpu status flags)

PR c++/20924
* tree.c (walk_type_fields): Recurse into the element type of
ARRAY_TYPEs if there is a pointer set.

PR c++/20924
* g++.dg/template/array18.C: New test.

From-SVN: r122801

17 years agoc-common.c (warn_logical_operator): Fix condition.
Dirk Mueller [Sat, 10 Mar 2007 18:49:28 +0000 (18:49 +0000)]
c-common.c (warn_logical_operator): Fix condition.

2007-03-10  Dirk Mueller  <dmueller@suse.de>

       * c-common.c (warn_logical_operator): Fix condition.

From-SVN: r122800