Home
last modified time | relevance | path

Searched refs:decl1 (Results 1 – 12 of 12) sorted by relevance

/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A DWshadow-1.c8 int decl1; /* { dg-warning "shadowed declaration" } */ variable
9 void foo (double decl1) /* { dg-warning "shadows a global decl" } */ in foo() argument
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/warn/
H A DWshadow-1.C21 int decl1; // { dg-warning "shadowed declaration" } variable
24 double decl1) in foo() argument
/openbsd-src/gnu/gcc/gcc/cp/
H A Ddecl.c10501 start_preparsed_function (tree decl1, tree attrs, int flags) in start_preparsed_function() argument
10510 = get_fileinfo (LOCATION_FILE (DECL_SOURCE_LOCATION (decl1))); in start_preparsed_function()
10517 fntype = TREE_TYPE (decl1); in start_preparsed_function()
10523 if (!ctype && DECL_FRIEND_P (decl1)) in start_preparsed_function()
10525 ctype = DECL_FRIEND_CONTEXT (decl1); in start_preparsed_function()
10536 if (DECL_DECLARED_INLINE_P (decl1) in start_preparsed_function()
10538 warning (0, "inline function %q+D given attribute noinline", decl1); in start_preparsed_function()
10540 if (DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P (decl1)) in start_preparsed_function()
10544 adjust_clone_args (decl1); in start_preparsed_function()
10548 if (ctype != NULL_TREE && DECL_STATIC_FUNCTION_P (decl1) in start_preparsed_function()
[all …]
H A Dpt.c11052 tree decl1 = DECL_TEMPLATE_RESULT (pat1); in more_specialized_fn() local
11058 tree args1 = TYPE_ARG_TYPES (TREE_TYPE (decl1)); in more_specialized_fn()
11069 if (DECL_NONSTATIC_MEMBER_FUNCTION_P (decl1)) in more_specialized_fn()
11079 if (!DECL_STATIC_FUNCTION_P (decl1)) in more_specialized_fn()
11087 if (DECL_CONV_FN_P (decl1) != DECL_CONV_FN_P (decl2)) in more_specialized_fn()
11091 if (DECL_CONV_FN_P (decl1)) in more_specialized_fn()
11093 args1 = tree_cons (NULL_TREE, TREE_TYPE (TREE_TYPE (decl1)), args1); in more_specialized_fn()
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dc-decl.c5802 tree decl1, old_decl; local
5817 decl1 = grokdeclarator (declarator, declspecs, FUNCDEF, 1);
5821 if (decl1 == 0)
5827 decl_attributes (&decl1, attributes, 0);
5831 maybe_apply_pragma_weak (decl1);
5833 if (DECL_DECLARED_INLINE_P (decl1)
5834 && DECL_UNINLINABLE (decl1)
5835 && lookup_attribute ("noinline", DECL_ATTRIBUTES (decl1)))
5836 warning_with_decl (decl1,
5839 announce_function (decl1);
[all …]
H A Dgenautomata.c2118 const decl_t decl1 = (decl_t) automaton_decl_1; local
2121 if (decl1->mode != dm_automaton || DECL_AUTOMATON (decl1)->name == NULL
2124 return strcmp (DECL_AUTOMATON (decl1)->name,
2221 const decl_t decl1 = (decl_t) insn_decl_1; local
2224 if (decl1->mode != dm_insn_reserv || DECL_INSN_RESERV (decl1)->name == NULL
2228 return strcmp (DECL_INSN_RESERV (decl1)->name,
/openbsd-src/gnu/usr.bin/gcc/gcc/cp/
H A Ddecl.c14315 tree decl1; local
14336 decl1 = declarator;
14338 fntype = TREE_TYPE (decl1);
14344 if (!ctype && DECL_FRIEND_P (decl1))
14346 ctype = DECL_FRIEND_CONTEXT (decl1);
14357 last_function_parms = DECL_ARGUMENTS (decl1);
14361 decl1 = grokdeclarator (declarator, declspecs, FUNCDEF, 1, &attrs);
14364 if (decl1 == NULL_TREE || TREE_CODE (decl1) != FUNCTION_DECL)
14367 cplus_decl_attributes (&decl1, attrs, 0);
14371 maybe_apply_pragma_weak (decl1);
[all …]
/openbsd-src/gnu/gcc/gcc/
H A Dc-decl.c6001 tree decl1, old_decl; in start_function() local
6031 decl1 = grokdeclarator (declarator, declspecs, FUNCDEF, true, NULL); in start_function()
6035 if (decl1 == 0) in start_function()
6042 decl_attributes (&decl1, attributes, 0); in start_function()
6044 if (DECL_DECLARED_INLINE_P (decl1) in start_function()
6045 && DECL_UNINLINABLE (decl1) in start_function()
6046 && lookup_attribute ("noinline", DECL_ATTRIBUTES (decl1))) in start_function()
6048 decl1); in start_function()
6050 announce_function (decl1); in start_function()
6052 if (!COMPLETE_OR_VOID_TYPE_P (TREE_TYPE (TREE_TYPE (decl1)))) in start_function()
[all …]
H A Dgenautomata.c1763 const decl_t decl1 = (decl_t) automaton_decl_1; in automaton_decl_eq_p() local
1766 gcc_assert (decl1->mode == dm_automaton in automaton_decl_eq_p()
1767 && DECL_AUTOMATON (decl1)->name in automaton_decl_eq_p()
1770 return strcmp (DECL_AUTOMATON (decl1)->name, in automaton_decl_eq_p()
1862 const decl_t decl1 = (decl_t) insn_decl_1; in insn_decl_eq_p() local
1865 gcc_assert (decl1->mode == dm_insn_reserv in insn_decl_eq_p()
1866 && DECL_INSN_RESERV (decl1)->name in insn_decl_eq_p()
1869 return strcmp (DECL_INSN_RESERV (decl1)->name, in insn_decl_eq_p()
/openbsd-src/gnu/usr.bin/gcc/gcc/java/
H A Dexpr.c503 tree decl1, decl2; in java_stack_swap() local
514 decl1 = find_stack_slot (stack_pointer - 1, type1); in java_stack_swap()
516 temp = copy_to_reg (DECL_RTL (decl1)); in java_stack_swap()
517 emit_move_insn (DECL_RTL (decl1), DECL_RTL (decl2)); in java_stack_swap()
/openbsd-src/gnu/usr.bin/gcc/gcc/f/
H A Dcom.c13943 tree decl1; in start_function() local
13965 decl1 = current_function_decl = error_mark_node; in start_function()
13968 decl1 = build_decl (FUNCTION_DECL, in start_function()
13971 TREE_PUBLIC (decl1) = public ? 1 : 0; in start_function()
13973 DECL_INLINE (decl1) = 1; in start_function()
13974 TREE_STATIC (decl1) = 1; in start_function()
13975 DECL_EXTERNAL (decl1) = 0; in start_function()
13977 announce_function (decl1); in start_function()
13981 DECL_INITIAL (decl1) = error_mark_node; in start_function()
13986 current_function_decl = pushdecl (decl1); in start_function()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/
H A DChangeLog1998 * g++.dg/lookup/decl1.C: New test.
12975 * g++.old-deja/g++.other/decl1.C: New test; incorrect parsing of