Re: [ARM] Why MI thunks are always implemented in ARM code?

2008-05-23 Thread Doug Kwan ()
2008/5/23 Paul Brook <[EMAIL PROTECTED]>: > Recent gcc is capable of generating pure Thumb thunks (and always does so for > Thumb-2). I noticed that in top-of-trunk but I am working thumb, not thumb2. > Thumb branches have extremely limited range, and you can't clobber any low > registers. A co

[ARM] Why MI thunks are always implemented in ARM code?

2008-05-23 Thread Doug Kwan ()
I saw that MI thunks are always issued in ARM mode. Is there a specific reason? I browse the EABI and its supplement and there is no mentioning of how thunks are implemented. I think I can replace a 20-byte ARM MI thunk with a 4 bytes THUMB equivalent when the thunkee is also in THUMB mode. Is th

Re: [tuples] Tuples branch frozen

2008-03-28 Thread Doug Kwan ()
Done. Fix commited to 133690. I am using the gcc 4.0.3 configure for i486-linux-gnu. -Doug 2008/3/28 Diego Novillo <[EMAIL PROTECTED]>: > On Fri, Mar 28, 2008 at 13:30, Doug Kwan (關振德) <[EMAIL PROTECTED]> wrote: > > I got a new breakage after updating to rev 133687 5 minut

Re: [tuples] Tuples branch frozen

2008-03-28 Thread Doug Kwan ()
I got a new breakage after updating to rev 133687 5 minutes ago. :-( gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Werror -Wno-return-type -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../

Re: C++ FE question: When is CLASSTYPE_VBASECLASSES valid?

2008-03-20 Thread Doug Kwan ()
Thanks Mark. I am using classes after they are defined. So it should be okay for me. -Doug 2008/3/19 Mark Mitchell <[EMAIL PROTECTED]>: > > Doug Kwan (關振德) wrote: > > > I have a question about the validity of CLASSTYPE_VBASECLASSES. > > Due to templates, it i

C++ FE question: When is CLASSTYPE_VBASECLASSES valid?

2008-03-06 Thread Doug Kwan ()
Hi, I have a question about the validity of CLASSTYPE_VBASECLASSES. Due to templates, it is not possible to know if a class has virtual bases or not until the class is fully instantiated. Is checking processing_template_decl sufficient to guarantee that CLASSTYPE_VBASECLASSES is valid? Thank

Re: Adding new dwarf encoding formats for complex integers

2007-12-14 Thread Doug Kwan ()
2:30:36PM -0800, Doug Kwan (關振德) wrote: > > Is there anything I need to do in addition to changing gcc? Are > > there people I should talk to? And what documentation should be > > updated? Currently gdb (I checked 6.7) does not support complex > > integer properly. So it ne

Adding new dwarf encoding formats for complex integers

2007-12-14 Thread Doug Kwan ()
Hi, I am working on the gcc LTO project and I found that gcc does not generate sufficient debugging information for complex integer types. Currently gcc uses encoding DW_ATE_lo_user ( 0x80) for complex integer types but that 1) clashes with an HP extension and 2) does not distinguish between c