This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


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

other/387: gcc 2.95 on platform sun crashes with -fsyntax-only



>Number:         387
>Category:       other
>Synopsis:       gcc 2.95 on platform sun crashes with -fsyntax-only
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 07 07:26:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Juergen Staader
>Release:        gcc version 2.95.2
>Organization:
>Environment:
SunOS sparc 
>Description:
Internal compiler error provoked by result of multiplication passed as an argument in function call.
 
>How-To-Repeat:
void test (int);
main ()
{
int i=0;
test (i*i);
}
>Fix:
work around: add validity check for "asm_out_file" in file varasm.c, line 1643 ff.

void
assemble_external_libcall (fun)
rtx fun ATTRIBUTE_UNUSED;
{
#ifdef ASM_OUTPUT_EXTERNAL_LIBCALL
/* Declare library function name external when first used, if nec. */
if (! SYMBOL_REF_USED (fun))
{
SYMBOL_REF_USED (fun) = 1;

/* just021 00-07-04
function call with multiplication in argument f (i*i) provokes
internal compiler error on platform sun with flag "-fsyntax-only" set.
*/
if (asm_out_file)
ASM_OUTPUT_EXTERNAL_LIBCALL (asm_out_file, fun);
}
#endif
}
>Release-Note:
>Audit-Trail:
>Unformatted:

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