Skip to content

Commit 052db02

Browse files
committed
Merge branch 'users/meinersbur/flang_runtime' into users/meinersbur/flang_runtime_shared
2 parents 36c9540 + 99c01fd commit 052db02

File tree

122 files changed

+258
-259
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+258
-259
lines changed

flang-rt/include/flang-rt/array-constructor.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef FLANG_RT_ARRAY_CONSTRUCTOR_H_
1313
#define FLANG_RT_ARRAY_CONSTRUCTOR_H_
1414

15-
#include "flang-rt/descriptor.h"
15+
#include "descriptor.h"
1616
#include "flang/Runtime/array-constructor-consts.h"
1717
#include "flang/Runtime/entry-names.h"
1818
#include <cstdint>
@@ -44,6 +44,14 @@ struct ArrayConstructorVector {
4444
unsigned char useValueLengthParameters_ : 1;
4545
};
4646

47+
static_assert(sizeof(Fortran::runtime::ArrayConstructorVector) <=
48+
MaxArrayConstructorVectorSizeInBytes,
49+
"ABI requires sizeof(ArrayConstructorVector) to be smaller than "
50+
"MaxArrayConstructorVectorSizeInBytes");
51+
static_assert(alignof(Fortran::runtime::ArrayConstructorVector) <=
52+
MaxArrayConstructorVectorAlignInBytes,
53+
"ABI requires alignof(ArrayConstructorVector) to be smaller than "
54+
"MaxArrayConstructorVectorAlignInBytes");
4755

4856
} // namespace Fortran::runtime
4957
#endif /* FLANG_RT_ARRAY_CONSTRUCTOR_H_ */

flang-rt/lib/flang_rt/assign-impl.h renamed to flang-rt/include/flang-rt/assign-impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- lib/flang_rt/assign-impl.h ------------------------------*- C++ -*-===//
1+
//===-- include/flang-rt/assign-impl.h --------------------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

flang-rt/lib/flang_rt/buffer.h renamed to flang-rt/include/flang-rt/buffer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- lib/flang_rt/buffer.h -----------------------------------*- C++ -*-===//
1+
//===-- include/flang-rt/buffer.h -------------------------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -12,7 +12,7 @@
1212
#define FLANG_RT_BUFFER_H_
1313

1414
#include "io-error.h"
15-
#include "flang-rt/memory.h"
15+
#include "memory.h"
1616
#include "flang/Runtime/freestanding-tools.h"
1717
#include <algorithm>
1818
#include <cinttypes>

flang-rt/lib/flang_rt/connection.h renamed to flang-rt/include/flang-rt/connection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- lib/flang_rt/connection.h -------------------------------*- C++ -*-===//
1+
//===-- include/flang-rt/connection.h ---------------------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

flang-rt/lib/flang_rt/derived.h renamed to flang-rt/include/flang-rt/derived.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- lib/flang_rt/derived.h ----------------------------------*- C++ -*-===//
1+
//===-- include/flang-rt/derived.h ------------------------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

flang-rt/include/flang-rt/descriptor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
// User C code is welcome to depend on that ISO_Fortran_binding.h file,
1919
// but should never reference this internal header.
2020

21-
#include "flang-rt/memory.h"
22-
#include "flang-rt/type-code.h"
21+
#include "memory.h"
22+
#include "type-code.h"
2323
#include "flang/Common/ISO_Fortran_binding_wrapper.h"
2424
#include "flang/Runtime/descriptor-consts.h"
2525
#include <algorithm>

flang-rt/lib/flang_rt/emit-encoded.h renamed to flang-rt/include/flang-rt/emit-encoded.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- lib/flang_rt/emit-encoded.h -----------------------------*- C++ -*-===//
1+
//===-- include/flang-rt/emit-encoded.h -------------------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

flang-rt/lib/flang_rt/environment.h renamed to flang-rt/include/flang-rt/environment.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- lib/flang_rt/environment.h ------------------------------*- C++ -*-===//
1+
//===-- include/flang-rt/environment.h --------------------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

flang-rt/lib/flang_rt/file.h renamed to flang-rt/include/flang-rt/file.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- lib/flang_rt/file.h -------------------------------------*- C++ -*-===//
1+
//===-- include/flang-rt/file.h ---------------------------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -12,7 +12,7 @@
1212
#define FLANG_RT_FILE_H_
1313

1414
#include "io-error.h"
15-
#include "flang-rt/memory.h"
15+
#include "memory.h"
1616
#include "flang/Common/optional.h"
1717
#include <cinttypes>
1818

flang-rt/lib/flang_rt/format-implementation.h renamed to flang-rt/include/flang-rt/format-implementation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- lib/flang_rt/format-implementation.h --------------------*- C++ -*-===//
1+
//===-- include/flang-rt/format-implementation.h ----------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

0 commit comments

Comments
 (0)