public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: nagarjun <nagarjunreddy.iit@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Re: what is the equivalent of -xM1(solaris compiler option) in gcc
Date: Thu, 28 Mar 2013 11:06:00 -0000	[thread overview]
Message-ID: <1364468798861-925214.post@n5.nabble.com> (raw)
In-Reply-To: <CAH6eHdQTwFaGUp-72aAiw2APq+vbF2=FCW23_7dKarrYdXFezw@mail.gmail.com>

Got the following from solaris help doc:

Generates makefile dependencies like -xM, but excludes /usr/include files. 

For example:

more hello.c
#include<stdio.h>
main()
{
    (void)printf(“hello\n”);
}
cc– xM hello.c
hello.o: hello.c
hello.o: /usr/include/stdio.h

Compiling with -xM1 does not report header file dependencies:

cc– xM1 hello.c
hello.o: hello.c



--
View this message in context: http://gcc.1065356.n5.nabble.com/what-is-the-equivalent-of-xM1-solaris-compiler-option-in-gcc-tp925198p925214.html
Sent from the gcc - Help mailing list archive at Nabble.com.

  reply	other threads:[~2013-03-28 11:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-28 10:17 nagarjun
2013-03-28 10:58 ` Jonathan Wakely
2013-03-28 11:06   ` nagarjun [this message]
2013-03-28 11:41   ` ikrabbe.ask
2013-03-28 16:04     ` Jonathan Wakely

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=1364468798861-925214.post@n5.nabble.com \
    --to=nagarjunreddy.iit@gmail.com \
    --cc=gcc-help@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).