Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

Naive implementation of static guards #8

Merged
merged 3 commits into from Apr 21, 2016

Conversation

forGGe
Copy link
Collaborator

@forGGe forGGe commented Apr 19, 2016

These methods are required to properly initialize static objects inside
a function call.

See also
http://kibergus.su/en/node/92
and
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0043d/IHI0043D_rtabi.pdf
(Table 11, page 24)

@forGGe
Copy link
Collaborator Author

forGGe commented Apr 19, 2016

/cc @vadimol @RostakaGmfun @rasendubi
:)

These methods are required to properly initialize static objects inside
a function call.

See also
http://kibergus.su/en/node/92
and
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0043d/IHI0043D_rtabi.pdf
(Table 11, page 24)
@forGGe forGGe force-pushed the static_inside_functions_support branch from 893d1cc to a4d80ac Compare April 19, 2016 21:43
// Disable interrupts to prevent concurent access
ecl::disable_irq();

if ((*gv) & 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unneeded parentheses

Not all functions are optimized out when using LTO for example.
Now proper flags are set when using this toolchain
@forGGe forGGe force-pushed the static_inside_functions_support branch from f4a687c to f2f214a Compare April 20, 2016 21:53
@forGGe forGGe merged commit f2f214a into develop Apr 21, 2016
@forGGe forGGe deleted the static_inside_functions_support branch April 21, 2016 09:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants