Skip to content

Fix CBLAS xerbla following hidden strlen argument changes #619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CBLAS/include/cblas_f77.h
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,11 @@
extern "C" {
#endif

void F77_xerbla(FCHAR, void *);
#ifdef BLAS_FORTRAN_STRLEN_END
#define F77_xerbla(...) F77_xerbla_base(__VA_ARGS__, 1)
#else
#define F77_xerbla(...) F77_xerbla_base(__VA_ARGS__)
#endif
void F77_xerbla_base(FCHAR, void *
#ifdef BLAS_FORTRAN_STRLEN_END
, size_t
Expand Down
11 changes: 7 additions & 4 deletions CBLAS/src/xerbla.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ void
#ifdef HAS_ATTRIBUTE_WEAK_SUPPORT
__attribute__((weak))
#endif
F77_xerbla
F77_xerbla_base
#ifdef F77_CHAR
(F77_CHAR F77_srname, void *vinfo)
(F77_CHAR F77_srname, void *vinfo
#else
(char *srname, void *vinfo)
(char *srname, void *vinfo
#endif

#ifdef BLAS_FORTRAN_STRLEN_END
, size_t len
#endif
)
{
#ifdef F77_CHAR
char *srname;
Expand Down