public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/60438] New: dwarf2cfi :2239 still assert,not the same cause as PR 59575
@ 2014-03-06  6:54 manjian2006 at gmail dot com
  2014-03-06  6:56 ` [Bug debug/60438] " manjian2006 at gmail dot com
                   ` (40 more replies)
  0 siblings, 41 replies; 42+ messages in thread
From: manjian2006 at gmail dot com @ 2014-03-06  6:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60438
           Summary: dwarf2cfi :2239 still assert,not the same cause as PR
                    59575
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: manjian2006 at gmail dot com

This Bug is cause by csa pass.Which removes REG_ARGS_SIZE unexpectedly.
Let me show the cfg first:

                                            if (hasRelativeWidth ||
hasRelativeHeight)
                                            true                               
false
                                            /                                  
    \
                                           /                                   
     \ 
                                          /                                    
      \
                            ...                                                
    ...
                           call availableWidth()                               
        call size() this function returns a structure,which matches "call_pop"  
                           .cfa_offset 96                                      
    .cfa_offset 92
                                                                               
    push edx (should has a REG_ARGS_SIZE 16 here,but csa eliminates it)
                                          \                                    
    (inlined functions are expanded here)
                                           \                                   
        /
                                            \                                  
       /
                                             \                                 
      /
                                                        add 16,%esp
After the csa pass ,push edx's REG_ARGS_SIZE has gone.
And that further causes the assertion in dwarf2cfi.c:2339:

      /* We ought to have the same state incoming to a given trace no
     matter how we arrive at the trace.  Anything else means we've
     got some kind of optimization error.  */
      gcc_checking_assert (cfi_row_equal_p (cur_row, ti->beg_row));

gcc is configured as :
--target=i686-linux-android --host=x86_64-linux-gnu --build=x86_64-linux-gnu
--with-gnu-as --with-gnu-ld --enable-languages=c,c++
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--disable-libssp --enable-threads --disable-nls --disable-libmudflap
--disable-libgomp --disable-sjlj-exceptions --disable-tls --disable-libitm
--with-arch=i686 --with-tune=atom --with-fpmath=sse --enable-initfini-array
--disable-nls
--with-sysroot=/home/linzj/android-ndk-r8e/platforms/android-9/arch-x86
--disable-bootstrap --disable-libquadmath --enable-plugins --enable-libgomp
--enable-gold --enable-graphite=yes
--program-transform-name='s&^&i686-linux-android-&' --enable-gold=default
--disable-libcilkrts : (reconfigured) ../building/configure
--target=i686-linux-android --host=x86_64-linux-gnu --build=x86_64-linux-gnu
--with-gnu-as --with-gnu-ld --enable-languages=c,c++
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--disable-libssp --enable-threads --disable-nls --disable-libmudflap
--disable-libgomp --disable-sjlj-exceptions --disable-tls --disable-libitm
--with-arch=i686 --with-tune=atom --with-fpmath=sse --enable-initfini-array
--disable-nls
--with-sysroot=/home/linzj/android-ndk-r8e/platforms/android-9/arch-x86
--disable-bootstrap --disable-libquadmath --enable-plugins --enable-libgomp
--enable-gold --enable-graphite=yes
--program-transform-name='s&^&i686-linux-android-&' --enable-gold=default
--disable-libcilkrts

compile args:
-ffunction-sections -funwind-tables -no-canonical-prefixes -fstack-protector
-fno-exceptions -fno-rtti -O2 -g -fomit-frame-pointer -fstrict-aliasing
-funswitch-loops -finline-limit=300 -gdwarf-2 -funwind-tables -fno-pic -fPIC
-fno-stack-protector -fvisibility=hidden -gdwarf-2 -funwind-tables -fno-pic
-fPIC -fno-stack-protector -fvisibility=hidden -fvisibility-inlines-hidden
-Wa,--noexecstack   -Os -Wreturn-type -Wuninitialized -c


^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2014-03-18 15:10 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-06  6:54 [Bug debug/60438] New: dwarf2cfi :2239 still assert,not the same cause as PR 59575 manjian2006 at gmail dot com
2014-03-06  6:56 ` [Bug debug/60438] " manjian2006 at gmail dot com
2014-03-06  6:59 ` manjian2006 at gmail dot com
2014-03-06  7:37 ` manjian2006 at gmail dot com
2014-03-07  8:53 ` manjian2006 at gmail dot com
2014-03-07  8:59 ` manjian2006 at gmail dot com
2014-03-07  9:24 ` manjian2006 at gmail dot com
2014-03-07  9:48 ` manjian2006 at gmail dot com
2014-03-07 10:09 ` manjian2006 at gmail dot com
2014-03-07 14:28 ` manjian2006 at gmail dot com
2014-03-07 18:08 ` manjian2006 at gmail dot com
2014-03-07 22:05 ` jakub at gcc dot gnu.org
2014-03-07 22:07 ` [Bug debug/60438] [4.9 Regression] " jakub at gcc dot gnu.org
2014-03-08  2:59 ` manjian2006 at gmail dot com
2014-03-08  6:33 ` manjian2006 at gmail dot com
2014-03-08  6:42 ` manjian2006 at gmail dot com
2014-03-08 10:04 ` manjian2006 at gmail dot com
2014-03-08 10:43 ` manjian2006 at gmail dot com
2014-03-09  0:03 ` rth at gcc dot gnu.org
2014-03-09  2:23 ` manjian2006 at gmail dot com
2014-03-09  4:10 ` rth at gcc dot gnu.org
2014-03-09  5:37 ` manjian2006 at gmail dot com
2014-03-09 10:23 ` manjian2006 at gmail dot com
2014-03-09 10:25 ` manjian2006 at gmail dot com
2014-03-09 10:29 ` manjian2006 at gmail dot com
2014-03-09 15:02 ` manjian2006 at gmail dot com
2014-03-10 10:18 ` jakub at gcc dot gnu.org
2014-03-10 11:04 ` manjian2006 at gmail dot com
2014-03-10 11:32 ` jakub at gcc dot gnu.org
2014-03-10 13:03 ` manjian2006 at gmail dot com
2014-03-10 19:23 ` rth at gcc dot gnu.org
2014-03-10 19:26 ` jakub at gcc dot gnu.org
2014-03-10 20:51 ` rth at gcc dot gnu.org
2014-03-11 15:12 ` jakub at gcc dot gnu.org
2014-03-12 17:25 ` rth at gcc dot gnu.org
2014-03-12 17:29 ` jakub at gcc dot gnu.org
2014-03-13  9:00 ` jakub at gcc dot gnu.org
2014-03-13 20:25 ` rth at gcc dot gnu.org
2014-03-13 20:56 ` jakub at gcc dot gnu.org
2014-03-18 13:08 ` bernd.edlinger at hotmail dot de
2014-03-18 13:16 ` dominiq at lps dot ens.fr
2014-03-18 15:10 ` manjian2006 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).