bugAVR C Runtime Library - Bugs: bug #49567, Use meta-info from...

 
 

bug #49567: Use meta-info from --print-multi-lib and --print-multi-directory

Submitted by:  Georg-Johann Lay <gjlayde>
Submitted on:  Wed 09 Nov 2016 02:32:38 PM UTC  
 
Category: Build InfrastructureSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build system
Status: NonePercent Complete: 0%
Assigned to: NoneOpen/Closed: Open
Release: 2.0.0Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 09 Nov 2016 02:32:38 PM UTC, original submission:

Currently, all the multilib layout and device -> multilib mapping and multilib -> options mapping is hand coded in scripts like devtools/gen-avr-lib-tree.sh

avr-gcc is able to provide information about the multilib layout. Using this feature can be used to dynamically adjust avr-libc build machinery to the actual multilib layout implemented by avr-gcc.

  • Left of ";" you see the relative path where the files belonging to respective multilib variant will be situated.
  • Right of ";" are the options ("@" stands for " -") to select that multilib)

Notice how -msp8 is required to select "tiny-stack" (and not -mtiny-stack) which cause quite some confusion in the past.

In order to find out in which multilib a specific device is located, there is

The advantage of factoring out multilib layout is obvious. Suppose there is some avr-gcc flaw like http://gcc.gnu.org/PR78275 aka. https://savannah.nongnu.org/bugs/index.php?49565

If meta information from the compiler driver was used, there wouldn't have been a need to file a libc bug for a wrong multilib for AT43usb320 because avr-libc would factor out the multilib location and draw that information from avr-gcc.

Georg-Johann Lay <gjlayde>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gjlayde (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1