OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [BUG1.c] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
struct _XtTextSource {
struct _XtTextSource {
        /* ... */
        /* ... */
        void (* SetSelection)();
        void (* SetSelection)();
        /* ... */
        /* ... */
    };
    };
 
 
typedef struct _XtTextSource *XtTextSource;
typedef struct _XtTextSource *XtTextSource;
 
 
typedef struct _TextPart {
typedef struct _TextPart {
        XtTextSource source;
        XtTextSource source;
        /* ... */
        /* ... */
} TextPart;
} TextPart;
 
 
typedef struct _TextRec {
typedef struct _TextRec {
        /* ... */
        /* ... */
        TextPart    text;
        TextPart    text;
} TextRec;
} TextRec;
 
 
typedef struct _TextRec      *TextWidget;
typedef struct _TextRec      *TextWidget;
 
 
 
 
void XtTextUnsetSelection(w)
void XtTextUnsetSelection(w)
    TextWidget          w;                 /* original is: Widget w; */
    TextWidget          w;                 /* original is: Widget w; */
{
{
    register TextWidget ctx = (TextWidget) w;
    register TextWidget ctx = (TextWidget) w;
    void (*nullProc)() = 0;
    void (*nullProc)() = 0;
 
 
/*
/*
 * the following line causes the error, when optimizing:
 * the following line causes the error, when optimizing:
 */
 */
 
 
    if (ctx->text.source->SetSelection != nullProc) {
    if (ctx->text.source->SetSelection != nullProc) {
 
 
        foo();
        foo();
 
 
    }
    }
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.