public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Christoph Maurer <christoph-maurer@gmx.de>
To: gcc@gcc.gnu.org
Subject: Re: Anyway to get compile flags from objects?
Date: Mon, 17 Sep 2001 06:41:00 -0000	[thread overview]
Message-ID: <20010917154116.G6169@iaew.rwth-aachen.de> (raw)
In-Reply-To: <x884rq20woj.fsf@adglinux1.hns.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 609 bytes --]

Am Mon, 17 Sep 2001, schrieb nbecker@fred.net:

> Are compilation flags recorded in obj files?  Any way to get the info?
> If not, it seems to me to be a useful feature.


I tried a few days ago ans found the following solution:
(probably not the most beatuiful way, but it worked for me)

Compile with -S and -fverbose-asm. You'll find the Compiler-Flags in
the resulting assembler code as a comment.

Christoph

-- 
Christoph Maurer - Paul-Röntgen-Straße 7 - D - 52072 Aachen
mailto:christoph-maurer@gmx.de - http://www.christophmaurer.de
On my Homepage: SuSE 7.0 on an Acer Travelmate 508 T Notebook

  reply	other threads:[~2001-09-17  6:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-17  6:34 nbecker
2001-09-17  6:41 ` Christoph Maurer [this message]
2001-09-17  8:41 ` Phil Edwards
2001-09-18  3:57 dewar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010917154116.G6169@iaew.rwth-aachen.de \
    --to=christoph-maurer@gmx.de \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).