This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
other/387: gcc 2.95 on platform sun crashes with -fsyntax-only
- To: gcc-gnats at gcc dot gnu dot org
- Subject: other/387: gcc 2.95 on platform sun crashes with -fsyntax-only
- From: juergen dot staader at sap dot com
- Date: 7 Jul 2000 14:19:39 -0000
- Reply-To: juergen dot staader at sap dot com
- Resent-Cc: gcc-prs at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, juergen.staader@sap.com
>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: