This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/60652] New: System.OS_Constants CRTSCTS
- From: "robert.samuelsson at sscspace dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Mar 2014 14:02:49 +0000
- Subject: [Bug ada/60652] New: System.OS_Constants CRTSCTS
- Auto-submitted: auto-generated
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.