Changeset 5afb2b8 in rtems-tools


Ignore:
Timestamp:
Sep 10, 2014, 3:10:20 AM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
7168ab3
Parents:
2d5de2e
Message:

rtems-tld: Fix warnings in the generated code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linkers/rtems-tld.cpp

    r2d5de2e r5afb2b8  
    592592
    593593      c.close ();
     594
     595      if (rld::verbose (RLD_VERBOSE_DETAILS))
     596      {
     597        std::cout << "Generated C file:" << std::endl;
     598        c.output (" ", std::cout, true);
     599      }
    594600    }
    595601
     
    648654            const signature& sig = (*si).second;
    649655
     656            c.write_line("");
    650657            c.write_line(sig.decl () + ";");
    651 
    652             c.write_line("");
     658            c.write_line(sig.decl ("__real_") + ";");
    653659            c.write_line(sig.decl ("__wrap_"));
    654660            c.write_line("{");
     
    680686                std::string n = rld::to_string ((int) (a + 1));
    681687                l = rld::find_replace (l, "@ARG_NUM@", n);
    682                 l = rld::find_replace (l, "@ARG_TYPE@", '"' + sig.args[0] + '"');
    683                 l = rld::find_replace (l, "@ARG_SIZE@", "sizeof(" + sig.args[0] + ')');
     688                l = rld::find_replace (l, "@ARG_TYPE@", '"' + sig.args[a] + '"');
     689                l = rld::find_replace (l, "@ARG_SIZE@", "sizeof(" + sig.args[a] + ')');
    684690                l = rld::find_replace (l, "@ARG_LABEL@", "a" + n);
    685691                c.write_line(l);
     
    10661072      const std::string& prefix = rld::get_prefix ();
    10671073      if (rtems_path.empty () && prefix.empty ())
    1068         throw rld::error ("No RTEMS path provide with arch/bsp", "options");
     1074        throw rld::error ("No RTEMS path provided with arch/bsp", "options");
    10691075      if (!rtems_path.empty ())
    10701076        rld::rtems::set_path (rtems_path);
Note: See TracChangeset for help on using the changeset viewer.