On Fri, Dec 4, 2020 at 9:08 AM Martin Liška <mli...@suse.cz> wrote: > > On 12/3/20 2:12 PM, Richard Biener wrote: > > Can we somehow preserve this by making the helper produce separate > > strings for the 'GNU C17 11.0 ...' part and the options passed part? So the > > -fverbose-asm and -Q consumer can continue to nicely print the option part? > > Yep, good idea. I've just done that and I have: > > 1) -Q output now: > > GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 > options passed: -dumpbase-ext .c -mtune=generic -march=x86-64 -g -O2 > > and > > GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 > options passed: ./xgcc -B. -Q -v /home/marxin/Programming/testcases/a.c -c > -O2 -fverbose-asm -frecord-gcc-switches-format=driver -g -S > > 2) For -fverbose-asm: > > # GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 > # options passed: -dumpbase-ext .c -mtune=generic -march=x86-64 -g -O2 > > and > > # GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 > # options passed: -dumpbase-ext .c -mtune=generic -march=x86-64 -g -O2 > -frecord-gcc-switches-file=/tmp/ccm3kL7d.cmdline > > 3) DWARF producer: > > <c> DW_AT_producer : (indirect string, offset: 0x97): GNU C17 > 11.0.0 20201204 (experimental) -dumpbase-ext .c -mtune=generic -march=x86-64 > -g -O2 > > and > > <c> DW_AT_producer : (indirect string, offset: 0x27): GNU C17 > 11.0.0 20201204 (experimental) ./xgcc -B. -Q -v > /home/marxin/Programming/testcases/a.c -c -O2 -fverbose-asm > -frecord-gcc-switches-format=driver -g > > Thoughts?
+/* Return a heap allocated producer with command line options. */ + +char *gen_command_line_string (cl_decoded_option *options, char * goes to a separate line + unsigned int options_count) +{ Otherwise 0001- looks good to me. As said I'd like to see opinions from others on the driver / backend communication for 0002. Thanks, Richard. > Thanks, > Martin