+2002-06-02 Tom Tromey <tromey@redhat.com>
+
+ * fixinc/fixincl.x: Rebuilt.
+ * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
+
2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
config/i370:
rtx rtl;
{
dw_loc_descr_ref loc_result = NULL;
- unsigned reg;
+ unsigned reg, i, max;
if (REGNO (rtl) >= FIRST_PSEUDO_REGISTER)
return 0;
reg = reg_number (rtl);
- if (reg <= 31)
- loc_result = new_loc_descr (DW_OP_reg0 + reg, 0, 0);
- else
- loc_result = new_loc_descr (DW_OP_regx, reg, 0);
+ max = HARD_REGNO_NREGS (reg, GET_MODE (rtl));
+ for (i = 0; i < max; ++i)
+ {
+ add_loc_descr (&loc_result,
+ new_loc_descr (reg <= 31 ? DW_OP_reg0 + reg : DW_OP_regx,
+ reg <= 31 ? 0 : reg,
+ 0));
+
+ if (max > 1)
+ add_loc_descr (&loc_result,
+ new_loc_descr (DW_OP_piece,
+ GET_MODE_SIZE (reg_raw_mode[reg]), 0));
+
+ ++reg;
+ }
return loc_result;
}
* content selection pattern - do fix if pattern found
*/
tSCC zThread_KeywordSelect0[] =
- " __thread([,)])";
+ "([* ])__thread([,)])";
#define THREAD_KEYWORD_TEST_CT 1
static tTestDesc aThread_KeywordTests[] = {
*/
static const char* apzThread_KeywordPatch[] = {
"format",
- " __thr%1",
+ "%1__thr%2",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
hackname = thread_keyword;
files = "pthread.h";
files = "bits/sigthread.h";
- select = " __thread([,)])";
+ select = "([* ])__thread([,)])";
c_fix = format;
- c_fix_arg = " __thr%1";
+ c_fix_arg = "%1__thr%2";
test_text =
"extern int pthread_create (pthread_t *__restrict __thread,\n"