Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-11785

Using tiarmclang -S -flto does not create an assembly file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Not Prioritized Not Prioritized

      C:\example>type file.c
      void stub() {}

      C:\example>tiarmclang -S -flto file.c

      C:\example>type file.s
      ; ModuleID = 'file.c'
      source_filename = "file.c"
      target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
      target triple = "thumbv7em-ti-none-eabihf"

      ; Function Attrs: noinline nounwind null_pointer_is_valid optnone
      define hidden void @stub() #0

      {   ret void }

      attributes #0 = { noinline nounwind null_pointer_is_valid optnone "frame-pointer"="none" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="cortex-m4" "target-features"="+armv7e-m,+dsp,+fp16,+hwdiv,+thumb-mode,+vfp2sp,+vfp3d16sp,+vfp4d16sp,-aes,-d32,-fp-armv8,-fp-armv8d16,-fp-armv8d16sp,-fp-armv8sp,-fp16fml,-fp64,-fullfp16,-neon,-sha2,-vfp2,-vfp3,-vfp3d16,-vfp3sp,-vfp4,-vfp4d16,-vfp4sp" }

      !llvm.module.flags = !{!0, !1, !2, !3, !4, !5}
      !llvm.ident = !{!6}

      !0 = !{i32 2, !"wchar_size", i32 4}
      !1 = !{i32 1, !"min_enum_size", i32 1}
      !2 = !{i32 1, !"branch-target-enforcement", i32 0}
      !3 = !{i32 1, !"sign-return-address", i32 0}
      !4 = !{i32 1, !"sign-return-address-all", i32 0}
      !5 = !{i32 1, !"sign-return-address-with-bkey", i32 0}
      Unable to render embedded object: File (6 = !{) not found."TI clang version 14.0.6 (ssh://git@bitbucket.itg.ti.com/code/llvm-project.git a02eec7de30e6bf137d80bcb0ebf617528933a5b)"}

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: