https://sourceware.org/bugzilla/show_bug.cgi?id=31130
Bug ID: 31130 Summary: Return of Stack Address in C_alloca Product: binutils Version: 2.32 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: 1157401338 at qq dot com Target Milestone: --- hello, i found there is a return of stack address in function C_alloca located in libiberty/alloca.c step1: initialize "depth" with address of "probe", which is a local variable. step2: store "depth" into "new_storeage" at statement: ((header *) new_storage)->h.deep = depth; step3: return "new_storage" with a offset. can you help me to confirm: 1. is this a return of stack address(or stack address can be manipulated out of the function by subtracting the offset). 2. is the implementation of this function is on purpose? -- You are receiving this mail because: You are on the CC list for the bug.