This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Support for Pascal strings -- Take 3
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: Support for Pascal strings -- Take 3
- From: Ziemowit Laski <zlaski at apple dot com>
- Date: Mon, 2 Jul 2001 16:55:42 -0700
Ok, take 3 is a bit less lean than take 2 (though just as mean),
due to fleshing out of documentation and test cases. Also, I'm
attaching the diff rather than pasting it in, to preserve all
the tabs. Please let me know if you're unable to open the
attachment.
2001-07-02 Ziemowit Laski <zlaski@apple.com>
* gcc/c-common.c: Support for Pascal string concatenation
(combine_string)
* gcc/c-common.h: Add CTI_PASCAL_STRING_TYPE, pascal_string_type_node
* gcc/c-lex.c: Creation of Pascal string literals (lex_string)
* gcc/c-typeck.c: Distinguish Pascal strings from wide strings
(digest_init)
* gcc/flags.h: Add 'flag_pascal_strings' extern decl
* gcc/toplev.c: Add '-fpascal-strings' command-line option
* gcc/cp/decl2.c: Add '-fpascal-strings' command-line option
* gcc/cp/typeck2.c: Distinguish Pascal strings from wide strings
(digest_init)
* gcc/doc/extend.texi: Add description of '-fpascal-strings'
* gcc/doc/invoke.texi: Add description of '-fpascal-strings'
* gcc/testsuite/g++.dg/pascal-strings-1.C: New C++ test case
* gcc/testsuite/g++.dg/pascal-strings-2.C: New C++ test case
* gcc/testsuite/gcc.dg/pascal-strings-1.c: New C test case
* gcc/testsuite/gcc.dg/pascal-strings-2.c: New C test case
gcc3_pascal_strings.diff
--------------------------------------------------------------
Ziemowit Laski Apple Computer, Inc.
zlaski@apple.com 2 Infinite Loop, MS 302-4SN
+1.408.974.6229 Fax .1344 Cupertino, CA 95014-2085