Re: [PATCH][MSP430] Reject -m{code,data}-region options unless large memory model is selected

2019-07-29 Thread Jozef Lawrynowicz
On Wed, 24 Jul 2019 09:31:11 -0600 Jeff Law wrote: > On 7/23/19 7:22 AM, Jozef Lawrynowicz wrote: > > > > gcc/ChangeLog: > > > > 2019-07-23 Jozef Lawrynowicz > > > > * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors > > when -m{code,data}-region are used without -

Re: [PATCH][MSP430] Reject -m{code,data}-region options unless large memory model is selected

2019-07-24 Thread Jeff Law
On 7/23/19 7:22 AM, Jozef Lawrynowicz wrote: > The attached patch adds error messages to be emitted when -mcode/data-region > are > used without the accompanying -mlarge option that enables the large memory > model. > Use of the upper/either regions without -mlarge can cause relocation overflows >

[PATCH][MSP430] Reject -m{code,data}-region options unless large memory model is selected

2019-07-23 Thread Jozef Lawrynowicz
The attached patch adds error messages to be emitted when -mcode/data-region are used without the accompanying -mlarge option that enables the large memory model. Use of the upper/either regions without -mlarge can cause relocation overflows or stack mismanagement when incorrect call/return instruc