[Bug 1642109] Re: internal compiler error: in expand_debug_locations, at cfgexpand.c:5118

Bug Watch Updater 1642109 at bugs.launchpad.net
Sat Dec 2 20:45:49 UTC 2017


** Changed in: gcc
       Status: Confirmed => In Progress

-- 
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:
  In Progress
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/gcc/+bug/1642109/+subscriptions



More information about the foundations-bugs mailing list