[Darwin, PPC] Check for out of range asm values.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 23 Oct 2019 05:39:32 +0000 (05:39 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Wed, 23 Oct 2019 05:39:32 +0000 (05:39 +0000)
commit65a4795fab97a0776c8b44638f0fcf531c98f764
tree581cdd4a94f09d771aa8dc65f64e55882e7b5ea6
parenta4edda8cb663827bc8339ac0964865a4822d125c
[Darwin, PPC] Check for out of range asm values.

There are some cases in which the value for the max skip to a p2align
directive can be negative.  The older assembler just ignores these cases
where newer tools produce an error.  To preserve behaviour, we avoid
emitting out of range values.

gcc/ChangeLog:

2019-10-23  Iain Sandoe  <iain@sandoe.co.uk>

* config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
against out of range max skip or log values.

From-SVN: r277307
gcc/ChangeLog
gcc/config/rs6000/darwin.h