grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix for grub_assert_fail undefined on NetBSD and other platforms


From: BVK Chaitanya
Subject: Fix for grub_assert_fail undefined on NetBSD and other platforms
Date: Tue, 22 Dec 2009 21:39:07 +0530

Hi


Attached is the patch, which removes use of undefined grub_assert_fail
function for catching bad-type-cast errors, with a better version
__attribute__((error("msg"))) gcc extension.  With this extension, gcc
can give the exact location of the bad type cast at compile time.

Unfortunately, I couldn't test this on NetBSD, where old technique was
reported failing as GCC optimizations didn't happen.  Can Grégoire
Sutr or anybody else try this out on NetBSD and confirm?


thanks,
-- 
bvk.chaitanya

Attachment: grub-assert-fail.patch.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]