Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 75150

Summary: GCC ebuild to add ada as --enable-languages parameter and initial fix to gcc-config file
Product: Gentoo Linux Reporter: gentoo
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description gentoo 2004-12-21 01:43:05 UTC
Eventually, Ada will be as well integrated into GCC as are other languages such as gcj, etc. Using the gcc-config script while I am building gcc-4.0 snapshots, I found this patch useful.

Gnat has a bunch of gnat* files in addition to the regular files. This allows gcc-config/wrapper to be copied as these gnat files as well thus allowing different gnat versions to be used as easily as gcj.

PS: Its 1:42 AM

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 gentoo 2004-12-21 01:45:42 UTC
sohail ~ # diff -u `which gcc-config` gcc-config-me 
--- /usr/bin/gcc-config 2004-12-21 01:44:06.608389160 -0800
+++ gcc-config-me       2004-12-21 01:44:01.655142168 -0800
@@ -192,7 +192,8 @@
        umask 022
 
        # Update the wrappers for this profile
-       local native="gcc cpp cc c++ g++ f77 g77 gcj"
+       local gnat=`(cd ${ROOT}/${GCC_BIN_PATH}/ && ls gnat*) 2>/dev/null`
+       local native="gcc cpp cc c++ g++ f77 g77 gcj" ${gnat}
        is_cross_compiler && native=""
        for x in ${native} ${CTARGET}-{gcc,c++,g++,f77,g77,gcj}
        do
Comment 2 gentoo 2004-12-21 01:59:08 UTC
err nm, it seems that /etc/profile sets paths properly to use gnat* :)