https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111834

            Bug ID: 111834
           Summary: GCC: 14: out of memory when __builtin_return_address
                    receive a large constant
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: 141242068 at smail dot nju.edu.cn
  Target Milestone: ---

Compiler Explorer: https://gcc.godbolt.org/z/7d63G6fWT

Testcase is pasted below:
```
void *retaddr;

void foo (void) {
  retaddr = __builtin_return_address (1084850891);
}
```

When compile it with GCC-14, it quickly used up all 8G memory on my PC.
  • [Bug c/111834] New: GCC: 14... 141242068 at smail dot nju.edu.cn via Gcc-bugs

Reply via email to