platform/upstream/linaro-gcc.git
16 years ago2008-01-09 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 9 Jan 2008 15:46:49 +0000 (15:46 +0000)]
2008-01-09  Richard Guenther  <rguenther@suse.de>
Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/30132
* gimplify.c (gimplify_cond_expr): Do not create an addressable
temporary if an rvalue is ok or an lvalue is not required.

* gcc.c-torture/compile/pr30132.c: New testcase.

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

16 years ago2008-01-09 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 9 Jan 2008 14:17:13 +0000 (14:17 +0000)]
2008-01-09  Richard Guenther  <rguenther@suse.de>

PR middle-end/34458
* tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
adjust return type.

* gcc.c-torture/compile/pr34458.c: New testcase.

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

16 years ago2008-01-09 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 9 Jan 2008 12:14:01 +0000 (12:14 +0000)]
2008-01-09  Richard Guenther  <rguenther@suse.de>

PR middle-end/34679
* tree.c (host_integerp): Check for sizetype only if the
type is an integer type.

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

16 years ago2008-01-09 Francesco Biscani <bluescarni@gmail.com>
paolo [Wed, 9 Jan 2008 11:12:11 +0000 (11:12 +0000)]
2008-01-09  Francesco Biscani  <bluescarni@gmail.com>

* include/tr1_impl/hashtable (_Hashtable): Fix friend declaration
of __detail::_Map_base<>.

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

16 years ago2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
rguenth [Wed, 9 Jan 2008 10:33:55 +0000 (10:33 +0000)]
2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>

PR debug/26364
* opts.c (decode_options): Disable inlining of functions called
once if not in unit-at-a-time mode.

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

16 years ago* Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
aoliva [Wed, 9 Jan 2008 09:18:24 +0000 (09:18 +0000)]
* Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.

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

16 years agoFix typo in last commit.
ghazi [Wed, 9 Jan 2008 09:03:49 +0000 (09:03 +0000)]
Fix typo in last commit.

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

16 years ago * doc/invoke.texi (i386 and x86-64 Options) [mrecip]:
uros [Wed, 9 Jan 2008 07:35:49 +0000 (07:35 +0000)]
* doc/invoke.texi (i386 and x86-64 Options) [mrecip]:
Two small spell fixes.

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

16 years ago PR testsuite/30459
danglin [Wed, 9 Jan 2008 03:14:15 +0000 (03:14 +0000)]
PR testsuite/30459
g++.dg/eh/ia64-2.C: Require weak support.

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

16 years agoDaily bump.
gccadmin [Wed, 9 Jan 2008 00:17:24 +0000 (00:17 +0000)]
Daily bump.

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

16 years ago2008-01-08 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 8 Jan 2008 21:35:25 +0000 (21:35 +0000)]
2008-01-08  Richard Guenther  <rguenther@suse.de>

PR middle-end/31863
* tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
out early if the result will be unused.

* g++.dg/torture/pr31863.C: New testcase.

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

16 years ago2008-01-08 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 8 Jan 2008 21:21:29 +0000 (21:21 +0000)]
2008-01-08  Richard Guenther  <rguenther@suse.de>

PR fortran/34706
PR tree-optimization/34683
* trans-types.c (gfc_get_array_type_bounds): Use an array type
with known size for accesses if that is known.

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

16 years ago PR target/34709
uros [Tue, 8 Jan 2008 19:22:46 +0000 (19:22 +0000)]
    PR target/34709
        Revert:

        2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
        * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
        for TARGET_RECIP.

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

16 years ago2008-01-08 Paolo Carlini <pcarlini@suse.de>
paolo [Tue, 8 Jan 2008 18:16:06 +0000 (18:16 +0000)]
2008-01-08  Paolo Carlini  <pcarlini@suse.de>

* testsuite/22_locale/global_templates/user_facet_hierarchies.cc: Do
not include <cassert>.
* testsuite/22_locale/global_templates/standard_facet_hierarchies.cc:
Likewise.
* testsuite/util/testsuite_common_types.h: Include <algorithm>.

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

16 years ago2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
jsjodin [Tue, 8 Jan 2008 16:35:44 +0000 (16:35 +0000)]
2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>

       * config/i386/i386.c:
        (k8_cost, amdfam10_cost): Branch costs for vectorization tuned.

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

16 years ago2008-01-08 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 8 Jan 2008 16:29:14 +0000 (16:29 +0000)]
2008-01-08  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/34683
* tree-ssa-operands.c (operand_build_cmp): Export.
* tree-ssa-operands.h (operand_build_cmp): Declare.
* tree-vn.c (vuses_compare): Remove.
(sort_vuses): Use operand_build_cmp.
(sort_vuses_heap): Likewise.
* tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
to re-use old VEC if available.  Do not sort already sorted VUSEs.
(vdefs_to_vec): Do not sort already sorted VDEFs.

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

16 years agolibstdc++-v3/
jakub [Tue, 8 Jan 2008 16:14:49 +0000 (16:14 +0000)]
libstdc++-v3/
* configure.ac (--enable-linux-futex): Add new configure option.
(HAVE_LINUX_FUTEX): New AC_DEFINE.
* Makefile.in: Rebuilt.
* aclocal.m4: Rebuilt.
* configure: Rebuilt.
* config.h.in: Rebuilt.
* config/cpu/generic/cxxabi_tweaks.h (_GLIBCXX_GUARD_BIT,
_GLIBCXX_GUARD_PENDING_BIT, _GLIBCXX_GUARD_WAITING_BIT): Define.
* config/cpu/arm/cxxabi_tweaks.h (_GLIBCXX_GUARD_BIT,
_GLIBCXX_GUARD_PENDING_BIT, _GLIBCXX_GUARD_WAITING_BIT): Define.
* libsupc++/guard.cc: Include climits and syscall.h.
(_GLIBCXX_USE_FUTEX): Define if futex syscall and atomic builtins
are supported.
(_GLIBCXX_FUTEX_WAIT, _GLIBCXX_FUTEX_WAKE): Likewise.
(__guard_test_bit): New static inline.
(__cxa_guard_acquire, __cxa_guard_release, __cxa_guard_abort): Use
atomic builtins and futex syscall if _GLIBCXX_USE_FUTEX.
config/
* futex.m4: New file.
libgomp/
* configure.ac: Move futex checking into ../config/futex.m4.
* configure: Rebuilt.
* aclocal.m4: Rebuilt.
* Makefile.in: Rebuilt.

* configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2007-10-15 ../config/tls.m4 change.

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

16 years ago PR middle-end/34694
jakub [Tue, 8 Jan 2008 16:08:24 +0000 (16:08 +0000)]
PR middle-end/34694
* omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.

* gcc.dg/gomp/pr34694.c: New test.
* g++.dg/gomp/pr34694.C: New test.

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

16 years ago PR c++/33890
jakub [Tue, 8 Jan 2008 16:06:31 +0000 (16:06 +0000)]
PR c++/33890
* semantics.c (finish_omp_for): Don't call
fold_build_cleanup_point_expr if processing_template_decl.

* g++.dg/gomp/pr33890.C: New test.

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

16 years ago2008-01-08 Paul Thomas <pault@gcc.gnu.org>
pault [Tue, 8 Jan 2008 15:14:33 +0000 (15:14 +0000)]
2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34476
* expr.c (find_array_element): Check that the array bounds are
constant before using them.  Use lower, as well as upper bound.
(check_restricted): Allow implied index variable.

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34476
* gfortran.dg/parameter_array_init_3.f90: New test.

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

16 years ago2008-01-08 Paul Thomas <pault@gcc.gnu.org>
pault [Tue, 8 Jan 2008 15:12:34 +0000 (15:12 +0000)]
2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34681
* trans_array.c (gfc_trans_deferred_array): Do not null the
data pointer on entering scope, nor deallocate it on leaving
scope, if the symbol has the 'save' attribute.

PR fortran/34704
* trans_decl.c (gfc_finish_var_decl): Derived types with
allocatable components and an initializer must be TREE_STATIC.

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34681
PR fortran/34704
* gfortran.dg/alloc_comp_default_init_1.f90: New test.

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

16 years ago PR target/34702
uros [Tue, 8 Jan 2008 13:50:14 +0000 (13:50 +0000)]
PR target/34702
* doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
limitations of reciprocal sequences on x86 targets.

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

