platform/upstream/gcc.git
17 years agorandom.tcc: Fixup long line.
Benjamin Kosnik [Tue, 17 Oct 2006 12:53:40 +0000 (12:53 +0000)]
random.tcc: Fixup long line.

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

* include/tr1/random.tcc: Fixup long line.

From-SVN: r117825

17 years agore PR libstdc++/28514 (libstdc++ vs. anonymous namespaces)
Benjamin Kosnik [Tue, 17 Oct 2006 11:56:21 +0000 (11:56 +0000)]
re PR libstdc++/28514 (libstdc++ vs. anonymous namespaces)

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

PR libstdc++/28514
* include/bits/cpp_type_traits.h (__detail): Uglify namespace.
* include/ext/rope: Remove global-scope anonymous namespace, use
nested __detail. Fixup resulting formatting issues.
* include/ext/ropeimpl.h: Same.
* include/tr1/hashtable_policy.h: Remove anonymous namespace
nesting for __detail.
* include/tr1/random: Revert anonymous namespace to nested
__detail namespace.
* include/tr1/random.tcc: Same.
* src/ext-inst.cc: Fixups for above.

From-SVN: r117824

17 years agoAdd PR number to ChangeLog entry.
Richard Sandiford [Tue, 17 Oct 2006 07:03:49 +0000 (07:03 +0000)]
Add PR number to ChangeLog entry.

From-SVN: r117820

17 years agolinux.h (SUBTARGET_CC1_SPEC): Override.
Andrew Pinski [Tue, 17 Oct 2006 07:02:39 +0000 (07:02 +0000)]
linux.h (SUBTARGET_CC1_SPEC): Override.

gcc/
2006-10-17  Andrew Pinsiki  <pinskia@gmail.com>
    Richard Sandiford  <richard@codesourcery.com>

* config/mips/linux.h (SUBTARGET_CC1_SPEC): Override.
* config/mips/mips.h (CC1_SPEC): Override any earlier definition.

Co-Authored-By: Richard Sandiford <richard@codesourcery.com>
From-SVN: r117819

17 years agoMakefile.in: Add TEXI2PDF definition.
Brooks Moses [Tue, 17 Oct 2006 04:24:13 +0000 (04:24 +0000)]
Makefile.in: Add TEXI2PDF definition.

gcc/ada/
* Makefile.in: Add TEXI2PDF definition.
* Make-lang.in: Add "ada.pdf" target.
libada/
* Makefile.in: Add dummy "pdf" target.

From-SVN: r117818

17 years agonatevents.cc (env): Delete.
Geoffrey Keating [Tue, 17 Oct 2006 04:12:59 +0000 (04:12 +0000)]
natevents.cc (env): Delete.

* testsuite/libjava.jvmti/natevents.cc (env): Delete.
(ExceptionCB): Fix types for printf arguments.
(ExceptionCatchCB): Likewise.
(SingleStepCB): Likewise.
(BreakpointCB): Likewise.
(FieldAccessCB): Likewise.
(FieldModificationCB): Likewise.
(CompiledMethodLoadCB): Likewise.

From-SVN: r117817

17 years agosysv4.h (DBX_REGISTER_NUMBER): Move to rs6000.h.
Geoffrey Keating [Tue, 17 Oct 2006 03:59:43 +0000 (03:59 +0000)]
sysv4.h (DBX_REGISTER_NUMBER): Move to rs6000.h.

* config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Move to rs6000.h.
(DWARF2_FRAME_REG_OUT): Likewise.
* config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Move from sysv4.h.
(DWARF2_FRAME_REG_OUT): Likewise.

From-SVN: r117816

17 years agore PR c++/27270 (ICE in process_init_constructor_array, at cp/typeck2.c:788)
Mark Mitchell [Tue, 17 Oct 2006 02:01:27 +0000 (02:01 +0000)]
re PR c++/27270 (ICE in process_init_constructor_array, at cp/typeck2.c:788)

PR c++/27270
* typeck2.c (process_init_constructor_array): Reword comment.
* pt.c (tsubst_copy_and_built): Call reshape_init before calling
digest_init.
PR c++/27270
* g++.dg/ext/complit8.C: New test.

From-SVN: r117814

17 years agoarm.c (arm_rtx_costs_1): Handle multiply-accumulate.
Paul Brook [Tue, 17 Oct 2006 01:04:27 +0000 (01:04 +0000)]
arm.c (arm_rtx_costs_1): Handle multiply-accumulate.

2006-10-17  Paul Brook  <paul@codesourcery.com>

* config/arm/arm.c (arm_rtx_costs_1): Handle multiply-accumulate.

From-SVN: r117809

17 years agoFix typo
Mike Stump [Tue, 17 Oct 2006 00:49:07 +0000 (00:49 +0000)]
Fix typo

From-SVN: r117808

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

From-SVN: r117806

17 years agore PR c++/29408 (parse error for valid code)
Mark Mitchell [Mon, 16 Oct 2006 23:07:46 +0000 (23:07 +0000)]
re PR c++/29408 (parse error for valid code)

PR c++/29408
* parser.c (cp_parser_using_declaration): Stop parsing when
something goes wrong with an access declaration.
PR c++/29408
* g++.dg/parse/dtor12.C: New test.

From-SVN: r117800

17 years agore PR c++/29435 (seg fault with sizeof and templates)
Mark Mitchell [Mon, 16 Oct 2006 23:06:35 +0000 (23:06 +0000)]
re PR c++/29435 (seg fault with sizeof and templates)

PR c++/29435
* typeck.c (cxx_sizeof_or_alignof_type): Complete non-dependent
types when their sizes are required.  Refine test for VLAs.
PR c++/29435
* g++.dg/template/sizeof11.C: New test.

From-SVN: r117799

17 years ago* doc/invoke.texi (Darwin Options): Document -mkernel.
Mike Stump [Mon, 16 Oct 2006 23:06:26 +0000 (23:06 +0000)]
* doc/invoke.texi (Darwin Options): Document -mkernel.

From-SVN: r117798

17 years ago[multiple changes]
Paul Thomas [Mon, 16 Oct 2006 22:29:46 +0000 (22:29 +0000)]
[multiple changes]

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

PR fortran/20541
* trans-array.c (gfc_trans_array_bounds): Test for and set
negative stride of a non-constant bound array to zero.

PR fortran/29392
* data.c (create_character_intializer): Copy and simplify
the expressions for the start and end of a sub-string
reference.

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

PR fortran/29392
* gfortran.dg/data_char_3.f90: New test.

PR fortran/20541
* gfortran.dg/negative_automatic_size.f90: New test.

From-SVN: r117797

17 years ago* g++.dg/other/unused1.C : Match on '.ascii\t"name\000"' also.
David Daney [Mon, 16 Oct 2006 20:30:03 +0000 (20:30 +0000)]
* g++.dg/other/unused1.C : Match on '.ascii\t"name\000"' also.

