linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Handling of -specs in cgcc
@ 2008-07-20 18:28 Alexey Zaytsev
  2008-07-22 17:00 ` Alexey Zaytsev
  0 siblings, 1 reply; 8+ messages in thread
From: Alexey Zaytsev @ 2008-07-20 18:28 UTC (permalink / raw)
  To: linux-sparse; +Cc: welinder

Hi.

Looking at cgcc, it seems that this code does not actually work,

26     if (/^-specs=(.*)$/) {
27         $check .= &add_specs ($1);
28         $has_specs = 1;
29         next;
30     }

because add_specs() never expects to see a file name, and
the option is removed from the argument list and never passed
to gcc. As it seems that this feature never worked, probably
we could simply remove it? Morten?

---

    Pass -specs to gcc without trying (and failing) to decompose it.

    Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>

diff --git a/cgcc b/cgcc
index 4fab530..a1d4f66 100755
--- a/cgcc
+++ b/cgcc
@@ -23,12 +23,6 @@ foreach (@ARGV) {
     $m32 = 1 if /^-m32$/;
     $m64 = 1 if /^-m64$/;

-    if (/^-specs=(.*)$/) {
-       $check .= &add_specs ($1);
-       $has_specs = 1;
-       next;
-    }

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-07-22 18:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-20 18:28 Handling of -specs in cgcc Alexey Zaytsev
2008-07-22 17:00 ` Alexey Zaytsev
2008-07-22 17:20   ` Morten Welinder
2008-07-22 17:28     ` Alexey Zaytsev
2008-07-22 17:43       ` Morten Welinder
2008-07-22 17:59         ` Alexey Zaytsev
2008-07-22 18:03         ` Josh Triplett
2008-07-22 18:11           ` Alexey Zaytsev

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 NNTP newsgroup(s).