This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/15628] New: GCC automatically initializes variables to 0
- From: "ext at nol dot co dot za" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 May 2004 07:02:44 -0000
- Subject: [Bug other/15628] New: GCC automatically initializes variables to 0
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I'm running AVR GCC which automatically initializes all variables to 0 before
the main code is executed. It is critical that this does not happen since all
variable values need to be retained if the watchdog kicks in and my AVR is
reset. Is there some way automatic variable initialization could be disabled.
Regards,
Francois Cronjé
--
Summary: GCC automatically initializes variables to 0
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ext at nol dot co dot za
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15628