Commit d7be913
committed
[BoundsSafety] Re-introduce
In rdar://158088410
(#11455) the
`-funique-traps` flag was removed in favor of a different implementation
controlled by the `-fbounds-safety-unique-traps` flag.
It turns out the `-funique-traps` flag is being used by an adopter of
`-fbounds-safety`. To unbreak adopters of the flag this patch reintroduces
the old flag (and its negation) as an alias of
`-fbounds-safety-unique-traps` (`-fno-bounds-safety-unique-traps`) along
with a diagnostic warning that `-funique-traps` (`-fno-unique-traps`) is
deprecated.
This patch doesn't use the `Alias<>` mixin in the
`clang/Driver/Options.td` so "technically" at the implementation level
`-funique-traps` isn't an alias of `-fbounds-safety-unique-traps`. This
is done so that is possible distinguish use of the legacy flag from the
new flag so that it is possible emit a deprecation warning. However,
from the user's perspective `-funique-traps` and
`-fbounds-safety-unique-traps` are aliases.
We should remove `-funique-traps` eventually and that is tracked by
rdar://162215869.
rdar://162204734
(cherry picked from commit 38b7776)-funique-traps as a legacy alias of -fbounds-safety-unique-traps
1 parent 01cd1cd commit d7be913
File tree
4 files changed
+109
-4
lines changed- clang
- include/clang/Driver
- lib/Driver/ToolChains
- test/BoundsSafety/Driver
4 files changed
+109
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2025 | 2025 | | |
2026 | 2026 | | |
2027 | 2027 | | |
2028 | | - | |
| 2028 | + | |
2029 | 2029 | | |
2030 | 2030 | | |
2031 | 2031 | | |
2032 | 2032 | | |
2033 | | - | |
| 2033 | + | |
2034 | 2034 | | |
2035 | 2035 | | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
2036 | 2048 | | |
2037 | 2049 | | |
2038 | 2050 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7099 | 7099 | | |
7100 | 7100 | | |
7101 | 7101 | | |
7102 | | - | |
7103 | | - | |
| 7102 | + | |
| 7103 | + | |
| 7104 | + | |
| 7105 | + | |
| 7106 | + | |
| 7107 | + | |
| 7108 | + | |
| 7109 | + | |
| 7110 | + | |
| 7111 | + | |
| 7112 | + | |
| 7113 | + | |
| 7114 | + | |
| 7115 | + | |
| 7116 | + | |
| 7117 | + | |
| 7118 | + | |
| 7119 | + | |
| 7120 | + | |
| 7121 | + | |
| 7122 | + | |
| 7123 | + | |
| 7124 | + | |
| 7125 | + | |
| 7126 | + | |
| 7127 | + | |
| 7128 | + | |
| 7129 | + | |
| 7130 | + | |
| 7131 | + | |
| 7132 | + | |
| 7133 | + | |
| 7134 | + | |
| 7135 | + | |
| 7136 | + | |
| 7137 | + | |
| 7138 | + | |
7104 | 7139 | | |
7105 | 7140 | | |
7106 | 7141 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments