From b4be9e8e86ef2580b079b0ccf3d439af93cb2faa Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Sun, 18 Jan 2004 19:50:18 +0000 Subject: [PATCH] altivec.h: Wrap C++ functions in extern "C++" block. 2004-01-18 Andrew Pinski * config/rs6000/altivec.h: Wrap C++ functions in extern "C++" block. From-SVN: r76109 --- gcc/ChangeLog | 3 +++ gcc/config/rs6000/altivec.h | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index affc9265881..3e28fe1fd93 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2004-01-18 Andrew Pinski + * 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 c98d6ea3743..3751deddbf5 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 #define vec_step(t) __vec_step_help::_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 */ -- 2.30.2