lkml.org 
[lkml]   [2012]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 46/74] x86, lto: Disable fancy hweight optimizations for LTO
    > >  config ARCH_HWEIGHT_CFLAGS
    > > string
    > > - default "-fcall-saved-ecx -fcall-saved-edx" if X86_32
    > > - default "-fcall-saved-rdi -fcall-saved-rsi -fcall-saved-rdx -fcall-saved-rcx -fcall-saved-r8 -fcall-saved-r9 -fcall-saved-r10 -fcall-saved-r11" if X86_64
    > > + default "-fcall-saved-ecx -fcall-saved-edx" if X86_32 && !LTO
    > > + default "-fcall-saved-rdi -fcall-saved-rsi -fcall-saved-rdx -fcall-saved-rcx -fcall-saved-r8 -fcall-saved-r9 -fcall-saved-r10 -fcall-saved-r11" if X86_64 && !LTO
    > > + default "" if LTO
    > >
    >
    > Seems heavy handed. How about using __attribute__((optimize(...))) instead?

    Doesn't work for this. In fact according to the gcc developers that
    attribute is mostly broken.

    -Andi

    --
    ak@linux.intel.com -- Speaking for myself only.


    \
     
     \ /
      Last update: 2012-08-20 12:21    [W:4.037 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site