From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1315 invoked by alias); 8 May 2003 10:46:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 1266 invoked by uid 71); 8 May 2003 10:46:01 -0000 Date: Thu, 08 May 2003 10:46:00 -0000 Message-ID: <20030508104601.1264.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Bruno Haible Subject: Re: bootstrap/7312: bootstrap failure due to invalid use of errno Reply-To: Bruno Haible X-SW-Source: 2003-05/txt/msg00593.txt.bz2 List-Id: The following reply was made to PR bootstrap/7312; it has been noted by GNATS. From: Bruno Haible To: Dara Hazeghi Cc: gcc-gnats@gcc.gnu.org Subject: Re: bootstrap/7312: bootstrap failure due to invalid use of errno Date: Thu, 8 May 2003 12:43:58 +0200 (CEST) Dara Hazeghi writes: > could the submitter of this bug please confirm whether this problem > still occurs with a current version of gcc (ie 3.2.3). The bug is still there, as you can see from a look at the gcc-3.2.3 source code: _cpp_simplify_pathname (name); node = splay_tree_lookup (pfile->all_include_files, (splay_tree_key) name); if (node) free (name); else { file = xcnew (struct include_file); file->name = name; file->err_no = errno; xcnew calls malloc and therefore can clobber errno. Bruno