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

Filter empty preprocessor flags; don't treat arithmetic gotos as function references #214

Merged
merged 2 commits into from
Dec 19, 2017

Conversation

iainbarrass
Copy link
Contributor

@iainbarrass iainbarrass commented Nov 30, 2017

We want to avoid asking the preprocessor to define a macro consisting of
an empty string: 'cpp -D file' defines the macro "file" and processes
standard input, for example.

We also consider the problem of arithmetic GOTOs (#207).

We want to avoid asking the preprocessor to define a macro consisting of
an empty string: 'cpp -D file' defines the macro "file" and processes
standard input, for example.
An arithmetic goto like "go to (1) 1" could look like a reference to
the function "to" when matching against CALL_RE.

Although "go to" is in the intrinsics list, that space means that,
unlike "goto", only "to" is being considered.
@iainbarrass iainbarrass changed the title Filter out empty macro strings before prepending flag Filter empty preprocessor flags; don't treat arithmetic gotos as function references Nov 30, 2017
@cmacmackin cmacmackin merged commit 109872a into Fortran-FOSS-Programmers:master Dec 19, 2017
@cmacmackin cmacmackin mentioned this pull request Dec 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants