Changeset 5172


Ignore:
Timestamp:
Feb 28, 2010, 7:37:38 PM (5 years ago)
Author:
stepan
Message:

Add attribute((noreturn)) to romcc
It doesn't do anything, but it allows the same code to be compiled with gcc and
romcc.

Signed-off-by: Stefan Reinauer <stepan@…>
Acked-by: Ronald G. Minnich <rminnich@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/util/romcc/romcc.c

    r5136 r5172  
    10841084        struct hash_entry *i_default;
    10851085        struct hash_entry *i_return;
     1086        struct hash_entry *i_noreturn;
    10861087        /* Additional hash entries for predefined macros */
    10871088        struct hash_entry *i_defined;
     
    1275812759                        }
    1275912760                        attributes |= ATTRIB_ALWAYS_INLINE;
     12761                }
     12762                else if (ident == state->i_noreturn) {
     12763                        // attribute((noreturn)) does nothing (yet?)
    1276012764                }
    1276112765                else {
     
    2499524999        state.i_noinline      = lookup(&state, "noinline", 8);
    2499625000        state.i_always_inline = lookup(&state, "always_inline", 13);
     25001        state.i_noreturn      = lookup(&state, "noreturn", 8);
    2499725002
    2499825003        /* Process the command line macros */
Note: See TracChangeset for help on using the changeset viewer.