aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/init.c
diff options
context:
space:
mode:
authorJozef Lawrynowicz <jozef.l@mittosystems.com>2020-09-02 13:42:39 +0100
committerJozef Lawrynowicz <jozef.l@mittosystems.com>2020-09-02 14:18:09 +0100
commitd45a6c7099a346153e970476688be5bd6a016cef (patch)
tree051da6ad90e3959afaec0564cffe38a9c6a6e7cb /gcc/cp/init.c
parent6bdbf0f37bda2587a4e82cbb956de7a159a397ae (diff)
downloadgcc-d45a6c7099a346153e970476688be5bd6a016cef.zip
gcc-d45a6c7099a346153e970476688be5bd6a016cef.tar.gz
gcc-d45a6c7099a346153e970476688be5bd6a016cef.tar.bz2
MSP430: Skip gcc.dg/pr55940.c in the small memory model
In the MSP430 small memory model, there is a 16-bit address space and pointer arithmetic wraps around the address space, so any calculated address is always within this range. In this test, pointer arithmetic wraps when 0x1000 is added to the address of a variable, causing the resulting address to be unexpectedly less than 0x2000, which breaks the test. gcc/testsuite/ChangeLog: * gcc.dg/pr55940.c: Skip for msp430 unless -mlarge is specified.
Diffstat (limited to 'gcc/cp/init.c')
0 files changed, 0 insertions, 0 deletions