summaryrefslogtreecommitdiffstats
path: root/gcc/cpptrad.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-20 20:34:19 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-20 20:34:19 +0000
commit17df7fec6c741af0a6acf8a1760d66e4e65cef94 (patch)
treea0323cce9b4103b2363bc451d6e3a03652a528b1 /gcc/cpptrad.c
parent389e98bf418eceb5235b520f6ce004c8c729416c (diff)
downloadppe42-gcc-17df7fec6c741af0a6acf8a1760d66e4e65cef94.tar.gz
ppe42-gcc-17df7fec6c741af0a6acf8a1760d66e4e65cef94.zip
* cppexp.c (cpp_interpret_integer): Don't force traditional
numbers to be unsigned. * cpplib.c (prepare_directive_trad): Set line number for diagnostics. * cpptrad.c (scan_out_logical_line): Continue scanning out at start of buffer. * gcc.c (trad_capable_cpp): Use cc1 always. f: * lang-specs.h: Use cc1 for traditional preprocessing. testsuite: * gcc.dg/cpp/assert_trad1.c, gcc.dg/cpp/assert_trad2.c, gcc.dg/cpp/assert_trad3.c, gcc.dg/cpp/defined_trad.c, gcc.dg/cpp/hash2.c, gcc.dg/cpp/tr-define.c, gcc.dg/cpp/tr-direct.c, gcc.dg/cpp/tr-sign.c, gcc.dg/cpp/tr-str.c, gcc.dg/cpp/uchar-2.c: Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54856 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpptrad.c')
-rw-r--r--gcc/cpptrad.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cpptrad.c b/gcc/cpptrad.c
index 82eeee52026..74976dbe231 100644
--- a/gcc/cpptrad.c
+++ b/gcc/cpptrad.c
@@ -38,7 +38,7 @@ struct block
};
#define BLOCK_HEADER_LEN offsetof (struct block, text)
-#define BLOCK_LEN(TEXT_LEN) CPP_ALIGN (BLOCK_HEADER_LEN + TEXT_LEN)
+#define BLOCK_LEN(TEXT_LEN) CPP_ALIGN (BLOCK_HEADER_LEN + (TEXT_LEN))
/* Structure holding information about a function-like macro
invocation. */
@@ -602,8 +602,9 @@ scan_out_logical_line (pfile, macro)
{
/* Found a parameter in the replacement text of a
#define. Remove its name from the output. */
- out = pfile->out.cur = out_start;
+ pfile->out.cur = out_start;
save_replacement_text (pfile, macro, node->arg_index);
+ out = pfile->out.base;
}
else if (lex_state == ls_hash)
{
OpenPOWER on IntegriCloud