Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-11490

Add support for priority on attribute constructor

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-11679
    • Hide
      C2000_22.6.0.LTS
      C6000_8.3.0
      MSP430_20.2.0.LTS
      C7000_2.1.0.LTS
      MSP430_21.6.0.LTS
      C2000_21.6.0.LTS
      PRU_2.3.0
      C7000_3.1.0.LTS
      ARM_20.2.0.LTS
      Show
      C2000_22.6.0.LTS C6000_8.3.0 MSP430_20.2.0.LTS C7000_2.1.0.LTS MSP430_21.6.0.LTS C2000_21.6.0.LTS PRU_2.3.0 C7000_3.1.0.LTS ARM_20.2.0.LTS
    • C2000_NEXT*
    • default
    • Hide
      As a workaround, make a class dedicated to calling that function, instantiate an object of that class, and use attribute init_priority on that object.

      struct W { W() { init2(); } };

      __attribute__((init_priority(102))) W fake;
      Show
      As a workaround, make a class dedicated to calling that function, instantiate an object of that class, and use attribute init_priority on that object. struct W { W() { init2(); } }; __attribute__((init_priority(102))) W fake;

      The priority argument in the constructor function attribute is not honored.

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: