[Bug driver/115368] Wrong order of gcc include paths on musl systems

2024-06-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115368 --- Comment #6 from Andrew Pinski --- > musl does not depend/use gcc's private headers Which is wrong and broken.

[Bug driver/115368] Wrong order of gcc include paths on musl systems

2024-06-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115368 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug driver/115368] Wrong order of gcc include paths on musl systems

2024-06-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115368 --- Comment #4 from Andrew Pinski --- Note this patch does not work as OPTION_MUSL is not defined for all targets. e.g. *-*-darwin and *-*-elf* targets do not define it.

[Bug driver/115368] Wrong order of gcc include paths on musl systems

2024-06-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115368 --- Comment #3 from Jonathan Wakely --- Please send patch to the gcc-patches mailing list rather than attaching them here. https://gcc.gnu.org/contribute.html#patches

[Bug driver/115368] Wrong order of gcc include paths on musl systems

2024-06-06 Thread raj.khem at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115368 Khem Raj changed: What|Removed |Added Attachment #58366|0 |1 is obsolete|

[Bug driver/115368] Wrong order of gcc include paths on musl systems

2024-06-06 Thread raj.khem at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115368 --- Comment #1 from Khem Raj --- Created attachment 58366 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58366&action=edit potential fix This patch uses -idirafter instead of -iprefix when building for musl. This fixes the issue as the se