~ubuntu-branches/ubuntu/saucy/starpu-contrib/saucy

« back to all changes in this revision

Viewing changes to gcc-plugin/src/c-expr.c

  • Committer: Package Import Robot
  • Author(s): Samuel Thibault
  • Date: 2012-04-12 15:04:15 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120412150415-gzp107thb5wknugm
Tags: 1.0.1-1
* New upstream release.
* Explicitly use gcc-4.6 to fix plugin build (Closes: Bug#667381).
* Use gcc-4.5 for starpu, as nvcc does not actually support all 4.6
  features, notably not __float128.
* patches/relax-gcc-plugin: Relax gcc-4.6 dependency for plugins to upstream
  release version (Closes: #670422)
* watch: Fix URL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
494
494
#endif /* !YYCOPY_NEEDED */
495
495
 
496
496
/* YYFINAL -- State number of the termination state.  */
497
 
#define YYFINAL  20
 
497
#define YYFINAL  18
498
498
/* YYLAST -- Last index in YYTABLE.  */
499
 
#define YYLAST   50
 
499
#define YYLAST   24
500
500
 
501
501
/* YYNTOKENS -- Number of terminals.  */
502
502
#define YYNTOKENS  16
503
503
/* YYNNTS -- Number of nonterminals.  */
504
504
#define YYNNTS  12
505
505
/* YYNRULES -- Number of rules.  */
506
 
#define YYNRULES  27
 
506
#define YYNRULES  23
507
507
/* YYNRULES -- Number of states.  */
508
 
#define YYNSTATES  38
 
508
#define YYNSTATES  36
509
509
 
510
510
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
511
511
#define YYUNDEFTOK  2
552
552
   YYRHS.  */
553
553
static const yytype_uint8 yyprhs[] =
554
554
{
555
 
       0,     0,     3,     5,     8,    10,    12,    14,    16,    18,
556
 
      20,    24,    28,    30,    32,    36,    40,    42,    44,    46,
557
 
      49,    51,    56,    60,    64,    66,    68,    72
 
555
       0,     0,     3,     5,     8,    10,    12,    14,    18,    22,
 
556
      24,    26,    30,    34,    36,    38,    41,    43,    48,    52,
 
557
      56,    58,    60,    64
558
558
};
559
559
 
560
560
/* YYRHS -- A `-1'-separated list of the rules' RHS.  */
561
561
static const yytype_int8 yyrhs[] =
562
562
{
563
 
      17,     0,    -1,    18,    -1,    18,    17,    -1,    19,    -1,
564
 
      20,    -1,    24,    -1,     3,    -1,    21,    -1,    22,    -1,
565
 
      21,    12,    23,    -1,    21,    13,    23,    -1,    23,    -1,
566
 
      21,    -1,    22,    10,    21,    -1,    22,    11,    21,    -1,
567
 
      24,    -1,    26,    -1,    25,    -1,     5,    23,    -1,    26,
568
 
      -1,    25,     6,    18,     7,    -1,    25,    14,    19,    -1,
569
 
      25,    15,    19,    -1,    19,    -1,    27,    -1,     8,    18,
570
 
       9,    -1,     4,    -1
 
563
      17,     0,    -1,    18,    -1,    18,    17,    -1,    20,    -1,
 
564
       3,    -1,    22,    -1,    21,    12,    23,    -1,    21,    13,
 
565
      23,    -1,    23,    -1,    21,    -1,    22,    10,    21,    -1,
 
566
      22,    11,    21,    -1,    24,    -1,    25,    -1,     5,    23,
 
567
      -1,    26,    -1,    25,     6,    18,     7,    -1,    25,    14,
 
568
      19,    -1,    25,    15,    19,    -1,    19,    -1,    27,    -1,
 
569
       8,    18,     9,    -1,     4,    -1
571
570
};
572
571
 
573
572
/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
574
 
static const yytype_uint16 yyrline[] =
 
573
static const yytype_uint8 yyrline[] =
575
574
{
576
 
       0,   175,   175,   180,   187,   187,   187,   191,   194,   195,
577
 
     198,   201,   204,   207,   208,   211,   216,   221,   222,   223,
578
 
     229,   230,   241,   244,   251,   252,   253,   256
 
575
       0,   175,   175,   180,   187,   192,   195,   198,   201,   204,
 
576
     207,   208,   211,   216,   220,   221,   227,   228,   239,   242,
 
577
     249,   250,   251,   254
579
578
};
580
579
#endif
581
580
 
606
605
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
607
606
static const yytype_uint8 yyr1[] =
608
607
{
609
 
       0,    16,    17,    17,    18,    18,    18,    19,    20,    20,
610
 
      21,    21,    21,    22,    22,    22,    23,    24,    24,    24,
611
 
      25,    25,    25,    25,    26,    26,    26,    27
 
608
       0,    16,    17,    17,    18,    19,    20,    21,    21,    21,
 
609
      22,    22,    22,    23,    24,    24,    25,    25,    25,    25,
 
610
      26,    26,    26,    27
612
611
};
613
612
 
614
613
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
615
614
static const yytype_uint8 yyr2[] =
616
615
{
617
 
       0,     2,     1,     2,     1,     1,     1,     1,     1,     1,
618
 
       3,     3,     1,     1,     3,     3,     1,     1,     1,     2,
619
 
       1,     4,     3,     3,     1,     1,     3,     1
 
616
       0,     2,     1,     2,     1,     1,     1,     3,     3,     1,
 
617
       1,     3,     3,     1,     1,     2,     1,     4,     3,     3,
 
618
       1,     1,     3,     1
620
619
};
621
620
 
622
621
/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
624
623
   means the default is an error.  */
625
624
static const yytype_uint8 yydefact[] =
626
625
{
627
 
       0,     7,    27,     0,     0,     0,     2,     4,     5,     8,
628
 
       9,    12,     6,    18,    17,    25,    24,    19,    16,     0,
629
 
       1,     3,     0,     0,     0,     0,     0,     0,     0,    26,
630
 
      10,    11,    14,    15,     0,    22,    23,    21
 
626
       0,     5,    23,     0,     0,     0,     2,    20,     4,    10,
 
627
       6,     9,    13,    14,    16,    21,    15,     0,     1,     3,
 
628
       0,     0,     0,     0,     0,     0,     0,    22,     7,     8,
 
629
      11,    12,     0,    18,    19,    17
631
630
};
632
631
 
633
632
/* YYDEFGOTO[NTERM-NUM].  */
634
633
static const yytype_int8 yydefgoto[] =
635
634
{
636
 
      -1,     5,     6,    16,     8,     9,    10,    11,    18,    13,
 
635
      -1,     5,     6,     7,     8,     9,    10,    11,    12,    13,
637
636
      14,    15
638
637
};
639
638
 
640
639
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
641
640
   STATE-NUM.  */
642
 
#define YYPACT_NINF -4
 
641
#define YYPACT_NINF -11
643
642
static const yytype_int8 yypact[] =
644
643
{
645
 
      31,    -4,    -4,    31,    31,     5,    31,     2,    -4,    30,
646
 
      20,    -4,    34,     4,    18,    -4,    -4,    -4,    -4,    11,
647
 
      -4,    -4,    31,    31,    31,    31,    31,     8,     8,    -4,
648
 
      -4,    -4,    25,    25,    43,    -4,    -4,    -4
 
644
       1,   -11,   -11,     1,     1,     2,     1,   -11,   -11,    -5,
 
645
       3,   -11,   -11,    -3,   -11,   -11,   -11,     8,   -11,   -11,
 
646
       1,     1,     1,     1,     1,     7,     7,   -11,   -11,   -11,
 
647
      -5,    -5,    16,   -11,   -11,   -11
649
648
};
650
649
 
651
650
/* YYPGOTO[NTERM-NUM].  */
652
651
static const yytype_int8 yypgoto[] =
653
652
{
654
 
      -4,    19,    -3,     0,    -4,    24,    -4,    -1,     3,    -4,
655
 
      -4,    -4
 
653
     -11,    18,    -4,   -10,   -11,    -1,   -11,    -2,   -11,   -11,
 
654
     -11,   -11
656
655
};
657
656
 
658
657
/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
659
658
   positive, shift that token.  If negative, reduce the rule which
660
659
   number is the opposite.  If YYTABLE_NINF, syntax error.  */
661
 
#define YYTABLE_NINF -25
662
 
static const yytype_int8 yytable[] =
 
660
#define YYTABLE_NINF -1
 
661
static const yytype_uint8 yytable[] =
663
662
{
664
 
       7,    19,    17,    12,     7,    20,     7,    12,   -24,    12,
665
 
      26,     1,   -24,   -24,   -24,   -24,   -24,   -24,    27,    28,
666
 
      29,    30,    31,    34,   -20,    21,     7,    35,    36,    12,
667
 
      24,    25,   -20,   -20,     1,     2,     3,    22,    23,     4,
668
 
     -13,   -13,    22,    23,   -16,   -16,   -16,   -16,    32,    33,
669
 
      37
 
663
      17,    16,    18,    24,     1,     2,     3,    20,    21,     4,
 
664
       1,    25,    26,    22,    23,    33,    34,    27,    28,    29,
 
665
      32,    30,    31,    35,    19
670
666
};
671
667
 
672
668
#define yypact_value_is_default(yystate) \
673
 
  ((yystate) == (-4))
 
669
  ((yystate) == (-11))
674
670
 
675
671
#define yytable_value_is_error(yytable_value) \
676
672
  YYID (0)
677
673
 
678
674
static const yytype_uint8 yycheck[] =
679
675
{
680
 
       0,     4,     3,     0,     4,     0,     6,     4,     6,     6,
681
 
       6,     3,    10,    11,    12,    13,    14,    15,    14,    15,
682
 
       9,    22,    23,    26,     6,     6,    26,    27,    28,    26,
683
 
      10,    11,    14,    15,     3,     4,     5,    12,    13,     8,
684
 
      10,    11,    12,    13,    10,    11,    12,    13,    24,    25,
685
 
       7
 
676
       4,     3,     0,     6,     3,     4,     5,    12,    13,     8,
 
677
       3,    14,    15,    10,    11,    25,    26,     9,    20,    21,
 
678
      24,    22,    23,     7,     6
686
679
};
687
680
 
688
681
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
690
683
static const yytype_uint8 yystos[] =
691
684
{
692
685
       0,     3,     4,     5,     8,    17,    18,    19,    20,    21,
693
 
      22,    23,    24,    25,    26,    27,    19,    23,    24,    18,
694
 
       0,    17,    12,    13,    10,    11,     6,    14,    15,     9,
695
 
      23,    23,    21,    21,    18,    19,    19,     7
 
686
      22,    23,    24,    25,    26,    27,    23,    18,     0,    17,
 
687
      12,    13,    10,    11,     6,    14,    15,     9,    23,    23,
 
688
      21,    21,    18,    19,    19,     7
696
689
};
697
690
 
698
691
#define yyerrok         (yyerrstatus = 0)
1567
1560
      }
1568
1561
    break;
1569
1562
 
 
1563
  case 5:
 
1564
 
 
1565
/* Line 1806 of yacc.c  */
 
1566
#line 192 "c-expr.y"
 
1567
    { (yyval) = ensure_bound (loc, (yyvsp[(1) - (1)])); }
 
1568
    break;
 
1569
 
1570
1570
  case 7:
1571
1571
 
1572
1572
/* Line 1806 of yacc.c  */
1573
 
#line 191 "c-expr.y"
1574
 
    { (yyval) = ensure_bound (loc, (yyvsp[(1) - (1)])); }
1575
 
    break;
1576
 
 
1577
 
  case 10:
1578
 
 
1579
 
/* Line 1806 of yacc.c  */
1580
1573
#line 198 "c-expr.y"
1581
1574
    {
1582
1575
       (yyval) = build_binary_op (UNKNOWN_LOCATION, MULT_EXPR, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]), 0);
