tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Support for aliases of static non-function objects


From: Petr Skocik
Subject: [Tinycc-devel] Support for aliases of static non-function objects
Date: Sun, 8 Oct 2023 19:12:34 +0200
User-agent: Mozilla Thunderbird

Hi. I noticed aliases of static non-function objects didn't work on tinycc.

#undef NDEBUG
#include <assert.h>
#include <stdint.h>
static int st_x = 42;
static int st_x_ __attribute((alias("st_x")));
int main(void){ assert((uintptr_t)&st_x == (uintptr_t)&st_x_); } //used to fail

Pushed a fix that makes it work.

Best regards,

Petr Skocik




reply via email to

[Prev in Thread] Current Thread [Next in Thread]