On Thu, 05 Mar 2009, Pritpal Bedi wrote:

Hi,

> > I've just verified with PellesC 4.50.15 and it generates wrong code
> > for above function. I'll change the order of instruction in this function
> > as some type of workaround for it but it should be reported to POCC
> > author.
> > It's serious bug.
> Can you show what should I report to Pelle?

below is self contained example:

best regards,
Przemek


/* compiled and linked by PellesC 4.50.15:
 *    pocc.exe -Ox test.c && polink.exe t.obj
 */

void * somefunc( void ) { return 0; }

void * func_ok( void )
{
   void ** gtHolder = ( void ** ) somefunc();

   if( gtHolder )
      return *gtHolder;
   else
      return 0;
}

void * func_gpf( void )
{
   void ** gtHolder = ( void ** ) somefunc();
   void * pGT = 0;

   if( gtHolder )
      pGT = *gtHolder;
   return pGT;
}

int main( void )
{
   func_ok();
   func_gpf();

   return 0;
}
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to