[RTEMS Project] #2830: throwing std::runtime on PC BSP fails.

RTEMS trac trac at rtems.org
Sat Sep 12 14:54:58 UTC 2020

#2830: throwing std::runtime on PC BSP fails.
 Reporter:  Chris Johns  |       Owner:  Needs Funding
     Type:  defect       |      Status:  assigned
 Priority:  normal       |   Milestone:  Indefinite
Component:  unspecified  |     Version:  5
 Severity:  normal       |  Resolution:
 Keywords:               |  Blocked By:
 Blocking:               |

Comment (by Joel Sherrill):

 The bug goes back to when gcc replaced -mcpu= with -march= and -mtune=. We
 used to generated code specifically compatible with and optimized for a
 CPU model. -march is now the compatibility level flag and -mtune is an
 optimization indication. We are generating i386 compatible code which is
 tuned based on say an i686 instruction weighting.

 The multilib -mtune needs to change to -march.

 Since -march is the first x86 option described, it is at the top of this
 page in the GCC manual:


 A quick search browsing gcc/config/i386/t-* shows RTEMS seems to be the
 only i386 target building multilibs which are cpu model based. Others use
 m32/m64 or other things.

Ticket URL: <http://devel.rtems.org/ticket/2830#comment:13>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list