mirror of git://gcc.gnu.org/git/gcc.git
fixincl.c (fix_with_system): Cast pointer difference to long.
2008-04-25 Kai Tietz <kai.tietz@onvision.com> * fixincl.c (fix_with_system): Cast pointer difference to long. * fixlib.c (make_raw_shell_str): Cast compare to avoid sign warning. From-SVN: r134679
This commit is contained in:
parent
38101ca779
commit
9ae83b8456
|
@ -1,3 +1,8 @@
|
||||||
|
2008-04-25 Kai Tietz <kai.tietz@onvision.com>
|
||||||
|
|
||||||
|
* fixincl.c (fix_with_system): Cast pointer difference to long.
|
||||||
|
* fixlib.c (make_raw_shell_str): Cast compare to avoid sign warning.
|
||||||
|
|
||||||
2008-04-18 Paolo Bonzini <bonzini@gnu.org>
|
2008-04-18 Paolo Bonzini <bonzini@gnu.org>
|
||||||
|
|
||||||
PR bootstrap/35457
|
PR bootstrap/35457
|
||||||
|
|
|
@ -829,7 +829,7 @@ fix_with_system (tFixDesc* p_fixd,
|
||||||
/*
|
/*
|
||||||
* Now add the fix number and file names that may be needed
|
* Now add the fix number and file names that may be needed
|
||||||
*/
|
*/
|
||||||
sprintf (pz_scan, " %ld '%s' '%s' '%s'", p_fixd - fixDescList,
|
sprintf (pz_scan, " %ld '%s' '%s' (long) (p_fixd - fixDescList),
|
||||||
pz_fix_file, pz_file_source, pz_temp_file);
|
pz_fix_file, pz_file_source, pz_temp_file);
|
||||||
}
|
}
|
||||||
else /* NOT an "internal" fix: */
|
else /* NOT an "internal" fix: */
|
||||||
|
|
|
@ -259,14 +259,14 @@ make_raw_shell_str( char* pz_d, tCC* pz_s, size_t smax )
|
||||||
*(pz_d++) = '\'';
|
*(pz_d++) = '\'';
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (pz_d - pz_d_start >= smax)
|
if (((size_t) (pz_d - pz_d_start) >= smax)
|
||||||
return (char*)NULL;
|
return (char*)NULL;
|
||||||
switch (*(pz_d++) = *(pz_s++)) {
|
switch (*(pz_d++) = *(pz_s++)) {
|
||||||
case NUL:
|
case NUL:
|
||||||
goto loopDone;
|
goto loopDone;
|
||||||
|
|
||||||
case '\'':
|
case '\'':
|
||||||
if (pz_d - pz_d_start >= smax - sizeof( zQ )-1)
|
if ((size_t) (pz_d - pz_d_start) >= smax - sizeof( zQ )-1)
|
||||||
return (char*)NULL;
|
return (char*)NULL;
|
||||||
strcpy( pz_d-1, zQ );
|
strcpy( pz_d-1, zQ );
|
||||||
pz_d += sizeof( zQ )-2;
|
pz_d += sizeof( zQ )-2;
|
||||||
|
|
Loading…
Reference in New Issue