Mercurial > hg > CbC > CbC_gcc
comparison gcc/jit/jit-builtins.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* jit-builtins.c -- Handling of builtin functions during JIT-compilation. | 1 /* jit-builtins.c -- Handling of builtin functions during JIT-compilation. |
2 Copyright (C) 2014-2017 Free Software Foundation, Inc. | 2 Copyright (C) 2014-2018 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GCC. | 4 This file is part of GCC. |
5 | 5 |
6 GCC is free software; you can redistribute it and/or modify it under | 6 GCC is free software; you can redistribute it and/or modify it under |
7 the terms of the GNU General Public License as published by the Free | 7 the terms of the GNU General Public License as published by the Free |
74 return false; | 74 return false; |
75 | 75 |
76 if (debug) | 76 if (debug) |
77 fprintf (stderr, "seen builtin: %s\n", bd.name); | 77 fprintf (stderr, "seen builtin: %s\n", bd.name); |
78 | 78 |
79 if (0 == strcmp (bd.name, in_name)) | 79 if (strcmp (bd.name, in_name) == 0) |
80 { | 80 return true; |
81 return true; | |
82 } | |
83 | 81 |
84 if (bd.both_p) | 82 if (bd.both_p) |
85 { | 83 { |
86 /* Then the macros in builtins.def gave a "__builtin_" | 84 /* Then the macros in builtins.def gave a "__builtin_" |
87 prefix to bd.name, but we should also recognize the form | 85 prefix to bd.name, but we should also recognize the form |
88 without the prefix. */ | 86 without the prefix. */ |
89 gcc_assert (0 == strncmp (bd.name, prefix, prefix_len)); | 87 gcc_assert (strncmp (bd.name, prefix, prefix_len) == 0); |
90 if (debug) | 88 if (debug) |
91 fprintf (stderr, "testing without prefix as: %s\n", | 89 fprintf (stderr, "testing without prefix as: %s\n", |
92 bd.name + prefix_len); | 90 bd.name + prefix_len); |
93 if (0 == strcmp (bd.name + prefix_len, in_name)) | 91 if (strcmp (bd.name + prefix_len, in_name) == 0) |
94 { | 92 return true; |
95 return true; | |
96 } | |
97 } | 93 } |
98 | 94 |
99 return false; | 95 return false; |
100 } | 96 } |
101 | 97 |