1583
1576
     }
1584
1577
    break;
1585
1578
 
1586
 
  case 11:
 
1579
  case 8:
1587
1580
 
1588
1581
/* Line 1806 of yacc.c  */
1589
1582
#line 201 "c-expr.y"
1592
1585
     }
1593
1586
    break;
1594
1587
 
1595
 
  case 14:
 
1588
  case 11:
1596
1589
 
1597
1590
/* Line 1806 of yacc.c  */
1598
1591
#line 208 "c-expr.y"
1601
1594
     }
1602
1595
    break;
1603
1596
 
1604
 
  case 15:
 
1597
  case 12:
1605
1598
 
1606
1599
/* Line 1806 of yacc.c  */
1607
1600
#line 211 "c-expr.y"
1610
1603
     }
1611
1604
    break;
1612
1605
 
1613
 
  case 19:
 
1606
  case 15:
1614
1607
 
1615
1608
/* Line 1806 of yacc.c  */
1616
 
#line 223 "c-expr.y"
 
1609
#line 221 "c-expr.y"
1617
1610
    {
1618
1611
       (yyval) = build_addr (ensure_bound (loc, (yyvsp[(2) - (2)])), current_function_decl);
1619
1612
     }
1620
1613
    break;
1621
1614
 
1622
 
  case 21:
 
