Compare commits
5 Commits
37435104a7
...
7b4b1c9ce4
| Author | SHA1 | Date | |
|---|---|---|---|
| 7b4b1c9ce4 | |||
|
|
05609dadc0 | ||
|
|
95479c4740 | ||
| d6a61190a8 | |||
| 6b02c756c8 |
@@ -911,7 +911,9 @@ static void fillFunctionPureStatus(SgStatement *header, FuncInfo *currInfo, vect
|
||||
if (currInfo->commonBlocks.size() == 0)
|
||||
{
|
||||
lines.clear();
|
||||
bool has = hasThisIds(header, lines, { DATA_DECL, SAVE_DECL, USE_STMT });
|
||||
bool has = hasThisIds(header, lines, { DATA_DECL, SAVE_DECL, USE_STMT,
|
||||
WRITE_STAT, READ_STAT, OPEN_STAT, CLOSE_STAT,
|
||||
PRINT_STAT, STOP_STAT, PAUSE_NODE });
|
||||
if (!has || declaratedAsPure)
|
||||
currInfo->isPure = true;
|
||||
else
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
#define VERSION_SPF "2267"
|
||||
#pragma once
|
||||
|
||||
#define VERSION_SPF "2270"
|
||||
|
||||
@@ -150,6 +150,7 @@ void fillUseStatement(SgStatement *st, set<string> &useMod,
|
||||
{
|
||||
SgExpression *ex = st->expr(0);
|
||||
string modName = st->symbol()->identifier();
|
||||
convertToLower(modName);
|
||||
useMod.insert(modName);
|
||||
|
||||
if (ex)
|
||||
|
||||
Reference in New Issue
Block a user