Skip to content

Commit b41d5c1

Browse files
authored
Merge pull request #547 from AbsInt/coq-9.0
Support for Rocq/Coq 9.0
2 parents 2d97cc4 + 86162b0 commit b41d5c1

Some content is hidden

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

112 files changed

+366
-382
lines changed

.github/workflows/latest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ jobs:
1616
target: ${{ matrix.target }}
1717
os: linux
1818
jobs: 4
19-
opamroot: /home/coq/.opam
19+
opamroot: /home/rocq/.opam
2020
configopts: -ignore-coq-version
2121
container:
22-
image: coqorg/coq:latest-ocaml-4.14-flambda
22+
image: rocq/rocq-prover:latest
2323
options: --user root
2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@v4
2727
with:
2828
submodules: true
2929
- name: OPAM dependencies
30-
run: tools/runner.sh opam_install menhir
30+
run: tools/runner.sh opam_install coq menhir
3131
- name: Configure
3232
run: tools/runner.sh configure
3333
- name: Build

.github/workflows/oldest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
opamroot: /home/coq/.opam
2020
configopts: -ignore-coq-version
2121
container:
22-
image: coqorg/coq:8.13
22+
image: coqorg/coq:8.15
2323
options: --user root
2424
steps:
2525
- name: Checkout

Makefile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,29 +61,35 @@ endif
6161
# deprecated-since-8.20
6262
# renamings performed in Coq's standard library;
6363
# using the new names would break compatibility with earlier Coq versions.
64+
# deprecated-from-Coq
65+
# Rocq wants "From Stdlib Require" while Coq wants "From Coq Require".
6466

6567
COQCOPTS ?= \
6668
-w -unused-pattern-matching-variable \
6769
-w -deprecated-since-8.19 \
68-
-w -deprecated-since-8.20
70+
-w -deprecated-since-8.20 \
71+
-w -deprecated-from-Coq
6972

7073
cparser/Parser.vo: COQCOPTS += -w -deprecated-instance-without-locality
7174
MenhirLib/Interpreter.vo: COQCOPTS += -w -undeclared-scope
7275

7376
# Flocq and Menhirlib run into other renaming issues.
7477
# These warnings can only be addressed upstream.
7578

76-
flocq/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition
77-
MenhirLib/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition
79+
flocq/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition -w -deprecated-since-9.0
80+
MenhirLib/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition -w -deprecated-since-9.0
7881

7982
# For the extraction phase, we silence other warnings:
8083
# change-dir-deprecated:
8184
# warning introduced in 8.20, no alternative before 8.20
8285
# extraction-default-directory:
8386
# warning introduced in 8.20, no alternative before 8.20
87+
# deprecated-from-Coq:
88+
# see above
8489
COQEXTRACTOPTS ?= \
8590
-w -change-dir-deprecated \
86-
-w -extraction-default-directory
91+
-w -extraction-default-directory \
92+
-w -deprecated-from-Coq
8793

8894
ifneq ($(INSTALL_COQDEV),true)
8995
# Disable costly generation of .cmx files, which are not used locally

Makefile.extr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ EXTRWARNINGS=$(WARNINGS) \
7272
-w -ambiguous-name \
7373
-w -open-shadow-identifier \
7474
-w -open-shadow-label-constructor \
75+
-w -unreachable-case \
7576
-w -unused-module \
7677
-w -unused-functor-parameter
7778

aarch64/Archi.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
(** Architecture-dependent parameters for AArch64 *)
1818

19+
From Coq Require Import ZArith List.
1920
From Flocq Require Import Binary Bits.
20-
Require Import ZArith List.
2121

2222
Definition ptr64 := true.
2323

aarch64/Asmgen.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
(** Translation from Mach to AArch64. *)
1414

15-
Require Import Recdef Coqlib Zwf Zbits.
16-
Require Import Errors AST Integers Floats Op.
15+
From Coq Require Import Recdef Zwf.
16+
Require Import Zbits Coqlib Errors AST Integers Floats Op.
1717
Require Import Locations Mach Asm.
1818
Require SelectOp.
1919

aarch64/Asmgenproof1.v

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212

1313
(** Correctness proof for AArch64 code generation: auxiliary results. *)
1414

15-
Require Import Recdef Coqlib Zwf Zbits.
16-
Require Import Maps Errors AST Integers Floats Values Memory Globalenvs.
15+
From Coq Require Import Recdef Zwf.
16+
Require Import Zbits Coqlib Maps Errors.
17+
Require Import AST Integers Floats Values Memory Globalenvs.
1718
Require Import Op Locations Mach Asm Conventions.
1819
Require Import Asmgen.
1920
Require Import Asmgenproof0.

aarch64/Builtins1.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
(** Platform-specific built-in functions *)
1818

19-
Require Import String Coqlib.
20-
Require Import AST Integers Floats Values.
19+
From Coq Require Import String.
20+
Require Import Coqlib AST Integers Floats Values.
2121
Require Import Builtins0.
2222

2323
Inductive platform_builtin : Type := .

aarch64/CombineOpproof.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
(* *)
1111
(* *********************************************************************)
1212

13-
Require Import FunInd.
13+
From Coq Require Import FunInd.
1414
Require Import Coqlib.
1515
Require Import AST Integers Values Memory.
1616
Require Import Op Registers RTL.

aarch64/Machregs.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
(* *)
1111
(* *********************************************************************)
1212

13-
Require Import String.
13+
From Coq Require Import String.
1414
Require Import Coqlib Decidableplus Maps.
1515
Require Import AST Op.
1616

0 commit comments

Comments
 (0)