Landing: 88a676869a75

Project / Subsystem

gcc / libgccjit

Date

2024-12-10

Author

Antoni Boucher

Commit

88a676869a750d16ce6b752f82eaf5e2617bd0f3

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libgccjit
patch_id
commit_hash
88a676869a750d16ce6b752f82eaf5e2617bd0f3
source_type
github
headline
Libgccjit allows casts between integers and pointers
tldr
The libgccjit library now permits explicit casts between integer and pointer types, increasing flexibility for JIT-compiled C code.
author
Antoni Boucher
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • libgccjit
  • c
  • types
  • abi
discussion_id_link
bugzilla_pr
date
2024-12-10T00:00:00.000Z

This commit relaxes type checking within libgccjit, allowing developers to cast between integer types and pointer types. This change aligns libgccjit with common C programming practices where such casts are frequently used for low-level memory manipulation or interfacing with hardware. By expanding the valid casting operations, libgccjit offers greater flexibility for just-in-time compilation of code that relies on these conversions, without introducing new type safety issues since these casts are already part of the C language specification.