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]

c/9959: __asm__ no longer accepts linebreaks


>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:


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