OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [runtime/] [go-type-error.c] - Blame information for rev 747

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
/* go-type-error.c -- invalid hash and equality functions.
2
 
3
   Copyright 2009 The Go Authors. All rights reserved.
4
   Use of this source code is governed by a BSD-style
5
   license that can be found in the LICENSE file.  */
6
 
7
#include "runtime.h"
8
#include "go-type.h"
9
 
10
/* A hash function used for a type which does not support hash
11
   functions.  */
12
 
13
uintptr_t
14
__go_type_hash_error (const void *val __attribute__ ((unused)),
15
                      uintptr_t key_size __attribute__ ((unused)))
16
{
17
  runtime_panicstring ("hash of unhashable type");
18
}
19
 
20
/* An equality function for an interface.  */
21
 
22
_Bool
23
__go_type_equal_error (const void *v1 __attribute__ ((unused)),
24
                       const void *v2 __attribute__ ((unused)),
25
                       uintptr_t key_size __attribute__ ((unused)))
26
{
27
  runtime_panicstring ("comparing uncomparable types");
28
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.