This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Feature ideas
- From: "Gareth Pearce" <tilps at hotmail dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Fri, 8 Nov 2002 06:51:37 +1100
- Subject: Feature ideas
Hi,
With some free time comming up, I was thinking of teaching myself some gcc
internals - by implementing a couple of ideas of mine... (or rather trying
to)
If theres some interest in these ideas, i probably more likely to get them
completed ... so I thought I might ask
First 2 ideas are
operatorcast... for c++ - an extension which allows the specification of
what should be passed in place of the class when passed to a va_args style
function. Would be quite useful for string type classes and printf type
functions.
and -Wdirect-infninte-recursion and -Wprobable-direct-infinite-recursion
first one detects
int blah(int a, int b) {
... no branches no early outs no modification of a or b ...
return blah(a,b)
}
second detects same but allows early outs or branches
both are usually signs you've stuffed up pretty badly. the first more so.
Gareth