Commit df480464 authored by simonmar's avatar simonmar
Browse files

[project @ 2000-07-06 15:43:28 by simonmar]

A string constant block can consist of multiple .string/.ascii
directives.  The sparc-specific code in this file already handled this
properly, but the x86 code was wrong.
parent 09c44c1e
......@@ -290,7 +290,7 @@ sub process_asm_block_iX86 {
$str = "\.text\n\t.align 4\n" . $str;
# remove/record any literal constants defined here
while ( ($str =~ /(\.?(LC\d+):\n\t\.(ascii|string).*\n)/ )) {
while ( ($str =~ /(\.?(LC\d+):\n(\t\.(ascii|string).*\n)+)/ )) {
local($label) = $2;
local($body) = $1;
......@@ -299,7 +299,7 @@ sub process_asm_block_iX86 {
$LocalConstant{$label} = $body;
$str =~ s/\.?LC\d+:\n\t\.(ascii|string).*\n//;
$str =~ s/\.?LC\d+:\n(\t\.(ascii|string).*\n)+//;
}
# inject definitions for any local constants now used herein
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment