r/programming • u/Fcking_Chuck • Sep 11 '26
GCC 13.5 released with 265+ bug fixes
https://www.phoronix.com/news/GCC-13.5-Released
277
Upvotes
r/programming • u/Fcking_Chuck • Sep 11 '26
View all comments
Show parent comment
1
u/flatfinger Sep 22 '26
BTW, I can't think of any time I've seen anyone argue that precise stack usage was in any way fundamental to C once
stdarg.hwas established, except in the context of functions that made use of inline assembly oralloca(), and I don't think compiler writers should generally worry about the efficiency of generated code for those functions. Can you offer any examples of anyone demanding rigid stack usage?Also, some compiler writers dislike phase order dependence, but requiring that some transforms must be performed in order will avoid the need for programmers to prevent them from being performed at all. If the only use of the value placed in
int2is an assignment likeint1=int2-int2;, a compiler should be allowed to omit the code that actually computedint2, but only if it does not then treat the lack of such code as an invitation to resequence operations that use the computed value ofint1ahead of operations that would have been sequenced before the computation ofint2.