GNU Assembler support optimization options, but GCC does not pass -mtune and
-march options to assembler! For full optimization it's required to use this
twice:

# gcc ... -mtune=core2 -Wa,-mtune=core2

There is no default passing optimization options from GCC to AS. But many
programmers imply that passing. Because it's very strange to optimize code on
GCC-level and do not optimize on assembler level.

Even Linux kernel use -march without -Wa,-march.

PS. CCing to v...@ru.ru, please.


-- 
           Summary: GCC does not pass -mtune and -march options to
                    assembler!
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vvv at ru dot ru


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40171

Reply via email to