Hi, I ran into PR driver/47785 when doing some testing with an option passed to the testsuite and I chose to fix this by putting out COLLECT_AS_OPTIONS as though these are options for the driver by prepending them with a "'-Wa", and suffixing them with a "'" character and additionally providing spaces as duly required. I've chosen a simple implementation. Tested in the past with x86_64-linux-gnu and arm-none-eabi cross tests (with an additional -Wa option passed to the default flags in a site.exp) Thoughts ? Ok for trunk now or should I stage this for 4.9 ? regards, Ramana gcc/ Ramana Radhakrishnan PR driver/47785 * gcc.c (set_collect_as_options): New. (main): Call this. * lto-wrapper.c (run_gcc): Handle COLLECT_AS_OPTIONS. testsuite/ Ramana Radhakrishnan PR driver/47785 * gcc.dg/pr47785.c: New test.