Laszlo Ersek [mailto:ler...@redhat.com] wrote:
]On 03/15/14 22:55, Scott Duplichan wrote: ] ]> I believe there is one exception to this rule. For x86 code (I tested x64 only), ]> the VA_START and VA_ARG macros defined by EDK2 work only for the Microsoft ]> x64 calling convention and not for System V calling convention. ] ]Ah, good point. Ran into this before. ] ]http://thread.gmane.org/gmane.comp.bios.tianocore.devel/3669 ]http://sourceforge.net/p/edk2/code/14550 Sure enough, I see it. I tried to come up with a way to trigger a warning for this problem but did not succeed. Gcc predefined macros can be used to check the default calling convention. But to catch this problem, a way of checking the calling convention on a function by function basis is needed. Gcc doesn't currently have a preprocessor mechanism for querying function attributes. Thanks, Scott ]Laszlo ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel