Received: by oss.sgi.com id ; Thu, 22 Feb 2001 17:45:13 -0800 Received: from [38.170.141.29] ([38.170.141.29]:49655 "EHLO heart.hq.tensilica.com") by oss.sgi.com with ESMTP id ; Thu, 22 Feb 2001 17:45:06 -0800 Received: (from goodwin@localhost) by heart.hq.tensilica.com (8.9.3/8.9.3) id RAA07239; Thu, 22 Feb 2001 17:45:06 -0800 X-Authentication-Warning: heart.hq.tensilica.com: goodwin set sender to goodwin@tensilica.com using -f From: David Goodwin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14997.49313.943861.677839@heart.hq.tensilica.com> Date: Thu, 22 Feb 2001 17:45:05 -0800 (PST) To: pro64-support@oss.sgi.com Subject: unnecessary symbol definitions in C++ X-Mailer: VM 6.75 under Emacs 20.5.1 Reply-to: goodwin@tensilica.com Sender: owner-pro64-support@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;pro64-support-outgoing I've looked at this some, but I'm not having any luck fixing it. sgiCC generates unnecessary definitions of __FUNCTION__ and __PRETTY_FUNCTION__. An example that shows this behavior is attached. WFE_Initialize_Decl claims it ignores unnecessary declarations by checking DECL_IGNORED_P, but that doesn't seem to work. > cat hello.cc #include int main () { printf("Hello World\n"); } > sgiCC -v SGIcc Compilers: Version 0.01.0-12 > sgiCC -O2 hello.cc -S > cat hello.s // /usr/lib/gcc-lib/ia64-sgi-linux/sgicc-1.0/be::0.01.0-12 //----------------------------------------------------------- // Compiling hello.cc (/tmp/ccI.XOud7p) //----------------------------------------------------------- //----------------------------------------------------------- // Options: //----------------------------------------------------------- // Target:Itanium, ISA:ISA_1, Pointer Size:64 // -O2 (Optimization level) // -g0 (Debug level) // -m1 (Report warnings) //----------------------------------------------------------- .section .text, "ax", "progbits" .align 16 .section .rodata, "a", "progbits" .align 8 .section .sbss, "wa", "nobits" .align 1 .section .bss, "wa", "nobits" .align 1 .section .sbss .org 0x0 .align 0 .type __func___82, @object .size __func___82, 1 __func___82: // 0x0 .skip 1 .org 0x1 .align 0 .type __FUNCTION___84, @object .size __FUNCTION___84, 1 __FUNCTION___84: // 0x1 .skip 1 .section .bss .org 0x0 .align 0 .type __PRETTY_FUNCTION___83, @object .size __PRETTY_FUNCTION___83, 10 __PRETTY_FUNCTION___83: // 0x0 .skip 10 .section .text // Program Unit: main .proc main# .global main# main#: // 0x0 .file 1 "/usr/local/home/goodwin/hello.cc" .loc 1 5 0 // 1 #include // 2 // 3 int // 4 main () // 5 { .BB1_main: // 0x0 // ...