20 Jul 20:25
Handling of -specs in cgcc
From: Alexey Zaytsev <alexey.zaytsev <at> gmail.com>
Subject: Handling of -specs in cgcc
Newsgroups: gmane.comp.parsers.sparse
Date: 2008-07-20 18:28:35 GMT
Subject: Handling of -specs in cgcc
Newsgroups: gmane.comp.parsers.sparse
Date: 2008-07-20 18:28:35 GMT
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 <at> 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=(.*)$/) {
(Continue reading)
RSS Feed