clang's handling of --param

Hi clangers,

The current --param flag in clang doesn’t match gcc’s at all. In GCC this flag is documented as --param NAME=VALUE where NAME is something like “struct-reorg-cold-struct-ratio”. What clang seems to do is under a big FIXME, pass whatever is given to --param to all the subprocesses it executes.

That’s not okay.

Why does it work this way? Would anyone object to me removing the flag entirely, or making the driver accept --param then ignore its contents?

Nick

I think that accepting the flag and discarding the contents makes a lot of sense.

-Chris

Works for me. I think we should keep the unused argument warning
around for it, which should happen by default.

- Daniel