aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-01-18 19:50:18 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-01-18 11:50:18 -0800
commitb4be9e8e86ef2580b079b0ccf3d439af93cb2faa (patch)
treeaec5b8135aadc8abb1a1b113b049c8483844fba8 /gcc
parentf25bebe1c0cb4eb69ebaaf94083f051a284e0604 (diff)
downloadgcc-b4be9e8e86ef2580b079b0ccf3d439af93cb2faa.zip
gcc-b4be9e8e86ef2580b079b0ccf3d439af93cb2faa.tar.gz
gcc-b4be9e8e86ef2580b079b0ccf3d439af93cb2faa.tar.bz2
altivec.h: Wrap C++ functions in extern "C++" block.
2004-01-18 Andrew Pinski <pinskia@physics.uc.edu> * config/rs6000/altivec.h: Wrap C++ functions in extern "C++" block. From-SVN: r76109
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/rs6000/altivec.h5
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index affc926..3e28fe1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/rs6000/altivec.h b/gcc/config/rs6000/altivec.h
index c98d6ea..3751ded 100644
--- a/gcc/config/rs6000/altivec.h
+++ b/gcc/config/rs6000/altivec.h
@@ -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 */