Skip to content
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

Fix clasic flang compilation with in-tree flang #1378

Closed
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: 4 additions & 2 deletions runtime/flang/comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ typedef struct {

/* ENTFTN(comm_start) function: adjust base addresses and call doit */

static void I8(comm_sked_start)(comm_sked *sk, char *rb, char *sb, F90_Desc *rd,
static void I8(comm_sked_start)(void *sk_, char *rb, char *sb, F90_Desc *rd,
F90_Desc *sd)
{
comm_sked *sk = (comm_sked*)sk_;
#if defined(DEBUG)
if (F90_KIND_G(rd) != F90_KIND_G(sd) || F90_LEN_G(rd) != F90_LEN_G(sd))
__fort_abort("COMM_START: mismatched array types");
Expand All @@ -39,8 +40,9 @@ static void I8(comm_sked_start)(comm_sked *sk, char *rb, char *sb, F90_Desc *rd,
/* comm_free function: free channel and schedule structures */

static void
comm_sked_free(comm_sked *sk)
comm_sked_free(void *sk_)
{
comm_sked *sk = (comm_sked*)sk_;
__fort_frechn(sk->channel);
__fort_free(sk);
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/flang/ftnmiscsup.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void
Ftn_date(char *buf, /* date buffer */
INT buf_len) /* length of date buffer */
{
char loc_buf[9];
char loc_buf[10];
INT idx1;
time_t ltime;
struct tm *lt;
Expand Down
Loading