Skip to content

Commit

Permalink
Update TODO.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyuh committed Apr 5, 2012
1 parent 6e61b94 commit 8867831
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TODO
Expand Up @@ -80,12 +80,13 @@ This "double free or corruption" occurs on Gentoo/PowerPC.


Investigating w/ LLVM-3.0 and svn trunk and great helping by NAKAMURA Takumi AKA chapuni, Investigating w/ LLVM-3.0 and svn trunk and great helping by NAKAMURA Takumi AKA chapuni,
I finally realized that this problem can be reproduced when using altivec on ppc32-linux. I finally realized that this problem can be reproduced when using altivec on ppc32-linux.
The point is, LLVM has incomplete support for altivec on ppc-linux, even w/ svn trunk. The point is, LLVM has incomplete support for altivec on ppc32-linux, even w/ svn trunk.
And the workaround is, don't enable altivec when compiling LLVM. And the workaround is, don't enable altivec when compiling LLVM.


So appending "-mno-altivec -mabi=no-altivec" to CFLAGS and CXXFLAGS can avoid this issue. So appending "-mno-altivec -mabi=no-altivec" to CFLAGS and CXXFLAGS can avoid this issue.
Note, -mcpu and -mtune does enable/disable altivec related flags too, so just replacing Note, -mcpu and -mtune does enable/disable altivec related flags too, so just replacing
only "-maltivec -mabi=altivec" to "-mno-altivec -mabi=no-altivec" may not work as expected. only "-maltivec -mabi=altivec" to "-mno-altivec -mabi=no-altivec" may not work as expected
if you used -mcpu and -mtune.


FYI, I filed a bug also for TEXTREL: FYI, I filed a bug also for TEXTREL:


Expand All @@ -110,6 +111,7 @@ See more detail:


$ git clone git://github.com/hiyuh/nvc.git $ git clone git://github.com/hiyuh/nvc.git
[SNIP] [SNIP]
$ cd nvc
$ ./autogen.sh $ ./autogen.sh
[SNIP] [SNIP]
$ ./configure $ ./configure
Expand Down

0 comments on commit 8867831

Please sign in to comment.