Proposed new GCC option --record-gcc-command-line

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Proposed new GCC option --record-gcc-command-line

suyash singh via cfe-dev
Copying the example from here

[egeyar@localhost save-commandline]$ g++ main.c
--record-gcc-command-line -frecord-gcc-switches

[egeyar@localhost save-commandline]$ readelf -p .GCC.command.line a.out

String dump of section '.GCC.command.line':

  [     0]  10.0.0 20191025 (experimental) : g++ main.c
--record-gcc-command-line -frecord-gcc-switches

  [    5c]  -D_GNU_SOURCE
  [    6a]  main.c
  [    71]  -mtune=generic
  [    80]  -march=x86-64
  [    8e]  --record-gcc-command-line /tmp/ccgC4ZtS.cmdline

I know that we've already implemented -frecord-command-line and
-frecord-gcc-switches ( It looks like
we may have an opinion on the section name and probably also the
option name.

Making a reply without a subscription may be difficult. You may need
to download [Raw text] and import the message to a Maildir/mailbox.
cfe-dev mailing list
[hidden email]