This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]