Skip to content
  • Maciej W. Rozycki's avatar
    NDS32/GAS: Correct an `expr' global shadowing error for pre-4.8 GCC · 49d519ec
    Maciej W. Rozycki authored
    Remove `-Wshadow' compilation errors:
    
    cc1: warnings being treated as errors
    .../gas/config/tc-nds32.c: In function 'md_assemble':
    .../gas/config/tc-nds32.c:5212: error: declaration of 'expr' shadows a global declaration
    .../gas/expr.h:180: error: shadowed declaration is here
    make[4]: *** [tc-nds32.o] Error 1
    
    which for versions of GCC before 4.8 prevent support for NDS32 targets
    from being built.  See also GCC PR c/53066.
    
    	gas/
    	* tc-nds32.c (md_assemble): Rename `expr' local variable to
    	`insn_expr'.
    49d519ec
To find the state of this project's repository at the time of any of these versions, check out the tags.