Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1451
Closed
Open
Created Jun 25, 2007 by Sven-Bodo Scholz@sbsOwner

increased occurance of "may be used uninitialized in this function"

Bugzilla Link 378
Created on Jun 25, 2007 16:02
Resolution FIXED
Resolved on Jun 26, 2007 14:33
Version 1.00beta
OS SunOS
Architecture PC
Attachments tutu2.sac, xtutu2.sac

Extended Description

since quite a while (maybe 3 months??) we see a rather significant
increase in warnings of the kind: "may be used uninitialized in this function"
It was anticipated that theese stem from the inlining bug (110). However,
that anticipation is wrong. It has something to do with the code that is created
whenever an AUD variable is assigned to a scalar value. See the attached example.
In essence, the compiler creates a for loop for extracting the values which,
in case the AUD value would be empty, results in an un-initialised variable.
If we turn on -check tb the check comes in a rather diguised form so that the
C compiler fails to find out that an empty for-loop in fact cannot happen.
I am not sure what to do here. As a starting point one may try to find out
why this problem did not occur earlier. Looking into the history of the
masterrun might be a starting point to get an idea which compiler version 
did not yet suffer from the flooding by warnings.....
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking