Commit 0c03db9
committed
Use correct sign in get_mpz
This changes dwarf2/read.c:get_mpz to use the correct sign-extension
function. Normally a rational constant uses signed values, but a
purely unsigned form also seems fine here. This adds a new
attribute::form_is_strictly_unsigned, which is more precise than
form_is_unsigned (which accepts a lot of forms that aren't really for
ordinary constants).
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=326801 parent 6967933 commit 0c03db9
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
178 | 187 | | |
179 | 188 | | |
180 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13216 | 13216 | | |
13217 | 13217 | | |
13218 | 13218 | | |
13219 | | - | |
| 13219 | + | |
13220 | 13220 | | |
13221 | 13221 | | |
13222 | | - | |
| 13222 | + | |
13223 | 13223 | | |
13224 | 13224 | | |
13225 | 13225 | | |
| |||
0 commit comments