[PATCH]Add include guard to sparc.h when using assembly

Mohammed Khoory mkhoory at eiast.ae
Tue Sep 24 01:50:35 UTC 2013


Hi,

While working on a LEON3-based application, I was writing an assembly file
and so I included <rtems/asm.h> in order to use macros like PUBLIC() and
SYM(). When I tried to assemble my file (with sparc-rtems4.10-as) I got a
lot of "unknown opcode: typedef" errors. Looking at the headers I noticed
that it was including sparc.h, which has a bunch of typedefs. 

This tiny patch fixes this problem by adding an #ifndef ASM around the
sparc.h include line. 

If there are any comments let me know.

Regards,
Mohammed Khoory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-an-include-guard-to-sparc.h-to-prevent-assembl.patch
Type: application/octet-stream
Size: 791 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20130924/cdf49ecb/attachment.obj>


More information about the devel mailing list