|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
__attribute__ aligned problem with gcc 4Hi,
I have tested a number of different versions of gcc under mingw and non of them seem to support the __attribute__ aligned syntax. Same code under linux works fine. Strange thing is if I take the .s from gcc and manually add the alignment and assemble it, everything works. It seems to be a deficiency in the code generation on gcc. code ---- #include <stdio.h> static int x __attribute__ ((aligned (16))); int main(void) { printf("address x = %p\n", &x); return 0; } gcc -S test.c -o test.s If you change .lcomm _x,16 inside the .s to add an alignment and re-compile .lcomm _x,16,32 (aligned to 32 for example) as test.s -o test.o gcc test.o -o test.exe Then everything works. Anyone know why the __attribute__ ((aligned ())) seems to be disabled under mingw compilers??? Cheers Jim ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ MinGW-users mailing list MinGW-users@... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Most annoying abuses are: 1) Top posting 2) Thread hijacking 3) HTML/MIME encoded mail 4) Improper quoting 5) Improper trimming _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: __attribute__ aligned problem with gcc 4From: "Jim Hauxwell"
> Hi, > > I have tested a number of different versions of gcc under mingw and non > of them seem to support the __attribute__ aligned syntax. Same code > under linux works fine. > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216 Fixed in gcc 4.5.0 Danny ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ MinGW-users mailing list MinGW-users@... This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Most annoying abuses are: 1) Top posting 2) Thread hijacking 3) HTML/MIME encoded mail 4) Improper quoting 5) Improper trimming _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
| Free embeddable forum powered by Nabble | Forum Help |