[Bug 1251930]

Charles Baylis charles.baylis at linaro.org
Wed Nov 20 11:43:07 UTC 2013


Comparing reduced.cpp.153r.cse1 in r172837 and the previous commit.

--- reduced.cpp.153r.cse1 from gcc trunk r172835 [works]
(insn 18 17 19 2 (parallel [
            (set (mem/s:SI (reg/f:SI 138) [5 MEM[(struct A *)0B]+0 S4 A32])
                (reg:SI 0 r0))
            (set (mem/s:SI (plus:SI (reg/f:SI 138)
                        (const_int 4 [0x4])) [5 MEM[(struct A *)0B]+4 S4 A32])
                (reg:SI 1 r1))
        ]) reference/reduced.cpp:6 373 {*stm2_ia}
     (nil))


--- reduced.cpp.153r.cse1 from gcc trunk r172837 [has ICE]
(insn 24 23 25 2 (parallel [
            (set (mem/s:SI (reg/f:SI 141) [5 MEM[(struct A *)0B]+0 S4 A32])
                (reg:SI 0 r0))
            (set (mem/s:SI (plus:SI (reg/f:SI 141)
                        (const_int 4 [0x4])) [5 MEM[(struct A *)0B]+4 S4 A32])
                (reg/f:SI 26 afp))     <--- r1 changed to afp here
        ]) reference/reduced.cpp:6 373 {*stm2_ia}
     (nil))


This gets re-written later:
-- reduced.cpp.190r.ira from gcc trunk r172837
(insn 24 29 28 2 (parallel [
            (set (mem/s:SI (reg/f:SI 4 r4 [141]) [5 MEM[(struct A *)0B]+0 S4 A32
])
                (reg:SI 0 r0))
            (set (mem/s:SI (plus:SI (reg/f:SI 4 r4 [141])
                        (const_int 4 [0x4])) [5 MEM[(struct A *)0B]+4 S4 A32])
                (plus:SI (reg/f:SI 13 sp)       <---\__ was aftp
                    (const_int 1048 [0x418])))  <---/ 
        ]) reference/reduced.cpp:6 373 {*stm2_ia}
     (nil))


The (plus:SI (reg/f:SI 13 sp) (const_int 1048 [0x418])) is the invalid operand which causes the ICE during final.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.8 in Ubuntu.
https://bugs.launchpad.net/bugs/1251930

Title:
  [4.8 regression] internal compiler error while compiling OpenCV 2.4.7

Status in The GNU Compiler Collection:
  Confirmed
Status in Linaro GCC:
  New
Status in “gcc-4.8” package in Ubuntu:
  Incomplete

Bug description:
  (reported upstream http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59142)

  This is on an ARM platform with Ubuntu/Linaro 13.10 with:

    g++-4.8:
      Installed: 4.8.1-10ubuntu8

  While building OpenCV 2.4.7 with:

    cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/home/jm/fidelio/3rd-party/opencv/2.4.7/linaro ..
    make

  I got:

  [ 71%] Building CXX object modules/ocl/CMakeFiles/opencv_ocl.dir/src/imgproc.cpp.o
  /home/jm/fidelio/3rd-party/opencv/2.4.7/opencv-2.4.7/modules/ocl/src/imgproc.cpp: In function ‘void cv::ocl::copyMakeBorder(const cv::ocl::oclMat&, cv::ocl::oclMat&, int, int, int, int, int, const Scalar&)’:
  /home/jm/fidelio/3rd-party/opencv/2.4.7/opencv-2.4.7/modules/ocl/src/imgproc.cpp:513:9: internal compiler error: output_operand: invalid expression as operand
           }
           ^
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
  Preprocessed source stored into /tmp/ccQku01D.out file, please attach this to your bugreport.
  make[2]: *** [modules/ocl/CMakeFiles/opencv_ocl.dir/src/imgproc.cpp.o] Error 1
  make[1]: *** [modules/ocl/CMakeFiles/opencv_ocl.dir/all] Error 2
  make: *** [all] Error 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1251930/+subscriptions



More information about the foundations-bugs mailing list