This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa][unit-at-a-time] bootstrap
- From: <judd dot jenne at charter dot net>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 22 Aug 2003 23:14:15 -0400
- Subject: Re: [tree-ssa][unit-at-a-time] bootstrap
Andrew,
This testcase produces a similar error as the bootstrap.
It compiles on mainline.
gcc --version:
Reading specs from
/home/judd/gcc-dev/bin-ssa/lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/specs
Configured with: /home/judd/gcc-dev/gcc-ssa/configure
--prefix=/home/judd/gcc-dev/bin-ssa
--enable-languages=c,c++ --disable-libgcj
--enable-checking
Thread model: posix
gcc version 3.5-tree-ssa 20030823 (merged 20030817)
Compile Line:
gcc -O2 -funit-at-a-time -o testcase2 testcase2.c
/tmp/cckppReb.o(.text+0xf): In function `main':
: undefined reference to `last_real_code.0'
collect2: ld returned 1 exit status
static void
record_insn_name(int code)
{
static int last_real_code = 0;
last_real_code = code;
}
int
main(void)
{
record_insn_name(4);
return 0;
}
Here is the .01.rtl file:
;; Function main
(note 2 0 5 NOTE_INSN_DELETED)
(insn 5 2 6 (parallel [
(set (reg/f:SI 7 esp)
(and:SI (reg/f:SI 7 esp)
(const_int -16 [0xfffffff0])))
(clobber (reg:CC 17 flags))
]) -1 (nil)
(nil))
(insn 6 5 7 (set (reg:SI 59)
(const_int 0 [0x0])) -1 (nil)
(nil))
(insn 7 6 8 (parallel [
(set (reg/f:SI 7 esp)
(minus:SI (reg/f:SI 7 esp)
(reg:SI 59)))
(clobber (reg:CC 17 flags))
]) -1 (nil)
(nil))
(insn 8 7 3 (set (reg/f:SI 60)
(reg/f:SI 55 virtual-stack-dynamic)) -1 (nil)
(nil))
(note 3 8 4 NOTE_INSN_FUNCTION_BEG)
(note 4 3 10 NOTE_INSN_DELETED)
(note 10 4 11 0x4018fd40 NOTE_INSN_BLOCK_BEG)
(note 11 10 12 NOTE_INSN_DELETED)
(note 12 11 13 0x4018fe80 NOTE_INSN_BLOCK_BEG)
(note 13 12 15 NOTE_INSN_DELETED)
(insn 15 13 16 (set (mem/f:SI (symbol_ref:SI
("last_real_code.0") [flags 0x2] <var_decl 0x4018e5b0
last_real_code>) [2 last_real_code+0 S4 A32])
(const_int 4 [0x4])) -1 (nil)
(nil))
(note 16 15 18 0x4018fe80 NOTE_INSN_BLOCK_END)
(insn 18 16 19 (set (reg:SI 58 [ <result> ])
(const_int 0 [0x0])) -1 (nil)
(nil))
(jump_insn 19 18 20 (set (pc)
(label_ref 24)) -1 (nil)
(nil))
(barrier 20 19 21)
(note 21 20 22 0x4018fd40 NOTE_INSN_BLOCK_END)
(note 22 21 26 NOTE_INSN_FUNCTION_END)
(insn 26 22 27 (clobber (reg/i:SI 0 eax)) -1 (nil)
(nil))
(insn 27 26 24 (clobber (reg:SI 58 [ <result> ])) -1 (nil)
(nil))
(code_label 24 27 25 1 "" [0 uses])
(insn 25 24 28 (set (reg/i:SI 0 eax)
(reg:SI 58 [ <result> ])) -1 (nil)
(nil))
(insn 28 25 0 (use (reg/i:SI 0 eax)) -1 (nil)
(nil))
Judd