-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit d2f7f1b
committed
Force inlining of inline print[ln] methods
Add GCC __attribute__ ((__always_inline__)) to inlined methods in Print.h.
This seems necessary since not doing so increases the executable size
(probably because that would create several function definitions),
even with LTO optimizations.
This change combined with the inlining of print/printf methods seems to reduce
the executable size for most applications by a fair amount.
(Note that the `inline` keyword does not imply actual inlining.)1 parent ceee9e9 commit d2f7f1b
2 files changed
+32
-24
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 | + | ||
35 | + | ||
34 | 36 |
| |
35 | 37 |
| |
36 | 38 |
| |
| |||
61 | 63 |
| |
62 | 64 |
| |
63 | 65 |
| |
64 | - | ||
65 | - | ||
66 | - | ||
66 | + | ||
67 | + | ||
68 | + | ||
67 | 69 |
| |
68 | - | ||
69 | - | ||
70 | - | ||
71 | - | ||
72 | - | ||
73 | - | ||
74 | - | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
75 | 77 |
| |
76 | 78 |
| |
77 | 79 |
| |
78 | - | ||
79 | - | ||
80 | + | ||
81 | + | ||
80 | 82 |
| |
81 | 83 |
| |
84 | + | ||
85 | + | ||
82 | 86 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 | + | ||
35 | + | ||
34 | 36 |
| |
35 | 37 |
| |
36 | 38 |
| |
| |||
61 | 63 |
| |
62 | 64 |
| |
63 | 65 |
| |
64 | - | ||
65 | - | ||
66 | - | ||
66 | + | ||
67 | + | ||
68 | + | ||
67 | 69 |
| |
68 | - | ||
69 | - | ||
70 | - | ||
71 | - | ||
72 | - | ||
73 | - | ||
74 | - | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
75 | 77 |
| |
76 | 78 |
| |
77 | 79 |
| |
78 | - | ||
79 | - | ||
80 | + | ||
81 | + | ||
80 | 82 |
| |
81 | 83 |
| |
84 | + | ||
85 | + | ||
82 | 86 |
|
0 commit comments