No integral promotions when calling library function?

2010-02-17 Thread Jie Zhang
We are trying to add a 16bit integer division library function for bfin port. I just found GCC didn't do integral promotions when calling library function. For example, in function foo, I can assume both arguments are zero extended from unsigned short to unsigned int. extern unsigned short foo (u

Re: AC_CHECK_DECLS(basename) (Was: Re: Ping: patches required for --enable-build-with-cxx)

2010-02-17 Thread Joern Rennecke
Quoting Paolo Bonzini : Maybe we can use this in AC_CHECK_DECLS instead of having a new separate macro.  If there is a parenthesis in the name call the new version, if there is none, call the old one. You shouldn't need to keep the old version around, it's supposed to be a drop-in replacement.

Re: AC_CHECK_DECLS(basename) (Was: Re: Ping: patches required for --enable-build-with-cxx)

2010-02-17 Thread Paolo Bonzini
>> Maybe we can use this in AC_CHECK_DECLS instead of having a new >> separate macro.  If there is a parenthesis in the name call the new >> version, if there is none, call the old one. > > You shouldn't need to keep the old version around, it's supposed to be > a drop-in replacement.  The reason I

Re: Segfault inserting a pass

2010-02-17 Thread Richard Guenther
On Wed, Feb 17, 2010 at 8:00 PM, Saleel Kudchadker wrote: > Hi I am working on calling the instrument function before every > function call automatically. I tried inserting this pass which would > add my function to every edge > > // > > static unsigned int

Re: What's the policy for bug priorities, again

2010-02-17 Thread Richard Guenther
On Wed, Feb 17, 2010 at 7:46 PM, Mark Mitchell wrote: > Steven Bosscher wrote: > >> Mark just made an ICE in the compiler with non-default options a P1 >> bug for GCC 4.5 (xf. >> http://gcc.gnu.org/ml/gcc-bugs/2010-02/msg01695.html). >> >> Can someone please explain why this kind of bug should be

Segfault inserting a pass

2010-02-17 Thread Saleel Kudchadker
Hi I am working on calling the instrument function before every function call automatically. I tried inserting this pass which would add my function to every edge // static unsigned int spmm_insert(void){ struct cgraph_edge *e; struct cgraph_node *nod

Re: What's the policy for bug priorities, again

2010-02-17 Thread Mark Mitchell
Steven Bosscher wrote: > Mark just made an ICE in the compiler with non-default options a P1 > bug for GCC 4.5 (xf. > http://gcc.gnu.org/ml/gcc-bugs/2010-02/msg01695.html). > > Can someone please explain why this kind of bug should be of > release-blocking priority? As I wrote in the PR, I want

What's the policy for bug priorities, again

2010-02-17 Thread Steven Bosscher
Hi, Mark just made an ICE in the compiler with non-default options a P1 bug for GCC 4.5 (xf. http://gcc.gnu.org/ml/gcc-bugs/2010-02/msg01695.html). Can someone please explain why this kind of bug should be of release-blocking priority? Thanks, Ciao! Steven

Re: AC_CHECK_DECLS(basename) (Was: Re: Ping: patches required for --enable-build-with-cxx)

2010-02-17 Thread Joern Rennecke
Quoting Paolo Bonzini : Maybe we can use this in AC_CHECK_DECLS instead of having a new separate macro. If there is a parenthesis in the name call the new version, if there is none, call the old one. You shouldn't need to keep the old version around, it's supposed to be a drop-in replacement.

Re: AC_CHECK_DECLS(basename) (Was: Re: Ping: patches required for --enable-build-with-cxx)

2010-02-17 Thread Paolo Bonzini
On 02/17/2010 04:41 PM, Joern Rennecke wrote: Quoting Ralf Wildenhues : sed alternation \| is not portable. I've replaced it now with a pair of substitutions. I also fixed the ',' substitution to give yield on opening bracket for the next cast, and to apply for all commas. + $[]as_decl_type

Re: AC_CHECK_DECLS(basename) (Was: Re: Ping: patches required for --enable-build-with-cxx)

2010-02-17 Thread Joern Rennecke
Quoting Ralf Wildenhues : sed alternation \| is not portable. I've replaced it now with a pair of substitutions. I also fixed the ',' substitution to give yield on opening bracket for the next cast, and to apply for all commas. + $[]as_decl_type What is this variable? It doesn't seem to

Re: parse tree

2010-02-17 Thread Andrew Haley
On 02/17/2010 04:50 AM, dib.cool...@gmail.com wrote: > hi... > I am a student of b.sc first yr in comp.science > can you tell me > > which parsing technique is used in ANSI c language and in gcc? A hand-written recursive descent parser. It's in gcc/c-parse.c. > and how the parse tree is ge

Заставь власть служить народу!

2010-02-17 Thread dmitiy . obuhov
Здравствуйте! Ваш знакомый Обухов Д.В dmitiy.obu...@gmail.com, предлагает вам ознакомиться с идеей ответственности избираемых народом Президента и депутатов, смысл которой в следующем: поскольку единственным источником власти в России является её народ (ст.3 Конституции РФ), а ответственности б