public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55468] New: Label value to incorrect destination
@ 2012-11-26 6:29 martin.girard5 at gmail dot com
2012-11-26 6:30 ` [Bug c++/55468] " martin.girard5 at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: martin.girard5 at gmail dot com @ 2012-11-26 6:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55468
Bug #: 55468
Summary: Label value to incorrect destination
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: martin.girard5@gmail.com
This is a case of a label pointing to the wrong line. It is clear from looking
at the disassembly that the value of said label is bogus.
Look around line 31452. The sigtrap label points to line 31458. Instead, the
&&sigtrap label gives the address of line 31448, four lines above instead of
six lines below.
In the disassembly, one can see a movl instruction writing the address as a
function argument onto the stack, and said address is unmistakably the WSTOPSIG
macro four lines prior. As a result, the executable loops indefinitely upon
reaching this area, whereas it should be skipping the next block instead.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/55468] Label value to incorrect destination
2012-11-26 6:29 [Bug c++/55468] New: Label value to incorrect destination martin.girard5 at gmail dot com
@ 2012-11-26 6:30 ` martin.girard5 at gmail dot com
2012-11-26 6:40 ` martin.girard5 at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: martin.girard5 at gmail dot com @ 2012-11-26 6:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55468
--- Comment #1 from martin.girard5 at gmail dot com 2012-11-26 06:29:52 UTC ---
Created attachment 28777
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28777
The preprocessed output
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/55468] Label value to incorrect destination
2012-11-26 6:29 [Bug c++/55468] New: Label value to incorrect destination martin.girard5 at gmail dot com
2012-11-26 6:30 ` [Bug c++/55468] " martin.girard5 at gmail dot com
@ 2012-11-26 6:40 ` martin.girard5 at gmail dot com
2012-11-26 8:56 ` pinskia at gcc dot gnu.org
2024-03-16 17:56 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: martin.girard5 at gmail dot com @ 2012-11-26 6:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55468
--- Comment #2 from martin.girard5 at gmail dot com 2012-11-26 06:39:35 UTC ---
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.7/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.7
--enable-ssp --disable-libssp --disable-libitm --disable-plugin
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib
--enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --enable-linker-build-id
--program-suffix=-4.7 --enable-linux-futex --without-system-libunwind
--with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.7.2 20120920 [gcc-4_7-branch revision 191568] (SUSE Linux)
COLLECT_GCC_OPTIONS='-o' 'test' '-v' '-save-temps' '-std=c++11' '-I'
'../include' '-march=pentium4' '-mtune=native' '-mfpmath=sse' '-m32'
'-static-libgcc' '-Wno-invalid-offsetof' '-Wno-overflow' '-Wno-pointer-arith'
'-Wno-unused-function' '-Wno-attributes' '-fno-threadsafe-statics'
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/55468] Label value to incorrect destination
2012-11-26 6:29 [Bug c++/55468] New: Label value to incorrect destination martin.girard5 at gmail dot com
2012-11-26 6:30 ` [Bug c++/55468] " martin.girard5 at gmail dot com
2012-11-26 6:40 ` martin.girard5 at gmail dot com
@ 2012-11-26 8:56 ` pinskia at gcc dot gnu.org
2024-03-16 17:56 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-11-26 8:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55468
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-11-26 08:56:22 UTC ---
Labels as values are only designed and will only work with computed gotos. Any
other use is an undefined use of them.
The actual labels are moved around just like any other label would be and will
be place at random places in the code if not used with computed gotos.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/55468] Label value to incorrect destination
2012-11-26 6:29 [Bug c++/55468] New: Label value to incorrect destination martin.girard5 at gmail dot com
` (2 preceding siblings ...)
2012-11-26 8:56 ` pinskia at gcc dot gnu.org
@ 2024-03-16 17:56 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 17:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55468
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |DUPLICATE
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup.
*** This bug has been marked as a duplicate of bug 44298 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-03-16 17:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-26 6:29 [Bug c++/55468] New: Label value to incorrect destination martin.girard5 at gmail dot com
2012-11-26 6:30 ` [Bug c++/55468] " martin.girard5 at gmail dot com
2012-11-26 6:40 ` martin.girard5 at gmail dot com
2012-11-26 8:56 ` pinskia at gcc dot gnu.org
2024-03-16 17:56 ` pinskia at gcc dot gnu.org
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).