This is the mail archive of the
mailing list for the GCC project.
Re: [tree-ssa] Patch: add -fuse-global-var
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Dale Johannesen <dalej at apple dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 19 Jan 2004 17:25:39 -0500
- Subject: Re: [tree-ssa] Patch: add -fuse-global-var
- Organization: Red Hat Canada
- References: <8D7F9D73-4ACC-11D8-B36A-000A95D7CD40@apple.com>
On Mon, 2004-01-19 at 17:12, Dale Johannesen wrote:
> This adds a new flag, -fuse-global-var, to control whether the
> .GLOBAL_VAR mechanism
> is used or not. The default is unchanged. Two reasons:
> - enable best code gen when the user is willing to accept slow
> compilation (e.g. benchmarking)
> - permit construction of small testcases for bugs dependent on
> .GLOBAL_VAR being used
> Bootstrapped and tested on Darwin.
I don't think this is a good idea. Since .global_var is obscure enough
for users, I think we might as well add a --param switch that controls
the heuristic used to trigger the creation of .global_var.