This is the mail archive of the gcc@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]

Scheduling questions.


     I have built a gcc cross-compiler for Motorola's SC100 architecture. At
a first glance, it appears to work correctly, but when I do
cc1 -O3 -fschedule-insns test.c
it crashes with a SIGSEGV.
The problem seems to occur due to the fact that add_dependence is called
with an incorrect parameter 'elem' by the function sched_analyze_2. The
exact line number where add_dependence is called (in my sources of
gcc2.95.2) is 1317.
     To be more specific, the problem is caused by the fact that LOG_LINKS
is
called for a CODE_LABEL rtx, which as far as I know is incorrect. Is this a
problem in GCC or I am missing something?

     Another question: I tried to compile the same code for intel (with a
native compiler) and it worked without problems. I suspect that there might
be a problem with my machine description, but I cannot figure out what could
possibly be causing gcc to crash while doing instruction-scheduling. If you
could speculate on what code in the .md file could be causing this problem,I
would appreciate it.

 Thanks a lot.

     Virgil


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