summaryrefslogtreecommitdiff
path: root/gcc/fixinc.svr4
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-12-24 23:27:02 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-12-24 23:27:02 +0000
commitf30bea291600f432a6606838dc24be840cde37d9 (patch)
tree766fff76511b5020aba3b5d1582b81565c2022ab /gcc/fixinc.svr4
parent02ab8f48d80bc5da0c3f7fd17b77d7077e42dd1e (diff)
downloadgcc-f30bea291600f432a6606838dc24be840cde37d9.tar.gz
Don't change bitfield types to int.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2909 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc.svr4')
-rwxr-xr-xgcc/fixinc.svr414
1 files changed, 9 insertions, 5 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4
index 290067b7f03..9896f1b020b 100755
--- a/gcc/fixinc.svr4
+++ b/gcc/fixinc.svr4
@@ -152,6 +152,15 @@ while [ $# != 0 ]; do
# which isn't much of a reason. -- rms.
# /^[ ]*#[ ]*ident/d
+# This code makes Solaris SCSI fail, because it changes the
+# alignment within some critical structures. See <sys/scsi/impl/commands.h>.
+# s/u_char\([ ][ ]*[a-zA-Z0-9_][a-zA-Z0-9_]*[ ]*:[ ]*[0-9][0-9]*\)/u_int\1/
+# Disable these also, since they probably aren't safe either.
+# s/u_short\([ ][ ]*[a-zA-Z0-9_][a-zA-Z0-9_]*[ ]*:[ ]*[0-9][0-9]*\)/u_int\1/
+# s/ushort\([ ][ ]*[a-zA-Z0-9_][a-zA-Z0-9_]*[ ]*:[ ]*[0-9][0-9]*\)/u_int\1/
+# s/evcm_t\([ ][ ]*[a-zA-Z0-9_][a-zA-Z0-9_]*[ ]*:[ ]*[0-9][0-9]*\)/u_int\1/
+# s/Pbyte\([ ][ ]*[a-zA-Z0-9_][a-zA-Z0-9_]*[ ]*:[ ]*SEQSIZ\)/unsigned int\1/
+
# The change of u_char, etc, to u_int
# applies to bit fields.
sed -e '
@@ -173,11 +182,6 @@ while [ $# != 0 ]; do
/#[a-z]*if.*[ (]ns32000/ s/\([^_]\)ns32000/\1__ns32000__/g
/#[a-z]*if.*[ (]pyr/ s/\([^_]\)pyr/\1__pyr__/g
/#[a-z]*if.*[ (]is68k/ s/\([^_]\)is68k/\1__is68k__/g
- s/u_char\([ ][ ]*[a-zA-Z0-9_][a-zA-Z0-9_]*[ ]*:[ ]*[0-9][0-9]*\)/u_int\1/
- s/u_short\([ ][ ]*[a-zA-Z0-9_][a-zA-Z0-9_]*[ ]*:[ ]*[0-9][0-9]*\)/u_int\1/
- s/ushort\([ ][ ]*[a-zA-Z0-9_][a-zA-Z0-9_]*[ ]*:[ ]*[0-9][0-9]*\)/u_int\1/
- s/evcm_t\([ ][ ]*[a-zA-Z0-9_][a-zA-Z0-9_]*[ ]*:[ ]*[0-9][0-9]*\)/u_int\1/
- s/Pbyte\([ ][ ]*[a-zA-Z0-9_][a-zA-Z0-9_]*[ ]*:[ ]*SEQSIZ\)/unsigned int\1/
s/__STDC__ == 0/!defined (__STRICT_ANSI__)/g
s/__STDC__ != 0/defined (__STRICT_ANSI__)/g
s/__STDC__ - 0 == 0/!defined (__STRICT_ANSI__)/g