[committed,MSP430,0/4] "Obvious" fixes to GCC tests for msp430-elf

Message ID b30b46bf-0e46-26b0-5059-eb19f5996b08@mittosystems.com
Headers show
Series
  • "Obvious" fixes to GCC tests for msp430-elf
Related show

Message

Jozef Lawrynowicz Nov. 8, 2018, 4:40 p.m.
I've committed some "obvious" changes to GCC tests that fix failures when
running the GCC testsuite for msp430-elf.

Patch 1 adds a couple of new regexp strings to gcc-dg-prune to catch messages
emitted by GNU ld, when the size of an output section is too large for a memory
region, or the memory region overflows.

Patch 2 skips tests expecting NULL pointer checks to be deleted
with the -fdelete-null-pointer-checks flag, for targets which ignore this flag.

Patch 3 extends the regex in some tests which scan the assembler output for
"nop". On MSP430, the nop instruction is an uppercase "NOP".

Patch 4 fixes the calculation of USHRT_MAX in some tests, to prevent integer
overflow for targets where sizeof(short) == sizeof(int). i.e.
   -#define USHRT_MAX (SHRT_MAX * 2 + 1)
   +#define USHRT_MAX (SHRT_MAX * 2U + 1)

Succesfully regtested:
- gcc, g++, objc, gfortran for x86_64-pc-linux-gnu
- gcc, g++ for msp430-elf
- gcc for avr-elf

Applied to trunk.