public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: kkaempf@progis.de
To: egcs@cygnus.com
Subject: genrecog from current cvs tree fails on openVMS/Alpha
Date: Tue, 17 Mar 1998 08:42:00 -0000	[thread overview]
Message-ID: <19980317161936.22817.qmail@progis.de> (raw)

genrecog from the current snapshot fails on openVMS/Alpha with

	genrecog: Two actions at one point in tree
	after 133 definitions

It took some time for me to figure this one out, it was the following
change that broke genrtl on openVMS/Alpha

Thu Jan 29 10:12:27 1998  Jeffrey A Law  (law@cygnus.com)

        * configure.in: Check for atoq and atoll.
        * rtl.c (read_rtx): Use HAVE_ATOLL and HAVE_ATOQ to select the
        proper routine for converting ascii into long long values.

Since HOST_BITS_PER_INT == HOST_BITS_PER_LONG == 32 and HOST_BITS_PER_WIDE_INT == 64
and neither HAVE_ATOLL nor HAVE_ATOQ are defined (VMS can't run configure!),
tmp_wide wasn't assigned a value in rtl.c:765

A correct fix for the vms-alpha configuration is adding HAVE_ATOLL to alpha/xm-vms.h
but this bug might break other targets also. I would add the following fix which
ensures tmp_wide gets a value:

*** rtl.c.orig  Tue Mar 17 17:07:13 1998
--- rtl.c       Tue Mar 17 17:08:43 1998
***************
*** 773,778 ****
--- 773,780 ----
  #else
  #ifdef HAVE_ATOQ
        tmp_wide = atoq (tmp_char);
+ #else
+       tmp_wide = (HOST_WIDE_INT)atol (tmp_char);
  #endif
  #endif
  #endif

Comments anyone ?

-- 
proGIS Software                 E-Mail: kkaempf@progis.de
Dipl.-Inform. Klaus K"ampf      Fax:    0241-47067-29
Jakobstr. 117                   Voice:  0241-47067-11
D-52064 Aachen                  WWW:	http://www.progis.de


             reply	other threads:[~1998-03-17  8:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-17  8:42 kkaempf [this message]
1998-03-18 14:08 ` Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19980317161936.22817.qmail@progis.de \
    --to=kkaempf@progis.de \
    --cc=egcs@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).