VirtualBox

Changeset 69912 in vbox


Ignore:
Timestamp:
Dec 3, 2017 7:08:13 PM (7 years ago)
Author:
vboxsync
Message:

VBoxCompilerPlugInGcc.cpp: Beat it into working with gcc 5.4 on ubuntu/WSL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/VBoxCompilerPlugInsGcc.cpp

    r69091 r69912  
    3939#include "tree.h"
    4040#include "tree-pass.h"
     41#if __GNUC__ == 5 && __GNUC_MINOR__ == 4
     42# include "tree-ssa-alias.h"
     43# include "gimple-expr.h"
     44#endif
    4145#include "gimple.h"
    4246#if RT_GNUC_PREREQ(4, 9)
     
    368372        expanded_location   XLoc    = expand_location_to_spelling_point(hLoc);
    369373        int                 cchLine = 0;
    370 # if RT_GNUC_PREREQ(5,0)
     374# if RT_GNUC_PREREQ(6,0)
    371375        const char         *pszLine = location_get_source_line(XLoc.file, XLoc.line, &cchLine);
     376# elif RT_GNUC_PREREQ(5,0)
     377        const char         *pszLine = location_get_source_line(XLoc, &cchLine);
    372378# else
    373379        const char         *pszLine = location_get_source_line(XLoc);
     
    698704                    else
    699705                        error_at(gimple_location(hStmt),
    700                                  "Call has only %d arguments; %s() format string is argument #%u (1-based), thus missing\n",
    701                                  cCallArgs, DECL_NAME(hFnDecl) ? IDENTIFIER_POINTER(DECL_NAME(hFnDecl)) : "<unamed>",State.iFmt);
     706                                 "Call has only %d arguments; %s() format string is argument #%lu (1-based), thus missing\n",
     707                                 cCallArgs, DECL_NAME(hFnDecl) ? IDENTIFIER_POINTER(DECL_NAME(hFnDecl)) : "<unamed>", State.iFmt);
    702708                }
    703709            }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette