Commit 95636897 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

Merge branch 'fix-compilation-with-wmops_1' into 'main'

Fix build with WMOPS=1

See merge request !2619
parents 1eaa1c7d 31bdbf54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@
#include "options.h"
#include "prot_fx.h"
#include "oper_32b.h"
#include "move.h"
#include "stl.h"

/*--------------------------------------------------------------------------*
 * hq2_noise_inject()
+18 −4
Original line number Diff line number Diff line
@@ -820,7 +820,6 @@ static void *mem_alloc_block( size_t size, const char *size_str );

void reset_mem( Counting_Size cnt_size )
{
    int16_t something;
    size_t tmp_size;

    /* initialize list of stack records */
@@ -840,7 +839,13 @@ void reset_mem( Counting_Size cnt_size )
    max_num_calls = MAX_NUM_RECORDS;

    /* initialize stack pointers */
#if defined( __GNUC__ ) || defined( __clang__ )
    /* GCC/Clang: use builtin (works for many targets) */
    ptr_base_stack = __builtin_frame_address( 0 );
#else
    int16_t something;
    ptr_base_stack = &something;
#endif
    ptr_max_stack = ptr_base_stack;
    ptr_current_stack = ptr_base_stack;

@@ -945,10 +950,14 @@ void reset_mem( Counting_Size cnt_size )

void reset_stack( void )
{
    int16_t something;

    /* initialize/reset stack pointers */
#if defined( __GNUC__ ) || defined( __clang__ )
    /* GCC/Clang: use builtin (works for many targets) */
    ptr_base_stack = __builtin_frame_address( 0 );
#else
    int16_t something;
    ptr_base_stack = &something;
#endif
    ptr_max_stack = ptr_base_stack;
    ptr_current_stack = ptr_base_stack;

@@ -963,10 +972,15 @@ void reset_stack( void )

int push_stack( const char *filename, const char *fctname )
{
    int16_t something;
    int32_t current_stack_size;

#if defined( __GNUC__ ) || defined( __clang__ )
    /* GCC/Clang: use builtin (works for many targets) */
    ptr_base_stack = __builtin_frame_address( 0 );
#else
    int16_t something;
    ptr_current_stack = &something;
#endif

    (void) *filename; /* to avoid compilation warning */

+4 −6
Original line number Diff line number Diff line
@@ -3,17 +3,15 @@
  ====================================================================================*/


#include "basop32.h"
#include <assert.h>
#include <stdint.h>
#include "options.h"
#include "stl.h"
#include "cnst.h"
#include "enh1632.h"
#include "ivas_cnst.h"
#include "ivas_rom_com.h"
#include "move.h"
#include "wmc_auto.h"
#include <assert.h>
#include "typedef.h"
#include <stdint.h>
#include "options.h"
#include "rom_com.h"
#include "stat_dec.h"
#include "prot_fx.h"
+2 −1
Original line number Diff line number Diff line
@@ -31,13 +31,14 @@
*******************************************************************************************************/

#include <stdint.h>
#include <math.h>
#include "options.h"
#include "stl.h"
#include "ivas_cnst.h"
#include "ivas_prot_fx.h"
#include "ivas_rom_com.h"
#include "prot_fx.h"
#include "ivas_stat_enc.h"
#include <math.h>
#include "wmc_auto.h"
#include "move.h"
#include "ivas_prot_fx.h"
+5 −9
Original line number Diff line number Diff line
@@ -30,14 +30,15 @@

*******************************************************************************************************/

#include "basop32.h"
#include "basop_util.h"
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include "options.h"
#include "stl.h"
#include "basop_util.h"
#include "cnst.h"
#include "common_api_types.h"
#include "enh32.h"
#include "lib_rend.h"
#include "move.h"
#include "prot_fx.h"
#include "ivas_prot_fx.h"
#include "ivas_prot_rend_fx.h"
@@ -47,11 +48,6 @@
#include "ivas_cnst.h"
#include "ivas_rom_com.h"
#include "ivas_rom_rend.h"
#include "stl.h"
#include "typedef.h"
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include "wmc_auto.h"
#ifdef DEBUGGING
#include "debug.h"