This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/37216] [cygming] Invalid alignment for SSE store to .comm data generated with -O3
- From: "sherpya at netfarm dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2008 11:50:03 -0000
- Subject: [Bug target/37216] [cygming] Invalid alignment for SSE store to .comm data generated with -O3
- References: <bug-37216-16627@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #47 from sherpya at netfarm dot it 2008-10-07 11:50 -------
ffmpeg uses aligned vars inside an object from an external nasm/yasm compiled
module, so it's very unlikely gcc can be aware of this, the patch should solve
"implicit" sse code generation, but I think there are no solution for external
references.
Probably the best way is to pass -fno-common when there is sse code in the
project
I'll test your patch for the first post of the bugreport, and I'll test also
ffmpeg but I'm almost sure that this TARGET_SSE is not true in this specific
case
with -fno-common I had no problems with make test (when using sse code)
all of the stuff in this bugreport is not really definitive,
we have a patch for local and for global using commons
but there is no way to propagate this data in pe/coff object
why not adding an extensions for intermediate coffs?
there isn't space anywhere in coff files?
yes one can use -fno-common or the fix to avoid crashes when gcc vectorize
but it does not cover all cases
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216