Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-35892

[RHEL-10] [x86_64] GCC - what should be the default setting for -march ?

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • gcc
    • None
    • None
    • None
    • rhel-sst-pt-gcc
    • ssg_platform_tools
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      What should be the default gcc settings for `-march` on x86_64? 

      My understanding is that RHEL-10 will require x86_64 servers which support at least x86-64-v3  microarchitecture

      https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels

      and according to that, the default gcc settings for `-march` will be x86-64-v3

      I have now tested the GCC settings on RHEL-10.0-20240505.46 with

      gcc --version
      gcc (GCC) 14.0.1 20240411 (Red Hat 14.0.1-0)

      and I was surprised that the default is still 

       gcc -Q --help=target | grep march 
       -march=                               x86-64-v2

      Is this by purpose, or do we plan to change the default to `-march=x86-64-v3`?

       

      Thanks a lot

      Jirka

       

       

              mpolacek@redhat.com Marek Polacek
              jhladky1@redhat.com Jiri Hladky
              Marek Polacek Marek Polacek
              Vaclav Kadlcik Vaclav Kadlcik
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: