------- Comment #1 from dg dot recrutement31 at gmail dot com  2010-06-07 16:20 
-------
Created an attachment (id=20856)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20856&action=view)
source file in which a faulty control flow occurs.

Compiled with gcc 4.5 with the following potions: -ansi -Wall -pedantic -W
-Wl,--enable-auto-import  -masm=intel -save-temps -O2

line 1891: if ((pMyDisasm->Reserved_.MemDecoration >100) &&
(pMyDisasm->Reserved_.MemDecoration < 199))

The control flow is transmitted to this if branch whereas
pMyDisasm->Reserved_.MemDecoration == 0
SIGSEGV is, hence, raised when attempting to access
GoAsmPrefixes[pMyDisasm->Reserved_.MemDecoration-1] at line 1918.

The control flow should be given to the 'else' branch, line 1944.

Hoping it helps to investigate.


-- 


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

Reply via email to