The files ../melt-branch/gcc/compiler-probe.c and ../melt-branch/gcc/basilys.c
both use the GNU extensions lrand48_r() and srand48_r() and are not portable.


srand48_r(3) - Linux man page
http://linux.die.net/man/3/srand48_r
 or
The GNU C Library
http://www.delorie.com/gnu/docs/glibc/libc_398.html
 or
drand48_r(3) - phpMan
http://phpunixman.sourceforge.net/index.php/man/drand48_r/3

"CONFORMING TO
       These functions are GNU extensions and are not portable."


In the mean time I will hunt down an implementation from 
somewhere and drop it in so as to not affect the build.

Thanks,
Rob


# gmake
...
gcc -c  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition
-Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings  -Wno-error -DHAVE_CONFIG_H -I.
-I. -I../../melt-branch/gcc -I../../melt-branch/gcc/.
-I../../melt-branch/gcc/../include -I./../intl
-I../../melt-branch/gcc/../libcpp/include -I/usr/local/include
-I/usr/local/include -I../../melt-branch/gcc/../libdecnumber
-I../../melt-branch/gcc/../libdecnumber/dpd -I../libdecnumber
-I/usr/local/include  -I/include -DCLOOG_PPL_BACKEND  -I/usr/local/include 
../../melt-branch/gcc/compiler-probe.c -o compiler-probe.o
../../melt-branch/gcc/compiler-probe.c: In function ‘del_proberequest’:
../../melt-branch/gcc/compiler-probe.c:241: warning: initialization discards
qualifiers from pointer target type
../../melt-branch/gcc/compiler-probe.c:243: warning: cast discards qualifiers
from pointer target type
../../melt-branch/gcc/compiler-probe.c: In function ‘hash_filename’:
../../melt-branch/gcc/compiler-probe.c:255: warning: cast discards qualifiers
from pointer target type
../../melt-branch/gcc/compiler-probe.c: In function ‘eq_filename’:
../../melt-branch/gcc/compiler-probe.c:262: warning: cast discards qualifiers
from pointer target type
../../melt-branch/gcc/compiler-probe.c:263: warning: cast discards qualifiers
from pointer target type
../../melt-branch/gcc/compiler-probe.c: In function ‘hash_info_tree’:
../../melt-branch/gcc/compiler-probe.c:305: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:308: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:309: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:311: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:312: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:318: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c: In function ‘eq_info_tree’:
../../melt-branch/gcc/compiler-probe.c:329: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:330: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:339: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:343: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c: At top level:
../../melt-branch/gcc/compiler-probe.c:352: warning: no previous prototype for
‘comprobe_unique_index_of_tree’
../../melt-branch/gcc/compiler-probe.c: In function
‘comprobe_unique_index_of_tree’:
../../melt-branch/gcc/compiler-probe.c:361: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c: At top level:
../../melt-branch/gcc/compiler-probe.c:391: warning: no previous prototype for
‘comprobe_tree_of_unique_index’
../../melt-branch/gcc/compiler-probe.c: In function ‘hash_info_bb’:
../../melt-branch/gcc/compiler-probe.c:410: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:413: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:414: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:416: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:417: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:423: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c: In function ‘eq_info_bb’:
../../melt-branch/gcc/compiler-probe.c:434: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:435: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:444: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:448: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c: In function ‘hash_info_gimple’:
../../melt-branch/gcc/compiler-probe.c:463: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:466: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:467: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:469: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:470: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:476: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c: In function ‘eq_info_gimple’:
../../melt-branch/gcc/compiler-probe.c:487: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:488: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:497: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c:501: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c: In function
‘comprobe_unique_index_of_gimple’:
../../melt-branch/gcc/compiler-probe.c:519: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c: In function ‘create_probe_process’:
../../melt-branch/gcc/compiler-probe.c:767: warning: cast discards qualifiers
from pointer target type
../../melt-branch/gcc/compiler-probe.c: In function ‘comprobe_stop’:
../../melt-branch/gcc/compiler-probe.c:946: warning: implicit declaration of
function ‘psignal’
../../melt-branch/gcc/compiler-probe.c: In function ‘read_probe_requests’:
../../melt-branch/gcc/compiler-probe.c:1077: warning: comparison between signed
and unsigned integer expressions
../../melt-branch/gcc/compiler-probe.c: In function ‘comprobe_begin_big’:
../../melt-branch/gcc/compiler-probe.c:1141: warning: implicit declaration of
function ‘lrand48_r’
../../melt-branch/gcc/compiler-probe.c: In function ‘cmp_displaychoice_ptr’:
../../melt-branch/gcc/compiler-probe.c:1183: warning: cast discards qualifiers
from pointer target type
../../melt-branch/gcc/compiler-probe.c:1184: warning: cast discards qualifiers
from pointer target type
../../melt-branch/gcc/compiler-probe.c: In function
‘gimple_starting_displayer’:
../../melt-branch/gcc/compiler-probe.c:1394: warning: format ‘%ld’ expects type
‘long int’, but argument 3 has type ‘comprobe_ix_t’
../../melt-branch/gcc/compiler-probe.c: In function ‘tree_starting_displayer’:
../../melt-branch/gcc/compiler-probe.c:1426: warning: format ‘%ld’ expects type
‘long int’, but argument 3 has type ‘comprobe_ix_t’
../../melt-branch/gcc/compiler-probe.c: In function ‘bb_starting_displayer’:
../../melt-branch/gcc/compiler-probe.c:1506: warning: format ‘%ld’ expects type
‘long int’, but argument 3 has type ‘comprobe_ix_t’
../../melt-branch/gcc/compiler-probe.c:1521: warning: format ‘%ld’ expects type
‘long int’, but argument 3 has type ‘comprobe_ix_t’
../../melt-branch/gcc/compiler-probe.c: In function ‘bb_ending_displayer’:
../../melt-branch/gcc/compiler-probe.c:1545: warning: format ‘%ld’ expects type
‘long int’, but argument 3 has type ‘comprobe_ix_t’
../../melt-branch/gcc/compiler-probe.c:1554: warning: format ‘%ld’ expects type
‘long int’, but argument 3 has type ‘comprobe_ix_t’
../../melt-branch/gcc/compiler-probe.c: In function ‘fill_infodialog’:
../../melt-branch/gcc/compiler-probe.c:1597: warning: ISO C forbids conversion
of function pointer to object pointer type
../../melt-branch/gcc/compiler-probe.c:1600: warning: ISO C forbids conversion
of function pointer to object pointer type
../../melt-branch/gcc/compiler-probe.c: In function ‘comprobe_initialize’:
../../melt-branch/gcc/compiler-probe.c:1798: warning: implicit declaration of
function ‘srand48_r’
../../melt-branch/gcc/compiler-probe.c: In function ‘comprobe_file_rank’:
../../melt-branch/gcc/compiler-probe.c:1887: warning: cast discards qualifiers
from pointer target type
../../melt-branch/gcc/compiler-probe.c:1915: warning: cast discards qualifiers
from pointer target type
../../melt-branch/gcc/compiler-probe.c:1917: warning: cast discards qualifiers
from pointer target type
../../melt-branch/gcc/compiler-probe.c: In function
‘comprobe_get_gimple_position’:
../../melt-branch/gcc/compiler-probe.c:2042: warning: assignment discards
qualifiers from pointer target type
../../melt-branch/gcc/compiler-probe.c: At top level:
../../melt-branch/gcc/compiler-probe.c:2107: warning: no previous prototype for
‘comprobe_get_tree_position’
../../melt-branch/gcc/compiler-probe.c: In function
‘comprobe_get_tree_position’:
../../melt-branch/gcc/compiler-probe.c:2116: warning: assignment discards
qualifiers from pointer target type
../../melt-branch/gcc/compiler-probe.c: At top level:
../../melt-branch/gcc/compiler-probe.c:2140: warning: no previous prototype for
‘comprobe_file_rank_of_tree’
../../melt-branch/gcc/compiler-probe.c: In function ‘add_infopoint_bodyseq’:
../../melt-branch/gcc/compiler-probe.c:2194: warning: missing initializer
../../melt-branch/gcc/compiler-probe.c:2194: warning: (near initialization for
‘gsi.seq’)
../../melt-branch/gcc/compiler-probe.c:2196: warning: unused variable ‘gotpos’
../../melt-branch/gcc/compiler-probe.c: In function
‘comprobe_unique_index_of_basic_block’:
../../melt-branch/gcc/compiler-probe.c:2243: warning: cast from pointer to
integer of different size
../../melt-branch/gcc/compiler-probe.c: In function
‘add_infopoint_basic_block’:
../../melt-branch/gcc/compiler-probe.c:2289: warning: missing initializer
../../melt-branch/gcc/compiler-probe.c:2289: warning: (near initialization for
‘gsi.seq’)
../../melt-branch/gcc/compiler-probe.c: At top level:
../../melt-branch/gcc/compiler-probe.c:1442: warning: ‘tree_ending_displayer’
defined but not used
../../melt-branch/gcc/compiler-probe.c:214: error: storage size of ‘randata’
isn’t known
gmake[3]: *** [compiler-probe.o] Error 1
gmake[3]: Leaving directory `/usr/share/src/melt-branch_build/gcc'
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory `/usr/share/src/melt-branch_build'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/usr/share/src/melt-branch_build'
gmake: *** [all] Error 2


( Note: MELT = http://gcc.gnu.org/wiki/MiddleEndLispTranslator + ADB +
http://gcc.gnu.org/viewcvs/branches/?sortby=date#dirlist = !flames )  :)


-- 
           Summary: [melt] - lrand48_r() and srand48_r() are GNU extensions
                    and are not portable
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rob1weld at aol dot com
 GCC build triplet: i386-pc-solaris2.11
  GCC host triplet: i386-pc-solaris2.11
GCC target triplet: i386-pc-solaris2.11


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39470

Reply via email to