public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* (gas -- compile time error) dwarf2dbg.c and long long
@ 1999-07-15 10:05 Donn Terry
  1999-07-15 11:29 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Donn Terry @ 1999-07-15 10:05 UTC (permalink / raw)
  To: binutils

Since April, the file dwarf2dbg.c has been introduced, and appears
to always be being built (altho not needed in my case).

It contains a cast to (long long).  This causes it to fail the
build on Interix, which is a pretty generic build of gas, but using
the MS compiler, which doesn't understand long long.

The obvious quick-and-dirty workarounds are already in place, but
not knowing the goals of that change, I don't know what the right
fix to it might be: turn off building the file, conditional
compilation of the line (a %llx is also involved) or finding
the right typedef to cast to instead of long long.  (I don't build
in 64 bit mode, so the obvious ones aren't available.)

This is in the 0706 snapshot (for logistical reasons I'm a bit
behind) so it may already have been fixed.

Donn
-- 

===================================================
Donn Terry                  mailto:donn@interix.com
Softway Systems, Inc.        http://www.interix.com
2850 McClelland Dr, Ste. 1800   Ft.Collins CO 80525
Tel: +1-970-204-9900           Fax: +1-970-204-9951
===================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: (gas -- compile time error) dwarf2dbg.c and long long
  1999-07-15 10:05 (gas -- compile time error) dwarf2dbg.c and long long Donn Terry
@ 1999-07-15 11:29 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 1999-07-15 11:29 UTC (permalink / raw)
  To: donn; +Cc: binutils

   Date: Thu, 15 Jul 1999 10:58:13 -0600
   From: Donn Terry <donn@interix.com>

   Since April, the file dwarf2dbg.c has been introduced, and appears
   to always be being built (altho not needed in my case).

   It contains a cast to (long long).  This causes it to fail the
   build on Interix, which is a pretty generic build of gas, but using
   the MS compiler, which doesn't understand long long.

   The obvious quick-and-dirty workarounds are already in place, but
   not knowing the goals of that change, I don't know what the right
   fix to it might be: turn off building the file, conditional
   compilation of the line (a %llx is also involved) or finding
   the right typedef to cast to instead of long long.  (I don't build
   in 64 bit mode, so the obvious ones aren't available.)

The (long long) occurs in a debugging print statement, so I checked in
the obvious quick and dirty patch to permit compilation to succeed.

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-07-15 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-15 10:05 (gas -- compile time error) dwarf2dbg.c and long long Donn Terry
1999-07-15 11:29 ` Ian Lance Taylor

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).