[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug optimization/11350] [3.3/3.4 regression] undefined labels with -Os -fPIC



PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11350


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-06-27 15:19:14
               date|                            |


------- Additional Comments From pinskia at physics dot uc dot edu  2003-06-27 15:19 -------
I cannot cut it down lower than 34 lines (removing any thing more will just cause gcc to 
produce the right code:
typedef struct { short x, y; } XPoint;
typedef struct {  int type;  int x_root, y_root; } XEvent;
typedef struct _WidgetRec *Widget;
Widget FindMenu(Widget);
void PositionMenu(Widget, XPoint*);
void PositionMenuAction(Widget, XEvent*);
void PositionMenuAction(Widget w, XEvent *event)
{
    Widget menu;
    XPoint loc;

    if ((menu = FindMenu(w)) == ((void *)0))
        return;

    switch (event->type) {
        case 4:
        case 5:
            loc.x = event->x_root;
            loc.y = event->y_root;
            PositionMenu(menu, &loc);
            break;
        case 7:
        case 8:
            loc.x = event->x_root;
            loc.y = event->y_root;
            PositionMenu(menu, &loc);
            break;
        case 6:
            loc.x = event->x_root;
            loc.y = event->y_root;
            PositionMenu(menu, &loc);
            break;
    }
}



------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



Reply to: