[ddd-users] egcs-2.93.22

Edward C Morgan ecmorgan@lucent.com
Wed Jun 2 12:17:00 GMT 1999


Andreas Zeller wrote:

> Hi!
>
> Edward C Morgan <ecmorgan@lucent.com> writes:
>
> > I've downloaded and installed egcs compiler (egcs-2.93.22) dated
> > 19990517 for the sparc-sun-solaris2.5.1 and started to make ddd
> > version 3.1.5.  Seems like they aren't supporting the
> > -fexternal-templates option like before in egcs 1.1.2 (NOTE: ddd
> > compiles fine with egcs 1.1.2):
> >
> >       Here's what it does during compilation (w/o Xlib.h warnings):
> >       ==> Making all in ./ddd...
> >       [...]
> >       c++  -DHAVE_CONFIG_H -DNDEBUG -O2 -g -W -Wall -Wno-uninitialized -fexternal-templates -felide-constructors -fconserve-space -trigraphs -c -I. -I. -I./.. -I/opt/GBxpm/include -I/usr/dt/include  -I/usr/openwin/include -o ddd.o ddd.C
> >       cc1plus: warning: -fexternal-templates is deprecated.
> >       cc1plus: warning: Please see the documentation for details.
>
> This warning can be ignored; the day egcs no longer supports
> `-fexternal-templates', this will be noted by DDD's `configure'
> script.  However, I'd like to know what the new EGCS documentation
> says about this.  Can you send me the relevant files?
>
> >       In file included from /usr/openwin/include/X11/Intrinsic.h:30,
> >                        from ddd.h:39,
> >                        from ddd.C:137:
> >       ddd.C:755: initialization to `void *' from `const char *' discards qualifiers
> >       [...]
>
> The enclosed patch should fix this problem.  Please compile with
> `make -k' and let me know about further problems you find.

I'm getting different errors between egcs 1.1.2 and egcs 2.93.22 wrt X header files:
(egcs 1.1.2)
c++  -DHAVE_CONFIG_H -DNDEBUG -O2 -g -W -Wall -Wno-uninitialized -fexternal-templates -felide-constructors -fconserve-space -trigraphs -c -I. -I. -I./.. -I/opt/GBxpm/include -I/usr/dt/include  -I/usr/openwin/include -o ddd.o ddd.C
In file included from /usr/openwin/include/X11/Intrinsic.h:30,
                 from ddd.h:39,
                 from ddd.C:137:
/usr/openwin/include/X11/Xlib.h:1894: warning: return-type of `XSetTransientForHint' defaults to `int'
/usr/openwin/include/X11/Xlib.h:1902: warning: return-type of `XActivateScreenSaver' defaults to `int'
/usr/openwin/include/X11/Xlib.h:1909: warning: return-type of `XAddHost' defaults to `int'
/usr/openwin/include/X11/Xlib.h:1917: warning: return-type of `XAddHosts' defaults to `int'
/usr/openwin/include/X11/Xlib.h:1924: warning: return-type of `XAddToExtensionList' defaults to `int'

(egcs 2.93.22)
c++  -DHAVE_CONFIG_H -DNDEBUG -O2 -g -fexternal-templates -felide-constructors -fconserve-space -trigraphs -c -I. -I. -I./.. -I/opt/GBxpm/include -I/usr/dt/include  -I/usr/openwin/include -o ddd.o ddd.C
cc1plus: warning: -fexternal-templates is deprecated.
cc1plus: warning: Please see the documentation for details.
In file included from /usr/openwin/include/X11/Intrinsic.h:30,
                 from ddd.h:39,
                 from ddd.C:137:
/usr/openwin/include/X11/Xlib.h:1894: ANSI C++ forbids declaration `XSetTransientForHint' with no type
/usr/openwin/include/X11/Xlib.h:1902: ANSI C++ forbids declaration `XActivateScreenSaver' with no type
/usr/openwin/include/X11/Xlib.h:1909: ANSI C++ forbids declaration `XAddHost' with no type
/usr/openwin/include/X11/Xlib.h:1917: ANSI C++ forbids declaration `XAddHosts' with no type
/usr/openwin/include/X11/Xlib.h:1924: ANSI C++ forbids declaration `XAddToExtensionList' with no type

This may be why ddd.C doesn't compile.  Any suggestions.  (I guess I'll have to copy the header files to another
directory and edit them so these functions return int's

>
>
> Greetings,
>
> Andreas
>
> ===================================================================
> RCS file: /home/st/local/CVS/ddd/ddd/ddd.C,v
> retrieving revision 1.566.4.8
> diff -c -r1.566.4.8 ddd.C
> *** ddd.C       1999/05/26 15:04:33     1.566.4.8
> --- ddd.C       1999/06/02 17:17:52
> ***************
> *** 731,737 ****
>       { "attach",        MMPush, \
>           { WhenReady, XtPointer(gdbOpenProcessCB) }, 0, 0, 0, 0 }, \
>       { "detach",        MMPush, \
> !         { gdbCommandCB, "detach" }, 0, 0, 0, 0 }, \
>       MMSep, \
>       { "print",         MMPush, { PrintGraphCB, XtPointer(0) }, 0, 0, 0, 0 }, \
>       { "printAgain",    MMPush | MMUnmanaged, \
> --- 731,737 ----
>       { "attach",        MMPush, \
>           { WhenReady, XtPointer(gdbOpenProcessCB) }, 0, 0, 0, 0 }, \
>       { "detach",        MMPush, \
> !         { gdbCommandCB, XtPointer("detach") }, 0, 0, 0, 0 }, \
>       MMSep, \
>       { "print",         MMPush, { PrintGraphCB, XtPointer(0) }, 0, 0, 0, 0 }, \
>       { "printAgain",    MMPush | MMUnmanaged, \
> ***************
> *** 768,792 ****
>
>   #define PROGRAM_MENU(w) \
>   { \
> !     { "run",         MMPush, { gdbRunCB, 0 }, 0, 0, 0, 0 }, \
> !     { "run_again",   MMPush, { gdbCommandCB, "run" }, 0, 0, 0, 0 }, \
>       MMSep, \
>       { "separateExecWindow",  MMToggle, \
>         { dddToggleSeparateExecWindowCB, 0 }, 0, &(w), 0, 0 }, \
>       MMSep, \
> !     { "step",        MMPush, { gdbCommandCB, "step" }, 0, 0, 0, 0 }, \
> !     { "stepi",       MMPush, { gdbCommandCB, "stepi" }, 0, 0, 0, 0 }, \
> !     { "next",        MMPush, { gdbCommandCB, "next" }, 0, 0, 0, 0 }, \
> !     { "nexti",       MMPush, { gdbCommandCB, "nexti" }, 0, 0, 0, 0}, \
> !     { "until",       MMPush, { gdbCommandCB, "until" }, 0, 0, 0, 0}, \
> !     { "finish",      MMPush, { gdbCommandCB, "finish" }, 0, 0, 0, 0}, \
> !     MMSep, \
> !     { "cont",        MMPush, { gdbCommandCB, "cont" }, 0, 0, 0, 0}, \
> !     { "signal0",     MMPush, { gdbCommandCB, "signal 0" }, 0, 0, 0, 0}, \
> !     MMSep, \
> !     { "kill",        MMPush, { gdbCommandCB, "kill" }, 0, 0, 0, 0}, \
> !     { "break",       MMPush, { gdbCommandCB, "\003" }, 0, 0, 0, 0}, \
> !     { "quit",        MMPush, { gdbCommandCB, "\034" }, 0, 0, 0, 0}, \
>       MMEnd \
>   }
>
> --- 768,793 ----
>
>   #define PROGRAM_MENU(w) \
>   { \
> !     { "run",       MMPush, { gdbRunCB, 0 }, 0, 0, 0, 0 }, \
> !     { "run_again", MMPush, { gdbCommandCB, XtPointer("run") }, 0, 0, 0, 0 }, \
>       MMSep, \
>       { "separateExecWindow",  MMToggle, \
>         { dddToggleSeparateExecWindowCB, 0 }, 0, &(w), 0, 0 }, \
>       MMSep, \
> !     { "step",     MMPush, { gdbCommandCB, XtPointer("step") }, 0, 0, 0, 0 }, \
> !     { "stepi",    MMPush, { gdbCommandCB, XtPointer("stepi") }, 0, 0, 0, 0 }, \
> !     { "next",     MMPush, { gdbCommandCB, XtPointer("next") }, 0, 0, 0, 0 }, \
> !     { "nexti",    MMPush, { gdbCommandCB, XtPointer("nexti") }, 0, 0, 0, 0}, \
> !     { "until",    MMPush, { gdbCommandCB, XtPointer("until") }, 0, 0, 0, 0}, \
> !     { "finish",   MMPush, { gdbCommandCB, XtPointer("finish") }, 0, 0, 0, 0}, \
> !     MMSep, \
> !     { "cont",     MMPush, { gdbCommandCB, XtPointer("cont") }, 0, 0, 0, 0}, \
> !     { "signal0",  MMPush, \
> !                       { gdbCommandCB, XtPointer("signal 0") }, 0, 0, 0, 0}, \
> !     MMSep, \
> !     { "kill",     MMPush, { gdbCommandCB, XtPointer("kill") }, 0, 0, 0, 0}, \
> !     { "break",    MMPush, { gdbCommandCB, XtPointer("\003") }, 0, 0, 0, 0}, \
> !     { "quit",     MMPush, { gdbCommandCB, XtPointer("\034") }, 0, 0, 0, 0}, \
>       MMEnd \
>   }
>
> ***************
> *** 929,936 ****
>                                XtPointer(dddPopupSignalsCB) },
>         NULL, &signals_w, 0, 0 },
>       MMSep,
> !     { "up",         MMPush,  { gdbCommandCB, "up" }, 0, 0, 0, 0},
> !     { "down",       MMPush,  { gdbCommandCB, "down" }, 0, 0, 0, 0},
>       MMEnd
>   };
>
> --- 930,937 ----
>                                XtPointer(dddPopupSignalsCB) },
>         NULL, &signals_w, 0, 0 },
>       MMSep,
> !     { "up",         MMPush,  { gdbCommandCB, XtPointer("up") }, 0, 0, 0, 0},
> !     { "down",       MMPush,  { gdbCommandCB, XtPointer("down") }, 0, 0, 0, 0},
>       MMEnd
>   };
>
> --
> Andreas Zeller     Universitaet Passau, Germany
>                   http://www.fmi.uni-passau.de/st/staff/zeller/

--
=========================================
 Edward C. Morgan
 Email:  ecmorgan@lucent.com
 Phone: (610) 712-3435

 Do not boast about tomorrow, For you
 do not know what a day may bring forth.
=========================================





More information about the Gcc mailing list