summaryrefslogtreecommitdiffstats
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-19 07:39:43 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-19 07:39:43 +0000
commit5bd7119308139d314a65d3be8584cdefa0e26b4c (patch)
tree06314543c91eececa6bcd3808dfbc85a49ff743d /gcc/cfgexpand.c
parentacce2cad855e27432126f780cc36516bce91181e (diff)
downloadppe42-gcc-5bd7119308139d314a65d3be8584cdefa0e26b4c.tar.gz
ppe42-gcc-5bd7119308139d314a65d3be8584cdefa0e26b4c.zip
* cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM
op0. * gcc.dg/debug/vta-3.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152972 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index acd70c13869..8c7c881ea6c 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -2593,6 +2593,9 @@ expand_debug_expr (tree exp)
if (bitpos == 0 && mode == GET_MODE (op0))
return op0;
+ if (bitpos < 0)
+ return NULL;
+
if ((bitpos % BITS_PER_UNIT) == 0
&& bitsize == GET_MODE_BITSIZE (mode1))
{
OpenPOWER on IntegriCloud