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
https://gcc.gnu.org/ml/gcc-patches/2020-03/msg00230.html 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 (https://reviews.llvm.org/D54489). 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]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev