Changeset 98:e2045ba026cc in finroc_plugins_data_ports


Ignore:
Timestamp:
11.05.2015 20:04:19 (5 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Compile fix for nios2 gcc 4.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • api/tPortImplementation.h

    r95 r98  
    8989    if (creation_info.BoundsSet()) 
    9090    { 
    91       return new tBoundedPort<TWrapper, TYPE>(creation_info);  // Crashes with release mode in gcc 4.6 :-/ 
    92       //return new optimized::tCheapCopyPort(creation_info); 
     91#ifdef __nios2__ 
     92      return new tPortBase(creation_info); 
     93#else 
     94      return new tBoundedPort<TWrapper, TYPE>(creation_info);  // Crashes with release mode in gcc 4.6 and nios gcc 4.8 
     95#endif 
    9396    } 
    9497    else 
Note: See TracChangeset for help on using the changeset viewer.