16 years ago2008-01-08 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 8 Jan 2008 12:12:56 +0000 (12:12 +0000)]
2008-01-08  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/34683
* tree-flow-inline.h (var_ann): Remove overzealous asserts.

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

16 years agoDaily bump.
gccadmin [Tue, 8 Jan 2008 00:18:22 +0000 (00:18 +0000)]
Daily bump.

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

16 years ago * config.sub, config.guess: Update from upstream sources.
bje [Mon, 7 Jan 2008 23:24:49 +0000 (23:24 +0000)]
* config.sub, config.guess: Update from upstream sources.

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

16 years ago PR target/34622
jakub [Mon, 7 Jan 2008 21:49:27 +0000 (21:49 +0000)]
PR target/34622
* config/darwin.c (darwin_mergeable_string_section): Don't use
.cstring if int_size_in_bytes != TREE_STRING_LENGTH.

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

16 years ago * lib/target-supports.exp (check_effective_target_powerpc_spu): New.
janis [Mon, 7 Jan 2008 21:05:03 +0000 (21:05 +0000)]
* lib/target-supports.exp (check_effective_target_powerpc_spu): New.
* g++.dg/other/spu2vmx-1.C: Use it.

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

16 years ago2008-01-07 Jack Howarth <howarth@bromo.med.uc.edu>
janis [Mon, 7 Jan 2008 21:03:46 +0000 (21:03 +0000)]
2008-01-07  Jack Howarth  <howarth@bromo.med.uc.edu>

* gcc.dg/out-of-bounds-1.c: Don't use -mstrict-align for Darwin.

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

16 years ago2008-01-07 Jack Howarth <howarth@bromo.med.uc.edu>
janis [Mon, 7 Jan 2008 21:02:24 +0000 (21:02 +0000)]
2008-01-07  Jack Howarth  <howarth@bromo.med.uc.edu>

PR testsuite/34575
* gcc.target/powerpc/popcount-1.c: Skip on darwin.
* gcc.target/powerpc/parity-1.c: Likewise.

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

16 years ago2008-01-06 Paolo Carlini <pcarlini@suse.de>
paolo [Mon, 7 Jan 2008 20:54:49 +0000 (20:54 +0000)]
2008-01-06  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/34680
* doc/cpp.texi ([Common Predefined Macros]): Document.

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

16 years ago PR target/34682
uros [Mon, 7 Jan 2008 20:06:34 +0000 (20:06 +0000)]
    PR target/34682
        * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
        negxf2.  Macroize expander using X87MODEF mode iterator.  Change
        predicates of op0 and op1 to register_operand.
        (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize expander
        using X87MODEF mode iterator.  Change predicates of op0 and op1 to
        register_operand.
        ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
        corresponding patterns and macroize using MODEF macro.  Change
        predicates of op0 and op1 to register_operand and remove
        "m" constraint. Disparage "r" alternative with "!".
        ("*absneg<mode>2_i387"): Rename from corresponding patterns and
        macroize using X87MODEF macro.  Change predicates of op0 and op1
        to register_operand and remove "m" constraint.  Disparage "r"
        alternative with "!".
        (absneg splitter with memory operands): Remove.
        ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
        patterns and macroize using X87MODEF mode iterator.
        * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
        Change predicate of op1 to register_operand.
        * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
        for memory operands.

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

16 years ago * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
froydnj [Mon, 7 Jan 2008 19:35:04 +0000 (19:35 +0000)]
* config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.

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

16 years agolibcpp
tromey [Mon, 7 Jan 2008 17:23:40 +0000 (17:23 +0000)]
libcpp
2008-01-07  Fred Fish  <fnf@specifix.com>
PR preprocessor/30363:
* traditional.c (replace_args_and_push): Add local variable
cxtquote, calculate the replacement text size assuming a
worst case of every input character quoted with backslash,
and properly handle output quoting of quote characters in
actual arguments used in function-like macros.
gcc/testsuite
2008-01-07  Fred Fish  <fnf@specifix.com>
PR preprocessor/30363:
* gcc.dg/cpp/trad/macroargs.c: Add code to test quoting in
macro expansions.

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

16 years ago2008-01-07 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 7 Jan 2008 16:49:37 +0000 (16:49 +0000)]
2008-01-07  Richard Guenther  <rguenther@suse.de>

        * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
        fields.

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

16 years ago2008-01-07 Paul Thomas <pault@gcc.gnu.org>
pault [Mon, 7 Jan 2008 16:44:43 +0000 (16:44 +0000)]
2008-01-07  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34672
* module.c (write_generic): Rewrite completely.
(write_module): Change call to write_generic.

2008-01-07  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34672
* gfortran.dg/use_only_2.f90: New test.

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

16 years ago2008-01-07 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 7 Jan 2008 14:49:36 +0000 (14:49 +0000)]
2008-01-07  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/34683
* tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
VOPs of the needed size to save memory.  Use VEC_quick_push
to save compile-time.
(vdefs_to_vec): Likewise.

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

16 years agoGenetate inline code for double division.
saliu [Mon, 7 Jan 2008 13:53:07 +0000 (13:53 +0000)]
Genetate inline code for double division.

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

16 years agoGenetate inline code for double division.
saliu [Mon, 7 Jan 2008 13:48:12 +0000 (13:48 +0000)]
Genetate inline code for double division.

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

16 years ago2008-01-07 Paolo Carlini <pcarlini@suse.de>
paolo [Mon, 7 Jan 2008 11:11:02 +0000 (11:11 +0000)]
2008-01-07  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/34680
* include/bits/locale_classes.h (has_facet<>, use_facet<>): Do not
use dynamic_cast when run-time type identification is disabled; do
not mark inline; only declare, define...
* include/bits/locale_classes.tcc: ... here.

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

16 years ago2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Mon, 7 Jan 2008 02:53:04 +0000 (02:53 +0000)]
2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/34659
* scanner.c (load_line): Do not count ' ' as printable when checking for
continuations.

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

16 years agoDaily bump.
gccadmin [Mon, 7 Jan 2008 00:17:12 +0000 (00:17 +0000)]
Daily bump.

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

16 years agogcc/
paolo [Sun, 6 Jan 2008 22:30:32 +0000 (22:30 +0000)]
gcc/
2008-01-06  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/34680
* c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
* doc/cpp.texi ([Common Predefined Macros]): Document.

gcc/testsuite/
2008-01-06  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/34680
* g++.dg/rtti/predefined-rtti-macro-1.C: New.
* g++.dg/rtti/predefined-rtti-macro-2.C: Likewise.

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

16 years ago2008-01-06 Paul Thomas <pault@gcc.gnu.org>
pault [Sun, 6 Jan 2008 22:00:00 +0000 (22:00 +0000)]
2008-01-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34545
* module.c (load_needed): If the namespace has no proc_name
give it the module symbol.

2008-01-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34545
* gfortran.dg/use_12.f90: New test.

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

16 years ago Revert last change.
hp [Sun, 6 Jan 2008 20:54:14 +0000 (20:54 +0000)]
Revert last change.

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

16 years ago2008-01-06 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 6 Jan 2008 20:30:10 +0000 (20:30 +0000)]
2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34690
       * gfortran.dg/elemental_args_check_2.f90: Fix test case.

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

16 years ago PR c++/34152
jakub [Sun, 6 Jan 2008 20:25:57 +0000 (20:25 +0000)]
PR c++/34152
* libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Check
_GLIBCXX_HAVE_GETIPINFO instead of HAVE_GETIPINFO.

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

16 years ago2008-01-06 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 6 Jan 2008 20:18:01 +0000 (20:18 +0000)]
2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34689
       * gfortran.dg/intent_out_4.f90: Fix test case.

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

16 years ago2008-01-06 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 6 Jan 2008 19:36:44 +0000 (19:36 +0000)]
2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34689
       * interface.c (compare_actual_formal): Fix intent(out) check for
       function result variables.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34689
       * gfortran.dg/intent_out_4.f90: New.

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

16 years ago * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
uros [Sun, 6 Jan 2008 18:59:38 +0000 (18:59 +0000)]
    * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
        order to use commutative addition instead of subtraction.

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

16 years ago2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 6 Jan 2008 18:34:14 +0000 (18:34 +0000)]
2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/34540
* gfortran.dg/optional_dim_3.f90: New test.

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

16 years ago2008-01-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 6 Jan 2008 18:19:06 +0000 (18:19 +0000)]
2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/34387
* trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
the dummy variable expression, test for NULL, and pass the variable
address to the called function.

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

16 years ago2007-01-06 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 6 Jan 2008 18:17:14 +0000 (18:17 +0000)]
2007-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34658
        * match.c (gfc_match_common): Remove blank common in
        DATA BLOCK warning.
        * resolve.c (resolve_common_vars): New function.
        (resolve_common_blocks): Move checks to resolve_common_vars
        and invoke that function.
        (resolve_types): Call resolve_common_vars for blank commons.

2007-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34658
        * gfortran.dg/common_11.f90: New.
        * gfortran.dg/blockdata_1.f90: Update test case.
        * gfortran.dg/blockdata_2.f90: Update test case.

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

16 years ago2008-01-06 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 6 Jan 2008 18:11:42 +0000 (18:11 +0000)]
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/equiv_constraint_9.f90: Fix typo.

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

16 years ago2008-01-06 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 6 Jan 2008 18:07:52 +0000 (18:07 +0000)]
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34655
        * resolve.c (resolve_equivalence_derived): Reject derived types
        * with
        default initialization if equivalenced with COMMON variable.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34655
        * gfortran.dg/equiv_constraint_9.f90: New.

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

16 years agoFix PR34263: Cleaning up latch blocks
revitale [Sun, 6 Jan 2008 15:24:10 +0000 (15:24 +0000)]
Fix PR34263: Cleaning up latch blocks

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

16 years ago2008-01-06 Andreas Tobler <a.tobler@schweiz.org>
andreast [Sun, 6 Jan 2008 12:17:03 +0000 (12:17 +0000)]
2008-01-06  Andreas Tobler  <a.tobler@schweiz.org>

* src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.

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

16 years ago2008-01-06 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 6 Jan 2008 09:21:27 +0000 (09:21 +0000)]
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34654
        * io.c (check_io_constraints): Disallow unformatted I/O for
        internal units.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34654
        * gfortran.dg/internal_io_unf.f90: New.

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

16 years ago2008-01-06 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 6 Jan 2008 09:18:43 +0000 (09:18 +0000)]
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34660
        * resolve.c (resolve_formal_arglist): Reject dummy procedure in
        ELEMENTAL functions.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34660
        * gfortran.dg/elemental_args_check_2.f90: New.

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

16 years ago2008-01-06 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 6 Jan 2008 09:07:47 +0000 (09:07 +0000)]
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34662
        * interface.c (compare_actual_formal): Reject parameter
        actual to intent(out) dummy.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34662
        * gfortran.dg/intent_out_3.f90: New.

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

16 years agoDaily bump.
gccadmin [Sun, 6 Jan 2008 00:17:27 +0000 (00:17 +0000)]
Daily bump.

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

16 years ago2008-01-05 Andreas Tobler <a.tobler@schweiz.org>
andreast [Sat, 5 Jan 2008 20:49:41 +0000 (20:49 +0000)]
2008-01-05  Andreas Tobler  <a.tobler@schweiz.org>

PR testsuite/32843
* src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
signed/unsigned int8/16 for X86_DARWIN.
Updated copyright info.
Handle one and two byte structs with special cif->flags.
* src/x86/ffitarget.h: Add special types for one and two byte structs.
Updated copyright info.
* src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
sysv.S
Remove code to pop args from the stack after call.
Special-case signed/unsigned for int8/16, one and two byte structs.
(ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
FFI_TYPE_SINT32.
Updated copyright info.

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

16 years ago * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
uros [Sat, 5 Jan 2008 20:33:33 +0000 (20:33 +0000)]
    * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
        for TARGET_RECIP.
        (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.

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

16 years agogcc/testsuite/
rsandifo [Sat, 5 Jan 2008 16:58:00 +0000 (16:58 +0000)]
gcc/testsuite/
* objc.dg/stabs-1.m: Allow labels to be begin with $L as well as .L.

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

16 years agogcc/
rsandifo [Sat, 5 Jan 2008 16:57:00 +0000 (16:57 +0000)]
gcc/
* c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.

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

16 years agogcc/
rsandifo [Sat, 5 Jan 2008 16:47:50 +0000 (16:47 +0000)]
gcc/
* config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.

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

16 years ago2008-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sat, 5 Jan 2008 16:12:00 +0000 (16:12 +0000)]
2008-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/34676
* gfortran.dg/list_read_8.f90: New test.

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

16 years ago2008-01-05 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sat, 5 Jan 2008 16:00:40 +0000 (16:00 +0000)]
2008-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/34676
* io/list_read.c (next_char): Only save the EOF condition for later if
advance="no".

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

16 years ago PR tree-optimization/34618
jakub [Sat, 5 Jan 2008 12:06:54 +0000 (12:06 +0000)]
PR tree-optimization/34618
* tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
flag from T.

* testsuite/libmudflap.c/pass62-frag.c: New test.

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

16 years ago PR target/34673
uros [Sat, 5 Jan 2008 11:52:39 +0000 (11:52 +0000)]
    PR target/34673
        * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
        in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
        Update copyright year.

        * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
        Update copyright year.
        * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
        using NR fixup.

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

16 years ago * tree-vrp.c (find_conditional_asserts): Remove redundant check that
uros [Sat, 5 Jan 2008 09:31:24 +0000 (09:31 +0000)]
    * tree-vrp.c (find_conditional_asserts): Remove redundant check that
        edge does not point to current bb before changing need_assert.

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

16 years agoDaily bump.
gccadmin [Sat, 5 Jan 2008 00:17:34 +0000 (00:17 +0000)]
Daily bump.

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

16 years ago2008-01-04 Andrew Haley <aph@redhat.com>
aph [Fri, 4 Jan 2008 17:18:56 +0000 (17:18 +0000)]
2008-01-04  Andrew Haley  <aph@redhat.com>

PR libgcj/34444
* java/lang/natClass.cc (Class::getEnclosingClass): Call
getDeclaringClass().

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

16 years ago2008-01-04 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 4 Jan 2008 15:56:41 +0000 (15:56 +0000)]
2008-01-04  Richard Guenther  <rguenther@suse.de>

PR middle-end/34029
* tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
for verifying purposes if they are is_gimple_min_invariant.

* gcc.c-torture/compile/pr34029-1.c: New testcase.
* gcc.c-torture/compile/pr34029-2.c: Likewise.

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

16 years ago2008-01-04 Andrew Haley <aph@redhat.com>
aph [Fri, 4 Jan 2008 15:13:53 +0000 (15:13 +0000)]
2008-01-04  Andrew Haley  <aph@redhat.com>

        PR java/17779
        * jcf-parse.c (parse_zip_file_entries): Move decl to compile on
        C90.

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

16 years ago PR tree-optimization/34448
aldyh [Fri, 4 Jan 2008 14:49:28 +0000 (14:49 +0000)]
    PR tree-optimization/34448
        PR tree-optimization/34465
        * gimplify.c (gimplify_init_constructor): Add new parameter
        notify_temp_creation.  Use it.
        (gimplify_modify_expr_rhs): Take volatiles into account when
        optimizing constructors.
        Do not optimize constructors if gimplify_init_constructor will dump to
        memory.
        * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
        * gcc.c-torture/compile/pr34448.c: New.

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

16 years ago PR gcov-profile/34609
jakub [Fri, 4 Jan 2008 13:58:30 +0000 (13:58 +0000)]
PR gcov-profile/34609
* tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
return_slot if result is TREE_ADDRESSABLE.

* g++.dg/gcov/gcov-6.C: New test.

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

16 years ago2008-01-04 Paolo Carlini <pcarlini@suse.de>
paolo [Fri, 4 Jan 2008 13:57:34 +0000 (13:57 +0000)]
2008-01-04  Paolo Carlini  <pcarlini@suse.de>
    Jakub Jelinek  <jakub@redhat.com>

PR c++/34611
* error.c (dump_template_argument): Deal with TREE_LIST.

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

16 years ago2008-01-04 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 4 Jan 2008 11:16:17 +0000 (11:16 +0000)]
2008-01-04  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/31081
* g++.dg/torture/pr31081-1.C: New testcase.
* g++.dg/torture/pr31081-2.C: Likewise.

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

