This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Another libstdc++-v3/mkcheck.in size patch (aix4.2.0.0)


Snapshot libstdc++-v3 mkcheck gives the following on rs6000-ibm-aix4.2.0.0.

static    shared    test
------------------------------------------------------------------------
-b   -b   17_intro/header_ciso646.cc
size: 0654-301 X is not a recognized flag.
Usage: size [-o|-x|-d|-f|-V] [File ...]
size: 0654-301 X is not a recognized flag.
Usage: size [-o|-x|-d|-f|-V] [File ...]
size: 0654-301 X is not a recognized flag.
Usage: size [-o|-x|-d|-f|-V] [File ...]

The enclosed patch gets size working on aix4.2.0.0, needs testing
on later AIX versions.

2001-05-14  Rodney Brown  <rbrown64@csc.com.au>

     * mkcheck.in (setup_size_command): Cope with older AIX size without -X.

--- libstdc++-v3/mkcheck.in.bu     Mon May 14 15:52:52 2001
+++ libstdc++-v3/mkcheck.in   Mon May 14 15:53:03 2001
@@ -205,12 +205,17 @@
     # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
     case @host_os@ in
       *aix*)
+    SIZEARG='-X32_64'
+    if size $SIZEARG 2>&1 | grep ' X is not a recognized flag.' > /dev/null;
+    then
+       SIZEARG=
+    fi
         function size_command()
         {
           case $1 in
-            TEXT)  TEXT=$(size -X32_64 $EXENAME | awk '{print $2}')  ;;
-            DATA)  DATA=$(size -X32_64 $EXENAME | awk '{print $4}')  ;;
-            SIZE)  SIZE=$(size -X32_64 $EXENAME | awk '{print $12}')  ;;
+            TEXT)  TEXT=$(size $SIZEARG $EXENAME | awk '{print $2}')  ;;
+            DATA)  DATA=$(size $SIZEARG $EXENAME | awk '{print $4}')  ;;
+            SIZE)  SIZE=$(size $SIZEARG $EXENAME | awk '{print $12}')  ;;
           esac
         }
         ;;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]