[Bug target/108849] __declspec(code_seg("segname")) does not work

2024-03-13 Thread pali at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108849 --- Comment #3 from Pali Rohár --- Arsen, so based on my understooding (please correct me if I'm wrong), gcc's "section" can be used on both code (functions) and data (global variables). And ms's "code_seg" can be used only on code (functions).

[Bug target/108849] __declspec(code_seg("segname")) does not work

2024-01-07 Thread pali at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108849 --- Comment #2 from Pali Rohár --- `section` is the best option. MS says about it: https://learn.microsoft.com/en-us/cpp/cpp/code-seg-declspec > The code_seg declaration attribute names an executable text segment in the > .obj file in which t

[Bug target/108849] __declspec(code_seg("segname")) does not work

2024-01-07 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108849 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment