zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: gcc problem with 64 bit integers
Date: Sat, 15 May 1999 15:24:29 +0200	[thread overview]
Message-ID: <9905151324.AA25833@ibmth.df.unipi.it> (raw)

I'm wrestling with what looks like a gcc 2.8.1 bug when trying to get the
large file support to work properly under SunOS 5.6.  The struct gmatch in
glob.c contains file sizes which need to be off_t, 64 bit integers
(i.e. long long) in this case.  The compiled code crashes when attempting
to assign to this,
   matchptr->size = buf.st_size;
(both are off_t) in insert().  Compiling without optimization doesn't help.
The native cc works without a problem.  I've tried using __attribute__
((align)) in various forms to get the members of struct gmatch aligned
correctly, but that doesn't seem to help.  It looks like it may be worse,
anyway, because even memcpy() doesn't seem to do the trick.  Any
suggestions for a workaround?  If gcc can't handle this, it makes the large
file support look distinctly dodgy.

My impression of looking at docs.sun.com is that LP64 is only supported if
the underlying operating system is 64-bit, i.e. there's no way of just
compiling zsh with 64-bit longs on an existing 32-bit system.

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


                 reply	other threads:[~1999-05-15 13:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=9905151324.AA25833@ibmth.df.unipi.it \
    --to=pws@ibmth.df.unipi.it \
    --cc=zsh-workers@sunsite.auc.dk \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).