Files
RedBear-OS/local/recipes/dev/gcc16/source/gcc/tree-nested.h
T
vasilito 48a924c561 recipes: regenerate Cargo.lock for the 0.3.2 fork versions
The libredox 0.1.19 / redox_syscall 0.9.1 bump left 45 recipe lockfiles
pinning libredox 0.1.18+rb0.3.1 and redox_syscall 0.9.0+rb0.3.1. The
cookbook builds with --locked, so every affected recipe died with

  error: cannot update the lock file .../Cargo.lock because --locked was
  passed to prevent this

which is what took out redox-driver-sys -- and with it every Red Bear
driver -- during the redbear-full build. Regenerating the fork lockfiles
was not enough; the recipes that consume the forks as path deps carry
their own. This is step 6 of local/docs/FORK-BUMP-PATCHING-POLICY.md
applied to the recipe layer.

Also drop the hardcoded GCC version in recipes/libs/libstdcxx-v3: the
literal include/c++/13.2.0 stopped resolving the moment the cross
toolchain moved to 16.1.0, leaving -I pointing at a directory that does
not exist. Now resolves the newest installed C++ header directory and
fails loudly if there is none. Same failure class as the hardcoded
13.2.0 in mk/prefix.mk.

Note: a few recipe-level Cargo.lock files (redox-driver-pci, cpufreqd,
redbear-acmd/-ecmd/-ftdi) sit beside a recipe.toml whose [source] is
path = "source", so they are not build inputs; redox-driver-pci's even
references a redox-driver-core/Cargo.toml that does not exist. They are
left alone rather than given meaning they do not have.

redox-driver-sys now cooks clean.
2026-08-03 14:15:38 +03:00

90 lines
2.7 KiB
C++

/* Header file for Nested function decomposition for GIMPLE.
Copyright (C) 2013-2026 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
#ifndef GCC_TREE_NESTED_H
#define GCC_TREE_NESTED_H
extern tree build_addr (tree);
extern void insert_field_into_struct (tree, tree);
extern void lower_nested_functions (tree);
class nested_function_info
{
public:
/* Constructor. */
nested_function_info ()
: origin (NULL),
nested (NULL),
next_nested (NULL)
{
}
/* Copy constructor. We can not simply copy the structure,
because the linked lists would go wrong. However we should never
need that. */
nested_function_info (const nested_function_info &)
{
gcc_unreachable ();
}
~nested_function_info ();
/* Return nested_function_info, if available. */
static nested_function_info *get (cgraph_node *node);
/* Return nested_function_info possibly creating new one. */
static nested_function_info *get_create (cgraph_node *node);
/* Release all nested_function_infos. */
static void release (void);
/* For nested functions points to function the node is nested in. */
cgraph_node *origin;
/* Points to first nested function, if any. */
cgraph_node *nested;
/* Pointer to the next function with same origin, if any. */
cgraph_node *next_nested;
};
extern void maybe_record_nested_function (cgraph_node *node);
extern void unnest_function (cgraph_node *node);
/* If there are functions nested in NODE, return first one. */
inline cgraph_node *
first_nested_function (cgraph_node *node)
{
nested_function_info *info = nested_function_info::get (node);
return info ? info->nested : NULL;
}
/* Return next nested function (used to iterate from first_nested_function). */
inline cgraph_node *
next_nested_function (cgraph_node *node)
{
return nested_function_info::get (node)->next_nested;
}
/* Return origin of nested function (and NULL otherwise). */
inline cgraph_node *
nested_function_origin (cgraph_node *node)
{
nested_function_info *info = nested_function_info::get (node);
return info ? info->origin : NULL;
}
#endif /* GCC_TREE_NESTED_H */