cross-compiled dtc on arm-gnueabi with gcc 4.2.1 issue

Laurent Gregoire laurent.gregoire at tomtom.com
Sat Mar 7 00:54:31 EST 2009


FYI, we recently cross-compiled the dtc binary for ARM, using gcc 4.2.1
(target arm-gnu-eabi). A bug appears in calling function
write_tree_source_node(), the two last parameters are mangled. Latest
gcc 4.3.3 does not exhibit the issue.

The problem is due to gcc (a very small fragment of code exhibit the
same problem), and is probably related to the bug described below:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36527
(Fixed in gcc 4.3.1)

As a workaround, using -O2 instead of -Os solves the issue on the
specific dtc case.

HTH,

Laurent GREGOIRE
Embedded Software Engineering | TomTom | www.tomtom.com




More information about the devicetree-discuss mailing list