Searched refs:NULL (Results 1 - 25 of 3822) sorted by relevance

1234567891011>>

/haiku-buildtools/gcc/gcc/lto/
H A Dlang-specs.h24 /*cpp_spec=*/NULL, /*combinable=*/1, /*needs_preprocessing=*/0},
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/warn/
H A Dnull4.C1 // PR c++/24745 : warnings for NULL constant.
9 if (NULL == 1) return -1; // { dg-warning "NULL used in arithmetic" }
10 if (NULL > NULL) return -1; // { dg-warning "NULL used in arithmetic" }
11 if (NULL < NULL) return -1; // { dg-warning "NULL used in arithmetic" }
12 if (NULL >
[all...]
H A DWconversion-null.C30 int i = NULL; // converting NULL to non-pointer type
31 float z = NULL; // converting NULL to non-pointer type
34 i != NULL; // NULL used in arithmetic local
35 NULL != z; // NULL used in arithmetic
36 k != NULL; // No warning: decay conversion local
37 NULL !
48 NULL && NULL; // No warning: converting NULL to bool is OK local
[all...]
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/conversion/
H A Dnullptr2.C1 /* Test for enumeration as NULL pointer constant. */
5 enum { NULL = 0 }; enumerator in enum:__anon721
9 void *q = NULL; // { dg-error "cannot convert" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/init/
H A Dnull1.C4 const int NULL = 0; variable
6 double* p = NULL;
/haiku-buildtools/gcc/fixincludes/tests/base/
H A Dlocale.h13 #ifndef NULL
16 #define NULL __null macro
18 #define NULL 0L macro
21 #define NULL ((void *)0) macro
23 #endif /* !NULL */
H A Dcurses.h13 # define NULL (0L) /* typed NULL */ macro
39 #ifndef NULL
42 #define NULL __null macro
44 #define NULL 0L macro
47 #define NULL ((void *)0) macro
49 #endif /* !NULL */ /* typed NULL */
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/
H A Dnonnull-3.c12 __builtin_bzero (NULL, 0);
13 __builtin_bcopy (NULL, p, 0);
14 __builtin_bcopy (p, NULL, 0);
15 __builtin_bcmp (NULL, p, 0);
16 __builtin_bcmp (p, NULL, 0);
17 __builtin_index (NULL, 16); /* { dg-warning "null" "null pointer check" } */
18 __builtin_rindex (NULL, 16); /* { dg-warning "null" "null pointer check" } */
20 __builtin_memcpy (p, NULL, 16); /* { dg-warning "null" "null pointer check" } */
21 __builtin_memcpy (NULL, p, 16); /* { dg-warning "null" "null pointer check" } */
22 __builtin_memmove (p, NULL, 1
[all...]
H A Dpr67730-2.c12 int a = NULL; /* { dg-warning "initialization makes integer from pointer" } */
13 a = NULL; /* { dg-warning "assignment makes integer from pointer" } */
14 bar (NULL); /* { dg-warning "passing argument 1" } */
15 return NULL; /* { dg-warning "return makes integer from pointer" } */
H A Dpr67730.c10 return NULL; /* { dg-warning "10:.return. with a value" } */
H A Dpr67730.h2 #define NULL (void *) 0 macro
4 #define RETURN return NULL
22 int a = NULL;
23 a = NULL;
24 sysbar2 (NULL);
25 return NULL;
/haiku-buildtools/legacy/binutils/opcodes/
H A Dia64-opc-d.c24 {"add", IA64_TYPE_DYN, 1, 0, 0, {IA64_OPND_R1, IA64_OPND_IMM22, IA64_OPND_R3_2}, 0, 0, NULL},
25 {"add", IA64_TYPE_DYN, 1, 0, 0, {IA64_OPND_R1, IA64_OPND_IMM14, IA64_OPND_R3}, 0, 0, NULL},
26 {"break", IA64_TYPE_DYN, 0, 0, 0, {IA64_OPND_IMMU21}, 0, 0, NULL},
27 {"chk.s", IA64_TYPE_DYN, 0, 0, 0, {IA64_OPND_R2, IA64_OPND_TGT25b}, 0, 0, NULL},
28 {"hint", IA64_TYPE_DYN, 0, 0, 0, {IA64_OPND_IMMU21}, 0, 0, NULL},
29 {"mov", IA64_TYPE_DYN, 1, 0, 0, {IA64_OPND_R1, IA64_OPND_AR3}, 0, 0, NULL},
30 {"mov", IA64_TYPE_DYN, 1, 0, 0, {IA64_OPND_AR3, IA64_OPND_IMM8}, 0, 0, NULL},
31 {"mov", IA64_TYPE_DYN, 1, 0, 0, {IA64_OPND_AR3, IA64_OPND_R2}, 0, 0, NULL},
32 {"nop", IA64_TYPE_DYN, 0, 0, 0, {IA64_OPND_IMMU21}, 0, 0, NULL},
33 {NULL,
[all...]
/haiku-buildtools/binutils/opcodes/
H A Dia64-opc-d.c24 {"add", IA64_TYPE_DYN, 1, 0, 0, {IA64_OPND_R1, IA64_OPND_IMM22, IA64_OPND_R3_2}, 0, 0, NULL},
25 {"add", IA64_TYPE_DYN, 1, 0, 0, {IA64_OPND_R1, IA64_OPND_IMM14, IA64_OPND_R3}, 0, 0, NULL},
26 {"break", IA64_TYPE_DYN, 0, 0, 0, {IA64_OPND_IMMU21}, 0, 0, NULL},
27 {"chk.s", IA64_TYPE_DYN, 0, 0, 0, {IA64_OPND_R2, IA64_OPND_TGT25b}, 0, 0, NULL},
28 {"hint", IA64_TYPE_DYN, 0, 0, 0, {IA64_OPND_IMMU21}, 0, 0, NULL},
29 {"mov", IA64_TYPE_DYN, 1, 0, 0, {IA64_OPND_R1, IA64_OPND_AR3}, 0, 0, NULL},
30 {"mov", IA64_TYPE_DYN, 1, 0, 0, {IA64_OPND_AR3, IA64_OPND_IMM8}, 0, 0, NULL},
31 {"mov", IA64_TYPE_DYN, 1, 0, 0, {IA64_OPND_AR3, IA64_OPND_R2}, 0, 0, NULL},
32 {"nop", IA64_TYPE_DYN, 0, 0, 0, {IA64_OPND_IMMU21}, 0, 0, NULL},
33 {NULL,
[all...]
H A Dnds32-asm.c100 {"rt", 20, 5, 0, HW_GPR, NULL},
101 {"ra", 15, 5, 0, HW_GPR, NULL},
102 {"rb", 10, 5, 0, HW_GPR, NULL},
103 {"rd", 5, 5, 0, HW_GPR, NULL},
105 {"fst", 20, 5, 0, HW_FSR, NULL},
106 {"fsa", 15, 5, 0, HW_FSR, NULL},
107 {"fsb", 10, 5, 0, HW_FSR, NULL},
108 {"fdt", 20, 5, 0, HW_FDR, NULL},
109 {"fda", 15, 5, 0, HW_FDR, NULL},
110 {"fdb", 10, 5, 0, HW_FDR, NULL},
[all...]
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/headers/cstring/
H A Dmacros.cc24 #ifndef NULL
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/headers/ctime/
H A Dmacros.cc24 #ifndef NULL
/haiku-buildtools/gcc/libstdc++-v3/testsuite/21_strings/headers/cstdlib/
H A Dmacros.cc24 #ifndef NULL
/haiku-buildtools/gcc/libstdc++-v3/testsuite/21_strings/headers/cstring/
H A Dmacros.cc24 #ifndef NULL
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/tsan/
H A Ddefault_options.C12 return NULL;
17 return NULL;
22 pthread_create(&t[0], NULL, Thread1, NULL);
23 pthread_create(&t[1], NULL, Thread2, NULL);
24 pthread_join(t[0], NULL);
25 pthread_join(t[1], NULL);
/haiku-buildtools/gcc/gcc/testsuite/c-c++-common/tsan/
H A Datomic_stack.c13 return NULL;
19 return NULL;
25 pthread_create(&t[0], NULL, Thread1, NULL);
26 pthread_create(&t[1], NULL, Thread2, NULL);
27 pthread_join(t[0], NULL);
28 pthread_join(t[1], NULL);
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/format/
H A Dsentinel-1.c6 #include <stddef.h> /* For NULL, which must be (ptr)0. */
31 foo1 (NULL); /* { dg-warning "not enough" "sentinel" } */
36 foo1 ("a", NULL, 1); /* { dg-warning "missing sentinel" "sentinel" } */
37 foo1 ("a", NULL);
39 foo5 (NULL); /* { dg-warning "not enough" "sentinel" } */
40 foo5 (NULL, 1); /* { dg-warning "not enough" "sentinel" } */
41 foo5 ("a", NULL); /* { dg-warning "not enough" "sentinel" } */
42 foo5 ("a", NULL, 1);
43 foo5 ("a", 1, 2, 3, NULL); /* { dg-warning "missing sentinel" "sentinel" } */
44 foo5 ("a", 1, 2, NULL,
[all...]
H A Dms_null-1.c19 my_printf (NULL);
20 my_printf (NULL, i1); /* { dg-warning "too many" "null format with arguments" } */
22 my_printf (my_format ("", NULL));
23 my_printf (my_format ("", NULL), i1); /* { dg-warning "too many" "null format_arg with arguments" } */
27 my_printf (dgettext ("", NULL)); /* { dg-warning "null" "null format with dgettext" } */
H A Dnull-1.c19 my_printf (NULL);
20 my_printf (NULL, i1); /* { dg-warning "too many" "null format with arguments" } */
22 my_printf (my_format ("", NULL));
23 my_printf (my_format ("", NULL), i1); /* { dg-warning "too many" "null format_arg with arguments" } */
27 my_printf (dgettext ("", NULL)); /* { dg-warning "null" "null format with dgettext" } */
/haiku-buildtools/gcc/gcc/config/mips/
H A Ddriver-native.c41 const char *cpu = NULL;
47 return NULL;
51 return NULL;
54 if (f == NULL)
55 return NULL;
57 while (fgets (buf, sizeof (buf), f) != NULL)
60 if (strstr (buf, "Godson2 V0.2") != NULL
61 || strstr (buf, "Loongson-2 V0.2") != NULL
62 || strstr (buf, "Loongson-2E") != NULL)
64 else if (strstr (buf, "Godson2 V0.3") != NULL
[all...]
/haiku-buildtools/gcc/gcc/common/config/mcore/
H A Dmcore-common.c35 { OPT_LEVELS_1_PLUS, OPT_ffunction_cse, NULL, 0 },
36 { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
37 { OPT_LEVELS_ALL, OPT_fcaller_saves, NULL, 0 },
38 { OPT_LEVELS_ALL, OPT_fschedule_insns, NULL, 0 },
39 { OPT_LEVELS_ALL, OPT_fschedule_insns2, NULL, 0 },
40 { OPT_LEVELS_SIZE, OPT_mhardlit, NULL, 0 },
41 { OPT_LEVELS_NONE, 0, NULL, 0 }

Completed in 114 milliseconds

1234567891011>>