[Bug 1642109] Re: internal compiler error: in expand_debug_locations, at cfgexpand.c:5118
Matthias Klose
doko at ubuntu.com
Fri Dec 2 10:44:55 UTC 2016
not reproducible:
$ g++ -finline-functions -m64 -O3 -c -g -MMD -MP -MF "main.o.d" -o main.o main.cpp
main.cpp: In function 'void p(AV)':
main.cpp:80:6: note: The ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
void p(union AV a) {
^
** Changed in: gcc-5 (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-5 in Ubuntu.
https://bugs.launchpad.net/bugs/1642109
Title:
internal compiler error: in expand_debug_locations, at
cfgexpand.c:5118
Status in gcc-5 package in Ubuntu:
Incomplete
Bug description:
Hi,
I'm getting subject error when compiling attached code with options
g++ -finline-functions -m64 -O3 -c -g -MMD -MP -MF "main.o.d" -o
main.o main.cpp
Using: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
System: Ubuntu 16.04
The error asked me to "Please submit a full bug report,"
This is a cut down example from a larger program. I'm compiling larger
program with -m64 and have SIMD routines for SSE, AVX & AVX2
The problem goes away if I
1. Remove -O option or,
2. Remove the -g option (but I do want both of these for profiling) or,
3. Add explicit inline to
inline __attribute__ ((target ("avx2"))) __m256i _mm256_shift_left(__m256i a, int n) and
inline __attribute__ ((target ("avx2"))) __m256i _mm256_shift_right(__m256i a, int n)
I love gcc and was so happy when I found __attribute__ ((target
("avx2"))) option. Keep up the good work.
Thanks, Colin
PS. The routines __m256i _mm256_shift_[left|right](__m256i a, int n) are used in initialisation preceding a large loop and performance doesn't really matter. I'm sure they can be done better.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1642109/+subscriptions
More information about the foundations-bugs
mailing list