RedBoot: Cleanup excessive indirection in option argument handling.
David Vrabel
dvrabel@arcom.com
Wed Oct 1 08:54:00 GMT 2003
Hi,
> RedBoot's init_opts()/scan_opts() use an excessive level of indirection
> for the handling of option arguments. GCC 3.3 chokes on it with
> warnings about "dereferencing type-punned pointer will break
> strict-aliasing rules".
>
> Expect a patch later cleaning up all the typecasts in the
> init_opts()/scan_opts() calls.
Here are some of them (redboot and generic i386 and arm). Other
architectures and boards are left as a exercise for the reader...
2003-10-01 David Vrabel <dvrabel@arcom.com>
* Various: Remove unnecessary typecasts in calls to init_opts()
and scan_opts().
David Vrabel
--
David Vrabel, Design Engineer
Arcom Tel: +44 (0)1223 411200 ext. 3233
Clifton Road Fax: +44 (0)1223 403400
Cambridge CB1 7EA E-mail: dvrabel@arcom.com
UK Web: http://www.arcom.com/
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: redboot-option-argument-typecast-cleanup-1.patch
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20031001/7a6efc5a/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: redboot-option-argument-typecast-cleanup-2.patch
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20031001/7a6efc5a/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: redboot-option-argument-typecast-cleanup-3.patch
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20031001/7a6efc5a/attachment-0002.ksh>
More information about the Ecos-patches
mailing list