Re: gcc4.1.2 and 4.3.2 has different default behavior

2011-03-08 Thread Ian Lance Taylor
Yixuan Huang writes: > I have encountered one issue when write a simple test code. > #inlcude > int main{ > const char* str = ""; > std::cout<<"str len: "< return 0; > } > > If I compile on gcc version 4.1.2 20070115 (SUSE Linux), it can be > compiled successfully. Otherwise, on gcc ver

Re: debug & trace printing from GCC plugins (& MELT extensions)

2011-03-08 Thread Basile Starynkevitch
On Tue, 08 Mar 2011 21:07:39 + Dave Korn wrote: > On 07/03/2011 15:39, Basile Starynkevitch wrote: > > > So please accept (at least temporily) the usefulness of debug & trace > > printing. > > > > My question then is how to implement it nicely? > > > And I don't know if debug printing shou

gcc4.1.2 and 4.3.2 has different default behavior

2011-03-08 Thread Yixuan Huang
Hello All, I have encountered one issue when write a simple test code. #inlcude int main{ const char* str = ""; std::cout<<"str len: "<

gcc-4.4-20110308 is now available

2011-03-08 Thread gccadmin
Snapshot gcc-4.4-20110308 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.4-20110308/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.4 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

Re: Why IRA stores in frame, not in callee-saved reg?

2011-03-08 Thread Vladimir Makarov
On 03/08/2011 06:36 AM, Georg-Johann Lay wrote: Georg-Johann Lay schrieb: In current trunk (r170704), 4.4-branch and 4.5-branch I observe the following optimization issue in IRA: It saves regs in the frame instead of in callee-saved registers which would be much smarter. In the following C sour

Re: debug & trace printing from GCC plugins (& MELT extensions)

2011-03-08 Thread Dave Korn
On 07/03/2011 15:39, Basile Starynkevitch wrote: > So please accept (at least temporily) the usefulness of debug & trace > printing. > > My question then is how to implement it nicely? > And I don't know if debug printing should go to stdout or to stderr. MELT is for writing new passes, right

Re: Why IRA stores in frame, not in callee-saved reg?

2011-03-08 Thread Jeff Law
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/08/11 04:36, Georg-Johann Lay wrote: > > IRA doues not take into account costs implied by generating new stack > slots and setting up frame pointer. AFAIK there is no hook to > influence that. How can a target describe costs generated by settin

Re: __builtin_clzll and uintmax_t

2011-03-08 Thread Joern Rennecke
Quoting Jakub Jelinek : On Sun, Mar 06, 2011 at 09:56:52AM +0100, Marc Glisse wrote: >uintmax_t is the largest of the standard unsigned C types, so it cannot be larger than unsigned long long. That's a gcc property then. The C99 standard only guarantees that uintmax_t is at least as large a

Re: Why IRA stores in frame, not in callee-saved reg?

2011-03-08 Thread Georg-Johann Lay
Georg-Johann Lay schrieb: > In current trunk (r170704), 4.4-branch and 4.5-branch I observe the > following optimization issue in IRA: It saves regs in the frame > instead of in callee-saved registers which would be much smarter. > > In the following C source, foo2 is compiled as desired (push/pop

Re: gengtype state & srcdir???

2011-03-08 Thread Laurynas Biveinis
2011/3/7 Basile Starynkevitch : > However, some source files considered by gengtype are outside of $(srcdir) > because they are somewhere else in the GCC source tree. > So most of the source files considered by gengtype are indeed in the > $(srcdir) of the gcc/Makefile.in that is in the gcc/ sub