[gomp4] Simplify function discarding

Nathan Sidwell nathan@acm.org
Mon Dec 28 13:46:00 GMT 2015


I noticed that the code dealing with bind and nohost clauses in 
execute_oacc_device_lower  looked like:

#ifdef ACCEL_COMPILER
   ten lines of 'f(BIND)'
#endif
#ifndef ACCEL_COMPILER
   ten lines of 'f(NOHOST)'
#endif

Simplified to  the attached, which reduces the cut and paste, as  well as moving 
this check to after we've determined it's something  applicable to  offloading.

nathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gomp4-bind.patch
Type: text/x-patch
Size: 4163 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20151228/c7129d83/attachment.bin>


More information about the Gcc-patches mailing list