aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2021-05-18 17:30:34 +0200
committerThomas Schwinge <thomas@codesourcery.com>2021-05-21 20:09:16 +0200
commitd42c10563e23d846b61c9c4a4abe75da70f7838d (patch)
treeb1f88a2b983355b32bd25eca917f1ae10f2b56ac /gcc/doc
parent5a0fe1f6c4ad0e50bf4684e723ae2ba17d94c9e4 (diff)
downloadgcc-d42c10563e23d846b61c9c4a4abe75da70f7838d.zip
gcc-d42c10563e23d846b61c9c4a4abe75da70f7838d.tar.gz
gcc-d42c10563e23d846b61c9c4a4abe75da70f7838d.tar.bz2
Add '__OPTIMIZE__' DejaGnu selector
gcc/testsuite/ * lib/target-supports.exp (check_effective_target___OPTIMIZE__): New proc. * gcc.c-torture/compile/ssa-unused-1.c: New file. gcc/ * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__' DejaGnu selector.
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/sourcebuild.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi
index ed811d1..cf309874 100644
--- a/gcc/doc/sourcebuild.texi
+++ b/gcc/doc/sourcebuild.texi
@@ -2755,6 +2755,10 @@ constant.
@item lgccjit
Target supports -lgccjit, i.e. libgccjit.so can be linked into jit tests.
+
+@item __OPTIMIZE__
+Optimizations are enabled (@code{__OPTIMIZE__}) per the current
+compiler flags.
@end table
@subsubsection Local to tests in @code{gcc.target/i386}