View | Details | Return to bug 56263
Collapse All | Expand All

(-)gcc/doc/invoke.texi (-1 / +9 lines)
Lines 514-520 Objective-C and Objective-C++ Dialects}. Link Here
514
@emph{AVR Options}
514
@emph{AVR Options}
515
@gccoptlist{-mmcu=@var{mcu} -maccumulate-args -mbranch-cost=@var{cost} @gol
515
@gccoptlist{-mmcu=@var{mcu} -maccumulate-args -mbranch-cost=@var{cost} @gol
516
-mcall-prologues -mint8 -mno-interrupts -mrelax @gol
516
-mcall-prologues -mint8 -mno-interrupts -mrelax @gol
517
-mstrict-X -mtiny-stack}
517
-mstrict-addr-space-subsets -mstrict-X -mtiny-stack}
518
518
519
@emph{Blackfin Options}
519
@emph{Blackfin Options}
520
@gccoptlist{-mcpu=@var{cpu}@r{[}-@var{sirevision}@r{]} @gol
520
@gccoptlist{-mcpu=@var{cpu}@r{[}-@var{sirevision}@r{]} @gol
Lines 11612-11617 proper's command line, because the compi Link Here
11612
or architecture has an 8-bit stack pointer and thus no @code{SPH}
11612
or architecture has an 8-bit stack pointer and thus no @code{SPH}
11613
register or not.
11613
register or not.
11614
11614
11615
@item -mstrict-addr-space-subsets
11616
@opindex mstrict-addr-space-subsets
11617
As address space is treated as subset of an other address space only
11618
if it is physically a part of the latter.  This will result in more
11619
restrictive address space checking and respective pointer casts.
11620
Without this option, each address space is treated as subset of any other
11621
address space.
11622
11615
@item -mstrict-X
11623
@item -mstrict-X
11616
@opindex mstrict-X
11624
@opindex mstrict-X
11617
Use address register @code{X} in a way proposed by the hardware.  This means
11625
Use address register @code{X} in a way proposed by the hardware.  This means
(-)gcc/config/avr/avr.opt (+4 lines)
Lines 74-76 When accessing RAM, use X as imposed by Link Here
74
msp8
74
msp8
75
Target Report RejectNegative Var(avr_sp8) Init(0)
75
Target Report RejectNegative Var(avr_sp8) Init(0)
76
The device has no SPH special function register. This option will be overridden by the compiler driver with the correct setting if presence/absence of SPH can be deduced from -mmcu=MCU.
76
The device has no SPH special function register. This option will be overridden by the compiler driver with the correct setting if presence/absence of SPH can be deduced from -mmcu=MCU.
77
78
mstrict-addr-space-subsets
79
Target Report Var(avr_strict_addr_space_subsets) Init(0)
80
An address space is regarded as a subset of an other address space only if it is physically a subset of the latter.  Without this option, each address space is a subset of any other address space.
(-)gcc/config/avr/avr.c (-3 / +3 lines)
Lines 10757-10767 avr_addr_space_convert (rtx src, tree ty Link Here
10757
10757
10758
static bool
10758
static bool
10759
avr_addr_space_subset_p (addr_space_t subset ATTRIBUTE_UNUSED,
10759
avr_addr_space_subset_p (addr_space_t subset ATTRIBUTE_UNUSED,
10760
                         addr_space_t superset ATTRIBUTE_UNUSED)
10760
                         addr_space_t superset)
10761
{
10761
{
10762
  /* Allow any kind of pointer mess.  */
10762
  /* Allow any kind of pointer mess without -mstrict_addr_space_subsets  */
10763
10763
10764
  return true;
10764
  return superset == ADDR_SPACE_MEMX || !avr_strict_addr_space_subsets;
10765
}
10765
}
10766
10766
10767
10767

Return to bug 56263