On Mon, 2010-11-08 at 14:55 +0800, Li Shengmei wrote: > Hi, all > I want to add a new pragma option in Open64. I want to rename the > functions' name with new names. > Such as, #pragma ("old_func_name", "new_func_name") > What information can I learn to achieve it? I am not so familiar with > open64. > If I add the pragma successfully, are the "new_func_name" found in WN? > > Thanks > May
Is this something that you want to match an existing compiler? For example GCC supports redefine_extname and extern_prefix pragmas (see http://gcc.gnu.org/onlinedocs/gcc/Symbol_002dRenaming-Pragmas.html#Symbol_002dRenaming-Pragmas) though the prefered way to change the assembly language name of a function is with the 'asm' keyword (http://gcc.gnu.org/onlinedocs/gcc/Asm-Labels.html#Asm-Labels). These GCC features should work already in Open64 since Open64 uses the GCC front-end. But in all these cases the source code always refers to the old_func_name and it is only down at the assembly language level that you would see new_func_name. That may not be what you are looking for. Steve Ellcey s...@cup.hp.com ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel