Module Name:    src
Committed By:   rin
Date:           Mon Aug 28 00:39:05 UTC 2023

Modified Files:
        src/external/gpl3/binutils/dist/gas/config: tc-vax.c

Log Message:
binutils/gas: vax: Reduce diff from upstream. NFC

- Drop #if-0'ed code (disabled more than 14 years).
- Dedup comments.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 \
    src/external/gpl3/binutils/dist/gas/config/tc-vax.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-vax.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.14 src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.15
--- src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.14	Sat Dec 24 20:17:06 2022
+++ src/external/gpl3/binutils/dist/gas/config/tc-vax.c	Mon Aug 28 00:39:05 2023
@@ -1110,14 +1110,6 @@ tc_aout_fix_to_chars (where, fixP, segme
       | (!S_IS_DEFINED (fixP->fx_addsy) ? 8 : 0)	/* extern */
       | ((nbytes_r_length[fixP->fx_size] & 3) << 1);
 
-#if 0
-  r_flags |= ((!S_IS_DEFINED(fixP->fx_addsy)
-      && fixP->fx_pcrel
-      && fixP->fx_addsy != GOT_symbol
-      && fixP->fx_addsy != PLT_symbol
-      && flags_want_pic) ? 0x10 : 0);
-#endif
-	
   switch (fixP->fx_r_type) {
 	case NO_RELOC:
 		break;
@@ -1163,71 +1155,6 @@ tc_aout_fix_to_chars (where, fixP, segme
 #endif /* !BFD_ASSEMBLER */
 #endif /* OBJ_AOUT */
 
-/*
- *       BUGS, GRIPES,  APOLOGIA, etc.
- *
- * The opcode table 'votstrs' needs to be sorted on opcode frequency.
- * That is, AFTER we hash it with hash_...(), we want most-used opcodes
- * to come out of the hash table faster.
- *
- * I am sorry to inflict yet another VAX assembler on the world, but
- * RMS says we must do everything from scratch, to prevent pin-heads
- * restricting this software.
- */
-
-/*
- * This is a vaguely modular set of routines in C to parse VAX
- * assembly code using DEC mnemonics. It is NOT un*x specific.
- *
- * The idea here is that the assembler has taken care of all:
- *   labels
- *   macros
- *   listing
- *   pseudo-ops
- *   line continuation
- *   comments
- *   condensing any whitespace down to exactly one space
- * and all we have to do is parse 1 line into a vax instruction
- * partially formed. We will accept a line, and deliver:
- *   an error message (hopefully empty)
- *   a skeleton VAX instruction (tree structure)
- *   textual pointers to all the operand expressions
- *   a warning message that notes a silly operand (hopefully empty)
- */
-
-/*
- *		E D I T   H I S T O R Y
- *
- * 17may86 Dean Elsner. Bug if line ends immediately after opcode.
- * 30apr86 Dean Elsner. New vip_op() uses arg block so change call.
- *  6jan86 Dean Elsner. Crock vip_begin() to call vip_op_defaults().
- *  2jan86 Dean Elsner. Invent synthetic opcodes.
- *	Widen vax_opcodeT to 32 bits. Use a bit for VIT_OPCODE_SYNTHETIC,
- *	which means this is not a real opcode, it is like a macro; it will
- *	be relax()ed into 1 or more instructions.
- *	Use another bit for VIT_OPCODE_SPECIAL if the op-code is not optimised
- *	like a regular branch instruction. Option added to vip_begin():
- *	exclude	synthetic opcodes. Invent synthetic_votstrs[].
- * 31dec85 Dean Elsner. Invent vit_opcode_nbytes.
- *	Also make vit_opcode into a char[]. We now have n-byte vax opcodes,
- *	so caller's don't have to know the difference between a 1-byte & a
- *	2-byte op-code. Still need vax_opcodeT concept, so we know how
- *	big an object must be to hold an op.code.
- * 30dec85 Dean Elsner. Widen typedef vax_opcodeT in "vax-inst.h"
- *	because vax opcodes may be 16 bits. Our crufty C compiler was
- *	happily initialising 8-bit vot_codes with 16-bit numbers!
- *	(Wouldn't the 'phone company like to compress data so easily!)
- * 29dec85 Dean Elsner. New static table vax_operand_width_size[].
- *	Invented so we know hw many bytes a "I^#42" needs in its immediate
- *	operand. Revised struct vop in "vax-inst.h": explicitly include
- *	byte length of each operand, and it's letter-code datum type.
- * 17nov85 Dean Elsner. Name Change.
- *	Due to ar(1) truncating names, we learned the hard way that
- *	"vax-inst-parse.c" -> "vax-inst-parse." dropping the "o" off
- *	the archived object name. SO... we shortened the name of this
- *	source file, and changed the makefile.
- */
-
 /* Parse a vax operand in DEC assembler notation.
    For speed, expect a string of whitespace to be reduced to a single ' '.
    This is the case for GNU AS, and is easy for other DEC-compatible

Reply via email to