Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57859 - vim compiled with -funroll-all-loops gives many errors when reading configuration files
Summary: vim compiled with -funroll-all-loops gives many errors when reading configura...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Vim Maintainers
URL: http://bugs.gentoo.org/show_bug.cgi?i...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-21 08:20 UTC by Andreas Kobara
Modified: 2004-07-21 12:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kobara 2004-07-21 08:20:16 UTC
BUG #37354 exists on x86 too, still !

Please add:
[[ $ARCH == x86 ]] && filter-flags -funroll-all-loops
to vim.eclass



Reproducible: Always
Steps to Reproduce:
1.set CFLAGS="-O3 -funroll-all-loops -s -pipe"
2.emerge vim
3.vim any_file

Actual Results:  
Same error as described in Bug #37354 but not resolved on x86 ! 

Expected Results:  
no errors when opening files with vim.
Comment 1 Ciaran McCreesh 2004-07-21 08:48:45 UTC
Lemme try this on a few other archs, it may be that we want to filter this universally. Although, really, I'm not a fan of protecting users from their own stupid CFLAGS :)
Comment 2 Ciaran McCreesh 2004-07-21 09:32:32 UTC
Looks like -funroll-all-loops breaks sparc and mips as well. I'll change the filter to be global. It's a silly flag to use anyway so it doesn't really matter too much if we strip it off somewhere where it'll still actually work.
Comment 3 Andreas Kobara 2004-07-21 12:48:22 UTC
I know unroll-all-loops may slow down code, but I thought with
multiple execution pipelines and branch prediction it could save
some cycles. It's obsolete with gcc 3.4 anyway (peel-loops).

Anyway thanks for filtering globaly.

Regards,
Andy.