Commit c5dd277d by Bernd Schmidt Committed by Bernd Schmidt

ifcvt.c (cond_exec_process_insns): Disallow converting a block that contains the prologue.

	* ifcvt.c (cond_exec_process_insns): Disallow converting a block
	that contains the prologue.

	* gcc.c-torture/compile/20110401-1.c: New test.

From-SVN: r171840
parent 722279e4
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
* final.c (final_start_function): Call the new function rather * final.c (final_start_function): Call the new function rather
than using a NULL argument for dwarf2out_frame_debug. than using a NULL argument for dwarf2out_frame_debug.
* ifcvt.c (cond_exec_process_insns): Disallow converting a block
that contains the prologue.
2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/t-spu-elf (dp-bit.c): Use > instead of >>. * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
......
/* If-conversion support. /* If-conversion support.
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010,
2011
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -304,6 +305,10 @@ cond_exec_process_insns (ce_if_block_t *ce_info ATTRIBUTE_UNUSED, ...@@ -304,6 +305,10 @@ cond_exec_process_insns (ce_if_block_t *ce_info ATTRIBUTE_UNUSED,
for (insn = start; ; insn = NEXT_INSN (insn)) for (insn = start; ; insn = NEXT_INSN (insn))
{ {
/* dwarf2out can't cope with conditional prologues. */
if (NOTE_P (insn) && NOTE_KIND (insn) == NOTE_INSN_PROLOGUE_END)
return FALSE;
if (NOTE_P (insn) || DEBUG_INSN_P (insn)) if (NOTE_P (insn) || DEBUG_INSN_P (insn))
goto insn_done; goto insn_done;
......
2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
* gcc.c-torture/compile/20110401-1.c: New test.
2011-03-31 Ian Lance Taylor <iant@google.com> 2011-03-31 Ian Lance Taylor <iant@google.com>
* go.test/go-test.exp (go-set-goarch): Recognize MIPS ABIs. * go.test/go-test.exp (go-set-goarch): Recognize MIPS ABIs.
......
void asn1_length_der (unsigned long int len, unsigned char *ans, int *ans_len)
{
int k;
unsigned char temp[4];
if (len < 128) {
if (ans != ((void *) 0))
ans[0] = (unsigned char) len;
*ans_len = 1;
} else {
k = 0;
while (len) {
temp[k++] = len & 0xFF;
len = len >> 8;
}
*ans_len = k + 1;
if (ans != ((void *) 0)) {
ans[0] = ((unsigned char) k & 0x7F) + 128;
while (k--)
ans[*ans_len - 1 - k] = temp[k];
}
}
}
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