Probable GCC Bug

Pankaj Dev panks11@hotmail.com
Fri Sep 5 12:07:00 GMT 2003


Hi,

Actually I am working on the modification of DFA Description for the 
sparclet processor in GCC 3.3.1 which i downloaded on Aug 11,2003.

In order to observe the changes in the assembly code generated with and 
without the DFA description, i first generated assembly of a test program 
with DFA Description.

To my understanding in order to disable the use of DFA Scheduling by the GCC 
i removed the "(1 << PROCESSOR_TSC701)" from the function
// File : sparc.c
static int
sparc_use_dfa_pipeline_interface ()
{
  if ((1 << sparc_cpu) &
      ((1 << PROCESSOR_ULTRASPARC) | (1 << PROCESSOR_CYPRESS) |
       (1 << PROCESSOR_SUPERSPARC) | (1 << PROCESSOR_HYPERSPARC) |
       (1 << PROCESSOR_SPARCLITE86X) |
       (1 << PROCESSOR_ULTRASPARC3)))
    return 1;
  return 0;
}
but left(didnt remove) the above expression i.e. "(1 << PROCESSOR_TSC701)" 
in the function (which i added earlier)
// File : sparc.c
static int
sparc_use_sched_lookahead ()
{
  if (sparc_cpu == PROCESSOR_ULTRASPARC
      || sparc_cpu == PROCESSOR_ULTRASPARC3)
    return 4;
  if ((1 << sparc_cpu) &
      ((1 << PROCESSOR_SUPERSPARC) | (1 << PROCESSOR_HYPERSPARC) |
       (1 << PROCESSOR_TSC701) | (1 << PROCESSOR_SPARCLITE86X)))
    return 3;
  return 0;
}

and then build GCC.. It is giving an error

/home/pdev/WorkArea/obj_WDFA/gcc/xgcc -B/home/pdev/WorkArea/obj_WDFA/gcc/ 
-nostdinc -B/home/pdev/WorkArea/obj_WDFA/sparclet-aout/newlib/ -isystem 
/home/pdev/WorkArea/obj_WDFA/sparclet-aout/newlib/targ-include -isystem 
/home/pdev/WorkArea/src_WDFA/newlib/libc/include -B/home/pdev/WorkArea/ 
install_WDFA/sparclet-aout/bin/ 
-B/home/pdev/WorkArea/install_WDFA/sparclet-aout/lib/ -isystem 
/home/pdev/WorkArea/install_WDFA/sparclet-aout/include -L/home/pdev/WorkArea 
/obj_WDFA/ld -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -isystem ./include   -g  
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. 
-I../../src_WDFA/gcc -I../../src_WDFA/gcc/. -I../../src_WDFA/gcc/config 
-I../../src_WDFA/gcc/../include  -DL_muldi3 -c ../../src_WDFA/gcc/libgcc2.c 
-o libgcc/./_muldi3.o

../../src_WDFA/gcc/libgcc2.c: In function `__muldi3':
../../src_WDFA/gcc/libgcc2.c:366: internal compiler error: Segmentation 
fault

I just wanted to know if I am wrong in the steps taken to disable the use of 
DFA based instruction scheduling in gcc or is it a bug in gcc..

regards
Pankaj Dev

_________________________________________________________________
Over 6,70,000 brides and grooms. 
http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Click here to join 
for free.



More information about the Gcc mailing list