(command.CommandList
  children: [
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Lit_Other '[')} {(DQ ($ VSub_Number '$1'))} {(Lit_Other '=')} {(DQ (-p))} 
                  {(Lit_Other ']')}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.Sentence
              child: 
                (command.Assignment
                  keyword: Assign_None
                  pairs: [(assign_pair lhs:(lhs_expr.LhsName name:with_patchlevel) op:Equal rhs:{(1)})]
                )
              terminator: <Op_Semi ';'>
            )
            (command.Sentence child:(C {(shift)}) terminator:<Op_Semi ';'>)
          ]
        )
      ]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(lhs_expr.LhsName name:compiler) op:Equal rhs:{(DQ ($ VSub_Star '$*'))})]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Lit_Other '[')} 
                  {(word_part.BracedVarSub token:<VSub_Name compiler> prefix_op:VSub_Pound)} {(-eq)} {(0)} {(Lit_Other ']')}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)} {(DQ ('Error: No compiler specified.'))})
            (C {(printf)} 
              {
                (DQ ('Usage:') (Lit_Other '\\') (n) (Lit_Other '\\') (t) ($ VSub_Number '$0') 
                  (' <gcc-command>') (Lit_Other '\\') (n)
                )
              }
            )
            (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
        )
      ]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:MAJOR)
          op: Equal
          rhs: 
            {
              (word_part.CommandSubPart
                command_list: 
                  (command.CommandList
                    children: [
                      (command.Pipeline
                        children: [
                          (C {(echo)} {(__GNUC__)})
                          (C {($ VSub_DollarName '$compiler')} {(-E)} {(-x)} {(c)} {(-)})
                          (C {(tail)} {(-n)} {(1)})
                        ]
                        negated: F
                      )
                    ]
                  )
                left_token: <Left_CommandSub '$('>
              )
            }
        )
      ]
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:MINOR)
          op: Equal
          rhs: 
            {
              (word_part.CommandSubPart
                command_list: 
                  (command.CommandList
                    children: [
                      (command.Pipeline
                        children: [
                          (C {(echo)} {(__GNUC_MINOR__)})
                          (C {($ VSub_DollarName '$compiler')} {(-E)} {(-x)} {(c)} {(-)})
                          (C {(tail)} {(-n)} {(1)})
                        ]
                        negated: F
                      )
                    ]
                  )
                left_token: <Left_CommandSub '$('>
              )
            }
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Lit_Other '[')} {(DQ (x) ($ VSub_DollarName '$with_patchlevel'))} 
                  {(KW_Bang '!') (Lit_Other '=')} {(DQ (x))} {(Lit_Other ']')}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:PATCHLEVEL)
                  op: Equal
                  rhs: 
                    {
                      (word_part.CommandSubPart
                        command_list: 
                          (command.CommandList
                            children: [
                              (command.Pipeline
                                children: [
                                  (C {(echo)} {(__GNUC_PATCHLEVEL__)})
                                  (C {($ VSub_DollarName '$compiler')} {(-E)} {(-x)} {(c)} {(-)})
                                  (C {(tail)} {(-n)} {(1)})
                                ]
                                negated: F
                              )
                            ]
                          )
                        left_token: <Left_CommandSub '$('>
                      )
                    }
                )
              ]
            )
            (C {(printf)} 
              {
                (DQ ('%02d%02d%02d') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\\\'>) (n))
              } {($ VSub_DollarName '$MAJOR')} {($ VSub_DollarName '$MINOR')} {($ VSub_DollarName '$PATCHLEVEL')}
            )
          ]
        )
      ]
      else_action: [
        (C {(printf)} 
          {(DQ ('%02d%02d') (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\\\'>) (n))} {($ VSub_DollarName '$MAJOR')} {($ VSub_DollarName '$MINOR')}
        )
      ]
    )
  ]
)