make duplicate macros behave the same as qcc in traditional mode (ie, bump the number anyway)

This commit is contained in:
Bill Currie 2007-05-15 07:51:04 +00:00 committed by Jeff Teunissen
parent fee656eb68
commit 411d6517cb

View file

@ -443,6 +443,8 @@ add_frame_macro (char *token)
if (Hash_Find (frame_tab, token)) { if (Hash_Find (frame_tab, token)) {
warning (0, "duplicate frame macro `%s'", token); warning (0, "duplicate frame macro `%s'", token);
if (options.traditional)
frame_number++;
return; return;
} }
ALLOC (1024, frame_t, frames, frame); ALLOC (1024, frame_t, frames, frame);