Adds the -fstack-size-section flag to enable the .stack_sizes section. The flag defaults to on for the PS4 triple.
Follow up change from: https://reviews.llvm.org/D39788
Original RFC: http://lists.llvm.org/pipermail/llvm-dev/2017-August/117028.html
Differential D40712
[Driver] Add flag enabling the function stack size section that was added in r319430 Authored by seaneveson on Dec 1 2017, 4:07 AM.
Details
Adds the -fstack-size-section flag to enable the .stack_sizes section. The flag defaults to on for the PS4 triple. Follow up change from: https://reviews.llvm.org/D39788 Original RFC: http://lists.llvm.org/pipermail/llvm-dev/2017-August/117028.html
Diff Detail
Event TimelineComment Actions Looks good to me, but I'm not too familiar with the clang driver code. So it would be good if you could at least add some more experienced clang developers into the reviewer list and wait some more days before committing. I also wonder whether it would be possible to move the fact that it defaults to on for PS4 into the PS4CPU.cpp file somehow (not that things are distributed that cleanly right now anyway). Comment Actions The title says "Add cc1 option..." which to me implies a "cc1 only" option. What you're actually doing is adding a driver option. Please update the title.
Comment Actions I see what you're saying, but I can't see an easy way to do that right now, and there are already a number of target dependent defaults done in the same way.
Comment Actions Thanks Bruno, Changed the default for cc1 to be false regardless of the target. The default in the driver is still true for PS4 (only). | ||||||||||||||||||