public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/9959: __asm__ no longer accepts linebreaks
@ 2003-03-05 7:14 neil
0 siblings, 0 replies; 2+ messages in thread
From: neil @ 2003-03-05 7:14 UTC (permalink / raw)
To: bero, gcc-bugs, gcc-prs, nobody
Synopsis: __asm__ no longer accepts linebreaks
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Wed Mar 5 07:14:50 2003
State-Changed-Why:
Not a bug. Multiline string literals have been removed from the preprocessor, as documented and warned about previously.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9959
^ permalink raw reply [flat|nested] 2+ messages in thread
* c/9959: __asm__ no longer accepts linebreaks
@ 2003-03-05 2:56 bero
0 siblings, 0 replies; 2+ messages in thread
From: bero @ 2003-03-05 2:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 9959
>Category: c
>Synopsis: __asm__ no longer accepts linebreaks
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 05 02:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Bernhard Rosenkraenzer
>Release: gcc-3_3-branch as of 2003/03/05
>Organization:
>Environment:
Ark Linux Dockyard (Linux 2.4.21pre5, glibc 2.3.2)
>Description:
The following code used to work with older gcc versions, doesn't work with almost-3.3 anymore:
static unsigned char test[1024];
int main(int argc, char **argv)
{
__asm__ __volatile__ ("
call test");
}
Changing it into either
static unsigned char test[1024];
int main(int argc, char **argv)
{
__asm__ __volatile__ (" \
call test");
}
or
static unsigned char test[1024];
int main(int argc, char **argv)
{
__asm__ __volatile__ ("call test");
}
Works.
Intentional change, or bug?
>How-To-Repeat:
Try to compile the code above.
Results with gcc 3.3:
test.c:4:31: missing terminating " character
test.c: In function `main':
test.c:5: error: syntax error before "call"
test.c:5:34: missing terminating " character
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-05 7:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-05 7:14 c/9959: __asm__ no longer accepts linebreaks neil
-- strict thread matches above, loose matches on Subject: below --
2003-03-05 2:56 bero
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).