build: move `-fstack-reuse=none` to CORE_CXXFLAGS #28672

pull fanquake wants to merge 1 commits into bitcoin:master from fanquake:move_stack_reuse_core_flags changing 1 files +6 −5
  1. fanquake commented at 1:03 PM on October 18, 2023: member

    This is not a hardening specific flag, it should be used at all times, regardless of if hardening is enabled or not. Note that this was still the case here, but having this exist in the hardening flags is confusing, and may lead someone to move it inside one of the use_hardening blocks, where it would become unused, with --disable-hardening.

    Noticed while reviewing https://github.com/hebasto/bitcoin/pull/32#discussion_r1363564161.

  2. DrahtBot commented at 1:03 PM on October 18, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage

    For detailed information about the code coverage, see the test coverage report.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK theuni, hebasto, luke-jr, TheCharlatan

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  3. DrahtBot added the label Build system on Oct 18, 2023
  4. hebasto commented at 1:29 PM on October 18, 2023: member

    This is not a hardening specific flag, it should be used at all times, regardless of if hardening is enabled or not. Note that this was still the case here, but having this exist in the hardening flags is confusing, and may lead someone to move it inside one of the use_hardening blocks, where it would become unused, with --disable-hardening.

    I viewed it "confusing" in the same way while working on CMake-based build system.

    Concept ACK.

  5. hebasto commented at 1:50 PM on October 18, 2023: member

    Should we also consider any of other related bugs mentioned in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111843?

  6. build: move -fstack-reuse=none to CORE_CXXFLAGS
    This is not a hardening specific flag, it should be used at all times,
    regardless of if hardening is enabled or not. Note that this was
    still the case here, but having this exist in the hardening flags is
    confusing, and may lead someone to move it inside one of the `use_hardening`
    blocks, where it would become unused, with `--disable-hardening`.
    8cfa22a846
  7. fanquake force-pushed on Oct 18, 2023
  8. fanquake commented at 2:21 PM on October 18, 2023: member

    Should we also consider any of other related bugs mentioned in

    I've switched to linking to the meta issue, over a specific bug report, but I'm not sure what else you're suggesting to do.

  9. theuni commented at 3:05 PM on October 18, 2023: member

    ACK 8cfa22a8464c07da3bb47e7db323ed1069b97457. Agree it's confusing as-is and this better matches the intent.

  10. DrahtBot requested review from hebasto on Oct 18, 2023
  11. theuni approved
  12. hebasto approved
  13. hebasto commented at 3:05 PM on October 18, 2023: member

    ACK 8cfa22a8464c07da3bb47e7db323ed1069b97457

  14. maflcko added the label DrahtBot Guix build requested on Oct 18, 2023
  15. DrahtBot commented at 5:23 PM on October 18, 2023: contributor

    <!--9cd9c72976c961c55c7acef8f6ba82cd-->

    Guix builds (on x86_64)

    File commit 655dc716aa6043613171a1338e22928de89a7d3e<br>(master) commit 4284cffb7114605136cd55787bc66371538d5d30<br>(master and this pull)
    guix_build.log cebd814ed065d782... 3c834795531c6e99...
    guix_build.log.diff 475dcd577b86fb19...
  16. DrahtBot removed the label DrahtBot Guix build requested on Oct 18, 2023
  17. luke-jr approved
  18. luke-jr commented at 6:44 PM on October 18, 2023: member

    utACK 8cfa22a8464c07da3bb47e7db323ed1069b97457

  19. TheCharlatan approved
  20. TheCharlatan commented at 6:51 PM on October 18, 2023: contributor

    ACK 8cfa22a8464c07da3bb47e7db323ed1069b97457

  21. fanquake merged this on Oct 19, 2023
  22. fanquake closed this on Oct 19, 2023

  23. fanquake deleted the branch on Oct 19, 2023
  24. Frank-GER referenced this in commit 6c3fb72207 on Oct 21, 2023
  25. bitcoin locked this on Oct 18, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-26 06:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me