This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35263] New: Erroneous Application Execution Starting With GCC Version 4.1.3
- From: "mlake at mlake dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Feb 2008 16:04:24 -0000
- Subject: [Bug c/35263] New: Erroneous Application Execution Starting With GCC Version 4.1.3
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I'm running various versions of Linux on various i386 hardware.
I have a C application which I've compiled using gcc versions 3.4.1,
4.0.2, 4.1.2, 4.1.3, and 4.2.1. (I'm told 4.1.3 is not a released
version but I do indeed have a version of gcc running on an openSUSE
10.3 system where gcc -v returns "gcc version 4.1.3 20070724 (prerelease)
(SUSE Linux)".)
On all the versions of gcc listed above my application compiles cleanly
using options -I../include -Wall -g -pedantic. However, starting with
gcc version 4.1.3 my application executes incorrectly. I've tried adding
the options -fno-strict-aliasing and -fno-strict-overflow but the same
erroneous results occur.
It's proving difficult for me to pinpoint the cause of the erroneous
results. I have a character array ... char schedule[244][500]; ... in
which beginning at the 64th occurrence (starting with occurrence 0)
the data is incorrect using gcc versions 4.1.3 and 4.2.1. The data is
correct using all the other versions of gcc listed above.
Is it possible that there is a bug in this regard in the 4.2.x series
of gcc?
Marshall Lake
mlake@mlake.net
--
Summary: Erroneous Application Execution Starting With GCC
Version 4.1.3
Product: gcc
Version: 4.1.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mlake at mlake dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35263