From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28769 invoked by alias); 6 Dec 2006 20:28:09 -0000 Received: (qmail 28730 invoked by uid 48); 6 Dec 2006 20:27:59 -0000 Date: Wed, 06 Dec 2006 20:28:00 -0000 Subject: [Bug ada/30094] New: bogus use of CROSS_COMPILE in adaint.c X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "geoffk at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-12/txt/msg00521.txt.bz2 adaint.c contains several lines like #if defined (_WIN32) && ! defined (__vxworks) && ! defined (CROSS_COMPILE) which, although completely uncommented, appear to be trying to detect whether or not the system has an _tfopen function or an fopen function. The function is present on the target system independent of whether this file is being compiled on the target system or on, say, a linux system, so testing CROSS_COMPILE here is inappropriate. -- Summary: bogus use of CROSS_COMPILE in adaint.c Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: geoffk at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30094