Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flang] Unable to parse CDIR$ LOOP COUNT(10000) #58731

Closed
hawkinsp opened this issue Nov 1, 2022 · 1 comment
Closed

[flang] Unable to parse CDIR$ LOOP COUNT(10000) #58731

hawkinsp opened this issue Nov 1, 2022 · 1 comment

Comments

@hawkinsp
Copy link
Contributor

hawkinsp commented Nov 1, 2022

PROPACK contains several files with compiler directives that do not compile with flang (built at LLVM commit 748922b).

Example:

$ ~/p/llvm-project/build/bin/flang-new -c ./complex8/Examples/matvec.F
error: Could not parse ./complex8/Examples/matvec.F
././complex8/Examples/matvec.F:160:17: error: expected end of line
  CDIR$ LOOP COUNT(10000)
                  ^
././complex8/Examples/matvec.F:160:1: in the context: execution part construct
  CDIR$ LOOP COUNT(10000)
...

gfortran compiles this file successfully. It's fine not to support the compiler directive, but being able to parse it and ignore it would be helpful.

@llvmbot
Copy link
Collaborator

llvmbot commented Nov 1, 2022

@llvm/issue-subscribers-flang-frontend

CarlosAlbertoEnciso pushed a commit to SNSystems/llvm-debuginfo-analyzer that referenced this issue Jan 18, 2023
Fixes: llvm/llvm-project#58731
Fixes: llvm/llvm-project#56678

Only handles this form which was reported: `!DIR$ LOOP COUNT (n1[, n2]...)`

Differential Revision: https://reviews.llvm.org/D141976

Change-Id: I768c8cb9f289c5fc4adee1ef8262c6d827574f27
veselypeta pushed a commit to veselypeta/cherillvm that referenced this issue Jun 13, 2024
Fixes: llvm/llvm-project#58731
Fixes: llvm/llvm-project#56678

Only handles this form which was reported: `!DIR$ LOOP COUNT (n1[, n2]...)`

Differential Revision: https://reviews.llvm.org/D141976

Change-Id: I768c8cb9f289c5fc4adee1ef8262c6d827574f27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants