summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja
Commit message (Collapse)AuthorAgeFilesLines
* fixincludes:jsm282009-03-282-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * inclhack.def (aix_syswait, exception_structure, pthread_page_size): Remove. (math_exception): Remove mention of fixproto in comment. * fixincl.x: Regenerate. * mkheaders.in: Do not handle STMP_FIXPROTO. gcc: * config/arm/t-arm-coff, config/h8300/coff.h, config/i386/i386-aout.h, config/i386/i386-coff.h, config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h, config/pdp11/2bsd.h, config/rs6000/aix41.h, config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h, fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c, scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h, sys-types.h: Remove. * Makefile.in: Remove protoize and fixproto support and references in comments. (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO, PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES): Remove. (ALL_HOST_OBJS): Remove $(PROTO_OBJS). (MOSTLYCLEANFILES): Remove protoize$(exeext) and unprotoize$(exeext). (rest.encap): Don't depend on $(STMP_FIXPROTO) (.PHONY): Don't depend on proto. (libgcc-support): Don't depend on $(STMP_FIXPROTO). (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext), protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple, deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext), build/gen-protos.o, build/scan.o, xsys-protos.h, build/fix-header$(build_exeext), build/fix-header.o, build/scan-decls.o, fixhdr.ready, stmp-fixproto, stmp-install-fixproto): Remove. (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X, SYSCALLS.c or fixproto files. (install-common): Don't install protoize. (install-headers-tar, install-headers-cpio, install-headers-cp): Don't depend on $(STMP_FIXPROTO). (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't install fixproto files or write out fixproto settings. (uninstall): Don't uninstall protoize. * config.gcc (use_fixproto): Remove. (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd, rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove. * config/m32r/t-linux (STMP_FIXPROTO): Remove. * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code. * config/mips/t-iris (FIXPROTO_DEFINES): Remove. * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove. * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code. * config/t-svr4 (FIXPROTO_DEFINES): Remove. * config/t-vxworks (STMP_FIXPROTO): Remove. * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T, STMP_FIXPROTO): Remove. * config.in, configure: Regenerate. * crtstuff.c (gid_t, uid_t): Don't undefine. * doc/install.texi: Change m68k-coff to m68k-elf in example. (arm-*-coff, arm-*-aout: Remove target entries. (*-ibm-aix*): Mention removal of support for AIX 4.2 and older. Remove mention of AIX 4.1. (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*. * doc/invoke.texi (Running Protoize): Remove. * doc/trouble.texi (Actual Bugs): Remove mention of fixproto. (Protoize Caveats): Remove. * tsystem.h: Update comments on headers assumed to exist. gcc/po: * EXCLUDES (fix-header.c, gen-protos.c, scan-decls.c, scan.c, scan.h): Remove. gcc/testsuite: * g++.old-deja/g++.ext/attrib5.C, g++.old-deja/g++.jason/thunk3.C, gcc.c-torture/compile/981006-1.c: Don't XFAIL or add special options for removed targets. libgcc: * config.host (arm-*-coff*, armel-*-coff*, arm-semi-aof, armel-semi-aof, h8300-*-*, i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd, rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145158 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.old-deja/g++.jason/thunk2.C: Skip on SPU.uweigand2009-03-111-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144785 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-02-20 Mark Mitchell <mark@codesourcery.com>jsm282009-02-204-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Joseph Myers <joseph@codesourcery.com> * config/arm/arm.c (arm_builtin_va_list): New function. (arm_expand_builtin_va_start): Likewise. (arm_gimplify_va_arg_expr): Likewise. (TARGET_BUILD_BUILTIN_VA_LIST): Define. (TARGET_BUILD_BUILTIN_VA_START): Likewise. (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise. (va_list_type): New variable. (arm_mangle_type): Mangle va_list_type appropriately. testsuite: * gcc.target/arm/va_list.c: New test. * g++.dg/abi/arm_va_list.C: Likewise. * lib/target-supports.exp (check_effective_target_arm_eabi): New function. * g++.dg/cpp0x/temp-va-arg-bug.C, g++.dg/other/stdarg1.C, g++.dg/warn/miss-format-1.C, g++.dg/warn/miss-format-3.C, g++.dg/warn/miss-format-4.C, g++.dg/warn/miss-format-5.C, g++.dg/warn/miss-format-6.C, g++.old-deja/g++.other/vaarg2.C, g++.old-deja/g++.other/vaarg3.C, g++.old-deja/g++.other/vaarg4.C, g++.old-deja/g++.pt/builtin.C: Use -Wno-abi on ARM EABI targets. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144323 138bc75d-0d04-0410-961f-82ee72b054a4
* * typeck.c (cp_build_unary_op): Only complain about taking addressjason2009-02-031-4/+2
| | | | | | | of main if pedantic. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143911 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2009-01-271-3/+3
| | | | | | | | | | | | | | | | | | 2009-01-27 Paolo Carlini <paolo.carlini@oracle.com> PR c++/37554 * call.c (build_over_call): If convert_for_arg_passing returns error_mark_node unconditionally return it. /testsuite 2009-01-27 Paolo Carlini <paolo.carlini@oracle.com> PR c++/37554 * g++.dg/parse/crash51.C: New. * g++.old-deja/g++.pt/crash9.C: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143711 138bc75d-0d04-0410-961f-82ee72b054a4
* Reverted commit 143546 related to PR c++/26693dodji2009-01-221-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143562 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/ChangeLog:dodji2009-01-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-01-21 Dodji Seketeli <dodji@redhat.com> PR c++/26693 * c-decl.c: (clone_underlying_type): Move this ... * c-common.c (set_underlying_type): ... here. Also, make sure the function properly sets TYPE_STUB_DECL() on the newly created typedef variant type. (is_typedef_decl ): New entry point. * tree.h: Added a new member member_types_needing_access_check to struct tree_decl_non_common. (set_underlying_type): New entry point. (is_typedef_type): Likewise. gcc/cp/ChangeLog/ 2009-01-21 Dodji Seketeli <dodji@redhat.com> PR c++/26693 * decl2.c (grokfield): when a typedef appears in a class, create the typedef variant type node for it. (save_template_attributes): Creating typedef variant type node here is now useless. * decl.c (grokdeclarator): If the typedef'ed struct/class was anonymous, set the proper type name to all its type variants. * name-lookup.c (pushdecl_maybe_friend): Reuse the set_underlying_type function to install typedef variant types. * cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): New template accessor macro. (append_type_to_template_for_access_check): New entry points. * semantics.c (check_accessibility_of_qualified_id): When a typedef that is a member of a class appears in a template, add it to the template. It will be ... * pt.c (instantiate_class_template, instantiate_template ): ... access checked at template instantiation time. (tsubst): Handle the case of being called with NULL args. (resolve_type_name_type): The type name should be the name of the main type variant. (append_type_to_template_for_access_check): New entry point. gcc/testsuite/ChangeLog 2009-01-21 Dodji Seketeli <dodji@redhat.com> PR c++/26693 * g++.dg/template/typedef11.C: New test. * g++.dg/template/typedef12.C: Likewise. * g++.dg/template/typedef13.C: Likewise. * g++.dg/template/typedef14.C: Likewise. * g++.dg/template/sfinae3.C: Compile this pedantically. The only errors expected should be the one saying the typedef is ill formed. * g++.old-deja/g++.pt/typename8.C: Likewise. * g++.dg/template/access11.C: Update this. libstdc++-v3/ChangeLog: 2009-01-21 Dodji Seketeli <dodji@redhat.com> * include/ext/bitmap_allocator.h: the typedefs should be made public if we want them to be accessible. This has been revealed by the patch that fixes PR c++/26693 in g++. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143546 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-12-03 H.J. Lu <hongjiu.lu@intel.com>hjl2008-12-041-1/+1
| | | | | | | * g++.old-deja/g++.eh/badalloc1.C: Add the missing "}". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142428 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.old-deja/g++.eh/badalloc1.C: Reinstate XFAIL for Darwin 3-7.janis2008-12-031-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142417 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-12-03 Jack Howarth <howarth@bromo.med.uc.edu>janis2008-12-031-1/+1
| | | | | | | * g++.old-deja/g++.eh/badalloc1.C: Omit XFAIL on obsolete Darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142415 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/38380jason2008-12-031-1/+1
| | | | | | | | | | * decl.c (grokdeclarator): Only set DECL_NONCONVERTING_P on explicit constructors. * pt.c (tsubst_copy_and_build) [CONSTRUCTOR]: Propagate CONSTRUCTOR_IS_DIRECT_INIT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142404 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-11-24 Jack Howarth <howarth@bromo.med.uc.edu>janis2008-11-241-0/+1
| | | | | | | | PR testsuite/38241 * g++.old-deja/g++.pt/const2.C: Prune output for Darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142164 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.old-deja/g++.pt/static6.C: Remove xfail for *-*-hpux*.danglin2008-11-231-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142138 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/36478jakub2008-11-121-25/+0
| | | | | | | | | | | | | | | | | Revert: 2007-05-07 Mike Stump <mrs@apple.com> * doc/invoke.texi (Warning Options): Document that -Wempty-body also checks for and while statements in C++. Revert: 2007-05-07 Mike Stump <mrs@apple.com> * parser.c (check_empty_body): Add. (cp_parser_iteration_statement): Add call to check_empty_body. * g++.old-deja/g++.mike/empty.C: Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141810 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/38007 ↵jason2008-11-121-1/+1
| | | | | | | | | | | | | | | | gcc/cp/ * typeck.c (cp_build_modify_expr): Update bitfield handling. gcc/ * c-common.c (c_common_signed_or_unsigned_type): Remove C++ special casing. gcc/testsuite/ * g++.dg/conversion/bitfield10.C: New test. * g++.dg/warn/pr35635.C (func1): Accept additional warning. * g++.old-deja/g++.mike/enum1.C: Expect warn about assignment. * g++.dg/expr/bitfield9.C: Pass -Wno-overflow. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141800 138bc75d-0d04-0410-961f-82ee72b054a4
* PR testsuite/25241janis2008-09-1895-276/+316
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/g++.exp (g++_init): Enable overrides of dg-error, dg-warning for C++ tests. * g++.dg/conversion/ambig1.C: Clean up dg-error/dg-warning; use dg-message for notes. * g++.dg/conversion/simd1.C: Ditto. * g++.dg/conversion/simd3.C: Ditto. * g++.dg/cpp0x/rv2n.C: Ditto. * g++.dg/cpp0x/rv3n.C: Ditto. * g++.dg/cpp0x/rv4n.C: Ditto. * g++.dg/cpp0x/rv5n.C: Ditto. * g++.dg/cpp0x/rv6n.C: Ditto. * g++.dg/cpp0x/rv7n.C: Ditto. * g++.dg/cpp0x/variadic36.C: Ditto. * g++.dg/cpp0x/variadic59.C: Ditto. * g++.dg/cpp0x/variadic71.C: Ditto. * g++.dg/cpp0x/variadic-ex13.C: Ditto. * g++.dg/expr/cond9.C: Ditto. * g++.dg/expr/pmf-1.C: Ditto. * g++.dg/ext/case-range2.C: Ditto. * g++.dg/ext/case-range3.C: Ditto. * g++.dg/ext/is_class_error2.C: Ditto. * g++.dg/ext/label5.C: Ditto. * g++.dg/ext/pr27019.C: Ditto. * g++.dg/gomp/pr26690-1.C: Ditto. * g++.dg/gomp/pr26690-2.C: Ditto. * g++.dg/gomp/pr34694.C: Ditto. * g++.dg/gomp/tpl-parallel-2.C: Ditto. * g++.dg/inherit/base3.C: Ditto. * g++.dg/inherit/using6.C: Ditto. * g++.dg/init/brace6.C: Ditto. * g++.dg/init/ctor4.C: Ditto. * g++.dg/lookup/conv-1.C: Ditto. * g++.dg/lookup/new1.C: Ditto. * g++.dg/lookup/scoped6.C: Ditto. * g++.dg/lookup/using7.C: Ditto. * g++.dg/lookup/using9.C: Ditto. * g++.dg/other/abstract1.C: Ditto. * g++.dg/other/abstract2.C: Ditto. * g++.dg/other/anon5.C: Ditto. * g++.dg/other/crash-4.C: Ditto. * g++.dg/other/error10.C: Ditto. * g++.dg/other/error13.C: Ditto. * g++.dg/other/error20.C: Ditto. * g++.dg/other/error5.C: Ditto. * g++.dg/other/field1.C: Ditto. * g++.dg/other/offsetof5.C: Ditto. * g++.dg/other/semicolon.C: Ditto. * g++.dg/overload/ambig1.C: Ditto. * g++.dg/overload/arg3.C: Ditto. * g++.dg/overload/builtin1.C: Ditto. * g++.dg/overload/copy1.C: Ditto. * g++.dg/overload/new1.C: Ditto. * g++.dg/overload/template4.C: Ditto. * g++.dg/overload/using2.C: Ditto. * g++.dg/parse/bitfield2.C: Ditto. * g++.dg/parse/constant4.C: Ditto. * g++.dg/parse/crash20.C: Ditto. * g++.dg/parse/crash36.C: Ditto. * g++.dg/parse/crash5.C: Ditto. * g++.dg/parse/error11.C: Ditto. * g++.dg/parse/error12.C: Ditto. * g++.dg/parse/error19.C: Ditto. * g++.dg/parse/error28.C: Ditto. * g++.dg/parse/friend5.C: Ditto. * g++.dg/parse/invalid-op1.C: Ditto. * g++.dg/parse/missing-template1.C: Ditto. * g++.dg/parse/non-dependent2.C: Ditto. * g++.dg/parse/ret-type2.C: Ditto. * g++.dg/parse/specialization1.C: Ditto. * g++.dg/parse/template18.C: Ditto. * g++.dg/parse/template3.C: Ditto. * g++.dg/parse/template9.C: Ditto. * g++.dg/tc1/dr108.C: Ditto. * g++.dg/tc1/dr152.C: Ditto. * g++.dg/tc1/dr166.C: Ditto. * g++.dg/template/access11.C: Ditto. * g++.dg/template/access2.C: Ditto. * g++.dg/template/access3.C: Ditto. * g++.dg/template/access7.C: Ditto. * g++.dg/template/copy1.C: Ditto. * g++.dg/template/crash13.C: Ditto. * g++.dg/template/crash37.C: Ditto. * g++.dg/template/crash40.C: Ditto. * g++.dg/template/crash58.C: Ditto. * g++.dg/template/ctor5.C: Ditto. * g++.dg/template/dependent-expr5.C: Ditto. * g++.dg/template/eh2.C: Ditto. * g++.dg/template/error2.C: Ditto. * g++.dg/template/error33.C: Ditto. * g++.dg/template/error4.C: Ditto. * g++.dg/template/friend31.C: Ditto. * g++.dg/template/friend32.C: Ditto. * g++.dg/template/instantiate1.C: Ditto. * g++.dg/template/instantiate3.C: Ditto. * g++.dg/template/instantiate5.C: Ditto. * g++.dg/template/instantiate7.C: Ditto. * g++.dg/template/local6.C: Ditto. * g++.dg/template/lookup2.C: Ditto. * g++.dg/template/member5.C: Ditto. * g++.dg/template/memfriend15.C: Ditto. * g++.dg/template/memfriend16.C: Ditto. * g++.dg/template/memfriend17.C: Ditto. * g++.dg/template/memfriend7.C: Ditto. * g++.dg/template/meminit1.C: Ditto. * g++.dg/template/nested3.C: Ditto. * g++.dg/template/new3.C: Ditto. * g++.dg/template/nontype12.C: Ditto. * g++.dg/template/nontype13.C: Ditto. * g++.dg/template/nontype6.C: Ditto. * g++.dg/template/non-type-template-argument-1.C: Ditto. * g++.dg/template/overload9.C: Ditto. * g++.dg/template/ptrmem15.C: Ditto. * g++.dg/template/ptrmem17.C: Ditto. * g++.dg/template/ptrmem4.C: Ditto. * g++.dg/template/ptrmem6.C: Ditto. * g++.dg/template/ptrmem8.C: Ditto. * g++.dg/template/qualified-id1.C: Ditto. * g++.dg/template/qualttp20.C: Ditto. * g++.dg/template/qualttp3.C: Ditto. * g++.dg/template/qualttp4.C: Ditto. * g++.dg/template/qualttp5.C: Ditto. * g++.dg/template/qualttp6.C: Ditto. * g++.dg/template/qualttp7.C: Ditto. * g++.dg/template/qualttp8.C: Ditto. * g++.dg/template/recurse.C: Ditto. * g++.dg/template/sfinae10.C: Ditto. * g++.dg/template/sfinae3.C: Ditto. * g++.dg/template/spec22.C: Ditto. * g++.dg/template/spec23.C: Ditto. * g++.dg/template/static9.C: Ditto. * g++.dg/template/template-id-2.C: Ditto. * g++.dg/template/typename2.C: Ditto. * g++.dg/template/typename4.C: Ditto. * g++.dg/template/using14.C: Ditto. * g++.dg/template/using2.C: Ditto. * g++.dg/template/warn1.C: Ditto. * g++.dg/warn/incomplete1.C: Ditto. * g++.dg/warn/noeffect2.C: Ditto. * g++.dg/warn/noeffect4.C: Ditto. * g++.dg/warn/pr8570.C: Ditto. * g++.dg/warn/Wparentheses-13.C: Ditto. * g++.dg/warn/Wparentheses-15.C: Ditto. * g++.dg/warn/Wparentheses-16.C: Ditto. * g++.dg/warn/Wparentheses-17.C: Ditto. * g++.dg/warn/Wparentheses-18.C: Ditto. * g++.dg/warn/Wparentheses-19.C: Ditto. * g++.dg/warn/Wparentheses-20.C: Ditto. * g++.dg/warn/Wparentheses-23.C: Ditto. * g++.dg/warn/Wstrict-aliasing-3.C: Ditto. * g++.old-deja/g++.benjamin/15799.C: Ditto. * g++.old-deja/g++.benjamin/15800-1.C: Ditto. * g++.old-deja/g++.benjamin/16077.C: Ditto. * g++.old-deja/g++.bob/inherit2.C: Ditto. * g++.old-deja/g++.brendan/ambiguity1.C: Ditto. * g++.old-deja/g++.brendan/crash29.C: Ditto. * g++.old-deja/g++.brendan/crash48.C: Ditto. * g++.old-deja/g++.brendan/crash56.C: Ditto. * g++.old-deja/g++.brendan/cvt3.C: Ditto. * g++.old-deja/g++.brendan/overload1.C: Ditto. * g++.old-deja/g++.brendan/overload4.C: Ditto. * g++.old-deja/g++.brendan/overload9.C: Ditto. * g++.old-deja/g++.bugs/900127_01.C: Ditto. * g++.old-deja/g++.bugs/900205_04.C: Ditto. * g++.old-deja/g++.bugs/900330_02.C: Ditto. * g++.old-deja/g++.bugs/900404_03.C: Ditto. * g++.old-deja/g++.bugs/900514_03.C: Ditto. * g++.old-deja/g++.eh/ctor1.C: Ditto. * g++.old-deja/g++.eh/spec6.C: Ditto. * g++.old-deja/g++.ext/overload1.C: Ditto. * g++.old-deja/g++.jason/conversion11.C: Ditto. * g++.old-deja/g++.jason/crash3.C: Ditto. * g++.old-deja/g++.jason/lineno3.C: Ditto. * g++.old-deja/g++.jason/lineno4.C: Ditto. * g++.old-deja/g++.jason/opeq3.C: Ditto. * g++.old-deja/g++.jason/overload16.C: Ditto. * g++.old-deja/g++.jason/overload28.C: Ditto. * g++.old-deja/g++.jason/pmf5.C: Ditto. * g++.old-deja/g++.jason/scoping10.C: Ditto. * g++.old-deja/g++.jason/template30.C: Ditto. * g++.old-deja/g++.jason/temporary2.C: Ditto. * g++.old-deja/g++.jason/tredecl4.C: Ditto. * g++.old-deja/g++.law/arg11.C: Ditto. * g++.old-deja/g++.law/arg1.C: Ditto. * g++.old-deja/g++.law/arm9.C: Ditto. * g++.old-deja/g++.law/ctors11.C: Ditto. * g++.old-deja/g++.law/ctors17.C: Ditto. * g++.old-deja/g++.law/ctors5.C: Ditto. * g++.old-deja/g++.law/ctors9.C: Ditto. * g++.old-deja/g++.law/enum4.C: Ditto. * g++.old-deja/g++.law/missed-error2.C: Ditto. * g++.old-deja/g++.law/operators9.C: Ditto. * g++.old-deja/g++.mike/net22.C: Ditto. * g++.old-deja/g++.mike/net2.C: Ditto. * g++.old-deja/g++.mike/p11110.C: Ditto. * g++.old-deja/g++.mike/p1989.C: Ditto. * g++.old-deja/g++.mike/p2431.C: Ditto. * g++.old-deja/g++.mike/p438.C: Ditto. * g++.old-deja/g++.mike/p807a.C: Ditto. * g++.old-deja/g++.mike/p9068.C: Ditto. * g++.old-deja/g++.niklas/t120.C: Ditto. * g++.old-deja/g++.niklas/t121.C: Ditto. * g++.old-deja/g++.niklas/t128.C: Ditto. * g++.old-deja/g++.ns/overload2.C: Ditto. * g++.old-deja/g++.ns/template13.C: Ditto. * g++.old-deja/g++.ns/using12.C: Ditto. * g++.old-deja/g++.oliva/delete1.C: Ditto. * g++.old-deja/g++.oliva/overload1.C: Ditto. * g++.old-deja/g++.other/crash24.C: Ditto. * g++.old-deja/g++.other/crash25.C: Ditto. * g++.old-deja/g++.other/decl3.C: Ditto. * g++.old-deja/g++.other/expr1.C: Ditto. * g++.old-deja/g++.other/overcnv2.C: Ditto. * g++.old-deja/g++.other/overload11.C: Ditto. * g++.old-deja/g++.other/pmf3.C: Ditto. * g++.old-deja/g++.other/ptrmem7.C: Ditto. * g++.old-deja/g++.other/vaarg3.C: Ditto. * g++.old-deja/g++.other/volatile1.C: Ditto. * g++.old-deja/g++.pt/assign1.C: Ditto. * g++.old-deja/g++.pt/auto_ptr.C: Ditto. * g++.old-deja/g++.pt/const2.C: Ditto. * g++.old-deja/g++.pt/crash10.C: Ditto. * g++.old-deja/g++.pt/crash20.C: Ditto. * g++.old-deja/g++.pt/crash36.C: Ditto. * g++.old-deja/g++.pt/crash38.C: Ditto. * g++.old-deja/g++.pt/derived3.C: Ditto. * g++.old-deja/g++.pt/error2.C: Ditto. * g++.old-deja/g++.pt/explicit34.C: Ditto. * g++.old-deja/g++.pt/explicit70.C: Ditto. * g++.old-deja/g++.pt/friend23.C: Ditto. * g++.old-deja/g++.pt/ptrmem10.C: Ditto. * g++.old-deja/g++.pt/redecl1.C: Ditto. * g++.old-deja/g++.pt/spec35.C: Ditto. * g++.old-deja/g++.pt/t05.C: Ditto. * g++.old-deja/g++.pt/typename3.C: Ditto. * g++.old-deja/g++.pt/typename6.C: Ditto. * g++.old-deja/g++.pt/unify8.C: Ditto. * g++.old-deja/g++.pt/vaarg3.C: Ditto. * g++.old-deja/g++.robertl/eb109.C: Ditto. * g++.old-deja/g++.robertl/eb131.C: Ditto. * g++.old-deja/g++.robertl/eb22.C: Ditto. * g++.old-deja/g++.robertl/eb44.C: Ditto. * g++.old-deja/g++.robertl/eb4.C: Ditto. * g++.old-deja/g++.robertl/eb69.C: Ditto. * g++.dg/parse/constructor1.C: Remove "error" from dg-error, preserving column number. * g++.dg/parse/error10.C: Ditto. * g++.dg/parse/error13.C: Ditto. * g++.dg/parse/error14.C: Ditto. * g++.dg/parse/error15.C: Ditto. * g++.dg/parse/error16.C: Ditto. * g++.dg/parse/error17.C: Ditto. * g++.dg/parse/error18.C: Ditto. * g++.dg/parse/error1.C: Ditto. * g++.dg/parse/error20.C: Ditto. * g++.dg/parse/error21.C: Ditto. * g++.dg/parse/error22.C: Ditto. * g++.dg/parse/error23.C: Ditto. * g++.dg/parse/error24.C: Ditto. * g++.dg/parse/error25.C: Ditto. * g++.dg/parse/error26.C: Ditto. * g++.dg/parse/error27.C: Ditto. * g++.dg/parse/error29.C: Ditto. * g++.dg/parse/error2.C: Ditto. * g++.dg/parse/error30.C: Ditto. * g++.dg/parse/error31.C: Ditto. * g++.dg/parse/error3.C: Ditto. * g++.dg/parse/error4.C: Ditto. * g++.dg/parse/error5.C: Ditto. * g++.dg/parse/error6.C: Ditto. * g++.dg/parse/error7.C: Ditto. * g++.dg/parse/error8.C: Ditto. * g++.dg/parse/error9.C: Ditto. * g++.dg/parse/error-column.C: Ditto. * g++.dg/template/crash80.C: Ditto. * g++.dg/template/friend44.C: Ditto. * g++.dg/warn/pr26785.C: Ditto. * g++.old-deja/g++.brendan/crash16.C: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140476 138bc75d-0d04-0410-961f-82ee72b054a4
* PR testsuite/25241janis2008-09-174-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * g++.old-deja/g++.brendan/crash7.C: Remove "error" or "warning" from message for dg-error/dg-warning. * g++.old-deja/g++.jason/crash11.C: Ditto. * g++.old-deja/g++.oliva/template1.C: Ditto. * g++.old-deja/g++.benjamin/tem03.C: Ditto. * g++.dg/rtti/no-rtti.C: Ditto. * g++.dg/cpp/pedantic-errors.C: Ditto. * g++.dg/cpp/string-2.C: Ditto. * g++.dg/ext/fpreg1.C: Ditto. * g++.dg/ext/altivec-types-1.C: Ditto. * g++.dg/warn/write-strings-default.C: Ditto. * g++.dg/warn/Wvla-2.C: Ditto. * g++.dg/warn/register-var-1.C: Ditto. * g++.dg/warn/deprecated-3.C: Ditto. * g++.dg/warn/pr30551-2.C: Ditto. * g++.dg/warn/overflow-warn-1.C: Ditto. * g++.dg/warn/pr30551.C: Ditto. * g++.dg/warn/pointer-integer-comparison.C: Ditto. * g++.dg/warn/pr12242.C: Ditto. * g++.dg/warn/write-strings.C: Ditto. * g++.dg/warn/overflow-warn-3.C: Ditto. * g++.dg/warn/overflow-warn-4.C: Ditto. * g++.dg/warn/overflow-warn-6.C: Ditto. * g++.dg/parse/crash43.C: Ditto. * g++.dg/parse/crash44.C: Ditto. * g++.dg/parse/offsetof8.C: Ditto. * g++.dg/gomp/pr35158.C: Ditto. * g++.dg/template/crash81.C: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140437 138bc75d-0d04-0410-961f-82ee72b054a4
* PR testsuite/25241janis2008-09-1745-136/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/g++.dg/charset/attribute2.c: Replace dg-error with dg-warning or vice versa. * testsuite/g++.dg/conversion/dr195.C: Ditto. * testsuite/g++.dg/cpp0x/variadic60.C: Ditto. * testsuite/g++.dg/expr/cast2.C: Ditto. * testsuite/g++.dg/ext/anon-struct4.C: Ditto. * testsuite/g++.dg/ext/member-attr.C: Ditto. * testsuite/g++.dg/ext/utf-array.C: Ditto. * testsuite/g++.dg/ext/utf-array-short-wchar.C: Ditto. * testsuite/g++.dg/ext/utf-typedef-cxx0x.C: Ditto. * testsuite/g++.dg/ext/visibility/redecl1.C: Ditto. * testsuite/g++.dg/ext/visibility/warn4.C: Ditto. * testsuite/g++.dg/parse/defarg11.C: Ditto. * testsuite/g++.dg/template/error17.C: Ditto. * testsuite/g++.dg/warn/pedantic2.C: Ditto. * testsuite/g++.dg/warn/pr21983.C: Ditto. * testsuite/g++.dg/warn/return-reference2.C: Ditto. * testsuite/g++.old-deja/g++.bob/inherit1.C: Ditto. * testsuite/g++.old-deja/g++.brendan/crash13.C: Ditto. * testsuite/g++.old-deja/g++.brendan/crash17.C: Ditto. * testsuite/g++.old-deja/g++.brendan/crash52.C: Ditto. * testsuite/g++.old-deja/g++.brendan/crash55.C: Ditto. * testsuite/g++.old-deja/g++.brendan/enum7.C: Ditto. * testsuite/g++.old-deja/g++.brendan/operators4.C: Ditto. * testsuite/g++.old-deja/g++.brendan/template17.C: Ditto. * testsuite/g++.old-deja/g++.brendan/warnings1.C: Ditto. * testsuite/g++.old-deja/g++.bugs/900205_03.C: Ditto. * testsuite/g++.old-deja/g++.bugs/900227_01.C: Ditto. * testsuite/g++.old-deja/g++.ext/arrnew.C: Ditto. * testsuite/g++.old-deja/g++.ext/attrib4.C: Ditto. * testsuite/g++.old-deja/g++.jason/cond.C: Ditto. * testsuite/g++.old-deja/g++.jason/operator.C: Ditto. * testsuite/g++.old-deja/g++.jason/report.C: Ditto. * testsuite/g++.old-deja/g++.law/friend5.C: Ditto. * testsuite/g++.old-deja/g++.law/temps1.C: Ditto. * testsuite/g++.old-deja/g++.law/union4.C: Ditto. * testsuite/g++.old-deja/g++.martin/pure1.C: Ditto. * testsuite/g++.old-deja/g++.mike/empty.C: Ditto. * testsuite/g++.old-deja/g++.mike/for2.C: Ditto. * testsuite/g++.old-deja/g++.mike/misc9.C: Ditto. * testsuite/g++.old-deja/g++.mike/p10769b.C: Ditto. * testsuite/g++.old-deja/g++.mike/p2855.C: Ditto. * testsuite/g++.old-deja/g++.mike/p3060c.C: Ditto. * testsuite/g++.old-deja/g++.mike/p700.C: Ditto. * testsuite/g++.old-deja/g++.mike/p9732c.C: Ditto. * testsuite/g++.old-deja/g++.mike/pmf6.C: Ditto. * testsuite/g++.old-deja/g++.mike/warn1.C: Ditto. * testsuite/g++.old-deja/g++.mike/warn5.C: Ditto. * testsuite/g++.old-deja/g++.niklas/t141.C: Ditto. * testsuite/g++.old-deja/g++.other/cast6.C: Ditto. * testsuite/g++.old-deja/g++.other/cond5.C: Ditto. * testsuite/g++.old-deja/g++.other/conv8.C: Ditto. * testsuite/g++.old-deja/g++.other/decl5.C: Ditto. * testsuite/g++.old-deja/g++.other/delete2.C: Ditto. * testsuite/g++.old-deja/g++.other/delete4.C: Ditto. * testsuite/g++.old-deja/g++.other/linkage1.C: Ditto. * testsuite/g++.old-deja/g++.other/ptrmem8.C: Ditto. * testsuite/g++.old-deja/g++.other/typename1.C: Ditto. * testsuite/g++.old-deja/g++.pt/typename14.C: Ditto. * testsuite/g++.old-deja/g++.pt/typename4.C: Ditto. * testsuite/g++.old-deja/g++.pt/typename5.C: Ditto. * testsuite/g++.old-deja/g++.pt/typename7.C: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140405 138bc75d-0d04-0410-961f-82ee72b054a4
* testsuite/aldyh2008-09-154-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | * g++.old-deja/g++.brendan/crash16.C: Function name is the correct location for an error regarding a function. * g++.old-deja/g++.other/pmf3.C: Same. * g++.old-deja/g++.law/ctors5.C: Same. * g++.old-deja/g++.pt/explicit34.C: Same. * g++.dg/parse/error28.C: Same. * g++.dg/parse/error17.C: Same. * g++.dg/template/friend44.C: Same. cp/ * decl.c (duplicate_decls): Call error_at. (grokfndecl): New location argument. Use location if available. (grokdeclarator): Pass declarator location to grokfndecl. * cp-tree.h (struct cp_declarator): Update comment for id_loc. * decl2.c (check_classfn): Use error_at. * parser.c (cp_parser_init_declarator): Set function_start_locus to brace location. (cp_parser_member_declaration): Set id_loc for function declarators. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140379 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/37302jason2008-09-083-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | * parser.c (cp_parser_parameter_declaration_list): Process the PARM_DECLs as we go and push them. Return a TREE_LIST. (cp_parser_parameter_declaration_clause): Return a TREE_LIST. (cp_parser_direct_declarator): Create a binding level and suppress deprecated warnings in the parameter list. (make_call_declarator): PARMS is now a tree. * cp-tree.h (struct cp_declarator): Function parms are now a tree. * decl.h (enum deprecated_states, deprecated_state): Move here. * decl.c: From here. (type_is_deprecated): New fn. (grokparms): PARMLIST is a tree now. Warn about parms that use deprecated types. * mangle.c (write_expression): Handle PARM_DECL, CALL_EXPR and 0-operand cast. * pt.c (tsubst) [DECLTYPE_TYPE]: Set skip_evaluation. (tsubst_copy) [PARM_DECL]: Handle a PARM_DECL used outside of a function. * name-lookup.c (pushtag): Look through function parameter scopes. (pushdecl_maybe_friend): Don't set DECL_CONTEXT on a PARM_DECL when we're parsing a function declarator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140120 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2008-08-143-6/+6
| | | | | | | | | | | | | | | | | | | | | | 2008-08-14 Paolo Carlini <paolo.carlini@oracle.com> PR c++/34485 * pt.c (check_template_shadow): Change to return a bool. * name-lookup.c (push_class_level_binding): Early return if check_template_shadow returns false. * cp-tree.h (check_template_shadow): Adjust declaration. /testsuite 2008-08-14 Paolo Carlini <paolo.carlini@oracle.com> PR c++/34485 * g++.dg/template/crash81.C: New. * g++.old-deja/g++.benjamin/tem03.C: Adjust. * g++.old-deja/g++.benjamin/tem04.C: Likewise. * g++.old-deja/g++.brendan/crash7.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139114 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-08-12 Paolo Carlini <paolo.carlini@oracle.com>paolo2008-08-121-2/+2
| | | | | | | * g++.old-deja/g++.other/decl5.C: Expand new expected errors. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139035 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2008-08-121-2/+2
| | | | | | | | | | | | | | | | | | | 2008-08-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/37087 * parser.c (cp_parser_class_head): Early return error_mark_node in case of global qualification of class name or qualified name that does not name a class. /testsuite 2008-08-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/37087 * g++.dg/template/crash80.C: New. * g++.old-deja/g++.other/decl5.C: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139034 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-08-06 Marc Gauthier <marc@tensilica.com>bwilson2008-08-061-1/+1
| | | | | | | | | | | | | | | | | | * config.gcc: Match more processor names for Xtensa. * configure.ac: Likewise. * doc/install.texi (Specific): Likewise. * configure: Regenerate. testsuite/ * lib/target-supports.exp (check_profiling_available): Match more processor names for Xtensa. * g++.old-deja/g++.jason/thunk3.C: Likewise. * gcc.dg/intmax_t-1.c: Likewise. * gcc.dg/sibcall-3.c: Likewise. * gcc.dg/sibcall-4.c: Likewise. * gcc.c-torture/compile/20001226-1.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138810 138bc75d-0d04-0410-961f-82ee72b054a4
* * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.hubicka2008-07-252-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (build_cgraph_edges): Likewise. * cgraph.c (cgraph_node): Do not update assembler hash. (cgraph_remove_node): Drop non-unit-at-a-time code. * tree-pass.h (pass_O0_always_inline): Remove. * ipa-reference.c (gate_reference): Remove unit-at-a-time check. * toplev.c (process_options): Flag unit-at-a-time does not imply no section anchors. * cgraphunit.c: Update comments. (decide_is_function_needed): Drop non-unit-at-a-time mode. (cgraph_assemble_pending_functions): Remove. (cgraph_reset_node): Drop non-unit-at-a-time code. (cgraph_finalize_function): Likewise. (cgraph_analyze_function): Likewise. (cgraph_finalize_compilation_unit): Likewise. (cgraph_expand_function): Likewise. (cgraph_optimize): Likesise. (save_inline_function_body): Likewise. * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check. * tree-ssa-alias.c (maybe_be_aliased): Likewise. * ipa-inline.c: Update comments. (enum inlining_mode): remove INLINE_SPEED. (cgraph_clone_inlined_nodes): Drop unit-at-a-time check. (cgraph_mark_inline_edge): Likewise. (try_inline): Likewise. (cgraph_decide_inlining_incrementally): Likewise. (cgraph_gate_inlining): Remove. (cgraph_early_inlining): Remove flag_unit_at_a_time checks. (cgraph_gate_early_inlining): Likewise. (gate_inline_passes): Remove. (pass_inline_parameters, pass_ipa_inline): Remove gates. (cgraph_gate_O0_always_inline, cgraph_O0_always_inline, pass_O0_always_inline): Remove. * c-pch.c (c_pch_matching): Remove -funit-at-a-time. * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check. * opts.c (no_unit_at_a_time_default): Remove. (decode_options): Remove flag_unit_at_a_time reset and warning. * opts.h (no_unit_at_a_time_default): Remove. * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword early in GNU dialect. (merge_decls): Update comment; drop unit-at-a-time check. (finish_decl): Likewise. (grok_declaration): Remove flag_inline_trees code. (finish_functions): Return on function returning non-void on all statics. * ipa-tye-escape.c (gate_type_escape_vars): Remove. * cfgexpand.c (expand_one_static_var): Remove. (expand_one_var): Remove expand_one_static_var call. (expand_used_vars_for_block): Remove flag_unit_a_time check. * c-opts.c (c_common_post_options): Remove flag_inline_trees code and flag_unit_at_a-time compatibility checks. * varasm.c (assemble_alias): Remove flag_unit_at_a_time check. * tree-inline.c (flag_inline_trees): Remove. (inlinable_function_p): Don't check it. (expand_call_inline): Remove non-unit-at-a-time code. * tree-inline.h (flag_inline_trees): Remove. * tree-optimize.c (execute_early_local_optimizations): Remove unit-at-a-time checks. (tree_rest_of_compilation): Likewise. * combine.c (setup_incoming_promotions): Likewise. * tree-profile.c (tree_gen_ic_func_profiler): Likewise. * tree-ssa-structalias.c (delete_points_to_sets): Likewise. * passes.c (pass_inline_parameters): Update comments; remove O0_alwaysinline pass. (execute_one_ipa_transform_pass): Do not reset in_gimple_form. (execute_one_pass): Likewise. * i386.c (ix86_function_regparm): Remove unit-at-a-time check. (ix86_function_sseregparm): Likewise. * arm.c (arm_function_in_section_p): Likewise. * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise. * varpool.c: Update comments. (decide_is_variable_needed): Remove unit-at-a-time checks. (varpool_finalize_decl): Likewise. * ada/utils.c (end_subprog_body): Remove inline trees check. * ada/misc.c (gnat_post_options): Do not set flag_inline_trees. * fortran/options.c (gfc_post_options): Remove flag_unline_trees code. * gcc.dg/winline-4.c: Remove. * gcc.dg/pch/valid-3.hs: Remove. * gcc.dg/pch/valid-3.c: Remove. * g++.old-deja/g++.brendan/crash52.C: Accept returning void warning * g++.old-deja/g++.jason/report.C: Likewise. * testsuite/g++.dg/warn/pr23075.C: We get returning void warning instead of control flow warning. * cp/decl.c (duplicate_decls): Update comment and unit-at-a-time. (grogfndecl): Drop flag_inline_trees code. * cp/pt.c (instantiate_decl): Drop flag_iline_trees code. * cp/lex.c (cxx_init): Do not set unit-at-a-time. * java/decl.c: Include cgraph.h (end_java_method): Remove non-unit-at-a-time code. (java_mark_decl_local): Likewise; sanity check that we don't touch finalized nodes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138140 138bc75d-0d04-0410-961f-82ee72b054a4
* Implement defaulted/deleted functions as per N2346jason2008-07-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cp-tree.h (struct lang_decl_flags): Add defaulted_p bitfield. (DECL_DELETED_FN): New macro. (DECL_DEFAULTED_FN): New macro. * class.c (user_provided_p): New fn. (defaultable_fn_p): New fn. (type_has_user_provided_constructor): New fn. (type_has_user_provided_default_constructor): New fn. (check_methods): A defaulted fn is still trivial. (check_bases_and_members): Likewise. * decl.c (grok_special_member_properties): Likewise. (duplicate_decls): Complain about redeclaring a function as deleted. (start_decl): initialized==2 means deleted. (cp_finish_decl): Handle deleted/defaulted semantics. * decl2.c (grokfield): Likewise. (mark_used): Check DECL_DEFAULTED_FN instead of DECL_ARTIFICIAL. Complain about using a deleted fn. * init.c (build_value_init_1): Use type_has_user_provided_constructor. (perform_member_init): Check for a user-provided default constructor even if TYPE_NEEDS_CONSTRUCTING. (build_new_1): Likewise. * call.c (build_over_call): Don't call mark_used twice. * method.c (implicitly_declare_fn): Set DECL_DEFAULTED_FN. * search.c (check_final_overrider): Check for deleted mismatch. * parser.c (cp_parser_init_declarator): Tell start_decl about =delete. (cp_parser_pure_specifier): Handle =default and =delete. * error.c (maybe_warn_cpp0x): Suggest -std=gnu++0x as well. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138123 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-07-11 Dodji Seketeli <dseketel@redhat.com>dodji2008-07-111-1/+1
| | | | | | | | | | | PR c++/13101 * decl.c (grokdeclarator): Warn about initializing variables of storage class 'extern' only after the type of the declarator has been properly computed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137723 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-07-11 Dodji Seketeli <dseketel@redhat.com>dodji2008-07-113-10/+14
| | | | | | | | | | | | | | | | | | | PR c++/31754 * cp-tree.h (struct cp_decl_specifier_seq): add a location field. It carries the location of the primary type. * parser.c (cp_parser_check_type_definition): update documentation. (cp_parser_check_for_definition_in_return_type, cp_parser_check_for_invalid_template_id, cp_parser_set_decl_spec_type, cp_parser_check_for_definition_in_return_type, cp_parser_diagnose_invalid_type_name, cp_parser_new_expression, cp_parser_explicit_instantiation, cp_parser_type_specifier, cp_parser_simple_type_specifier, cp_parser_omp_for_loop, cp_parser_pragma): use location in error messages. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137721 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-07-11 Dodji Seketeli <dseketel@redhat.com>dodji2008-07-111-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR c++/31754 * pt.c, semantic.c: * semantic.c (qualified_name_lookup_error, finish_id_expression): add a location_t parameter so that error message can have a more accurate location. * cp-tree.h: updated prototype * pt.c (tsubst_qualified_id): use location in error messages. * parser.c (cp_parser_postfix_expression, cp_parser_objc_statement, cp_parser_trait_expr, cp_parser_token_is_class_key, cp_parser_uncommitted_to_tentative_parse_p, cp_parser_check_for_invalid_template_id, cp_parser_is_string_literal, cp_parser_error, cp_parser_name_lookup_error, cp_parser_simulate_error, cp_parser_check_decl_spec, cp_parser_check_decl_spec, cp_parser_non_integral_constant_expression, cp_parser_diagnose_invalid_type_name, cp_parser_parse_and_diagnose_invalid_type_name, cp_parser_require_pragma_eol, cp_parser_make_typename_type, cp_parser_string_literal, cp_parser_primary_expression, cp_parser_primary_expression, cp_parser_unqualified_id, cp_parser_nested_name_specifier_opt, cp_parser_postfix_expression, cp_parser_postfix_dot_deref_expression, cp_parser_new_expression, cp_parser_direct_new_declarator, cp_parser_builtin_offsetof, cp_parser_label_for_labeled_statement, cp_parser_statement_seq_opt, cp_parser_jump_statement, cp_parser_block_declaration, cp_parser_simple_declaration, cp_parser_decl_specifier_seq, cp_parser_function_specifier_opt, cp_parser_decltype, cp_parser_mem_initializer_list, cp_parser_mem_initializer, cp_parser_mem_initializer_id, cp_parser_template_parameter, cp_parser_type_parameter, cp_parser_template_id, cp_parser_template_name, cp_parser_template_argument): likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137716 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.dg/pr28243.c: Skip on SPU.uweigand2008-07-032-0/+2
| | | | | | | | | | | * gcc.dg/torture/pr25947-1.c: Likewise. * gcc.dg/20030702-1.c: Likewise. * g++.old-deja/g++.other/comdat5.C: Likewise. * g++.old-deja/g++.other/local-alloc1.C: Likewise. * g++.dg/opt/vt1.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137418 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c-torture/execute/builtins/memops-asm.c: Set inside_main.nathan2008-05-211-1/+1
| | | | | | | | | | | | | | | * lib/gcc-dg.exp (cleanup-saved-temps): Add optional list of suffixes not to delete. * gcc.dg/pch/save-temps-1.c: Don't delete ".s" temp. * g++.dg/pch/pch.C: Likewise. * g++.old-deja/g++.pt/static11.C: Replace xfail by target requirement. * lib/dg-pch.exp (dg-pch): Don't expect .s files if there are dg-errors expected. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135708 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.old-deja/g++.jason/enum6.C, g++.old-deja/g++.law/enum9.C,drow2008-05-063-0/+35
| | | | | | | | g++.old-deja/g++.other/enum4.C, gfortran/enum_9.f90, gfortran.dg/enum_10.f90: Broaden dg-options pattern. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134993 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/57jason2008-04-281-4/+4
| | | | | | | | * parser.c (cp_parser_parameter_declaration): Handle < ambiguity in default arguments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134762 138bc75d-0d04-0410-961f-82ee72b054a4
* * lib/target-supports.exp (check_effective_target_vxworks_kernel):nathan2008-04-099-5/+47
| | | | | | | | | | | | | | | | | | | | | Fix comment. (check_effective_target_vxworks_rtp): New procedure. * g++.dg/opt/20050511-1.C: Rename UINT32 for VxWorks kernel mode. * g++.dg/warn/miss-format-1.C: XFAIL for VxWorks. * g++.old-deja/g++.abi/cxa_vec.C: XFAIL for VxWorks kernels. * g++.old-deja/g++.brendan/new3.C: Likewise. * g++.old-deja/g++.eh/badalloc1.C: XFAIL for VxWorks RTPs. * g++.old-deja/g++.law/missed-error2.C: Undefine max for VxWorks kernel mode. * g++.old-deja/g++.mike/init1.C: XFAIL for VxWorks kernel mode. * g++.old-deja/g++.mike/p2736.C: Likewise. * g++.old-deja/g++.mike/p658.C: Undefine OK for VxWorks kernel mode. * g++.old-deja/g++.other/headers1.C: Likewise min and max. * g++.old-deja/g++.robertl/eb79.C: Undefine max for VxWorks kernel mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134134 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/jbeulich2008-02-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-02-25 Jan Beulich <jbeulich@novell.com> * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T). * config/i386/netware-libgcc.exp: Add __bswap?i2, __emultls_get_address, __emultls_register_common, __floatundi?f, and _Unwind_GetIPInfo. * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix(). (gen_regparm_prefix): Likewise. (i386_nlm_encode_section_info): Sync with config/i386/winnt.c:i386_pe_encode_section_info(). (i386_nlm_maybe_mangle_decl_assembler_name): New. i386_nlm_mangle_decl_assembler_name): New. (netware_override_options): New. * config/i386/netware.h (netware_override_options): Declare. (OVERRIDE_OPTIONS): Re-define to netware_override_options. (i386_nlm_mangle_decl_assembler_name): Declare. (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define. gcc/testsuite/ 2008-02-25 Jan Beulich <jbeulich@novell.com> * gcc.dg/20020426-2.c: Remove bogus workaround. * g++.old-deja/g++.other/store-expr1.C: Likewise. * gcc.target/i386/movq-2.c: Also permit use of movzbl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132624 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>aldot2008-01-281-1/+1
| | | | | | | | * g++.old-deja/g++.pt/incomplete1.C: Fix typo in comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131919 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/34912jason2008-01-221-1/+1
| | | | | | | | | | | * friend.c (do_friend): Check for prior declaration of a friend function of a local class. * name-lookup.c (lookup_name_innermost_nonclass_level): No longer static. * name-lookup.h: Declare it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131740 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.old-deja/g++.mike/empty.C: Remove 2 xfails.jakub2007-12-071-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130694 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-11-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>manu2007-11-122-5/+5
| | | | | | | | | | | | | | | | PR c++/8570 cp/ * pt.c (redeclare_class_template): Update error message. Use a note to show the previous declaration. (tsubst_friend_class): Use the location of the friend template as the input location before calling redeclare_class_template. testsuite/ * g++.old-deja/g++.ns/template13.C: Update expected output. * g++.old-deja/g++.pt/friend23.C: Likewise. * g++.dg/warn/pr8570.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130092 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/janis2007-11-019-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR testsuite/25352 * doc/sourcebuild.texi (Test Directives): Document that xfail has no effect for dg-do except when dg-do-what is "run". libstdc++-v3/ PR testsuite/25352 * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc: Remove xfail from dg-do and add dg-skip-if. gcc/testsuite/ PR testsuite/25352 * gcc.c-torture/compile/20000804-1.c: Remove xfail from dg-do and add dg-skip-if. * gcc.c-torture/compile/20001205-1.c: Ditto. * gcc.c-torture/compile/20001226-1.c: Ditto. * gcc.c-torture/compile/20020312-1.c: Ditto. * gcc.c-torture/compile/20020604-1.c: Ditto. * gcc.c-torture/compile/920501-12.c: Ditto. * gcc.c-torture/compile/920501-4.c: Ditto. * gcc.c-torture/compile/920520-1.c: Ditto. * gcc.c-torture/compile/980506-1.c: Ditto. * gcc.c-torture/compile/990617-1.c: Ditto. * gcc.dg/compare6.c: Ditto. * g++.old-deja/g++.brendan/crash43.C: Ditto. * g++.old-deja/g++.brendan/synth1.C: Ditto. * g++.old-deja/g++.oliva/dwarf2.C: Ditto. * g++.old-deja/g++.oliva/dwarf3.C: Ditto. * g++.old-deja/g++.pt/static6.C: Ditto. * g++.old-deja/g++.pt/crash16.C: Ditto. * g++.old-deja/g++.mike/p10416.C: Ditto. * g++.old-deja/g++.mike/ns15.C: Ditto. * g++.old-deja/g++.mike/eh46.C: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129823 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/24791jason2007-10-261-1/+1
| | | | | | | | | | * pt.c (get_template_info): New fn. (template_class_depth): Use it. (push_template_decl_real): Check that the template args of the definition match the args of the previous declaration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129660 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-10-18 Benjamin Kosnik <bkoz@redhat.com>bkoz2007-10-181-2/+2
| | | | | | | | * g++.old-deja/g++.robertl/eb130.C: Adjust include paths. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129464 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/testsuite:jsm282007-09-096-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/file-format.exp (gcc_target_object_format): Use remote_exec to call objdump. * lib/scanasm.exp (scan-assembler-dem, scan-assembler-dem-not): Use remote_exec to call c++filt. * lib/target-supports-dg.exp (dg-require-host-local): New. * gcc.misc-tests/options.exp: Allow .exe in command paths. * g++.dg/parse/repo1.C: Use dg-require-host-local. * g++.dg/rtti/repo1.C: Likewise. * g++.dg/template/repo1.C: Likewise. * g++.dg/template/repo2.C: Likewise. * g++.dg/template/repo3.C: Likewise. * g++.dg/template/repo4.C: Likewise. * g++.dg/template/repo5.C: Likewise. * g++.old-deja/g++.pt/instantiate4.C: Likewise. * g++.old-deja/g++.pt/instantiate6.C: Likewise. * g++.old-deja/g++.pt/repo1.C: Likewise. * g++.old-deja/g++.pt/repo2.C: Likewise. * g++.old-deja/g++.pt/repo3.C: Likewise. * g++.old-deja/g++.pt/repo4.C: Likewise. * gcc.dg/cpp/trad/builtins.c: Likewise. libstdc++-v3: * testsuite/lib/libstdc++.exp (v3-build-support): Specify output file for preprocessing. Use remote_exec to call ar and ranlib. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128283 138bc75d-0d04-0410-961f-82ee72b054a4
* * lib/gcc-dg.exp (cleanup-profile-file): New procedure.uros2007-08-301-0/+2
| | | | | | | | | | | | | * gcc.dg/20021014-1.c: Use cleanup-profile-file. * gcc.dg/gcc.dg/20021014-1.c: Ditto. * gcc.dg/pr32450.c: Ditto. * gcc.dg/nest.c: Ditto. * gcc.dg/nested-func-4.c: Ditto. * g++.old-deja/g++.law/profile1.C: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127919 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2007-08-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 2007-08-14 Paolo Carlini <pcarlini@suse.de> PR c++/27211 * decl2.c (check_classfn): Return error_mark_node in case of error; in that case, do not call add_method. * decl.c (start_decl): Deal with check_classfn returning error_mark_node. (grokfndecl): Likewise. * pt.c (tsubst_friend_function): Likewise. /testsuite 2007-08-14 Paolo Carlini <pcarlini@suse.de> PR c++/27211 * g++.dg/template/error27.C: New. * g++.dg/template/error28.C: New. * g++.dg/other/pr28304.C: Adjust. * g++.old-deja/g++.mike/p811.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127492 138bc75d-0d04-0410-961f-82ee72b054a4
* cp:reichelt2007-08-051-2/+1
| | | | | | | | | | | | | | | | | | | | Revert: 2007-03-26 Dirk Mueller <dmueller@suse.de> * parser.c (cp_parser_member_declaration): Pedwarn about stray semicolons after member declarations. testsuite: * g++.dg/warn/pedantic2.C: Fix error marker. Add more tests. Revert: 2007-03-22 Dirk Mueller <dmueller@suse.de> * g++.old-deja/g++.brendan/warnings2.C: Don't use -pedantic. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127226 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c-torture/execute/execute.exp: Change copyright header to refer to versionnickc2007-08-013-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3 of the GNU General Public License and to point readers at the COPYING3 file and the FSF's license web page. * gcc.c-torture/execute/ieee/ieee.exp, gcc.c-torture/unsorted/unsorted.exp, gcc.c-torture/compile/compile.exp, gcc.c-torture/compile/structs.c, gcc.target/powerpc/powerpc.exp, gcc.target/arm/neon/neon.exp, gcc.target/arm/arm.exp, gcc.target/cris/torture/cris-torture.exp, gcc.target/cris/cris.exp, gcc.target/ia64/ia64.exp, gcc.target/alpha/alpha.exp, gcc.target/m68k/m68k.exp, gcc.target/spu/spu.exp, gcc.target/mips/mips.exp, gcc.target/sparc/sparc.exp, gcc.target/i386/i386.exp, gcc.target/x86_64/abi/abi-x86_64.exp, gnat.dg/specs/specs.exp, gnat.dg/dg.exp, gnat.dg/style/style.exp, gcc.dg/special/mips-abi.exp, gcc.dg/special/special.exp, gcc.dg/pch/pch.exp, gcc.dg/vxworks/vxworks.exp, gcc.dg/dg.exp, gcc.dg/charset/charset.exp, gcc.dg/weak/weak.exp, gcc.dg/tree-ssa/tree-ssa.exp, gcc.dg/tls/tls.exp, gcc.dg/cpp/cpp.exp, gcc.dg/cpp/trad/trad.exp, gcc.dg/matrix/matrix.exp, gcc.dg/vmx/vmx.exp, gcc.dg/compat/struct-layout-1.exp, gcc.dg/compat/compat.exp, gcc.dg/compat/struct-layout-1_generate.c, gcc.dg/debug/debug.exp, gcc.dg/debug/dwarf2/dwarf2.exp, gcc.dg/tree-prof/tree-prof.exp, gcc.dg/ipa/ipa.exp, gcc.dg/dfp/dfp.exp, gcc.dg/noncompile/noncompile.exp, gcc.dg/vect/costmodel/ppc/ppc-costmodel-vect.exp, gcc.dg/vect/costmodel/spu/spu-costmodel-vect.exp, gcc.dg/vect/costmodel/i386/i386-costmodel-vect.exp, gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp, gcc.dg/vect/vect.exp, gcc.dg/format/format.exp, gcc.misc-tests/i386-prefetch.exp, gcc.misc-tests/sort2.exp, gcc.misc-tests/matrix1.exp, gcc.misc-tests/dectest.exp, gcc.misc-tests/options.exp, gcc.misc-tests/gcov.exp, gcc.misc-tests/mg-2.exp, gcc.misc-tests/mg.exp, gcc.misc-tests/bprob.exp, gcc.misc-tests/acker1.exp, gcc.misc-tests/dhry.exp, gcc.misc-tests/linkage.exp, gcc.misc-tests/arm-isr.exp, gcc.misc-tests/sieve.exp, g++.old-deja/g++.niklas/README, g++.old-deja/g++.gb/README, g++.old-deja/old-deja.exp, gfortran.fortran-torture/execute/execute.exp, gfortran.fortran-torture/compile/compile.exp, treelang/output/output-1.c, treelang/output/output-1.tree, treelang/execute/execute.exp, treelang/Makefile.in, treelang/compile/compile.exp, g++.dg/dg.exp, g++.dg/debug/debug.exp, g++.dg/debug/dwarf2/dwarf2.exp, g++.dg/charset/charset.exp, g++.dg/vect/vect.exp, g++.dg/tls/tls.exp, g++.dg/tree-prof/tree-prof.exp, g++.dg/pch/pch.exp, g++.dg/special/ecos.exp, g++.dg/compat/struct-layout-1.exp, g++.dg/compat/struct-layout-1_generate.c, g++.dg/compat/compat.exp, g++.dg/gcov/gcov.exp, g++.dg/bprob/bprob.exp, config/default.exp, gcc.test-framework/test-framework.awk, gcc.test-framework/gen_directive_tests, gcc.test-framework/test-framework.exp, objc.dg/special/special.exp, objc.dg/gnu-encoding/gnu-encoding.exp, objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c, objc.dg/pch/pch.exp, objc.dg/dg.exp, lib/copy-file.exp, lib/profopt.exp, lib/gcc.exp, lib/mike-g++.exp, lib/c-compat.exp, lib/scanrtl.exp, lib/gfortran-dg.exp, lib/g++.exp, lib/obj-c++.exp, lib/wrapper.exp, lib/gnat-dg.exp, lib/compat.exp, lib/c-torture.exp, lib/gcc-dg.exp, lib/scanasm.exp, lib/gnat.exp, lib/treelang-dg.exp, lib/prune.exp, lib/gcov.exp, lib/treelang.exp, lib/dg-pch.exp, lib/scantree.exp, lib/g++-dg.exp, lib/objc-dg.exp, lib/file-format.exp, lib/target-libpath.exp, lib/obj-c++-dg.exp, lib/scandump.exp, lib/target-supports-dg.exp, lib/gcc-defs.exp, lib/fortran-torture.exp, lib/objc.exp, lib/scanipa.exp, lib/mike-gcc.exp, lib/objc-torture.exp, lib/gfortran.exp, lib/target-supports.exp, obj-c++.dg/dg.exp, gfortran.dg/dg.exp, gfortran.dg/vect/vect.exp, objc/execute/execute.exp, objc/execute/exceptions/exceptions.exp, objc/compile/compile.exp: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127127 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-05-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>manu2007-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/invoke.texi (Warning Options): Add -Wconversion-sign. (Wconversion): Update description. (Wconversion-sign): New. * c.opt (Wconversion-sign): New. * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign means disabled for C++. Otherwise, take the status of Wconversion. * c-common.c (conversion_warning): Warn with either Wconversion or Wconversion-sign. (warnings_for_convert_and_check): Conditions are already checked by conversion_warning. (convert_and_check): Don't check warnings if the conversion failed. cp/ * cvt.c (cp_convert_and_check): Don't check warnings if the conversion failed. testsuite/ * gcc.dg/Wconversion-integer.c: Group testcases and add more. * gcc.dg/Wconversion-sign.c: New. * gcc.dg/Wconversion-integer-no-sign.c: New. * g++.dg/warn/Wconversion-integer.C: Move some warnings to Wconversion-sign.C * g++.dg/warn/Wconversion-sign.C: New. * g++.old-deja/g++.other/warn4.C: Update. * g++.dg/warn/Wconversion1.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124856 138bc75d-0d04-0410-961f-82ee72b054a4
* include cstring as welljason2007-05-081-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124536 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/invoke.texi (Warning Options): Document that -Wempty-bodymrs2007-05-081-0/+25
| | | | | | | | | | | | | | also checks for and while statements in C++. cp: * parser.c (check_empty_body): Add. (cp_parser_iteration_statement): Add call to check_empty_body. testsuite: * g++.old-deja/g++.mike/empty.C: Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124534 138bc75d-0d04-0410-961f-82ee72b054a4