This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
how multi-line strings handled in gcc-4.0.0?
- From: cyclops <cyclops64 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 25 May 2005 22:11:40 -0400
- Subject: how multi-line strings handled in gcc-4.0.0?
- Reply-to: cyclops <cyclops64 at gmail dot com>
Dear all,
We have ported gcc-3.2.3 to our target machine successfully about one year ago.
Now we are trying to upgrade it from 3.2.3 to 4.0.0.
I found that some files like cpplex.c disappeared from 4.0.0. (Maybe
in earlier version, i do not know)
The thing is in 3.2.3, when compile code like
__asm__ ("
.set noat
mov r5,%0
mov r8,%1
mov r9,%2
mov r10,%3
svc
.set at"
:
: "r"(SVC_LSEEK), "r"(file), "r"(ptr), "r"(dir)
: "r5", "r8", "r9", "r10"
);
It only gives an warning: "warning: multi-line string literals are
deprecated". The code is still generated correctly.
However, in gcc-4.0.0, it treats the same piece code as error:
"error: missing terminating " character"
I know this problem can be solved by add "\" at the end of each line.
However, we have a lot of code written in that way, we may not want to
change them all. Is there a way to make gcc-4.0.0 to treat those
multi-line strings as gcc-3.2.3 did?
Thanks very much!
Regards,
zeal