panic if TLS is found in sparc backend
authorMatthias Braun <matze@braunis.de>
Wed, 13 Apr 2011 13:01:29 +0000 (15:01 +0200)
committerMatthias Braun <matze@braunis.de>
Wed, 13 Apr 2011 13:10:04 +0000 (15:10 +0200)
ir/be/sparc/sparc_transform.c

index 5d57dc7..06c8913 100644 (file)
@@ -903,6 +903,9 @@ static ir_node *make_address(dbg_info *dbgi, ir_node *block, ir_entity *entity,
 {
        ir_node *hi  = new_bd_sparc_SetHi(dbgi, block, entity, offset);
        ir_node *low = new_bd_sparc_Or_imm(dbgi, block, hi, entity, offset);
+
+       if (get_entity_owner(entity) == get_tls_type())
+               panic("thread local storage not supported yet in sparc backend");
        return low;
 }