1615
  case 17:
1623
1616
 
1624
1617
/* Line 1806 of yacc.c  */
1625
 
#line 230 "c-expr.y"
 
1618
#line 228 "c-expr.y"
1626
1619
    {
1627
1620
#if 1
1628
1621
         /* Build the array ref with proper error checking.  */
1636
1629
     }
1637
1630
    break;
1638
1631
 
1639
 
  case 22:
 
1632
  case 18:
1640
1633
 
1641
1634
/* Line 1806 of yacc.c  */
1642
 
#line 241 "c-expr.y"
 
1635
#line 239 "c-expr.y"
1643
1636
    {
1644
1637
        (yyval) = build_component_ref (loc, ensure_bound (loc, (yyvsp[(1) - (3)])), (yyvsp[(2) - (3)]));
1645
1638
     }
1646
1639
    break;
1647
1640
 
1648
 
  case 23:
 
1641
  case 19:
1649
1642
 
1650
1643
/* Line 1806 of yacc.c  */
1651
 
#line 244 "c-expr.y"
 
1644
#line 242 "c-expr.y"
1652
1645
    {
1653
1646
        (yyval) = build_component_ref (loc,
1654
1647
               build_indirect_ref (loc, ensure_bound (loc, (yyvsp[(1) - (3)])), RO_ARRAY_INDEXING),
1656
1649
     }
1657
1650
    break;
1658
1651
 
1659
 
  case 26:
 
1652
  case 22:
1660
1653
 
1661
1654
/* Line 1806 of yacc.c  */
1662
 
#line 253 "c-expr.y"
 
1655
#line 251 "c-expr.y"
1663
1656
    { (yyval) = (yyvsp[(2) - (3)]); }
1664
1657
    break;
1665
1658
 
1666
 
  case 27:
 
1659
  case 23:
1667
1660
 
1668
1661
/* Line 1806 of yacc.c  */
1669
 
#line 256 "c-expr.y"
 
1662
#line 254 "c-expr.y"
1670
1663
    { (yyval) = (yyvsp[(1) - (1)]); }
1671
1664
    break;
1672
1665
 
1673
1666
 
1674
1667
 
1675
1668
/* Line 1806 of yacc.c  */
1676
 
#line 1677 "c-expr.c"
 
1669
#line 1670 "c-expr.c"
1677
1670
      default: break;
1678
1671
    }
1679
1672
  /* User semantic actions sometimes alter yychar, and that requires
1904
1897
 
1905
1898
 
1906
1899
/* Line 2067 of yacc.c  */
1907
 
#line 259 "c-expr.y"
 
1900
#line 257 "c-expr.y"
1908
1901
 
1909
1902