Changeset 99b75cab


Ignore:
Timestamp:
Feb 2, 2017, 3:52:24 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
7a560c1, dc99f38
Parents:
ac93b22
Message:

Added prototypes sed script to fix generated builtins declaration

Location:
src/prelude
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/prelude/Makefile.am

    rac93b22 r99b75cab  
    2929# create forward declarations for gcc builtins
    3030builtins.cf : builtins.c
    31         ${AM_V_GEN}if [ -e $< ] ; then \
    32                 @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \
    33         fi
     31        ${AM_V_GEN}@BACKEND_CC@ -E -P $^ | sed -f prototypes.sed > $@
    3432
    3533builtins.c : builtins.def prototypes.awk
    36         ${AM_V_GEN}if [ -e $< ] ; then \
    37                 @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \
    38         fi
     34        ${AM_V_GEN}@BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@
    3935
    4036builtins.def :
  • src/prelude/Makefile.in

    rac93b22 r99b75cab  
    425425# create forward declarations for gcc builtins
    426426builtins.cf : builtins.c
    427         ${AM_V_GEN}if [ -e $< ] ; then \
    428                 @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \
    429         fi
     427        ${AM_V_GEN}@BACKEND_CC@ -E -P $^ | sed -f prototypes.sed > $@
    430428
    431429builtins.c : builtins.def prototypes.awk
    432         ${AM_V_GEN}if [ -e $< ] ; then \
    433                 @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \
    434         fi
     430        ${AM_V_GEN}@BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@
    435431
    436432builtins.def :
Note: See TracChangeset for help on using the changeset viewer.