From 0e92f1e8036a9ce1501d54d6bb39043d74fc8ab0 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Fri, 25 Mar 2016 04:00:17 +0000 Subject: [PATCH] * doc/extend.texi: Fix typo in documentation to pure attribute. From-SVN: r234477 --- gcc/ChangeLog | 4 ++++ gcc/doc/extend.texi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9c2da5fad9b..af61f538dcc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-03-24 Aldy Hernandez + + * doc/extend.texi: Fix typo in documentation to pure attribute. + 2016-03-24 John David Anglin PR target/70319 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 623a5d0c85b..6e2702992c6 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -3045,7 +3045,7 @@ int square (int) __attribute__ ((pure)); says that the hypothetical function @code{square} is safe to call fewer times than the program says. -Some of common examples of pure functions are @code{strlen} or @code{memcmp}. +Some common examples of pure functions are @code{strlen} or @code{memcmp}. Interesting non-pure functions are functions with infinite loops or those depending on volatile memory or other system resource, that may change between two consecutive calls (such as @code{feof} in a multithreading environment).