Ticket #405: tt405-amd64-optimize.patch

File tt405-amd64-optimize.patch, 1.2 KB (added by rurban, 6 years ago)

pass optimize to src/gc/system.c

  • config/gen/makefiles/CFLAGS.in

    old new  
    1111src/ops/core_ops_cg.c      -{@optimize@}    # takes too long 
    1212src/ops/core_ops_switch.c  -{@optimize@}    # Overwhelms some compilers. 
    1313 
     14#IF(cpuarch==amd64):# TT #405 amd64 --optimize problem 
     15#IF(cpuarch==amd64):src/gc/system.c  -{@optimize@} 
     16 
    1417# io should be -Wunused clean 
    1518{^src/io/}              s/-Wno-unused/-Wunused/ 
    1619 
  • lib/Parrot/Configure/Compiler.pm

    old new  
    402402        print {$out} @comment, "\n"; # extra newline after header 
    403403    } 
    404404 
     405    if ($target eq 'CFLAGS') { 
     406        $options{conditioned_lines} = 1; 
     407    } 
     408 
    405409    # this loop can not be implemented as a foreach loop as the body 
    406410    # is dependent on <IN> being evaluated lazily 
    407411