delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/05/06/10:39:49

Message-ID: <3EB7C498.1030004@inti.gov.ar>
Date: Tue, 06 May 2003 11:20:08 -0300
From: Salvador Eduardo Tropea <salvador AT inti DOT gov DOT ar>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130
X-Accept-Language: es-ar, es, en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT elta DOT co DOT il>
CC: djgpp-workers AT delorie DOT com
Subject: Re: 2.04 alpha success, small details
References: <3EB673E1 DOT 7000603 AT inti DOT gov DOT ar> <7458-Tue06May2003132411+0300-eliz AT elta DOT co DOT il>
In-Reply-To: <7458-Tue06May2003132411+0300-eliz@elta.co.il>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h46EKEc10704
Reply-To: djgpp-workers AT delorie DOT com

Eli Zaretskii wrote:

>>  I found that __attribute__((constructor)) doesn't work for
>>gcc 3.2.2 for C++ code
>>    
>>
>
>Does it work in C programs?
>  
>
Yes, it only works for C code. I taked a look at the generated assembler 
and gcc generates the constructor stuff only when compiling for C.
This isnīt a big problem because C++ have itīs own mechanisms to achieve 
the same, but it worked for 2.x and the docs doesnīt mention this fact, 
not at least in the attribute description.

SET

-- 
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set AT computer DOT org set AT ieee DOT org 
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013



- Raw text -


  webmaster     delorie software   privacy  
  Copyright Đ 2019   by DJ Delorie     Updated Jul 2019