|
cmd/gc: support for "portable" optimization logic
Code in gc/popt.c is compiled as part of 5g, 6g, and 8g,
meaning it can use arch-specific headers but there's
just one copy of the code.
This is the same arrangement we use for the portable
code generation logic in gc/pgen.c.
Move fixjmp and noreturn there to get the ball rolling.
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+234 lines, -471 lines) |
Patch |
 |
M |
src/cmd/5g/gg.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/cmd/5g/opt.h
|
View
|
1
2
3
|
4 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/cmd/5g/peep.c
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/cmd/5g/prog.c
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/5g/reg.c
|
View
|
1
2
3
|
5 chunks |
+2 lines, -151 lines |
0 comments
|
Download
|
 |
M |
src/cmd/6g/gg.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/cmd/6g/opt.h
|
View
|
1
2
3
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/cmd/6g/peep.c
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/cmd/6g/prog.c
|
View
|
1
2
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
src/cmd/6g/reg.c
|
View
|
1
2
3
|
5 chunks |
+2 lines, -150 lines |
0 comments
|
Download
|
 |
M |
src/cmd/8g/gg.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/cmd/8g/opt.h
|
View
|
1
2
3
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/cmd/8g/peep.c
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/cmd/8g/prog.c
|
View
|
1
2
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/cmd/8g/reg.c
|
View
|
1
2
3
|
4 chunks |
+2 lines, -149 lines |
0 comments
|
Download
|
 |
M |
src/cmd/dist/build.c
|
View
|
1
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/cmd/gc/pgen.c
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
src/cmd/gc/popt.h
|
View
|
1
2
3
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
A |
src/cmd/gc/popt.c
|
View
|
1
2
3
|
1 chunk |
+183 lines, -0 lines |
0 comments
|
Download
|
Total messages: 4
|