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

cparser fails to produce working assembly code for alias when using extern #38

Open
GabrielRavier opened this issue Jun 5, 2020 · 0 comments

Comments

@GabrielRavier
Copy link

int f;
extern typeof(f) bar __attribute__((alias("f")));

cparser outputs this :

test.c:2:12: warning: extern storage class ignored for alias variable 'bar' [-Wother]
warning: the amd64 backend is experimental and unfinished (consider the ia32 backend) [-Wexperimental]
/tmp/QhC47s/a-0.s: Assembler messages:
/tmp/QhC47s/a-0.s:4: Error: `bar' can't be equated to common symbol `f'
/tmp/QhC47s/a-0.s: error: assembler reported an error
1 error(s), 2 warning(s)

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

No branches or pull requests

1 participant