This is an archive of the discontinued LLVM Phabricator instance.

[clang][driver] Enable '-flto' on AVR
ClosedPublic

Authored by benshi001 on Mar 8 2023, 8:36 PM.

Diff Detail

Event Timeline

benshi001 created this revision.Mar 8 2023, 8:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 8 2023, 8:36 PM
benshi001 requested review of this revision.Mar 8 2023, 8:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 8 2023, 8:36 PM
benshi001 updated this revision to Diff 503607.Mar 8 2023, 8:46 PM
MaskRay accepted this revision.Mar 21 2023, 8:42 PM

"Close" seems more appropriate to me as this isn't a bug (previously not an intended use case).

clang/test/Driver/avr-ld.c
59
This revision is now accepted and ready to land.Mar 21 2023, 8:42 PM
This revision was landed with ongoing or failed builds.Mar 21 2023, 9:58 PM
This revision was automatically updated to reflect the committed changes.
benshi001 marked an inline comment as done.Mar 21 2023, 10:02 PM
gulfem added a subscriber: gulfem.Mar 22 2023, 9:36 AM

We started seeing a test failure in avr-ld.c.

/b/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/avr-ld.c:48:11: error: 
// LINKP: {{".*ld.*"}} {{.*}} "--defsym=__DATA_REGION_ORIGIN__=0x800100" "-plugin" {{.*}} "-plugin-opt=mcpu=atmega328"
          ^
<stdin>:1:1: note: scanning from here
Fuchsia clang version 17.0.0 (https://llvm.googlesource.com/llvm-project 0d37efdbc599e61ce2a0418723a66d6b45aea8d7)
^
<stdin>:6:239: note: possible intended match here

https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8785950851645447937/overview

We started seeing a test failure in avr-ld.c.

/b/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/avr-ld.c:48:11: error: 
// LINKP: {{".*ld.*"}} {{.*}} "--defsym=__DATA_REGION_ORIGIN__=0x800100" "-plugin" {{.*}} "-plugin-opt=mcpu=atmega328"
          ^
<stdin>:1:1: note: scanning from here
Fuchsia clang version 17.0.0 (https://llvm.googlesource.com/llvm-project 0d37efdbc599e61ce2a0418723a66d6b45aea8d7)
^
<stdin>:6:239: note: possible intended match here

https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8785950851645447937/overview

I am testing a change and will fix it in one minute.

We started seeing a test failure in avr-ld.c.

/b/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/avr-ld.c:48:11: error: 
// LINKP: {{".*ld.*"}} {{.*}} "--defsym=__DATA_REGION_ORIGIN__=0x800100" "-plugin" {{.*}} "-plugin-opt=mcpu=atmega328"
          ^
<stdin>:1:1: note: scanning from here
Fuchsia clang version 17.0.0 (https://llvm.googlesource.com/llvm-project 0d37efdbc599e61ce2a0418723a66d6b45aea8d7)
^
<stdin>:6:239: note: possible intended match here

https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8785950851645447937/overview

I am testing a change and will fix it in one minute.

Thanks, and it fixed the test failure that we have been seeing.

We started seeing a test failure in avr-ld.c.

/b/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/avr-ld.c:48:11: error: 
// LINKP: {{".*ld.*"}} {{.*}} "--defsym=__DATA_REGION_ORIGIN__=0x800100" "-plugin" {{.*}} "-plugin-opt=mcpu=atmega328"
          ^
<stdin>:1:1: note: scanning from here
Fuchsia clang version 17.0.0 (https://llvm.googlesource.com/llvm-project 0d37efdbc599e61ce2a0418723a66d6b45aea8d7)
^
<stdin>:6:239: note: possible intended match here

https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8785950851645447937/overview

I am testing a change and will fix it in one minute.

Thanks! I should pay attention to Fuchsia next time.

benshi001 edited the summary of this revision. (Show Details)Mar 22 2023, 6:34 PM