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

Prepare Rust for opaque pointers #94214

Merged
merged 5 commits into from
May 29, 2022
Merged

Commits on May 25, 2022

  1. Don't use global initializer if type does not match

    This was relying on the presence of a bitcast to avoid using the
    constant global initializer for a load using a different type.
    With opaque pointers, we need to check this explicitly.
    nikic committed May 25, 2022
    Configuration menu
    Copy the full SHA
    373789b View commit details
    Browse the repository at this point in the history
  2. Fix stack protector basic test

    This is a >= condition, so we need a maximum size of 7 to not
    create a stack protector in basic mode.
    
    The reason this still worked is that the alloca type was converted
    into an integer (rather than an array). The way these heuristics
    are implemented in LLVM is rather questionable and not resilient
    to optimization.
    nikic committed May 25, 2022
    Configuration menu
    Copy the full SHA
    ebc8ab1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4d7ff4e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6dc4fe5 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2022

  1. Fix documentation of basic stack protector

    A stack protector is used for N >= 8, not N > 8.
    nikic committed May 28, 2022
    Configuration menu
    Copy the full SHA
    1ff051a View commit details
    Browse the repository at this point in the history