Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F frama-c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 173
    • Issues 173
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #2045
Closed
Open
Issue created Jun 08, 2012 by mantis-gitlab-migration@mantis-gitlab-migration

__builtin_alloca

ID0001190: This issue was created automatically from Mantis Issue 1190. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0001190 Frama-C Kernel public 2012-06-08 2012-06-09
Reporter Anne Assigned To virgile Resolution open
Priority normal Severity minor Reproducibility have not tried
Platform - OS - OS Version -
Product Version Frama-C Nitrogen-20111001 Target Version - Fixed in Version -

Description :

In a file with a local array which size in defined by a variable : float a[n]; I get : [kernel] warning: Variable-sized local variable a which is ok. But then, when I use the value analysis, I get : [kernel] warning: No code for function __builtin_alloca, default assigns generated because the declaration has been translated in : __lengthofa = (unsigned int)n; a = (float *)__builtin_alloca(sizeof(*a) * __lengthofa); which looks fine, but the question is : shouldn't the assigns property be defined somewhere inside Frama-C for the builtin functions ? As a workaround, what prototype and assigns should I write for this function.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking