aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2006-09-11 21:25:45 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2006-09-11 21:25:45 +0000
commitb7886f1470bf8748ad22464177463f19f6376a19 (patch)
tree3be90b28a60324e934ed72f586947bfabc760516
parent2e9182fd4afeef974ac3a3404701f81f7e9c556f (diff)
downloadgcc-b7886f1470bf8748ad22464177463f19f6376a19.zip
gcc-b7886f1470bf8748ad22464177463f19f6376a19.tar.gz
gcc-b7886f1470bf8748ad22464177463f19f6376a19.tar.bz2
extend.texi (Other Builtins): Actually use the macro argument in the documentation example for...
2006-09-11 Josh Triplett <josh@freedesktop.org> * doc/extend.texi (Other Builtins): Actually use the macro argument in the documentation example for __builtin_types_compatible_p. From-SVN: r116858
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/doc/extend.texi2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index defc9d5..71ef415 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2006-09-11 Josh Triplett <josh@freedesktop.org>
+
+ * doc/extend.texi (Other Builtins): Actually use the macro
+ argument in the documentation example for
+ __builtin_types_compatible_p.
+
2006-09-11 Eric Botcazou <ebotcazou@libertysurf.fr>
PR rtl-optimization/28726
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index b53629b..625c833 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -5717,7 +5717,7 @@ depending on the arguments' types. For example:
@smallexample
#define foo(x) \
(@{ \
- typeof (x) tmp; \
+ typeof (x) tmp = (x); \
if (__builtin_types_compatible_p (typeof (x), long double)) \
tmp = foo_long_double (tmp); \
else if (__builtin_types_compatible_p (typeof (x), double)) \