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

Provide control over -fcallgraph-info in project wizard. #427

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

simonjwright
Copy link
Contributor

In GCC PR 104342 we can see that, if checking out a non-release compiler (e.g. GCC 14.0.1), having -gnata and -fcallgraph-info=su will cause a crash (in stm32 code, anyway).

-gnata is used when Build is Debug.

This patch amends the Project Wizard so you can specify CALLGRAPHS=Disabled.

In [GCC PR 104342](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104342)
we can see that, if checking out a non-release compiler (e.g. GCC
14.0.1), having `-gnata` and `-fcallgraph-info=su` will cause a crash
(in stm32 code, anyway).

`-gnata` is used when Build is Debug.

This patch amends the Project Wizard so you can specify `CALLGRAPHS=Disabled`.

  * scripts/project_wizard.py (Build_Checks_Type): renamed to
      Disabled_Or_Enabled_Type.
    (Build_Checks): now Disabled_Or_Enabled_Type.
    (Callgraphs): new, checks external CALLGRAPHS, default Enabled. Used
      to decide whether to include -fcallgraph-info=su even if Target
      isn't riscv32-unknown-elf.
@pat-rogers pat-rogers merged commit 1c17980 into AdaCore:master Feb 27, 2024
3 checks passed
@pat-rogers
Copy link
Contributor

Thanks Simon.

@simonjwright simonjwright deleted the callgraph branch February 27, 2024 18:13
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