This is an archive of the discontinued LLVM Phabricator instance.

[clang][driver] Handle '-mrelax' and '-mno-relax' for AVR
ClosedPublic

Authored by benshi001 on Feb 22 2023, 11:56 PM.

Diff Detail

Event Timeline

benshi001 created this revision.Feb 22 2023, 11:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 22 2023, 11:56 PM
benshi001 requested review of this revision.Feb 22 2023, 11:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 22 2023, 11:56 PM
MaskRay added inline comments.Feb 23 2023, 12:00 AM
clang/lib/Driver/ToolChains/AVR.cpp
549

If the linker defaults to --no-relax, we don't need CmdArgs.push_back("--no-relax");

benshi001 marked an inline comment as done.
MaskRay accepted this revision.Feb 23 2023, 10:53 AM
MaskRay added inline comments.
clang/lib/Driver/ToolChains/AVR.cpp
548

The comment just repeats what the code does. I think it can be dropped.

This revision is now accepted and ready to land.Feb 23 2023, 10:53 AM
This revision was automatically updated to reflect the committed changes.
benshi001 marked an inline comment as done.
benshi001 added inline comments.Feb 23 2023, 3:16 PM
clang/lib/Driver/ToolChains/AVR.cpp
548

I will drop when commit it.