From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30499 invoked by alias); 27 Jun 2005 18:50:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 30475 invoked by uid 48); 27 Jun 2005 18:50:22 -0000 Date: Mon, 27 Jun 2005 18:50:00 -0000 Message-ID: <20050627185022.30474.qmail@sourceware.org> From: "p dot obry at wanadoo dot fr" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050317091946.20515.sbellon@sbellon.de> References: <20050317091946.20515.sbellon@sbellon.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug ada/20515] "stdcall" imports are not handled correctly X-Bugzilla-Reason: CC X-SW-Source: 2005-06/txt/msg03274.txt.bz2 List-Id: ------- Additional Comments From p dot obry at wanadoo dot fr 2005-06-27 18:50 ------- Danny, (In reply to comment #10) > The patch that was committed to fix this is wrong. > > #ifdef TARGET_DLLIMPORT_DECL_ATTRIBUTES is always true. It is defined to 0 for > non-dll targets in defaults.h. I see! Would #if instead of #ifdef fix the problem. I'm not a cross expert, so this is why I got this wrong. > Why not make this a runtime switch as suggested earlier, rather than a > preprocessor switch? Maybe it is better to have this checked statically if possible. What do you think ? Pascal. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20515