gcc/gcc/testsuite/gcc.dg
Richard Henderson 0bfa5f65bf c-common.c (handle_cleanup_attribute): New.
* c-common.c (handle_cleanup_attribute): New.
        (c_common_attributes): Add it.
        * c-decl.c (finish_decl): Honor the cleanup attribute.
        * doc/extend.texi (Variable Attributes): Document it.

        * unwind-c.c: New file.
        * Makefile.in (LIB2ADDEH): Add it.
        * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
        config/ia64/t-ia64: Likewise.

        * gcc.dg/cleanup-1.c: New.
        * gcc.dg/cleanup-2.c: New.
        * gcc.dg/cleanup-3.c: New.
        * gcc.dg/cleanup-4.c: New.
        * gcc.dg/cleanup-5.c: New.
        * gcc.dg/cleanup-6.c: New.
        * gcc.dg/cleanup-7.c: New.

From-SVN: r67449
2003-06-04 10:06:00 -07:00
..
compat scalar-return-1_main.c: New file. 2003-05-21 23:14:22 +00:00
cpp scanasm.exp (dg-scan): New function, factored out of ... 2003-06-02 19:21:15 +00:00
debug gcc-dg.exp (gcc-dg-debug-runtest): Add opt_opts parameter. 2003-05-18 18:59:56 +00:00
format
noncompile
pch dg-pch.exp: New file. 2003-06-04 15:32:08 +00:00
special mips-abi.exp (is_meabi_config): Remove, since MEABI is no longer supported. 2003-05-01 18:56:10 -07:00
tls backport: re PR target/7434 ([x86_64] ICE in change_address_1, at emit-rtl.c:1934) 2003-05-16 21:35:43 +02:00
torture builtin-noret-1.c (_exit, _Exit): Make weak. 2003-06-03 18:00:23 +01:00
weak
920413-1.c
940409-1.c
940510-1.c
951130-1.c
980211-1.c
980217-1.c
980226-1.c
980312-1.c
980313-1.c
980414-1.c
980502-1.c
980520-1.c
980523-1.c
980526-1.c
980709-1.c
980816-1.c
980827-1.c
990117-1.c
990130-1.c
990213-1.c
990213-2.c
990214-1.c
990424-1.c
990506-0.c
990524-1.c
991129-1.c
991209-1.c
991214-1.c
991230-1.c
20000108-1.c
20000111-1.c
20000609-1.c
20000614-1.c
20000614-2.c
20000623-1.c
20000629-1.c
20000707-1.c
20000715-1.c
20000720-1.c
20000724-1.c
20000807-1.c
20000904-1.c
20000906-1.c
20000926-1.c
20001009-1.c
20001012-1.c
20001012-2.c
20001013-1.c
20001023-1.c
20001101-1.c
20001102-1.c
20001108-1.c
20001116-1.c
20001117-1.c
20001127-1.c
20001201-1.c
20001228-1.c
20010202-1.c
20010405-1.c
20010423-1.c
20010520-1.c
20010622-1.c
20010822-1.c
20010912-1.c
20011008-1.c
20011008-2.c
20011009-1.c
20011015-1.c
20011018-1.c
20011021-1.c
20011029-2.c
20011107-1.c
20011113-1.c
20011119-1.c
20011127-1.c
20011130-1.c
20011214-1.c
20020103-1.c
20020104-1.c
20020108-1.c
20020115-1.c
20020116-1.c
20020116-2.c
20020118-1.c
20020122-1.c
20020122-2.c
20020122-3.c
20020122-4.c
20020201-1.c
20020201-2.c
20020201-3.c
20020201-4.c
20020206-1.c
20020210-1.c
20020218-1.c
20020219-1.c
20020220-1.c
20020220-2.c
20020222-1.c
20020224-1.c
20020304-1.c
20020310-1.c
20020312-1.c
20020312-2.c
20020313-1.c
20020319-1.c
20020326-1.c
20020411-1.c
20020415-1.c
20020416-1.c
20020418-1.c
20020418-2.c
20020425-1.c
20020426-1.c
20020426-2.c
20020430-1.c
20020503-1.c
20020517-1.c
20020523-1.c
20020523-2.c
20020525-1.c * gcc.dg/20020525-1.c: Replace 0x5a5a5a5a with -1. 2003-06-03 23:08:22 +00:00
20020527-1.c
20020530-1.c
20020531-1.c
20020607-1.c
20020607-2.c
20020616-1.c
20020620-1.c
20020729-1.c backport: re PR target/7434 ([x86_64] ICE in change_address_1, at emit-rtl.c:1934) 2003-05-16 21:35:43 +02:00
20020919-1.c
20020926-1.c
20021006-1.c
20021014-1.c re PR target/6428 ([hppa*-hp-hpux] gmon.out is not generated when application to be profiled is linked with shared libgcc) 2003-05-21 22:00:58 +00:00
20021018-1.c 20020404-1.x: New, skip for 16-bit targets. 2003-05-08 19:38:04 -04:00
20021023-1.c
20021029-1.c
20021029-2.c
20021116-1.c
20030107-1.c
20030120-1.c
20030123-1.c
20030129-1.c
20030204-1.c
20030213-1.c
20030217-1.c backport: re PR target/7434 ([x86_64] ICE in change_address_1, at emit-rtl.c:1934) 2003-05-16 21:35:43 +02:00
20030218-1.c
20030225-1.c
20030225-2.c * gcc.dg/20030225-2.c: New test. 2003-05-19 14:15:33 +02:00
20030309-1.c backport: re PR target/7434 ([x86_64] ICE in change_address_1, at emit-rtl.c:1934) 2003-05-16 21:35:43 +02:00
20030321-1.c
20030323-1.c
20030324-1.c
20030331-2.c
20030405-1.c backport: re PR target/7434 ([x86_64] ICE in change_address_1, at emit-rtl.c:1934) 2003-05-16 21:35:43 +02:00
20030414-1.c
20030414-2.c
20030505.c 200305051.c: Fix triplet. 2003-05-07 20:02:34 +00:00
alias-1.c
align-1.c
alpha-base-1.c
alpha-base-2.c
alpha-cix-1.c
alpha-cix-2.c
alpha-max-1.c
alpha-max-2.c
altivec-1.c
altivec-2.c
altivec-3.c
altivec-4.c
altivec-5.c
altivec-7.c
altivec-8.c
altivec-9.c
anon-struct-1.c
anon-struct-2.c
anon-struct-3.c
arm-asm.c
array-1.c
array-2.c
array-3.c
array-4.c
array-5.c
array-6.c
asm-1.c
asm-2.c
asm-3.c
asm-4.c
asm-5.c
asm-6.c
asm-fs-1.c
asm-names.c
asmreg-1.c
attr-alwaysinline.c
attr-invalid.c
attr-nest.c
attr-noinline.c
attr-used-2.c
attr-used.c
bconstp-1.c
bf-ms-attrib.c
bf-ms-layout.c
bf-no-ms-layout.c
bf-spl1.c
bitfld-1.c
bitfld-2.c
bitfld-3.c
bitfld-4.c
bitfld-5.c
bitfld-6.c
builtin-choose-expr.c
builtin-inf-1.c
builtin-prefetch-1.c
builtins-1.c builtins.def: Defome atan... 2003-05-23 20:45:40 +00:00
builtins-2.c builtins.c (dconstpi, dconste): New mathematical constants. 2003-06-04 12:20:40 +00:00
builtins-3.c builtins.c (dconstpi, dconste): New mathematical constants. 2003-06-04 12:20:40 +00:00
builtins-4.c builtins.def: Defome atan... 2003-05-23 20:45:40 +00:00
builtins-5.c
builtins-6.c
builtins-7.c builtins.c (dconstpi, dconste): New mathematical constants. 2003-06-04 12:20:40 +00:00
builtins-8.c
builtins-9.c
builtins-10.c
builtins-11.c
builtins-12.c
builtins-13.c
builtins-14.c real.c (real_powi): New function to calculate the value of a real raised to an integer power, i.e. 2003-05-06 03:14:10 +00:00
builtins-15.c re PR rtl-optimization/10764 (ICE when using log(), -fast-math and optimization) 2003-05-14 21:13:49 +00:00
builtins-16.c builtins.def (BUILT_IN_CABS, [...]): New builtins representing ISO C99's cabs, cabsf and cabsl. 2003-06-03 11:27:23 +00:00
builtins-17.c builtins.c (dconstpi, dconste): New mathematical constants. 2003-06-04 12:20:40 +00:00
c90-array-lval-1.c
c90-array-lval-2.c
c90-array-lval-3.c
c90-array-lval-4.c
c90-array-lval-5.c
c90-arraydecl-1.c
c90-complex-1.c
c90-complit-1.c
c90-const-expr-1.c
c90-const-expr-2.c
c90-const-expr-3.c
c90-digraph-1.c
c90-enum-comma-1.c
c90-flex-array-1.c
c90-float-1.c
c90-fordecl-1.c
c90-hexfloat-1.c
c90-hexfloat-2.c
c90-idem-qual-1.c
c90-idem-qual-2.c
c90-impl-decl-1.c
c90-impl-int-1.c
c90-impl-int-2.c
c90-init-1.c
c90-intconst-1.c
c90-longlong-1.c
c90-mixdecl-1.c
c90-restrict-1.c
c90-return-1.c
c90-scope-1.c
c90-vla-1.c
c94-digraph-1.c
c99-array-lval-1.c
c99-array-lval-2.c
c99-array-lval-3.c
c99-array-lval-4.c
c99-array-lval-5.c
c99-array-nonobj-1.c
c99-arraydecl-1.c
c99-bool-1.c
c99-complex-1.c
c99-complex-2.c
c99-complit-1.c
c99-complit-2.c
c99-condexpr-1.c
c99-const-expr-1.c
c99-const-expr-2.c
c99-const-expr-3.c
c99-digraph-1.c
c99-enum-comma-1.c
c99-flex-array-1.c
c99-flex-array-2.c
c99-flex-array-3.c
c99-flex-array-4.c
c99-float-1.c
c99-fordecl-1.c
c99-fordecl-2.c
c99-func-1.c
c99-func-2.c
c99-func-3.c
c99-func-4.c
c99-hexfloat-1.c
c99-hexfloat-2.c
c99-idem-qual-1.c
c99-idem-qual-2.c
c99-impl-decl-1.c
c99-impl-int-1.c
c99-impl-int-2.c
c99-init-1.c
c99-init-2.c
c99-intconst-1.c
c99-longlong-1.c
c99-main-1.c
c99-mixdecl-1.c
c99-restrict-1.c
c99-return-1.c
c99-scope-1.c
c99-scope-2.c
c99-tag-1.c
c99-vla-1.c
cast-qual-1.c
cast-qual-2.c
cleanup-1.c c-common.c (handle_cleanup_attribute): New. 2003-06-04 10:06:00 -07:00
cleanup-2.c c-common.c (handle_cleanup_attribute): New. 2003-06-04 10:06:00 -07:00
cleanup-3.c c-common.c (handle_cleanup_attribute): New. 2003-06-04 10:06:00 -07:00
cleanup-4.c c-common.c (handle_cleanup_attribute): New. 2003-06-04 10:06:00 -07:00
cleanup-5.c c-common.c (handle_cleanup_attribute): New. 2003-06-04 10:06:00 -07:00
cleanup-6.c c-common.c (handle_cleanup_attribute): New. 2003-06-04 10:06:00 -07:00
cleanup-7.c c-common.c (handle_cleanup_attribute): New. 2003-06-04 10:06:00 -07:00
clobbers.c
compare1.c
compare2.c
compare3.c
compare4.c
compare5.c
compare6.c
compare7.c re PR c/10604 (-Wall includes sign conversion warning [3.3 regression]) 2003-05-03 21:44:31 +00:00
complete-port.c
concat2.c
concat.c
const-elim-1.c * gcc.dg/const-elim-1.c: Tighten scan-assembler-not regexp. 2003-05-13 16:37:13 +00:00
const-elim-2.c rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P. 2003-05-05 21:57:54 +00:00
conv-1.c
darwin-ld-1.c
darwin-ld-2.c
darwin-ld-3.c
darwin-ld-4.c
darwin-ld-5.c
decl-1.c
decl-2.c
decl-3.c
deprecated.c
dg.exp
divbyzero.c
dll-1.c
dll-2.c
dll-3.c
dll-4.c
dll-5.c
dollar.c c-common.c, c-common.h (dollars_in_ident): Remove. 2003-05-17 20:29:34 +00:00
doloop-1.c
duff-1.c
duff-2.c
duff-3.c
duff-4.c c-semantics.c (genrtl_do_stmt_1): New function split out from... 2003-05-29 16:33:47 +00:00
empty1.c
enum1.c
fastmath-1.c
fnegate-1.c
fshort-wchar.c
funcorder.c
fwrapv-1.c flags.h (flag_wrapv): New flag controlling overflow semantics. 2003-05-31 13:23:32 +00:00
fwrapv-2.c flags.h (flag_wrapv): New flag controlling overflow semantics. 2003-05-31 13:23:32 +00:00
gnu89-init-1.c
gnu89-init-2.c
gnu99-init-1.c
h8300-stack-1.c
i386-387-1.c i386.md (logsf2, [...]): New patterns to implement log, logf and logl built-ins as inline x87 intrinsics. 2003-05-12 02:51:40 +00:00
i386-387-2.c i386.md (logsf2, [...]): New patterns to implement log, logf and logl built-ins as inline x87 intrinsics. 2003-05-12 02:51:40 +00:00
i386-387-3.c
i386-387-4.c builtins.c (dconstpi, dconste): New mathematical constants. 2003-06-04 12:20:40 +00:00
i386-bitfield1.c
i386-bitfield2.c
i386-bitfield3.c
i386-cadd.c
i386-cmov1.c
i386-cmov2.c
i386-cmov3.c
i386-cmov4.c
i386-cmov5.c
i386-cvt-1.c
i386-fastcall-1.c
i386-fpcvt-1.c
i386-fpcvt-2.c
i386-fpcvt-3.c
i386-fpcvt-4.c
i386-local2.c
i386-local.c
i386-loop-1.c
i386-loop-2.c
i386-loop-3.c re PR target/11044 ([x86] out of range loop instructions for FP code on K6) 2003-06-01 16:10:09 +00:00
i386-memset-1.c
i386-mmx-1.c
i386-mmx-2.c
i386-mmx-3.c
i386-mul.c
i386-pic-1.c
i386-signbit-1.c
i386-signbit-2.c
i386-signbit-3.c
i386-sse-1.c
i386-sse-2.c
i386-sse-3.c
i386-ssefp-1.c
i386-ssefp-2.c
i386-ssetype-1.c
i386-ssetype-2.c
i386-ssetype-3.c
i386-ssetype-4.c
i386-ssetype-5.c
i386-unroll-1.c
ia64-asm-1.c
ia64-sync-1.c
ia64-sync-2.c
ia64-sync-3.c
ia64-sync-4.c
ia64-visibility-1.c
ia64-visibility-2.c
ifelse-1.c
iftrap-1.c
iftrap-2.c
inline-1.c
inline-2.c
inline-3.c
inline-4.c
loop-1.c
loop-2.c
lvalue1.c
m68k-slp-ice.c
m-un-1.c
m-un-2.c * gcc.dg/m-un-2.c: Fix the typedef of size_t. 2003-05-03 13:34:43 +00:00
mips-args-1.c
mips-args-2.c
mips-args-3.c
mmix-1.c
nest.c re PR target/6428 ([hppa*-hp-hpux] gmon.out is not generated when application to be profiled is linked with shared libgcc) 2003-05-21 22:00:58 +00:00
nonnull-1.c
nonnull-2.c
nonnull-3.c builtin-attrs.def (ATTR_NOTHROW_NONNULL_1, [...]): Renamed from ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3. 2003-05-04 22:18:17 +00:00
noreturn-1.c
noreturn-2.c
noreturn-3.c
noreturn-4.c
noreturn-5.c c-typeck.c (function_types_compatible_p): Ignore incompatible 'volatile' qualifiers on a function's return type in GNU mode. 2003-04-30 01:28:39 +00:00
noreturn-6.c c-typeck.c (function_types_compatible_p): Ignore incompatible 'volatile' qualifiers on a function's return type in GNU mode. 2003-04-30 01:28:39 +00:00
old-style-asm-1.c
pack-test-1.c
pack-test-1.h
pack-test-2.c
postincr-1.c
ppc-fmadd-1.c
ppc-fmadd-2.c
ppc-fmadd-3.c
ppc-fsel-1.c rs6000.h (REVERSIBLE_CC_MODE): Define. 2003-05-03 23:16:56 +00:00
ppc-fsel-2.c rs6000.c (validate_condition_mode): Use flag_finite_math_only. 2003-05-05 19:33:52 +00:00
ppc-ldstruct.c
ppc-sdata-1.c
ppc-sdata-2.c
ppc-spe.c
pragma-align.c
pragma-darwin.c
pragma-ep-1.c
pragma-ep-2.c
pragma-ep-3.c
pragma-re-1.c
pragma-re-2.c
qual-return-1.c
qual-return-2.c
README
redecl-1.c
return-type-1.c
return-type-2.c
return-type-3.c
section1.c
sequence-pt-1.c
setjmp-1.c
sh-relax.c
sibcall-1.c
sibcall-2.c
sibcall-3.c
sibcall-4.c
sibcall-5.c
sibcall-6.c
simd-1.c
sparc-constant-1.c re PR rtl-optimization/10876 (Segfault when compiling KDE 3.1.2) 2003-06-04 06:52:17 +00:00
sparc-dwarf2.c
sparc-loop-1.c
sparc-ret.c
splet-1.c
string-opt-1.c builtins.c (expand_builtin_memcpy): Remove endp argument and endp != 0 handling. 2003-06-03 10:57:55 +02:00
struct-alias-1.c
struct-by-value-1.c
struct-ret-1.c
struct-ret-2.c
struct-ret-libc.c
switch-1.c
switch-2.c
switch-3.c
trunc-1.c
typedef-init.c
typeof-1.c
typespec-1.c
ultrasp1.c
ultrasp2.c
ultrasp3.c
ultrasp4.c
ultrasp5.c
ultrasp6.c
ultrasp7.c
ultrasp8.c
ultrasp9.c re PR rtl-optimization/11018 ([SPARC] -mcpu=ultrasparc busts tar-1.13.25) 2003-06-04 07:13:03 +00:00
uninit-1.c
uninit-2.c
uninit-3.c
uninit-4.c
uninit-5.c
uninit-6.c
uninit-8.c
uninit-9.c
uninit-10.c
uninit-A.c
uninit-B.c
uninit-C.c
unordered-1.c
unroll-1.c backport: re PR target/7434 ([x86_64] ICE in change_address_1, at emit-rtl.c:1934) 2003-05-16 21:35:43 +02:00
unused-1.c
unused-2.c
unused-3.c
unused-4.c
unused-5.c toplev.c (check_global_declarations): Suppress not-used warning for volatile variables. 2003-05-05 18:29:29 +00:00
va-arg-1.c
va-arg-2.c
verbose-asm.c
vla-2.c
vla-init-1.c
warn-1.c
wchar_t-1.c wchar_t-1.c: XFAIL on darwin, no wchar.h available. 2003-05-26 20:10:20 +02:00
Wconversion.c
wint_t-1.c wchar_t-1.c: XFAIL on darwin, no wchar.h available. 2003-05-26 20:10:20 +02:00
Wlarger-than.c
Wparentheses-1.c
Wreturn-type2.c
Wreturn-type.c
Wshadow-1.c
Wswitch-2.c
Wswitch-default.c
Wswitch-enum.c
Wswitch.c
wtr-aggr-init-1.c
wtr-conversion-1.c
wtr-escape-1.c
wtr-func-def-1.c
wtr-int-type-1.c
wtr-label-1.c
wtr-static-1.c
wtr-strcat-1.c
wtr-suffix-1.c
wtr-switch-1.c
wtr-unary-plus-1.c
wtr-union-init-1.c
wtr-union-init-2.c
wtr-union-init-3.c
Wunknownprag.c
Wunreachable-1.c
Wunreachable-2.c
Wunreachable-3.c
Wunreachable-4.c
Wunreachable-5.c

Notes for testsuite/gcc.dg.

1) There should be only one driver, dg.exp.

2) Try to organize the tests by topic using file name prefixes.

   Eg: All bitfield tests are named "bf-*.c".

   This lets the person running the tests choose particular sets of tests to
   run easily (using wildcards).

   Eg: make check RUNTESTFLAGS='dg.exp=bf-*.c'

3) Remember DOS file name restrictions (8.3).  Sigh.

4) Send bugs, comments, etc. to dje@cygnus.com.