aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2014-02-10 18:19:01 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2014-02-10 18:19:01 +0000
commite2fc3b4f329d0e214b18d6f4a8ffa705da6c695f (patch)
tree263ae58025f3ef32705aa60e81faeec9d6d3466b /gcc
parent3a22ad890b654fae0dc7cdd1a7c304059fb48a19 (diff)
downloadgcc-e2fc3b4f329d0e214b18d6f4a8ffa705da6c695f.zip
gcc-e2fc3b4f329d0e214b18d6f4a8ffa705da6c695f.tar.gz
gcc-e2fc3b4f329d0e214b18d6f4a8ffa705da6c695f.tar.bz2
re PR middle-end/60080 (gcc.dg/vect/vect-nop-move.c FAILs)
2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de> PR middle-end/60080 * cfgexpand.c (expand_asm_operands): Attach source location to ASM_INPUT rtx objects. * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION. From-SVN: r207668
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/cfgexpand.c7
-rw-r--r--gcc/print-rtl.c14
3 files changed, 20 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 40af8d4..a5ad4fa 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ PR middle-end/60080
+ * cfgexpand.c (expand_asm_operands): Attach source location to
+ ASM_INPUT rtx objects.
+ * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
+
2014-02-10 Nick Clifton <nickc@redhat.com>
* config/mn10300/mn10300.c (popcount): New function.
@@ -489,7 +496,7 @@
2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
- * gcc/config/host-linux.c (linux_gt_pch_use_address): Don't
+ * config/host-linux.c (linux_gt_pch_use_address): Don't
use SSIZE_MAX because it is not always defined.
2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index c0cbeb3..06d494c 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -2678,8 +2678,9 @@ expand_asm_operands (tree string, tree outputs, tree inputs,
ASM_OPERANDS_INPUT (body, i) = op;
ASM_OPERANDS_INPUT_CONSTRAINT_EXP (body, i)
- = gen_rtx_ASM_INPUT (TYPE_MODE (type),
- ggc_strdup (constraints[i + noutputs]));
+ = gen_rtx_ASM_INPUT_loc (TYPE_MODE (type),
+ ggc_strdup (constraints[i + noutputs]),
+ locus);
if (tree_conflicts_with_clobbers_p (val, &clobbered_regs))
clobber_conflict_found = 1;
@@ -2701,7 +2702,7 @@ expand_asm_operands (tree string, tree outputs, tree inputs,
sprintf (buffer, "%d", j);
ASM_OPERANDS_INPUT_CONSTRAINT_EXP (body, ninputs - ninout + i)
- = gen_rtx_ASM_INPUT (inout_mode[i], ggc_strdup (buffer));
+ = gen_rtx_ASM_INPUT_loc (inout_mode[i], ggc_strdup (buffer), locus);
}
/* Copy labels to the vector. */
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index 5f2a4454..09ac387 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -417,17 +417,19 @@ print_rtx (const_rtx in_rtx)
else if (i == 6 && GET_CODE (in_rtx) == ASM_OPERANDS)
{
#ifndef GENERATOR_FILE
- fprintf (outfile, " %s:%i",
- LOCATION_FILE (ASM_OPERANDS_SOURCE_LOCATION (in_rtx)),
- LOCATION_LINE (ASM_OPERANDS_SOURCE_LOCATION (in_rtx)));
+ if (ASM_OPERANDS_SOURCE_LOCATION (in_rtx) != UNKNOWN_LOCATION)
+ fprintf (outfile, " %s:%i",
+ LOCATION_FILE (ASM_OPERANDS_SOURCE_LOCATION (in_rtx)),
+ LOCATION_LINE (ASM_OPERANDS_SOURCE_LOCATION (in_rtx)));
#endif
}
else if (i == 1 && GET_CODE (in_rtx) == ASM_INPUT)
{
#ifndef GENERATOR_FILE
- fprintf (outfile, " %s:%i",
- LOCATION_FILE (ASM_INPUT_SOURCE_LOCATION (in_rtx)),
- LOCATION_LINE (ASM_INPUT_SOURCE_LOCATION (in_rtx)));
+ if (ASM_INPUT_SOURCE_LOCATION (in_rtx) != UNKNOWN_LOCATION)
+ fprintf (outfile, " %s:%i",
+ LOCATION_FILE (ASM_INPUT_SOURCE_LOCATION (in_rtx)),
+ LOCATION_LINE (ASM_INPUT_SOURCE_LOCATION (in_rtx)));
#endif
}
else if (i == 6 && NOTE_P (in_rtx))