#62 work around potential gcc 4.6 behavior change

closed-fixed
nobody
frontend (8)
5
2011-07-09
2011-01-09
Peter A. Bigot
No

In development versions of gcc 4.6 past trunk commit r163770 spaces are introduced between the -D option marker and its parameter; i.e. "-DTEST" becomes two arguments "-D" "TEST" when passed to nesc-compile. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47236

This causes TinyOS application builds to fail with errors like:

two source files specified (PLATFORM_SURF and BOARD_)

because -DPLATFORM_SURF and -DBOARD_ were split.

Patch attached.

Discussion

  • David Gay
    David Gay
    2011-07-09

    • status: open --> closed-fixed
     
  • David Gay
    David Gay
    2011-07-09

    Fixed for 1.3.3 (also including -I, -U and -A options)