#3937 closed project (fixed)

Move content of bsp_specs to GCC

Reported by: Sebastian Huber Owned by: Sebastian Huber <sebastian.huber@…>
Priority: normal Milestone: 6.1
Component: tool/gcc Version: 6
Severity: normal Keywords: qualification
Cc: Blocked By:
Blocking: #3250

Description

Move content of the bsp_specs to GCC 10. Once this is done, update the tools and delete the bsp_specs.

On powerpc this means we have to move the content of rtems_crti.S to GCC. It may not be possible to back port this to GCC 10 and we may have to maintain this as a patch until GCC 11 is released.

Add support for nostartfiles and nodefaultlibs.

Attachments (2)

0001-RTEMS-Improve-GCC-specification.patch (2.9 KB) - added by Sebastian Huber on Apr 7, 2020 at 7:35:34 AM.
v2-0001-RTEMS-Improve-GCC-specification.patch (3.8 KB) - added by Sebastian Huber on Apr 8, 2020 at 11:31:55 AM.

Download all attachments as: .zip

Change History (15)

comment:1 Changed on Apr 6, 2020 at 2:01:29 PM by Joel Sherrill

Dupe of #3250

comment:2 Changed on Apr 6, 2020 at 2:01:59 PM by Sebastian Huber

Blocking: 3250 added

comment:3 in reply to:  1 Changed on Apr 6, 2020 at 2:03:35 PM by Sebastian Huber

Replying to Joel Sherrill:

Dupe of #3250

I think this is a subtask.

comment:4 Changed on Apr 6, 2020 at 2:49:54 PM by Sebastian Huber

Since -qrtems is not used to build GCC/Newlib. The rtems_crti.S could probably stay in RTEMS.

comment:5 Changed on Apr 6, 2020 at 2:56:00 PM by Joel Sherrill

The only crti/crtn not provided by GCC are these for the PowerPC. They really should move. Whatever is being done is a hack left over from the days when we were unwilling to modify GCC.

$ find . -name rtems_crt*
./bsps/powerpc/shared/start/rtems_crti.S
./bsps/powerpc/shared/start/rtems_crtn.S

"Remove hacks left over from when we were unwilling to modify GCC" should be the name of this ticket. :)

comment:6 Changed on Apr 6, 2020 at 2:58:38 PM by Sebastian Huber

I will try to get the RTEMS-only changes in GCC 10.2. This already requires release manager approval.

I am not sure if they are happy if I try to change standard powerpc files for RTEMS on a release branch.

comment:7 Changed on Apr 7, 2020 at 8:18:30 AM by Sebastian Huber <sebastian.huber@…>

In b69f54d/rtems-source-builder:

6: Update unstable RTEMS 6 tool chain

Update #3937.

comment:8 Changed on Apr 8, 2020 at 11:34:34 AM by Sebastian Huber <sebastian.huber@…>

In f6286ff/rtems-source-builder:

6: Update unstable RTEMS 6 tool chain

Update #3937.

comment:9 Changed on Jan 22, 2021 at 9:52:53 AM by Sebastian Huber

It turned out that the GCC specs processing is a bit more complicated and the current approach doesn't work:

https://gcc.gnu.org/pipermail/gcc/2021-January/234728.html

comment:11 Changed on Jan 26, 2021 at 5:38:50 AM by Sebastian Huber <sebastian.huber@…>

Owner: set to Sebastian Huber <sebastian.huber@…>
Resolution: fixed
Status: assignedclosed

In ade0892/rtems-source-builder:

6: Update tool chain

Close #3937.

comment:12 Changed on Jun 23, 2021 at 7:07:55 AM by Sebastian Huber

Keywords: qualification added

comment:13 Changed on Nov 29, 2021 at 2:48:15 PM by Joel Sherrill <joel@…>

In dd70c81/rtems:

bsp_specs: Delete last remnants of these.

Updates #3937.

Note: See TracTickets for help on using tickets.