public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: john@calva.com
To: gcc-gnats@gcc.gnu.org
Subject: target/9877: fixincl makes a bad sys/byteorder.h on svr5 (UnixWare 7.1.1)
Date: Thu, 27 Feb 2003 14:46:00 -0000	[thread overview]
Message-ID: <20030227143627.8034.qmail@sources.redhat.com> (raw)


>Number:         9877
>Category:       target
>Synopsis:       fixincl makes a bad sys/byteorder.h on svr5 (UnixWare 7.1.1)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 27 14:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     John Hughes
>Release:        gcc-3.3 snapshot  gcc-20030224
>Organization:
>Environment:
UnixWare 7.1.1 (probably any svr4 based system)
>Description:
The sys/byteorder.h created by fixincl has multi-line
strings in an asm.  This is now treated as an error:

Reading specs from /u/local/new/lib/gcc-lib/i686-UnixWare7.1.1-sysv5/3.3/specs
Configured with: ../gcc-20030224/configure --host=i686-UnixWare7.1.1-sysv5 --prefix=/u/local/new --with-local_prefix=/u/local/new
Thread model: single
gcc version 3.3 20030224 (prerelease)
 /u/local/new/lib/gcc-lib/i686-UnixWare7.1.1-sysv5/3.3/cc1 -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 zz.c -quiet -dumpbase zz.c -auxbase zz -version -o /var/tmp//ccbIWxqM.s
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C version 3.3 20030224 (prerelease) (i686-UnixWare7.1.1-sysv5)
        compiled by GNU C version 3.3 20030224 (prerelease).
ignoring nonexistent directory "/u/local/new/i686-UnixWare7.1.1-sysv5/include"
#include "..." search starts here:
#include <...> search starts here:
 /u/local/new/include
 /u/local/new/lib/gcc-lib/i686-UnixWare7.1.1-sysv5/3.3/include
 /usr/include
End of search list.
In file included from zz.c:1:
/u/local/new/lib/gcc-lib/i686-UnixWare7.1.1-sysv5/3.3/include/sys/byteorder.h:59:12: missing terminating " character
In file included from zz.c:1:
/u/local/new/lib/gcc-lib/i686-UnixWare7.1.1-sysv5/3.3/include/sys/byteorder.h: In function `htonl':
/u/local/new/lib/gcc-lib/i686-UnixWare7.1.1-sysv5/3.3/include/sys/byteorder.h:60: error: syntax error before "ror"
/u/local/new/lib/gcc-lib/i686-UnixWare7.1.1-sysv5/3.3/include/sys/byteorder.h:61:48: missing terminating " character

>How-To-Repeat:

>Fix:
This patch fixes the problem:

--- gcc-20030224/gcc/fixinc/fixincl.x.orig      Fri Feb 14 05:34:35 2003
+++ gcc-20030224/gcc/fixinc/fixincl.x   Thu Feb 27 14:56:38 2003
@@ -393,8 +393,8 @@
 htonl (unsigned long __arg)\n\
 {\n\
   register unsigned long __result;\n\n\
-  __asm__ (\"xchg%B0 %b0,%h0\n\
-\tror%L0 $16,%0\n\
+  __asm__ (\"xchg%B0 %b0,%h0\\n\\\n\
+\tror%L0 $16,%0\\n\\\n\
 \txchg%B0 %b0,%h0\" : \"=q\" (__result) : \"0\" (__arg));\n\
   return __result;\n\
 }\n\n\
>Release-Note:
>Audit-Trail:
>Unformatted:


                 reply	other threads:[~2003-02-27 14:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030227143627.8034.qmail@sources.redhat.com \
    --to=john@calva.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).