re PR target/81754 (Building of cross compiler avr-elf is broken)
authorGeorg-Johann Lay <avr@gjlay.de>
Mon, 14 Aug 2017 09:14:16 +0000 (09:14 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Mon, 14 Aug 2017 09:14:16 +0000 (09:14 +0000)
gcc/
PR target/81754
PR target/81268
* config/avr/avr.opt (mgas-isr-prologues): New Var
avr_gasisr_prologues.
* config/avr/avr.md (gasisr, *gasisr): Use it instead of
TARGET_GASISR_PROLOGUES.
* config/avr/avr.c (avr_option_override): Same.
(avr_pass_pre_proep::execute): Same.

From-SVN: r251085

gcc/ChangeLog
gcc/config/avr/avr.c
gcc/config/avr/avr.md
gcc/config/avr/avr.opt

index 33a233f18df105465b60f69e48cd5219a46a3011..5fe0a90a15c30d9e51a78a31e775f22c10ce32a0 100644 (file)
@@ -1,3 +1,13 @@
+2017-08-14  Georg-Johann Lay  <avr@gjlay.de>
+
+       PR target/81754
+       PR target/81268
+       * config/avr/avr.opt (mgas-isr-prologues): New Var avr_gasisr_prologues.
+       * config/avr/avr.md (gasisr, *gasisr): Use it instead of
+       TARGET_GASISR_PROLOGUES.
+       * config/avr/avr.c (avr_option_override): Same.
+       (avr_pass_pre_proep::execute): Same.
+
 2017-08-13  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.md (*load_tp_<mode>): Redefine as
index e453bfb681468affd01ff40ab333505ad451292a..20a444ff32a3368a58a1771247d72608ffe3a108 100644 (file)
@@ -777,7 +777,7 @@ avr_option_override (void)
     warning (OPT_fPIE, "-fPIE is not supported");
 
 #if !defined (HAVE_AS_AVR_MGCCISR_OPTION)
-  TARGET_GASISR_PROLOGUES = 0;
+  avr_gasisr_prologues = 0;
 #endif
 
   if (!avr_set_core_architecture())
@@ -1459,7 +1459,7 @@ public:
 
   virtual unsigned int execute (function *fun)
   {
-    if (TARGET_GASISR_PROLOGUES
+    if (avr_gasisr_prologues
         // Whether this function is an ISR worth scanning at all.
         && !fun->machine->is_no_gccisr
         && (fun->machine->is_interrupt
index d17c0b1364074cb4a1f31e1116df182fe9284da6..fe5ca303ef77a728fe0691a768b3e1489c3579a5 100644 (file)
               (set (match_dup 2)
                    (unspec_volatile:BLK [(match_dup 2)]
                                         UNSPECV_MEMORY_BARRIER))])]
-  "TARGET_GASISR_PROLOGUES"
+  "avr_gasisr_prologues"
   {
     operands[2] = gen_rtx_MEM (BLKmode, gen_rtx_SCRATCH (Pmode));
     MEM_VOLATILE_P (operands[2]) = 1;
         (unspec_volatile:HI [(reg:HI REG_SP)] UNSPECV_GASISR))
    (set (match_operand:BLK 2)
         (unspec_volatile:BLK [(match_dup 2)] UNSPECV_MEMORY_BARRIER))]
-  "TARGET_GASISR_PROLOGUES"
+  "avr_gasisr_prologues"
   "__gcc_isr %0"
   [(set_attr "length" "6,5")
    (set_attr "cc" "clobber")])
index 81850e037f61dafada9682fe92891721f4c9cf2d..72955014107ec74406a578cc1a98a095df8d9092 100644 (file)
@@ -27,7 +27,7 @@ Target RejectNegative Joined Var(avr_mmcu) MissingArgError(missing device or arc
 -mmcu=MCU      Select the target MCU.
 
 mgas-isr-prologues
-Target Report Mask(GASISR_PROLOGUES)
+Target Report Var(avr_gasisr_prologues) UInteger Init(0)
 Allow usage of __gcc_isr pseudo instructions in ISR prologues and epilogues.
 
 mn-flash=