aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2008-08-12 21:13:45 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2008-08-12 21:13:45 +0400
commitbad4f40b6c2de1cd4dd798fccac70e2f77d5685f (patch)
treeeb0927c45a28f76d21a29bd3a2daf5762eae8741 /gcc
parent905cd1b98e56a872eb046eb0fe9187460c1eb48b (diff)
downloadgcc-bad4f40b6c2de1cd4dd798fccac70e2f77d5685f.zip
gcc-bad4f40b6c2de1cd4dd798fccac70e2f77d5685f.tar.gz
gcc-bad4f40b6c2de1cd4dd798fccac70e2f77d5685f.tar.bz2
* final.c (final_scan_insn): Use app_enable/app_disable functions.
From-SVN: r139024
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/final.c30
2 files changed, 9 insertions, 25 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 23fa9d81..1b41d51 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-12 Anatoly Sokolov <aesok@post.ru>
+
+ * final.c (final_scan_insn): Use app_enable/app_disable functions.
+
2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
PR bootstrap/37097
diff --git a/gcc/final.c b/gcc/final.c
index 099942a3..29b5b8f 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -2007,11 +2007,7 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
if (LABEL_NAME (insn))
(*debug_hooks->label) (insn);
- if (app_on)
- {
- fputs (ASM_APP_OFF, file);
- app_on = 0;
- }
+ app_disable ();
next = next_nonnote_insn (insn);
if (next != 0 && JUMP_P (next))
@@ -2111,11 +2107,7 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
else
switch_to_section (current_function_section ());
- if (app_on)
- {
- fputs (ASM_APP_OFF, file);
- app_on = 0;
- }
+ app_disable ();
#if defined(ASM_OUTPUT_ADDR_VEC) || defined(ASM_OUTPUT_ADDR_DIFF_VEC)
if (GET_CODE (body) == ADDR_VEC)
@@ -2189,11 +2181,7 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
{
expanded_location loc;
- if (! app_on)
- {
- fputs (ASM_APP_ON, file);
- app_on = 1;
- }
+ app_enable (void);
loc = expand_location (ASM_INPUT_SOURCE_LOCATION (body));
if (*loc.file && loc.line)
fprintf (asm_out_file, "%s %i \"%s\" 1\n",
@@ -2233,11 +2221,7 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
/* Output the insn using them. */
if (string[0])
{
- if (! app_on)
- {
- fputs (ASM_APP_ON, file);
- app_on = 1;
- }
+ app_enable (void);
if (expanded.file && expanded.line)
fprintf (asm_out_file, "%s %i \"%s\" 1\n",
ASM_COMMENT_START, expanded.line, expanded.file);
@@ -2252,11 +2236,7 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
break;
}
- if (app_on)
- {
- fputs (ASM_APP_OFF, file);
- app_on = 0;
- }
+ app_disable ();
if (GET_CODE (body) == SEQUENCE)
{