EricFisher 发表于 2010-04-14 16:55

nested function

发现open64不支持nested function。

源码如下:    if (CURRENT_SYMTAB > 1)
      ErrMsg (EC_Unimplemented_Feature, "Nested functions");验证如下:$ cat nested.c
#include <stdio.h>

int
main (void)
{
void
func (void)
{
    printf ("hello\n");
}

func ();

return 0;
}
用gcc可以编译通过,并正确运行。用open64编译会报:

### Compiler Error during Writing WHIRL file phase:
### Nested functions not implemented

prolj 发表于 2010-04-14 21:06

有人又有发paper的机会了。
页: [1]
查看完整版本: nested function