VirtualBox

Changeset 95847 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 26, 2022 10:30:38 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/stacksup-vcc.cpp: Added _RTC_UninitUse - complains about using uninitialized variables. bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/compiler/vcc/stacksup-vcc.cpp

    r95832 r95847  
    3030*********************************************************************************************************************************/
    3131#include "internal/iprt.h"
     32
     33#include <iprt/asm.h>
    3234#include <iprt/assert.h>
     35
     36#include "internal/compiler-vcc.h"
    3337
    3438
     
    106110
    107111
     112extern "C" void __cdecl _RTC_UninitUse(const char *pszVar)
     113{
     114    RTAssertMsg2("\n\n!!Used uninitialized variable %s at %p!!\n\n",
     115                 pszVar ? pszVar : "", ASMReturnAddress());
     116    RT_BREAKPOINT();
     117}
     118
     119
    108120/** @todo reimplement in assembly (feeling too lazy right now). */
    109121extern "C" void __fastcall _RTC_CheckStackVars2(uint8_t *pbFrame, RTC_VAR_DESC_T const *pVar, RTC_ALLOC_ENTRY *pHead)
     
    133145    _RTC_CheckStackVars(pbFrame, pVar);
    134146}
     147
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette