public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Macro expansion: GCC 3.4.4
@ 2005-11-09  2:54 Nick Roberts
  2005-11-09  7:37 ` Prevent stack variable initialization to zero with -g Stuart Brooks
  2005-11-09 13:00 ` Macro expansion: GCC 3.4.4 John Love-Jensen
  0 siblings, 2 replies; 12+ messages in thread
From: Nick Roberts @ 2005-11-09  2:54 UTC (permalink / raw)
  To: gcc-help


Using gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2), enum doesn't work and I
see a work around is to use -fno-eliminate-unused-debug-types.

I also find that macro expansion doesn't work"

In myprog.c: #define NCR 4


cc -g3 -o myprog myprog.c myprint.o -lm


(gdb) b main
Breakpoint 1 at 0x80484b9: file myprog.c, line 52.
(gdb) run
Starting program: /home/nickrob/myprog

Breakpoint 1, main (argc=1, argv=0xfee4d1b4) at myprog.c:52
52        int i, n, m[10]={0,1,4,9,16,25,36,49,64,81};
(gdb) p NCR
No symbol "NCR" in current context.


Is there a work around for this too?

Thanks,

Nick

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

end of thread, other threads:[~2005-11-11  4:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-09  2:54 Macro expansion: GCC 3.4.4 Nick Roberts
2005-11-09  7:37 ` Prevent stack variable initialization to zero with -g Stuart Brooks
2005-11-09 12:48   ` Florian Weimer
2005-11-09 13:00 ` Macro expansion: GCC 3.4.4 John Love-Jensen
2005-11-09 15:09   ` Daniel Berlin
2005-11-09 22:11   ` Nick Roberts
2005-11-10  7:04     ` M Ranga Swami Reddy
2005-11-10 13:49       ` Daniel Berlin
2005-11-10 13:48     ` Daniel Berlin
2005-11-10 19:13       ` Nick Roberts
2005-11-11  3:43         ` Daniel Berlin
2005-11-11  4:32           ` Nick Roberts

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).