r309940 - [mips] Implement -muninit-const-in-rodata

Joerg Sonnenberger via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 3 07:11:31 PDT 2017


On Thu, Aug 03, 2017 at 02:01:17PM -0000, Simon Dardis via cfe-commits wrote:
> Author: sdardis
> Date: Thu Aug  3 07:01:17 2017
> New Revision: 309940
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=309940&view=rev
> Log:
> [mips] Implement -muninit-const-in-rodata
> 
> This option when combined with -mgpopt and -membedded-data places all
> uninitialized constant variables in the read-only section.

I don't get it. Why is this preferable to just forbidding the use of
common variables in first placce?

Joerg


More information about the cfe-commits mailing list