Struct alignment
Bates, Steve
Stephen.Bates@UNISYS.com
Thu Sep 9 10:05:00 GMT 1999
Greetings,
I'm trying to compile a large piece of ported code to an I960 processor and
am having trouble with struct alignment. In a Visual C++ environment I set
the struct alignment at 1 byte for the entire project and it works
perfectly. I would like to do a comparable thing in my makefile to avoid
modifying the code. I've tried playing with the -fstrict-align and
-fpack-struct options without success. I'm compiling with CC960
(cygnus-2.7.2-960126) and the last set of options I used looked like this:
COPTS = -g -BC:\Tornado/host/x86-win32/lib/gcc-lib/ -mca -mstrict-align
-ansi -nostdinc -O -fvolatile -fno-builtin -Wall
Any suggestions would be greatly appreciated.
Thanks,
Steve Bates
Unisys Corporation
Salt Lake City, Ut.
More information about the Gcc-bugs
mailing list