public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/60652] New: System.OS_Constants CRTSCTS
@ 2014-03-25 14:02 robert.samuelsson at sscspace dot com
  2014-07-29 15:14 ` [Bug ada/60652] " charlet at gcc dot gnu.org
  2014-07-29 16:02 ` charlet at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: robert.samuelsson at sscspace dot com @ 2014-03-25 14:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60652

            Bug ID: 60652
           Summary: System.OS_Constants CRTSCTS
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: robert.samuelsson at sscspace dot com

The value of CRTSCTS in adainclude/s-oscons.ads is different to the value i
have in /usr/include/bits/termios.h on my Linux system.

adainclude/s-oscons.ads
  CRTSCTS : constant := 4294967295; -- Output hw flow control

  Hex: FFFF FFFF
  Dec: 4294967295
  Oct: 37777777777
  Bin: 11111111 11111111 11111111 11111111 (looks more like a mask than a flag)

bits/termios.h
  #define CRTSCTS 020000000000 /* flow control */

  Hex: 8000 0000
  Dec: 2147483648
  Oct: 20000000000
  Bin: 10000000 00000000 00000000 00000000 (ah, a bit-flag as expected) 

So I suspect there may be a problem with the autogenerator and octal numbers. I
do not know if any other generated constants have similar problems.


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

end of thread, other threads:[~2014-07-29 16:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-25 14:02 [Bug ada/60652] New: System.OS_Constants CRTSCTS robert.samuelsson at sscspace dot com
2014-07-29 15:14 ` [Bug ada/60652] " charlet at gcc dot gnu.org
2014-07-29 16:02 ` charlet at gcc dot gnu.org

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