If the problem is gcc-specific, the following might be an appropriate 
workaround:
#ifdef __GNUC__
default: __builtin_unreachable();

#endif



----- Original Message -----
From: anonymous <invalid.nore...@gnu.org>
To: simulavr-de...@mail.freesoftware.fsf.org
Sent: Friday, January 29, 2016 4:02 PM
Subject: [Simulavr-devel] [bug #47017] regression of Bug 34793

URL:
  <http://savannah.nongnu.org/bugs/?47017>

                 Summary: regression of Bug 34793
                 Project: Simulavr: an AVR simulator
            Submitted by: None
            Submitted on: Fri 29 Jan 2016 10:02:45 PM UTC
                Category: Configure
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: simul...@rubypanther.com
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: simulavr

    _______________________________________________________

Details:

Presumably due to optimization improvements on newer gcc

gcc version 5.3.1 20151207 (Red Hat 5.3.1-2) (GCC)

disp.c:246:34: error: variable ‘areg’ set but not used
[-Werror=unused-but-set-variable]

The attempted fix in the code is:
                    areg = 42;          /*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34793 */





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?47017>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
Simulavr-devel mailing list
Simulavr-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/simulavr-devel

_______________________________________________
Simulavr-devel mailing list
Simulavr-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/simulavr-devel

Reply via email to