]> gcc.gnu.org Git - gcc.git/commitdiff
altivec.h: Wrap C++ functions in extern "C++" block.
authorAndrew Pinski <pinskia@physics.uc.edu>
Sun, 18 Jan 2004 19:50:18 +0000 (19:50 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 18 Jan 2004 19:50:18 +0000 (11:50 -0800)
2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>

* config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
block.

From-SVN: r76109

gcc/ChangeLog
gcc/config/rs6000/altivec.h

index affc9265881eccc39b786a295440ea7e04974786..3e28fe1fd9336b488ced687bc9727aa9b1dc6dcb 100644 (file)
@@ -1,5 +1,8 @@
 2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
 
+       * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
+       block.
+
        * config/rs6000/rs6000.c (rs6000_special_round_type_align):
        Check for NULL in the chain and remove repeated code.
 
index c98d6ea374338d0c3c6e2b5331e18b8ac0781467..3751deddbf5bba892f377fc3f61178264974f67f 100644 (file)
@@ -118,6 +118,8 @@ extern int __altivec_link_error_invalid_argument ();
 
 #ifdef __cplusplus
 
+extern "C++" {
+
 /* Prototypes for builtins that take literals and must always be
    inlined.  */
 inline vector float vec_ctf (vector unsigned int, const char) __attribute__ ((always_inline));
@@ -6117,6 +6119,8 @@ struct __vec_step_help<vector float>
 
 #define vec_step(t)  __vec_step_help<typeof(t)>::_S_elem
 
+}//extern "C++"
+
 #else /* not C++ */
 
 /* "... and so I think no man in a century will suffer as greatly as
@@ -8533,6 +8537,7 @@ __ch (__bin_args_eq (vector float, (a1), vector float, (a2)), \
 
 #define vec_any_out(a1, a2) __builtin_altivec_vcmpbfp_p (__CR6_EQ_REV, (a1), (a2))
 
+
 #endif /* __cplusplus */
 
 #endif /* _ALTIVEC_H */
This page took 0.082979 seconds and 5 git commands to generate.