This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/60568] lto1: internal compiler error: in insn_min_length, at config/i386/i386.md:1599


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60568

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trippels at gcc dot gnu.org

--- Comment #15 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to David Kredba from comment #13)
> -m32 compiled fine but 64 bit gave me (rev. 208729):
> 
> /usr/bin/x86_64-pc-linux-gnu-g++   -flto=4 -fuse-linker-plugin -O2 -ggdb
> -pipe -march=core2 -mtune=core2 -flto=4 -fuse-linker-plugin -Wl,--as-needed
> -Wl,-O2 -Wl,-flto -O2 -ggdb -pipe -march=core2 -mtune=core2
> CMakeFiles/cli.dir/input/y4m.cpp.o CMakeFiles/cli.dir/input/yuv.cpp.o
> CMakeFiles/cli.dir/input/input.cpp.o CMakeFiles/cli.dir/output/y4m.cpp.o
> CMakeFiles/cli.dir/output/yuv.cpp.o CMakeFiles/cli.dir/output/output.cpp.o
> CMakeFiles/cli.dir/x265.cpp.o  -o x265 -rdynamic libx265.a -lpthread -lrt
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0-alpha20140320/include/smmintrin.h: In
> function 'dequant_scaling':
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0-alpha20140320/include/smmintrin.h:328:
> 70: error: '__builtin_ia32_pmulld128' needs isa option -m32 -msse4.1
>    return (__m128i) __builtin_ia32_pmulld128 ((__v4si)__X, (__v4si)__Y);
>                                                                       ^
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0-alpha20140320/include/smmintrin.h:328:
> 70: error: '__builtin_ia32_pmulld128' needs isa option -m32 -msse4.1
>    return (__m128i) __builtin_ia32_pmulld128 ((__v4si)__X, (__v4si)__Y);
>                                                                       ^
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0-alpha20140320/include/smmintrin.h:328:
> 70: error: '__builtin_ia32_pmulld128' needs isa option -m32 -msse4.1
>    return (__m128i) __builtin_ia32_pmulld128 ((__v4si)__X, (__v4si)__Y);
>                                                                       ^
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0-alpha20140320/include/smmintrin.h:328:
> 70: error: '__builtin_ia32_pmulld128' needs isa option -m32 -msse4.1
>    return (__m128i) __builtin_ia32_pmulld128 ((__v4si)__X, (__v4si)__Y);
>                                                                       ^
> make: *** [/tmp/ccdJxMmS.ltrans1.ltrans.o] Error 1
> make: *** Waiting for unfinished jobs....
> lto-wrapper: make returned 2 exit status
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0-alpha20140320/../../../../x86_64-pc-
> linux-gnu/bin/ld: lto-wrapper failed
> collect2: error: ld returned 1 exit status
> 
> Is this related please? Thank you.

I get these kind of linker errors a lot with "-flto -march=amdfam10" on
my test machine. The problem is that the configure checks for the
extended instructions somehow succeed with -flto even though -march
disables them. It would be good if autotools would pass -fno-lto during
configuration automatically. This would also fix cases where configure
scans the assembler output and fails in case of slim-objects.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]