From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17753 invoked by alias); 11 Jul 2002 16:46:56 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 17735 invoked from network); 11 Jul 2002 16:46:52 -0000 Received: from unknown (HELO atlrel9.hp.com) (156.153.255.214) by sources.redhat.com with SMTP; 11 Jul 2002 16:46:52 -0000 Received: from hpda.cup.hp.com (cup.hp.com [15.75.208.53]) by atlrel9.hp.com (Postfix) with ESMTP id E87C2E00D6B; Thu, 11 Jul 2002 12:46:47 -0400 (EDT) Received: from hpsje.cup.hp.com (hpsje.cup.hp.com [15.244.96.221]) by hpda.cup.hp.com (Postfix) with ESMTP id 0DB9C62D1; Thu, 11 Jul 2002 09:46:47 -0700 (PDT) Received: (from sje@localhost) by hpsje.cup.hp.com (8.8.6 (PHNE_17190)/8.7.3 TIS Messaging 5.0) id JAA05640; Thu, 11 Jul 2002 09:46:46 -0700 (PDT) Date: Thu, 11 Jul 2002 13:25:00 -0000 From: Steve Ellcey Message-Id: <200207111646.JAA05640@hpsje.cup.hp.com> To: neil@daikokuya.co.uk, dave@hiauly1.hia.nrc.ca, zack@codesourcery.com, law@redhat.com Cc: gcc@gcc.gnu.org Subject: Re: Bootstrapping hppa64? CPP problem X-SW-Source: 2002-07/txt/msg00502.txt.bz2 Hm, curiouser and curiouser. Walking through with the debugger, I stop in _cpp_parse_expr at line 739 just before calling eval_token. I print 'token->val.node' and I see 0x80000001000c6030. I then step into eval_token and token->val.node is 0x5f696e5f6e756c6c. In fact if I print out token before the call to eval_token, I see: (gdb) p *token $1 = {line = 19, col = 6, type = CPP_NAME, flags = 0 '\000', val = { node = 0x80000001000c6030, source = 0x80000001000c6030, str = { len = 2147483649, text = 0x0}, arg_no = 2147483649, c = 128 '\200'}} After the call I see: (gdb) p *token $2 = {line = 1734702175, col = 24948, type = 116, flags = 114 'r', val = { node = 0x5f696e5f6e756c6c, source = 0x5f696e5f6e756c6c, str = { len = 1600745055, text = 0x69666965645f6272 }, arg_no = 1600745055, c = 95 '_'}} Which looks like complete junk. So the argument token is not being passed correctly to eval_token. The first argument (pfile) looks OK after getting into eval_token, it has the address 0x800000010007b450 before and after the call but token gets changed from 0x800000010007b8d8 before the call to 0x40000000000633e0 inside eval_token which is wrong. I just rebuilt gcc with the HP compiler instead of using a 3.0.2 based GCC which I had been using and that seems to be behaving correctly so I think the basic problem here is a bug in my hppa64 GCC (3.0.2) that I am using to build the latest GCC with. I am going to rebuild the latest sources using HP C and then use that to bootstrap GCC and see if that works better. Steve Ellcey sje@cup.hp.com