mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-02 07:41:44 +00:00
AutomatedTests/PCRel32: explicitly specify optimization
This commit is contained in:
parent
bab78e598e
commit
7455b0cd2a
|
@ -1,10 +1,13 @@
|
||||||
#include "Test.h"
|
#include "Test.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#pragma GCC push_options
|
||||||
|
#pragma GCC optimize ("O2", "omit-frame-pointer")
|
||||||
__attribute__((noinline)) static void* foo(size_t x)
|
__attribute__((noinline)) static void* foo(size_t x)
|
||||||
{
|
{
|
||||||
return malloc(x);
|
return malloc(x);
|
||||||
}
|
}
|
||||||
|
#pragma GCC pop_options
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user