X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fdoc%2Fsourcebuild.texi;h=fc564908efb24ab1d62a232b769636651c147a6c;hb=50388ca3231d2219dd81d1b840dc1581671fe7cf;hp=98bb58ddf542bb65c1406fb5274a70c039ef82e5;hpb=f182cde30c5da65d86cef91851f7e155e5eebcb4;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 98bb58ddf54..fc564908efb 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -301,6 +301,9 @@ such as POSIX specify additional values to be defined in @file{gsyslimits.h} if it does not need fixing to work with GCC; if it needs fixing, @file{syslimits.h} is the fixed copy. +GCC can also install @code{}. It will do this when +@file{config.gcc} sets @code{use_gcc_tgmath} to @code{yes}. + @node Documentation @subsection Building Documentation @@ -823,7 +826,7 @@ here; FIXME: document the others. @node Test Idioms @subsection Idioms Used in Testsuite Code -In general C testcases have a trailing @file{-@var{n}.c}, starting +In general, C testcases have a trailing @file{-@var{n}.c}, starting with @file{-1.c}, in case other testcases with similar names are added later. If the test is a test of some well-defined feature, it should have a name referring to that feature such as @@ -1016,6 +1019,12 @@ message is not matched by @var{regexp} then the check fails and @var{comment} is included in the @code{FAIL} message. The check does not look for the string @samp{"warning"} unless it is part of @var{regexp}. +@item @{ dg-message @var{regexp} [@var{comment} [@{ target/xfail @var{selector} @} [@var{line}] @}]] @} +The line is expected to get a message other than an error or warning. +If there is no message for that line or if the text of that message is +not matched by @var{regexp} then the check fails and @var{comment} is +included in the @code{FAIL} message. + @item @{ dg-bogus @var{regexp} [@var{comment} [@{ target/xfail @var{selector} @} [@var{line}] @}]] @} This DejaGnu directive appears on a source line that should not get a message matching @var{regexp}, or else specifies the source line @@ -1026,7 +1035,8 @@ targets. @item @{ dg-excess-errors @var{comment} [@{ target/xfail @var{selector} @}] @} This DejaGnu directive indicates that the test is expected to fail due to compiler messages that are not handled by @samp{dg-error}, -@samp{dg-warning} or @samp{dg-bogus}. +@samp{dg-warning} or @samp{dg-bogus}. For this directive @samp{xfail} +has the same effect as @samp{target}. @item @{ dg-output @var{regexp} [@{ target/xfail @var{selector} @}] @} This DejaGnu directive compares @var{regexp} to the combined output