This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/45419] -fcompare-debug failure at -O3



------- Comment #4 from zsojka at seznam dot cz  2010-08-26 18:37 -------
Created an attachment (id=21574)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21574&action=view)
different testcase

Thank you for answers! This not yet reduced testcase fails in a similiar way
(r163468, x86_64-linux). It needs only -O2 to reproduce.

$ gcc -std=gnu++0x -fcompare-debug -O2 040.ii -w
gcc: error: 040.ii: -fcompare-debug failure (length)
$ diff 040.*gkd
54739c54739
<                     (const_int 8 [0x8]))) [ MEM[(const struct OverflowSafeInt
&)&CMD_ERROR + 8].m_value+0 S8 A64])
---
>                     (const_int 8 [0x8]))) [ MEM[(struct OverflowSafeInt *)&CMD_ERROR + 8B].m_value+0 S8 A64])

It shows 3 differences:
missing const
& -> * (PR45408)
8 -> 8B

Information about gcc used:
$ /mnt/svn/gcc-trunk/binary-163468-lto-fortran-checking-yes-rtl-df/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/mnt/svn/gcc-trunk/binary-163468-lto-fortran-checking-yes-rtl-df/bin/gcc
COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-163468-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /mnt/svn/gcc-trunk/configure
--enable-languages=c,c++,lto,fortran
--prefix=/mnt/svn/gcc-trunk/binary-163468-lto-fortran-checking-yes-rtl-df/
--enable-checking=yes,rtl,df
Thread model: posix
gcc version 4.6.0 20100823 (experimental) (GCC)

$ cat /proc/sys/kernel/randomize_va_space
0


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]