s390/bios: build with -fdelete-null-pointer-checks
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 15 Jun 2015 10:24:03 +0000 (12:24 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 15 Jun 2015 11:31:33 +0000 (13:31 +0200)
commit8369e339d24f365750da456588e742674c153437
tree5585cd4ff31f51647d4afb7649dee7887d0ceef1
parent795dc6e46d953d70b4b7ddd3f4956f8f4b9d8565
s390/bios: build with -fdelete-null-pointer-checks

Starting with version 4.9, GCC assumes it can't safely dereference null
pointers, and uses this for some optimizations. On s390, the lowcore
memory is located at address 0, so this assumption is wrong and breaks
the s390-ccw firmware. Pass -fdelete-null-pointer-checks to avoid that.

Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Message-Id: <1434363843-14576-1-git-send-email-aurelien@aurel32.net>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
pc-bios/s390-ccw/Makefile