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 other/15628] New: GCC automatically initializes variables to 0


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


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