Changeset 66f8528 for src/CodeGen


Ignore:
Timestamp:
Dec 15, 2016, 5:16:42 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
43385ca, f7ff3fb
Parents:
5802a4f (diff), 596f987b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into tuples

Conflicts:

src/ResolvExpr/CommonType.cc
src/tests/.expect/32/extension.txt
src/tests/.expect/32/gccExtensions.txt
src/tests/.expect/64/declarationSpecifier.txt
src/tests/.expect/64/extension.txt
src/tests/.expect/64/gccExtensions.txt
src/tests/.expect/castError.txt
src/tests/Makefile.am

Location:
src/CodeGen
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r5802a4f r66f8528  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Aug  4 13:35:30 2016
    13 // Update Count     : 352
     12// Last Modified On : Tue Dec 13 14:51:27 2016
     13// Update Count     : 362
    1414//
    1515
     
    5757                if ( decl->get_extension() ) {
    5858                        output << "__extension__ ";
     59                } // if
     60        } // extension
     61
     62        void CodeGenerator::asmName( DeclarationWithType * decl ) {
     63                if ( ConstantExpr * asmName = decl->get_asmName() ) {
     64                        output << " asm ( " << asmName->get_constant()->get_value() << " )";
    5965                } // if
    6066        } // extension
     
    141147                } // if
    142148
     149                asmName( functionDecl );
     150
    143151                // acceptAll( functionDecl->get_oldDecls(), *this );
    144152                if ( functionDecl->get_statements() ) {
     
    153161                handleStorageClass( objectDecl );
    154162                output << genType( objectDecl->get_type(), mangleName( objectDecl ) );
     163
     164                asmName( objectDecl );
    155165
    156166                if ( objectDecl->get_init() ) {
  • src/CodeGen/CodeGenerator.h

    r5802a4f r66f8528  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Aug  4 13:37:07 2016
    13 // Update Count     : 38
     12// Last Modified On : Tue Dec 13 13:51:53 2016
     13// Update Count     : 39
    1414//
    1515
     
    108108                };
    109109
     110                void asmName( DeclarationWithType *decl );
     111
    110112                void extension( Expression *expr );
    111113                void extension( Declaration *decl );
  • src/CodeGen/GenType.cc

    r5802a4f r66f8528  
    204204        void GenType::visit( ZeroType *zeroType ) {
    205205                // ideally these wouldn't hit codegen at all, but should be safe to make them ints
    206                 typeString = "int " + typeString;
     206                typeString = "long int " + typeString;
    207207                handleQualifiers( zeroType );
    208208        }
     
    210210        void GenType::visit( OneType *oneType ) {
    211211                // ideally these wouldn't hit codegen at all, but should be safe to make them ints
    212                 typeString = "int " + typeString;
     212                typeString = "long int " + typeString;
    213213                handleQualifiers( oneType );
    214214        }
  • src/CodeGen/OperatorTable.cc

    r5802a4f r66f8528  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Thu Apr 14 16:48:27 2016
    13 // Update Count     : 9
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Tue Dec 13 14:33:05 2016
     13// Update Count     : 10
    1414//
    1515
     
    2121                const OperatorInfo tableValues[] = {
    2222                        {       "?[?]",         "",             "_operator_index",                              OT_INDEX                        },
    23                         {       "?{}",          "=",            "_constructor",                                 OT_CTOR                         },
     23                        {       "?{}",          "=",    "_constructor",                                 OT_CTOR                         },
    2424                        {       "^?{}",         "",             "_destructor",                                  OT_DTOR                         },
    2525                        {       "?()",          "",             "_operator_call",                               OT_CALL                         },
Note: See TracChangeset for help on using the changeset viewer.