This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/86388] New: Enhancement: sort "valid arguments to '-march=' switch" suggestions alphabetically


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86388

            Bug ID: 86388
           Summary: Enhancement: sort "valid arguments to '-march='
                    switch" suggestions alphabetically
           Product: gcc
           Version: 7.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: enhancement
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egallager at gcc dot gnu.org
  Target Milestone: ---

I typed: 

$ gcc -c -march=1486 15896.c
cc1: error: bad value ('1486') for '-march=' switch
cc1: note: valid arguments to '-march=' switch are: nocona core2 nehalem corei7
westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2
broadwell skylake skylake-avx512 bonnell atom silvermont slm knl x86-64 eden-x2
nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron
opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2
bdver3 bdver4 znver1 btver1 btver2
$

It'd be easier to look thru the list if they were sorted alphabetically like
this:

$ gcc -c -march=1486 15896.c
cc1: error: bad value ('1486') for '-march=' switch
cc1: note: valid arguments to '-march=' switch are: amdfam10 athlon-fx athlon64
athlon64-sse3 atom barcelona bdver1 bdver2 bdver3 bdver4 bonnell broadwell
btver1 btver2 core-avx-i core-avx2 core2 corei7 corei7-avx eden-x2 eden-x4
haswell ivybridge k8 k8-sse3 knl nano nano-1000 nano-2000 nano-3000 nano-x2
nano-x4 nehalem nocona opteron opteron-sse3 sandybridge silvermont skylake
skylake-avx512 slm westmere x86-64 znver1
$

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]