mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Allow OPT to modify -W
Warning flags are processed individually; PUSHO and POPO (re)store all the warning states.
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
SECTION "test", ROM0
|
||||
|
||||
pusho
|
||||
opt p42, !L
|
||||
opt p42, !L, Wno-div
|
||||
ds 1
|
||||
ld [$ff88], a
|
||||
println $8000_0000 / -1
|
||||
popo
|
||||
|
||||
ds 1
|
||||
ld [$ff88], a
|
||||
println $8000_0000 / -1
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
warning: opt.asm(12): [-Wdiv]
|
||||
Division of -2147483648 by -1 yields -2147483648
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
$80000000
|
||||
$80000000
|
||||
|
||||
Reference in New Issue
Block a user