6 msgcurrent gcc trunk testsuite failure on cygwin: ...

question about switch table
\ ligang (4 Jun 2007)

1 msgLibjava is broken again
10 msgHelp in understanding ccp propagator
2 msgRedefinition of symbol ???
10 msgWhen was decimal floating point added to gcc?
1 msggcc-4.3-20070601 is now available
2 msgWhat is purpose of numbered variables??
7 msgPredictive commoning miscompiles 482.sphinx3 in...
2 msgDOC PATCH: attribute(alloc_size)
3 msgsignal unwind and fp state
1 msgsynchronous cancel and 'terminate called withou...
4 msg__builtin_apply_args - GCC 4.1.1
6 msgOptimizations for itanium
29 msgGit repository with full GCC history
1 msgLinux Foundation Travel Fund and GCC Summit
1 msgcxx-reflection branch ?
6 msgAccess to symbol table??
1 msgDebug info generation (target: Fr30) - GCC 4.1.1
17 msgVery Fast: Directly Coded Lexical Analyzer
Subject:question about switch table
Group:Gcc
From:ligang
Date:4 Jun 2007


Hi,

Now, i wanna generate a switch table just like ARM tbb instruction.
The switch table should be located at .rdata section, so I should use
.L3-.L8_1, but not .L3-.L8.
How could i implement this? Any target macro can do it?

Please look at the following code fragment. (.L3-.L8_1)/2 is what i want,
but not .L3-.L8.

la r7, $L8
tbb [r7, r6]
.L8_1
.rdata
.L8:
.byte (.L3-.L8)/2
.byte (.L4-.L8)/2
.byte (.L5-.L8)/2
.byte (.L6-.L8)/2
.byte (.L7-.L8)/2
.text

Best regards
Ligang


© 2004-2008 readlist.com