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

Build fix for gcc 4.5.1 #179

Merged
1 commit merged into from
Oct 28, 2010
Merged

Build fix for gcc 4.5.1 #179

1 commit merged into from
Oct 28, 2010

Conversation

rillian
Copy link
Contributor

@rillian rillian commented Oct 28, 2010

The runtime test harness fails to compile under gcc 4.5.1 on Fedora 14.

Add a cast to make the compiler happy.

On gcc 4.5.1 (fedora 14 i686) rust_test_runtime.cpp fails to compile
with the following error:

  rt/test/rust_test_runtime.cpp:57:61: error: passing NULL to non-pointer argument 3 of ‘void rust_task::start(uintptr_t, uintptr_t, uintptr_t, size_t)’

The explicit cast works around the error.
oli-obk pushed a commit to oli-obk/rust that referenced this pull request Jul 19, 2017
update for upstream ParamEnv changes
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this pull request Dec 12, 2017
kazcw pushed a commit to kazcw/rust that referenced this pull request Oct 23, 2018
rchaser53 pushed a commit to rchaser53/rust that referenced this pull request Jan 19, 2019
antoyo added a commit to antoyo/rust that referenced this pull request Jun 7, 2022
ZuseZ4 referenced this pull request in EnzymeAD/rust Mar 7, 2023
* lu cuda test opt

* tmp

* re-enable work

* nocache

* Conditional enable register reduction

* Update enzyme/Enzyme/GradientUtils.cpp

Co-authored-by: Valentin Churavy <[email protected]>

* Update enzyme/Enzyme/GradientUtils.cpp

Co-authored-by: Valentin Churavy <[email protected]>

Co-authored-by: Valentin Churavy <[email protected]>
Co-authored-by: Valentin Churavy <[email protected]>
carolynzech pushed a commit to celinval/rust-dev that referenced this pull request Dec 13, 2024
Towards model-checking#76


## Changes
### Contracts Added:

- Added contracts for <*mut T>::add, <*mut T>::sub, and <*mut T>::offset
operations for raw pointers to slices.
### Proofs Implemented:

- Added proofs for the above contracts, verifying safety for the
following slice pointee types using arrays:
 - All integer types (i8, i16, i32, etc.).
 - Tuples (composite types) (e.g., (i8, i8), (i32, f64, bool)).
 - Unit type (()).
 
### Macro Definitions:
- Introduced macros to simplify and automate harness generation:
 - One macro for add and sub operations on slices.
 - Another macro for offset operations on slices.
 
### Array-Based Implementation for Slice Verification:
- Arrays are used as a proxy for slices (as slices do not have a known
length at compile time) to enable proper bounds checking and assumptions
during verification.
This pull request was closed.
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.

1 participant