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 403
    • Issues 403
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1238
Closed
Open
Created Jun 30, 2012 by Robert Bernecky@rbeDeveloper

-check c defeats WLF and AWLF

Bugzilla Link 988
Created on Jun 30, 2012 20:48
Version svn
OS Linux
Architecture PC

Extended Description

The summary says it all. WLF is well-known to be broken WRT -ecc and
-check c, but I was not aware that -check c would also break AWLF.
Consider the AWLF unit test prdAKD.sac, which basically does
sum(iota(id(N)). It can be seen here:
int[*] id(int[*] y)
{
 return(y);
}
int main()
{
 XXX = iota(id (50));
 ZZZ = sum(XXX);
 z = _sub_SxS_(ZZZ, 1225);
 return(z);
}
If we compile it with -doawlf -nowlf -ecc, we get one WL, as desired.
If we compile it with -doawlf -nowlf -check c, we get two WLs, as not
desired.
The problem may be merely inadequate tests in the compiler for
-check c vs. -ecc. At any rate, I'll look into it: I was operating
under the apparently mistaken impression that they were
identical, except that -ecc ripped out the guards after optimization,
and -check c did not.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking