This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/60652] New: System.OS_Constants CRTSCTS


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]