This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Small compiler speedup


Steven Bosscher <s dot bosscher at student dot tudelft dot nl> writes:

> Op wo 09-04-2003, om 07:42 schreef Zack Weinberg:
>> How about this:
>> 
>> // c-common.h
>> #define c_common_stmt_codes \
>>    CLEANUP_STMT, EXPR_STMT,     COMPOUND_STMT,  \
>>    DECL_STMT,    IF_STMT,       FOR_STMT,       \
>>    WHILE_STMT,   DO_STMT,       RETURN_STMT,    \
>>    BREAK_STMT,   CONTINUE_STMT, SCOPE_STMT,     \
>>    SWITCH_STMT,  GOTO_STMT,     LABEL_STMT,     \
>>    ASM_STMT,     FILE_STMT,     CASE_LABEL,
>
> I like that.  Done.
>
>> Or, if you feel more ambitious, take a look in cppinit.c at the way
>> _cpp_trigraph_map is defined; with that technique you can make
>> statement_code_p be constant, initialized data in stage2.
>
> I'm not _that_ ambitious :-)  Some other day maybe.  I don't
> think it matters much really.
>
> Patch vs. mainline.  Bootstrapped and regtested on i586-pc-linux-gnu.
> OK?

Looks good.  Approved.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]