With this file (that's a string of 512 spaces):
main()
{
__asm("
");
}
gcc -o asmloser asmloser.c -ansi -pedantic
asmloser.c: In function main:
asmloser.c:3: warning: string length 512 is greater than the length 509 ISO
C90 compilers are required to support
Since we are inside __asm here and that circumvents -pedantic, the pedantic
warning should not apply to the string inside, which isn't even a C string
constant, it's just GCC extension syntax.
--
Summary: -pedantic warning about string inside __asm
Product: gcc
Version: 4.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: roland at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45123