public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/7155: AVR Build of GCC - Problem with optimizing
@ 2003-03-22 17:54 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-03-22 17:54 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, t.nossmann

Synopsis: AVR Build of GCC - Problem with optimizing

State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Sat Mar 22 17:54:41 2003
State-Changed-Why:
    In order to reproduce this, we need a code sample that is
    self-contained. The snippet you sent has a number of 
    variables that are probably declared somewhere else in your
    program. It doesn't compile without optimization, so we
    can't reproduce the internal compiler error either.
    
    Can you please review
      http://gcc.gnu.org/bugs.html
    and send us a self-contained, preprocessed testcase?
    
    Thanks
      Wolfgang

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7155


^ permalink raw reply	[flat|nested] 2+ messages in thread

* optimization/7155: AVR Build of GCC - Problem with optimizing
@ 2002-06-28  7:16 t.nossmann
  0 siblings, 0 replies; 2+ messages in thread
From: t.nossmann @ 2002-06-28  7:16 UTC (permalink / raw)
  To: gcc-gnats

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2357 bytes --]


>Number:         7155
>Category:       optimization
>Synopsis:       AVR Build of GCC - Problem with optimizing
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 28 05:56:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     t.nossmann@web.de
>Release:        gcc version 3.2 20020616 (experimental)
>Organization:
>Environment:
Win 2000, avrfreaks.net Build
>Description:
avr-gcc -c -g -Os -Wall -Wstrict-prototypes -Wa,-ahlms=bridge.lst  -mmcu=at90s8515 -I. bridge.c -o bridge.o
bridge.c: In function `testfunction':
bridge.c:214: error: unable to generate reloads for:
(insn:QI 56 55 57 12 00712540 (set (cc0)
        (compare (sign_extend:HI (reg/v:QI 25 r25 [41]))
            (const_int -128 [0xffffff80]))) 94 {*cmpqi_sign_extend} (nil)

!!!This Error occours only with optimization enabled!!!
    (nil))
bridge.c:214: internal compiler error: Internal compiler error in find_reloads, at gcc/reload.c:3564
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make: *** [bridge.o] Error 1
>How-To-Repeat:
void testfunction( void )
{
    char ist_speed = 0;
    bool mo_dir_up;
	bool mo_power;


	// Die Drehgeschwindigkeit des Motors langsam an die Vorgabe anpassen
    if (soll_speed > ist_speed)
    	ist_speed++;

    if (soll_speed < ist_speed)
    	ist_speed--;

    mo_dir_up = (ist_speed > 0);

	// aktuellen Motorstatus ermitteln und merken
    mo_power = mo_port != mo_break;

	// Motor ist ausgeschalten und minimale Geschwindigkeit erreicht
	if ( !mo_power && ( ist_speed == 0 ) )
		return;

	// Motor ist eingeschalten und maximale Geschwindigkeit erreicht
    if (  mo_power && ( (ist_speed==0x7f) || (~ist_speed==0x7f) ) )
		return;

    // Neuen Timer-Wert berechnen und laden
   		outp( ((mo_power)? (ist_speed << 1) : (~ist_speed << 1) ) , TCNT0 );

    // kurz alle Brückentransistoren ausschalten, um Kurzschlüsse zu verhindern

	mo_port = mo_stop;
	delay(1);

	// wenn motor eingeschalten, dann ausschalten und umgekehrt ( DREHRICHTUNG beachten !!! )
	if (mo_power)
		mo_port = mo_break;
	else
		mo_port = (mo_dir_up)? mo_up : mo_down;
}
>Fix:
none
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-22 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-22 17:54 optimization/7155: AVR Build of GCC - Problem with optimizing bangerth
  -- strict thread matches above, loose matches on Subject: below --
2002-06-28  7:16 t.nossmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).