Re: A cscope-like gcc plugin

2012-12-05 Thread Mike Dupont
Sounds great, thanks for sharing! On Wed, Dec 5, 2012 at 3:14 AM, Yunfeng ZHANG wrote: > Hi all: > I'm pleased to announce my gcc plugin on gcc-4.6.3 has been released, it > collects data from gcc compilation stage and dump them to sqlite-database just > like cscope, but with later enhancement. >

Re: bug report : -save-temps and stdin

2012-10-29 Thread Mike Dupont
On Mon, Oct 29, 2012 at 2:57 PM, Richard Biener wrote: > Alternatively, inform the user that -save-temps is ignored and continue ... > (I can see people annoyed by foreign Makefiles and tying to get at > preprocessed > source with CFLAGS="... -save-temps") that also makes sense, and would be mor

Re: bug report : -save-temps and stdin

2012-10-29 Thread Mike Dupont
On Mon, Oct 29, 2012 at 11:20 AM, Jonathan Wakely wrote: > Creating the temp file yourself has the advantage you know what the > name is, whereas if GCC creates it you need to look for new files or > check timestamps to find what name it used. so we can have three options that I would suggest :

Re: bug report : -save-temps and stdin

2012-10-29 Thread Mike Dupont
On Mon, Oct 29, 2012 at 11:19 AM, Jonathan Wakely wrote: > On 29 October 2012 09:25, Mike Dupont wrote: >> Well in this case, what about a random temp file name? tmpfile ? >> something with the timestamp as well. >> I would like to have those files if possible. would that b

Re: bug report : -save-temps and stdin

2012-10-29 Thread Mike Dupont
Well in this case, what about a random temp file name? tmpfile ? something with the timestamp as well. I would like to have those files if possible. would that be acceptable? mike On Sun, Oct 28, 2012 at 6:40 PM, Joseph S. Myers wrote: > On Sun, 28 Oct 2012, Mike Dupont wrote: > >

bug report : -save-temps and stdin

2012-10-28 Thread Mike Dupont
using a very recent : gcc version 4.8.0 20121021 (experimental) (GCC) h4ck3rm1k3@gcc10:~/experiments/build/glibc$ echo "int x;" | g++ -save-temps -x c - cc1: error: unrecognized command line option ‘-.i’ this causes problems compiling glibc with -save-temps. is this known? should I report a bu

gcc master build problems

2012-10-20 Thread Mike Dupont
Hi there, on the gcc buildfarm : /home/h4ck3rm1k3/experiments/gcc-build/ I am having problems with a standard build of the gcc using the 4.5.1 compiler. 1. ./morestack.vis:1: Error: junk at end of line, first unrecognized character is `:' h4ck3rm1k3@gcc10:~/experiments/gcc-build/x86_64-unknown-li

Re: Proposed C++ optimization with big speed gains with big objects

2012-09-24 Thread Mike Dupont
Hi, I think what you want is a custom allocator : http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt04ch11.html http://www.boost.org/doc/libs/1_45_0/doc/html/interprocess/allocators_containers.html http://stackoverflow.com/questions/2439536/strategy-to-allocate-free-lots-of-small-objects hope t

Re: [OT] Control Flow Graph(CFG) into Abstract Syntax Tree(AST)

2012-09-14 Thread Mike Dupont
thanks for sharing, will check this out. mike On Fri, Sep 14, 2012 at 9:05 PM, James Courtier-Dutton wrote: > Hi, > > I know most compilers go from AST to CFG. > I am writing a decompiler, so I was wondering if anyone knew of any > documents describing how best to get from CFG to AST. > The decom

Re: The C++ conversion branch has been merged into trunk

2012-08-14 Thread Mike Dupont
to be clear, I have also tried in the distant past do some C++ compilation of the gcc. I had some ideas for making c++ interfaces to the classes and some code. Also for converting some macros into inline functions for type safety. mike On Wed, Aug 15, 2012 at 6:50 AM, Mike Dupont wrote

Re: The C++ conversion branch has been merged into trunk

2012-08-14 Thread Mike Dupont
Thats great, I have also tried in the distant past do so C++ compilation. Will have to get back on the bandwagon. mike On Wed, Aug 15, 2012 at 2:05 AM, Diego Novillo wrote: > > I have committed rev 190402, which merges the cxx-conversion branch into > trunk. Thanks to everyone who provided revie

Re: C Metaprogramming

2012-06-19 Thread Mike Dupont
Thats very interesting, thanks for sharing. mike On Tue, Jun 19, 2012 at 4:41 AM, Daniel Santos wrote: > Yes, my topic sounds crazy huh?  But you guys made it possible when you > started optimizing out constant function pointers. (Thank you!!) This > didn't mature to "full power" until 4.6.? (wor