[Bug target/111635] Objects built with -flto cannot be linked with Xcode

2023-10-30 Thread amy at amyspark dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111635 --- Comment #7 from Amyspark --- I can confirm this is no longer reproducible with macOS Monterey 12.7, Xcode 14.2, and the following linker version: @(#)PROGRAM:ld PROJECT:ld64-820.1 BUILD 20:07:01 Nov 7 2022 configured to support archs:

[Bug target/111635] Objects built with -flto cannot be linked with Xcode

2023-10-30 Thread amy at amyspark dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111635 --- Comment #6 from Amyspark --- I need to recover my GCC installation post Homebrew forcing an OS upgrade to Monterey. Still, I think this needs to be tested against the x64 target -- I've seen some issues only happening when targeting it.

[Bug target/111635] Objects built with -flto cannot be linked with Xcode

2023-10-30 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111635 --- Comment #5 from Francois-Xavier Coudert --- Third try (on aarch64-darwin): I installed Homebrew's libusb. But now, the build succeeds… ⌁ [fx:/tmp/bmpflash] f87ad30 6s ± meson compile -C build INFO: autodetecting backend as ninja INFO:

[Bug target/111635] Objects built with -flto cannot be linked with Xcode

2023-10-30 Thread fxcoudert at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111635 Francois-Xavier Coudert changed: What|Removed |Added CC||fxcoudert at gcc dot gnu.org

[Bug target/111635] Objects built with -flto cannot be linked with Xcode

2023-09-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111635 --- Comment #3 from Andrew Pinski --- Oh 0 is from: /* Build the gcov info var, this is referred to in its own initializer. */ gcov_info_var = build_decl (BUILTINS_LOCATION, VAR_DECL, NULL_TREE,

[Bug target/111635] Objects built with -flto cannot be linked with Xcode

2023-09-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111635 --- Comment #2 from Andrew Pinski --- Hmm: ``` static void build_gcov_info_var_registration (tree gcov_info_type) { tree var = build_decl (BUILTINS_LOCATION, VAR_DECL, NULL_TREE,