16 years ago2008-01-03 Andrew Haley <aph@redhat.com>
aph [Fri, 4 Jan 2008 11:06:34 +0000 (11:06 +0000)]
2008-01-03  Andrew Haley  <aph@redhat.com>

        PR java/17779
        * jcf-parse.c (parse_zip_file_entries): Unset TYPE_ALIAS_SET if
        we're about to re-layout the type.

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

16 years agogcc/
rsandifo [Fri, 4 Jan 2008 10:26:41 +0000 (10:26 +0000)]
gcc/
* config/mips/mips.md (sqrt_condition): Tweak comment.
(recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.

gcc/testsuite/
* gcc.target/mips/rsqrt-1.c: Require -mgp64.
* gcc.target/mips/rsqrt-2.c: Likewise.
* gcc.target/mips/rsqrt-4.c: New test.

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

16 years ago2008-01-04 Tobias Burnus <burnus@net-b.de>
burnus [Fri, 4 Jan 2008 09:11:26 +0000 (09:11 +0000)]
2008-01-04  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34557
       * primary.c (match_varspec): Gobble whitespace before
       checking for '('.

2008-01-04  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34557
       * gfortran.dg/equiv_substr.f90: New.

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

16 years agoDaily bump.
gccadmin [Fri, 4 Jan 2008 00:18:33 +0000 (00:18 +0000)]
Daily bump.

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

16 years agogcc/
tromey [Fri, 4 Jan 2008 00:14:31 +0000 (00:14 +0000)]
gcc/
PR c/34457:
* c-common.c (c_type_hash): Handle VLAs.
gcc/testsuite
PR c/34457:
* gcc.dg/pr34457-2.c: New file.
* gcc.dg/pr34457-1.c: New file.

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

16 years agoTidy.
ebotcazou [Thu, 3 Jan 2008 23:26:18 +0000 (23:26 +0000)]
Tidy.

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

16 years agoFix incorrectly applied patch in last commit.
hubicka [Thu, 3 Jan 2008 23:03:26 +0000 (23:03 +0000)]
Fix incorrectly applied patch in last commit.

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

16 years ago2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
spop [Thu, 3 Jan 2008 22:59:48 +0000 (22:59 +0000)]
2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>

Revert fix for PR tree-optimization/34458.

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

16 years ago2008-01-02 Sebastian Pop <sebastian.pop@amd.com>
spop [Thu, 3 Jan 2008 21:59:38 +0000 (21:59 +0000)]
2008-01-02  Sebastian Pop  <sebastian.pop@amd.com>

PR tree-optimization/34458
* tree-data-ref.c (dd_int_cst_value): New.
(initialize_matrix_A, compute_overlap_steps_for_affine_1_2,
analyze_subscript_affine_affine, build_classic_dist_vector_1,
add_multivariate_self_dist, init_omega_eq_with_af): Use
dd_int_cst_value instead of int_cst_value.

* testsuite/gcc.dg/tree-ssa/pr34458.c: New.

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

16 years ago PR tree-optimization/31081
hubicka [Thu, 3 Jan 2008 21:23:26 +0000 (21:23 +0000)]
PR tree-optimization/31081
* tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
0 when inlining and not inlining to first basic block.
(remap_decl): When var is initialized to 0, don't set default_def.
(expand_call_inline): Set entry_bb.
* tree-inline.h (copy_body_data): Add entry_bb.

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

16 years ago2008-01-03 Thomas Koenig <tkoenig@gcc.gnu.org>
tkoenig [Thu, 3 Jan 2008 19:49:38 +0000 (19:49 +0000)]
2008-01-03  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/34565
* io/io.h:  Adjust protoypes for open_internal(),
next_array_record() and init_loop_spec().
* io/list_read.c (next_char):  Use argument "finished"
of next_array_record to check for end on internal file.
* io/unit.c:  Calculate the offset for an array
internal file and supply this informatin to open_internal().
* io/unix.c (open_internal):  Set the offset for the internal
file on open.
* io/transfer.c (init_loop_spec):  Calculate the starting
record in case of negative strides.  Return size of 0 for
an empty array.
(next_array_record):  Use an extra flag to signal that the
array is finished.
(next_record_r):  Use the new flag to next_array_record().
(next_record_w):  Likewise.

2008-01-03  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/34565
* gfortran.dg/internal_readwrite_1.f90:  New test.
* gfortran.dg/internal_readwrite_2.f90:  New test.

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

16 years agolibcpp
tromey [Thu, 3 Jan 2008 17:58:26 +0000 (17:58 +0000)]
libcpp
PR preprocessor/34602.
* directives.c (do_line): Don't try to spell EOF token.
(do_linemarker): Add comment.
gcc/testsuite
PR preprocessor/34602:
* gcc.dg/cpp/pr34602.c: New file.

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

16 years ago PR c++/34619
jakub [Thu, 3 Jan 2008 10:28:30 +0000 (10:28 +0000)]
PR c++/34619
* cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
before returning.

* testsuite/libmudflap.c++/pass61-frag.cxx: New test.

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

16 years ago2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
sam [Thu, 3 Jan 2008 09:35:04 +0000 (09:35 +0000)]
2008-01-03  Tero Koskinen <tero.koskinen@iki.fi>

    gcc/ada/
PR ada/34647
* adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
on OpenBSD as is done on other BSD systems.

PR ada/34645
* sysdep.c (__gnat_ttyname, getc_immediate_nowait,
getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
I/O.

PR ada/34644
* env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
clearenv().

PR ada/34646
* init.c (__gnat_error_handler, __gnat_install_handler,
__gnat_init_float): Define for OpenBSD.

* initialize.c (__gnat_initialize): Define for OpenBSD.

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

16 years ago PR tree-optimization/29484
jakub [Thu, 3 Jan 2008 08:33:57 +0000 (08:33 +0000)]
PR tree-optimization/29484
* tree-inline.c (inline_forbidden_p_2): New function.
(inline_forbidden_p): Disallow inlining if some static var
has an address of a local LABEL_DECL in its initializer.
* doc/extend.texi (Labels as Values): Document &&foo behaviour
vs. inlining.

* gcc.c-torture/execute/20071220-1.c: New test.
* gcc.c-torture/execute/20071220-2.c: New test.

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

16 years ago2007-12-19 Sebastian Pop <sebastian.pop@amd.com>
spop [Thu, 3 Jan 2008 02:38:24 +0000 (02:38 +0000)]
2007-12-19  Sebastian Pop  <sebastian.pop@amd.com>

PR tree-optimization/34635
* tree-data-ref.c (add_other_self_distances): Make sure that the
evolution step is constant.

* gcc.dg/tree-ssa/pr34635.c: New.
* gcc.dg/tree-ssa/pr34635-1.c: New.

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

16 years ago PR middle-end/34562
danglin [Thu, 3 Jan 2008 02:33:12 +0000 (02:33 +0000)]
PR middle-end/34562
* g++.dg/other/first-global.C: Also accept _GLOBAL__I_65535_0_foobar in
scan-assembler check.

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

16 years agoDaily bump.
gccadmin [Thu, 3 Jan 2008 00:17:43 +0000 (00:17 +0000)]
Daily bump.

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

16 years ago PR middle-end/34608
jakub [Wed, 2 Jan 2008 23:33:54 +0000 (23:33 +0000)]
PR middle-end/34608
* omp-low.c (expand_omp_parallel): Purge dead EH edges in the
child fn.

* g++.dg/gomp/pr34608.C: New test.

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

16 years agoRotate Fortran ChangeLogs.
tobi [Wed, 2 Jan 2008 17:54:50 +0000 (17:54 +0000)]
Rotate Fortran ChangeLogs.

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

16 years ago2008-01-02 Paolo Carlini <pcarlini@suse.de>
paolo [Wed, 2 Jan 2008 15:11:59 +0000 (15:11 +0000)]
2008-01-02  Paolo Carlini  <pcarlini@suse.de>

* ChangeLog rotation.

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

16 years agogcc/
rsandifo [Wed, 2 Jan 2008 13:04:11 +0000 (13:04 +0000)]
gcc/
* tree-sra.c (scalarize_init): Insert the generate_element_init
statements after the generate_element_zero statements.

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