This is the mail archive of the gcc-patches@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]

Re: S/390: -march= and -mcpu= options


>Here I don't agree.
>For example, consider x86.
>The default arch should be 386, to ensure wide compatibility.
>The default tuning should be for something a lot more modern,
>e.g. Pentium-<mumble>.
>If an application is compiled with the arch set to 486 (-march=486),
>this should not alter the default tuning.
,
Yes, the tune should be the maximum from default tune and arch, if not
explicit set.

But with that I don't see any reason for the mcpu-option.
If I want to compile my program for a recent architecture, I'm using the
march option only,
with the algorithm above, the tune will be at least for this architecture.
The only advantage
the mcpu option has is to potentially lower the tune to the same level as
the architecture.
But for this I can't see anybody, except us backend maintainer, who may
need this. But
this can be done with the explicit tune option.

Hartmut Penner


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