Skip to content

Commit bfde93b

Browse files
Add doc for sending patches to GCC
1 parent 2f11b37 commit bfde93b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

doc/sending-gcc-patch.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
This guide explains what to do to send a GCC patch for review.
2+
3+
All the commands are supposed to be run in the folder where you cloned GCC.
4+
5+
```bash
6+
./contrib/gcc-changelog/git_check_commit.py
7+
```
8+
9+
When there is no more errors, generate the git patch:
10+
11+
```bash
12+
git format-patch -1 `git rev-parse --short HEAD`
13+
```
14+
15+
Then you can run the remaining checks using:
16+
17+
```bash
18+
contrib/check_GNU_style.sh 0001-your-patch.patch
19+
```
20+
21+
When you have no more errors, you can send the `.patch` file to GCC by sending an
22+
email to `[email protected]` and to the relevant GCC mailing lists
23+
depending on what your patch changes. You can find the list of the mailing lists
24+
[here](https://gcc.gnu.org/lists.html).
25+
26+
You can find more information about "contributing to GCC" [here](https://gcc.gnu.org/contribute.html).

0 commit comments

Comments
 (0)