[Bug 1642109] [NEW] internal compiler error: in expand_debug_locations, at cfgexpand.c:5118
Colin Hercus
colinhercus at gmail.com
Wed Nov 16 01:55:09 UTC 2016
Public bug reported:
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.
** Affects: gcc-5 (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "main.cpp"
https://bugs.launchpad.net/bugs/1642109/+attachment/4777913/+files/main.cpp
** Description changed:
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)
+ 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.
+ 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.
--
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:
New
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