platform/upstream/gcc.git
17 years agobuiltins-config.h: Ensure we use -std=c99 on solaris2.
Kaveh R. Ghazi [Sun, 8 Oct 2006 00:48:26 +0000 (00:48 +0000)]
builtins-config.h: Ensure we use -std=c99 on solaris2.

* gcc.dg/builtins-config.h: Ensure we use -std=c99 on solaris2.
* gcc.dg/torture/builtin-convert-1.c,
gcc.dg/torture/builtin-convert-2.c,
gcc.dg/torture/builtin-convert-3.c,
gcc.dg/torture/builtin-power-1.c: Use -std=c99 on solaris2.

From-SVN: r117548

17 years agoDaily bump.
GCC Administrator [Sun, 8 Oct 2006 00:17:14 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r117546

17 years agobool-1.c, [...]: Fix comment typos.
Kazu Hirata [Sat, 7 Oct 2006 21:06:03 +0000 (21:06 +0000)]
bool-1.c, [...]: Fix comment typos.

* gcc.dg/tree-ssa/bool-1.c, gcc.dg/tree-ssa/bool-2.c,
gcc.dg/tree-ssa/bool-4.c, gcc.dg/tree-ssa/bool-5.c,
gcc.dg/tree-ssa/bool-6.c, gcc.dg/tree-ssa/bool-8.c,
gcc.dg/tree-ssa/bool-9.c: Fix comment typos.

From-SVN: r117541

17 years agostruct-layout-encoding-1_generate.c: Xfail some tests for powerpc-darwin and powerpc...
Andrew Pinski [Sat, 7 Oct 2006 17:37:50 +0000 (10:37 -0700)]
struct-layout-encoding-1_generate.c: Xfail some tests for powerpc-darwin and powerpc-aix.

2006-10-07  Andrew Pinski  <pinskia@gmail.com>

        * objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c:
        Xfail some tests for powerpc-darwin and powerpc-aix.

From-SVN: r117540

17 years agore PR c/29380 (FAIL: gcc.dg/pr29330.c (test for excess errors))
Jakub Jelinek [Sat, 7 Oct 2006 16:50:23 +0000 (18:50 +0200)]
re PR c/29380 (FAIL: gcc.dg/pr29330.c (test for excess errors))

PR c/29380
* gcc.dg/pr29330.c: Add -std=gnu99 to dg-options.

From-SVN: r117539

17 years agore PR target/29300 (FAIL: gcc.dg/pthread-init-[12].c (test for excess errors))
John David Anglin [Sat, 7 Oct 2006 16:42:29 +0000 (16:42 +0000)]
re PR target/29300 (FAIL: gcc.dg/pthread-init-[12].c (test for excess errors))

PR target/29300
* gcc.dg/pthread-init-2.c (dg-options): Define _POSIX_C_SOURCE=199506L
on hppa*-*-hpux*.

From-SVN: r117538

17 years agore PR target/29300 (FAIL: gcc.dg/pthread-init-[12].c (test for excess errors))
John David Anglin [Sat, 7 Oct 2006 16:35:11 +0000 (16:35 +0000)]
re PR target/29300 (FAIL: gcc.dg/pthread-init-[12].c (test for excess errors))

PR target/29300
* inclhack.def (hpux_pthread_initializers): New hack.
* tests/base/sys/pthread.h: New file.

* fixincl.x: Regenerate.

From-SVN: r117537

17 years agointrinsic.c (add_functions): Add comments for gfc_check_access_func and gfc_resolve_i...
Francois-Xavier Coudert [Sat, 7 Oct 2006 13:49:35 +0000 (15:49 +0200)]
intrinsic.c (add_functions): Add comments for gfc_check_access_func and gfc_resolve_index_func.

* gcc/fortran/intrinsic.c (add_functions): Add comments for
gfc_check_access_func and gfc_resolve_index_func.

From-SVN: r117535

17 years agore PR fortran/16580 ([4.1 only] gfortran ICE on test g77.f-torture/execute/intrinsic77.f)
François-Xavier Coudert [Sat, 7 Oct 2006 13:34:16 +0000 (13:34 +0000)]
re PR fortran/16580 ([4.1 only] gfortran ICE on test g77.f-torture/execute/intrinsic77.f)

PR fortran/16580
PR fortran/29288

* gcc/fortran/intrinsic.c (add_sym): Define the actual_ok when a
gfc_intrinsic_sym structure is filled.
(gfc_intrinsic_actual_ok): New function.
(add_sym_0s, add_sym_1s, add_sym_2s, add_sym_3s, add_sym_4s,
add_sym_5s): Intrinsic subroutines are not allowed as actual
arguments, so we remove argument actual_ok.
(add_functions): Correct the values for actual_ok of all intrinsics.
(add_subroutines): Remove the actual_ok argument, which was never used.
* gcc/fortran/intrinsic.h (gfc_intrinsic_actual_ok): New prototype.
* gcc/fortran/gfortran.h (gfc_resolve_index_func): New prototype.
* gcc/fortran/resolve.c (resolve_actual_arglist): Check whether
an intrinsic used as an argument list is allowed there.
* gcc/fortran/iresolve.c (gfc_resolve_index_func): New function.
(gfc_resolve_len): Change intrinsic function name to agree with
libgfortran.
* gcc/fortran/trans-decl.c (gfc_get_extern_function_decl): Add
new case, because some specific intrinsics take 3 arguments.
* gcc/fortran/intrinsic.texi: DIMAG is a GNU extension.

* libgfortran/Makefile.am: Add the new files to the build
process, and rules to build them.
* libgfortran/Makefile.in: Regenerate.
* libgfortran/m4/misc_specifics.m4: New file.
* libgfortran/m4/specific.m4: Add new special cases for function
with complex argument and real result, like abs_c* and aimag_c*.
* libgfortran/intrinsics/f2c_specifics.F90: Add specifics for
AIMAG, ASINH, ACOSH and ATANH.
* libgfortran/generated/_aimag_c4.F90: New file.
* libgfortran/generated/_aimag_c8.F90: New file.
* libgfortran/generated/_asinh_r10.F90: New file.
* libgfortran/generated/_acosh_r16.F90: New file.
* libgfortran/generated/_aimag_c10.F90: New file.
* libgfortran/generated/_atanh_r16.F90: New file.
* libgfortran/generated/_acosh_r4.F90: New file.
* libgfortran/generated/_acosh_r8.F90: New file.
* libgfortran/generated/_asinh_r4.F90: New file.
* libgfortran/generated/_asinh_r8.F90: New file.
* libgfortran/generated/_asinh_r16.F90: New file.
* libgfortran/generated/_atanh_r4.F90: New file.
* libgfortran/generated/_atanh_r8.F90: New file.
* libgfortran/generated/_acosh_r10.F90: New file.
* libgfortran/generated/misc_specifics.F90: New file.
* libgfortran/generated/_aimag_c16.F90: New file.
* libgfortran/generated/_atanh_r10.F90: New file.

* gcc/testsuite/gfortran.fortran-torture/execute/specifics.f90:
Add tests for using all possible intrinsics as actual arguments.
* gcc/testsuite/gfortran.dg/specifics_1.f90: Add tests for using
all possible intrinsics as actual arguments.
* gcc/testsuite/gfortran.dg/specifics_2.f90: New file.
* gcc/testsuite/gfortran.dg/specifics_3.f90: New file.

From-SVN: r117534

17 years ago* sched-int.h: Fix comment typos.
Kazu Hirata [Sat, 7 Oct 2006 11:20:13 +0000 (11:20 +0000)]
* sched-int.h: Fix comment typos.

From-SVN: r117532

17 years ago* gimplify.c, sched-int.h: Fix comment typos.
Kazu Hirata [Sat, 7 Oct 2006 11:07:14 +0000 (11:07 +0000)]
* gimplify.c, sched-int.h: Fix comment typos.

From-SVN: r117531

17 years agodebug-1.c: Use -fno-if-conversion MIPS targets.
Richard Sandiford [Sat, 7 Oct 2006 09:22:20 +0000 (09:22 +0000)]
debug-1.c: Use -fno-if-conversion MIPS targets.

gcc/testsuite/
* gcc.dg/debug/debug-1.c: Use -fno-if-conversion MIPS targets.
* gcc.dg/debug/debug-2.c: Likewise.

From-SVN: r117530

17 years agostl_tree.h (_Rb_tree<>::erase(const _Key&)): Don't call std::distance unnecessarily.
Ion Gaztanaga [Sat, 7 Oct 2006 08:20:35 +0000 (08:20 +0000)]
stl_tree.h (_Rb_tree<>::erase(const _Key&)): Don't call std::distance unnecessarily.

2006-10-07  Ion Gaztanaga  <igaztanaga@gmail.com>
    Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_tree.h (_Rb_tree<>::erase(const _Key&)): Don't
call std::distance unnecessarily.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>
From-SVN: r117529

17 years agoDaily bump.
GCC Administrator [Sat, 7 Oct 2006 00:17:14 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r117525

17 years agosync-2.c: New test.
Uros Bizjak [Fri, 6 Oct 2006 22:24:04 +0000 (00:24 +0200)]
sync-2.c: New test.

* gcc.c-torture/compile/sync-2.c: New test.

From-SVN: r117519

17 years agoactual_array_substr_2.f90: Remove '\r's from line endings.
Tobias Schlüter [Fri, 6 Oct 2006 22:02:43 +0000 (00:02 +0200)]
actual_array_substr_2.f90: Remove '\r's from line endings.

* gfortran.dg/actual_array_substr_2.f90: Remove '\r's from
line endings.

From-SVN: r117518

17 years agoadd missed aprt of patch
Tobias Schlüter [Fri, 6 Oct 2006 21:50:18 +0000 (23:50 +0200)]
add missed aprt of patch

From-SVN: r117517

17 years agosched-int.h (IS_SPECULATION_CHECK_P, [...]): New macros.
Maxim Kuvyrkov [Fri, 6 Oct 2006 21:49:07 +0000 (21:49 +0000)]
sched-int.h (IS_SPECULATION_CHECK_P, [...]): New macros.

2006-10-06  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

* sched-int.h (IS_SPECULATION_CHECK_P, IS_SPECULATION_SIMPLE_CHECK_P):
New macros.
* sched-ebb.c (begin_schedule_ready): Use them.
* haifa-sched.c (schedule_insn, move_insn, try_ready,
add_to_speculative_block, create_check_block_twin, speculate_insn,
fix_jump_move, move_block_after_check): Ditto.
* sched-rgn.c (new_ready): Ditto.

From-SVN: r117516

17 years agore PR rtl-optimization/29128 (ICE: in move_block_after_check, at haifa-sched.c:4337)
Maxim Kuvyrkov [Fri, 6 Oct 2006 21:45:13 +0000 (21:45 +0000)]
re PR rtl-optimization/29128 (ICE: in move_block_after_check, at haifa-sched.c:4337)

2006-10-06  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

PR rtl-optimization/29128
* sched-int.h (IS_SPECULATION_BRANCHY_CHECK_P): New macro.
* sched-ebb.c (advance_target_bb): Use it to fix condition to
allow interblock movement of speculation checks.

* gcc.c-torture/compile/pr29128.c: New test.

From-SVN: r117515

17 years agoactual_array_constructor_2.f90: Remove '\r's from line endings.
Tobias Schlüter [Fri, 6 Oct 2006 21:40:14 +0000 (23:40 +0200)]
actual_array_constructor_2.f90: Remove '\r's from line endings.

        * gfortran.dg/actual_array_constructor_2.f90: Remove '\r's from
        line endings.

From-SVN: r117514

17 years agore PR target/29256 (loop performance regression)
Zdenek Dvorak [Fri, 6 Oct 2006 19:32:04 +0000 (21:32 +0200)]
re PR target/29256 (loop performance regression)

PR middle-end/29256
* tree-ssa-loop-ivopts.c (determine_base_object): Handle pointers
casted to integer type.
(get_address_cost): Decrease cost of [symbol + index] addressing modes
if they are significantly more expensive than [reg + index] ones.

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

From-SVN: r117513

17 years agore PR tree-optimization/29330 (-O -ftree-loop-linear --> virtual memory exhausted)
Jakub Jelinek [Fri, 6 Oct 2006 16:57:27 +0000 (18:57 +0200)]
re PR tree-optimization/29330 (-O -ftree-loop-linear   -->  virtual memory exhausted)

PR tree-optimization/29330
* tree-data-ref.c (free_data_ref): Use DR_FREE_ACCESS_FNS macro.
(initialize_data_dependence_relation): Clear DDR_LOOP_NEST pointer
on newly allocated ddrs.
(find_loop_nest_1, find_loop_nest): Change LOOP_NEST to a pointer
to VEC (loop_p, heap) pointer.
(compute_data_dependences_for_loop): Adjust caller.
(free_dependence_relations): Free DDR_LOOP_NEST.

* tree-loop-linear.c (linear_transform_loops): Don't forget to
free DEPENDENCE_RELATIONS and DATAREFS.

* gcc.dg/pr29330.c: New test.

From-SVN: r117509

17 years agore PR target/28924 (x86 sync builtins fail for char and short memory operands)
Jakub Jelinek [Fri, 6 Oct 2006 16:54:43 +0000 (18:54 +0200)]
re PR target/28924 (x86 sync builtins fail for char and short memory operands)

PR target/28924
* builtins.c (expand_builtin_sync_operation,
expand_builtin_compare_and_swap, expand_builtin_lock_test_and_set):
Use convert_to_mode to handle promoted arguments.

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

From-SVN: r117508

17 years ago* print-tree.c (print_node_brief, print_node): Print sign of Inf.
J"orn Rennecke [Fri, 6 Oct 2006 15:59:47 +0000 (15:59 +0000)]
* print-tree.c (print_node_brief, print_node): Print sign of Inf.

From-SVN: r117506

17 years ago* config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Define
J"orn Rennecke [Fri, 6 Oct 2006 14:44:18 +0000 (14:44 +0000)]
* config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Define

From-SVN: r117505

17 years agosync.md ("sync_add<mode>", [...]): Use <modeconstraint> instead of "r" as operand...
Uros Bizjak [Fri, 6 Oct 2006 11:51:29 +0000 (13:51 +0200)]
sync.md ("sync_add<mode>", [...]): Use <modeconstraint> instead of "r" as operand 1 constraint.

* config/i386/sync.md ("sync_add<mode>", "sync_sub<mode>",
"sync_ior<mode>", "sync_and<mode>", "sync_xor<mode>"):
Use <modeconstraint> instead of "r" as operand 1 constraint.

From-SVN: r117499

17 years agore PR libstdc++/29368 (wrong STL docs for rfind())
Paolo Carlini [Fri, 6 Oct 2006 11:47:56 +0000 (11:47 +0000)]
re PR libstdc++/29368 (wrong STL docs for rfind())

2006-10-06  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/29368
* include/bits/basic_string.h: Adjust rfind documentation.
* include/ext/vstring.h: Likewise.

From-SVN: r117496

17 years agore PR libstdc++/29354 (Error when seeking on an ostringstream)
Paolo Carlini [Fri, 6 Oct 2006 09:57:43 +0000 (09:57 +0000)]
re PR libstdc++/29354 (Error when seeking on an ostringstream)

2006-10-06  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/29354
* include/bits/sstream.tcc (basic_stringbuf<>::seekpos(pos_type,
ios_base::openmode)): Allow for seek to pos_type(off_type(0))
when the stream is empty.
* testsuite/27_io/basic_stringbuf/seekpos/char/29354.cc: New.
* testsuite/27_io/basic_stringbuf/seekpos/wchar_t/29354.cc: New.

From-SVN: r117494

17 years agogimplify.c (gimplify_type_sizes): Don't recurse on the pointed-to type.
Olivier Hainque [Fri, 6 Oct 2006 09:12:09 +0000 (09:12 +0000)]
gimplify.c (gimplify_type_sizes): Don't recurse on the pointed-to type.

* gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]:
Don't recurse on the pointed-to type.
* c-decl.c (grokdeclarator) [cdk_pointer]: If we are in a NORMAL or
DECL context, attach an artificial TYPE_DECL to anonymous pointed-to
types with components of variable size.

* testsuite/gcc.dg/typename-vla-1.c: New case.
* testsuite/gnat.dg/forward_vla.adb: New case.

From-SVN: r117493

17 years ago* config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.
Danny Smith [Fri, 6 Oct 2006 08:46:18 +0000 (08:46 +0000)]
* config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.

From-SVN: r117492

17 years agobarrier-1.c: Change timestamp tests from '<' to '<='.
Danny Smith [Fri, 6 Oct 2006 08:32:33 +0000 (08:32 +0000)]
barrier-1.c: Change timestamp tests from '<' to '<='.

* testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
'<' to '<='.

From-SVN: r117491

17 years agoacinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.
Danny Smith [Fri, 6 Oct 2006 08:25:32 +0000 (08:25 +0000)]
acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.

* acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.
* configure: Regenerate.
* fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.

From-SVN: r117490

17 years agoacinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.
Danny Smith [Fri, 6 Oct 2006 08:21:49 +0000 (08:21 +0000)]
acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.

* acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.
* configure: Regenerate.

From-SVN: r117489

17 years agoacinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.
Danny Smith [Fri, 6 Oct 2006 08:21:22 +0000 (08:21 +0000)]
acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.

* acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.
* configure: Regenerate.

From-SVN: r117488

17 years agore PR tree-optimization/29290 (SPEC CPU2000 178.galgel ICE using -O3 -ftree-loop...
Jakub Jelinek [Fri, 6 Oct 2006 07:27:28 +0000 (09:27 +0200)]
re PR tree-optimization/29290 (SPEC CPU2000 178.galgel ICE using -O3 -ftree-loop-linear)

PR tree-optimization/29290
* tree-loop-linear.c (linear_transform_loops): Bail if loop_nest has
multiple exits.

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

From-SVN: r117484

17 years agore PR target/29198 (Incorrect reference to __thread array with -fPIC -O2 on x86)
Jakub Jelinek [Fri, 6 Oct 2006 07:25:02 +0000 (09:25 +0200)]
re PR target/29198 (Incorrect reference to __thread array with -fPIC -O2 on x86)

PR target/29198
* config/i386/i386.c (legitimize_pic_address): Reject TLS symbols.
* config/i386/predicates.md (local_symbolic_operand): Likewise.

* gcc.dg/tls/opt-12.c: New test.

From-SVN: r117483

17 years agore PR fortran/28415 (4.2.0 ICE when using automatic array and -fno-automatic)
Jakub Jelinek [Fri, 6 Oct 2006 07:23:00 +0000 (09:23 +0200)]
re PR fortran/28415 (4.2.0 ICE when using automatic array and -fno-automatic)

PR fortran/28415
* trans-decl.c (gfc_finish_var_decl): With -fno-automatic, don't
make artificial variables or pointer to variable automatic array
TREE_STATIC.

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

From-SVN: r117482

17 years agore PR c/29091 (vector constant not fully outputed)
Jakub Jelinek [Fri, 6 Oct 2006 07:15:48 +0000 (09:15 +0200)]
re PR c/29091 (vector constant not fully outputed)

PR c/29091
* varasm.c (output_constant): If TREE_VECTOR_CST_ELTS chain is shorter than
the number of vector elements fill the rest with zeros.

* gcc.dg/pr29091.c: New test.

From-SVN: r117481

17 years agoscanner.c (skip_free_comments): Return bool instead of void.
Jakub Jelinek [Fri, 6 Oct 2006 07:10:55 +0000 (09:10 +0200)]
scanner.c (skip_free_comments): Return bool instead of void.

* scanner.c (skip_free_comments): Return bool instead of void.
(gfc_next_char_literal): Don't return ' ' if & is missing after
!$omp or !$.  Use skip_{free,fixed}_comments directly instead
of gfc_skip_comments.

From-SVN: r117480

17 years ago* lib/target-supports.exp
Joseph Myers [Fri, 6 Oct 2006 00:47:35 +0000 (01:47 +0100)]
* lib/target-supports.exp
(check_effective_target_vect_cmdline_needed): Handle i?86-*-* the
same as x86_64-*-*; check for LP64.

From-SVN: r117477

17 years agoDaily bump.
GCC Administrator [Fri, 6 Oct 2006 00:17:15 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r117475

17 years agoUpdate comment
Mike Stump [Thu, 5 Oct 2006 23:12:04 +0000 (23:12 +0000)]
Update comment

From-SVN: r117470

17 years agomips.c (mips_pass_by_reference): Do not return false for EABI if type is NULL.
Richard Sandiford [Thu, 5 Oct 2006 22:19:35 +0000 (22:19 +0000)]
mips.c (mips_pass_by_reference): Do not return false for EABI if type is NULL.

gcc/
* config/mips/mips.c (mips_pass_by_reference): Do not return false
for EABI if type is NULL.  Use a size check based on GET_MODE_SIZE
instead.

From-SVN: r117468

17 years agoMakefile.am: Use $(M4) instead of m4.
Steven G. Kargl [Thu, 5 Oct 2006 21:21:53 +0000 (21:21 +0000)]
Makefile.am: Use $(M4) instead of m4.

2006-10-05  Steven G. Kargl  <kargl@gcc.gnu.org>

* Makefile.am: Use $(M4) instead of m4.
* Makefile.in: Regenerated.

From-SVN: r117467

17 years ago* sv.po: Update.
Joseph Myers [Thu, 5 Oct 2006 17:03:18 +0000 (18:03 +0100)]
* sv.po: Update.

From-SVN: r117463

17 years agobfin.md (subsi3): Lose expander, change previously unnamed pattern into subsi3.
Bernd Schmidt [Thu, 5 Oct 2006 10:46:41 +0000 (10:46 +0000)]
bfin.md (subsi3): Lose expander, change previously unnamed pattern into subsi3.

* config/bfin/bfin.md (subsi3): Lose expander, change previously
unnamed pattern into subsi3.  Use correct constraints/predicates.
* config/bfin/bfin.h (CONST_OK_FOR_K): Handle "KN7".
* config/bfin/predicates.md (reg_or_neg7bit_operand_p): New.

From-SVN: r117455

17 years ago2006-10-05 Gary Benson <gbenson@redhat.com>
Gary Benson [Thu, 5 Oct 2006 09:32:57 +0000 (09:32 +0000)]
2006-10-05  Gary Benson  <gbenson@redhat.com>

* java/net/SocketPermission.java
(processHostport): Cope with IPv6 addresses with a
one-digit first component.

From-SVN: r117454

17 years agoloop.texi: Add data references analysis description.
Ira Rosen [Thu, 5 Oct 2006 08:47:11 +0000 (08:47 +0000)]
loop.texi: Add data references analysis description.

        * doc/loop.texi: Add data references analysis description.

From-SVN: r117453

17 years agogfortran.texi: (Current Status): update and rewrite to reflect actual status more...
Brooks Moses [Thu, 5 Oct 2006 04:58:18 +0000 (04:58 +0000)]
gfortran.texi: (Current Status): update and rewrite to reflect actual status more accurately.

2006-10-04  Brooks Moses  <bmoses@stanford.edu>

* gfortran.texi: (Current Status): update and rewrite to reflect
actual status more accurately.

From-SVN: r117449

17 years agoDaily bump.
GCC Administrator [Thu, 5 Oct 2006 00:17:15 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r117446

17 years agogfortran.texi: Consistently refer to the compiler as "GNU Fortran".
Brooks Moses [Wed, 4 Oct 2006 23:07:39 +0000 (23:07 +0000)]
gfortran.texi: Consistently refer to the compiler as "GNU Fortran".

2006-10-04  Brooks Moses  <bmoses@stanford.edu>

* gfortran.texi: Consistently refer to the compiler as "GNU
Fortran".
* intrinsic.texi: Ditto.
* invoke.texi: Ditto.

From-SVN: r117442

17 years agogcov.texi: Add formatting to "Invoking gcov" section head.
Brooks Moses [Wed, 4 Oct 2006 22:40:45 +0000 (22:40 +0000)]
gcov.texi: Add formatting to "Invoking gcov" section head.

2006-10-04  Brooks Moses  <bmoses@stanford.edu>

* doc/gcov.texi: Add formatting to "Invoking gcov" section head.

From-SVN: r117441

17 years agoMakefile.in (libgcc.mk, [...]): Add emutls.c.
Richard Henderson [Wed, 4 Oct 2006 21:09:20 +0000 (14:09 -0700)]
Makefile.in (libgcc.mk, [...]): Add emutls.c.

gcc/
        * Makefile.in (libgcc.mk, LIBGCC_DEPS): Add emutls.c.
        * builtin-types.def (BT_WORD): Make unsigned.
        (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
        * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
        (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
        * c-decl.c (grokdeclarator): Don't error if !have_tls.
        * c-parser.c (c_parser_omp_threadprivate): Likewise.
        * cgraph.c (decide_is_variable_needed): Look at force_output.
        Recurse for emulated tls.
        * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Remove
        checks redundant with decide_is_variable_needed.
        (cgraph_build_static_cdtor): Do cgraph_varpool_assemble_pending_decls.
        * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
        emulated tls.
        * expr.c (emutls_var_address): New.
        (expand_expr_real_1): Expand emulated tls.
        (expand_expr_addr_expr_1): Likewise.
        * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
        * output.h (emutls_finish): Declare.
        * toplev.c (compile_file): Call it.
        * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
        address before wrapping in CONST.
        * varasm.c (emutls_htab, emutls_object_type): New.
        (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
        (get_emutls_object_name, get_emutls_object_type): New.
        (get_emutls_init_templ_addr, emutls_decl): New.
        (emutls_common_1, emutls_finish): New.
        (assemble_variable): When emulating tls, swap decls; generate
        constructor for the emutls objects.
        (do_assemble_alias): When emulating tls, swap decl and target name.
        (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
        for emulated tls.
        * emutls.c: New file.
        * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
        tls_object for real tls.

gcc/cp/
        * decl.c (grokvardecl): Don't error if !have_tls.
        (grokdeclarator): Likewise.
        * parser.c (cp_parser_omp_threadprivate): Likewise.

gcc/fortran/
        * f95-lang.c (gfc_init_builtin_functions): Add __emutls_get_address
        and __emutls_register_common.
        * openmp.c (gfc_match_omp_threadprivate): Don't error if !have_tls.
        * trans-common.c (build_common_decl): Don't check have_tls.
        * trans-decl.c (gfc_finish_var_decl): Likewise.
        * types.def (BT_WORD, BT_FN_PTR_PTR): New.
        (BT_FN_VOID_PTR_WORD_WORD_PTR): New.

gcc/testsuite/
        * lib/target-supports.exp (check_effective_target_tls): Redefine
        to mean non-emulated tls.
        * gcc.dg/tls/alias-1.c: Remove tls requirement.
        * gcc.dg/tls/asm-1.c, gcc.dg/tls/debug-1.c, gcc.dg/tls/diag-1.c,
        gcc.dg/tls/diag-2.c, gcc.dg/tls/diag-3.c, gcc.dg/tls/diag-4.c,
        gcc.dg/tls/diag-5.c, gcc.dg/tls/init-1.c, gcc.dg/tls/nonpic-1.c,
        gcc.dg/tls/opt-10.c, gcc.dg/tls/opt-5.c, gcc.dg/tls/opt-6.c,
        gcc.dg/tls/opt-8.c, gcc.dg/tls/opt-9.c, gcc.dg/tls/pic-1.c,
        gcc.dg/tls/struct-1.c, gcc.dg/tls/trivial.c: Likewise.

From-SVN: r117440

17 years agoMAINTAINERS (Write After Approval): Add myself.
Brooks Moses [Wed, 4 Oct 2006 18:30:49 +0000 (18:30 +0000)]
MAINTAINERS (Write After Approval): Add myself.

2006-10-04  Brooks Moses  <bmoses@stanford.edu>

* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r117437

17 years ago[multiple changes]
Paul Thomas [Wed, 4 Oct 2006 16:54:19 +0000 (16:54 +0000)]
[multiple changes]

2006-10-04  Paul Thomas <pault@gcc.gnu.org>

PR fortran/29343
* resolve.c (resolve_allocate_expr): Exclude derived types from
search for dependences between allocated variables and the
specification expressions for other allocations in the same
statement.

2006-10-04  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29343
* gfortran.dg/alloc_alloc_expr_2.f90: New test.

From-SVN: r117435

17 years agoFix bug in constraint-check generator, reported by Rask Ingemann Lambertsen:
Zack Weinberg [Wed, 4 Oct 2006 16:41:55 +0000 (16:41 +0000)]
Fix bug in constraint-check generator, reported by Rask Ingemann Lambertsen:

Fix bug in constraint-check generator, reported by Rask Ingemann
Lambertsen:
* genpreds.c (add_constraint): Don't remove anything from the
expression here.
(write_tm_constrs_h): Detect whether "op" argument is used, and
mark it ARG_UNUSED if it isn't.
(write_insn_const_int_ok_for_constraint): Skip the part of the
expression that would test whether "op" (which is not available
here) is a CONST_INT.

From-SVN: r117433

17 years ago* gfortran.dg/bounds_check_fail_1.f90: New test.
Francois-Xavier Coudert [Wed, 4 Oct 2006 15:44:32 +0000 (17:44 +0200)]
* gfortran.dg/bounds_check_fail_1.f90: New test.

From-SVN: r117431

17 years agore PR c++/28448 (doc reference to -fdiagnostics-show-options looks like it should...
Ryan Mansfield [Wed, 4 Oct 2006 10:21:08 +0000 (10:21 +0000)]
re PR c++/28448 (doc reference to -fdiagnostics-show-options looks like it should be -fdiagnostics-show-option)

2006-10-02  Ryan Mansfield  <rmansfield@qnx.com>

PR c++/28448
* doc/invoke.texi (fdiagnostics-show-option): Fix typos.

From-SVN: r117429

17 years ago2.cc: Fail on Darwin 8.[0-4].* only.
Benjamin Kosnik [Wed, 4 Oct 2006 07:57:34 +0000 (07:57 +0000)]
2.cc: Fail on Darwin 8.[0-4].* only.

2006-10-04  Benjamin Kosnik  <bkoz@redhat.com>
    Mike Stump  <mrs@apple.com>

* testsuite/27_io/ios_base/storage/2.cc: Fail on Darwin 8.[0-4].* only.
* testsuite/23_containers/vector/resize/1.cc: Same.

Co-Authored-By: Mike Stump <mrs@apple.com>
From-SVN: r117428

17 years agopop_test.hpp: Correct typo.
Benjamin Kosnik [Wed, 4 Oct 2006 07:52:14 +0000 (07:52 +0000)]
pop_test.hpp: Correct typo.

2006-10-04  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/util/performance/priority_queue/mem_usage/
pop_test.hpp: Correct typo.
* testsuite/util/performance/assoc/mem_usage/
multimap_insert_test.hpp: Same.
* testsuite/util/performance/assoc/mem_usage/erase_test.hpp: Same.

From-SVN: r117427

17 years agore PR c++/29020 (ICE using A<N>::A instead of A<N> in friend declaration)
Mark Mitchell [Wed, 4 Oct 2006 06:53:55 +0000 (06:53 +0000)]
re PR c++/29020 (ICE using A<N>::A instead of A<N> in friend declaration)

PR c++/29020
* friend.c (do_friend): Improve comments; add assertion.
* parser.c (cp_parser_nested_name_specifier_opt): Resolve
typenames for qualified names used in declarations, even when
caching qualified name lookup.
PR c++/29020
* g++.dg/template/friend48.C: New test.

From-SVN: r117425

17 years agore PR fortran/29098 (allocation of a pointer to a derived type crashes)
Paul Thomas [Wed, 4 Oct 2006 04:48:35 +0000 (04:48 +0000)]
re PR fortran/29098 (allocation of a pointer to a derived type crashes)

2006-10-04  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29098
* resolve.c (resolve_structure_cons): Do not return FAILURE if
component expression is NULL.

2006-10-04  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29098
* gfortran.dg/default_initialization_2.f90: New test.

From-SVN: r117424

17 years agodarwin-libgcc.10.5.ver: Update to symbol list for current Leopard versions.
Geoffrey Keating [Wed, 4 Oct 2006 01:38:30 +0000 (01:38 +0000)]
darwin-libgcc.10.5.ver: Update to symbol list for current Leopard versions.

* config/i386/darwin-libgcc.10.5.ver: Update to symbol list for
current Leopard versions.
* config/rs6000/darwin-libgcc.10.5.ver: Likewise.

From-SVN: r117423

17 years agoDaily bump.
GCC Administrator [Wed, 4 Oct 2006 00:17:24 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r117421

17 years agore PR fortran/20779 (ALLOCATEing the STAT variable not detected)
Paul Thomas [Tue, 3 Oct 2006 21:40:24 +0000 (21:40 +0000)]
re PR fortran/20779 (ALLOCATEing the STAT variable not detected)

2006-10-03  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/20779
PR fortran/20891
* resolve.c (find_sym_in_expr): New function that returns true
if a symbol is found in an expression.
(resolve_allocate_expr): Check whether the STAT variable is
itself allocated in the same statement.  Use the call above to
check whether any of the allocated arrays are used in array
specifications in the same statement.

2006-10-03  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/20779
PR fortran/20891
* gfortran.dg/alloc_alloc_expr_1.f90: New test.

From-SVN: r117415

17 years agoarith.c (gfc_check_real_range): Use correct exponent range for subnormal numbers.
Steven G. Kargl [Tue, 3 Oct 2006 21:28:05 +0000 (21:28 +0000)]
arith.c (gfc_check_real_range): Use correct exponent range for subnormal numbers.

2006-10-03  Steven G. Kargl  <kargl@gcc.gnu.org>

* arith.c (gfc_check_real_range):  Use correct exponent range for
subnormal numbers.

From-SVN: r117414

17 years agore PR fortran/29284 (ICE for optional subroutine argument)
Paul Thomas [Tue, 3 Oct 2006 20:13:03 +0000 (20:13 +0000)]
re PR fortran/29284 (ICE for optional subroutine argument)

2006-10-03  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29284
PR fortran/29321
PR fortran/29322
* trans-expr.c (gfc_conv_function_call): Check the expression
and the formal symbol are present when testing the actual
argument.

PR fortran/25091
PR fortran/25092
* resolve.c (resolve_entries): It is an error if the entries
of an array-valued function do not have the same shape.

2006-10-03  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29284
* gfortran.dg/optional_assumed_charlen_1.f90: New test.

PR fortran/29321
PR fortran/29322
* gfortran.dg/missing_optional_dummy_2.f90: New test.

PR fortran/25091
PR fortran/25092
* gfortran.dg/entry_array_specs_1.f90: New test.

From-SVN: r117413

17 years agonearest_1.f90: Add -O0 because -ffloat-store is insufficient to inhibit some test...
Steven G. Kargl [Tue, 3 Oct 2006 19:18:09 +0000 (19:18 +0000)]
nearest_1.f90: Add -O0 because -ffloat-store is insufficient to inhibit some test failures at -O3.

2006-10-03  Steven G. Kargl  <kargl@gcc.gnu.org>

        * gfortran.dg/nearest_1.f90: Add -O0 because -ffloat-store is
        insufficient to inhibit some test failures at -O3.  Do testing
        on integers.

From-SVN: r117412

17 years agore PR c++/29138 (access declarations don't work for classes)
Mark Mitchell [Tue, 3 Oct 2006 18:39:32 +0000 (18:39 +0000)]
re PR c++/29138 (access declarations don't work for classes)

PR c++/29138
* decl2.c (grokfield): Don't handle access declarations here.
* parser.c (cp_parser_using_declaration): Handle access
declarations too.
(cp_parser_block_declaration): Adjust calls to
cp_parser_using_declaration.
(cp_parser_member_declaration): Likewise.  Use
cp_parser_using_declaration to look for access_declarations.
PR c++/29138
* g++.dg/inherit/access8.C: New test.
* g++.dg/template/dtor4.C: Tweak error messages.

From-SVN: r117411

17 years agore PR c++/29138 (access declarations don't work for classes)
Mark Mitchell [Tue, 3 Oct 2006 18:04:10 +0000 (18:04 +0000)]
re PR c++/29138 (access declarations don't work for classes)

PR c++/29138
* decl2.c (grokfield): Don't handle access declarations here.
* parser.c (cp_parser_using_declaration): Handle access
declarations too.
(cp_parser_block_declaration): Adjust calls to
cp_parser_using_declaration.
(cp_parser_member_declaration): Likewise.  Use
cp_parser_using_declaration to look for access_declarations.
PR c++/29138
* g++.dg/inherit/access8.C: New test.
* g++.dg/template/dtor4.C: Tweak error messages.

From-SVN: r117409

17 years agotestsuite_allocator.h (allocation_tracker): To tracker_allocator_counter.
Benjamin Kosnik [Tue, 3 Oct 2006 17:01:57 +0000 (17:01 +0000)]
testsuite_allocator.h (allocation_tracker): To tracker_allocator_counter.

2006-10-03  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/util/testsuite_allocator.h (allocation_tracker): To
tracker_allocator_counter.
(allocation_tracker::allocationTotal): To get_allocation_count.
(allocation_tracker::deallocationTotal): To get_deallocation_count.
(allocation_tracker::constructCount): To get_construct_count.
(allocation_tracker::destructCount): To get_destruct_count.
(allocation_tracker::resetCounts): To reset.
(tracker_alloc): To tracker_allocator.
* testsuite/util/performance/mem: Remove.
* testsuite/util/performance/mem/mem_track_allocator_base.hpp: Remove.
* testsuite/util/performance/mem/mem_track_allocator.hpp: Remove.
* testsuite/27_io/basic_stringbuf/4.cc: Adjust for new names
or includes.
* testsuite/ext/hash_set/check_construct_destroy.cc: Same.
* testsuite/ext/slist/check_construct_destroy.cc: Same.
* testsuite/performance/ext/pb_ds/
hash_random_int_erase_mem_usage.cc: Same.
* testsuite/performance/ext/pb_ds/multimap_text_insert_mem_usage.hpp
* testsuite/performance/ext/pb_ds/
priority_queue_text_pop_mem_usage.cc: Same.
* testsuite/23_containers/vector/capacity/2.cc: Same.
* testsuite/23_containers/vector/cons/4.cc: Same.
* testsuite/23_containers/vector/check_construct_destroy.cc: Same.
* testsuite/23_containers/deque/cons/2.cc: Same.
* testsuite/23_containers/deque/check_construct_destroy.cc: Same.
* testsuite/23_containers/list/check_construct_destroy.cc: Same.
* testsuite/23_containers/set/check_construct_destroy.cc: Same.
* testsuite/util/testsuite_allocator.h
* testsuite/util/performance/priority_queue/mem_usage/pop_test.hpp
* testsuite/util/performance/assoc/mem_usage/multimap_insert_test.hpp
* testsuite/util/performance/assoc/mem_usage/erase_test.hpp
* testsuite/util/testsuite_allocator.cc: Same.

From-SVN: r117408

17 years ago* utils.c: Fix a typo.
Kazu Hirata [Tue, 3 Oct 2006 16:36:41 +0000 (16:36 +0000)]
* utils.c: Fix a typo.

From-SVN: r117407

17 years ago* decl.c, utils.c: Fix comment typos.
Kazu Hirata [Tue, 3 Oct 2006 16:28:45 +0000 (16:28 +0000)]
* decl.c, utils.c: Fix comment typos.

From-SVN: r117405

17 years ago* doc/install.texi: Fix typos.
Kazu Hirata [Tue, 3 Oct 2006 16:26:54 +0000 (16:26 +0000)]
* doc/install.texi: Fix typos.

From-SVN: r117404

17 years agobuiltins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.
Eric Botcazou [Tue, 3 Oct 2006 16:25:00 +0000 (18:25 +0200)]
builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.

* builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.
* doc/tm.texi (Basic Stack Layout): Document FRAME_ADDR_RTX.
* config/sparc/sparc.h (FRAME_ADDR_RTX): Define.

From-SVN: r117403

17 years agoAdd PR numbers for previously installed fix.
Kaveh Ghazi [Tue, 3 Oct 2006 16:17:57 +0000 (16:17 +0000)]
Add PR numbers for previously installed fix.

From-SVN: r117399

17 years agonative_pq_tag.hpp: Remove.
Benjamin Kosnik [Tue, 3 Oct 2006 14:26:14 +0000 (14:26 +0000)]
native_pq_tag.hpp: Remove.

2006-10-03  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/util/native_type/priority_queue/native_pq_tag.hpp: Remove.
* testsuite/util/statistic/sample_var.hpp: Rename to...
* testsuite/util/statistic/sample_variance.hpp: ... this.
* testsuite/util/statistic/res_recorder.hpp: Rename to...
* testsuite/util/statistic/result_recorder.hpp: ... this.
* testsuite/util/statistic/sample_mean.hpp: Format.
* testsuite/util/statistic/sample_mean_confidence_checker.hpp: Same.
* testsuite/util/regression/trait/priority_queue/trait.hpp: Same.
* testsuite/util/regression/trait/erase_if_fn.hpp: Same.
* testsuite/util/regression/trait/assoc/trait.hpp: Same.
* testsuite/util/native_type/priority_queue/
native_priority_queue.hpp: Same.
* testsuite/util/native_type/assoc/native_tree_tag.hpp: Same.
* testsuite/util/native_type/assoc/native_hash_tag.hpp: Same.
* testsuite/util/native_type/assoc/native_hash_map.hpp: Same.
* testsuite/util/performance/priority_queue/timing/join_test.hpp: Same.
* testsuite/util/performance/priority_queue/timing/
modify_test.hpp: Same.
* testsuite/util/performance/assoc/timing/
subscript_insert_test.hpp: Same.
* testsuite/util/performance/time/timing_test_base.hpp: Same.

From-SVN: r117397

17 years agore PR middle-end/27478 (entry and addressable and value-expr: and the gimplifier)
François-Xavier Coudert [Tue, 3 Oct 2006 13:44:09 +0000 (13:44 +0000)]
re PR middle-end/27478 (entry and addressable and value-expr: and the gimplifier)

PR middle-end/27478

* trans-decl.c (gfc_get_fake_result_decl): Mark var as
TREE_ADDRESSABLE.

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

From-SVN: r117396

17 years ago2006-10-03 Gary Benson <gbenson@redhat.com>
Gary Benson [Tue, 3 Oct 2006 10:27:28 +0000 (10:27 +0000)]
2006-10-03  Gary Benson  <gbenson@redhat.com>

* java/net/InetAddress.java
(<clinit>): Reorder the static initializers.

From-SVN: r117394

17 years agore PR c++/29291 (ICE on invalid use of new)
Volker Reichelt [Tue, 3 Oct 2006 10:08:22 +0000 (10:08 +0000)]
re PR c++/29291 (ICE on invalid use of new)

PR c++/29291
* init.c (build_new): Check for invalid init.

* g++.dg/parse/new4.C: New test.

From-SVN: r117393

17 years ago* ChangeLog: Add missing entries to last entry.
Uros Bizjak [Tue, 3 Oct 2006 06:33:02 +0000 (08:33 +0200)]
* ChangeLog: Add missing entries to last entry.

From-SVN: r117389

17 years agopthread-init-common.h: Define _GNU_SOURCE.
Uros Bizjak [Tue, 3 Oct 2006 06:01:49 +0000 (08:01 +0200)]
pthread-init-common.h: Define _GNU_SOURCE.

        * gcc-dg/pthread-init-common.h: Define _GNU_SOURCE. Add tests for
        PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
        PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP,
        PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP and
        PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP mutex initializers.

From-SVN: r117387

17 years agoinclhack.def (glibc_mutex_init): Also fix PTHREAD_MUTEX_(RECURSIVE|ERRORCHECK|ADAPTIV...
Uros Bizjak [Tue, 3 Oct 2006 05:52:05 +0000 (07:52 +0200)]
inclhack.def (glibc_mutex_init): Also fix PTHREAD_MUTEX_(RECURSIVE|ERRORCHECK|ADAPTIVE)_NP and...

* inclhack.def (glibc_mutex_init): Also fix
PTHREAD_MUTEX_(RECURSIVE|ERRORCHECK|ADAPTIVE)_NP and
PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP initializers.

From-SVN: r117386

17 years agore PR fortran/19260 (& not required when splitting a token in continuation)
Jerry DeLisle [Tue, 3 Oct 2006 04:09:49 +0000 (04:09 +0000)]
re PR fortran/19260 (& not required when splitting a token in continuation)

2006-10-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/19260
* gfortran.dg/continuation.f90: Rename to continuation_1.f90.
* gfortran.dg/continuation_2.f90: New test.

PR fortran/19262
* gfortran.dg/continuation_3.f90: New test.
* gfortran.dg/continuation_4.f90: New test.
* gfortran.dg/continuation_5.f: New test.
* gfortran.dg/continuation_6.f: New test.

From-SVN: r117385

17 years agore PR fortran/19262 (more than thirty-nine continuation lines should issue a std...
Jerry DeLisle [Tue, 3 Oct 2006 03:58:20 +0000 (03:58 +0000)]
re PR fortran/19262 (more than thirty-nine continuation lines should issue a std-warn)

2006-10-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

    PR fortran/19262
    * gfortran.h (gfc_option_t): Add max_continue_fixed and max_continue_free.
    * options.c (gfc_init_options): Initialize fixed form and free form
    consecutive continuation line limits.
    * scanner.c (gfc_scanner_init_1): Initialize continue_line
    and continue_count. (gfc_next_char_literal): Count the number of
    continuation lines in the current statement and warn if
    limit is exceeded.

2006-10-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

    PR fortran/19260
    * scanner.c (gfc_next_char_literal): Add check for missing '&'
    and warn if in_string, otherwise return ' '.

From-SVN: r117384

17 years agounwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first arg to be struct mach_h...
Jack Howarth [Tue, 3 Oct 2006 01:20:22 +0000 (01:20 +0000)]
unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first arg to be struct mach_header_64* instead.

* unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first
arg to be struct mach_header_64* instead.

From-SVN: r117383

17 years agoDaily bump.
GCC Administrator [Tue, 3 Oct 2006 00:17:16 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r117381

17 years agore PR c++/29226 (ICE in make_decl_rtl, at varasm.c:886)
Mark Mitchell [Mon, 2 Oct 2006 22:21:02 +0000 (22:21 +0000)]
re PR c++/29226 (ICE in make_decl_rtl, at varasm.c:886)

PR c++/29226
* typeck.c (cxx_sizeof_or_alignof_type): Tidy.  In templates, do
not try to actually evaluate sizeof for a VLA type.
PR c++/29226
* g++.dg/template/vla1.C: New test.

From-SVN: r117375

17 years agorc_string_base.h (_M_compare<wchar_t>): Protect with _GLIBCXX_USE_WCHAR_T.
Paolo Carlini [Mon, 2 Oct 2006 16:09:19 +0000 (16:09 +0000)]
rc_string_base.h (_M_compare<wchar_t>): Protect with _GLIBCXX_USE_WCHAR_T.

2006-10-02  Paolo Carlini  <pcarlini@suse.de>

* include/ext/rc_string_base.h (_M_compare<wchar_t>):
Protect with _GLIBCXX_USE_WCHAR_T.
* include/ext/sso_string_base.h (_M_compare<wchar_t>):
Likewise.
(__sso_string_base<>::_M_destroy): Inline.

From-SVN: r117373

17 years agobasic_types.hpp (comp_hash_): Remove, format.
Benjamin Kosnik [Mon, 2 Oct 2006 14:53:41 +0000 (14:53 +0000)]
basic_types.hpp (comp_hash_): Remove, format.

2006-10-02  Benjamin Kosnik  <bkoz@redhat.com>

* include/ext/pb_ds/detail/basic_types.hpp (comp_hash_): Remove,
format.
* include/ext/pb_ds/detail/types_traits.hpp
(types_traits::comp_hash): Use pair typedef.
* include/ext/pb_ds/detail/hash_fn/ranged_probe_fn.hpp: Same.
* include/ext/pb_ds/detail/hash_fn/ranged_hash_fn.hpp: Same.

From-SVN: r117371

17 years ago2006-10-02 Gary Benson <gbenson@redhat.com>
Gary Benson [Mon, 2 Oct 2006 10:54:43 +0000 (10:54 +0000)]
2006-10-02  Gary Benson  <gbenson@redhat.com>

* java/net/InetAddress.java
(checkConnect): Reinstated.
(loopbackAddress): Ensure initialized from non-null object.

From-SVN: r117370

17 years agore PR fortran/29210 ([4.1 only] Name parameter in complex constant not allowed in...
Francois-Xavier Coudert [Mon, 2 Oct 2006 09:21:45 +0000 (11:21 +0200)]
re PR fortran/29210 ([4.1 only] Name parameter in complex constant not allowed in F95)

PR fortran/29210

* primary.c (match_sym_complex_part): Named constants as real or
imaginary part of complex a named constant are only allowed in
Fortran 2003.

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

From-SVN: r117368

17 years agore PR c/29154 (*(* ppointer++)++ = *pointer++ generates bad code)
Jakub Jelinek [Mon, 2 Oct 2006 06:11:49 +0000 (08:11 +0200)]
re PR c/29154 (*(* ppointer++)++ = *pointer++ generates bad code)

PR c/29154
* gimplify.c (gimplify_self_mod_expr): Run inner expression's post
side effects after the outer expression's post side effects.

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

From-SVN: r117366

17 years agore PR c++/29105 (segfault in add_candidates with a non template base class and a...
Mark Mitchell [Mon, 2 Oct 2006 04:12:51 +0000 (04:12 +0000)]
re PR c++/29105 (segfault in add_candidates with a non template base class and a template member function)

PR c++/29105
* pt.c (tsubst_baselink): Substituteinto the qualifying scope.
* semantics.c (baselink_for_fns): Build a baselink, even when
processing a template.
PR c++/29105
* g++.dg/template/member6.C: New test.
* g++.dg/parse/typename7.C: Adjust error markers.

From-SVN: r117361

17 years agore PR c++/29080 (Multiple-inheritance with template method function code triggers...
Mark Mitchell [Mon, 2 Oct 2006 04:12:30 +0000 (04:12 +0000)]
re PR c++/29080 (Multiple-inheritance with template method function code triggers "internal compiler error: in build_base_path, at cp/class.c:273")

PR c++/29080
* parser.c (cp_parser_postfix_dot_deref_expression): Use
BASELINK_ACCESS_BINFO as the qualifying scope when calling
adjust_result_of_qualified_name_lookup.
PR c++/29080
* g++.dg/template/member7.C: New test.

From-SVN: r117360

17 years agoDaily bump.
GCC Administrator [Mon, 2 Oct 2006 00:17:15 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r117357

17 years agorandom (xor_combine<>::_M_initialize_max_aux): New.
Paolo Carlini [Mon, 2 Oct 2006 00:12:50 +0000 (00:12 +0000)]
random (xor_combine<>::_M_initialize_max_aux): New.

2006-10-01  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/random (xor_combine<>::_M_initialize_max_aux): New.
(xor_combine<>::operator()()): Tweak per N2079.
* include/tr1/random.tcc (xor_combine<>::_M_initialize_max_aux):
Define.
(xor_combine<>::_M_initialize_max): Use it.
* testsuite/tr1/5_numerical_facilities/random/xor_combine/
cons/default.cc: Adjust.
* docs/html/ext/tr1.html: Adjust.

From-SVN: r117353

17 years agotree.h (DECL_FIELD_OFFSET, [...]): Fix comments to reflect actual behavior and relati...
Sandra Loosemore [Sun, 1 Oct 2006 23:38:08 +0000 (19:38 -0400)]
tree.h (DECL_FIELD_OFFSET, [...]): Fix comments to reflect actual behavior and relationship between...

2006-10-01  Sandra Loosemore  <sandra@codesourcery.com>

* gcc/tree.h (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET):  Fix
comments to reflect actual behavior and relationship between
DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET, and DECL_OFFSET_ALIGN.

* gcc/doc/c-tree.texi (Working with declarations): Fix documentation
of FIELD_DECL likewise.

From-SVN: r117352

17 years agogfortran.texi: Corrected references to MALLOC intrinsic.
Brooks Moses [Sun, 1 Oct 2006 19:11:31 +0000 (19:11 +0000)]
gfortran.texi: Corrected references to MALLOC intrinsic.

2006-10-01  Brooks Moses  <bmoses@stanford.edu>

* gfortran.texi: Corrected references to MALLOC intrinsic.
* invoke.texi: Minor cleanup and clarification to the Dialect
Options section.

From-SVN: r117350

17 years agore PR c/20533 (documentation: attribute 'used', applied to a variable)
Ryan Mansfield [Sun, 1 Oct 2006 19:03:24 +0000 (19:03 +0000)]
re PR c/20533 (documentation: attribute 'used', applied to a variable)

2006-10-01  Ryan Mansfield  <rmansfield@qnx.com>

PR c/20533
* doc/extend.texi: Add used variable attribute description.

From-SVN: r117349