OSDN Git Service

2006-09-11 Josh Triplett <josh@freedesktop.org>
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Sep 2006 21:25:45 +0000 (21:25 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Sep 2006 21:25:45 +0000 (21:25 +0000)
* doc/extend.texi (Other Builtins): Actually use the macro
argument in the documentation example for
__builtin_types_compatible_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116858 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/extend.texi

index defc9d5..71ef415 100644 (file)
@@ -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
index b53629b..625c833 100644 (file)
@@ -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)) \