Claudiu Zissulescu-Ianculescu

Results 76 comments of Claudiu Zissulescu-Ianculescu

Constant propagation is too aggressive for `ST` instructions leading to suboptimal code: ```asm movl_s r15,8 addl r0,r16,r15 stl r2,[r0] addl_s r0,r0,r15 stl r2,[r0] ```

I cannot see the issue with either gcc11 or gcc10. Please can u retry.

Example SMP `crt0.S`: ```asm ;; ******************************************************************************************************************* ;; ----------------- ;; ARC start up file ;; ----------------- ;; The startup code for the ARC family of processors does the following before transferring...

@shahab-vahedi please can you try it again with latest `arc64` branch (gcc12)? thx

Simplified: ```asm .text .align 4 .global main .type main, @function main: .LVL0: .LVL1: .file 1 "main.c" .loc 1 89 7 is_stmt 0 view .LVU23 .LFE1009: .size main, .-main .section .debug_loclists,"",@progbits...

It looks related to [this](https://sourceware.org/bugzilla/show_bug.cgi?id=28459). By all means the error looks more estetical than functional, and it should not trigger any error during debugging.

Doesn't [`section`](https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#Common-Variable-Attributes) attribute solve this issue?

The `st` instruction has an `s9` short immediate, even using `.as` suffix the resulted object may have linker time errors as the displacement may be larger than the instruction can...