[Bug driver/112759] [13/14 regression] mips -march=native detection broken with gcc 13+
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 29 22:16:30 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112759
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[13 regression] mips |[13/14 regression] mips
|-march=native detection |-march=native detection
|broken with gcc 13+ |broken with gcc 13+
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Hmm, looks like it is this part of the change:
+ if (cpu)
+ ret = reconcat (ret, ret, "-m", argv[0], "=", cpu, NULL);
- return concat ("-m", argv[0], "=", cpu, NULL);
Maybe it should have been:
```
if (cpu)
{
if (!ret)
ret = concat ("-m", argv[0], "=", cpu, NULL);
else
ret = reconcat (ret, ret, "-m", argv[0], "=", cpu, NULL);
}
```
Can you try that?
More information about the Gcc-bugs
mailing list