~ubuntu-branches/ubuntu/trusty/mysql-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to extra/yassl/taocrypt/include/runtime.hpp

  • Committer: Package Import Robot
  • Author(s): dann frazier
  • Date: 2015-06-15 12:11:36 UTC
  • mfrom: (40.1.5 trusty-security)
  • Revision ID: package-import@ubuntu.com-20150615121136-52ax3qkv2ajblhst
Tags: 5.5.43-0ubuntu0.14.04.2
Introduce full memory barrier support for arm64 and ppc64el to fix
corruption/hang issues (LP: #1427406).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
   Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
 
2
   Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
3
3
 
4
4
   This program is free software; you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
34
34
 
35
35
// Handler for pure virtual functions
36
36
namespace __Crun {
37
 
    void pure_error(void);
 
37
    static void pure_error(void)
 
38
    {
 
39
       // "Pure virtual method called, Aborted", GCC 4.2 str cmp fix
 
40
    }
38
41
} // namespace __Crun
39
42
 
40
43
#endif // __sun
48
51
#if defined(DO_TAOCRYPT_KERNEL_MODE)
49
52
    #include "kernelc.hpp"
50
53
#endif
51
 
    int __cxa_pure_virtual () __attribute__ ((weak));
 
54
 
 
55
/* Disallow inline __cxa_pure_virtual() */
 
56
static int __cxa_pure_virtual() __attribute__((noinline, used));
 
57
static int __cxa_pure_virtual()
 
58
{
 
59
    // oops, pure virtual called!
 
60
    return 0;
 
61
}
 
62
 
52
63
} // extern "C"
53
64
 
54
65
#endif // __GNUC__ > 2