From-SVN: r117796

17 years agoasm-4.c: Fix inline asm for darwin x86_64.
Eric Christopher [Mon, 16 Oct 2006 20:07:46 +0000 (20:07 +0000)]
asm-4.c: Fix inline asm for darwin x86_64.

2006-10-16  Eric Christopher  <echristo@apple.com>

        * gcc.target/i386/asm-4.c: Fix inline asm for darwin
        x86_64.

From-SVN: r117795

17 years agocontrib.texi, [...]: Standardize on "GNU Fortran" as the official name of the Fortran...
Brooks Moses [Mon, 16 Oct 2006 20:00:56 +0000 (20:00 +0000)]
contrib.texi, [...]: Standardize on "GNU Fortran" as the official name of the Fortran compiler.

* doc/contrib.texi, doc/install.texi, doc/standards.texi:
Standardize on "GNU Fortran" as the official name of the Fortran
compiler.

From-SVN: r117794

17 years agodarwin.h (SUBTARGET_OVERRIDE_OPTIONS): Add -mkernel support.
Mike Stump [Mon, 16 Oct 2006 19:53:29 +0000 (19:53 +0000)]
darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Add -mkernel support.

* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Add
-mkernel support.
(C_COMMON_OVERRIDE_OPTIONS): Add -mkernel support.  Add
SUBTARGET_C_COMMON_OVERRIDE_OPTIONS callout.
(CC1_SPEC): Don't turn on -fPIC when -mkernel is given.
(OS_MISSING_ALTIVEC): Add.
* config/i386/i386.c (override_options): Add
SUBSUBTARGET_OVERRIDE_OPTIONS callout.
* config/i386/darwin.h (CC1_SPEC): Don't turn on -fPIC when
-mkernel, -static or -mdynamic-no-pic is given.
(C_COMMON_OVERRIDE_OPTIONS): Add.
* config/darwin.opt (fapple-kext): Add.
(mkernel): Add.
* config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add
-fapple-kext, -findirect-virtual-calls, -fterminated-vtables and
-mkernel support.
(SUBSUBTARGET_OVERRIDE_OPTIONS): Add.
(SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Add.
(CPP_SPEC): Move defines for __DYNAMIC__ and __STATIC__ from here...
(SUBTARGET_ATTRIBUTE_TABLE): Add apple_kext_compatibility.
(TARGET_CXX_CDTOR_RETURNS_THIS): Add.
(flag_mkernel): Add.
(flag_apple_kext): Add.
(TARGET_KEXTABI): Add.
* config/darwin.c (darwin_handle_kext_attribute): Add.
(DARWIN_VTABLE_P): Add.
(darwin_binds_local_p): Add partial support for rebinding vtables
in kexts.
(darwin_kextabi_p): Add.
(darwin_override_options): Add.
* config/darwin-protos.h (darwin_handle_kext_attribute): Add.
(darwin_kextabi_p): Add.
(darwin_override_options): Add.
* config/darwin-c.c (darwin_cpp_builtins): ... move defines for
__DYNAMIC__ and __STATIC__ here.

From-SVN: r117793

17 years agosourcebuild.texi, [...]: Added mention of "make pdf" target, and Texinfo requirements...
Brooks Moses [Mon, 16 Oct 2006 19:51:55 +0000 (19:51 +0000)]
sourcebuild.texi, [...]: Added mention of "make pdf" target, and Texinfo requirements for same.

* doc/sourcebuild.texi, doc/makefile.texi, doc/install.texi:
Added mention of "make pdf" target, and Texinfo requirements for
same.

From-SVN: r117792

17 years agos390.c (s390_decompose_address): Allow symbol+offset into the GOT in case we need...
DJ Delorie [Mon, 16 Oct 2006 19:41:47 +0000 (15:41 -0400)]
s390.c (s390_decompose_address): Allow symbol+offset into the GOT in case we need a subreg of the address.

* config/s390/s390.c (s390_decompose_address): Allow symbol+offset
into the GOT in case we need a subreg of the address.

From-SVN: r117791

17 years agoMakefile.am (tr1_headers): Add new tuple_defs.h.
Douglas Gregor [Mon, 16 Oct 2006 19:08:22 +0000 (19:08 +0000)]
Makefile.am (tr1_headers): Add new tuple_defs.h.

2006-10-16  Douglas Gregor  <doug.gregor@gmail.com>

* include/Makefile.am (tr1_headers): Add new tuple_defs.h.
* include/Makefile.in (tr1_headers): Regenerate.
* include/tr1/tuple (tuple): Move declaration to tuple_defs.h.
(get): Ditto.
(operator==): Ditto.
(operator<): Ditto.
(operator!=): Ditto.
(operator>): Ditto.
(operator<=): Ditto.
(operator>=): Ditto.
(__stripped_tuple_type): Ditto.
Include tuple.defs.h
* include/tr1/tuple_iterate.h (tuple): Use
_GLIBCXX_TUPLE_ALL_TEMPLATE_PARAMS_UNNAMED macro instead of 10
"typename"s.
(tuple_element): Use _GLIBCXX_TUPLE_ALL_TEMPLATE_PARAMS and
_GLIBCXX_TYPLE_ALL_TEMPLATE_ARGS instead of 10
parameters/arguments.
* include/tr1/tuple_defs.h: New header, contains declarations and
definitions for the tuple template with all arguments.
* include/tr1/repeat.h (_GLIBCXX_TUPLE_ALL_TEMPLATE_PARAMS): New.
(_GLIBCXX_TUPLE_ALL_TEMPLATE_PARAMS_UNNAMED): New.
(_GLIBCXX_TUPLE_ALL_TEMPLATE_ARGS): New.
(_GLIBCXX_TEMPLATE_PARAMS_NULL_CLASS): New.
(_GLIBCXX_TEMPLATE_ARGS_STRIPPED): New.
* scripts/gen_includers.pl: Update.
* scripts/gen_includers2.pl: New.

From-SVN: r117790

17 years agoPR libstdc++/29095 continued
Benjamin Kosnik [Mon, 16 Oct 2006 17:22:38 +0000 (17:22 +0000)]
PR libstdc++/29095 continued

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

PR libstdc++/29095 continued
* testsuite/lib/libstdc++.exp (v3_target_compile_as_c): Additions
so that testing not in the build directory works for the "C"
target language.

From-SVN: r117788

17 years agore PR c++/28211 (wrong linkage of template argument, diagnostic could be improved)
Mark Mitchell [Mon, 16 Oct 2006 17:02:07 +0000 (17:02 +0000)]
re PR c++/28211 (wrong linkage of template argument, diagnostic could be improved)

PR c++/28211
* parser.c (cp_parser_template_argument): Don't consider "&var" a
possible constant-expression.
* pt.c (convert_nontype_argument): Refine handling of arguments of
pointer type.
PR c++/28211
* g++.dg/tc1/dr49.C: Tweak error messages.
* g++.dg/parse/template21.C: New test.

From-SVN: r117787

17 years agoio.c (gfc_match_close): Ensure that status is terminated by a NULL element.
Kaz Kojima [Mon, 16 Oct 2006 12:22:04 +0000 (21:22 +0900)]
io.c (gfc_match_close): Ensure that status is terminated by a NULL element.

* io.c (gfc_match_close): Ensure that status is terminated by
a NULL element.

From-SVN: r117785

17 years agotrans-stmt.c: Fix a typo
Tobias Burnus [Mon, 16 Oct 2006 11:17:29 +0000 (13:17 +0200)]
trans-stmt.c: Fix a typo

2006-10-16  Tobias Burnus <burnus@net-b.de>

       * trans-stmt.c: Fix a typo
       * invoke.texi: Fix typos
       * resolve.c: Fix a comment typo
       * trans-decl.c: Fix a comment typo
       * primary.c: Fix a comment typo

From-SVN: r117781

17 years agoMAINTAINERS (Write After Approval): Add myself.
Tobias Burnus [Mon, 16 Oct 2006 11:10:49 +0000 (13:10 +0200)]
MAINTAINERS (Write After Approval): Add myself.

2006-10-16  Tobias Burnus  <burnus@net-b.de>

       * MAINTAINERS (Write After Approval): Add myself.

From-SVN: r117780

17 years agobasic_string.tcc (_Rep::_S_create): Call _M_set_sharable() for backwards compatibility.
Jakub Jelinek [Mon, 16 Oct 2006 09:51:14 +0000 (11:51 +0200)]
basic_string.tcc (_Rep::_S_create): Call _M_set_sharable() for backwards compatibility.

* include/bits/basic_string.tcc (_Rep::_S_create): Call
_M_set_sharable() for backwards compatibility.

From-SVN: r117777

17 years agore PR target/25519 (Intel (SSE/MMX) intrinsics should only be mentioned instead of...
Richard Guenther [Mon, 16 Oct 2006 08:36:03 +0000 (08:36 +0000)]
re PR target/25519 (Intel (SSE/MMX) intrinsics should only be mentioned instead of the builtins)

2006-10-16  Richard Guenther  <rguenther@suse.de>

PR target/25519
* doc/extend.texi (X86 Built-in Functions): Fix typos in
SSE builtin documentation.  Document SSE2 builtins.

From-SVN: r117774

17 years agoconfigure.ac: Enable checking assembler dwarf2 support for score target.
Chen Liqin [Mon, 16 Oct 2006 06:47:57 +0000 (06:47 +0000)]
configure.ac: Enable checking assembler dwarf2 support for score target.

        * gcc/configure.ac: Enable checking assembler dwarf2 support for score
        target.
        * gcc/configure: Regenerate.

From-SVN: r117773

17 years agoconfig.guess: Import latest version.
Ben Elliston [Mon, 16 Oct 2006 03:27:17 +0000 (03:27 +0000)]
config.guess: Import latest version.

* config.guess: Import latest version.
* config.sub: Likewise.

From-SVN: r117772

17 years agocrti.asm: add pic support.
Tan Shengguo [Mon, 16 Oct 2006 02:13:06 +0000 (02:13 +0000)]
crti.asm: add pic support.

        * config/score/crti.asm: add pic support.
        * config/score/crtn.asm: add pic support.
        * config/score/score.h: remove builtin_define("__pic__").
        * config/score/score.c: add TARGET_RTX_COST macro.
        * config/score/score.md: PIC support for call/sibcall pattern.
        * config/score/mul-div.S: add pic support.
        * config/score/t-score-elf: update MULTILIB_OPTIONS.
        * ChangeLog: add shengguo as another score maintainer.
        * config.sub: add score support in it.

From-SVN: r117771

17 years agopa64-hpux.h (LINK_SPEC): Force __cxa_finalize to be an undefined symbol in the output...
John David Anglin [Mon, 16 Oct 2006 01:31:22 +0000 (01:31 +0000)]
pa64-hpux.h (LINK_SPEC): Force __cxa_finalize to be an undefined symbol in the output file for...

* pa64-hpux.h (LINK_SPEC): Force __cxa_finalize to be an undefined
symbol in the output file for non-shared links when -nostdlib or
-nodefaultlibs isn't specified.

From-SVN: r117769

17 years agore PR middle-end/20491 (internal compiler error: in subreg_regno_offset, at rtlanal...
John David Anglin [Mon, 16 Oct 2006 01:05:51 +0000 (01:05 +0000)]
re PR middle-end/20491 (internal compiler error: in subreg_regno_offset, at rtlanal.c:3042)

PR middle-end/20491
gcc.dg/torture/asm-subreg-1.c: Skip on hppa*64*-*-*.

From-SVN: r117766

17 years agore PR fortran/29403 ([4.1 only] print ('(a)') not working, print '(a) works)
Steven G. Kargl [Mon, 16 Oct 2006 00:54:01 +0000 (00:54 +0000)]
re PR fortran/29403 ([4.1 only] print ('(a)') not working, print '(a) works)

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

        PR fortran/29403
        * gfortran.dg/print_1.f90: New test.

From-SVN: r117765

17 years agore PR fortran/29403 ([4.1 only] print ('(a)') not working, print '(a) works)
Steven G. Kargl [Mon, 16 Oct 2006 00:51:46 +0000 (00:51 +0000)]
re PR fortran/29403 ([4.1 only] print ('(a)') not working, print '(a) works)

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

    PR fortran/29403
    * io.c (match_io):  Check for a default-char-expr for PRINT format.

From-SVN: r117764

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

From-SVN: r117762

17 years agoconfig.gcc (hppa*64*-*-hpux11*, [...]): Default to posix thread support.
John David Anglin [Sun, 15 Oct 2006 23:05:31 +0000 (23:05 +0000)]
config.gcc (hppa*64*-*-hpux11*, [...]): Default to posix thread support.

* config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*): Default to
posix thread support.

From-SVN: r117756

17 years agore PR middle-end/29241 ([non unit-at-a-time] ICE with always inline)
Jan Hubicka [Sun, 15 Oct 2006 19:46:26 +0000 (21:46 +0200)]
re PR middle-end/29241 ([non unit-at-a-time] ICE with always inline)

PR middle-end/29241
* cgraphunit.c (cgraph_preserve_function_body_p): Preserve functions
declared always_inline even when not inlining.

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

From-SVN: r117753

17 years agocgraphunit.c: Fix goof in previous commit.
Richard Biener [Sun, 15 Oct 2006 19:08:29 +0000 (19:08 +0000)]
cgraphunit.c: Fix goof in previous commit.

2006-10-15  Richard Guenther  <rguenther@suse.de>

* cgraphunit.c: Fix goof in previous commit.

From-SVN: r117752

17 years agoCosmetic tweak to previous checkin.
Eric Botcazou [Sun, 15 Oct 2006 17:16:36 +0000 (17:16 +0000)]
Cosmetic tweak to previous checkin.

From-SVN: r117751

17 years agore PR middle-end/29111 (FAIL: gcc.dg/torture/pr26565.c -O0 execution test)
Eric Botcazou [Sun, 15 Oct 2006 16:57:39 +0000 (18:57 +0200)]
re PR middle-end/29111 (FAIL: gcc.dg/torture/pr26565.c  -O0  execution test)

PR middle-end/29111
* builtins.c (get_pointer_alignment): Return 0 if TER is not run.

Co-Authored-By: Andrew Pinski <pinskia@gmail.com>
Co-Authored-By: John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
From-SVN: r117750

17 years agoFix some whitespace issues in the changelog.
Andrew Pinski [Sun, 15 Oct 2006 16:45:15 +0000 (09:45 -0700)]
Fix some whitespace issues in the changelog.

From-SVN: r117749

17 years agoFix some whitespace issues in the changelog.
Andrew Pinski [Sun, 15 Oct 2006 16:40:53 +0000 (09:40 -0700)]
Fix some whitespace issues in the changelog.

From-SVN: r117748

17 years agore PR target/29250 (internal compiler error: in extract_insn, at recog.c:2084)
David Edelsohn [Sun, 15 Oct 2006 16:21:14 +0000 (16:21 +0000)]
re PR target/29250 (internal compiler error: in extract_insn, at recog.c:2084)

        PR middle-end/29250
        * gcc.c-torture/compile/pr29250.c: New test.

From-SVN: r117747

17 years agore PR middle-end/29299 (gcc "used" attribute has no effect on local-scope static...
Jan Hubicka [Sun, 15 Oct 2006 16:20:06 +0000 (16:20 +0000)]
re PR middle-end/29299 (gcc "used" attribute has no effect on local-scope static variables)

PR middle-end/29299
* cgraphunit.c (cgraph_finalize_compilation_unit): Call
process_function_and_variable_attributes on all variables, including
those discovered during cgraph construction phase.

From-SVN: r117746

17 years agoistream.tcc (getline(basic_istream<>&, basic_string<>&)): Move...
Paolo Carlini [Sun, 15 Oct 2006 14:43:50 +0000 (14:43 +0000)]
istream.tcc (getline(basic_istream<>&, basic_string<>&)): Move...

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

* include/bits/istream.tcc (getline(basic_istream<>&,
basic_string<>&)): Move...
* include/bits/basic_string.h: ... here.
(operator<<(basic_ostream<>&, const basic_string<>&)): Mark inline.

From-SVN: r117745

17 years agofinal.c: Update Copyright year.
Bernhard Fischer [Sun, 15 Oct 2006 12:40:07 +0000 (14:40 +0200)]
final.c: Update Copyright year.

2006-10-15  Bernhard Fischer  <aldot@gcc.gnu.org>

        * final.c: Update Copyright year. Commentary typo fix. Fix whitespace

From-SVN: r117744

17 years agore PR fortran/24767 (gfortran: -Wno-unused-label does not work properly)
Bernhard Fischer [Sun, 15 Oct 2006 12:12:59 +0000 (14:12 +0200)]
re PR fortran/24767 (gfortran: -Wno-unused-label does not work properly)

fortran/ChangeLog

2006-10-13  Bernhard Fischer  <aldot@gcc.gnu.org>

        PR fortran/24767
        * lang.opt (Wunused-labels): Remove.
        * options.c: Remove references to gfc_option.warn_unused_labels.
        * gfortran.h: Remove variable warn_unused_labels.
        * resolve.c (warn_unused_fortran_label) : Use warn_unused_label
        instead of gfc_option.warn_unused_labels.
        * invoke.texi: Remove documentation of -Wunused-labels.

testsuite/ChangeLog

2006-10-13  Bernhard Fischer  <aldot@gcc.gnu.org>

        PR fortran/24767
        * gfortran.dg/label_4.f90: Adjust warning flag.

From-SVN: r117743

17 years agomake_exports.pl: Use -_ rather than --strip-underscores or --strip-underscore.
Geoffrey Keating [Sun, 15 Oct 2006 07:52:18 +0000 (07:52 +0000)]
make_exports.pl: Use -_ rather than --strip-underscores or --strip-underscore.

* scripts/make_exports.pl: Use -_ rather than --strip-underscores
or --strip-underscore.

From-SVN: r117742

17 years agoIndex: config/ChangeLog
Geoffrey Keating [Sun, 15 Oct 2006 07:42:57 +0000 (07:42 +0000)]
Index: config/ChangeLog
2006-10-14  Geoffrey Keating  <geoffk@apple.com>

* multi.m4: New file, from automake version 2 branch.

Index: libgomp/ChangeLog
2006-10-14  Geoffrey Keating  <geoffk@apple.com>

* aclocal.m4: Regenerate.
* configure: Regenerate.

Index: libstdc++-v3/ChangeLog
2006-10-14  Geoffrey Keating  <geoffk@apple.com>

* aclocal.m4: Regenerate.
* configure: Regenerate with released autoconf-2.59.

Index: libobjc/ChangeLog
2006-10-14  Geoffrey Keating  <geoffk@apple.com>

* Makefile.in: Use multi_basedir instead of toplevel_srcdir.
* configure.ac: Use multi.m4 from aclocal rather than custom
code.  Use multi_basedir instead of toplevel_srcdir.
* aclocal.m4: Regenerate.
* configure: Regenerate.

Index: libssp/ChangeLog
2006-10-14  Geoffrey Keating  <geoffk@apple.com>

* aclocal.m4: Regenerate.
* configure: Regenerate.

From-SVN: r117741

17 years agogfortran.texi: Add link to GFortran apps
Tobias Burnus [Sun, 15 Oct 2006 06:32:42 +0000 (08:32 +0200)]
gfortran.texi: Add link to GFortran apps

2006-10-14  Tobias Burnus  <burnus@net-b.de>
* gfortran.texi: Add link to GFortran apps
* intrinsic.texi: Updated documentation of ACCESS and CHMOD

From-SVN: r117740

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

From-SVN: r117738

17 years agojava-insns.h (enum java_code): Add op_breakpoint.
Keith Seitz [Sat, 14 Oct 2006 20:11:12 +0000 (20:11 +0000)]
java-insns.h (enum java_code): Add op_breakpoint.

        * include/java-insns.h (enum java_code): Add op_breakpoint.
        * include/java-interp.h (_Jv_InterpMethod): Declare breakpoint_insn.
        [INTERPRETER]: Declare _Jv_InterpMethod::bp_insn_slot.
        [!INTERPRETER]: Declare _Jv_InterpMethod::bp_insn_opcode.
        (install_break): Declare.
        * interpret.cc (breakpoint_insn): Define breakpoint insn.
        (compile): Add op_breakpoint to "can't happen" cases.
        [INTERPRETER] Initialize breakpoint insn if necessary.
        (install_break): New method.
        * interpret-run.cc: Add op_breakpoint to insn_targets.
        Add insn_breakpoint label.
        * verify.cc (branch_prepass): Add op_breakpoint to unrecognized
        opcodes section of switch statement.
        (verify_instructions_0): Likewise.

From-SVN: r117734

17 years agore PR fortran/19261 (continuation character illegal as first non-blank character...
Jerry DeLisle [Sat, 14 Oct 2006 15:06:34 +0000 (15:06 +0000)]
re PR fortran/19261 (continuation character illegal as first non-blank character in statement)

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

PR fortran/19261
* scanner.c (load_line): Add checks for illegal use of '&' and issue
warnings.  Issue errors with -pedantic.

From-SVN: r117733

17 years agore PR fortran/29371 (Coredump when using -fbounds-check with pointer & nullify)
Paul Thomas [Sat, 14 Oct 2006 13:09:56 +0000 (13:09 +0000)]
re PR fortran/29371 (Coredump when using -fbounds-check with pointer & nullify)

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

PR fortran/29371
* trans-expr.c (gfc_trans_pointer_assignment): Add the expression
for the assignment of null to the data field to se->pre, rather
than block.

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

PR fortran/29371
* gfortran.dg/nullify_3.f90: New test.

From-SVN: r117732

17 years agoindex.html: Update.
Paolo Carlini [Sat, 14 Oct 2006 11:15:45 +0000 (11:15 +0000)]
index.html: Update.

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

* docs/html/faq/index.html: Update.
* docs/html/faq/index.txt: Regenerate.

From-SVN: r117731

17 years agoostream.tcc (operator<<(basic_ostream<>&, const char*)): Further fix for throwing...
Paolo Carlini [Sat, 14 Oct 2006 10:25:35 +0000 (10:25 +0000)]
ostream.tcc (operator<<(basic_ostream<>&, const char*)): Further fix for throwing widen.

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

* include/bits/ostream.tcc (operator<<(basic_ostream<>&,
const char*)): Further fix for throwing widen.

From-SVN: r117730

17 years agoostream.tcc (operator<<(basic_ostream<>&, const char*)): Fix thinko in change for...
Paolo Carlini [Sat, 14 Oct 2006 09:51:32 +0000 (09:51 +0000)]
ostream.tcc (operator<<(basic_ostream<>&, const char*)): Fix thinko in change for libstdc++/28277, avoid memory leaks.

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

* include/bits/ostream.tcc (operator<<(basic_ostream<>&,
const char*)): Fix thinko in change for libstdc++/28277,
avoid memory leaks.

From-SVN: r117729

17 years agopthread-init-2.c (dg-options): Define _POSIX_C_SOURCE=199506L on Solaris 2.5.1 too.
Eric Botcazou [Sat, 14 Oct 2006 09:19:50 +0000 (11:19 +0200)]
pthread-init-2.c (dg-options): Define _POSIX_C_SOURCE=199506L on Solaris 2.5.1 too.

* gcc.dg/pthread-init-2.c (dg-options): Define _POSIX_C_SOURCE=199506L
on Solaris 2.5.1 too.

From-SVN: r117728

17 years ago* config/i386/athlon.md (athlon_fist): Add fisttp.
Uros Bizjak [Sat, 14 Oct 2006 05:22:13 +0000 (07:22 +0200)]
* config/i386/athlon.md (athlon_fist): Add fisttp.

From-SVN: r117725

17 years agore PR target/29250 (internal compiler error: in extract_insn, at recog.c:2084)
David Edelsohn [Sat, 14 Oct 2006 03:03:23 +0000 (03:03 +0000)]
re PR target/29250 (internal compiler error: in extract_insn, at recog.c:2084)

2006-10-13  David Edelsohn  <edelsohn@gnu.org>
            Ian Lance Taylor  <ian@airs.com>

        PR middle-end/29250
        * expr.c (expand_expr_real_1) <NON_LVALUE_EXPR, NOP_EXPR,
        CONVERT_EXPR>: Change EXPAND_SUM modifier to EXPAND_NORMAL when
        recursing.

Co-Authored-By: Ian Lance Taylor <ian@airs.com>
From-SVN: r117724

17 years agoscore.c, score.h: Fix comment typos.
Kazu Hirata [Sat, 14 Oct 2006 01:55:31 +0000 (01:55 +0000)]
score.c, score.h: Fix comment typos.

* config/score/score.c, config/score/score.h: Fix comment
typos.

From-SVN: r117723

17 years agointrinsic.texi: Fix typos.
Kazu Hirata [Sat, 14 Oct 2006 01:48:07 +0000 (01:48 +0000)]
intrinsic.texi: Fix typos.

* intrinsic.texi: Fix typos.
* trans-array.c: Fix a comment typo.

From-SVN: r117722

17 years agore PR bootstrap/29402 (Parallel make fails with --disable-bootstrap)
Kaveh R. Ghazi [Sat, 14 Oct 2006 01:25:39 +0000 (01:25 +0000)]
re PR bootstrap/29402 (Parallel make fails with --disable-bootstrap)

PR bootstrap/29402
* Makefile.in (ALL_GTFILES_H): Use $(sort ...) instead of
shell pipeline.

From-SVN: r117721

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

From-SVN: r117719

17 years agoistream.tcc (operator>>(__istream_type& (*)(__istream_type&)), operator>>(__ios_type...
Paolo Carlini [Fri, 13 Oct 2006 22:46:58 +0000 (22:46 +0000)]
istream.tcc (operator>>(__istream_type& (*)(__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)), operator>>(ios_base& (*)(ios_base&))): Move...

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

* include/bits/istream.tcc (operator>>(__istream_type&
(*)(__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
operator>>(ios_base& (*)(ios_base&))): Move...
* include/std/std_istream.h: ... here.
(operator>>(basic_istream<char,>&, unsigned char&),
operator>>(basic_istream<char,>&, signed char&),
operator>>(basic_istream<char,>&, unsigned char*),
operator>>(basic_istream<char,>&, signed char*)): Mark inline.
* include/bits/ostream.tcc (operator<<(__ostream_type&
(*)(__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
operator<<(ios_base& (*)(ios_base&))): Move...
* include/std/std_ostream.h: ... here.
(operator<<(basic_ostream<>&, _CharT),
operator<<(basic_ostream<>&, char),
operator<<(basic_ostream<char,>&, char),
operator<<(basic_ostream<char,>&, signed char),
operator<<(basic_ostream<char,>&, unsigned char),
operator<<(basic_ostream<>&, const _CharT*),
operator<<(basic_ostream<char,>&, const char*),
operator<<(basic_ostream<char,>&, const signed char*),
operator<<(basic_ostream<char,>&, const unsigned char*),
endl(basic_ostream<>&), ends(basic_ostream<>&),
flush(basic_ostream<>&)): Mark inline.

From-SVN: r117715

17 years agopr25993.c: Skip for darwin.
Eric Christopher [Fri, 13 Oct 2006 21:42:36 +0000 (21:42 +0000)]
pr25993.c: Skip for darwin.

2006-10-13  Eric Christopher  <echristo@apple.com>

        * gcc.dg/pr25993.c: Skip for darwin.

From-SVN: r117713

17 years agovisibility-11.c: Skip for darwin.
Eric Christopher [Fri, 13 Oct 2006 21:41:48 +0000 (21:41 +0000)]
visibility-11.c: Skip for darwin.

2006-10-13  Eric Christopher  <echristo@apple.com>

        * gcc.dg/visibility-11.c: Skip for darwin.

From-SVN: r117712

17 years agodarwin-weakimport-1.c: Use -fno-asynchronous-unwind-tables.
Eric Christopher [Fri, 13 Oct 2006 21:37:12 +0000 (21:37 +0000)]
darwin-weakimport-1.c: Use -fno-asynchronous-unwind-tables.

2006-10-13  Eric Christopher  <echristo@apple.com>

        * gcc.dg/darwin-weakimport-1.c: Use
        -fno-asynchronous-unwind-tables.
        * gcc.dg/darwin-weakimport-3.c: Ditto.

From-SVN: r117711

17 years agodarwin.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
Eric Christopher [Fri, 13 Oct 2006 21:35:19 +0000 (21:35 +0000)]
darwin.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.

2006-10-13  Eric Christopher  <echristo@apple.com>

        * config/darwin.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.

From-SVN: r117710

17 years agorevert: elfos.h (MAX_OFILE_ALIGNMENT): Default to largest alignment supported by...
Carlos O'Donell [Fri, 13 Oct 2006 21:28:28 +0000 (21:28 +0000)]
revert: elfos.h (MAX_OFILE_ALIGNMENT): Default to largest alignment supported by 32-bit ELF.

gcc/

2006-10-13  Carlos O'Donell  <carlos@codesourcery.com>

Revert this change:
2006-10-13  Carlos O'Donell  <carlos@codesourcery.com>
* config/elfos.h (MAX_OFILE_ALIGNMENT): Default to largest
alignment supported by 32-bit ELF.

From-SVN: r117709

17 years agodarwin.c (darwin_emit_unwind_label): Strip name encoding.
Eric Christopher [Fri, 13 Oct 2006 21:26:49 +0000 (21:26 +0000)]
darwin.c (darwin_emit_unwind_label): Strip name encoding.

2006-10-13  Eric Christopher  <echristo@apple.com>

        * config/darwin.c (darwin_emit_unwind_label): Strip
        name encoding. Use DECL_ASSEMBLER_NAME_SET_P.

From-SVN: r117708

17 years agore PR tree-optimization/29446 (VRP ICE in compare_names)
Richard Guenther [Fri, 13 Oct 2006 20:09:10 +0000 (20:09 +0000)]
re PR tree-optimization/29446 (VRP ICE in compare_names)

2006-10-13  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/29446
* tree-vrp.c (fix_equivalence_set): Remove.
(extract_range_from_assert): Do not call fix_equivalence_set.
(debug_value_range): Print a newline.
(compare_name_with_value): For equivalence sets with
inconsistent value ranges conservatively bail out.
(compare_names): Likewise.

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

From-SVN: r117705

17 years agospacing.m4: Use scalbn[f,l] if ldexp[f,l] is unavailable.
Steven G. Kargl [Fri, 13 Oct 2006 19:08:37 +0000 (19:08 +0000)]
spacing.m4: Use scalbn[f,l] if ldexp[f,l] is unavailable.

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

        * m4/spacing.m4: Use scalbn[f,l] if ldexp[f,l] is unavailable.
        * m4/rrspacing.m4: Ditto.
        * generated/spacing_r4.c: Regenerated.
        * generated/spacing_r8.c: Ditto.
        * generated/spacing_r10.c: Ditto.
        * generated/spacing_r16.c: Ditto.
        * generated/rrspacing_r4.c: Ditto.
        * generated/rrspacing_r8.c: Ditto.
        * generated/rrspacing_r10.c: Ditto.
        * generated/rrspacing_r16.c: Ditto.

From-SVN: r117703

17 years agoscope5.C: Changed "Class" to "Klasse".
Bill Wendling [Fri, 13 Oct 2006 18:38:24 +0000 (18:38 +0000)]
scope5.C: Changed "Class" to "Klasse".

* g++.old-deja/g++.brendan/scope5.C: Changed "Class" to "Klasse".
* g++.old-deja/g++.jason/hmc1.C: Likewise.
* g++.old-deja/g++.jason/cleanup2.C: Likewise.
* g++.old-deja/g++.law/shadow1.C: Likewise.
* g++.old-deja/g++.law/ctors10.C: Likewise.
* g++.dg/debug/namespace1.C: Likewise.
* g++.dg/inherit/namespace-as-base.C: Likewise.
* g++.dg/opt/delay-slot-1.C: Likewise.
* g++.dg/parse/defarg10.C: Likewise.
* g++.dg/template/ptrmem11.C: Likewise.
* g++.dg/template/mem_func_ptr.C: Likewise.
* g++.dg/template/spec19.C: Likewise.

From-SVN: r117702

17 years agointrinsic.texi (STAT): Reverted a format in example code to octal; noted this in...
Brooks Moses [Fri, 13 Oct 2006 17:20:50 +0000 (17:20 +0000)]
intrinsic.texi (STAT): Reverted a format in example code to octal; noted this in accompanying string.

* intrinsic.texi (STAT): Reverted a format in example code to
octal; noted this in accompanying string.

From-SVN: r117701

17 years agoinstall.texi (*-ibm-aix*): Add comment about 32-bit GMP and MPFR for gfortran.
David Edelsohn [Fri, 13 Oct 2006 16:41:59 +0000 (16:41 +0000)]
install.texi (*-ibm-aix*): Add comment about 32-bit GMP and MPFR for gfortran.

        * doc/install.texi (*-ibm-aix*): Add comment about 32-bit GMP
        and MPFR for gfortran.

From-SVN: r117700

17 years agoelfos.h (MAX_OFILE_ALIGNMENT): Default to largest alignment supported by 32-bit ELF.
Carlos O'Donell [Fri, 13 Oct 2006 16:01:38 +0000 (16:01 +0000)]
elfos.h (MAX_OFILE_ALIGNMENT): Default to largest alignment supported by 32-bit ELF.

gcc/

2006-10-13  Carlos O'Donell  <carlos@codesourcery.com>

* config/elfos.h (MAX_OFILE_ALIGNMENT): Default to largest
alignment supported by 32-bit ELF.

From-SVN: r117697

17 years ago../svn-commit.tmp
Paolo Bonzini [Fri, 13 Oct 2006 15:59:03 +0000 (15:59 +0000)]
../svn-commit.tmp

From-SVN: r117696

17 years agotree-flow-inline.h (zero_ssa_operands): Fix comment.
Daniel Berlin [Fri, 13 Oct 2006 14:24:08 +0000 (14:24 +0000)]
tree-flow-inline.h (zero_ssa_operands): Fix comment.

2006-10-13  Daniel Berlin <dberlin@dberlin.org>
    Ramana Radhakrishnan  <ramana.radhakrishnan@celunite.com>

* tree-flow-inline.h (zero_ssa_operands): Fix comment.

Co-Authored-By: Ramana Radhakrishnan <ramana.radhakrishnan@celunite.com>
From-SVN: r117694

17 years agore PR fortran/29373 (implicit type declaration and contained function clash)
Paul Thomas [Fri, 13 Oct 2006 12:51:07 +0000 (12:51 +0000)]
re PR fortran/29373 (implicit type declaration and contained function clash)

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

PR fortran/29373
* decl.c (get_proc_name, gfc_match_function_decl): Add
attr.implicit_type to conditions that throw error for
existing explicit interface and that allow new type-
spec to be applied.

PR fortran/29407
* resolve.c (resolve_fl_namelist): Do not check for
namelist/procedure conflict, if the symbol corresponds
to a good local variable declaration.

PR fortran/27701
* decl.c (get_proc_name): Replace the detection of a declared
procedure by the presence of a formal argument list by the
attributes of the symbol and the presence of an explicit
interface.

PR fortran/29232
* resolve.c (resolve_fl_variable): See if the host association
of a derived type is blocked by the presence of another type I
object in the current namespace.

PR fortran/29364
* resolve.c (resolve_fl_derived): Check for the presence of
the derived type for a derived type component.

PR fortran/24398
* module.c (gfc_use_module): Check that the first words in a
module file are 'GFORTRAN module'.

PR fortran/29422
* resolve.c (resolve_transfer): Test functions for suitability
for IO, as well as variables.

PR fortran/29428
* trans-expr.c (gfc_trans_scalar_assign): Remove nullify of
rhs expression.

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

PR fortran/29373
* gfortran.dg/implicit_9.f90: New test.

PR fortran/29407
* gfortran.dg/namelist_25.f90: New test.

PR fortran/27701
* gfortran.dg/same_name_2.f90: New test.

PR fortran/29232
* gfortran.dg/host_assoc_types_1.f90: New test.

PR fortran/29364
* gfortran.dg/missing_derived_type_1.f90: New test.
* gfortran.dg/implicit_actual.f90: Comment out USE GLOBAL.

PR fortran/29422
* gfortran.dg/alloc_comp_constraint_4.f90: New test.

PR fortran/29428
* gfortran.dg/alloc_comp_assign_5.f90: New test.

From-SVN: r117692

17 years agore PR fortran/29391 ([4.2/4.1 only] LBOUND and UBOUND are broken)
Francois-Xavier Coudert [Fri, 13 Oct 2006 12:20:28 +0000 (14:20 +0200)]
re PR fortran/29391 ([4.2/4.1 only] LBOUND and UBOUND are broken)

PR fortran/29391

* trans-intrinsic.c (gfc_conv_intrinsic_bound): Generate correct
code for LBOUND and UBOUND intrinsics.

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

From-SVN: r117691

17 years agoPR libstdc++/28277 (partial: ostream bits 2)
Paolo Carlini [Fri, 13 Oct 2006 09:00:31 +0000 (09:00 +0000)]
PR libstdc++/28277 (partial: ostream bits 2)

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

PR libstdc++/28277 (partial: ostream bits 2)
* include/std/std_ostream.h (basic_ostream<>::_M_insert(const
char_type*, streamsize)): New.
(basic_ostream<>::_M_write(char_type, streamsize)): Likewise.
(operator<<(basic_ostream<>&, _CharT), operator<<(basic_ostream<>&,
char), operator<<(basic_ostream<>&, const _CharT*),
operator<<(basic_ostream<>&, const char*)): Use the latter.
* include/bits/ostream.tcc (basic_ostream<>::_M_insert(const
char_type*, streamsize)): Define.
(operator<<(basic_ostream<>&, const char*)): Use the latter.
(operator<<(basic_ostream<>&, _CharT), operator<<(basic_ostream<>&,
char), operator<<(basic_ostream<>&, const _CharT*),
operator<<(basic_ostream<>&, const char*),
operator<<(basic_ostream<>&, const basic_string<>&)): Remove.
* include/bits/basic_string.h (operator<<(basic_ostream<>&,
const basic_string<>&)): Use the latter, implement DR 586.
* config/abi/pre/gnu.ver: Adjust, export the new _M_insert.
* docs/html/ext/howto.html: Add an entry for DR 586.
* testsuite/21_strings/basic_string/inserters_extractors/char/
28277.cc: New.
* testsuite/21_strings/basic_string/inserters_extractors/wchar_t/
28277.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/
28277-3.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/
28277-4.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_character/wchar_t/
28277-2.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_character/wchar_t/
28277-3.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_character/wchar_t/
28277-4.cc: Likewise.

From-SVN: r117689

17 years agodefined_operators_1.f90: Add cleanup-modules dg directive.
Francois-Xavier Coudert [Fri, 13 Oct 2006 08:56:25 +0000 (10:56 +0200)]
defined_operators_1.f90: Add cleanup-modules dg directive.

* gfortran.dg/defined_operators_1.f90: Add cleanup-modules dg
directive.
* gfortran.dg/module_private_array_refs_1.f90: Likewise.
* gfortran.dg/module_proc_external_dummy.f90: Likewise.
* gfortran.dg/gomp/omp_threadprivate1.f90: Likewise.
* gfortran.dg/gomp/reduction3.f90: Likewise.
* gfortran.dg/derived_constructor_comps_1.f90: Likewise.
* gfortran.dg/dummy_procedure_2.f90: Likewise.
* gfortran.dg/interface_derived_type_1.f90: Likewise.
* gfortran.dg/forall_4.f90: Likewise.
* gfortran.dg/spec_expr_4.f90: Likewise.
* gfortran.dg/unused_artificial_dummies_1.f90: Likewise.
* gfortran.dg/forall_5.f90: Likewise.
* gfortran.dg/open_access_append_2.f90: Add check for
compile-time warning.

From-SVN: r117688

17 years agore PR c++/28506 (ICE with initializers for functions)
Mark Mitchell [Fri, 13 Oct 2006 08:38:43 +0000 (08:38 +0000)]
re PR c++/28506 (ICE with initializers for functions)

PR c++/28506
* parser.c (function_declarator_p): New function.
(cp_parser_init_declarator): Use it.
(cp_parser_member_declaration): Likewise.
PR c++/28506
* g++.dg/parse/pure1.C: New test.

From-SVN: r117687

17 years agore PR fortran/21435 (fails to open nonexisting file with status scratch)
François-Xavier Coudert [Fri, 13 Oct 2006 08:18:50 +0000 (08:18 +0000)]
re PR fortran/21435 (fails to open nonexisting file with status scratch)

PR fortran/21435

* io.c (compare_to_allowed_values): New function.
(gfc_match_open): Add checks for constant values of specifiers.
(gfc_match_close): Add checks for constant values of the STATUS
specifier.

* gcc/testsuite/gfortran.dg/io_constraints_3.f90: New test.
* gcc/testsuite/gfortran.dg/open_access_append_1.f90: Add checks
for compile-time warnings.
* gcc/testsuite/gfortran.dg/pr20163-2.f: Likewise.
* gcc/testsuite/gfortran.dg/iostat_2.f90: Likewise.
* gcc/testsuite/gfortran.dg/label_4.f90: Delete the temporary
file.
* gcc/testsuite/gfortran.dg/direct_io_2.f90: Add a FILE=
specifier.
* gcc/testsuite/gfortran.dg/iomsg_1.f90: Add check for
compile-time warning.

From-SVN: r117685

17 years agore PR c/28419 (ICE using __FUNCTION__ in invalid code)
Jan Hubicka [Fri, 13 Oct 2006 07:41:53 +0000 (09:41 +0200)]
re PR c/28419 (ICE using __FUNCTION__ in invalid code)

PR c/28419
* c-decl.c (c_make_fname_decl): Do not segfault in case where
current_function_decl is set but current_function_scope is not.

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

From-SVN: r117684

17 years agore PR c++/29318 (ICE: type_info of pointer to VLA)
Mark Mitchell [Fri, 13 Oct 2006 04:09:41 +0000 (04:09 +0000)]
re PR c++/29318 (ICE: type_info of pointer to VLA)

PR c++/29318
* rtti.c (get_tinfo_decl): Refuse to create type info objects for
variably modified types.
PR c++/29318
* g++.dg/ext/vla4.C: New test.

From-SVN: r117683

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

From-SVN: r117681

17 years agointrinsic.texi (STAT): Fixed a format typo in sample code.
Brooks Moses [Thu, 12 Oct 2006 23:22:16 +0000 (23:22 +0000)]
intrinsic.texi (STAT): Fixed a format typo in sample code.

* intrinsic.texi (STAT): Fixed a format typo in sample code.

From-SVN: r117676

17 years agointrinsic.texi (STAT): Shortened lines in sample code.
Brooks Moses [Thu, 12 Oct 2006 23:13:30 +0000 (23:13 +0000)]
intrinsic.texi (STAT): Shortened lines in sample code.

* intrinsic.texi (STAT): Shortened lines in sample code.

From-SVN: r117675

17 years agore PR c++/27961 (ICE on invalid template declaration)
Lee Millward [Thu, 12 Oct 2006 20:06:36 +0000 (20:06 +0000)]
re PR c++/27961 (ICE on invalid template declaration)

PR c++/27961
* g++.dg/template/crash60.C: New test.

From-SVN: r117672

17 years agore PR c++/27961 (ICE on invalid template declaration)
Lee Millward [Thu, 12 Oct 2006 20:02:53 +0000 (20:02 +0000)]
re PR c++/27961 (ICE on invalid template declaration)

       PR c++/27961
       * decl.c (start_decl): Return error_mark_node if a
       function is initialized like a variable.
       (check_var_type): If a variable of field is declared void,
       set the type to error_mark_node.
       (grokdeclarator): Check the return type of check_var_type.
       * class.c (finish_struct_1): Robustify.

       * g++.dg/template/crash60.C: New test.
       * g++.dg/other/large-size-array.C: Adjust error markers.
       * g++.dg/parse/crash27.C: Likewise.
       * g++.dg/template/crash1.C: Likewise.

From-SVN: r117671

17 years agojvmti-int.h (JVMTI): Declare all members "extern".
Keith Seitz [Thu, 12 Oct 2006 18:18:52 +0000 (18:18 +0000)]
jvmti-int.h (JVMTI): Declare all members "extern".

        * include/jvmti-int.h (JVMTI): Declare all members "extern".
        * jvmti.cc (JVMTI): Define.

From-SVN: r117670

17 years agore PR testsuite/29093 (gcc.dg/debug/dwarf2/dwarf-file1.c fails on targets that have...
Steve Ellcey [Thu, 12 Oct 2006 16:52:33 +0000 (16:52 +0000)]
re PR testsuite/29093 (gcc.dg/debug/dwarf2/dwarf-file1.c fails on targets that have .loc)

PR testsuite/29093
* gcc.dg/debug/dwarf2/dwarf-file1.c: Check for ".file".

From-SVN: r117667

17 years agore PR preprocessor/28709 (Bad diagnostic pasting tokens with ##)
Jakub Jelinek [Thu, 12 Oct 2006 09:25:59 +0000 (11:25 +0200)]
re PR preprocessor/28709 (Bad diagnostic pasting tokens with ##)

PR preprocessor/28709
* macro.c (paste_tokens): Do error reporting here, use BUF with the
spelled LHS token as opposed to spelling it again.
(paste_all_tokens): Don't report errors here, just break on failure.

* gcc.dg/cpp/paste14.c: New test.

From-SVN: r117664

17 years agobfin.md (eh_return): Call emit_jump_insn instead of emit_insn to emit eh_return_inter...
Jie Zhang [Thu, 12 Oct 2006 08:52:58 +0000 (08:52 +0000)]
bfin.md (eh_return): Call emit_jump_insn instead of emit_insn to emit eh_return_internal instruction.

* config/bfin/bfin.md (eh_return): Call emit_jump_insn instead of
emit_insn to emit eh_return_internal instruction.
(eh_return_internal): Explicitly set pc.

From-SVN: r117662

17 years agore PR c++/29175 (ICE on invalid C++ variable length array)
Mark Mitchell [Thu, 12 Oct 2006 04:35:56 +0000 (04:35 +0000)]
re PR c++/29175 (ICE on invalid C++ variable length array)

PR c++/29175
* decl.c (check_initializer): Issue errors about trying to
initialize arrays whose elements have variable size.
PR c++/29175
* g++.dg/init/array24.C: New test.

From-SVN: r117658

17 years agobuiltins-config.h: Move Solaris section after inclusion of <sys/types.h>.
Kaveh R. Ghazi [Thu, 12 Oct 2006 02:33:57 +0000 (02:33 +0000)]
builtins-config.h: Move Solaris section after inclusion of <sys/types.h>.

* gcc.dg/builtins-config.h: Move Solaris section after inclusion
of <sys/types.h>.

From-SVN: r117656