File tree Expand file tree Collapse file tree 3 files changed +471
-2
lines changed Expand file tree Collapse file tree 3 files changed +471
-2
lines changed Original file line number Diff line number Diff line change @@ -92,11 +92,12 @@ Currently supported gcc-version :
92
92
* 10.1.0
93
93
* 10.2.0
94
94
* 10.3.0
95
+ * 12.1.0
95
96
96
- For example, to build DJGPP for gcc 10.3 .0 :
97
+ For example, to build DJGPP for gcc 12.1 .0 :
97
98
98
99
```
99
- ./build-djgpp.sh 10.3 .0
100
+ ./build-djgpp.sh 12.1 .0
100
101
```
101
102
102
103
It will download all necessary files, build DJGPP compiler and binutils, and install it.
Original file line number Diff line number Diff line change
1
+ diff -Naur gnu-orig/gcc-12.10/gcc/cp/fstat-mingw-fix.h gnu/gcc-12.10/gcc/cp/fstat-mingw-fix.h
2
+ --- gnu-orig/gcc-12.10/gcc/cp/fstat-mingw-fix.h 1970-01-01 08:00:00.000000000 +0800
3
+ +++ gnu/gcc-12.10/gcc/cp/fstat-mingw-fix.h 2022-05-30 18:06:48.000000000 +0800
4
+ @@ -0,0 +1,23 @@
5
+ +#ifndef __H_FSTAT_MINGW_FIX
6
+ +#define __H_FSTAT_MINGW_FIX
7
+ +/* Copied from gcc-12.10/libgfortran/io/unix.c */
8
+ +
9
+ +/* These flags aren't defined on all targets (mingw32), so provide them
10
+ + here. */
11
+ +#ifndef S_IRGRP
12
+ +#define S_IRGRP 0
13
+ +#endif
14
+ +
15
+ +#ifndef S_IWGRP
16
+ +#define S_IWGRP 0
17
+ +#endif
18
+ +
19
+ +#ifndef S_IROTH
20
+ +#define S_IROTH 0
21
+ +#endif
22
+ +
23
+ +#ifndef S_IWOTH
24
+ +#define S_IWOTH 0
25
+ +#endif
26
+ +
27
+ +#endif /* __H_FSTAT_MINGW_FIX */
28
+ diff -Naur gnu-orig/gcc-12.10/gcc/cp/module.cc gnu/gcc-12.10/gcc/cp/module.cc
29
+ --- gnu-orig/gcc-12.10/gcc/cp/module.cc 2022-05-30 18:06:44.000000000 +0800
30
+ +++ gnu/gcc-12.10/gcc/cp/module.cc 2022-05-30 18:06:48.000000000 +0800
31
+ @@ -229,6 +229,8 @@
32
+ #define CODY_NETWORKING 0
33
+ #include "mapper-client.h"
34
+
35
+ +#include "fstat-mingw-fix.h"
36
+ +
37
+ #if 0 // 1 for testing no mmap
38
+ #define MAPPED_READING 0
39
+ #define MAPPED_WRITING 0
You can’t perform that action at this time.
0 commit comments