[Top][All Lists]
[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
grub-assert-fail.patch.txt
Description: Text document
- Fix for grub_assert_fail undefined on NetBSD and other platforms,
BVK Chaitanya <=
- Re: Fix for grub_assert_fail undefined on NetBSD and other platforms, BVK Chaitanya, 2009/12/22
- Re: Fix for grub_assert_fail undefined on NetBSD and other platforms, Grégoire Sutre, 2009/12/22
- Re: Fix for grub_assert_fail undefined on NetBSD and other platforms, Felix Zielcke, 2009/12/22
- Re: Fix for grub_assert_fail undefined on NetBSD and other platforms, Vladimir 'φ-coder/phcoder' Serbinenko, 2009/12/22
- Re: Fix for grub_assert_fail undefined on NetBSD and other platforms, BVK Chaitanya, 2009/12/23
- Re: Fix for grub_assert_fail undefined on NetBSD and other platforms, Gre'goire Sutre, 2009/12/23
- Re: Fix for grub_assert_fail undefined on NetBSD and other platforms, BVK Chaitanya, 2009/12/23
Re: Fix for grub_assert_fail undefined on NetBSD and other platforms, Robert Millan, 2009/12/24